@hhgtech/hhg-components 1.27.94 → 1.27.96

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 (284) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/atoms/genderOptionControl/index.d.ts +8 -5
  5. package/build/components/atoms/genderOptionControl/index.styles.d.ts +14 -0
  6. package/build/components.js +1 -1
  7. package/build/constants.js +1 -1
  8. package/build/{core-9fcf07fd.js → core-be6e56e4.js} +1 -1
  9. package/build/{dataTransform-bb98e4ed.js → dataTransform-2cd5ef8c.js} +1 -1
  10. package/build/ecom.js +1 -1
  11. package/build/esm/babyGrowth.js +5 -5
  12. package/build/esm/cache.js +1 -1
  13. package/build/esm/care.js +1 -1
  14. package/build/esm/components/atoms/genderOptionControl/index.d.ts +8 -5
  15. package/build/esm/components/atoms/genderOptionControl/index.styles.d.ts +14 -0
  16. package/build/esm/components.js +1 -1
  17. package/build/esm/constants.js +1 -1
  18. package/build/esm/{core-af47547d.js → core-ffb0ddf6.js} +1 -1
  19. package/build/esm/{dataTransform-9c378298.js → dataTransform-9f2ebda0.js} +1 -1
  20. package/build/esm/ecom.js +1 -1
  21. package/build/esm/fixedBottomAdBlock-60783f26.js +1 -0
  22. package/build/esm/footer.js +1 -1
  23. package/build/esm/gAssets.js +1 -1
  24. package/build/esm/{getDynamicHealthTool-6a3c8078.js → getDynamicHealthTool-027b7803.js} +1 -1
  25. package/build/esm/{getSocialList-a5d60f35.js → getSocialList-52da18d0.js} +1 -1
  26. package/build/esm/hooks.js +1 -1
  27. package/build/esm/i18n.js +1 -1
  28. package/build/esm/i18nV2.js +1 -1
  29. package/build/esm/{index-c971b345.js → index-0fb925b6.js} +6 -6
  30. package/build/esm/{index-ba85d64d.js → index-26a2ee91.js} +1 -1
  31. package/build/esm/{index-8a8901c6.js → index-2a759657.js} +1 -1
  32. package/build/esm/{index-da9ca7e2.js → index-2f5e4a37.js} +11 -11
  33. package/build/esm/index-30e724bb.js +1 -0
  34. package/build/esm/index-3698a3ef.js +1 -0
  35. package/build/esm/{index-cc75b854.js → index-454e9c61.js} +1 -1
  36. package/build/esm/{index-6786f270.js → index-50b82bdc.js} +1 -1
  37. package/build/esm/index-5995249b.js +53 -0
  38. package/build/esm/index-73af5255.js +1 -0
  39. package/build/esm/{index-01e2db8e.js → index-7750374f.js} +1 -1
  40. package/build/esm/index-971f655c.js +1 -0
  41. package/build/esm/{index-cde0f5d0.js → index-a05702d8.js} +1 -1
  42. package/build/esm/{index-5e37a3b2.js → index-b98dec31.js} +1 -1
  43. package/build/esm/index-bd225cb9.js +1 -0
  44. package/build/esm/index-bfc50089.js +1 -0
  45. package/build/esm/index-c740cf62.js +1 -0
  46. package/build/esm/index-c871cb6f.js +1 -0
  47. package/build/esm/index-d43afc30.js +1 -0
  48. package/build/esm/{index-100cd6b4.js → index-e4d4073a.js} +1 -1
  49. package/build/esm/index-f448f58a.js +1 -0
  50. package/build/esm/index.js +1 -1
  51. package/build/esm/{index.styled-c845642c.js → index.styled-78872db8.js} +6 -3
  52. package/build/esm/{index.styled-a1afc6b8.js → index.styled-bda910bc.js} +1 -1
  53. package/build/esm/{index.styled-c7de6cc8.js → index.styled-d5418bb8.js} +6 -6
  54. package/build/esm/{utils-d69b1150.js → index.styles-e88a5e1d.js} +2 -2
  55. package/build/esm/lead.js +1 -1
  56. package/build/esm/mantine.js +1 -1
  57. package/build/esm/misc.js +1 -1
  58. package/build/esm/navigation.js +1 -1
  59. package/build/esm/onboarding.js +1 -1
  60. package/build/esm/onboardingV2.js +4 -4
  61. package/build/esm/pwg.js +1 -1
  62. package/build/esm/{routing-9753dcf0.js → routing-894c0291.js} +1 -1
  63. package/build/esm/together.js +1 -1
  64. package/build/esm/{types-d945a5a0.js → types-4234bbfd.js} +1 -1
  65. package/build/esm/{types-40033b0a.js → types-9d98075d.js} +1 -1
  66. package/build/esm/types.js +1 -1
  67. package/build/esm/useHealthToolCache-fc62239c.js +1 -0
  68. package/build/esm/{useRafState-af606dfa.js → useRafState-0157d0fe.js} +1 -1
  69. package/build/esm/{useTranslations-d201c232.js → useTranslations-d3a965c0.js} +1 -1
  70. package/build/esm/{utils-a87baf0d.js → utils-e36cbdc9.js} +1 -1
  71. package/build/esm/vaccination.js +3 -3
  72. package/build/fixedBottomAdBlock-fe395a9f.js +1 -0
  73. package/build/footer.js +1 -1
  74. package/build/gAssets.js +1 -1
  75. package/build/getDynamicHealthTool-fc648480.js +1 -0
  76. package/build/{getSocialList-53d87141.js → getSocialList-071f0b03.js} +1 -1
  77. package/build/hooks.js +1 -1
  78. package/build/i18n.js +1 -1
  79. package/build/i18nV2.js +1 -1
  80. package/build/{index-71d85653.js → index-02d4af55.js} +1 -1
  81. package/build/index-177aa663.js +1 -0
  82. package/build/{index-c2af95db.js → index-18854a1a.js} +1 -1
  83. package/build/{index-99c65f9f.js → index-210cbc0f.js} +1 -1
  84. package/build/{index-2a51b24a.js → index-5252e906.js} +1 -1
  85. package/build/index-6c023cec.js +1 -0
  86. package/build/index-72fdcca5.js +1 -0
  87. package/build/index-7408ab26.js +1 -0
  88. package/build/index-7a758765.js +53 -0
  89. package/build/index-8ceeaa65.js +1 -0
  90. package/build/{index-a07350af.js → index-9c6d670f.js} +1 -1
  91. package/build/{index-0490c4d7.js → index-9fcc13af.js} +1 -1
  92. package/build/{index-ef208995.js → index-a8fb8083.js} +1 -1
  93. package/build/index-b5f2d125.js +1 -0
  94. package/build/{index-eb5e4507.js → index-b778973a.js} +1 -1
  95. package/build/{index-5429b5a6.js → index-bac980d5.js} +1 -1
  96. package/build/{index-2abc1106.js → index-baf7ad53.js} +1 -1
  97. package/build/index-c2c56677.js +1 -0
  98. package/build/index-e61e1184.js +1 -0
  99. package/build/{index-721bfc69.js → index-f1812e00.js} +1 -1
  100. package/build/{index-ac031812.js → index-f3fdcd29.js} +1 -1
  101. package/build/index.js +1 -1
  102. package/build/{index.styled-9e281c1e.js → index.styled-8bf9821e.js} +113 -110
  103. package/build/{index.styled-3eb73818.js → index.styled-9a9571fc.js} +5 -5
  104. package/build/{index.styled-2c1cb242.js → index.styled-bfaffb78.js} +3 -3
  105. package/build/{utils-68f9bb59.js → index.styles-b207e260.js} +18 -18
  106. package/build/lead.js +1 -1
  107. package/build/mantine.js +1 -1
  108. package/build/misc.js +1 -1
  109. package/build/navigation.js +1 -1
  110. package/build/onboarding.js +1 -1
  111. package/build/onboardingV2.js +3 -3
  112. package/build/pwg.js +1 -1
  113. package/build/{routing-167c1c63.js → routing-eb13d3c7.js} +1 -1
  114. package/build/together.js +1 -1
  115. package/build/{types-6e1e85ad.js → types-0edf3275.js} +1 -1
  116. package/build/{types-4bed0cf9.js → types-24fee039.js} +1 -1
  117. package/build/types.js +1 -1
  118. package/build/useHealthToolCache-72a7112d.js +1 -0
  119. package/build/{useRafState-b598f20a.js → useRafState-e4d0d661.js} +1 -1
  120. package/build/{useTranslations-c9d57c50.js → useTranslations-bbc66f56.js} +1 -1
  121. package/build/{utils-fd83d7fb.js → utils-26afb7cb.js} +1 -1
  122. package/build/vaccination.js +1 -1
  123. package/package.json +1 -1
  124. package/build/esm/fixedBottomAdBlock-5c9f8485.js +0 -1
  125. package/build/esm/index-0a1d8fff.js +0 -1
  126. package/build/esm/index-24220ddd.js +0 -1
  127. package/build/esm/index-366f8ef4.js +0 -1
  128. package/build/esm/index-3c818187.js +0 -1
  129. package/build/esm/index-680178ab.js +0 -1
  130. package/build/esm/index-97d14e9f.js +0 -53
  131. package/build/esm/index-a42a1a34.js +0 -1
  132. package/build/esm/index-abf8a313.js +0 -1
  133. package/build/esm/index-b2c3aa96.js +0 -1
  134. package/build/esm/index-f22fdc4b.js +0 -1
  135. package/build/esm/index-f3f1c506.js +0 -1
  136. package/build/esm/useHealthToolCache-d086dbf9.js +0 -1
  137. package/build/fixedBottomAdBlock-d5992284.js +0 -1
  138. package/build/getDynamicHealthTool-bb499674.js +0 -1
  139. package/build/index-3cc747a4.js +0 -1
  140. package/build/index-3e53ab01.js +0 -1
  141. package/build/index-44c807a0.js +0 -1
  142. package/build/index-490e8ff4.js +0 -1
  143. package/build/index-595512d9.js +0 -1
  144. package/build/index-6ed90dcf.js +0 -1
  145. package/build/index-95e3f30c.js +0 -1
  146. package/build/index-aec8eed5.js +0 -53
  147. package/build/index-c6ceb6e9.js +0 -1
  148. package/build/useHealthToolCache-257edf2d.js +0 -1
  149. /package/build/{BMI_BOYS.percentile.monthly-158a1164.js → BMI_BOYS.percentile.monthly-ddd0cd65.js} +0 -0
  150. /package/build/{BMI_BOYS.percentile.weekly-dc20fcf2.js → BMI_BOYS.percentile.weekly-bcc7825c.js} +0 -0
  151. /package/build/{BMI_BOYS.percentile.yearly-841e834d.js → BMI_BOYS.percentile.yearly-3bc4b037.js} +0 -0
  152. /package/build/{BMI_BOYS.zscore.monthly-5edc54a9.js → BMI_BOYS.zscore.monthly-df9bc62e.js} +0 -0
  153. /package/build/{BMI_BOYS.zscore.weekly-3468261b.js → BMI_BOYS.zscore.weekly-f3913ae1.js} +0 -0
  154. /package/build/{BMI_BOYS.zscore.yearly-c6610a42.js → BMI_BOYS.zscore.yearly-debaf8ad.js} +0 -0
  155. /package/build/{BMI_GIRLS.percentile.monthly-097bb7cc.js → BMI_GIRLS.percentile.monthly-5adcb384.js} +0 -0
  156. /package/build/{BMI_GIRLS.percentile.weekly-656a630e.js → BMI_GIRLS.percentile.weekly-33e90e4f.js} +0 -0
  157. /package/build/{BMI_GIRLS.percentile.yearly-5fa9dfec.js → BMI_GIRLS.percentile.yearly-14d53750.js} +0 -0
  158. /package/build/{BMI_GIRLS.zscore.monthly-aa43492e.js → BMI_GIRLS.zscore.monthly-510a937d.js} +0 -0
  159. /package/build/{BMI_GIRLS.zscore.weekly-48b00daa.js → BMI_GIRLS.zscore.weekly-8a5749cd.js} +0 -0
  160. /package/build/{BMI_GIRLS.zscore.yearly-077affb9.js → BMI_GIRLS.zscore.yearly-d24561a2.js} +0 -0
  161. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-44921eea.js → HEAD CIRCUM_BOYS.percentile.monthly-d38962f2.js} +0 -0
  162. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-202cb5a6.js → HEAD CIRCUM_BOYS.percentile.weekly-59208de5.js} +0 -0
  163. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-6f5c939d.js → HEAD CIRCUM_BOYS.percentile.yearly-af186f16.js} +0 -0
  164. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-4f042fc9.js → HEAD CIRCUM_BOYS.zscore.monthly-ed0e8651.js} +0 -0
  165. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-8ea42ae1.js → HEAD CIRCUM_BOYS.zscore.weekly-24c9fe30.js} +0 -0
  166. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d43e0d1e.js → HEAD CIRCUM_BOYS.zscore.yearly-c1af09f4.js} +0 -0
  167. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-3f67c9ae.js → HEAD CIRCUM_GIRLS.percentile.monthly-59b51384.js} +0 -0
  168. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1c6adeed.js → HEAD CIRCUM_GIRLS.percentile.weekly-3dbbad28.js} +0 -0
  169. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-45eca9cc.js → HEAD CIRCUM_GIRLS.percentile.yearly-769664d3.js} +0 -0
  170. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-2c575c38.js → HEAD CIRCUM_GIRLS.zscore.monthly-245ecb03.js} +0 -0
  171. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b72f15c4.js → HEAD CIRCUM_GIRLS.zscore.weekly-2755bc3d.js} +0 -0
  172. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-920a0d10.js → HEAD CIRCUM_GIRLS.zscore.yearly-6ce80a95.js} +0 -0
  173. /package/build/{HEIGHT_BOYS.percentile.monthly-d2f31a41.js → HEIGHT_BOYS.percentile.monthly-09e788ae.js} +0 -0
  174. /package/build/{HEIGHT_BOYS.percentile.weekly-a59a5012.js → HEIGHT_BOYS.percentile.weekly-9a4b92d6.js} +0 -0
  175. /package/build/{HEIGHT_BOYS.percentile.yearly-acf7c7eb.js → HEIGHT_BOYS.percentile.yearly-8f875268.js} +0 -0
  176. /package/build/{HEIGHT_BOYS.zscore.monthly-bd2abc27.js → HEIGHT_BOYS.zscore.monthly-6a8ac0ff.js} +0 -0
  177. /package/build/{HEIGHT_BOYS.zscore.weekly-62c745f0.js → HEIGHT_BOYS.zscore.weekly-ab358091.js} +0 -0
  178. /package/build/{HEIGHT_BOYS.zscore.yearly-2dfedab6.js → HEIGHT_BOYS.zscore.yearly-5467bae8.js} +0 -0
  179. /package/build/{HEIGHT_GIRLS.percentile.monthly-e9899958.js → HEIGHT_GIRLS.percentile.monthly-dce96c99.js} +0 -0
  180. /package/build/{HEIGHT_GIRLS.percentile.weekly-b12839f0.js → HEIGHT_GIRLS.percentile.weekly-a6d6e30c.js} +0 -0
  181. /package/build/{HEIGHT_GIRLS.percentile.yearly-57bb9c09.js → HEIGHT_GIRLS.percentile.yearly-afe56e90.js} +0 -0
  182. /package/build/{HEIGHT_GIRLS.zscore.monthly-1b6283bf.js → HEIGHT_GIRLS.zscore.monthly-59e85dc1.js} +0 -0
  183. /package/build/{HEIGHT_GIRLS.zscore.weekly-8f9b11f1.js → HEIGHT_GIRLS.zscore.weekly-bda7691a.js} +0 -0
  184. /package/build/{HEIGHT_GIRLS.zscore.yearly-2e70f648.js → HEIGHT_GIRLS.zscore.yearly-e272f7e1.js} +0 -0
  185. /package/build/{Onboarding-22f1d138.js → Onboarding-f514b8fc.js} +0 -0
  186. /package/build/{Visible-5605a4bd.js → Visible-0e447e39.js} +0 -0
  187. /package/build/{WEIGHT_BOYS.percentile.monthly-af75d841.js → WEIGHT_BOYS.percentile.monthly-c5fe0b3d.js} +0 -0
  188. /package/build/{WEIGHT_BOYS.percentile.weekly-a1800b69.js → WEIGHT_BOYS.percentile.weekly-687521c1.js} +0 -0
  189. /package/build/{WEIGHT_BOYS.percentile.yearly-e09ae72e.js → WEIGHT_BOYS.percentile.yearly-324bcb87.js} +0 -0
  190. /package/build/{WEIGHT_BOYS.zscore.monthly-fb3043d8.js → WEIGHT_BOYS.zscore.monthly-ee55d443.js} +0 -0
  191. /package/build/{WEIGHT_BOYS.zscore.weekly-10f2c903.js → WEIGHT_BOYS.zscore.weekly-0e77aada.js} +0 -0
  192. /package/build/{WEIGHT_BOYS.zscore.yearly-f7da8eb1.js → WEIGHT_BOYS.zscore.yearly-16d2a293.js} +0 -0
  193. /package/build/{WEIGHT_GIRLS.percentile.monthly-626771a3.js → WEIGHT_GIRLS.percentile.monthly-41e65a12.js} +0 -0
  194. /package/build/{WEIGHT_GIRLS.percentile.weekly-0df43951.js → WEIGHT_GIRLS.percentile.weekly-9d4d2850.js} +0 -0
  195. /package/build/{WEIGHT_GIRLS.percentile.yearly-958bb324.js → WEIGHT_GIRLS.percentile.yearly-12b8f151.js} +0 -0
  196. /package/build/{WEIGHT_GIRLS.zscore.monthly-49034ee6.js → WEIGHT_GIRLS.zscore.monthly-d952d563.js} +0 -0
  197. /package/build/{WEIGHT_GIRLS.zscore.weekly-55e7b9bd.js → WEIGHT_GIRLS.zscore.weekly-ffea9d0b.js} +0 -0
  198. /package/build/{WEIGHT_GIRLS.zscore.yearly-40fd617e.js → WEIGHT_GIRLS.zscore.yearly-e41d0f4e.js} +0 -0
  199. /package/build/{constants-f948afab.js → constants-0f5ce422.js} +0 -0
  200. /package/build/{cookieHelper-eefb4894.js → cookieHelper-fed8122a.js} +0 -0
  201. /package/build/{dataTransform-47153a9e.js → dataTransform-76cb9227.js} +0 -0
  202. /package/build/esm/{BMI_BOYS.percentile.monthly-633faf59.js → BMI_BOYS.percentile.monthly-f32a3272.js} +0 -0
  203. /package/build/esm/{BMI_BOYS.percentile.weekly-28dc5243.js → BMI_BOYS.percentile.weekly-bbf8af5b.js} +0 -0
  204. /package/build/esm/{BMI_BOYS.percentile.yearly-95d84667.js → BMI_BOYS.percentile.yearly-37c5b089.js} +0 -0
  205. /package/build/esm/{BMI_BOYS.zscore.monthly-d163b9d4.js → BMI_BOYS.zscore.monthly-3c72e3c5.js} +0 -0
  206. /package/build/esm/{BMI_BOYS.zscore.weekly-34576dae.js → BMI_BOYS.zscore.weekly-1433821e.js} +0 -0
  207. /package/build/esm/{BMI_BOYS.zscore.yearly-be051432.js → BMI_BOYS.zscore.yearly-f5a08ce2.js} +0 -0
  208. /package/build/esm/{BMI_GIRLS.percentile.monthly-e02b01c9.js → BMI_GIRLS.percentile.monthly-4122123d.js} +0 -0
  209. /package/build/esm/{BMI_GIRLS.percentile.weekly-82b2fc82.js → BMI_GIRLS.percentile.weekly-4c9a7257.js} +0 -0
  210. /package/build/esm/{BMI_GIRLS.percentile.yearly-c204cc9c.js → BMI_GIRLS.percentile.yearly-362a6963.js} +0 -0
  211. /package/build/esm/{BMI_GIRLS.zscore.monthly-499a5dfd.js → BMI_GIRLS.zscore.monthly-13fad576.js} +0 -0
  212. /package/build/esm/{BMI_GIRLS.zscore.weekly-c0a57247.js → BMI_GIRLS.zscore.weekly-cd14a1af.js} +0 -0
  213. /package/build/esm/{BMI_GIRLS.zscore.yearly-0d098f78.js → BMI_GIRLS.zscore.yearly-173c39eb.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c885f05f.js → HEAD CIRCUM_BOYS.percentile.monthly-0b970c2f.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-b8fa59fd.js → HEAD CIRCUM_BOYS.percentile.weekly-8660b067.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f0996948.js → HEAD CIRCUM_BOYS.percentile.yearly-f316d088.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-238353c6.js → HEAD CIRCUM_BOYS.zscore.monthly-d4390225.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-44d40a60.js → HEAD CIRCUM_BOYS.zscore.weekly-d8307f55.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-6bb3ce45.js → HEAD CIRCUM_BOYS.zscore.yearly-aad7e2c1.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-2bd2039c.js → HEAD CIRCUM_GIRLS.percentile.monthly-7bf2bdca.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2ddaa292.js → HEAD CIRCUM_GIRLS.percentile.weekly-9c86e979.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-6857488e.js → HEAD CIRCUM_GIRLS.percentile.yearly-4b6b853e.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7f639c0d.js → HEAD CIRCUM_GIRLS.zscore.monthly-006c6194.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f7586a01.js → HEAD CIRCUM_GIRLS.zscore.weekly-5c89961b.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-71c1efb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-954ba611.js} +0 -0
  226. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-892d9b75.js → HEIGHT_BOYS.percentile.monthly-4acc2fc2.js} +0 -0
  227. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-3034912d.js → HEIGHT_BOYS.percentile.weekly-15040026.js} +0 -0
  228. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6a954cae.js → HEIGHT_BOYS.percentile.yearly-84b17fee.js} +0 -0
  229. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-2002329f.js → HEIGHT_BOYS.zscore.monthly-a1d44788.js} +0 -0
  230. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-daca8f04.js → HEIGHT_BOYS.zscore.weekly-6f01e8f2.js} +0 -0
  231. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-01df4df1.js → HEIGHT_BOYS.zscore.yearly-56ac0a7a.js} +0 -0
  232. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e5bc922a.js → HEIGHT_GIRLS.percentile.monthly-6ee76ed3.js} +0 -0
  233. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-9c48c65d.js → HEIGHT_GIRLS.percentile.weekly-23e7f1ea.js} +0 -0
  234. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-409f40e1.js → HEIGHT_GIRLS.percentile.yearly-a7dd4b2e.js} +0 -0
  235. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-51809cf0.js → HEIGHT_GIRLS.zscore.monthly-88220c05.js} +0 -0
  236. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f6edb404.js → HEIGHT_GIRLS.zscore.weekly-8160f06a.js} +0 -0
  237. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-b81de413.js → HEIGHT_GIRLS.zscore.yearly-0149f1bc.js} +0 -0
  238. /package/build/esm/{Onboarding-75b620fb.js → Onboarding-a4b09eeb.js} +0 -0
  239. /package/build/esm/{Visible-d14d0ffd.js → Visible-bd3c56fe.js} +0 -0
  240. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-bd609b0a.js → WEIGHT_BOYS.percentile.monthly-64fe4afa.js} +0 -0
  241. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-886de91b.js → WEIGHT_BOYS.percentile.weekly-dd44d78b.js} +0 -0
  242. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-9f9d28ef.js → WEIGHT_BOYS.percentile.yearly-0b884a6a.js} +0 -0
  243. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-2121b2c1.js → WEIGHT_BOYS.zscore.monthly-609db891.js} +0 -0
  244. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-74c0ea90.js → WEIGHT_BOYS.zscore.weekly-26d251cb.js} +0 -0
  245. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6c6cfdd6.js → WEIGHT_BOYS.zscore.yearly-37bb49b7.js} +0 -0
  246. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-84f8f44c.js → WEIGHT_GIRLS.percentile.monthly-384f9c91.js} +0 -0
  247. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b77530ce.js → WEIGHT_GIRLS.percentile.weekly-61e81372.js} +0 -0
  248. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-d9668fd3.js → WEIGHT_GIRLS.percentile.yearly-6567de6b.js} +0 -0
  249. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-bff4f7b8.js → WEIGHT_GIRLS.zscore.monthly-a481d196.js} +0 -0
  250. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-9c065b51.js → WEIGHT_GIRLS.zscore.weekly-21c57e9b.js} +0 -0
  251. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d45e8b75.js → WEIGHT_GIRLS.zscore.yearly-c79086fe.js} +0 -0
  252. /package/build/esm/{constants-3386a8a1.js → constants-f6b965b7.js} +0 -0
  253. /package/build/esm/{cookieHelper-0d2ed98c.js → cookieHelper-47902215.js} +0 -0
  254. /package/build/esm/{dataTransform-bf5ac5d3.js → dataTransform-02a41236.js} +0 -0
  255. /package/build/esm/{index-2ba15aae.js → index-3be565c3.js} +0 -0
  256. /package/build/esm/{isProduction-7ab7778b.js → isProduction-2a4a5f6f.js} +0 -0
  257. /package/build/esm/{localizeNumberFormat-f06bf604.js → localizeNumberFormat-4d11e0e8.js} +0 -0
  258. /package/build/esm/{normalizeLink-c1b37e6a.js → normalizeLink-dfbc01d4.js} +0 -0
  259. /package/build/esm/{number-9149bc08.js → number-1452c702.js} +0 -0
  260. /package/build/esm/{paths-c70f1cbc.js → paths-de384db0.js} +0 -0
  261. /package/build/esm/{screenSizeContext-36ed866e.js → screenSizeContext-24a74ff6.js} +0 -0
  262. /package/build/esm/{theme-be61bf9f.js → theme-a60f50e6.js} +0 -0
  263. /package/build/esm/{translationsContext-cdcc192f.js → translationsContext-bc07992b.js} +0 -0
  264. /package/build/esm/{tslib.es6-b22f7de9.js → tslib.es6-3fc69102.js} +0 -0
  265. /package/build/esm/{types-f7e1c31b.js → types-510f54ab.js} +0 -0
  266. /package/build/esm/{useIsInit-9dd8830c.js → useIsInit-251a4fe4.js} +0 -0
  267. /package/build/esm/{useOutsideClick-066a21cd.js → useOutsideClick-8024063f.js} +0 -0
  268. /package/build/esm/{useScrollbarSize-2b0db185.js → useScrollbarSize-64077ead.js} +0 -0
  269. /package/build/esm/{useUniqueId-0ddc5645.js → useUniqueId-98cb4079.js} +0 -0
  270. /package/build/{index-3add5155.js → index-a5528b79.js} +0 -0
  271. /package/build/{isProduction-993bd241.js → isProduction-c6dc0c91.js} +0 -0
  272. /package/build/{localizeNumberFormat-b13f7070.js → localizeNumberFormat-bf9d1710.js} +0 -0
  273. /package/build/{normalizeLink-8824c899.js → normalizeLink-de6b62a7.js} +0 -0
  274. /package/build/{number-f4a29405.js → number-bc320719.js} +0 -0
  275. /package/build/{paths-07deb4ed.js → paths-5393c2a0.js} +0 -0
  276. /package/build/{screenSizeContext-a3b36b90.js → screenSizeContext-fcbed1f3.js} +0 -0
  277. /package/build/{theme-0370e429.js → theme-d9b7b823.js} +0 -0
  278. /package/build/{translationsContext-729efeec.js → translationsContext-d91ea02c.js} +0 -0
  279. /package/build/{tslib.es6-0a4fd09b.js → tslib.es6-900d9715.js} +0 -0
  280. /package/build/{types-4bac90e8.js → types-70748f2a.js} +0 -0
  281. /package/build/{useIsInit-ee3a84df.js → useIsInit-26f2f4ff.js} +0 -0
  282. /package/build/{useOutsideClick-6a179b26.js → useOutsideClick-05bb4110.js} +0 -0
  283. /package/build/{useScrollbarSize-249e45d0.js → useScrollbarSize-535a96ff.js} +0 -0
  284. /package/build/{useUniqueId-df620bbf.js → useUniqueId-7ba33ae3.js} +0 -0
package/build/esm/ecom.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./theme-be61bf9f.js";import"./index-8a8901c6.js";import{i as o}from"./isProduction-7ab7778b.js";export{t as Types}from"./types-f7e1c31b.js";import"date-fns/locale";import"./Onboarding-75b620fb.js";var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",c=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,u=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},m=a?"http://localhost:3001":o?`https://${d[s]}`:`https://discover.${d[s]}`,p=o?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:c,GOOGLE_CLIENT_ID:u,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(u=null===(c=null==e?void 0:e.social)||void 0===c?void 0:c.socials)||void 0===u?void 0:u.map)||void 0===d?void 0:d.call(u,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(u=(c=e.sub_banners).map)||void 0===u?void 0:u.call(c,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(c=e.currency)||void 0===c?void 0:c.store_to_quote_rate)||0,baseToGlobalRate:(null===(u=e.currency)||void 0===u?void 0:u.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});export{l as ApiTypes,T as Constants,A as DataFormatter,i as DataTypes};
1
+ import{t as e}from"./theme-a60f50e6.js";import"./index-2a759657.js";import{i as o}from"./isProduction-2a4a5f6f.js";export{t as Types}from"./types-510f54ab.js";import"date-fns/locale";import"./Onboarding-a4b09eeb.js";var l=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});const a="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n="undefined"==typeof window,s=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",r=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",c=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,u=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},m=a?"http://localhost:3001":o?`https://${d[s]}`:`https://discover.${d[s]}`,p=o?`https://wp.${d[s]}/`:`https://staging.${d[s]}/`,_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${d[s]}/`,h=`${m}/community`,E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const v={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND:(e="",o=0,t=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:t}]}),BRAND_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=t?t:{}}]}),PRODUCT_DETAIL:(e="",o=0,t)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}};var T=Object.freeze({__proto__:null,isDevelopment:a,IS_SSR:n,locale:s,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:r,GOOGLE_ADMIN_LOCATION_KEY:c,GOOGLE_CLIENT_ID:u,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:v});function g(e){return null!=e}const O={formatAutoCompleteAddress:e=>e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null,formatPrice:(e,o)=>{const t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:e=>({text:(null==e?void 0:e.name)||""}),formatHelpfulUrl:e=>({name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}),formatCategory:function(o,t,l){var i,a,n;const s=l?l+"/"+o.slug:o.slug,r=(null===(a=null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.map)||void 0===a?void 0:a.call(i,(e=>O.formatCategory(e,o.id,s))))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:s||"",children:r,backgroundColor:o.color||e.colors.teal50,parentId:t||0,products:(null===(n=o.products)||void 0===n?void 0:n.map(O.formatProduct))||[]}},formatFooterInfo:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_,h,E,I,v,T;const g=(null===(l=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({flag:e.flag||"",name:e.name||"",url:e.url||""}))))||[],O=(null===(n=null===(a=null===(i=null==e?void 0:e.general)||void 0===i?void 0:i.verified)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>({image:e.image||"",url:e.url||""}))))||[],A=(null===(r=null===(s=null==e?void 0:e.menu)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,(e=>{var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({title:e.title,url:e.url})))}})))||[],b=(null===(d=null===(u=null===(c=null==e?void 0:e.social)||void 0===c?void 0:c.socials)||void 0===u?void 0:u.map)||void 0===d?void 0:d.call(u,(e=>({icon:e.icon||"",name:e.name||"",url:e.url||""}))))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(v=null===(I=null==e?void 0:e.general)||void 0===I?void 0:I.copyright)&&void 0!==v?v:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:b}}},formatNavigation:function(e){var o,t,l,i,a,n;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(i=null===(l=null==e?void 0:e.helpful_urls)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatHelpfulUrl))||[],categories:(null===(n=null===(a=null==e?void 0:e.categories)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,(e=>O.formatCategory(e))))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatProduct:function(e){var o,t,l,i;if(!e)return null;const a={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||a,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(g))||[],categories:(null===(i=null===(l=e.categories)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,(e=>O.formatCategory(e))).filter(g))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:e=>e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null,formatBlogPost:e=>{var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(e=>({termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}))):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:e=>e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null,formatBrand:function(e){var o,t,l,i;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatHomePage:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_,h,E,I,v,T,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(g):[],hotDeals:e.hot_deals?null===(i=(l=e.hot_deals).map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g):[],newProducts:e.new_products?null===(n=(a=e.new_products).map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g):[],slideBanners:e.slide_banners?null===(r=(s=e.slide_banners).map)||void 0===r?void 0:r.call(s,O.formatBanner).filter(g):[],subBanners:e.sub_banners?null===(u=(c=e.sub_banners).map)||void 0===u?void 0:u.call(c,O.formatBanner).filter(g):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(g):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(g):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(e=>O.formatCategory(e))).filter(g):[],suggestProducts:e.suggest_products?null===(v=(I=e.suggest_products).map)||void 0===v?void 0:v.call(I,(e=>O.formatCategory(e))).filter(g):[],promotions:e.promotions?null===(A=(T=e.promotions).map)||void 0===A?void 0:A.call(T,(e=>O.formatPromotion(e))).filter(g):[]}:null},formatCategoryPage:function(e){var o,t,l,i;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:e=>e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null,formatProductDetailPage:function(e){var o,t,l,i,a,n,s,r;return e?Object.assign(Object.assign({},O.formatProduct(e)),{relatedProducts:(null===(t=null===(o=e.related_products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProduct).filter(g))||[],bestsellerProducts:(null===(i=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===i?void 0:i.call(l,O.formatProduct).filter(g))||[],viewedProducts:(null===(n=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProduct).filter(g))||[],promotions:(null===(r=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===r?void 0:r.call(s,O.formatPromotion).filter(g))||[]}):null},formatProductReview:e=>{var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}))))||[],images:e.images||[]}:null},formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPromotion:e=>e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null,formatCustomAttributes:(e,o)=>{var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((e=>e.attribute_code===o)))||void 0===t?void 0:t.value)||""},formatAddress:e=>{var o,t,l,i;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(l=null==e?void 0:e.street)||void 0===l?void 0:l.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(i=null==e?void 0:e.extension_attributes)||void 0===i?void 0:i.full_address)||""}:null},formatProvince:e=>(null==e?void 0:e.available_regions)?e.available_regions.map((e=>({value:e.id||"",label:e.name||""}))):[],formatDistrict:e=>(null==e?void 0:e.districts)?e.districts.map((e=>({value:e.id||"",label:e.name||""}))):[],formatCommune:e=>(null==e?void 0:e.communes)?e.communes.map((e=>({value:e.id||"",label:e.name||""}))):[],formatOrder:e=>{var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(e=>({sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}))))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:e=>{var o,t,l,i,a;return e?{pending:Number(null===(o=null==e?void 0:e.find((e=>"pending"===e.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((e=>"processing"===e.status)))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(l=null==e?void 0:e.find((e=>"delivering"===e.status)))||void 0===l?void 0:l.amount)||0,complete:Number(null===(i=null==e?void 0:e.find((e=>"complete"===e.status)))||void 0===i?void 0:i.amount)||0,canceled:Number(null===(a=null==e?void 0:e.find((e=>"canceled"===e.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:e=>{var o,t,l,i,a,n,s,r;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(l=e.extension_attributes)||void 0===l?void 0:l.row_total)||0,promotions:(null===(n=null===(a=null===(i=e.extension_attributes)||void 0===i?void 0:i.promotions)||void 0===a?void 0:a.map)||void 0===n?void 0:n.call(a,O.formatProductPromotion))||[],isInStock:(null===(s=e.extension_attributes)||void 0===s?void 0:s.is_in_stock)||!1,urlProduct:(null===(r=e.extension_attributes)||void 0===r?void 0:r.url_key)||""}:null},formatCartAddress:e=>{var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:e=>e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null,formatCartLoggedInCustomer:e=>{var o,t,l;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(l=e.extension_attributes)||void 0===l?void 0:l.is_subscribed)||!1}:null},formatCart:e=>{var o,t,l,i,a,n,s,r,c,u,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(l=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===l?void 0:l.sort(((e,o)=>Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock))))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(i=e.currency)||void 0===i?void 0:i.global_currency_code)||"",baseCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.base_currency_code)||"",storeCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(s=e.currency)||void 0===s?void 0:s.quote_currency_code)||"",storeToBaseRate:(null===(r=e.currency)||void 0===r?void 0:r.store_to_base_rate)||0,storeToQuoteRate:(null===(c=e.currency)||void 0===c?void 0:c.store_to_quote_rate)||0,baseToGlobalRate:(null===(u=e.currency)||void 0===u?void 0:u.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(e=>{var o,t,l;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(l=(t=e.items).map)||void 0===l?void 0:l.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:e=>{var o,t,l;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(l=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===l?void 0:l.call(t,(e=>({itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}))))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:e=>e?null==e?void 0:e.map((e=>({code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}))):null,formatPaymentInformation:e=>{var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:e=>e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null,formatCoupons:e=>{var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((e=>({code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}))):null},formatShippings:e=>e?e.map((e=>{var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var A=Object.freeze({__proto__:null,dataFormatter:O});export{l as ApiTypes,T as Constants,A as DataFormatter,i as DataTypes};
@@ -0,0 +1 @@
1
+ import e,{useState as t,useRef as a,useMemo as l,useEffect as n,Fragment as r,useCallback as i}from"react";import{T as o}from"./index-bfc50089.js";import{f as s,g as c,h as m,i as d,j as g,k as u,l as p,m as h,n as v,o as E,p as y,q as b,r as f,s as w,t as C,u as k,v as N,w as x,x as L,H as B,y as D,A as M,z,B as A,E as S,I as j,J as _,K as I,P as T}from"./index.styles-e88a5e1d.js";import{i as P}from"./screenSizeContext-24a74ff6.js";import{a as O}from"./useUniqueId-98cb4079.js";import{CommonGAssets as F}from"./gAssets.js";import{t as H}from"./theme-a60f50e6.js";import{e as $,U as W,B as V,u as G,f as Z,g as R,h as U,i as q,j as K,k as X,l as Y,m as Q,n as J,o as ee,p as te,q as ae,r as le,s as ne,t as re,v as ie,w as oe,x as se,y as ce,z as me,C as de,E as ge,F as ue,G as pe,H as he,I as ve,J as Ee,K as ye,L as be,N as fe,O as we,P as Ce,Q as ke,V as Ne,W as xe,X as Le,Y as Be,Z as De,_ as Me,$ as ze,a0 as Ae,a1 as Se,a2 as je,a3 as _e,a4 as Ie,a5 as Te,a6 as Pe,a7 as Oe,a8 as Fe,a9 as He,aa as $e,D as We,ab as Ve,ac as Ge,b as Ze,ad as Re,ae as Ue,af as qe,ag as Ke,ah as Xe,ai as Ye,aj as Qe,a as Je,ak as et,T as tt,al as at,am as lt,an as nt,ao as rt,ap as it,aq as ot,ar as st,as as ct,at as mt,au as dt,av as gt,aw as ut,ax as pt,ay as ht,az as vt,aA as Et,aB as yt,aC as bt,aD as ft,aE as wt,aF as Ct,aG as kt,aH as Nt,aI as xt,aJ as Lt,aK as Bt,aL as Dt,aM as Mt,aN as zt,aO as At,aP as St,aQ as jt,aR as _t,aS as It,aT as Tt,aU as Pt,aV as Ot,aW as Ft,aX as Ht,aY as $t,aZ as Wt,a_ as Vt,A as Gt}from"./index-2f5e4a37.js";import{_ as Zt,a as Rt}from"./tslib.es6-3fc69102.js";import{Box as Ut,Radio as qt,Flex as Kt,rem as Xt,Card as Yt,Group as Qt,useMantineTheme as Jt}from"@mantine/core";import ea from"innertext";import"@mantine/dates";import{d as ta,L as aa,F as la,Q as na}from"./index-2a759657.js";import"./Onboarding-a4b09eeb.js";import ra from"dayjs";import"styled-components";import{i as ia}from"./isProduction-2a4a5f6f.js";import"./translationsContext-bc07992b.js";import"string-format";import"./index-e4d4073a.js";import"@mantine/hooks";import{i as oa}from"./index-d43afc30.js";import sa from"lodash/throttle";import{u as ca}from"./useTranslations-d3a965c0.js";import{format as ma,addDays as da,isBefore as ga,startOfMonth as ua,addMonths as pa,subMonths as ha,getDaysInMonth as va,isToday as Ea,isSameDay as ya,isWithinInterval as ba,isAfter as fa,isPast as wa}from"date-fns";import{I as Ca}from"./index-7750374f.js";import{I as ka,C as Na}from"./index-26a2ee91.js";import"lodash/debounce";import{D as xa}from"./types-510f54ab.js";import{M as La}from"./index-b98dec31.js";import{S as Ba}from"./index-c740cf62.js";import{useForm as Da,Controller as Ma}from"react-hook-form";import{u as za}from"./useHealthToolCache-fc62239c.js";import{f as Aa}from"./dataTransform-9f2ebda0.js";import{a as Sa}from"./useOutsideClick-8024063f.js";import ja from"date-fns/locale/en-US";import _a from"date-fns/locale/id";import Ia from"date-fns/locale/vi";import Ta from"date-fns/locale/zh-TW";import{B as Pa}from"./index-454e9c61.js";import{g as Oa}from"./getSocialList-52da18d0.js";import{v4 as Fa}from"uuid";var Ha="CHw-fZZ",$a="_03U6VRS",Wa="EO828Vv";const Va=({style:t,onClose:a,text:l,type:n,contentIcon:r,closeIcon:i,className:s,description:c})=>e.createElement("div",{className:`${Ha} ${s||""}`,style:t,"data-alert-type":n},e.createElement("div",{className:$a},e.createElement("div",{className:"icon-title"},r,e.createElement(o,{type:"bold",size:"label1"},l)),e.createElement(o,{type:"regular",size:"p3"},c)),e.createElement("div",{className:Wa,onClick:a},i)),Ga=({amount:t,type:a,size:l="medium",color:n="primary",icon:r,className:i})=>e.createElement(s,{"data-notification-type":a,"data-notification-size":l,"data-notification-color":n,"data-has-icon":!!r||void 0,notificationType:a,notificationSize:l,notificationColor:n,hasIcon:!!r,className:i},e.createElement("div",null,t&&e.createElement("span",null,t)," ",r&&e.createElement("div",null,r))),Za=({style:t,children:a,className:l,size:n="lg",type:r="bold",upperCase:i,as:o="h4",color:s})=>e.createElement(c,{style:Object.assign({color:s},t),className:l,"data-size":n,"data-type":r,"data-uppercase":i,as:o},a),Ra=({className:l,value:n,options:r,onUploadSelected:i,id:o,placeholderIcon:s,placeholder:c,style:h})=>{const[v,E]=t(!1),y=()=>E(!v),b=a(r.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"),i(e.target.files)}})))),f=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",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("style",null,".prefix__cls-3{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"prefix__cls-3",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:"prefix__cls-3",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),w=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"download"),e.createElement("path",{className:"prefix__cls-1",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)"})),C=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",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)"}));return e.createElement(m,{className:l,"data-dropdown-open":!!v,id:o,"data-has-icons":!0,style:h,onBlur:()=>E(!1),tabIndex:0},e.createElement(d,{onClick:y},s||f," ",e.createElement("span",null,n&&n.value?n.label:c)),v&&e.createElement(g,{onClick:y,"data-has-icons":!0},r.map((t=>e.createElement(u,{key:`${o}-${t.value}`,"data-selected":n&&n.value===t.value||void 0,onClick:()=>{return"upload"===t.type?(a="#uploader-dropdown-input-"+o+"-"+t.value,void(null===(l=document.querySelector(a))||void 0===l||l.click())):void((e=t.url)&&window.open(e,"_blank"));var e,a,l}},e.createElement(p,null,t.icon||"download"===t.type?w:C),t.label)))),e.createElement(e.Fragment,null,b.current))},Ua=({className:t,columns:a,columnsDesktop:l,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,gap:i,children:o,justifyChildren:s,style:c,alignItems:m})=>e.createElement(h,{className:t,style:c,theme:{columns:a,columnsDesktop:l,gap:i,justifyChildren:s,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,alignItems:m}},o),qa=({pagesAmount:a,activePage:l,handlePageChange:i,handleClick:o,href:s,queryPageName:c="page"})=>{const m=[...Array(a)].map(((e,t)=>t+1)),[d,g]=t(l<=4?m.slice(0,5):l>=m.length-3?m.slice(m.length-5,m.length):m.slice(l-2,l+1));return n((()=>{l<=4?g(m.slice(0,5)):l>=m.length-3?g(m.slice(m.length-5,m.length)):g(m.slice(l-2,l+1))}),[l]),e.createElement(r,null,l>4&&e.createElement(r,null,e.createElement(y,{onClick:()=>i(1)},s?e.createElement("a",{href:s,onClick:o},1):1),e.createElement(y,null,"...")),d.map((t=>e.createElement(y,{key:`pagination+${t}`,"data-page-active":t===l||void 0,onClick:()=>i(t)},s?e.createElement("a",{href:P(s,t,c),onClick:o},t):t))),l<m.length-3&&e.createElement(r,null,e.createElement(y,null,"..."),e.createElement(y,{onClick:()=>i(m.length)},s?e.createElement("a",{href:P(s,m.length,c),onClick:o},m.length):m.length)))},Ka=({className:a,pagesAmount:r,currentPage:i,onChange:o,onClick:s,style:c,href:m,queryPageName:d="page"})=>{const g=[...Array(r)].map(((e,t)=>t+1)),[u,p]=t(i),h=l((()=>m&&m.endsWith("&page=")?m.replace("&page=",""):m),[m]),b=r-1,f=e=>{e<=r&&e>0&&(p(e),o(e))},w=e=>{s&&s(e)};return n((()=>{p(i)}),[i]),e.createElement(v,{className:a,style:c},e.createElement(E,{className:"prev-page",onClick:()=>f(u-1),"data-last-page":1===u||void 0},h?e.createElement("a",{href:P(h,u,d),onClick:w},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},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",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),g.length>8?e.createElement(qa,{pagesAmount:r,activePage:u,handlePageChange:f,handleClick:w,href:h,queryPageName:d}):g.map((t=>e.createElement(y,{key:`pagination+${t}`,"data-page-active":t===u||void 0,onClick:()=>f(t)},h?e.createElement("a",{href:P(h,t,d),onClick:w},t):t))),e.createElement(E,{className:"next-page",onClick:()=>f(u+1),"data-last-page":u===b+1||void 0},h?e.createElement("a",{href:P(h,u,d),onClick:w},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},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",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},Xa=({type:t,children:a,style:l,isInline:n,isSquared:r=!1,className:i,isLight:s,hasMorePadding:c,isLink:m,isSelected:d,textProps:g={size:"sm"}})=>{const u=g.color?{"--text-props-color":g.color}:{};return e.createElement(b,{"data-is-squared":r||void 0,"data-tag-type":t,"data-is-light":s||void 0,"data-has-more-padding":c||void 0,"data-is-inline":n||void 0,style:Object.assign(Object.assign({},l),u),className:i,"data-is-selected":d||void 0,"data-is-link":m||void 0,tagType:t,isInline:n,tagHasMorePadding:c,tagIsLight:s,tagIsSquared:r,tagIsALink:m},e.createElement(o,Object.assign({},g),a))},Ya=({className:t,id:a,onChange:l,checked:n,style:r,label:i})=>e.createElement(f,{className:t,style:r},e.createElement("input",{type:"checkbox",id:a,onChange:l,checked:n}),e.createElement("label",{htmlFor:a},e.createElement(w,null),i&&e.createElement(C,null,i))),Qa=({label:t,name:a,checked:l,className:n,isDisabled:r,onChange:i,value:o,isRectangle:s,inputDataTestId:c,siteType:m})=>e.createElement(k,{className:n,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":t,"data-theme":m},e.createElement("input",{type:"checkbox",checked:l,name:a,onChange:()=>i(o,!l),disabled:r,value:o,id:`${a}-${o}`,"data-label-text":t,"data-testid":c}),!s&&e.createElement("label",{htmlFor:`${a}-${o}`},t)),Ja=t=>e.createElement("svg",Object.assign({},t,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),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"})),el=t=>e.createElement("svg",Object.assign({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),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"})),tl=t=>{const a=O();return e.createElement("svg",Object.assign({},t,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),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"})))},al=({gap:a=2,size:l=24,star:n,totalStars:r=5,onSelect:i,hideEmptyStars:o,style:s,className:c})=>{const m=Math.floor(n),d=n-m>=.5?1:0,[g,u]=t(null),p=g||m,h=g?0:d;return e.createElement(N,{"data-selectable":!!i,style:Object.assign({"--gap":a,"--star-size":l},s),className:c},Array.from({length:o?m+d:r}).map(((t,a)=>{const l=()=>!!i&&u(a+1),n=()=>!!i&&u(null);return a+1<=p?e.createElement(el,{key:a,onClick:()=>null==i?void 0:i(a+1),onMouseOver:l,onMouseLeave:n}):a+1===p+h?e.createElement(tl,{key:a,onClick:()=>null==i?void 0:i(a+1),onMouseOver:l,onMouseLeave:n}):e.createElement(Ja,{key:a,onClick:()=>null==i?void 0:i(a+1),onMouseOver:l,onMouseLeave:n})})))},ll=({label:r,availableValue:i,styles:o})=>{const{t:s}=ca(),{classes:c,cx:m}=x(void 0,{name:"GenderOptionControl",styles:o}),[d,g]=t(),u=a(null),p=l((()=>[{value:"male",label:s("gender.male"),icon:F.getAssetPath("health-tools/male-icon.svg")},{value:"female",label:s("gender.female"),icon:F.getAssetPath("health-tools/female-icon.svg")}]),[]);return n((()=>{g(i)}),[i]),e.createElement(Ut,{ref:u,className:c.root},e.createElement(qt.Group,{className:"radio-group",label:e.createElement(L,{size:"s4",weight:"semiBold",span:!0,color:"gray.6"},r),size:"lg",classNames:{error:c.groupErr}},e.createElement(Kt,{className:m(c.wrapper)},p.map((t=>e.createElement(qt,Object.assign({className:"gender-item",classNames:{root:c.itemRoot,labelWrapper:c.itemLabelWrapper,label:c.itemLabel,inner:c.itemInner},key:t.value,value:t.value},d&&t.value!==d&&{disabled:!0},{label:e.createElement(Kt,{gap:Xt(8),align:"center",justify:"center",sx:{zIndex:0}},e.createElement("img",{src:t.icon,className:"gender-image",alt:"female",loading:"lazy"}),e.createElement(L,{size:"p3"},t.label))})))))))};var nl="PiqKaXk",rl="HgbW6-m",il="_6lkfLYy",ol="j7c-onH";const sl=({avatarImg:t,authorName:a,authorLink:l,uploadTime:n,size:r})=>e.createElement("div",{className:ol},e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":r},t),e.createElement("div",{className:"poster","data-is-disabled-url":!l},e.createElement(o,{size:"lg"===r?"p3":"p4"},e.createElement("a",{href:l},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,n))))),cl=({isMobile:t,avatarImg:a,name:l,link:n,size:r="lg",specialty:i})=>e.createElement("div",{className:ol},e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":r},a),e.createElement("div",{className:"expert","data-is-disabled-url":!n},t?e.createElement("a",{href:n},"lg"===r?e.createElement(e.Fragment,null,e.createElement(B,{tag:"h6",className:"expert__name",color:H.colors.gray600},l),e.createElement(o,{color:H.colors.gray500,size:"p3",className:"specialty"},i)):e.createElement(e.Fragment,null,e.createElement(B,{tag:"h6",className:"expert__name",color:H.colors.gray600},l))):e.createElement("a",{href:n},"lg"===r?e.createElement(e.Fragment,null,e.createElement(B,{tag:"h6",className:"expert__name",color:H.colors.gray600},l),e.createElement(o,{color:H.colors.gray500,size:"p3",className:"specialty"},i)):e.createElement(e.Fragment,null,e.createElement("h6",{color:H.colors.gray600,className:`${nl} expert__name`},l),e.createElement(o,{color:H.colors.gray500,size:"p4",className:"specialty"},i)))))),ml=({articleLink:t,authorLink:a,authorName:l,avatarImg:n,banner:r,categoryLink:i,categoryName:s,className:c,dataEventActionForBanner:m,dataEventActionForBookmark:d,dataEventActionForCategory:g,dataEventActionForTitle:u,dataEventCategoryForBanner:p,dataEventCategoryForBookmark:h,dataEventCategoryForCategory:v,dataEventCategoryForTitle:E,dataEventLabelForBanner:y,dataEventLabelForBookmark:b,dataEventLabelForCategory:f,dataEventLabelForTitle:w,direction:C="horizontal",hasAffiliate:k,isBookmark:N=!1,isBookmarkDisplayed:x=!0,isMobile:L=!0,onBookmark:D,onClickCategoryName:M,section:z="normal",size:A="md",specialty:S,style:j,styleBanner:_,styleLabel:I,styleTitle:T,text:P,title:O,type:H="author",uploadTime:G,articleLinkTarget:Z,isPremium:R})=>{const U=e=>{e.stopPropagation(),null==D||D()},q="lg"===A&&"expert"===H?"h4":"lg"===A&&"home"===z?L?"h4":"h3":"lg"===A?"h4":"h5",K="lg"===A?"p3":"p4",X=L||"home"!==z||"lg"!==A||"author"!==H?"c2":"c1";return e.createElement("article",{className:`${il} ${c||""}`,"data-size":A,style:j,"data-direction":C,"data-is-expert":"expert"===H||void 0},e.createElement("div",{className:"banner",style:_},e.createElement("a",{className:rl,"data-event-category":p,"data-event-action":m,"data-event-label":y,href:t||"#",target:Z},r),R&&e.createElement("img",{loading:"lazy",className:"premium",src:F.getAssetPath("premium-crown.svg")}),k&&e.createElement($,null)),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(o,{style:I,className:"label",size:X,type:"caption"},e.createElement("a",{className:rl,"data-event-category":v,"data-event-action":g,"data-event-label":f,href:i||"#",onClick:M},s),x&&e.createElement("a",{className:"bookmark",onClick:U},N?e.createElement(V,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:b}):e.createElement(W,{dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:b}))),e.createElement(B,{tag:q,style:T,className:"title",as:"lg"===A?"h2":"h3"},e.createElement("a",{className:rl,"data-event-category":E,"data-event-action":u,"data-event-label":w,href:t||"#",target:Z},O)),P&&e.createElement("a",{href:t||"#",target:Z},e.createElement(o,{size:K,className:"text"},P))),e.createElement("div",{className:"footer"},"author"===H?e.createElement(sl,{size:A,avatarImg:n,authorName:l,authorLink:a,uploadTime:G,handleClick:U,isBookmarked:N,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:b}):e.createElement(cl,{size:A,isMobile:L,avatarImg:n,specialty:S,name:l,link:a,handleClick:U,isBookmarked:N,dataEventCategoryForBookmark:h,dataEventActionForBookmark:d,dataEventLabelForBookmark:b}))))},dl=t=>{var a,l,n,{article:r,author:i,authorAvatar:o,badge:s="",hideDescription:c=!1,isBookmarked:m=!1,onBookmark:d,time:g,tracking:u}=t,p=Zt(t,["article","author","authorAvatar","badge","hideDescription","isBookmarked","onBookmark","time","tracking"]);const{isMobile:h}=D();return console.log({article:r}),e.createElement(Yt,Object.assign({padding:0,radius:0,sx:{display:"flex",flexDirection:"row",gap:24}},p),e.createElement(Yt.Section,{w:"100%",h:"100%",miw:264,m:0},e.createElement("img",{src:(h?r.featureImageMobile:r.featureImage)||r.featureImage,alt:r.postName,style:{width:"100%"},loading:"lazy"})),e.createElement(Yt.Section,null,e.createElement(Qt,{position:"apart",mt:16,mb:4},e.createElement(M,{href:(null===(a=null==r?void 0:r.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(L,{size:"p4",color:"blue.6"},null===(l=null==r?void 0:r.primaryCategory)||void 0===l?void 0:l.displayName)),e.createElement(Ut,{sx:{cursor:"pointer"},role:"button",onClick:d},m?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#595959"})):e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},null==u?void 0:u.bookmark),e.createElement("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})))),e.createElement(L,{size:c?"s2":"s1",mb:8,weight:"semiBold"},r.postTitle||r.postName||""),!c&&e.createElement(L,{size:"p2",mb:16,lineClamp:3},ea(r.excerpt||r.description||(null===(n=r.postContent)||void 0===n?void 0:n.split("\r\n")[0])||"")),e.createElement(Kt,{gap:12,align:"center"},e.createElement(z,{size:32,src:o,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:s,alt:""})}},"A"),e.createElement(L,{size:"n1",c:"gray.6"},i," • ",g))))},gl=648/440,ul=1.5,pl=t=>{var a,n,r,{article:i,author:o,authorAvatar:s,badge:c="",bannerImageWrapProps:m,hideDescription:d=!1,isBookmarked:g=!1,onBookmark:u,time:p,tracking:h,classNames:v,styles:E,unstyled:y,className:b}=t,f=Zt(t,["article","author","authorAvatar","badge","bannerImageWrapProps","hideDescription","isBookmarked","onBookmark","time","tracking","classNames","styles","unstyled","className"]);const{isMobile:w}=D(),{classes:C,cx:k}=G({},{name:"ArticleCard",classNames:v,styles:E,unstyled:y});console.log({article:i});const N=l((()=>d?ul:gl),[d]);return e.createElement(Yt,Object.assign({className:k(C.root,b),padding:"lg",radius:0},f),e.createElement(Yt.Section,{className:C.image},e.createElement(A,Object.assign({ratio:N},m),e.createElement("img",{src:(w?i.featureImageMobile:i.featureImage)||i.featureImage,alt:i.postName,style:{objectFit:"cover"}}))),e.createElement(Yt.Section,null,e.createElement(Qt,{position:"apart",mt:16,mb:4},e.createElement(M,{className:C.category,href:(null===(a=null==i?void 0:i.primaryCategory)||void 0===a?void 0:a.permalink)||"#"},e.createElement(L,{size:"p4",color:"blue.6"},null===(n=null==i?void 0:i.primaryCategory)||void 0===n?void 0:n.displayName)),e.createElement(Ut,{sx:{cursor:"pointer"},role:"button",onClick:u},g?e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},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",xmlns:"http://www.w3.org/2000/svg"},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(L,{className:C.title,size:d?"s2":"s1",mb:8,weight:"semiBold"},i.postTitle||i.postName||""),!d&&e.createElement(L,{className:C.description,size:"p2",mb:16,lineClamp:3},ea(i.excerpt||i.description||(null===(r=i.postContent)||void 0===r?void 0:r.split("\r\n")[0])||"")),e.createElement(Kt,{className:C.author,gap:12,align:"center"},e.createElement(z,{size:32,src:s,withIndicator:!0,indicatorConfig:{offset:5,size:18,label:e.createElement("img",{loading:"lazy",src:c,alt:""})}},"A"),e.createElement(L,{size:"n1",c:"gray.6"},o," • ",p))))},hl=t=>{var{variant:a="vertical"}=t,l=Zt(t,["variant"]);return"horizontal"===a?e.createElement(dl,Object.assign({},l)):e.createElement(pl,Object.assign({},l))},vl=t=>{var{category:a,imgBanner:l,label:n,className:r,style:i,href:o="",dataEventCategory:s,dataEventAction:c,dataEventLabel:m}=t,d=Zt(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(Z,Object.assign({"data-event-category":s,"data-event-action":c,"data-event-label":m,className:r,style:i,href:g},(null==a?void 0:a.customizedUrl)&&!oa(a.customizedUrl)&&{target:"_blank"},{onClick:e=>{""===g&&e.preventDefault()}},d),e.createElement("div",{className:"banner"},l),e.createElement("div",{className:"content"},e.createElement(L,{className:"category_name",size:"sm",weight:"bold"},(null==a?void 0:a.displayName)||n||"")))},El=({name:t,values:a=[],onChanges:l,options:n=[],className:r,type:i="vertical",isDisabled:o,isRectangle:s})=>{const c=(e,t)=>{const n=a.slice();if(t)n.push(e);else{const t=n.findIndex((t=>t===e));n.splice(t,1)}l&&l(n)};return e.createElement(R,{className:r,"data-type":i,"data-is-rectangle":s||void 0},n.map(((l,n)=>e.createElement(Qa,{label:l.label,name:t,key:`${n}-${l.value}`,checked:a.includes(l.value),value:l.value,isDisabled:o||l.disabled,onChange:!o&&c,isRectangle:s}))))},yl=({size:t,iconPosition:a,className:l,children:n,icon:r})=>e.createElement(U,{className:l,"data-size":t,"data-icon-position":a},"left"===a&&r,n,"right"===a&&r),bl=({type:a,numberOfStep:l,activeStep:r,labelPrefix:o,detailSteps:s,className:c,onChange:m})=>{const[d,g]=t(0),u=t=>{var{trackClassName:a}=t,l=Zt(t,["trackClassName"]);return e.createElement(Y,Object.assign({},l,{className:a}),e.createElement(Q,null))},p=e.createElement(q,{className:c+" progress-bar"},e.createElement(u,null),e.createElement((({trackLength:t,activeStep:a,labelPrefix:n="Step",onChange:r})=>e.createElement(e.Fragment,null,Array.from({length:l},((e,t)=>t)).map(((i,o)=>e.createElement(J,{"data-is-active":o===a,"data-label":o,style:{left:o*t/(l-1)},onClick:()=>{r&&r(o)},key:o},o+1,e.createElement(ee,{"data-step-passed":o<=a},n+" "+(o+1))))))),{trackLength:d,activeStep:r,labelPrefix:o,onChange:m})),h=e.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5.5 9.5"},e.createElement("title",null,"chevron-right"),e.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),v=e.createElement(K,null,s&&Array.from({length:s.length},((e,t)=>t)).map(((t,a)=>{var l;return e.createElement(X,{key:a,"data-selected":a===r,onClick:()=>{m&&m(a)}},null===(l=s[a])||void 0===l?void 0:l.text," ",a<s.length-1&&h)}))),E=e.createElement(q,{className:c+" progress-bar"},e.createElement((({detailSteps:t,activeStep:a,onChange:l})=>e.createElement(e.Fragment,null,Array.from({length:t.length},((e,t)=>t)).map(((n,r)=>e.createElement(te,{key:r,style:{left:100/t.length*r+"%",width:100/t.length+"%"},onClick:()=>{l&&l(r)}},t[r].icon?e.createElement(ae,{onClick:()=>{l&&l(r)}},t[r].icon):e.createElement(le,{"data-is-active":r===a,"data-label":n,onClick:()=>{l&&l(r)},key:r},r+1),e.createElement(ne,{"data-step-passed":r<a+1},t[r].text,e.createElement(re,null,t[r].description)),r<t.length-1&&e.createElement(u,{"data-step-passed":r<a,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:r,detailSteps:s,onChange:m})),y=i(sa((()=>{const e=document.querySelector(".progress-bar");e&&g(e.offsetWidth)}),1e3),[]);return n((()=>{const e=document.querySelector(".progress-bar");return g(null==e?void 0:e.offsetWidth),window.addEventListener("resize",y,{passive:!0}),()=>{window.removeEventListener("resize",y)}}),[]),"step-track"===a&&p||"breadcrumb"===a&&v||"detail-track"===a&&E};var fl=Object.freeze({__proto__:null,SideMenu:ie,SideHeader:oe,UserInfo:se,MenuLink:ce});const wl=({status:t})=>"inActive"===t?e.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},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",xmlns:"http://www.w3.org/2000/svg"},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",xmlns:"http://www.w3.org/2000/svg"},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",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})),Cl=({row:l=2,column:r=3,isDotsShown:i=!0,isImageGalleryShown:o=!1,mode:s="infinity",type:c="separated",distanceOverlappedLeft:m={amount:0,unit:"pixel"},children:d,className:g,isProgressShown:u=!1,statusChildren:p,isArrowShown:h=!1,classNameLeftArrow:v,classNameRightArrow:E,dataEventCategory:y,dataEventAction:b,dataEventLabel:f,onChangePage:w,page:C,customPageWidth:k,scheme:N="hellosites",arrowType:x="Discover"})=>{const L="number"==typeof C,[B,D]=t(L?C:0),M=[];e.Children.map(d,((t,a)=>{a%(l*r)==0&&M.push([]),M[M.length-1].push(e.cloneElement(t))}));const z=a(),A=a(0),S=e=>{if(!z.current)return;const{clientWidth:t}=z.current,a=k||t,l="intertwined"===c?"percentage"===m.unit?e*a+m.amount/100*a*e:e*a+m.amount*a*e:e*a;z.current.scrollTo({top:0,left:l,behavior:"smooth"}),A.current=e,D(e),w&&w(e)};n((()=>{"number"==typeof C&&(e=>{if(!z.current)return;const{clientWidth:t}=z.current,a=k||t,l="intertwined"===c?"percentage"===m.unit?e*a+m.amount/100*a*e:e*a+m.amount*a*e:e*a;z.current.scrollTo({top:0,left:l,behavior:"smooth"}),A.current=e,D(e)})(C)}),[C]);const j=e=>{if(!z.current)return;const{clientWidth:t}=z.current,a=k||t;let l;l=0===B?0:B*a,"forward"===e&&(l===a*(M.length-1)?(D(M.length-1),l=a*(M.length-1),w&&w(M.length-1)):(D(B+1),l+=a,w&&w(B+1)),z.current.scrollTo({top:0,left:l,behavior:"smooth"})),"back"===e&&(0===l?(D(0),w&&w(0),l=0):(D(B-1),w&&w(B-1),l-=a),z.current.scrollTo({top:0,left:l,behavior:"smooth"}))},_=sa((()=>{if("infinity"===s){if(!z.current)return;const{clientWidth:e,scrollLeft:t}=z.current,a=k||e,l=Math.floor(t/a);D(l),w&&w(l)}}),400);return n((()=>{if("snapped"===s){let e,t,a,l,n,r,i=!1;const o=z.current,s=(r,s)=>{i=!0,a=!1,l=!1,e=r-o.offsetLeft,t=s-o.offsetTop,n=o.scrollLeft},d=e=>{s(e.pageX,e.pageY)},g=e=>{s(e.touches[0].pageX,e.touches[0].pageY)},u=()=>{if(i=!1,a=!1,l=!1,!z.current)return;const{clientWidth:e}=z.current,t=k||e,n="ltr"===r?0!==A.current?A.current-1:A.current:"rtl"===r&&A.current<M.length-1?A.current+1:A.current,o="intertwined"===c?"percentage"===m.unit?n*t+m.amount/100*t*n:n*t+m.amount*t*n:n*t;z.current.scrollTo({top:0,left:o,behavior:"smooth"}),r="none",A.current!==n&&(A.current=n,D(n),w&&w(n))},p=(s,c)=>{if(!i)return;const m=s-o.offsetLeft,d=c-o.offsetTop,g=m-e,u=d-t;a||l||!(u>20||u<-20)||(a=!0),!a&&(g>20||g<-20)&&(l=!0,o.scrollLeft=n-g,g>0&&(r="ltr"),g<0&&(r="rtl"),0===g&&(r="none"))},h=e=>{l&&e.preventDefault(),p(e.pageX,e.pageY)},v=e=>{l&&e.preventDefault(),p(e.touches[0].pageX,e.touches[0].pageY)};return null==o||o.addEventListener("mousedown",d,{passive:!0}),null==o||o.addEventListener("touchstart",g,{passive:!0}),window.addEventListener("mouseup",u,{passive:!0}),window.addEventListener("touchend",u,{passive:!0}),null==o||o.addEventListener("mousemove",h,{passive:!0}),null==o||o.addEventListener("touchmove",v,{passive:!0}),()=>{null==o||o.removeEventListener("mousedown",d),null==o||o.removeEventListener("touchstart",g),window.removeEventListener("mouseup",u),window.removeEventListener("touchend",u),null==o||o.removeEventListener("mousemove",h),null==o||o.removeEventListener("touchmove",v)}}}),[]),e.createElement(me,{className:g,"data-row":l,onScroll:_},h&&B>0&&e.createElement("div",{className:`${v} arrow-left`,onClick:()=>j("back"),"data-event-category":y,"data-event-action":b,"data-event-label":f},"Care"===x?e.createElement("svg",{xmlns:"http://www.w3.org/2000/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",xmlns:"http://www.w3.org/2000/svg"},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"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9997 11.1109L11.1108 15.9998L15.9997 20.8887",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),e.createElement("div",{ref:z,className:"container",style:{overflowX:"snapped"===s||h?"hidden":"scroll"}},M.map(((t,a)=>{let n=0;for(let e=0;e<a;e++)n+=M[e].length;return e.createElement("div",{key:a,className:"section",style:{marginLeft:"intertwined"===c&&0!==a?m.amount+""+("percentage"===m.unit?"%":"px"):"0px"}},1===l&&u&&e.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${r}, 1fr)`}},t.map(((l,r)=>{const i=n+r,o=p.find((e=>e.index===i));return e.createElement("div",{className:"items-progress",key:r},0===r&&0===a?e.createElement("div",{className:"line",style:{visibility:"hidden"}}):e.createElement("div",{className:"line"}),e.createElement("div",{className:"icon-status"},e.createElement(wl,{status:null==o?void 0:o.status})),a===M.length-1&&r===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(${r}, 1fr)`,gridTemplateRows:`repeat(${l}, 1fr)`}},t.map(((t,a)=>e.createElement(e.Fragment,{key:a},e.createElement("div",{className:"item-grid",key:a},t))))))}))),h&&B<M.length-1&&e.createElement("div",{className:`${E} arrow-right`,onClick:()=>j("forward"),"data-event-category":y,"data-event-action":b,"data-event-label":f}," ","Care"===x?e.createElement("svg",{xmlns:"http://www.w3.org/2000/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",xmlns:"http://www.w3.org/2000/svg"},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"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M15.9998 20.8891L20.8887 16.0002L15.9998 11.1113",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===N?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),i&&e.createElement("ul",{className:"bullet-nav"},M.map(((t,a)=>e.createElement("li",{key:a,className:"bullet-nav__item "},e.createElement("p",{onClick:()=>S(a),className:`bullet-nav__link scroll ${B==a?"active":null}`,"data-scheme":N}))))),o&&e.createElement("div",{className:"image-gallery-wrapper","data-test":M.length},M.slice(0,3).map(((t,a)=>e.createElement("div",{className:`image-block ${B==a?"active":null}`,key:a,onClick:()=>S(a),"data-scheme":N},t)))))},kl=({type:t,description:a,value:l,withIcon:n,isInACard:r,cardColor:i,className:o})=>e.createElement(de,{className:o,"data-size":t,"data-is-in-card":"big"===t&&r,"data-card-color":i},e.createElement(ge,null,"small"===t&&e.createElement(ue,{"data-color":i}),a),e.createElement(pe,{"data-size":t},"small"!==t&&n,l));var Nl=Object.freeze({__proto__:null,Table:he,Cell:ve,Head:Ee,Row:ye,Body:be});const xl=({style:a,initialTab:l,tabContent:r,onChange:i,className:o,dataEventCategory:s,dataEventAction:c,dataEventLabel:m,id:d,styles:g})=>{const{classes:u,cx:p,theme:h}=fe(void 0,{name:"Tabs",styles:g}),[v,E]=t(l||0);return n((()=>{E(l)}),[l]),e.createElement("ul",{style:a,className:p(u.root,o),role:"tablist",id:d},r.map(((t,a)=>e.createElement("li",{className:`${u.item} ${v===a?"active":""}`,"aria-selected":v===a,role:"tab",onClick:()=>{E(a),i&&i(a)},onKeyDown:e=>{"Enter"===e.key&&(E(a),i&&i(a))},key:a,"data-event-category":t.dataEventCategory||s,"data-event-action":t.dataEventAction||c,"data-event-label":t.dataEventLabel||m,tabIndex:0,"data-testid":t.dataTestid},e.createElement("div",{className:u.itemInner},t.icon&&e.createElement("div",{className:u.icon},t.icon),e.createElement(L,{className:u.label,size:t.textSize||"sm",weight:t.textType||"bold",color:v===a?h.fn.primaryColor():t.textColor||h.colors.gray[4],dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name))))))},Ll=({thankyou:t,thankyouSubtitle:a,className:l,style:n})=>e.createElement(we,{className:l,style:n},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(Ce,null,e.createElement("div",{className:"survey-thankyou-wrapper-inner"},e.createElement("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",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:H.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(B,{className:"survey-thankyou-title",tag:"h3"},t),a&&e.createElement(o,{className:"survey-thankyou-subtitle",size:"p3"},a))))),Bl=({items:a,className:l,style:r,backgroundPanelStyle:i,isOpen:o,onOpen:s,onClose:c,disableBackdropClick:m,siteType:d="hb",animationType:g="zoom",zIndex:u=300})=>{const[p,h]=t(!!o);n((()=>{h(!!o)}),[o]);const v=()=>{h(!1),c&&c()};return e.createElement(ke,{style:r,className:l,"data-floatmenu-open":p,"data-site-type":d,"data-animation-type":g},e.createElement(Ne,{className:"float-button-group__panel",style:Object.assign({zIndex:u},i),onClick:m?void 0:v}),e.createElement(xe,{className:"float-button-group___content",style:{zIndex:u}},e.createElement(Le,null,a.map(((t,l)=>e.createElement(Be,{className:`float-item-button-${l}`,style:Object.assign(Object.assign({},"zoom"===g&&{bottom:64*(a.length-1-l),transitionDelay:De/a.length*(p?a.length-1-l:l)+"ms"}),"slide"===g&&{bottom:64*(a.length-1-l),transitionDelay:De/a.length*(p?l:a.length-1-l)+"ms"}),key:l,onClick:()=>{t.onClick(),t.keepMenuOnClick||h(!1)}},e.createElement(Me,{style:Object.assign({},"zoom"===g&&{transitionDelay:De/a.length*(p?a.length-1-l:l)+"ms"})},t.label),e.createElement(ze,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===g||"slide"===g)&&{transitionDelay:De/a.length*(p?a.length-1-l:l)+"ms"})},t.icon))))),e.createElement(Ae,{onClick:p?v:()=>{h(!0),s&&s()}})))},Dl=({className:t,policiesUrl:a,onAcceptClick:l,translations:n={acceptButton:"Accept",policiesButton:"Our Policies"},title:r="",description:i="",theme:o="helloSites",isOpen:s=!0,useDefaultPosition:c=!0,trackingAttributes:m})=>e.createElement(Se,{className:t,"data-theme":o,"data-is-open":s,"data-default-position":c},e.createElement(je,{"data-has-content":!!r},r),e.createElement(_e,{dangerouslySetInnerHTML:{__html:i}}),e.createElement(Ie,null,e.createElement(Te,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:l,"data-event-category":null==m?void 0:m.dataEventCategory,"data-event-action":null==m?void 0:m.dataEventAction,"data-event-label":null==m?void 0:m.dataEventLabel},n.acceptButton),e.createElement(Pe,{href:a},n.policiesButton))),Ml=({SEOData:t={},locale:a="vi-VN",routerPathname:n,routerQuery:r,nextHead:i,siteType:o,seoCustom:s,userId:c,forcedCanonicalUrl:m})=>{var d,g,u,p,h,v,E,y,b,f,w,C;const{totalPages:k,currentPage:N,SEOTitle:x="",SEODescription:L="",SEOImage:B,seoType:D,SEOImageWidth:M,SEOImageHeight:z,customMetaData:A=[],isIndexable:S=!0,hasNoCanonical:j=!1}=t,_=S&&ia?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:I}=process.env;let T=t.canonicalUrl||n;Object.keys(r).forEach((e=>{const t=r[e];t&&Array.isArray(t)&&(T=T.replace(`[...${e}]`,t.join("/")))}));const P=a||"en-PH",O="helloSites"===o?ta[P]:"www.marrybaby.vn",F=T.endsWith("/")?"":"/",H=l((()=>{var l,n,r,i,o,s,c;let m="";if(t.apiMetaData&&"string"==typeof t.apiMetaData){const d=null===(l=t.apiMetaData)||void 0===l?void 0:l.match(/<title.*?>(.*)<\/title>/),g=` - Page ${N} of ${k}`,u=N&&1!==N&&d?t.apiMetaData.replace(d[0],d[0].includes("-")?d[0].replace("-",g+" - "):`<title>${d[1].concat(g)}</title>`).replace(`<link rel="canonical" href="https://${O}${T}${F}" />`,`<link rel="canonical" href="https://${O}${T}${F}?page=${N}" />`):t.apiMetaData;if(m=Oe(u,{trim:!0}),!m.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 l=`https://${O}/images/${a}.png`;m=[...m,e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(n=t.openGraph)||void 0===n?void 0:n.image)||B||l||""}),e.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(r=t.openGraph)||void 0===r?void 0:r.image)||B||l}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(i=t.openGraph)||void 0===i?void 0:i.imageWidth)&&String(null===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)||M&&String(M)||"1200"}),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)||z&&String(z)||"630"})]}}return m}),[t.apiMetaData,t.openGraph,B,z,M,N,T,k,a,O]),$=`https://${O}/images/${a}.png`;return e.createElement(i,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:_}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),A.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:P}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!H&&e.createElement(e.Fragment,null,"helloSites"===o?e.createElement("title",null,s?x:x+" - "+(null===(d=aa[a])||void 0===d?void 0:d.SITE_NAME)):e.createElement("title",null,x),!j&&e.createElement("link",{rel:"canonical",href:`https://${O}${T}`}),e.createElement("meta",{name:"description",content:L||(null===(g=t.openGraph)||void 0===g?void 0:g.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:D||"website"}),e.createElement("meta",{property:"og:title",content:(null===(u=t.openGraph)||void 0===u?void 0:u.title)||x}),e.createElement("meta",{property:"og:description",content:(null===(p=t.openGraph)||void 0===p?void 0:p.description)||L}),e.createElement("meta",{property:"og:url",content:`https://${O}${T}`}),e.createElement("meta",{property:"og:site_name",content:`https://${O}`}),e.createElement("meta",{property:"og:image",content:(null===(h=t.openGraph)||void 0===h?void 0:h.image)||B||$||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(v=t.openGraph)||void 0===v?void 0:v.image)||B||$}),e.createElement("meta",{property:"og:image:width",content:(null===(E=t.openGraph)||void 0===E?void 0:E.imageWidth)&&String(null===(y=t.openGraph)||void 0===y?void 0:y.imageWidth)||M&&String(M)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(b=t.openGraph)||void 0===b?void 0:b.imageHeight)&&String(null===(f=t.openGraph)||void 0===f?void 0:f.imageHeight)||z&&String(z)||"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)||x}),e.createElement("meta",{name:"twitter:description",content:L}),e.createElement("meta",{name:"twitter:image",content:(null===(C=t.twitter)||void 0===C?void 0:C.image)||B})),("helloSites"===o?la[P]||[]:la.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(H)&&m?H.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):H,m&&e.createElement("link",{rel:"canonical",href:m}),!t.hasNoAmp&&"vi-VN"!==a&&e.createElement("link",{rel:"amphtml",href:`https://${O}${T}${F}?amp=1`}),c&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${c}'});`}}):null)},zl=({locale:a,onClick:l,siteType:n,pageUrl:r})=>{const{t:i}=ca(),[o,s]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(Fe,{className:"input-form","data-is-side":!0},"marryBaby"===n?e.createElement(He,{label:i("dueDatePage.conceptionDate"),name:"date",size:"md",value:$e(o),CustomInput:e.createElement(We,{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(Ca,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:o&&ra(o).format(S)}))}),actionIcon:e.createElement(ka.CalendarMB,{size:32})}):e.createElement(Ca,{label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600,style:{marginBottom:"9px",flex:"1"}},i("dueDatePage.conceptionDate")),value:$e(o),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(We,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:$e(o)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:o,displayDateFormat:xa,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement(j,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===n?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,onClick:()=>{l(Ve(o),`${na.type}=1&sd=${ma(o,Ge)}&${na.additional}= `)},role:"button"},i("dueDatePage.lastPeriod.calculate")))},Al=({locale:a,onClick:l,siteType:n,pageUrl:r})=>{const{t:i}=ca(),[o,s]=t(new Date),[c,m]=t("3");return e.createElement(e.Fragment,null,e.createElement(Fe,{className:"input-form","data-is-side":!0},"marryBaby"===n?e.createElement(He,{label:i("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:$e(o),CustomInput:e.createElement(We,{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(Ca,Object.assign({className:"due-date-input",name:"birthday",size:"md"},t,{value:o&&ra(o).format(S)}))}),actionIcon:e.createElement(ka.CalendarMB,{size:32})}):e.createElement(Ca,{label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray700,style:{marginBottom:"9px",flex:"1"}},i("dueDatePage.ivf.transferDate")),value:$e(o),name:"date",size:"md",className:"due-date-input",CustomInput:e.createElement(We,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:$e(o)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:o,displayDateFormat:xa,onChange:e=>{s(e)},placeholder:"placeholder"})})),e.createElement("div",{style:{width:"100%"}},e.createElement(Ze,{id:"radio-transfer-date",type:"circle",direction:"vertical",size:"small",group:"group1",value:c,onChange:e=>m(e),options:[{value:"3",label:i("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:i("dueDatePage.ivf.transferDateRadio",{number:5})}]})),e.createElement(j,{className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===n?"secondary":"primary",dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,onClick:()=>{l(Re(o,Number(c)),`${na.type}=2&${na.startDate}=${ma(o,Ge)}&${na.additional}=${c}`)},role:"button"},i("dueDatePage.lastPeriod.calculate")))},Sl=({locale:a,onClick:l,siteType:n,pageUrl:r})=>{const{t:i}=ca(),[o,s]=t(28),[c,m]=t(new Date);return e.createElement(e.Fragment,null,e.createElement(Fe,{className:"input-form","data-is-side":!0},"marryBaby"===n?e.createElement(He,{label:i("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:$e(c),CustomInput:e.createElement(We,{onChange:e=>{m(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:t=>e.createElement(Ca,Object.assign({name:"birthday",size:"md"},t,{value:c&&ra(c).format(S)}))}),actionIcon:e.createElement(ka.CalendarMB,{size:32})}):e.createElement(Ca,{className:"input-section due-date-input",label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600,style:{marginBottom:"9px",flex:"1"}},i("dueDatePage.lastPeriod.lastPeriodLabel")),value:$e(c),name:"date",size:"md",CustomInput:e.createElement(We,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:$e(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:c,displayDateFormat:xa,onChange:e=>{m(e)},placeholder:"placeholder"})})),e.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===n?"marryBaby":""},"marryBaby"===n?e.createElement(La,{type:"bodytext-3",color:H.mbColors.midGray},i("dueDatePage.lastPeriod.periodLengthLabel")):e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600,style:{marginBottom:"0.5rem"}},i("dueDatePage.lastPeriod.periodLengthLabel")),e.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===n&&e.createElement(L,{size:"s3",weight:"semiBold",color:H.colors.gray600},o),e.createElement(Ba,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==n,withControl:"marryBaby"!==n,onChange:s,value:o,label:"marryBaby"!==n?void 0:null}))),e.createElement(j,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===n?"secondary":"primary",onClick:()=>l(Ue(c,o),`${na.type}=0&${na.startDate}=${ma(c,Ge)}&${na.additional}=${o}`),role:"button"},i("dueDatePage.lastPeriod.calculate")))},jl=({onSubmitDueDate:a,locale:n,isSide:r,siteType:i})=>{const{t:o}=ca(),[s,c]=t(qe.lastPeriod),m=[{value:qe.lastPeriod,label:o("dueDatePage.lastPeriod")},{value:qe.conception,label:o("dueDatePage.conceptionDate")},{value:qe.IVF,label:o("dueDatePage.ivf")}],d=l((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement(Ke,null,e.createElement(Xe,{className:"input-form input-section","data-is-side":!0},"marryBaby"===i?e.createElement(Ye,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:m,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:m[s],onChange:e=>{c(e.value)}}):e.createElement(e.Fragment,null,e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.calculationMethod")),e.createElement(Qe,{"data-is-side":r},e.createElement(Je,{options:m,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:m[s],onChange:e=>{c(e.value)}})))),s===qe.lastPeriod?e.createElement(Sl,{locale:n,onClick:a,isSide:r,siteType:i,pageUrl:d}):null,s===qe.conception?e.createElement(zl,{locale:n,onClick:a,isSide:r,siteType:i,pageUrl:d}):null,s===qe.IVF?e.createElement(Al,{locale:n,onClick:a,isSide:r,siteType:i,pageUrl:d}):null)},_l=({isMobile:t,locale:a,onSubmitDueDate:l,dueDatePageInfo:n,expertUrl:r,isSide:i,siteType:o})=>{var s;const{t:c}=ca();return e.createElement(et,{"data-is-side":i,"data-site":o},e.createElement(tt,{isSide:i,siteType:o,bannerColor:"marryBaby"===o&&H.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==n?void 0:n.featured_image)||F.getAssetPath("health-tools/due-date-icon.svg"),loading:"lazy"}),heading:c("healthTools.dueDateCalculator"),medicalReview:{link:r,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:t}),e.createElement(at,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":i},e.createElement(jl,{siteType:o,locale:a,onSubmitDueDate:l,isSide:i})))};function Il({weight:e,height:t}){const a=t/100,l=e;return Math.round(l/(a*a)*10)/10}const Tl=({value:a,onChange:r,onSubmit:i,disabled:o,bmiGenerated:s,bmiUnit:c,locale:m,isSide:d})=>{var g,u,p,h;const[v,E]=t(!1),{control:y,handleSubmit:b,setValue:f,watch:w}=Da(),C=w(),{t:k}=ca(),{gender:N=!1,age:x=!1,height:B=!1,weight:D=!1,objective:M=!0}=o||{},{getHealthToolLink:z}=za(m),A=l((()=>z(_.OVULATION)),[z]),S=l((()=>[{value:"lose-weight",label:k("bmi.objective.loseWeight")},{value:"maintain-weight",label:k("bmi.objective.maintainWeight")},{value:"gain-weight",label:k("bmi.objective.gainWeight")}]),[]),j=()=>{E(!0)};return n((()=>{Object.keys(a||{}).forEach((e=>{f(e,null==a?void 0:a[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[a]),n((()=>{r&&r(C)}),[C]),e.createElement(lt,null,e.createElement("form",{onSubmit:b((e=>Rt(void 0,void 0,void 0,(function*(){const t=c.heightConvert(e.height),a=c.weightConvert(e.weight),l={gender:e.gender,age:e.age,height:t,weight:a,bmi:Il({height:t,weight:a})};M||(l.objective=e.objective),j(),i&&i(l)}))),j)},!N&&e.createElement(nt,{"data-is-side":d},e.createElement(Ma,{name:"gender",control:y,defaultValue:"male",render:({field:{onChange:t}})=>e.createElement(ll,{label:k("bmi.selectGender"),defaultValue:"male",onChange:e=>t(e),styles:e=>({root:{[e.fn.largerThan("sm")]:{width:"calc((100% - 32px) * 2/3 + 16px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:Xt(16)}}})})})),e.createElement(rt,{"data-is-side":d},!x&&e.createElement(nt,null,e.createElement(Ma,{name:"age",control:y,rules:null===(g=s.age)||void 0===g?void 0:g.rule,render:({field:{name:t,value:a,onChange:l},fieldState:{error:n}})=>e.createElement(I.Number,{label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600},s.age.label),placeholder:k("healthtool.placeholder.age"),name:t,value:a,onChange:l,error:v?null==n?void 0:n.message:"",min:0})})),!B&&e.createElement(nt,null,e.createElement(Ma,{name:"height",control:y,rules:null===(u=s.height)||void 0===u?void 0:u.rule,render:({field:{name:t,value:a,onChange:l},fieldState:{error:n}})=>e.createElement(I.Number,{label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600},s.height.label),placeholder:k("pwg.placeholder.height"),name:t,value:a,onChange:l,error:v?null==n?void 0:n.message:"",min:0})})),!D&&e.createElement(nt,null,e.createElement(Ma,{name:"weight",control:y,rules:null===(p=s.weight)||void 0===p?void 0:p.rule,render:({field:{name:t,value:a,onChange:l},fieldState:{error:n}})=>e.createElement(I.Number,{label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600},s.weight.label),placeholder:k("pwg.placeholder.weight"),name:t,value:a,onChange:l,error:v?null==n?void 0:n.message:"",precision:1,min:0})})),!M&&e.createElement(nt,null,e.createElement(Ma,{name:"objective",control:y,defaultValue:"lose-weight",rules:null===(h=s.objective)||void 0===h?void 0:h.rule,render:({field:{name:t,value:a,onChange:l},fieldState:{error:n}})=>e.createElement(it,{size:"md",name:t,label:s.objective.label,CustomInput:e.createElement(Ze,{id:"bmi-objective",className:"bmi-objective",type:"circle",direction:"vertical",size:"small",group:"group1",options:S,value:a,onChange:l}),errorMessage:v?null==n?void 0:n.message:"",className:"bmi--input bmi--input-objective"})}))),e.createElement("div",{style:{display:"flex"}},e.createElement(ot,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${ta[m]}/${A}`,type:"submit"},k("bmi.submit")))))},Pl=({isMobile:t,onSubmit:a,bmiContent:l,isSide:n,bmiGenerated:r,bmiUnit:i,bmiLink:o,locale:s})=>{var c,m,d;const{t:g}=ca();return e.createElement(et,{"data-is-side":n},e.createElement(tt,{isSide:n,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==l?void 0:l.featured_image)||F.getAssetPath("health-tools/bmi.svg"),loading:"lazy"}),heading:g("bmi.heading"),medicalReview:{link:null===(c=null==l?void 0:l.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer,date:null===(d=null==l?void 0:l.reviewBy)||void 0===d?void 0:d.date},isMobile:t}),e.createElement(Na,null,e.createElement(at,{as:"div","data-is-side":n},o&&e.createElement(Tl,{onSubmit:a,bmiGenerated:r,locale:s,bmiUnit:i,isSide:n}))))},Ol=({isMobile:t,className:a,onSubmit:l,onError:n,schema:r,babyGrowthContent:i,siteType:o})=>{var s,c,m;return ca(),e.createElement(et,{"babyGrowthContent-is-mobile":t,"data-site":o},e.createElement(tt,{siteType:o,bannerUrl:F.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:F.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===o&&H.mbColors.mint,isEmbeded:!0,icon:e.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==i?void 0:i.featuredImage)||F.getAssetPath("health-tools/toolsIconBabyGrowth.svg"),loading:"lazy"}),heading:(null==i?void 0:i.title)||"",medicalReview:{link:null===(s=null==i?void 0:i.reviewBy)||void 0===s?void 0:s.link,reviewer:null===(c=null==i?void 0:i.reviewBy)||void 0===c?void 0:c.reviewer.trim(),date:null===(m=null==i?void 0:i.reviewBy)||void 0===m?void 0:m.date},isMobile:t}),e.createElement(st,{"data-theme":o},e.createElement(ct,{siteType:o,schema:r,className:a,onSubmit:l,onError:n})))},Fl=({babyPoopPage:t,onClickFindOut:a,currentUrl:l,isSide:n,direction:r="auto",sponsorLogo:i})=>{const{t:o}=ca(),s="mb"===Jt().other.template,{classes:c}=mt({isMarryBaby:s,isSide:n,direction:r},{name:"BabyPoopEmbed"}),{reviewedBy:m,reviewedDate:d}=t||{};return e.createElement("div",{className:c.root},e.createElement("div",{className:c.inner},e.createElement(B,{tag:"h3",as:"h2",color:!s&&"#284A75"},t.title),e.createElement("div",{className:c.content,"data-is-side":n},e.createElement(L,{size:"p3",className:"description"},t.description),!!m&&e.createElement("div",{className:c.reviewText},e.createElement("img",{src:F.getAssetPath("reviewerCheck.svg"),alt:"check",className:c.reviewTextIcon,loading:"lazy"}),e.createElement(L,{size:"p4",color:H.colors.gray600},o("categoryPage.info.reviewed")," ",e.createElement("a",{href:m.profile_url},m.display_name)," ",o("categoryPage.onDate",{date:d||""}))),e.createElement("div",{className:c.action},e.createElement(j,{className:c.btn,size:s?"lg":"md",variant:s?"secondary":"primary",onClick:a,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:l,style:{visibility:Boolean(a)?"visible":"hidden"}},o("babyPoop.findOut"))))),e.createElement("div",{className:c.thumbnail},e.createElement("img",{src:s?F.getAssetPath("baby-poop.svg"):null==t?void 0:t.featuredImage,alt:t.title,loading:"lazy"})),i&&e.createElement("img",{loading:"lazy",src:i,alt:"sponsor",className:c.sponsorLogo}))},Hl=({value:a,options:l,className:n,direction:r="horizontal",onChange:i,isDisabled:s})=>{const[c,m]=t(a);return e.createElement(dt,{className:n,"data-direction":r},l.map(((t,l)=>e.createElement(gt,{"data-selected":(a||c)===t.value,"data-disabled":s,key:`health-tool${l}`,onClick:()=>{var e;e=t.value,s||(m(e),i&&i(e))}},e.createElement("div",null,e.createElement("img",{src:(a||c)===t.value?t.imageActive:t.image,className:"gender-image",alt:"",loading:"lazy"}),t.label&&e.createElement(o,{type:"bold",className:"radio-group-item-heading",size:"label1"},t.label))))))},$l=({info:a,className:l,style:r,onChange:i,errorMessage:o={},locale:s})=>{const{t:c}=ca(),[m,d]=t(new Date),[g,u]=t({age:!1,rate:!1});return n((()=>{u({age:!1,rate:!1})}),[o]),e.createElement(ut,{style:r,className:l},e.createElement(Ca,{className:"input-section due-date-input",label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600,style:{marginBottom:"9px",flex:"1"}},c("targetHeartRate.ageInput")),value:$e(m),name:"date",size:"md",CustomInput:e.createElement(We,{customInput:t=>e.createElement("input",Object.assign({type:"date",className:"due-date-input"},t,{value:$e(m)})),disabledDays:{after:new Date(da(new Date,0))},locale:s,pickedDate:m,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{d(e),u((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:ma(new Date(e),Ge)});i&&i(t)})(e)},placeholder:"placeholder"}),errorMessage:g.age?"":o.age}))},Wl=({isSide:a,locale:r,thrContent:i,isMobile:o,info:s,inputErrorMessage:c,onFormChange:m,onSubmit:d})=>{var g,u,p;const{t:h}=ca(),{getHealthToolLink:v}=za(r),E=l((()=>v(_.THR)),[v]),[y,b]=t(!1),[f,w]=t("low_intensity"),[C,k]=t("male"),[N,x]=t(60),[B,D]=t({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),M=[{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}],z=[{value:"low_intensity",label:h("targetHeartRate.lowIntensity.title"),image:F.getAssetPath("/low.svg"),imageActive:F.getAssetPath("/low-active.svg"),content:h("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:h("targetHeartRate.moderateIntensity.title"),image:F.getAssetPath("/moderate.svg"),imageActive:F.getAssetPath("/moderate-active.svg"),content:h("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:h("targetHeartRate.aerobicZone.title"),image:F.getAssetPath("/aerobic.svg"),imageActive:F.getAssetPath("/aerobic-active.svg"),content:h("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:h("targetHeartRate.vigorousIntensity.title"),image:F.getAssetPath("/vigorous.svg"),imageActive:F.getAssetPath("/vigorous-active.svg"),content:h("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:h("targetHeartRate.maximumIntensity.title"),image:F.getAssetPath("/maximum.svg"),imageActive:F.getAssetPath("/maximum-active.svg"),content:h("targetHeartRate.maximumIntensity.note")}];return n((()=>{const e=((new Date).getTime()-new Date(null==s?void 0:s.age).getTime())/1e3;b(e>=567648e3);const t=M.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||M[0];D(t),x(60)}),[null==s?void 0:s.age]),e.createElement(et,{"data-is-side":a},e.createElement(tt,{isSide:a,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==i?void 0:i.featured_image)||F.getAssetPath("health-tools/target-heart-rate-icon.svg"),loading:"lazy"}),heading:h("targetHearRate.heading"),medicalReview:(null===(g=null==i?void 0:i.reviewedBy)||void 0===g?void 0:g.display_name)?{link:Aa(null==i?void 0:i.reviewedBy),reviewer:null===(u=null==i?void 0:i.reviewedBy)||void 0===u?void 0:u.display_name,date:null==i?void 0:i.reviewedDate}:void 0,isMobile:o}),e.createElement(Na,null,e.createElement(at,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":a},e.createElement(pt,{"data-is-side":a},e.createElement(ht,null,e.createElement(ll,{label:h("bmi.selectGender"),defaultValue:"male",onChange:e=>{k(e),x(60)},styles:e=>({root:{[e.fn.largerThan("sm")]:{width:"calc((100% - 32px) * 2/3 + 16px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:Xt(16)}}})}))),e.createElement(pt,null,e.createElement($l,{info:s,locale:r,errorMessage:c,onChange:m})),e.createElement("div",{className:"slider-heart-rate"},e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600},h("targetHeartRate.heartRateInput")),e.createElement("div",{className:"slider-outer-wrapper"},e.createElement(Ba,{containerStyle:{flex:1},min:"male"===C?B.rangeMale:B.rangeFemale,max:200,step:1,value:N,withControl:!0,onChange:x}))),y&&e.createElement(ht,null,e.createElement(vt,null,e.createElement(L,{size:"s4",style:{display:"inline-block",fontWeight:"bold",color:H.colors.gray600,marginBottom:"9px"}},h("targetHeartRate.selectActive")),e.createElement("div",{className:"card"},e.createElement(Hl,{options:z.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:f,onChange:e=>{w(e)},className:"gender-selector"})),f&&e.createElement("div",{className:"note"},e.createElement("img",{style:{height:"16px",width:"16px"},src:F.getAssetPath("/infoIcon.svg"),alt:"",loading:"lazy"}),e.createElement(L,{size:"s4",color:"#595959"},null===(p=z[z.findIndex((e=>e.value==f))||0])||void 0===p?void 0:p.content)),!f&&e.createElement("span",{style:{color:"#e64728"}},c.intensity)))),e.createElement("div",{style:{display:"flex"}},e.createElement(Et,{size:"lg",onClick:()=>{d(C,f,[N])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${ta[r]}/${E}`},h("bmi.submit")))))},Vl=({info:a,className:r,style:i,onChange:o,errorMessage:s={},locale:c,onClick:m,isSide:d})=>{const{t:g}=ca(),[u,p]=t({age:!1,height:!1,weight:!1}),{getHealthToolLink:h}=za(c),v=l((()=>h(_.OVULATION)),[h]),[E,y]=t("male"),b=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},f=e=>{var t,l;l=e=>{p((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("."))||l(t)};return n((()=>{o&&o(Object.assign(Object.assign({},a),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),n((()=>{p({age:!1,height:!1,weight:!1})}),[s]),e.createElement(yt,{style:i,className:r},e.createElement(bt,{"data-is-side":d},e.createElement(ll,{label:g("bmi.selectGender"),defaultValue:"male",onChange:e=>y(e),styles:e=>({root:{[e.fn.largerThan("sm")]:{width:"calc((100% - 32px) * 2/3 + 16px)"}},wrapper:{[e.fn.largerThan("sm")]:{gap:Xt(16)}}})})),e.createElement(ft,{"data-is-side":d},e.createElement(bt,null,e.createElement(I.Number,{label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600},g("bmi.ageInput")," ",e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray300,as:"span"},g("bmi.ageInput.desc"))),placeholder:g("healthtool.placeholder.age"),value:Number(a.age),onChange:e=>f(String(e)),error:u.age?"":s.age,min:0})),e.createElement(bt,null,e.createElement(I.Number,{label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600},g("bmi.heightInput")," ",e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray300,as:"span"},g("bmi.heightInput.desc"))),placeholder:g("pwg.placeholder.height"),value:Number(a.height),onChange:e=>{return t=String(e),void b(t,(e=>{p((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},a),{height:e});o&&o(t)}));var t},error:u.height?"":s.height,min:0})),e.createElement(bt,null,e.createElement(I.Number,{label:e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray600},g("bmi.weightInput")," ",e.createElement(L,{size:"s4",weight:"semiBold",color:H.colors.gray300,as:"span"},g("bmi.weightInput.desc"))),placeholder:g("pwg.placeholder.weight"),value:Number(a.weight),onChange:e=>{return t=String(e),p((e=>Object.assign(Object.assign({},e),{weight:!0}))),void b(t,(e=>{const t=Object.assign(Object.assign({},a),{weight:e});o&&o(t)}));var t},error:u.weight?"":s.weight,min:0,precision:1}))),e.createElement("div",{style:{display:"flex"}},e.createElement(wt,{size:"lg",fullWidth:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${ta[c]}/${v}`,onClick:()=>{m(E)}},g("bmi.submit"))))},Gl=({isSide:t,locale:a,bmrContent:l,isMobile:n,info:r,inputErrorMessage:i,onFormChange:o,onSubmit:s})=>{var c,m,d;const{t:g}=ca();return e.createElement(et,{"data-is-side":t},e.createElement(tt,{isSide:t,icon:e.createElement("img",{alt:"health-tool-icon",src:(null==l?void 0:l.featured_image)||F.getAssetPath("health-tools/bmr.svg"),loading:"lazy"}),heading:g("bmr.heading"),medicalReview:{link:null===(c=null==l?void 0:l.reviewBy)||void 0===c?void 0:c.link,reviewer:null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer,date:null===(d=null==l?void 0:l.reviewBy)||void 0===d?void 0:d.date},isMobile:n}),e.createElement(Na,null,e.createElement(at,{onSubmit:e=>e.preventDefault(),"data-is-side":t},e.createElement(Ct,null,e.createElement(Vl,{info:r,locale:a,errorMessage:i,onChange:o,onClick:s,isSide:t})))))},Zl=({onSubmitOvulation:t,locale:a,ovulationPageInfo:l,expertUrl:n,isSide:r=!1,siteType:i,isMobile:o})=>{var s;const{t:c}=ca();return e.createElement(et,{"data-is-side":r,"data-site":i},e.createElement(tt,{isSide:r,bannerUrl:F.getAssetPath("embedToolBannerPink.svg"),siteType:i,bannerColor:"marryBaby"===i&&H.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==l?void 0:l.featured_image)||F.getAssetPath("health-tools/ovulation-icon.svg"),loading:"lazy"}),heading:c("healthTools.ovulationCalculator"),medicalReview:{link:n,reviewer:null===(s=null==l?void 0:l.reviewed_by)||void 0===s?void 0:s.display_name,date:null==l?void 0:l.reviewed_date},isMobile:o}),e.createElement(at,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":r},e.createElement(kt,{siteType:i,locale:a,onSubmitOvulation:t,isSide:r})))},Rl=({siteType:l,info:r,onChange:i,errorMessage:o={}})=>{const{t:s}=ca(),[c,m]=t({weightBefore:!1,height:!1,weight:!1}),[d,g]=t(0),u=a(null);n((()=>{var e;g(null===(e=u.current)||void 0===e?void 0:e.clientHeight)}));const p=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},h=e=>{p(e,(e=>{m((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},r),{weightBefore:e});i&&i(t)}))},v=e=>{p(e,(e=>{m((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},r),{height:e});i&&i(t)}))},E=e=>{p(e,(e=>{m((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},r),{weight:e});i&&i(t)}))};return n((()=>{i&&i(Object.assign({},r))}),[]),n((()=>{m({weightBefore:!1,height:!1,weight:!1})}),[o]),"marryBaby"===l?e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(He,{label:s("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==r?void 0:r.height,CustomInput:e.createElement(Ca,{className:(null==c?void 0:c.height)?"":"error-input",name:"pwg-height",size:"md",placeholder:"Nhập thông tin",value:null==r?void 0:r.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:v})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(He,{label:s("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==r?void 0:r.weightBefore,CustomInput:e.createElement(Ca,{className:(null==c?void 0:c.weightBefore)?"":"error-input",name:"pwg-weightBefore",size:"md",placeholder:"Nhập thông tin",value:null==r?void 0:r.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:h})})),e.createElement("div",{className:"input-form-pwg input-section"},e.createElement(He,{label:s("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==r?void 0:r.weight,CustomInput:e.createElement(Ca,{className:(null==c?void 0:c.weight)?"":"error-input",name:"pwg-weight",size:"md",placeholder:"Nhập thông tin",value:null==r?void 0:r.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:E})}))):e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg"},e.createElement(T,{placeholder:s("pwg.placeholder.height"),className:"input-section",label:e.createElement("span",{style:{color:H.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},s("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:`${H.colors.gray300}`}},s("bmi.heightInput.desc"))),errorMessage:c.height?"":null==o?void 0:o.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==r?void 0:r.height,onChange:v})),e.createElement("div",{className:"input-form-pwg"},e.createElement(T,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:H.colors.gray600,fontWeight:"bold",marginBottom:"9px"},ref:u,className:"label-text"},s("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:`${H.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weightBefore?"":null==o?void 0:o.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:h,value:null==r?void 0:r.weightBefore})),e.createElement("div",{className:"input-form-pwg"},e.createElement(T,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:H.colors.gray600,fontWeight:"bold",marginBottom:"9px",minHeight:d},className:"label-text"},s("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:`${H.colors.gray300}`}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:c.weight?"":null==o?void 0:o.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==r?void 0:r.weight,onChange:E})))},Ul=({locale:a,onClick:n,inputErrorMessage:r,pwgContent:i,onFormChange:o,info:s,isMobile:c,isSide:m=!1,siteType:d})=>{var g;const{t:u}=ca(),[p,h]=t("notwins"),[v,E]=t({label:"1",value:1}),y=l((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:b}=za(a),f=l((()=>b(_.PWG)),[b]);return e.createElement(et,{"data-is-side":m,"data-site":d},e.createElement(tt,{siteType:d,bannerColor:"marryBaby"===d&&H.mbColors.mint,isEmbeded:!0,color:"pink",icon:e.createElement("img",{alt:"health-tool-icon",src:(null==i?void 0:i.featuredImage)||F.getAssetPath("health-tools/pwg-icon.svg"),loading:"lazy"}),heading:u("pregnancyWeightGain.heading"),medicalReview:{link:Aa(null==i?void 0:i.reviewedBy),reviewer:null===(g=null==i?void 0:i.reviewedBy)||void 0===g?void 0:g.display_name,date:null==i?void 0:i.reviewedDate},isMobile:c,isSide:m}),e.createElement(Na,null,e.createElement(at,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":m},"marryBaby"!==d&&e.createElement(Nt,{className:"hide-asking-mobile","data-is-side":m},e.createElement(L,{size:"s4",weight:"semiBold",style:{display:"block",color:H.colors.gray600},className:"label"},u("pregnancyWeightGain.havingTwins")),e.createElement(xt,{options:[{value:"twins",label:u("switchBtn.yes")},{value:"notwins",label:u("switchBtn.no")}],value:p,onChange:e=>h(e),className:"gender-selector",id:"twins-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),e.createElement(Ke,null,e.createElement(Lt,{className:"input-section input-form-pwg","data-is-side":m},"marryBaby"===d?e.createElement(Ye,{groupedWithLabel:u("pregnancyWeightGain.weekInput"),options:y,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:v,onChange:e=>E({label:e.label,value:e.value})}):e.createElement(e.Fragment,null,e.createElement(L,{size:"s4",weight:"semiBold",style:{display:"inline-block",marginBottom:"9px",color:H.colors.gray600}},u("pregnancyWeightGain.weekInput")),e.createElement(Je,{options:y,placeholder:String(v.label),id:"weight-gain-dropdown",size:"md",value:v,onChange:e=>E({label:e.label,value:e.value})}))),e.createElement(Rl,{siteType:d,info:s,errorMessage:r,onChange:o})),"marryBaby"!==d&&e.createElement(Nt,{className:"hide-asking-desk","data-is-side":m},e.createElement(L,{size:"s4",weight:"semiBold",style:{display:"block",color:H.colors.gray600},className:"label"},u("pregnancyWeightGain.havingTwins")),e.createElement(xt,{options:[{value:"twins",label:u("switchBtn.yes")},{value:"notwins",label:u("switchBtn.no")}],value:p,onChange:e=>h(e),className:"gender-selector",id:"twins-check-mobile",type:"circle",direction:"horizontal",size:"small",group:"group1"})),"marryBaby"===d&&e.createElement(Qa,{name:"twins",label:u("pregnancyWeightGain.havingTwins"),checked:"twins"===p,siteType:"marryBaby",onChange:()=>{h("twins"===p?"notwins":"twins")},value:"twins"}),e.createElement(Bt,{"data-is-side":m,"data-site":d},e.createElement(j,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${ta["marryBaby"===d?"vi-VN_MB":a]}/${f}`,className:"due-date-calculate-button",size:"lg",variant:"marryBaby"===d?"secondary":"primary",onClick:()=>n(p,v.value),role:"button"},u("dueDatePage.lastPeriod.calculate"))))))};const ql={"en-PH":ja,"vi-VN":Ia,"zh-TW":Ta,"id-ID":_a};function Kl(a){const{value:n={from:null,to:null}}=a,[r,i]=t(null),{isMobile:o}=D(),[s,c]=t((()=>n)),[m,d]=t((()=>{var e;return ua(null!==(e=n.from)&&void 0!==e?e:new Date)})),g=l((()=>pa(m,1)),[m]);const u=Object.assign(Object.assign({},a),{goToNextMonth:function(){d((e=>pa(e,1)))},goToPreviousMonth:function(){d((e=>ha(e,1)))},range:s,setRange:c,hoverDay:r,setHoverDay:i});return e.createElement(e.Fragment,null,e.createElement(Xl,Object.assign({},u,{date:m})),!o&&e.createElement(Dt,null),!o&&e.createElement(Xl,Object.assign({},u,{date:g})))}function Xl({date:t,range:a,setRange:r,onChange:i,goToPreviousMonth:o,goToNextMonth:s,minDate:c,maxDate:m,close:d=(()=>{}),autoClose:g=!1,hoverDay:u,setHoverDay:p}){const{locale:h}=ca(),v=l((()=>{var e;return null!==(e=ql[h])&&void 0!==e?e:ql["en-PH"]}),[h]),E=l((()=>ma(t,"MMMM",{locale:v})),[t,v]),y=l((()=>v?[1,2,3,4,5,6,0].map((e=>v.localize.day(e,{width:"narrow"}))):[]),[v]);function b(t,l){if(null===t)return e.createElement(Pt,{key:`idx-${l}`,"data-empty":"true"});const n=t.getDate(),i=Ea(t),o=!!a.from&&ya(a.from,t),s=!!a.to&&ya(a.to,t),h=o||s;let v=!1;null!==u&&a.from&&ga(a.from,u)&&!a.to?v=ba(t,{start:a.from,end:u}):a.from&&a.to&&(v=ba(t,{start:a.from,end:a.to}));let E=!1;return c&&m?E=!ba(t,{start:c,end:m}):c?E=ga(t,c):m&&(E=fa(t,m)),e.createElement(Pt,{key:n,"data-is-today":i,"data-is-past":!i&&wa(t),"data-is-selected":h,"data-is-disabled":E,"data-in-range":v,"data-is-from":o,"data-is-to":s,onMouseEnter:()=>{p(t)},onMouseLeave:()=>p(null),onClick:()=>{E||r((e=>(g&&a.from&&!a.to&&d(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?ga(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(Ot,{onClick:()=>{}},e.createElement("p",null,n)))}return n((()=>{a.from&&a.to&&i(a)}),[a]),e.createElement(Mt,{className:"calendar-wrapper"},e.createElement(zt,null,e.createElement(Pa,{onClick:o,size:"md",color:"ghost",icon:e.createElement("img",{src:F.getAssetPath("calendarArrowLeft.svg"),loading:"lazy"})}),e.createElement("div",{className:"calendar-month"},E,e.createElement("strong",null,ma(t,"yyyy"))),e.createElement(Pa,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:F.getAssetPath("calendarArrowRight.svg"),loading:"lazy"})})),e.createElement(At,null,e.createElement("div",null,e.createElement(St,null,y.map(((t,a)=>e.createElement(jt,{key:`${t}-${a}`},t))))),e.createElement("div",null,function(){const l=t.getFullYear(),n=t.getMonth(),r=va(t),i=[];for(let e=1;e<=r;e++)i.push(new Date(l,n,e));const o=i[0]?i[0].getDay():0;if(1!==o){const e=0===o?6:o-1;for(let t=0;t<e;t++)i.unshift(null)}return e.createElement(_t,{key:`month-${n}`,"data-month-index":n,"data-has-range":Boolean(a.from&&a.to)},e.createElement(It,null,e.createElement(Tt,null,i.map(b))))}())))}function Yl({inputSize:n="md",name:r="date-range-picker",value:i,minDate:o,maxDate:s,onChange:c,className:m,autoClose:d=!1}){i||(i={from:null,to:null});const[g,u]=t(!1);function p(){u(!1)}const h=a(null);function v(e){c&&c(e)}function E(e){return ma(e,"dd/MM/yyyy")}Sa(h,(()=>{p()}));const y=l((()=>i.from&&i.to?ya(i.from,i.to)?E(i.from):`${E(i.from)} - ${E(i.to)}`:""),[i.from,i.to]);return e.createElement(Ft,{className:[m,g&&"focused"].filter(Boolean).join(" "),ref:h},e.createElement("label",{htmlFor:r},e.createElement(T,{size:n,value:y,name:r,actionIcon:e.createElement("img",{src:F.getAssetPath("calendar.svg"),loading:"lazy"}),onFocus:()=>u(!0)})),g?e.createElement(Ht,{onMouseDown:e=>{e.stopPropagation()}},e.createElement(Kl,{value:i,onChange:v,minDate:o,maxDate:s,close:p,autoClose:d})):null)}var Ql="WUqzfRb",Jl="MnVGtSY",en="NclbhXQ";const tn=({LinkComponent:t,page:a,isLast:l,onChangePage:n})=>{const{label:r,value:i,isDropdown:o,dropdownItems:s,dataEventCategory:c,dataEventAction:m,dataEventLabel:d}=a;return o?e.createElement(Je,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:n,className:"collapsed-breadcrumb"}):e.createElement("div",{className:en,title:"string"!=typeof r?i:r,"data-last":l},t&&e.createElement(t,{"data-event-category":c,"data-event-action":m,"data-event-label":d,href:i||"#"},r))},an=({className:t,pages:a,size:n,LinkComponent:i="a",onChangePage:o,separator:s})=>{const c=l((()=>a.map(((e,t)=>a.length>4?t>1&&t<a.length-2?null:1===t?Object.assign(Object.assign({},e),{isDropdown:1===t,dropdownItems:a.slice(1,a.length-2)}):e:e)).filter(Boolean)),[a]);return e.createElement("div",{"data-size":n,className:`${Ql} ${t||""}`},c.map(((t,a)=>{const l=a+1===c.length;return e.createElement(r,{key:a},e.createElement(tn,{LinkComponent:i,page:t,isLast:l,onChangePage:o}),!l&&(t.separator||s||e.createElement("div",{className:Jl,"data-size":n})))})))},ln=()=>e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},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"})),nn=({url:t,onCopied:a,locale:n,siteType:r})=>{const{t:i}=ca(),s=Oa(t||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(n))),c=l((()=>"undefined"!=typeof window?window.location.href:""),[]);return e.createElement($t,null,e.createElement(o,{size:"p3",color:H.colors.gray800},i("shareContainer.title")),e.createElement("div",{className:"icon-group"},s.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":c},t.icon))),e.createElement(Pa,{theme:r,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(ln,null),onClick:()=>Rt(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":c})))},rn=()=>e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",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"})),on=t=>{var{open:a,title:l,onClose:r,onCopied:s,onShared:c,url:m,locale:d}=t,g=Zt(t,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:u}=ca(),p=i((()=>Rt(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(m),null==s||s()}))),[m,s]),h=Oa(m||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(d)));return n((()=>{a&&navigator.share&&navigator.share({title:null!=l?l:"Read This Post",url:m}).then((()=>{null==c||c()})).catch((()=>{null==r||r()}))}),[m,l,c,a]),"undefined"!=typeof navigator&&navigator.share?null:e.createElement(Wt,Object.assign({title:u("share.title"),onClose:r,open:a,placement:"bottom"},g),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(o,{type:"semiBold",size:"s3",color:H.colors.gray600},u("share.title")),e.createElement("div",{className:"icon-group"},h.map(((t,a)=>e.createElement("a",{key:a,href:t.href,target:"_blank",rel:"noreferrer"},t.icon))))),e.createElement("div",{className:"link-container"},e.createElement(o,{type:"semiBold",size:"s3",color:H.colors.gray600},u("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(Ca,{name:"link",size:"md",value:m,isDisabled:!0}),e.createElement(Pa,{size:"md",type:"button",color:"tertiary",icon:e.createElement(rn,null),onClick:p})))))},sn=({className:l,adUnitPath:r,divId:i,isMobile:o,contentId:s,customTargetings:c,locale:m,isMarryBaby:d})=>{const[g,u]=t(!0),[p,h]=t(!1),[v,E]=t(!0),y=a(null),b=a(Fa()),f=a(null),w=a(),C=a();return n((()=>{const e=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout((()=>{var t;document.getElementById("subot--container")?u(!0):(u(!1),(null===(t=y.current)||void 0===t?void 0:t.clientHeight)?E(!1):E(!0)),e()}),4e3)};return e(),()=>{w.current&&clearTimeout(w.current),C.current&&clearTimeout(C.current)}}),[]),g||p?null:e.createElement(Vt,{key:o?"mobile":"desktop",ref:f,className:l,"data-visible":!v},r&&e.createElement(Gt,{wrapperProps:{m:0},ref:y,adUnitPath:r,size:o?[[320,50],[320,100]]:[728,90],divId:(i||"div-gpt-ad-sticky")+(o?"-mobile":"")+s+String(b.current),pos:["Sticky"],contentId:s,hideIfHasSubot:o,customTargetings:c,adDefaultSize:o?[320,50]:[728,90],showCloseBtn:!0,onCloseAd:()=>h(!0),refreshInterval:60,locale:m,isMarryBaby:d}))};export{Va as A,Ga as B,Qa as C,_l as D,sn as E,Ra as F,Ua as G,yl as I,Zl as O,Ka as P,al as R,Cl as S,Xa as T,Za as a,Ya as b,ll as c,ml as d,hl as e,vl as f,El as g,bl as h,fl as i,kl as j,Nl as k,xl as l,Ll as m,Bl as n,Dl as o,Ml as p,Pl as q,Ol as r,Fl as s,Wl as t,Gl as u,Ul as v,Yl as w,an as x,nn as y,on as z};
@@ -1 +1 @@
1
- import e from"react";import{B as t}from"./index-cc75b854.js";import{C as a}from"./index-ba85d64d.js";import l from"dayjs";import{d as n}from"./index-8a8901c6.js";import{t as o}from"./theme-be61bf9f.js";import{w as i}from"./utils-d69b1150.js";import{Flex as r,Stack as c,Box as m}from"@mantine/core";import"@mantine/dates";import"./Onboarding-75b620fb.js";import"./gAssets.js";import"./screenSizeContext-36ed866e.js";import"styled-components";import"./isProduction-7ab7778b.js";import{u as s}from"./useTranslations-d201c232.js";import"./index-100cd6b4.js";import"@mantine/hooks";import{L as d}from"./index-680178ab.js";import{M as v}from"./index-5e37a3b2.js";import"./translationsContext-cdcc192f.js";import"string-format";import"./tslib.es6-b22f7de9.js";import"./useUniqueId-0ddc5645.js";import"date-fns/locale";import"./index-b2c3aa96.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"lodash/debounce";import"./cookieHelper-0d2ed98c.js";import"slugify";import"lodash/throttle";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:r,type:c="main",footerInfo:m,isMobile:d,locale:v})=>{var E,p,y,f,b,N,h,k,F,z,$,j,x,M,T,C,L,_,w,H,S,I,A,B,G,q,D,U;const{t:O}=s(),J=null==m?void 0:m.menu,K=(null===(p=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${r||""}`,style:"mini"===c?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":c},"main"===c?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==m?void 0:m.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(i,{size:"p1",weight:"bold"},null===(f=null==m?void 0:m.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(i,{size:"sm"},null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,J&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=J[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(z=J[1])||void 0===z?void 0:z.menu_title),null===(j=null===($=J[1])||void 0===$?void 0:$.items)||void 0===j?void 0:j.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(i,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(x=J[2])||void 0===x?void 0:x.menu_title),null===(T=null===(M=J[2])||void 0===M?void 0:M.items)||void 0===T?void 0:T.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(i,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(C=null==m?void 0:m.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==m?void 0:m.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(i,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(w=null==m?void 0:m.general)||void 0===w?void 0:w.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(H=null==m?void 0:m.menu[1])||void 0===H?void 0:H.menu_title),null===(I=null===(S=null==m?void 0:m.menu[1])||void 0===S?void 0:S.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(i,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(i,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==c&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(i,{size:"sm"},null===(q=null==m?void 0:m.social)||void 0===q?void 0:q.title),e.createElement("div",{className:"icons"},null===(U=null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const z=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:b,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:N,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(r,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(c,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(i,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(m,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(i,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(i,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},$=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(z,{footerMenu:n,background:i});export{$ as Footer};
1
+ import e from"react";import{B as t}from"./index-454e9c61.js";import{C as a}from"./index-26a2ee91.js";import l from"dayjs";import{d as n}from"./index-2a759657.js";import{t as o}from"./theme-a60f50e6.js";import{x as i}from"./index.styles-e88a5e1d.js";import{Flex as r,Stack as m,Box as c}from"@mantine/core";import"@mantine/dates";import"./Onboarding-a4b09eeb.js";import"./gAssets.js";import"./screenSizeContext-24a74ff6.js";import"styled-components";import"./isProduction-2a4a5f6f.js";import{u as s}from"./useTranslations-d3a965c0.js";import"./index-e4d4073a.js";import"@mantine/hooks";import{L as d}from"./index-f448f58a.js";import{M as v}from"./index-b98dec31.js";import"./translationsContext-bc07992b.js";import"string-format";import"./tslib.es6-3fc69102.js";import"./useUniqueId-98cb4079.js";import"date-fns/locale";import"./index-bfc50089.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"lodash/debounce";import"./cookieHelper-47902215.js";import"slugify";import"lodash/throttle";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:r,type:m="main",footerInfo:c,isMobile:d,locale:v})=>{var E,p,y,f,b,N,h,k,F,z,$,x,j,M,T,C,L,_,H,S,w,I,A,B,G,q,D,U;const{t:O}=s(),J=null==c?void 0:c.menu,K=(null===(p=null===(E=null==c?void 0:c.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${r||""}`,style:"mini"===m?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":m},"main"===m?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==c?void 0:c.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(i,{size:"p1",weight:"bold"},null===(f=null==c?void 0:c.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(i,{size:"sm"},null===(b=null==c?void 0:c.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==c?void 0:c.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,J&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=J[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(z=J[1])||void 0===z?void 0:z.menu_title),null===(x=null===($=J[1])||void 0===$?void 0:$.items)||void 0===x?void 0:x.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(i,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(j=J[2])||void 0===j?void 0:j.menu_title),null===(T=null===(M=J[2])||void 0===M?void 0:M.items)||void 0===T?void 0:T.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(i,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(C=null==c?void 0:c.branch)||void 0===C?void 0:C.title),e.createElement("div",{className:"flags"},null===(_=null===(L=null==c?void 0:c.branch)||void 0===L?void 0:L.branch)||void 0===_?void 0:_.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(i,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(H=null==c?void 0:c.general)||void 0===H?void 0:H.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==c?void 0:c.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(S=null==c?void 0:c.menu[1])||void 0===S?void 0:S.menu_title),null===(I=null===(w=null==c?void 0:c.menu[1])||void 0===w?void 0:w.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(i,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(i,{size:"sm",className:"linkTitle"},null===(A=null==c?void 0:c.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==c?void 0:c.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(i,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==m&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(i,{size:"sm"},null===(q=null==c?void 0:c.social)||void 0===q?void 0:q.title),e.createElement("div",{className:"icons"},null===(U=null===(D=null==c?void 0:c.social)||void 0===D?void 0:D.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const z=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:b,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:N,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(r,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(m,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(i,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(c,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(i,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(i,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},$=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(z,{footerMenu:n,background:i});export{$ as Footer};
@@ -1 +1 @@
1
- import{d as s}from"./index-8a8901c6.js";import{i as t}from"./isProduction-7ab7778b.js";import"date-fns/locale";import"./Onboarding-75b620fb.js";const e="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,e,o)=>{const i="https://hhg-common."+[e||this.getBaseDomain(),o||this.subPath,s].join("/");return t||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:t}=window.location,o=t.split("."),i=s[Object.keys(s).find((e=>t.includes(s[e])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return t=s,!isNaN(parseFloat(t))&&isFinite(t);var t}))||!i?e:i}return e}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};
1
+ import{d as s}from"./index-2a759657.js";import{i as e}from"./isProduction-2a4a5f6f.js";import"date-fns/locale";import"./Onboarding-a4b09eeb.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,s].join("/");return e||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:e}=window.location,o=e.split("."),i=s[Object.keys(s).find((t=>e.includes(s[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return e=s,!isNaN(parseFloat(e))&&isFinite(e);var e}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,o as GAssets};