@hhgtech/hhg-components 1.25.2 → 1.25.3

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 (267) 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/mantine/CentralCarousel/index.d.ts +2 -1
  5. package/build/components.js +1 -1
  6. package/build/constants.js +1 -1
  7. package/build/{core-e42d47e5.js → core-88f55c15.js} +1 -1
  8. package/build/{dataTransform-14e3774c.js → dataTransform-aa13b75a.js} +1 -1
  9. package/build/esm/babyGrowth.js +10 -10
  10. package/build/esm/cache.js +1 -1
  11. package/build/esm/care.js +1 -1
  12. package/build/esm/components.js +1 -1
  13. package/build/esm/constants.js +1 -1
  14. package/build/esm/{core-e112a32e.js → core-5d64105e.js} +1 -1
  15. package/build/esm/{dataTransform-af537a1d.js → dataTransform-497b9b26.js} +1 -1
  16. package/build/esm/footer.js +1 -1
  17. package/build/esm/gAssets.js +1 -1
  18. package/build/esm/getDynamicHealthTool-b0851cf8.js +1 -0
  19. package/build/esm/{getSocialList-c3e31126.js → getSocialList-65db1d27.js} +1 -1
  20. package/build/esm/hooks.js +1 -1
  21. package/build/esm/i18n.js +1 -1
  22. package/build/esm/{index-d3fc1a3f.js → index-00f36a33.js} +1 -1
  23. package/build/esm/index-06b424fe.js +1 -0
  24. package/build/esm/{index-0e263d0f.js → index-098ea8f8.js} +1 -1
  25. package/build/esm/{index-64c8bed9.js → index-11594e4b.js} +1 -1
  26. package/build/esm/{index-4db77c5a.js → index-1b3ec36b.js} +1 -1
  27. package/build/esm/{index-655acf9a.js → index-2de6b37f.js} +1 -1
  28. package/build/esm/index-3d9ea807.js +1 -0
  29. package/build/esm/{index-9e4d483a.js → index-65f717c4.js} +1 -1
  30. package/build/esm/{index-ae9398af.js → index-6a3fd900.js} +1 -1
  31. package/build/esm/{index-9c720514.js → index-6d365dda.js} +1 -1
  32. package/build/esm/index-96ac497d.js +1 -0
  33. package/build/esm/{index-b3b89fa9.js → index-9f204251.js} +1 -1
  34. package/build/esm/{index-d9629646.js → index-a3b1043f.js} +1 -1
  35. package/build/esm/{index-ab94aa69.js → index-ac7097c4.js} +1 -1
  36. package/build/esm/{index-182e5993.js → index-ae0459bd.js} +1 -1
  37. package/build/esm/{index-08cf1684.js → index-c472ad20.js} +1 -1
  38. package/build/esm/{index-db74af60.js → index-c5bbffe7.js} +1 -1
  39. package/build/esm/{index-741edf49.js → index-cab701cb.js} +5 -5
  40. package/build/esm/{index-9d9bb7e1.js → index-cd3c219c.js} +1 -1
  41. package/build/esm/{index-f26f47bd.js → index-d2ed7e4b.js} +1 -1
  42. package/build/esm/{index-9e7d01ce.js → index-ed3eb813.js} +1 -1
  43. package/build/esm/index.js +1 -1
  44. package/build/esm/{index.styled-41e2f289.js → index.styled-1b067777.js} +1 -1
  45. package/build/esm/{index.styled-df9600e8.js → index.styled-214cdd6b.js} +7 -7
  46. package/build/esm/{index.styled-ff6f334c.js → index.styled-28cbd599.js} +1 -1
  47. package/build/esm/{index.styled-9bb60204.js → index.styled-4ab1decb.js} +1 -1
  48. package/build/esm/{index.styled-dbcd7869.js → index.styled-62970424.js} +10 -5
  49. package/build/esm/{index.styled-d220e9d7.js → index.styled-6de85954.js} +1 -1
  50. package/build/esm/{index.styled-52954cc1.js → index.styled-8bcfb144.js} +1 -1
  51. package/build/esm/{index.styled-010e7312.js → index.styled-dfeb956e.js} +1 -1
  52. package/build/esm/lead.js +1 -1
  53. package/build/esm/mantine.js +1 -1
  54. package/build/esm/misc.js +1 -1
  55. package/build/esm/navigation.js +1 -1
  56. package/build/esm/onboarding.js +1 -1
  57. package/build/esm/pwg.js +3 -3
  58. package/build/esm/{routing-43a872db.js → routing-f224f06c.js} +1 -1
  59. package/build/esm/{screenSizeContext-dab3286e.js → screenSizeContext-7dac3bb0.js} +4 -4
  60. package/build/esm/together.js +1 -1
  61. package/build/esm/{translationsProvider-bbb93ed4.js → translationsProvider-be97048b.js} +1 -1
  62. package/build/esm/{types-6854edac.js → types-12255889.js} +1 -1
  63. package/build/esm/{types-22430cac.js → types-39e8e823.js} +1 -1
  64. package/build/esm/types.js +1 -1
  65. package/build/esm/useHealthToolCache-861ca47f.js +1 -0
  66. package/build/esm/{useRafState-babdd5eb.js → useRafState-6ecea2aa.js} +1 -1
  67. package/build/esm/{useTranslations-01cdc4e8.js → useTranslations-b3fa0ca2.js} +1 -1
  68. package/build/footer.js +1 -1
  69. package/build/gAssets.js +1 -1
  70. package/build/getDynamicHealthTool-ccc5d08f.js +1 -0
  71. package/build/{getSocialList-08bc57c1.js → getSocialList-23e9627e.js} +1 -1
  72. package/build/hooks.js +1 -1
  73. package/build/i18n.js +1 -1
  74. package/build/{index-2ace5ac4.js → index-0d3f4d29.js} +1 -1
  75. package/build/{index-0d42db3e.js → index-10df5c5a.js} +1 -1
  76. package/build/index-1b2c2312.js +1 -0
  77. package/build/{index-f8247486.js → index-29b8ccfd.js} +1 -1
  78. package/build/{index-fe30b44e.js → index-4088b165.js} +1 -1
  79. package/build/{index-3ca41e0b.js → index-456d797f.js} +1 -1
  80. package/build/{index-8f5dcd30.js → index-51fb9064.js} +1 -1
  81. package/build/{index-66cafbb3.js → index-6615313d.js} +1 -1
  82. package/build/{index-f1fe6f04.js → index-7f091609.js} +1 -1
  83. package/build/index-80e47d87.js +1 -0
  84. package/build/{index-7fbad258.js → index-83a705cd.js} +6 -6
  85. package/build/{index-c0a35fd0.js → index-88b6d5c3.js} +1 -1
  86. package/build/{index-fff4e663.js → index-89a3be56.js} +1 -1
  87. package/build/{index-99bda660.js → index-aeefc8ff.js} +1 -1
  88. package/build/{index-32ee05ca.js → index-b8ad67e3.js} +1 -1
  89. package/build/{index-f4c19c79.js → index-c3fde30c.js} +1 -1
  90. package/build/{index-3fc3706a.js → index-cf25e6c1.js} +1 -1
  91. package/build/index-d46f1c10.js +1 -0
  92. package/build/{index-75c7973f.js → index-e34f82ac.js} +1 -1
  93. package/build/index-ebb65631.js +1 -0
  94. package/build/index-ffbe1d13.js +1 -0
  95. package/build/index.css +1 -1
  96. package/build/index.js +1 -1
  97. package/build/{index.styled-85e056bb.js → index.styled-10da144d.js} +1 -1
  98. package/build/{index.styled-ec5f762d.js → index.styled-45647d86.js} +1 -1
  99. package/build/index.styled-59b9ecfe.js +50 -0
  100. package/build/{index.styled-2520eaa4.js → index.styled-75325ed9.js} +1 -1
  101. package/build/{index.styled-82bf0f81.js → index.styled-9543f482.js} +1 -1
  102. package/build/{index.styled-d058a1a3.js → index.styled-e8f0db5f.js} +1 -1
  103. package/build/{index.styled-8209d37d.js → index.styled-e985894c.js} +1 -1
  104. package/build/{index.styled-635f43fe.js → index.styled-f526b5b2.js} +1 -1
  105. package/build/lead.js +1 -1
  106. package/build/mantine.js +1 -1
  107. package/build/misc.js +1 -1
  108. package/build/navigation.js +1 -1
  109. package/build/onboarding.js +1 -1
  110. package/build/pwg.js +1 -1
  111. package/build/{routing-7b2893db.js → routing-33c9e69a.js} +1 -1
  112. package/build/screenSizeContext-d9fb1ac7.js +81 -0
  113. package/build/together.js +1 -1
  114. package/build/{translationsProvider-70942b9e.js → translationsProvider-0684431e.js} +1 -1
  115. package/build/{types-56ad5b6c.js → types-631687d4.js} +1 -1
  116. package/build/{types-305cd3fb.js → types-96b51c0e.js} +1 -1
  117. package/build/types.js +1 -1
  118. package/build/useHealthToolCache-44010d9d.js +1 -0
  119. package/build/{useRafState-3cc20b02.js → useRafState-75452dfd.js} +1 -1
  120. package/build/{useTranslations-42a0f046.js → useTranslations-96dac70d.js} +1 -1
  121. package/package.json +1 -1
  122. package/build/esm/getDynamicHealthTool-80b1725c.js +0 -1
  123. package/build/esm/index-5b5df230.js +0 -1
  124. package/build/esm/index-7afa0991.js +0 -1
  125. package/build/esm/index-9088a344.js +0 -1
  126. package/build/esm/useHealthToolCache-408611cc.js +0 -1
  127. package/build/getDynamicHealthTool-d1f12e90.js +0 -1
  128. package/build/index-016da465.js +0 -1
  129. package/build/index-543c2501.js +0 -1
  130. package/build/index-68dcbbcf.js +0 -1
  131. package/build/index-d3856a13.js +0 -1
  132. package/build/index-ff508398.js +0 -1
  133. package/build/index.styled-d81bd7f6.js +0 -45
  134. package/build/screenSizeContext-5ff9df7c.js +0 -81
  135. package/build/useHealthToolCache-f2e7cb7a.js +0 -1
  136. /package/build/{BMI_BOYS.percentile.monthly-d3427989.js → BMI_BOYS.percentile.monthly-31f9db9d.js} +0 -0
  137. /package/build/{BMI_BOYS.percentile.weekly-0ec351dc.js → BMI_BOYS.percentile.weekly-61f70370.js} +0 -0
  138. /package/build/{BMI_BOYS.percentile.yearly-754488a3.js → BMI_BOYS.percentile.yearly-d55c815e.js} +0 -0
  139. /package/build/{BMI_BOYS.zscore.monthly-bdd181fe.js → BMI_BOYS.zscore.monthly-c6725bad.js} +0 -0
  140. /package/build/{BMI_BOYS.zscore.weekly-96c57cf9.js → BMI_BOYS.zscore.weekly-7847bf68.js} +0 -0
  141. /package/build/{BMI_BOYS.zscore.yearly-b14095bd.js → BMI_BOYS.zscore.yearly-5bafe099.js} +0 -0
  142. /package/build/{BMI_GIRLS.percentile.monthly-32e7420f.js → BMI_GIRLS.percentile.monthly-d1b869ea.js} +0 -0
  143. /package/build/{BMI_GIRLS.percentile.weekly-d8d208ec.js → BMI_GIRLS.percentile.weekly-c2f6b61e.js} +0 -0
  144. /package/build/{BMI_GIRLS.percentile.yearly-7aa21d03.js → BMI_GIRLS.percentile.yearly-a278a58d.js} +0 -0
  145. /package/build/{BMI_GIRLS.zscore.monthly-e4d6d979.js → BMI_GIRLS.zscore.monthly-ec1b0d8b.js} +0 -0
  146. /package/build/{BMI_GIRLS.zscore.weekly-2e4e8fa5.js → BMI_GIRLS.zscore.weekly-432fb27b.js} +0 -0
  147. /package/build/{BMI_GIRLS.zscore.yearly-a6641c8d.js → BMI_GIRLS.zscore.yearly-6bbee166.js} +0 -0
  148. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b69ed5d6.js → HEAD CIRCUM_BOYS.percentile.monthly-5824e4a9.js} +0 -0
  149. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-72d106a3.js → HEAD CIRCUM_BOYS.percentile.weekly-22d3a767.js} +0 -0
  150. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-fc5b1751.js → HEAD CIRCUM_BOYS.percentile.yearly-777283a5.js} +0 -0
  151. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-21a4f827.js → HEAD CIRCUM_BOYS.zscore.monthly-b22ffe7f.js} +0 -0
  152. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-fa5007c3.js → HEAD CIRCUM_BOYS.zscore.weekly-0ad32101.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-feb10e6e.js → HEAD CIRCUM_BOYS.zscore.yearly-c781d8b1.js} +0 -0
  154. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-393575bb.js → HEAD CIRCUM_GIRLS.percentile.monthly-16796945.js} +0 -0
  155. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-43acee1c.js → HEAD CIRCUM_GIRLS.percentile.weekly-175bb9d9.js} +0 -0
  156. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-688ea68e.js → HEAD CIRCUM_GIRLS.percentile.yearly-bcc5ed8f.js} +0 -0
  157. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-d47cefd1.js → HEAD CIRCUM_GIRLS.zscore.monthly-ae0e0944.js} +0 -0
  158. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-295ec109.js → HEAD CIRCUM_GIRLS.zscore.weekly-5ac5f27e.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-6c3a785f.js → HEAD CIRCUM_GIRLS.zscore.yearly-26b2810b.js} +0 -0
  160. /package/build/{HEIGHT_BOYS.percentile.monthly-896d82bf.js → HEIGHT_BOYS.percentile.monthly-149267b2.js} +0 -0
  161. /package/build/{HEIGHT_BOYS.percentile.weekly-4e3c3546.js → HEIGHT_BOYS.percentile.weekly-08c77685.js} +0 -0
  162. /package/build/{HEIGHT_BOYS.percentile.yearly-920d50b7.js → HEIGHT_BOYS.percentile.yearly-a5a265c3.js} +0 -0
  163. /package/build/{HEIGHT_BOYS.zscore.monthly-1f753679.js → HEIGHT_BOYS.zscore.monthly-6e09ed9a.js} +0 -0
  164. /package/build/{HEIGHT_BOYS.zscore.weekly-4673d843.js → HEIGHT_BOYS.zscore.weekly-ea2e9374.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.zscore.yearly-2887dbc5.js → HEIGHT_BOYS.zscore.yearly-99a2d150.js} +0 -0
  166. /package/build/{HEIGHT_GIRLS.percentile.monthly-88f3b1da.js → HEIGHT_GIRLS.percentile.monthly-8a5e7412.js} +0 -0
  167. /package/build/{HEIGHT_GIRLS.percentile.weekly-baf61139.js → HEIGHT_GIRLS.percentile.weekly-6b818d46.js} +0 -0
  168. /package/build/{HEIGHT_GIRLS.percentile.yearly-4e533444.js → HEIGHT_GIRLS.percentile.yearly-68b32f0a.js} +0 -0
  169. /package/build/{HEIGHT_GIRLS.zscore.monthly-1dfbb0fb.js → HEIGHT_GIRLS.zscore.monthly-df68aba3.js} +0 -0
  170. /package/build/{HEIGHT_GIRLS.zscore.weekly-08c692c5.js → HEIGHT_GIRLS.zscore.weekly-7f883760.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.zscore.yearly-782015ed.js → HEIGHT_GIRLS.zscore.yearly-f3bc6ff2.js} +0 -0
  172. /package/build/{Onboarding-9a9432d2.js → Onboarding-4552f663.js} +0 -0
  173. /package/build/{Vietnam-9801f3cc.js → Vietnam-161be536.js} +0 -0
  174. /package/build/{Visible-47cffadb.js → Visible-2cf9f380.js} +0 -0
  175. /package/build/{WEIGHT_BOYS.percentile.monthly-dfb644f8.js → WEIGHT_BOYS.percentile.monthly-48dde223.js} +0 -0
  176. /package/build/{WEIGHT_BOYS.percentile.weekly-2308d475.js → WEIGHT_BOYS.percentile.weekly-c567d366.js} +0 -0
  177. /package/build/{WEIGHT_BOYS.percentile.yearly-3773af2c.js → WEIGHT_BOYS.percentile.yearly-df40e92a.js} +0 -0
  178. /package/build/{WEIGHT_BOYS.zscore.monthly-b9597ecd.js → WEIGHT_BOYS.zscore.monthly-436827fc.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.zscore.weekly-44737023.js → WEIGHT_BOYS.zscore.weekly-29ae1265.js} +0 -0
  180. /package/build/{WEIGHT_BOYS.zscore.yearly-e9aafbe4.js → WEIGHT_BOYS.zscore.yearly-9c272ae0.js} +0 -0
  181. /package/build/{WEIGHT_GIRLS.percentile.monthly-cbfb95ad.js → WEIGHT_GIRLS.percentile.monthly-49fb7a2c.js} +0 -0
  182. /package/build/{WEIGHT_GIRLS.percentile.weekly-1aba3d57.js → WEIGHT_GIRLS.percentile.weekly-3b9ee694.js} +0 -0
  183. /package/build/{WEIGHT_GIRLS.percentile.yearly-3ec0fa52.js → WEIGHT_GIRLS.percentile.yearly-55bb881e.js} +0 -0
  184. /package/build/{WEIGHT_GIRLS.zscore.monthly-cbb236e5.js → WEIGHT_GIRLS.zscore.monthly-f6a20641.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.zscore.weekly-fbaa864c.js → WEIGHT_GIRLS.zscore.weekly-c6a7a4b7.js} +0 -0
  186. /package/build/{WEIGHT_GIRLS.zscore.yearly-2ff098a3.js → WEIGHT_GIRLS.zscore.yearly-a7521524.js} +0 -0
  187. /package/build/{constants-0b27e3db.js → constants-dac0cd51.js} +0 -0
  188. /package/build/{cookieHelper-418609fb.js → cookieHelper-20ef1f14.js} +0 -0
  189. /package/build/{dataTransform-e8f86c49.js → dataTransform-839d2448.js} +0 -0
  190. /package/build/esm/{BMI_BOYS.percentile.monthly-41ffe7ba.js → BMI_BOYS.percentile.monthly-62f53815.js} +0 -0
  191. /package/build/esm/{BMI_BOYS.percentile.weekly-9ef33b2d.js → BMI_BOYS.percentile.weekly-c283cfa5.js} +0 -0
  192. /package/build/esm/{BMI_BOYS.percentile.yearly-06b06c09.js → BMI_BOYS.percentile.yearly-5c45719d.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.zscore.monthly-7c2ee0a7.js → BMI_BOYS.zscore.monthly-a11b8256.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.zscore.weekly-e6f01c8e.js → BMI_BOYS.zscore.weekly-80e8bd87.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.zscore.yearly-5902d6ed.js → BMI_BOYS.zscore.yearly-a02b6cd4.js} +0 -0
  196. /package/build/esm/{BMI_GIRLS.percentile.monthly-8987c997.js → BMI_GIRLS.percentile.monthly-27815369.js} +0 -0
  197. /package/build/esm/{BMI_GIRLS.percentile.weekly-304152b9.js → BMI_GIRLS.percentile.weekly-06d8c533.js} +0 -0
  198. /package/build/esm/{BMI_GIRLS.percentile.yearly-0fc7475b.js → BMI_GIRLS.percentile.yearly-2ae0b479.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.zscore.monthly-20e7717d.js → BMI_GIRLS.zscore.monthly-375b5df4.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.zscore.weekly-4d3f00ce.js → BMI_GIRLS.zscore.weekly-71b2a0d4.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.zscore.yearly-a94d6af8.js → BMI_GIRLS.zscore.yearly-5b193626.js} +0 -0
  202. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c7b1280b.js → HEAD CIRCUM_BOYS.percentile.monthly-36bec844.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2456c7d8.js → HEAD CIRCUM_BOYS.percentile.weekly-46191ca1.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-b532ca5e.js → HEAD CIRCUM_BOYS.percentile.yearly-2313d9b4.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-866eaaf8.js → HEAD CIRCUM_BOYS.zscore.monthly-9e387e61.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-0ea88a8f.js → HEAD CIRCUM_BOYS.zscore.weekly-8f113732.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-f6493cc3.js → HEAD CIRCUM_BOYS.zscore.yearly-3a02bbc7.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-35e5b698.js → HEAD CIRCUM_GIRLS.percentile.monthly-8bc9d496.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-c499851a.js → HEAD CIRCUM_GIRLS.percentile.weekly-0071aeb8.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a9d97d79.js → HEAD CIRCUM_GIRLS.percentile.yearly-c99720b6.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8ee8f414.js → HEAD CIRCUM_GIRLS.zscore.monthly-a3892a2a.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-ee8512c4.js → HEAD CIRCUM_GIRLS.zscore.weekly-922c8dac.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-df7216dd.js → HEAD CIRCUM_GIRLS.zscore.yearly-f2a12ed3.js} +0 -0
  214. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0320b0e3.js → HEIGHT_BOYS.percentile.monthly-445151c0.js} +0 -0
  215. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5868cb4b.js → HEIGHT_BOYS.percentile.weekly-5582f736.js} +0 -0
  216. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9daf1f86.js → HEIGHT_BOYS.percentile.yearly-b231830f.js} +0 -0
  217. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-ca460ebe.js → HEIGHT_BOYS.zscore.monthly-c750e382.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f894c82a.js → HEIGHT_BOYS.zscore.weekly-99135c39.js} +0 -0
  219. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-fa4b676b.js → HEIGHT_BOYS.zscore.yearly-b19ee720.js} +0 -0
  220. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-48b19621.js → HEIGHT_GIRLS.percentile.monthly-7f239db2.js} +0 -0
  221. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5b27f86f.js → HEIGHT_GIRLS.percentile.weekly-1c52e7c4.js} +0 -0
  222. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-d3997af7.js → HEIGHT_GIRLS.percentile.yearly-cd4077ba.js} +0 -0
  223. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-eaae6616.js → HEIGHT_GIRLS.zscore.monthly-392d4b47.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-50d01252.js → HEIGHT_GIRLS.zscore.weekly-530dfe43.js} +0 -0
  225. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-89ac47d4.js → HEIGHT_GIRLS.zscore.yearly-735e8bde.js} +0 -0
  226. /package/build/esm/{Onboarding-51892bac.js → Onboarding-fc21b4e5.js} +0 -0
  227. /package/build/esm/{Vietnam-ea32232b.js → Vietnam-deb277ed.js} +0 -0
  228. /package/build/esm/{Visible-e31fd719.js → Visible-e5953229.js} +0 -0
  229. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-8d8a71bf.js → WEIGHT_BOYS.percentile.monthly-35b05390.js} +0 -0
  230. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-7bab37bc.js → WEIGHT_BOYS.percentile.weekly-bace5f87.js} +0 -0
  231. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-f9687f80.js → WEIGHT_BOYS.percentile.yearly-374f986f.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-81550a2f.js → WEIGHT_BOYS.zscore.monthly-a506c376.js} +0 -0
  233. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-984b38ad.js → WEIGHT_BOYS.zscore.weekly-f0b827b2.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-eae2b8d4.js → WEIGHT_BOYS.zscore.yearly-78be80b1.js} +0 -0
  235. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2798e313.js → WEIGHT_GIRLS.percentile.monthly-4203fa5c.js} +0 -0
  236. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-cbfad565.js → WEIGHT_GIRLS.percentile.weekly-d4efc5f9.js} +0 -0
  237. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9dda126c.js → WEIGHT_GIRLS.percentile.yearly-832b58f1.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9e0950eb.js → WEIGHT_GIRLS.zscore.monthly-720863ae.js} +0 -0
  239. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-af368ea8.js → WEIGHT_GIRLS.zscore.weekly-44726cb0.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d1664233.js → WEIGHT_GIRLS.zscore.yearly-bc0521bb.js} +0 -0
  241. /package/build/esm/{constants-01216acb.js → constants-7401c726.js} +0 -0
  242. /package/build/esm/{cookieHelper-1e48dd9d.js → cookieHelper-fc502791.js} +0 -0
  243. /package/build/esm/{dataTransform-ea5d03ac.js → dataTransform-25e05f6a.js} +0 -0
  244. /package/build/esm/{index-61cb9b2f.js → index-16c12c1b.js} +0 -0
  245. /package/build/esm/{isProduction-b684ea82.js → isProduction-11e95441.js} +0 -0
  246. /package/build/esm/{localizeNumberFormat-9c59aec8.js → localizeNumberFormat-f230e360.js} +0 -0
  247. /package/build/esm/{normalizeLink-cc3f9039.js → normalizeLink-06a00173.js} +0 -0
  248. /package/build/esm/{theme-4cc44a21.js → theme-e3340d4e.js} +0 -0
  249. /package/build/esm/{translationsContext-a6196da1.js → translationsContext-25ba24fa.js} +0 -0
  250. /package/build/esm/{tslib.es6-d95a42ea.js → tslib.es6-3d5963e0.js} +0 -0
  251. /package/build/esm/{useIsInit-848679ea.js → useIsInit-41137bbe.js} +0 -0
  252. /package/build/esm/{useOutsideClick-72a5f765.js → useOutsideClick-84e0c390.js} +0 -0
  253. /package/build/esm/{useScrollbarSize-375fca3a.js → useScrollbarSize-c304e3f9.js} +0 -0
  254. /package/build/esm/{useUniqueId-30ff697e.js → useUniqueId-037a03cb.js} +0 -0
  255. /package/build/esm/{utils-1dfb7635.js → utils-cc869747.js} +0 -0
  256. /package/build/{index-559bcc96.js → index-89e29675.js} +0 -0
  257. /package/build/{isProduction-465d9514.js → isProduction-26a62dac.js} +0 -0
  258. /package/build/{localizeNumberFormat-23e42bce.js → localizeNumberFormat-a791e159.js} +0 -0
  259. /package/build/{normalizeLink-b3800c9c.js → normalizeLink-1fc3d5f9.js} +0 -0
  260. /package/build/{theme-94d7d992.js → theme-71e33a6b.js} +0 -0
  261. /package/build/{translationsContext-abe85d33.js → translationsContext-04b5a221.js} +0 -0
  262. /package/build/{tslib.es6-ea77f1ae.js → tslib.es6-11532f96.js} +0 -0
  263. /package/build/{useIsInit-46d1c0d2.js → useIsInit-d2d1f2a4.js} +0 -0
  264. /package/build/{useOutsideClick-d3b3cf8f.js → useOutsideClick-1f8f2f1b.js} +0 -0
  265. /package/build/{useScrollbarSize-b745013d.js → useScrollbarSize-2ff00d3a.js} +0 -0
  266. /package/build/{useUniqueId-60f45a13.js → useUniqueId-cd3931fc.js} +0 -0
  267. /package/build/{utils-be064f59.js → utils-ac928cd6.js} +0 -0
@@ -1 +1 @@
1
- export{A as Alert,e as ArticleCard,s as BMICardEmbed,w as BMRCardEmbed,t as BabyGrowthCardEmbed,u as BabyPoopEmbed,B as Badge,a as BorderHeading,f as Breadcrumbs,l as Carousel,g as CategoryCard,C as Checkbox,h as CheckboxGroup,q as CookieAcceptConfirm,y as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,p as FloatButtonGroup,G as Grid,I as IconText,L as Immunization,O as OvulationCardEmbed,x as PWGCardEmbed,P as Pagination,d as Progress,i as ProgressBar,R as RateStars,H as RecordsByAgeGroup,k as ScrollList,r as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,j as SideMenu,m as StatisticCard,o as SurveyThankyouCard,v as THRCardEmbed,n as Table,T as Tag,J as TimelineBanner,b as Toggle,U as UnderlinedLink,c as Uploader,V as VaccineCard,K as VaccineDetailPopup}from"./index-f26f47bd.js";export{A as Avatar,F as Flag,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-9e4d483a.js";export{B as Button}from"./index-b3b89fa9.js";export{A as AuthorBadge,B as BtnChoice,D as Divider,T as Tabs}from"./index-9c720514.js";export{H as Heading}from"./index-08cf1684.js";export{I as Input}from"./index-4db77c5a.js";export{L as Label}from"./index.styled-52954cc1.js";export{L as Logo}from"./index-db74af60.js";export{M as Menu,P as PureInput,T as TextArea,a as TextDivider}from"./index.styled-d220e9d7.js";export{D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index.styled-010e7312.js";export{T as Text}from"./index-64c8bed9.js";export{C as Container}from"./index-ae9398af.js";export{D as Drawer,I as Icon,M as Modal,R as RadioImageGroup}from"./index-9d9bb7e1.js";export{N as NewBabyProfileRadio}from"./index-9e7d01ce.js";export{C as CustomReferenceDot}from"./index-61cb9b2f.js";export{P as Popup}from"./dataTransform-af537a1d.js";export{P as PillCarousel}from"./index-7afa0991.js";export{Footer}from"./footer.js";import"react";import"./utils-1dfb7635.js";import"./useUniqueId-30ff697e.js";import"./gAssets.js";import"./index-d9629646.js";import"./Onboarding-51892bac.js";import"./isProduction-b684ea82.js";import"./theme-4cc44a21.js";import"./tslib.es6-d95a42ea.js";import"lodash/throttle";import"keen-slider/react";import"dayjs";import"./screenSizeContext-dab3286e.js";import"styled-components";import"./useTranslations-01cdc4e8.js";import"./translationsContext-a6196da1.js";import"string-format";import"date-fns";import"@mantine/core";import"./index.styled-9bb60204.js";import"./index.styled-41e2f289.js";import"./cookieHelper-1e48dd9d.js";import"slugify";import"./routing-43a872db.js";import"dayjs/plugin/relativeTime";import"./index-d3fc1a3f.js";import"./index-5b5df230.js";import"@mantine/hooks";import"./index-655acf9a.js";import"react-hook-form";import"./useHealthToolCache-408611cc.js";import"./getDynamicHealthTool-80b1725c.js";import"./core-e112a32e.js";import"./normalizeLink-cc3f9039.js";import"./useOutsideClick-72a5f765.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-c3e31126.js";import"@mantine/dates";import"./constants-01216acb.js";import"./useIsInit-848679ea.js";import"lodash/debounce";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-375fca3a.js";import"react-dom";import"./index.styled-dbcd7869.js";import"./index-9088a344.js";import"@mantine/carousel";
1
+ export{A as Alert,e as ArticleCard,s as BMICardEmbed,w as BMRCardEmbed,t as BabyGrowthCardEmbed,u as BabyPoopEmbed,B as Badge,a as BorderHeading,f as Breadcrumbs,l as Carousel,g as CategoryCard,C as Checkbox,h as CheckboxGroup,q as CookieAcceptConfirm,y as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,p as FloatButtonGroup,G as Grid,I as IconText,L as Immunization,O as OvulationCardEmbed,x as PWGCardEmbed,P as Pagination,d as Progress,i as ProgressBar,R as RateStars,H as RecordsByAgeGroup,k as ScrollList,r as SeoHead,S as Shadow,z as ShareContainer,E as ShareDrawer,j as SideMenu,m as StatisticCard,o as SurveyThankyouCard,v as THRCardEmbed,n as Table,T as Tag,J as TimelineBanner,b as Toggle,U as UnderlinedLink,c as Uploader,V as VaccineCard,K as VaccineDetailPopup}from"./index-d2ed7e4b.js";export{A as Avatar,F as Flag,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-65f717c4.js";export{B as Button}from"./index-9f204251.js";export{A as AuthorBadge,B as BtnChoice,D as Divider,T as Tabs}from"./index-6d365dda.js";export{H as Heading}from"./index-c472ad20.js";export{I as Input}from"./index-1b3ec36b.js";export{L as Label}from"./index.styled-8bcfb144.js";export{L as Logo}from"./index-c5bbffe7.js";export{M as Menu,P as PureInput,T as TextArea,a as TextDivider}from"./index.styled-6de85954.js";export{D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index.styled-dfeb956e.js";export{T as Text}from"./index-11594e4b.js";export{C as Container}from"./index-6a3fd900.js";export{D as Drawer,I as Icon,M as Modal,R as RadioImageGroup}from"./index-cd3c219c.js";export{N as NewBabyProfileRadio}from"./index-ed3eb813.js";export{C as CustomReferenceDot}from"./index-16c12c1b.js";export{P as Popup}from"./dataTransform-497b9b26.js";export{P as PillCarousel}from"./index-96ac497d.js";export{Footer}from"./footer.js";import"react";import"./utils-cc869747.js";import"./useUniqueId-037a03cb.js";import"./gAssets.js";import"./index-a3b1043f.js";import"./Onboarding-fc21b4e5.js";import"./isProduction-11e95441.js";import"./theme-e3340d4e.js";import"./tslib.es6-3d5963e0.js";import"lodash/throttle";import"keen-slider/react";import"dayjs";import"./screenSizeContext-7dac3bb0.js";import"styled-components";import"./useTranslations-b3fa0ca2.js";import"./translationsContext-25ba24fa.js";import"string-format";import"date-fns";import"@mantine/core";import"./index.styled-4ab1decb.js";import"./index.styled-1b067777.js";import"./cookieHelper-fc502791.js";import"slugify";import"./routing-f224f06c.js";import"dayjs/plugin/relativeTime";import"./index-00f36a33.js";import"./index-3d9ea807.js";import"@mantine/hooks";import"./index-2de6b37f.js";import"react-hook-form";import"./useHealthToolCache-861ca47f.js";import"./getDynamicHealthTool-b0851cf8.js";import"./core-5d64105e.js";import"./normalizeLink-06a00173.js";import"./useOutsideClick-84e0c390.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-65db1d27.js";import"@mantine/dates";import"./constants-7401c726.js";import"./useIsInit-41137bbe.js";import"lodash/debounce";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useScrollbarSize-c304e3f9.js";import"react-dom";import"./index.styled-62970424.js";import"./index-06b424fe.js";import"@mantine/carousel";
@@ -1 +1 @@
1
- import"./Onboarding-51892bac.js";export{a as CARE_BOOKING_LOCALES,C as CARE_LOCALES,F as FAVICONS,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,b as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,c as siteHost,s as siteOptions}from"./index-d9629646.js";export{i as isProduction}from"./isProduction-b684ea82.js";
1
+ import"./Onboarding-fc21b4e5.js";export{a as CARE_BOOKING_LOCALES,C as CARE_LOCALES,F as FAVICONS,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,b as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,c as siteHost,s as siteOptions}from"./index-a3b1043f.js";export{i as isProduction}from"./isProduction-11e95441.js";
@@ -1 +1 @@
1
- import{a as t}from"./tslib.es6-d95a42ea.js";import{i as e}from"./isProduction-b684ea82.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
1
+ import{a as t}from"./tslib.es6-3d5963e0.js";import{i as e}from"./isProduction-11e95441.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
@@ -1 +1 @@
1
- import e from"react";import{as as i,at as o}from"./index.styled-41e2f289.js";const t=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:u(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(u),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},s=e=>({postTitle:e.post_title,permalink:e.permalink}),u=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>u(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,w,h,b,k,I,C,S,T,x,A,B,P,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||""}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:d,formatReviewedCategory:s,formatCategory:u,formatCategoryApi:e=>e?{categoryInfo:u(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(u)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{t as P,y as a,c as b,g as c,h as d,p as e,w as f,f as g,a as h,u as i};
1
+ import e from"react";import{as as i,at as o}from"./index.styled-1b067777.js";const t=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),l=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},n=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},a=e=>{var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:r(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:r(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:r(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:r(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:u(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(u),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:n(e.expert),metaTag:e.meta_tag||null}:{}},r=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,d=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},s=e=>({postTitle:e.post_title,permalink:e.permalink}),u=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?d(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>u(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>m(e))):null}:{}},m=e=>({title:e.title,content:e.content}),v=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},c=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},p=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=e=>e?{answer:null==e?void 0:e.answer.map(f),expert:null==e?void 0:e.expert}:{},g=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,g,y,f,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(g=e.user)||void 0===g?void 0:g.partner_id)?String(null===(y=e.user)||void 0===y?void 0:y.partner_id):"",title:(null===(f=e.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:_(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},f=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,w,h,b,k,I,C,S,T,x,A,B,P,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(f):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(w=e.mentioned)||void 0===w?void 0:w.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||""}:{}},w=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var h=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:n,formatArticle:a,formatUserProfile:r,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:d,formatReviewedCategory:s,formatCategory:u,formatCategoryApi:e=>e?{categoryInfo:u(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(u)}:{},formatFaqsCategory:m,formatHealthTool:v,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>v(e))))&&void 0!==o?o:[]}:{}},formatCommunity:c,formatTopic:p,formatExpertAnswer:_,formatPost:g,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:y,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:f,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:w,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?r(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:w(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{t as P,y as a,c as b,g as c,h as d,p as e,w as f,f as g,a as h,u as i};
@@ -1 +1 @@
1
- import e from"react";import{B as t}from"./index-b3b89fa9.js";import{C as a}from"./index-ae9398af.js";import{T as l}from"./index-64c8bed9.js";import{d as n}from"./index-d9629646.js";import{t as o}from"./theme-4cc44a21.js";import{u as i}from"./useTranslations-01cdc4e8.js";import{L as r}from"./index-db74af60.js";import{M as c}from"./index-d3fc1a3f.js";import"./tslib.es6-d95a42ea.js";import"./utils-1dfb7635.js";import"styled-components";import"./gAssets.js";import"./isProduction-b684ea82.js";import"./Onboarding-51892bac.js";import"./translationsContext-a6196da1.js";import"string-format";import"./index.styled-9bb60204.js";var s="Lj0qoTD",m="OO-qFWT";const d=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:m,"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})),v=({className:r,type:c="main",footerInfo:m,isMobile:v,locale:u})=>{var E,g,y,p,b,N,f,h,k,F,$,z,j,C,T,x,M,L,w,A,_,H,B,I,G,S,D,q;const{t:O}=i(),J=null==m?void 0:m.menu,K=(null===(g=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===g?void 0:g.filter(Boolean))||[];return e.createElement("footer",{className:`${s} ${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"===u})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(p=null==m?void 0:m.general)||void 0===p?void 0:p.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(f=null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.socials)||void 0===f?void 0:f.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===(k=null===(h=J[0])||void 0===h?void 0:h.items)||void 0===k?void 0:k.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(F=J[1])||void 0===F?void 0:F.menu_title),null===(z=null===($=J[1])||void 0===$?void 0:$.items)||void 0===z?void 0:z.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(j=J[2])||void 0===j?void 0:j.menu_title),null===(T=null===(C=J[2])||void 0===C?void 0:C.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(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(x=null==m?void 0:m.branch)||void 0===x?void 0:x.title),e.createElement("div",{className:"flags"},null===(L=null===(M=null==m?void 0:m.branch)||void 0===M?void 0:M.branch)||void 0===L?void 0:L.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(d,{url:t.flag,isMobile:v,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(l,{size:"xs",type:"regular",className:"copyright-content"},null===(w=null==m?void 0:m.general)||void 0===w?void 0:w.copyright)),"vi-VN"===u&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[1])||void 0===A?void 0:A.menu_title),null===(H=null===(_=null==m?void 0:m.menu[1])||void 0===_?void 0:_.items)||void 0===H?void 0:H.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[u]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`,size:"sm",type:"regular",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.menu_title),null===(G=null===(I=null==m?void 0:m.menu[2])||void 0===I?void 0:I.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(l,{size:"sm",type:"regular",style:{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(l,{size:"sm",type:"regular"},null===(S=null==m?void 0:m.social)||void 0===S?void 0:S.title),e.createElement("div",{className:"icons"},null===(q=null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.socials)||void 0===q?void 0:q.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 u="B6-KmWK",E="GS-7mbG",g="qc5bEb3",y="CQGVeuT",p="_6JMoel-",b="_8eUT8Jr",N="cjDwoLi";const f=({logoType:t="marryBaby",footerMenu:l,background:n})=>{var i;if(!l)return null;const{general:s,menu:m,socials:d}=l;return e.createElement("footer",{className:u,style:{backgroundColor:n||"none"}},e.createElement("div",{className:N},e.createElement(a,null,e.createElement("div",{className:E},null==m?void 0:m.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:g,key:`mbf${l}`},e.createElement(c,{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:y,key:`mbitem${l}`},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:p},e.createElement(r,{className:"logo",type:t}),e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},null==s?void 0:s.content)),e.createElement("div",{className:"social-link"},null==d?void 0:d.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",{loading:"lazy",src:t,alt:a}))))))),e.createElement("div",{className:b},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-3",color:o.colors.white},null==s?void 0:s.copyright),e.createElement("div",{className:"verify"},null===(i=null==s?void 0:s.verified)||void 0===i?void 0:i.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a})))))))))},h=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(v,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(f,{footerMenu:n,background:i});export{h as Footer};
1
+ import e from"react";import{B as t}from"./index-9f204251.js";import{C as a}from"./index-6a3fd900.js";import{T as l}from"./index-11594e4b.js";import{d as n}from"./index-a3b1043f.js";import{t as o}from"./theme-e3340d4e.js";import{u as i}from"./useTranslations-b3fa0ca2.js";import{L as r}from"./index-c5bbffe7.js";import{M as c}from"./index-00f36a33.js";import"./tslib.es6-3d5963e0.js";import"./utils-cc869747.js";import"styled-components";import"./gAssets.js";import"./isProduction-11e95441.js";import"./Onboarding-fc21b4e5.js";import"./translationsContext-25ba24fa.js";import"string-format";import"./index.styled-4ab1decb.js";var s="Lj0qoTD",m="OO-qFWT";const d=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:m,"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})),v=({className:r,type:c="main",footerInfo:m,isMobile:v,locale:u})=>{var E,g,y,p,b,N,f,h,k,F,$,z,j,C,T,x,M,L,w,A,_,H,B,I,G,S,D,q;const{t:O}=i(),J=null==m?void 0:m.menu,K=(null===(g=null===(E=null==m?void 0:m.general)||void 0===E?void 0:E.verified)||void 0===g?void 0:g.filter(Boolean))||[];return e.createElement("footer",{className:`${s} ${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"===u})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(p=null==m?void 0:m.general)||void 0===p?void 0:p.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(b=null==m?void 0:m.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(f=null===(N=null==m?void 0:m.social)||void 0===N?void 0:N.socials)||void 0===f?void 0:f.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===(k=null===(h=J[0])||void 0===h?void 0:h.items)||void 0===k?void 0:k.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(F=J[1])||void 0===F?void 0:F.menu_title),null===(z=null===($=J[1])||void 0===$?void 0:$.items)||void 0===z?void 0:z.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(j=J[2])||void 0===j?void 0:j.menu_title),null===(T=null===(C=J[2])||void 0===C?void 0:C.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(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(x=null==m?void 0:m.branch)||void 0===x?void 0:x.title),e.createElement("div",{className:"flags"},null===(L=null===(M=null==m?void 0:m.branch)||void 0===M?void 0:M.branch)||void 0===L?void 0:L.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(d,{url:t.flag,isMobile:v,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(l,{size:"xs",type:"regular",className:"copyright-content"},null===(w=null==m?void 0:m.general)||void 0===w?void 0:w.copyright)),"vi-VN"===u&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==m?void 0:m.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==m?void 0:m.menu[1])||void 0===A?void 0:A.menu_title),null===(H=null===(_=null==m?void 0:m.menu[1])||void 0===_?void 0:_.items)||void 0===H?void 0:H.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[u]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[u]}${t.url}`},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[u]}${t.url}`,size:"sm",type:"regular",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(B=null==m?void 0:m.menu[2])||void 0===B?void 0:B.menu_title),null===(G=null===(I=null==m?void 0:m.menu[2])||void 0===I?void 0:I.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(l,{size:"sm",type:"regular",style:{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(l,{size:"sm",type:"regular"},null===(S=null==m?void 0:m.social)||void 0===S?void 0:S.title),e.createElement("div",{className:"icons"},null===(q=null===(D=null==m?void 0:m.social)||void 0===D?void 0:D.socials)||void 0===q?void 0:q.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 u="B6-KmWK",E="GS-7mbG",g="qc5bEb3",y="CQGVeuT",p="_6JMoel-",b="_8eUT8Jr",N="cjDwoLi";const f=({logoType:t="marryBaby",footerMenu:l,background:n})=>{var i;if(!l)return null;const{general:s,menu:m,socials:d}=l;return e.createElement("footer",{className:u,style:{backgroundColor:n||"none"}},e.createElement("div",{className:N},e.createElement(a,null,e.createElement("div",{className:E},null==m?void 0:m.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:g,key:`mbf${l}`},e.createElement(c,{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:y,key:`mbitem${l}`},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:p},e.createElement(r,{className:"logo",type:t}),e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},null==s?void 0:s.content)),e.createElement("div",{className:"social-link"},null==d?void 0:d.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",{loading:"lazy",src:t,alt:a}))))))),e.createElement("div",{className:b},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-3",color:o.colors.white},null==s?void 0:s.copyright),e.createElement("div",{className:"verify"},null===(i=null==s?void 0:s.verified)||void 0===i?void 0:i.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a})))))))))},h=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(v,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement(f,{footerMenu:n,background:i});export{h as Footer};
@@ -1 +1 @@
1
- import{d as s}from"./index-d9629646.js";import{i as e}from"./isProduction-b684ea82.js";import"./Onboarding-51892bac.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};
1
+ import{d as s}from"./index-a3b1043f.js";import{i as e}from"./isProduction-11e95441.js";import"./Onboarding-fc21b4e5.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};
@@ -0,0 +1 @@
1
+ import{a as t}from"./tslib.es6-3d5963e0.js";import{g as i}from"./core-5d64105e.js";import{n as o}from"./normalizeLink-06a00173.js";import{c as l}from"./routing-f224f06c.js";const e=(t,i)=>{var o,l;if(!t)return{};const e="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(o=t.link)||void 0===o?void 0:o.startsWith("http"))?t.link:`${e}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${e}/`,"/")),subtitle:t.subtitle,title:t.title}},n=i=>t(void 0,void 0,void 0,(function*(){var t,n;try{let r;r="undefined"!=typeof window?window.fetch:yield require("node-fetch");const s="tl-PH"===i?"lang=fil":"";let a=[];try{const d=yield r(o(`${l(i)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(n=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>e(t,i))))||[]}catch(t){}return a}catch(t){console.error(t)}})),r=o=>t(void 0,void 0,void 0,(function*(){return(yield i("all-health-tools",(()=>n(o||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{r as a,e as f,n as g};
@@ -1 +1 @@
1
- import e from"react";import{L as t}from"./Onboarding-51892bac.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
1
+ import e from"react";import{L as t}from"./Onboarding-fc21b4e5.js";import{CommonGAssets as C}from"./gAssets.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
@@ -1 +1 @@
1
- export{u as useTranslations}from"./useTranslations-01cdc4e8.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-375fca3a.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-babdd5eb.js";export{u as useHealthToolsCache}from"./useHealthToolCache-408611cc.js";export{u as useIsInit}from"./useIsInit-848679ea.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-72a5f765.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-30ff697e.js";import"react";import"./translationsContext-a6196da1.js";import"string-format";import"lodash/debounce";import"./tslib.es6-d95a42ea.js";import"./cookieHelper-1e48dd9d.js";import"./getDynamicHealthTool-80b1725c.js";import"./core-e112a32e.js";import"./isProduction-b684ea82.js";import"./normalizeLink-cc3f9039.js";import"./routing-43a872db.js";import"./index-d9629646.js";import"./Onboarding-51892bac.js";
1
+ export{u as useTranslations}from"./useTranslations-b3fa0ca2.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-c304e3f9.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-6ecea2aa.js";export{u as useHealthToolsCache}from"./useHealthToolCache-861ca47f.js";export{u as useIsInit}from"./useIsInit-41137bbe.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-84e0c390.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-037a03cb.js";import"react";import"./translationsContext-25ba24fa.js";import"string-format";import"lodash/debounce";import"./tslib.es6-3d5963e0.js";import"./cookieHelper-fc502791.js";import"./getDynamicHealthTool-b0851cf8.js";import"./core-5d64105e.js";import"./isProduction-11e95441.js";import"./normalizeLink-06a00173.js";import"./routing-f224f06c.js";import"./index-a3b1043f.js";import"./Onboarding-fc21b4e5.js";
package/build/esm/i18n.js CHANGED
@@ -1 +1 @@
1
- export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-bbb93ed4.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-a6196da1.js";import"react";
1
+ export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-be97048b.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-25ba24fa.js";import"react";
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-d95a42ea.js";import t from"react";import{S as s,a}from"./index.styled-9bb60204.js";const r=a=>{var{type:r,color:l,style:o}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},l&&{"--text-color":l}),o)},c))},l=s=>{var{type:r,color:l,style:o}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},o),l&&{"--text-color":l})},c))};export{l as M,r as a};
1
+ import{_ as e}from"./tslib.es6-3d5963e0.js";import t from"react";import{S as s,a}from"./index.styled-4ab1decb.js";const r=a=>{var{type:r,color:l,style:o}=a,c=e(a,["type","color","style"]);return t.createElement(s,Object.assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:Object.assign(Object.assign({},l&&{"--text-color":l}),o)},c))},l=s=>{var{type:r,color:l,style:o}=s,c=e(s,["type","color","style"]);return t.createElement(a,Object.assign({"data-type":r,style:Object.assign(Object.assign({},o),l&&{"--text-color":l})},c))};export{l as M,r as a};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./tslib.es6-3d5963e0.js";import l,{createContext as r,useContext as n,useRef as t,useState as i,useEffect as o}from"react";import{Carousel as d}from"@mantine/carousel";import{useResizeObserver as c}from"@mantine/hooks";const s=d.Slide,a=r({}),u=(e,l)=>e>=l?e-l:e,p=r=>{var{children:n,blurFromCenter:s,blurFromIndex:p,blurLength:h=3,maxBlurOpacity:m=.5,onSlideChange:x,selectSlideWhenClick:v}=r,g=e(r,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);const[S,b]=c(),f=t(null),[y,C]=i(0),k=()=>{var e,l,r;const n=null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.selectedScrollSnap();C(n);const t=(null===(l=null==f?void 0:f.current)||void 0===l?void 0:l.slideNodes())||[],i=t.length,o=(null===(r=null==f?void 0:f.current)||void 0===r?void 0:r.slidesInView()).length,d=Math.floor(o/2),c=s?p+h-1:d,a=n+c,x=a===i?0:a>i?a-i:a,v=n-c,g=v<0?i+v:v>0?n-c:0,S=Array(2*c+1).fill("").map(((e,l)=>u(g+l,i)));t.map(((e,l)=>{if(l===n?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==S.indexOf(l)){const n=m/h;for(let o=0;o<h;o++){if(l===u(g+o,i)||l===(t=i,(r=x-o)<0?t+r:r)){e.style.opacity=String((o+1)*n);break}e.style.opacity="1"}}else e.style.opacity="0";var r,t}))},O={getEmblaApi:e=>{f.current=e},onSlideChange:e=>{k(),null==x||x(e)}};return o((()=>{(null==f?void 0:f.current)&&k()}),[b]),l.createElement(a.Provider,{value:{slider:null==f?void 0:f.current,centerSlide:y,selectSlideWhenClick:v}},l.createElement(d,Object.assign({ref:S,slideSize:"auto",containScroll:"trimSnaps"},O,g,{loop:!0}),"function"==typeof n?n(y):n))};p.Slide=r=>{var{children:d,onClick:c,innerSlideProps:u}=r,p=e(r,["children","onClick","innerSlideProps"]);const{slider:h,selectSlideWhenClick:m}=n(a),x=t(),v=t(""),[g,S]=i(0);o((()=>{v.current=String(Math.round(1e4*Math.random()))}),[]),o((()=>{const e=(null==h?void 0:h.slideNodes())||[];S(e.findIndex((e=>e.dataset.key===v.current)))}),[h]);const b={ref:x,"data-key":v.current,"data-index":g,styles:()=>({control:{width:"40px",height:"40px",border:0,background:"white",boxShadow:"rgb(0 0 0 / 4%) 0px 10px 16px, rgb(0 0 0 / 4%) 0px 2px 8px, rgb(0 0 0 / 4%) 0px 0px 1px",svg:{width:"20px",height:"20px"}}})};return l.createElement(s,Object.assign({},b,p),l.createElement("div",Object.assign({onClick:()=>{m&&(null==h||h.scrollTo(g)),null==c||c(g)}},u),d))};export{p as C};
@@ -1 +1 @@
1
- import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-51892bac.js";var b=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return e},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{b as i};
1
+ import{G as r,B as t,a as e,b as a,L as n,O as o}from"./Onboarding-fc21b4e5.js";var b=Object.freeze({__proto__:null,get Gender(){return r},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return e},get BabyGrowthResultTab(){return a},get LOCALE(){return n},get OnboardingStep(){return o}});export{b as i};
@@ -1 +1 @@
1
- import{_ as a}from"./tslib.es6-d95a42ea.js";import e from"react";var t="wIj6fkD";const s=s=>{var{size:r="base",type:o="regular",className:c,style:n,children:d,color:i,dataEventCategory:l,dataEventAction:p,dataEventLabel:v,as:m="p",wordWrap:y,isUppercase:b}=s,g=a(s,["size","type","className","style","children","color","dataEventCategory","dataEventAction","dataEventLabel","as","wordWrap","isUppercase"]);const E=m;return e.createElement(E,Object.assign({"data-size":r,"data-type":o,style:Object.assign(Object.assign({},n),i?{"--custom-color":i}:void 0),className:`${t} ${c||""}`,"data-event-category":l,"data-event-action":p,"data-event-label":v,"data-word-wrap":y,"data-is-uppercase":b},g),d)};export{s as T};
1
+ import{_ as a}from"./tslib.es6-3d5963e0.js";import e from"react";var t="wIj6fkD";const s=s=>{var{size:r="base",type:o="regular",className:c,style:n,children:d,color:i,dataEventCategory:l,dataEventAction:p,dataEventLabel:v,as:m="p",wordWrap:y,isUppercase:b}=s,g=a(s,["size","type","className","style","children","color","dataEventCategory","dataEventAction","dataEventLabel","as","wordWrap","isUppercase"]);const E=m;return e.createElement(E,Object.assign({"data-size":r,"data-type":o,style:Object.assign(Object.assign({},n),i?{"--custom-color":i}:void 0),className:`${t} ${c||""}`,"data-event-category":l,"data-event-action":p,"data-event-label":v,"data-word-wrap":y,"data-is-uppercase":b},g),d)};export{s as T};
@@ -1 +1 @@
1
- import{_ as e}from"./tslib.es6-d95a42ea.js";import a,{useMemo as t}from"react";import{S as s,L as n,a as o,b as l,c as i}from"./index.styled-52954cc1.js";const r=r=>{var{name:c,value:m,errorMessage:d,isNumerousKeyboard:u=!1,showErrorMessage:p=!0,actionIcon:b,displayIcon:y,onActionClick:v,label:g,className:C,onChange:E,isDisabled:N,CustomInput:h,size:I,style:f,autoComplete:k="off",type:A="text",inputClassName:K,trackingAttributes:M,enterKeyHint:z}=r,L=e(r,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const j=t((()=>M?{"data-event-category":M.dataEventCategory,"data-event-action":M.dataEventAction,"data-event-label":M.dataEventLabel}:{}),[M]);return a.createElement(s,{"data-size":I,className:C,"data-has-action-icon":!!b||void 0,"data-has-display-icon":!!y||void 0,"data-has-error":d&&d.length>0||void 0,style:f},g&&a.createElement(n,{size:"label2",htmlFor:c,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},h||a.createElement("input",Object.assign({id:c,name:c,onChange:e=>E&&E(e.target.value),type:A,"aria-label":A,value:m,disabled:N,autoComplete:k,inputMode:u||"number"===A?"numeric":A,pattern:u?"[0-9]*":".*",className:K,enterKeyHint:z},j,L)),y&&a.createElement(o,{className:"displayIcon"},y),b&&a.createElement(l,{className:"actionIcon",onClick:v},b)),d&&d.length>0&&p&&a.createElement(i,{className:"errorLabel"},d))};export{r as I};
1
+ import{_ as e}from"./tslib.es6-3d5963e0.js";import a,{useMemo as t}from"react";import{S as s,L as n,a as o,b as l,c as i}from"./index.styled-8bcfb144.js";const r=r=>{var{name:c,value:m,errorMessage:d,isNumerousKeyboard:u=!1,showErrorMessage:p=!0,actionIcon:b,displayIcon:y,onActionClick:v,label:g,className:C,onChange:E,isDisabled:N,CustomInput:h,size:I,style:f,autoComplete:k="off",type:A="text",inputClassName:K,trackingAttributes:M,enterKeyHint:z}=r,L=e(r,["name","value","errorMessage","isNumerousKeyboard","showErrorMessage","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]);const j=t((()=>M?{"data-event-category":M.dataEventCategory,"data-event-action":M.dataEventAction,"data-event-label":M.dataEventLabel}:{}),[M]);return a.createElement(s,{"data-size":I,className:C,"data-has-action-icon":!!b||void 0,"data-has-display-icon":!!y||void 0,"data-has-error":d&&d.length>0||void 0,style:f},g&&a.createElement(n,{size:"label2",htmlFor:c,className:"inputLabel"},g),a.createElement("div",{style:{position:"relative"}},h||a.createElement("input",Object.assign({id:c,name:c,onChange:e=>E&&E(e.target.value),type:A,"aria-label":A,value:m,disabled:N,autoComplete:k,inputMode:u||"number"===A?"numeric":A,pattern:u?"[0-9]*":".*",className:K,enterKeyHint:z},j,L)),y&&a.createElement(o,{className:"displayIcon"},y),b&&a.createElement(l,{className:"actionIcon",onClick:v},b)),d&&d.length>0&&p&&a.createElement(i,{className:"errorLabel"},d))};export{r as I};
@@ -1,4 +1,4 @@
1
- import{createEmotionCache as e,Slider as n,FileInput as t,NumberInput as o,PasswordInput as r,TextInput as a,Input as s}from"@mantine/core";import l from"styled-components";import{_ as i}from"./tslib.es6-d95a42ea.js";import m,{useState as c,useEffect as d,forwardRef as u}from"react";import{useDebouncedValue as p}from"@mantine/hooks";import{CommonGAssets as g}from"./gAssets.js";var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e){var n={exports:{}};return e(n,n.exports),n.exports}const f=300,v=e({key:"mantine",prepend:!1}),y=l(n)`
1
+ import{createEmotionCache as e,Slider as n,FileInput as t,NumberInput as o,PasswordInput as r,TextInput as a,Input as s}from"@mantine/core";import l from"styled-components";import{_ as i}from"./tslib.es6-3d5963e0.js";import m,{useState as c,useEffect as d,forwardRef as u}from"react";import{useDebouncedValue as p}from"@mantine/hooks";import{CommonGAssets as g}from"./gAssets.js";var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e){var n={exports:{}};return e(n,n.exports),n.exports}const f=300,v=e({key:"mantine",prepend:!1}),y=l(n)`
2
2
  ${e=>{const n=e.color||e.theme.colors.primaryBase;return`\n .mantine-Slider-bar {\n background-color: ${n};\n }\n .mantine-Slider-thumb {\n border-color: ${n};\n color: ${n};\n }\n `}}
3
3
  [data-theme='marryBaby'] & {
4
4
  ${e=>{const n=e.color||e.theme.mbColors.pink;return`\n .mantine-Slider-bar {\n background-color: ${n};\n }\n .mantine-Slider-thumb {\n border-color: ${n};\n color: ${n};\n }\n `}}
@@ -0,0 +1 @@
1
+ import{_ as e}from"./tslib.es6-3d5963e0.js";import t,{useState as o,useEffect as n}from"react";import{useDebouncedValue as s}from"@mantine/hooks";import{B as a}from"./index-9f204251.js";import{D as r,S as i,b as l}from"./index-2de6b37f.js";const m=m=>{var{color:c,withControl:h,onChange:d,value:g,min:w,max:p,isStatic:u,containerClassName:k,containerStyle:v}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[f,C]=o(g||w||0),[b]=s(f,r);return n((()=>{null==d||d(b)}),[b]),n((()=>{C(g)}),[g]),t.createElement(i,{className:k,style:v},h&&t.createElement(a,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>w&&e===w?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:f,onChange:u?()=>null:C,min:w,max:p},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(a,{type:"button",size:"sm",color:"ghost",onClick:()=>{C((e=>p&&e===p?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};