@hhgtech/hhg-components 1.28.45 → 1.28.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/README.md +5 -0
  2. package/build/animation-1e9aff6a.js +81 -0
  3. package/build/babyGrowth.js +24 -24
  4. package/build/cache.js +1 -1
  5. package/build/care.js +1 -1
  6. package/build/components.js +1 -1
  7. package/build/{constants-eed0df85.js → constants-28db3174.js} +1 -1
  8. package/build/{constants-715f497a.js → constants-627c575a.js} +2 -2
  9. package/build/constants.js +1 -1
  10. package/build/{core-053d2b2b.js → core-19b328be.js} +1 -1
  11. package/build/dataTransform-308ec1d0.js +1 -0
  12. package/build/ecom.js +1 -1
  13. package/build/esm/animation-03daa77e.js +81 -0
  14. package/build/esm/babyGrowth.js +38 -38
  15. package/build/esm/cache.js +1 -1
  16. package/build/esm/care.js +1 -1
  17. package/build/esm/components.js +1 -1
  18. package/build/esm/{constants-995212e1.js → constants-414e0341.js} +1 -1
  19. package/build/esm/{constants-474a60fc.js → constants-e35c5696.js} +2 -2
  20. package/build/esm/constants.js +1 -1
  21. package/build/esm/{core-a9271475.js → core-091d7f79.js} +1 -1
  22. package/build/esm/dataTransform-6f1823e1.js +1 -0
  23. package/build/esm/ecom.js +1 -1
  24. package/build/esm/footer.js +1 -1
  25. package/build/esm/gAssets.js +1 -1
  26. package/build/esm/getDynamicHealthTool-37333454.js +1 -0
  27. package/build/esm/{getSocialList-2b54a130.js → getSocialList-a6c965a8.js} +1 -1
  28. package/build/esm/hooks.js +1 -1
  29. package/build/esm/i18n.js +1 -1
  30. package/build/esm/i18nV2.js +1 -1
  31. package/build/esm/{index-4cc27c0a.js → index-1bf1317e.js} +9 -9
  32. package/build/esm/{index-fdc4fb0f.js → index-34cf1092.js} +1 -1
  33. package/build/esm/{index-7678ada1.js → index-3d2b9817.js} +1 -1
  34. package/build/esm/index-3e89f917.js +1 -0
  35. package/build/esm/{index-cd710e7d.js → index-4786b57c.js} +1 -1
  36. package/build/esm/{index-ab03b9dd.js → index-49c2a65e.js} +1 -1
  37. package/build/esm/index-5cacbac8.js +1 -0
  38. package/build/esm/index-638a744e.js +1 -0
  39. package/build/esm/index-73532662.js +1 -0
  40. package/build/esm/index-7b8714ba.js +1 -0
  41. package/build/esm/index-865973f4.js +375 -0
  42. package/build/esm/{index-2eaf28c4.js → index-92506b05.js} +1 -1
  43. package/build/esm/{index-1cfc85b4.js → index-9e5a2805.js} +3 -3
  44. package/build/esm/index-a0bcdf6a.js +1 -0
  45. package/build/esm/index-bb8dc02f.js +1 -0
  46. package/build/esm/{index-a454d80b.js → index-bcca5543.js} +1 -1
  47. package/build/esm/index-c1cb45b2.js +1 -0
  48. package/build/esm/index-cb13973d.js +50 -0
  49. package/build/esm/index-cc5ea46f.js +137 -0
  50. package/build/esm/index-d18cfff8.js +2748 -0
  51. package/build/esm/index-d6dac1a0.js +177 -0
  52. package/build/esm/index-f21deeb6.js +1430 -0
  53. package/build/esm/index-fd0e0617.js +1 -0
  54. package/build/esm/index.js +1 -1
  55. package/build/esm/{index.styled-4098b19f.js → index.styled-b876c90a.js} +3 -3
  56. package/build/esm/index.styles-00233f7a.js +839 -0
  57. package/build/esm/lead.js +1 -1
  58. package/build/esm/mantine.js +1 -1
  59. package/build/esm/misc.js +1 -1
  60. package/build/esm/navigation.js +1 -1
  61. package/build/esm/onboardingV2.js +34 -34
  62. package/build/esm/pwg.js +5 -5
  63. package/build/esm/{routing-d3019505.js → routing-5b211351.js} +1 -1
  64. package/build/esm/subot.js +124 -124
  65. package/build/esm/together.js +1 -1
  66. package/build/esm/types-21b8927e.js +3004 -0
  67. package/build/esm/{types-56ff87b5.js → types-242705e6.js} +10 -10
  68. package/build/esm/types.js +1 -1
  69. package/build/esm/useCategory-2e217da0.js +1 -0
  70. package/build/esm/{useHealthToolCache-4a39e9dc.js → useHealthToolCache-011e34e2.js} +1 -1
  71. package/build/esm/{usePlacesAutocomplete-80551f6b.js → usePlacesAutocomplete-ed4983f5.js} +1 -1
  72. package/build/esm/{useTranslations-2b415154.js → useTranslations-80f9bf98.js} +1 -1
  73. package/build/esm/{utils-9dae9f7b.js → utils-19ad9237.js} +2 -2
  74. package/build/esm/utils-39fb1c8c.js +7 -0
  75. package/build/esm/utils-3f639011.js +1 -0
  76. package/build/esm/{utils-6577ea25.js → utils-d4e0e9b5.js} +1 -1
  77. package/build/esm/vaccination.js +40 -40
  78. package/build/footer.js +1 -1
  79. package/build/gAssets.js +1 -1
  80. package/build/getDynamicHealthTool-3e4543ff.js +1 -0
  81. package/build/{getSocialList-b951173d.js → getSocialList-196c323b.js} +1 -1
  82. package/build/hooks.js +1 -1
  83. package/build/i18n.js +1 -1
  84. package/build/i18nV2.js +1 -1
  85. package/build/{index-f85e80c5.js → index-065c9097.js} +1 -1
  86. package/build/index-07dff904.js +1 -0
  87. package/build/index-0c7093ea.js +50 -0
  88. package/build/{index-fe775c96.js → index-0f6355d4.js} +1 -1
  89. package/build/index-19e259ce.js +1 -0
  90. package/build/index-2420eee5.js +1430 -0
  91. package/build/index-425f3390.js +1 -0
  92. package/build/index-43df25b1.js +1 -0
  93. package/build/{index-6e685d2b.js → index-4a8b5e48.js} +1 -1
  94. package/build/index-4c4d7568.js +137 -0
  95. package/build/{index-72cfe602.js → index-4de92198.js} +4 -4
  96. package/build/{index-b23382c3.js → index-5385e211.js} +1 -1
  97. package/build/{index-f1338b36.js → index-6f8ff7df.js} +1 -1
  98. package/build/index-7154350f.js +375 -0
  99. package/build/{index-b3478b6c.js → index-8a21ecb2.js} +1 -1
  100. package/build/index-8e6644eb.js +1 -0
  101. package/build/{index-5f2adc06.js → index-9003442e.js} +1 -1
  102. package/build/{index-718b4bad.js → index-96dd78ba.js} +3 -3
  103. package/build/index-beef0ff7.js +1 -0
  104. package/build/index-cbbe3154.js +2748 -0
  105. package/build/{index-d14172a4.js → index-d27a3f5f.js} +1 -1
  106. package/build/{index-cdf087ee.js → index-e13a4f9a.js} +1 -1
  107. package/build/index-ff74de8e.js +177 -0
  108. package/build/index.js +1 -1
  109. package/build/{index.styled-2bb5f5a2.js → index.styled-a45b7854.js} +1 -1
  110. package/build/index.styles-ce607f17.js +839 -0
  111. package/build/lead.js +1 -1
  112. package/build/mantine.js +1 -1
  113. package/build/misc.js +1 -1
  114. package/build/navigation.js +1 -1
  115. package/build/onboardingV2.js +34 -34
  116. package/build/pwg.js +2 -2
  117. package/build/{routing-9c9a4f25.js → routing-46446fba.js} +1 -1
  118. package/build/subot.js +123 -123
  119. package/build/together.js +1 -1
  120. package/build/types-d2335814.js +3004 -0
  121. package/build/{types-adecb2ce.js → types-e54d8d93.js} +10 -10
  122. package/build/types.js +1 -1
  123. package/build/useCategory-c99469f2.js +1 -0
  124. package/build/{useHealthToolCache-260b51e2.js → useHealthToolCache-dc437f4f.js} +1 -1
  125. package/build/{usePlacesAutocomplete-39be4478.js → usePlacesAutocomplete-55e04a25.js} +1 -1
  126. package/build/{useTranslations-1ddacded.js → useTranslations-b435b717.js} +1 -1
  127. package/build/utils-469dda3f.js +1 -0
  128. package/build/{utils-871f6c88.js → utils-83803365.js} +2 -2
  129. package/build/{utils-a5d09d21.js → utils-9778a239.js} +1 -1
  130. package/build/utils-c18ec2df.js +1 -0
  131. package/build/vaccination.js +33 -33
  132. package/package.json +7 -3
  133. package/build/dataTransform-d5d1a86d.js +0 -1
  134. package/build/esm/dataTransform-f4d63a0a.js +0 -1
  135. package/build/esm/getDynamicHealthTool-9b662a1a.js +0 -1
  136. package/build/esm/index-303e2009.js +0 -1
  137. package/build/esm/index-3c4ac2ae.js +0 -1
  138. package/build/esm/index-4bc5ecbb.js +0 -1
  139. package/build/esm/index-55d2faa0.js +0 -1
  140. package/build/esm/index-608b4a88.js +0 -177
  141. package/build/esm/index-6f066011.js +0 -1
  142. package/build/esm/index-95a46cf3.js +0 -1
  143. package/build/esm/index-993a5f79.js +0 -1
  144. package/build/esm/index-a2dcf4e9.js +0 -1
  145. package/build/esm/index-baaa911b.js +0 -1
  146. package/build/esm/index-be8e7751.js +0 -1
  147. package/build/esm/index-cc519ac7.js +0 -3122
  148. package/build/esm/index-d17ea22d.js +0 -1
  149. package/build/esm/index-d343bc50.js +0 -1
  150. package/build/esm/index-ff10bc28.js +0 -1
  151. package/build/esm/index.styled-156505c7.js +0 -1430
  152. package/build/esm/index.styled-3e11e657.js +0 -3140
  153. package/build/esm/index.styled-be084b87.js +0 -50
  154. package/build/esm/index.styles-caebb95e.js +0 -846
  155. package/build/esm/screenSizeContext-8e3cd726.js +0 -81
  156. package/build/esm/types-f3a821e7.js +0 -1
  157. package/build/esm/useCategory-e47c3929.js +0 -1
  158. package/build/esm/useRafState-8fe79e7a.js +0 -1
  159. package/build/getDynamicHealthTool-ecfb21b0.js +0 -1
  160. package/build/index-0988dfe4.js +0 -1
  161. package/build/index-0f3e6076.js +0 -1
  162. package/build/index-10d9fdff.js +0 -177
  163. package/build/index-24113bb4.js +0 -1
  164. package/build/index-3489608d.js +0 -1
  165. package/build/index-4bfad06d.js +0 -1
  166. package/build/index-7b85f299.js +0 -1
  167. package/build/index-901812ad.js +0 -3122
  168. package/build/index-c22d32f6.js +0 -1
  169. package/build/index-d74ab92f.js +0 -1
  170. package/build/index-db0da298.js +0 -1
  171. package/build/index-f4356d3b.js +0 -1
  172. package/build/index.styled-39310ce9.js +0 -50
  173. package/build/index.styled-3a1748a5.js +0 -3140
  174. package/build/index.styled-75539e3d.js +0 -1430
  175. package/build/index.styles-d3c65e64.js +0 -846
  176. package/build/screenSizeContext-83eeed99.js +0 -81
  177. package/build/types-582a67ed.js +0 -1
  178. package/build/useCategory-957ea2a8.js +0 -1
  179. package/build/useRafState-8a41d548.js +0 -1
  180. /package/build/{BMI_BOYS.percentile.monthly-3ccdbf2f.js → BMI_BOYS.percentile.monthly-0eb54c7c.js} +0 -0
  181. /package/build/{BMI_BOYS.percentile.weekly-003704d5.js → BMI_BOYS.percentile.weekly-b7bde0b1.js} +0 -0
  182. /package/build/{BMI_BOYS.percentile.yearly-51f6c930.js → BMI_BOYS.percentile.yearly-2aa9ad44.js} +0 -0
  183. /package/build/{BMI_BOYS.zscore.monthly-05504085.js → BMI_BOYS.zscore.monthly-97389f6d.js} +0 -0
  184. /package/build/{BMI_BOYS.zscore.weekly-2a93a8db.js → BMI_BOYS.zscore.weekly-bc5a17ee.js} +0 -0
  185. /package/build/{BMI_BOYS.zscore.yearly-37291e62.js → BMI_BOYS.zscore.yearly-95e1abf3.js} +0 -0
  186. /package/build/{BMI_GIRLS.percentile.monthly-97288e63.js → BMI_GIRLS.percentile.monthly-8a628c8b.js} +0 -0
  187. /package/build/{BMI_GIRLS.percentile.weekly-c701d6ff.js → BMI_GIRLS.percentile.weekly-c3423d0b.js} +0 -0
  188. /package/build/{BMI_GIRLS.percentile.yearly-edee3575.js → BMI_GIRLS.percentile.yearly-30c05aa5.js} +0 -0
  189. /package/build/{BMI_GIRLS.zscore.monthly-0ac77300.js → BMI_GIRLS.zscore.monthly-e81868f9.js} +0 -0
  190. /package/build/{BMI_GIRLS.zscore.weekly-f726c4f9.js → BMI_GIRLS.zscore.weekly-98365971.js} +0 -0
  191. /package/build/{BMI_GIRLS.zscore.yearly-c1af9dbd.js → BMI_GIRLS.zscore.yearly-34dac101.js} +0 -0
  192. /package/build/{ChevronDown-e26b6333.js → ChevronDown-77fab19e.js} +0 -0
  193. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c1dbc6d4.js → HEAD CIRCUM_BOYS.percentile.monthly-f49c4a46.js} +0 -0
  194. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-9c97d194.js → HEAD CIRCUM_BOYS.percentile.weekly-72afd132.js} +0 -0
  195. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-84f770fb.js → HEAD CIRCUM_BOYS.percentile.yearly-ab0deda0.js} +0 -0
  196. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-8522b577.js → HEAD CIRCUM_BOYS.zscore.monthly-fbd5f8c4.js} +0 -0
  197. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d05b4957.js → HEAD CIRCUM_BOYS.zscore.weekly-87f840f6.js} +0 -0
  198. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d1d2d682.js → HEAD CIRCUM_BOYS.zscore.yearly-9a7dd00c.js} +0 -0
  199. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-bc7f8e45.js → HEAD CIRCUM_GIRLS.percentile.monthly-679b8839.js} +0 -0
  200. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-e24f18fa.js → HEAD CIRCUM_GIRLS.percentile.weekly-b4e20015.js} +0 -0
  201. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-65fe9b8f.js → HEAD CIRCUM_GIRLS.percentile.yearly-9cd60765.js} +0 -0
  202. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-cc51585e.js → HEAD CIRCUM_GIRLS.zscore.monthly-ab6de2c6.js} +0 -0
  203. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-0cdef99a.js → HEAD CIRCUM_GIRLS.zscore.weekly-7d38c523.js} +0 -0
  204. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-b4df0cb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-eb9d57e8.js} +0 -0
  205. /package/build/{HEIGHT_BOYS.percentile.monthly-42701f3c.js → HEIGHT_BOYS.percentile.monthly-41de847f.js} +0 -0
  206. /package/build/{HEIGHT_BOYS.percentile.weekly-dde65fbd.js → HEIGHT_BOYS.percentile.weekly-62b868f0.js} +0 -0
  207. /package/build/{HEIGHT_BOYS.percentile.yearly-00d00cf7.js → HEIGHT_BOYS.percentile.yearly-e2c7bb82.js} +0 -0
  208. /package/build/{HEIGHT_BOYS.zscore.monthly-9b22b188.js → HEIGHT_BOYS.zscore.monthly-5d6cc9db.js} +0 -0
  209. /package/build/{HEIGHT_BOYS.zscore.weekly-1e042b69.js → HEIGHT_BOYS.zscore.weekly-d7b99302.js} +0 -0
  210. /package/build/{HEIGHT_BOYS.zscore.yearly-0c232fd2.js → HEIGHT_BOYS.zscore.yearly-e5699025.js} +0 -0
  211. /package/build/{HEIGHT_GIRLS.percentile.monthly-1dc63069.js → HEIGHT_GIRLS.percentile.monthly-bac0286d.js} +0 -0
  212. /package/build/{HEIGHT_GIRLS.percentile.weekly-4b58bd05.js → HEIGHT_GIRLS.percentile.weekly-6999925f.js} +0 -0
  213. /package/build/{HEIGHT_GIRLS.percentile.yearly-9fc93f07.js → HEIGHT_GIRLS.percentile.yearly-ebfa2c19.js} +0 -0
  214. /package/build/{HEIGHT_GIRLS.zscore.monthly-35400da4.js → HEIGHT_GIRLS.zscore.monthly-39be4dd2.js} +0 -0
  215. /package/build/{HEIGHT_GIRLS.zscore.weekly-dd1f44e2.js → HEIGHT_GIRLS.zscore.weekly-207cf2f5.js} +0 -0
  216. /package/build/{HEIGHT_GIRLS.zscore.yearly-a69b75ca.js → HEIGHT_GIRLS.zscore.yearly-265aafc2.js} +0 -0
  217. /package/build/{Subot-695ffc58.js → Subot-54546cbb.js} +0 -0
  218. /package/build/{Visible-72e550ed.js → Visible-27b623f0.js} +0 -0
  219. /package/build/{WEIGHT_BOYS.percentile.monthly-2dea455a.js → WEIGHT_BOYS.percentile.monthly-9ca3a316.js} +0 -0
  220. /package/build/{WEIGHT_BOYS.percentile.weekly-184f141e.js → WEIGHT_BOYS.percentile.weekly-7e51fb9b.js} +0 -0
  221. /package/build/{WEIGHT_BOYS.percentile.yearly-c9e8aaf8.js → WEIGHT_BOYS.percentile.yearly-b47c5be9.js} +0 -0
  222. /package/build/{WEIGHT_BOYS.zscore.monthly-c9f03466.js → WEIGHT_BOYS.zscore.monthly-6d59370f.js} +0 -0
  223. /package/build/{WEIGHT_BOYS.zscore.weekly-413af608.js → WEIGHT_BOYS.zscore.weekly-38beac02.js} +0 -0
  224. /package/build/{WEIGHT_BOYS.zscore.yearly-fd8ddd34.js → WEIGHT_BOYS.zscore.yearly-1f4013a7.js} +0 -0
  225. /package/build/{WEIGHT_GIRLS.percentile.monthly-b78e414e.js → WEIGHT_GIRLS.percentile.monthly-c9144c22.js} +0 -0
  226. /package/build/{WEIGHT_GIRLS.percentile.weekly-6979e7ca.js → WEIGHT_GIRLS.percentile.weekly-5455b91e.js} +0 -0
  227. /package/build/{WEIGHT_GIRLS.percentile.yearly-be5d12e7.js → WEIGHT_GIRLS.percentile.yearly-03c736dd.js} +0 -0
  228. /package/build/{WEIGHT_GIRLS.zscore.monthly-28299624.js → WEIGHT_GIRLS.zscore.monthly-415a66a8.js} +0 -0
  229. /package/build/{WEIGHT_GIRLS.zscore.weekly-8584439e.js → WEIGHT_GIRLS.zscore.weekly-1e23361d.js} +0 -0
  230. /package/build/{WEIGHT_GIRLS.zscore.yearly-2e04a2a2.js → WEIGHT_GIRLS.zscore.yearly-8db29178.js} +0 -0
  231. /package/build/{cookieHelper-2e8bb9fa.js → cookieHelper-59a64e32.js} +0 -0
  232. /package/build/esm/{BMI_BOYS.percentile.monthly-486f83ee.js → BMI_BOYS.percentile.monthly-57e884f8.js} +0 -0
  233. /package/build/esm/{BMI_BOYS.percentile.weekly-fd3c15c3.js → BMI_BOYS.percentile.weekly-b2c63459.js} +0 -0
  234. /package/build/esm/{BMI_BOYS.percentile.yearly-da6eb7ec.js → BMI_BOYS.percentile.yearly-8ca90fac.js} +0 -0
  235. /package/build/esm/{BMI_BOYS.zscore.monthly-62d445f2.js → BMI_BOYS.zscore.monthly-b493d2f9.js} +0 -0
  236. /package/build/esm/{BMI_BOYS.zscore.weekly-f67c90eb.js → BMI_BOYS.zscore.weekly-62ae4fbc.js} +0 -0
  237. /package/build/esm/{BMI_BOYS.zscore.yearly-b1a41fe8.js → BMI_BOYS.zscore.yearly-e2aad569.js} +0 -0
  238. /package/build/esm/{BMI_GIRLS.percentile.monthly-66a216cc.js → BMI_GIRLS.percentile.monthly-7f8de0c2.js} +0 -0
  239. /package/build/esm/{BMI_GIRLS.percentile.weekly-b46429d6.js → BMI_GIRLS.percentile.weekly-6e0b116a.js} +0 -0
  240. /package/build/esm/{BMI_GIRLS.percentile.yearly-6a6af348.js → BMI_GIRLS.percentile.yearly-4a395636.js} +0 -0
  241. /package/build/esm/{BMI_GIRLS.zscore.monthly-41bb8c08.js → BMI_GIRLS.zscore.monthly-be973fb7.js} +0 -0
  242. /package/build/esm/{BMI_GIRLS.zscore.weekly-04eb8b89.js → BMI_GIRLS.zscore.weekly-c19aae0e.js} +0 -0
  243. /package/build/esm/{BMI_GIRLS.zscore.yearly-099feda2.js → BMI_GIRLS.zscore.yearly-7bf54eb9.js} +0 -0
  244. /package/build/esm/{ChevronDown-c2b4123b.js → ChevronDown-b9b5a352.js} +0 -0
  245. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-53d11c4f.js → HEAD CIRCUM_BOYS.percentile.monthly-6e42d726.js} +0 -0
  246. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-19dae757.js → HEAD CIRCUM_BOYS.percentile.weekly-8999c4bf.js} +0 -0
  247. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e744f2ee.js → HEAD CIRCUM_BOYS.percentile.yearly-b5760636.js} +0 -0
  248. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-12b76190.js → HEAD CIRCUM_BOYS.zscore.monthly-fe30f273.js} +0 -0
  249. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a62a347c.js → HEAD CIRCUM_BOYS.zscore.weekly-17145cf6.js} +0 -0
  250. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-d1c96a90.js → HEAD CIRCUM_BOYS.zscore.yearly-0d813a98.js} +0 -0
  251. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-52e91c35.js → HEAD CIRCUM_GIRLS.percentile.monthly-ae35f7b2.js} +0 -0
  252. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-51fd4b94.js → HEAD CIRCUM_GIRLS.percentile.weekly-430e5931.js} +0 -0
  253. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-fb3c718e.js → HEAD CIRCUM_GIRLS.percentile.yearly-ce5d85d6.js} +0 -0
  254. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8d54ac23.js → HEAD CIRCUM_GIRLS.zscore.monthly-b304dc6c.js} +0 -0
  255. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-17722148.js → HEAD CIRCUM_GIRLS.zscore.weekly-de588d96.js} +0 -0
  256. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-0849bdb2.js → HEAD CIRCUM_GIRLS.zscore.yearly-44e77264.js} +0 -0
  257. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-9219856c.js → HEIGHT_BOYS.percentile.monthly-e574a87c.js} +0 -0
  258. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f257a74f.js → HEIGHT_BOYS.percentile.weekly-49bc6c02.js} +0 -0
  259. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3ed1a065.js → HEIGHT_BOYS.percentile.yearly-99cf7774.js} +0 -0
  260. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a58e6f2e.js → HEIGHT_BOYS.zscore.monthly-63c3566b.js} +0 -0
  261. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-af59d81d.js → HEIGHT_BOYS.zscore.weekly-a7eff90c.js} +0 -0
  262. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d64544e6.js → HEIGHT_BOYS.zscore.yearly-b06dea5e.js} +0 -0
  263. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-58d712e2.js → HEIGHT_GIRLS.percentile.monthly-b154ae1d.js} +0 -0
  264. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f5718378.js → HEIGHT_GIRLS.percentile.weekly-a3dd221b.js} +0 -0
  265. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-306e09e7.js → HEIGHT_GIRLS.percentile.yearly-c1a93361.js} +0 -0
  266. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ad472813.js → HEIGHT_GIRLS.zscore.monthly-47b24f91.js} +0 -0
  267. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e53d92d3.js → HEIGHT_GIRLS.zscore.weekly-f3cd351a.js} +0 -0
  268. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3e6e23aa.js → HEIGHT_GIRLS.zscore.yearly-f6e9bb0c.js} +0 -0
  269. /package/build/esm/{Subot-dc774172.js → Subot-0c45fa4c.js} +0 -0
  270. /package/build/esm/{Visible-302a3e45.js → Visible-3eb21335.js} +0 -0
  271. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-49a7ae53.js → WEIGHT_BOYS.percentile.monthly-87900c96.js} +0 -0
  272. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-63420203.js → WEIGHT_BOYS.percentile.weekly-6fb93a78.js} +0 -0
  273. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-26609ac2.js → WEIGHT_BOYS.percentile.yearly-ccca0fe8.js} +0 -0
  274. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-cb16306f.js → WEIGHT_BOYS.zscore.monthly-35d466dc.js} +0 -0
  275. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-291be10f.js → WEIGHT_BOYS.zscore.weekly-d74d6ff5.js} +0 -0
  276. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6a25a7fa.js → WEIGHT_BOYS.zscore.yearly-2c068e1e.js} +0 -0
  277. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d11ea01c.js → WEIGHT_GIRLS.percentile.monthly-1ee7e829.js} +0 -0
  278. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-93c36ba6.js → WEIGHT_GIRLS.percentile.weekly-ab30775b.js} +0 -0
  279. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-5fc6d885.js → WEIGHT_GIRLS.percentile.yearly-893b6771.js} +0 -0
  280. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0f6fd15b.js → WEIGHT_GIRLS.zscore.monthly-c37f1d39.js} +0 -0
  281. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ea9c19e1.js → WEIGHT_GIRLS.zscore.weekly-3a1449f6.js} +0 -0
  282. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-9665443f.js → WEIGHT_GIRLS.zscore.yearly-aa00837d.js} +0 -0
  283. /package/build/esm/{cookieHelper-d6490b00.js → cookieHelper-cbd9f06e.js} +0 -0
  284. /package/build/esm/{index-a59b0ec0.js → index-7d682662.js} +0 -0
  285. /package/build/esm/{index-379f6571.js → index-c9bdb9a2.js} +0 -0
  286. /package/build/esm/{index-d5fe6c4e.js → index-fb029176.js} +0 -0
  287. /package/build/esm/{isProduction-7b1509aa.js → isProduction-cfb9150a.js} +0 -0
  288. /package/build/esm/{localizeNumberFormat-b4e337ed.js → localizeNumberFormat-213a73b8.js} +0 -0
  289. /package/build/esm/{normalizeLink-7bed1319.js → normalizeLink-cc25681e.js} +0 -0
  290. /package/build/esm/{number-eb39d16c.js → number-dd894856.js} +0 -0
  291. /package/build/esm/{paths-2e45cb1b.js → paths-2d37bc61.js} +0 -0
  292. /package/build/esm/{theme-adbee273.js → theme-9f017335.js} +0 -0
  293. /package/build/esm/{translationsContext-4623d384.js → translationsContext-9fc8f894.js} +0 -0
  294. /package/build/esm/{tslib.es6-693de4fd.js → tslib.es6-cabcb8ea.js} +0 -0
  295. /package/build/esm/{types-054bf1d5.js → types-2d28585d.js} +0 -0
  296. /package/build/esm/{useIsInit-7d5bf403.js → useIsInit-81de6d8b.js} +0 -0
  297. /package/build/esm/{useOutsideClick-5c82f669.js → useOutsideClick-e1437a3f.js} +0 -0
  298. /package/build/esm/{useScrollbarSize-cfeb4651.js → useScrollbarSize-6ecc2f5a.js} +0 -0
  299. /package/build/{index-408e11c4.js → index-21c825aa.js} +0 -0
  300. /package/build/{index-346123fd.js → index-4b719c83.js} +0 -0
  301. /package/build/{index-53fb3b00.js → index-7005321e.js} +0 -0
  302. /package/build/{isProduction-87f95c7d.js → isProduction-426652cc.js} +0 -0
  303. /package/build/{localizeNumberFormat-e7196b4e.js → localizeNumberFormat-5389239f.js} +0 -0
  304. /package/build/{normalizeLink-245ad49c.js → normalizeLink-ef4fc463.js} +0 -0
  305. /package/build/{number-5c9d6f63.js → number-f6e8e1a9.js} +0 -0
  306. /package/build/{paths-3287ee93.js → paths-b1c94851.js} +0 -0
  307. /package/build/{theme-785c6f0c.js → theme-98a7bede.js} +0 -0
  308. /package/build/{translationsContext-efee8d50.js → translationsContext-6c5fb248.js} +0 -0
  309. /package/build/{tslib.es6-ef1f81bf.js → tslib.es6-d46558cb.js} +0 -0
  310. /package/build/{types-0321e2cc.js → types-032556e4.js} +0 -0
  311. /package/build/{useIsInit-311b057a.js → useIsInit-8386673c.js} +0 -0
  312. /package/build/{useOutsideClick-7ddf4eaa.js → useOutsideClick-5544e570.js} +0 -0
  313. /package/build/{useScrollbarSize-6947aaa0.js → useScrollbarSize-d4ccc356.js} +0 -0
@@ -0,0 +1,375 @@
1
+ "use strict";var e=require("react"),a=require("./index-beef0ff7.js"),t=require("./useTranslations-b435b717.js"),r=require("date-fns"),i=require("react-day-picker/DayPickerInput"),o=require("styled-components"),n=require("./theme-98a7bede.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=c(e),l=c(i),s=c(o),p="tliWyii";const u={"vi-VN":["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],"id-ID":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"ms-MY":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"km-KH":["មករា","ខែកុម្ភៈ","មីនា","ខែមេសា","ឧសភា","មិថុនា","ខែកក្កដា","សីហា","ខែកញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],"en-PH":["January","February","March","April","May","June","July","August","September","October","November","December"],"th-TH":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","อาจ","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"my-MM":["ဇန်နဝါရီလ","ဖေဖော်ဝါရီလ","မတ်လ","ပြီလ","မေလ","ဇွန","ဇူလိုင်လ","သြဂုတ်လ","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"],"zh-TW":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"hi-IN":["जनवरी","फ़रवरी","जुलूस","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},y=s.default.div`
2
+ .pickerContainer {
3
+ position: relative;
4
+ padding-top: 0;
5
+ & > div > svg {
6
+ position: absolute;
7
+ top: 36px;
8
+ right: 16px;
9
+ cursor: pointer;
10
+ }
11
+
12
+ & > :not(:first-child) {
13
+ position: absolute;
14
+ z-index: 2;
15
+ width: 100%;
16
+ }
17
+ }
18
+
19
+ &[data-is-static] .pickerOverlayWrapper {
20
+ position: static;
21
+ max-width: 250px;
22
+ aspect-ratio: 1 / 1;
23
+
24
+ > .pickerOverlay {
25
+ padding: 1rem;
26
+ }
27
+ }
28
+
29
+ .pickerOverlayWrapper {
30
+ min-width: 320px;
31
+ }
32
+
33
+ &[data-align-right='true'] {
34
+ .pickerOverlayWrapper {
35
+ right: 0;
36
+ }
37
+ }
38
+
39
+ .pickerOverlay {
40
+ margin-top: 6px;
41
+ background: white;
42
+ border-radius: ${n.theme.borderRadius};
43
+ box-shadow: 0px 6px 12px rgba(67, 86, 100, 0.2);
44
+ }
45
+
46
+ .picker {
47
+ width: 100%;
48
+ }
49
+
50
+ .react-datepicker-popper {
51
+ .react-datepicker {
52
+ display: flex;
53
+ width: 340px;
54
+ height: 305px;
55
+ align-items: center;
56
+ justify-content: center;
57
+ border: none;
58
+ box-shadow: (-1px 1px 2px rgba(67, 70, 74, 0.0001)),
59
+ (-2px 2px 5px rgba(67, 86, 100, 0.123689));
60
+ }
61
+
62
+ .svg {
63
+ cursor: pointer;
64
+ stroke: ${n.theme.colors.gray800};
65
+ }
66
+ .react-datepicker__day {
67
+ width: 40px;
68
+ }
69
+
70
+ .react-datepicker__header {
71
+ border-bottom: 0;
72
+ background-color: white;
73
+ }
74
+
75
+ .react-datepicker__day--outside-month {
76
+ color: #e9e9e9;
77
+ }
78
+
79
+ .react-datepicker__day {
80
+ font-weight: ${n.theme.sizes.fwBold};
81
+ }
82
+
83
+ .react-datepicker__day--selected,
84
+ .react-datepicker__day--today,
85
+ .react-datepicker__day--selected:hover,
86
+ .react-datepicker__day--keyboard-selected {
87
+ width: 32px;
88
+ height: 30px;
89
+ margin: 4px;
90
+ margin-bottom: -2px;
91
+ background: ${n.theme.colors.primaryBase};
92
+ border-radius: 50%;
93
+ }
94
+
95
+ .react-datepicker__day-name {
96
+ width: 40px;
97
+ }
98
+
99
+ .react-datepicker__triangle {
100
+ display: none;
101
+ }
102
+
103
+ .react-datepicker__header.react-datepicker__header--custom {
104
+ svg {
105
+ stroke: #262626;
106
+ }
107
+ select {
108
+ background: ${n.theme.colors.neutral100};
109
+ text-align: center;
110
+ &:not(:last-child) {
111
+ padding: 8px 10px;
112
+ margin-right: 15px;
113
+ border-radius: ${n.theme.borderRadius};
114
+ }
115
+ }
116
+ }
117
+ }
118
+
119
+ /* DayPicker styles */
120
+
121
+ .DayPicker {
122
+ display: inline-block;
123
+ font-size: 1rem;
124
+ }
125
+
126
+ .DayPicker-wrapper {
127
+ position: relative;
128
+
129
+ flex-direction: row;
130
+ padding-bottom: 1em;
131
+
132
+ -webkit-user-select: none;
133
+
134
+ -moz-user-select: none;
135
+
136
+ -ms-user-select: none;
137
+
138
+ user-select: none;
139
+ }
140
+
141
+ .DayPicker-Months {
142
+ display: flex;
143
+ flex-wrap: wrap;
144
+ justify-content: center;
145
+ }
146
+
147
+ .DayPicker-Month {
148
+ display: table;
149
+ margin: 0 16px;
150
+ margin-top: 16px;
151
+ border-collapse: collapse;
152
+ border-spacing: 0;
153
+
154
+ -webkit-user-select: none;
155
+
156
+ -moz-user-select: none;
157
+
158
+ -ms-user-select: none;
159
+
160
+ user-select: none;
161
+ }
162
+
163
+ .DayPicker-NavBar {
164
+ position: absolute;
165
+ top: 16px;
166
+ left: 0;
167
+ display: flex;
168
+ width: 100%;
169
+ height: 0;
170
+ align-items: center;
171
+ justify-content: space-between;
172
+ padding: 0 20px;
173
+ }
174
+
175
+ .DayPicker-NavButton {
176
+ width: 24px;
177
+ height: 24px;
178
+ margin-bottom: -47px;
179
+ background-position: center;
180
+ background-repeat: no-repeat;
181
+ background-size: 16px 16px;
182
+ color: #8b9898;
183
+ cursor: pointer;
184
+ }
185
+
186
+ .DayPicker-NavButton:hover {
187
+ opacity: 0.8;
188
+ }
189
+
190
+ .DayPicker-NavButton--prev {
191
+ //left: 2px;
192
+ background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 9L1 5L5 1' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
193
+ }
194
+
195
+ .DayPicker-NavButton--next {
196
+ //right: 2px;
197
+ background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L1 9' stroke='%23262626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
198
+ }
199
+
200
+ .DayPicker-NavButton--interactionDisabled {
201
+ display: none;
202
+ }
203
+
204
+ .DayPicker-Caption {
205
+ display: table-caption;
206
+ width: 100%;
207
+ height: 46px;
208
+ padding: 0 32px;
209
+ }
210
+
211
+ .DayPicker-Caption select {
212
+ font-size: 16px;
213
+ font-weight: 600;
214
+ line-height: 24px;
215
+ text-align: left;
216
+ }
217
+
218
+ .DayPicker-Weekdays {
219
+ display: table-header-group;
220
+ margin-top: 1em;
221
+ }
222
+
223
+ .DayPicker-WeekdaysRow {
224
+ display: table-row;
225
+ }
226
+
227
+ .DayPicker-Weekday {
228
+ display: table-cell;
229
+ padding: 0.5em;
230
+ color: #8b9898;
231
+ font-size: 0.875em;
232
+ text-align: center;
233
+ }
234
+
235
+ .DayPicker-Weekday abbr[title] {
236
+ border-bottom: none;
237
+ text-decoration: none;
238
+ }
239
+
240
+ .DayPicker-Body {
241
+ display: table-row-group;
242
+ }
243
+
244
+ .DayPicker-Week {
245
+ display: table-row;
246
+ }
247
+
248
+ .DayPicker-Day {
249
+ display: table-cell;
250
+
251
+ width: 40px;
252
+ height: 40px;
253
+ border-radius: 50%;
254
+ cursor: pointer;
255
+ text-align: center;
256
+ vertical-align: middle;
257
+ }
258
+
259
+ .DayPicker-WeekNumber {
260
+ display: table-cell;
261
+ min-width: 1em;
262
+ padding: 0.5em;
263
+ border-right: 1px solid #eaecec;
264
+ color: #8b9898;
265
+ cursor: pointer;
266
+ font-size: 0.75em;
267
+ text-align: right;
268
+ vertical-align: middle;
269
+ }
270
+
271
+ .DayPicker--interactionDisabled .DayPicker-Day {
272
+ cursor: default;
273
+ }
274
+
275
+ .DayPicker-Footer {
276
+ padding-top: 0.5em;
277
+ }
278
+
279
+ .DayPicker-TodayButton {
280
+ border: none;
281
+ background-color: transparent;
282
+ background-image: none;
283
+ box-shadow: none;
284
+ color: #4a90e2;
285
+ cursor: pointer;
286
+ font-size: 0.875em;
287
+ }
288
+
289
+ /* Default modifiers */
290
+
291
+ .DayPicker-Day--today {
292
+ color: #d0021b;
293
+ font-weight: 700;
294
+ }
295
+
296
+ .DayPicker-Day--outside {
297
+ color: #8b9898;
298
+ cursor: default;
299
+ }
300
+
301
+ .DayPicker-Day--disabled {
302
+ color: #dce0e0;
303
+ cursor: default;
304
+ /* background-color: #eff1f1; */
305
+ }
306
+
307
+ /* Example modifiers */
308
+
309
+ .DayPicker-Day--sunday {
310
+ background-color: #f7f8f8;
311
+ }
312
+
313
+ .DayPicker-Day--sunday:not(.DayPicker-Day--today) {
314
+ color: #dce0e0;
315
+ }
316
+
317
+ .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
318
+ .DayPicker-Day--outside
319
+ ) {
320
+ position: relative;
321
+
322
+ background-color: ${n.theme.colors.primaryBase};
323
+ color: #f0f8ff;
324
+ font-weight: ${n.theme.sizes.fwBold};
325
+ }
326
+
327
+ .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
328
+ .DayPicker-Day--outside
329
+ ):hover {
330
+ background-color: #51a0fa;
331
+ }
332
+
333
+ .DayPicker:not(.DayPicker--interactionDisabled)
334
+ .DayPicker-Day:not(.DayPicker-Day--disabled):not(
335
+ .DayPicker-Day--selected
336
+ ):not(.DayPicker-Day--outside):hover {
337
+ background-color: #f0f8ff;
338
+ }
339
+
340
+ /* DayPickerInput */
341
+
342
+ .DayPickerInput {
343
+ display: inline-block;
344
+ }
345
+
346
+ .DayPickerInput-OverlayWrapper {
347
+ position: relative;
348
+ }
349
+
350
+ .DayPickerInput-Overlay {
351
+ position: absolute;
352
+ z-index: 1;
353
+ left: 0;
354
+
355
+ background: white;
356
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
357
+ }
358
+ `,g=s.default.form`
359
+ display: flex;
360
+ width: 100%;
361
+
362
+ height: 46px;
363
+ align-items: center;
364
+ justify-content: space-between;
365
+ & > :first-child {
366
+ margin-right: 10px;
367
+ }
368
+
369
+ & * {
370
+ height: 46px;
371
+ padding: 10px 10px;
372
+ background: ${n.theme.colors.neutral100};
373
+ border-radius: ${n.theme.borderRadius};
374
+ }
375
+ `;exports.DatePicker=({alignRight:a=!0,placeholder:t,displayDateFormat:i,onChange:o,customInput:n,pickedDate:c,className:s,isStatic:p,disabledDays:h,modifiers:k,UnHideOnClickOutside:m,initialMonth:b,locale:D="en-PH"})=>{const f=e.useRef(!1),x=r.format,[v,w]=e.useState(b||new Date),P=e.useRef(null),_=e.useRef(null),E=u[D],C=e=>{m||P.current&&P.current.contains(e.target)||_.current&&_.current.hideDayPicker()},M=(new Date).getFullYear(),O=new Date(M-150,0),N=new Date(M+1,0),T=({date:e,onChange:a,monthLabels:t})=>{const r=[];for(let e=N.getFullYear();e>=O.getFullYear();e-=1)r.push(e);const i=function(e){const{year:t,month:r}=e.target.form;a(new Date(t.value,r.value))};return d.default.createElement("div",{className:"DayPicker-Caption"},d.default.createElement(g,null,d.default.createElement("select",{name:"month",onChange:i,value:e.getMonth()},t.map(((e,a)=>d.default.createElement("option",{key:e,value:a},e)))),d.default.createElement("select",{name:"year",onChange:i,value:e.getFullYear()},r.map((e=>d.default.createElement("option",{key:e,value:e},e))))))};return e.useEffect((()=>(document.addEventListener("mousedown",C,{passive:!0}),()=>{document.removeEventListener("mousedown",C,!1)})),[]),d.default.createElement(y,{className:s,"data-align-right":a,ref:P,"data-is-static":p||void 0},d.default.createElement(l.default,{ref:_,inputProps:{readOnly:!0},keepFocus:!1,classNames:{container:"pickerContainer",overlayWrapper:"pickerOverlayWrapper",overlay:"pickerOverlay"},component:n&&d.default.forwardRef(((e,a)=>d.default.createElement(n,Object.assign({},e)))),onDayPickerHide:()=>{f.current=!1},onDayPickerShow:()=>{f.current=!0},dayPickerProps:{month:v,className:"picker",selectedDays:c,canChangeMonth:!0,enableOutsideDaysClick:!p,firstDayOfWeek:1,captionElement:({date:e,localeUtils:a})=>{const t=null==a?void 0:a.getMonths();return d.default.createElement(T,{date:e,monthLabels:E||t,onChange:w})},disabledDays:h||void 0,modifiers:k},format:i||"yyyy-MM-dd",formatDate:(e,a)=>x(e,a),hideOnDayClick:!p,placeholder:t||"",onDayChange:e=>{var a;a=e,_.current&&!p&&_.current.hideDayPicker(),o&&o(a)},showOverlay:p}))},exports.Loading=({className:e,theme:r,hideText:i})=>{const{t:o}=t.useTranslations();return d.default.createElement("div",{className:`${p} ${e}`},d.default.createElement(a.Icon.Spinner,{isMarryBaby:"marryBaby"===r}),!i&&o("loading"))};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-ef1f81bf.js"),t=require("react"),s=require("@mantine/core"),l=require("./index-f85e80c5.js"),a=require("./index-72cfe602.js"),n=require("./index-7b85f299.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);exports.Modal=t=>{var{title:r,styles:i}=t,u=e.__rest(t,["title","styles"]);const{classes:c}=a.useStyles(void 0,{name:"Modal",styles:i});return o.default.createElement(o.default.Fragment,null,o.default.createElement(s.Modal,Object.assign({centered:!0,classNames:c},u,{withCloseButton:!1,title:u.withCloseButton&&o.default.createElement(o.default.Fragment,null,o.default.createElement(n.Text,{size:"s2",weight:"semiBold",as:"span"},r),o.default.createElement(s.CloseButton,Object.assign({},u.closeButtonProps,{onClick:()=>{var e;return null===(e=u.onClose)||void 0===e?void 0:e.call(u)},sx:{":focus":{outline:0}}}),o.default.createElement("img",{loading:"lazy",className:"mantine-Modal-close",src:l.CommonGAssets.getAssetPath("CloseModal.svg"),style:{width:"16px"}})))})))};
1
+ "use strict";var e=require("./tslib.es6-d46558cb.js"),t=require("react"),s=require("@mantine/core"),l=require("./index-065c9097.js"),a=require("./index-4de92198.js"),n=require("./index-beef0ff7.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);exports.Modal=t=>{var{title:r,styles:i}=t,u=e.__rest(t,["title","styles"]);const{classes:d}=a.useStyles(void 0,{name:"Modal",styles:i});return o.default.createElement(o.default.Fragment,null,o.default.createElement(s.Modal,Object.assign({centered:!0,classNames:d},u,{withCloseButton:!1,title:u.withCloseButton&&o.default.createElement(o.default.Fragment,null,o.default.createElement(n.Text,{size:"s2",weight:"semiBold",as:"span"},r),o.default.createElement(s.CloseButton,Object.assign({},u.closeButtonProps,{onClick:()=>{var e;return null===(e=u.onClose)||void 0===e?void 0:e.call(u)},sx:{":focus":{outline:0}}}),o.default.createElement("img",{loading:"lazy",className:"mantine-Modal-close",src:l.CommonGAssets.getAssetPath("CloseModal.svg"),style:{width:"16px"}})))})))};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./tslib.es6-d46558cb.js"),t=require("react"),s=require("@mantine/core"),a=require("./index-4de92198.js");require("@mantine/dates");var r=require("./index-d27a3f5f.js"),i=require("./Subot-54546cbb.js");require("./index-065c9097.js"),require("./index-beef0ff7.js"),require("./theme-98a7bede.js");var n=require("./useTranslations-b435b717.js");require("@mantine/hooks");var c=require("./utils-9778a239.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=d(t);const o={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},u=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},p=({provinces:s})=>{const[a,n]=t.useReducer(u,o),{provinceByName:d,provinces:l,districts:p,wards:v,selectedProvince:b,selectedDistrict:E,selectedWard:h}=a,[y,g]=t.useState();t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,d;try{const l=yield fetch((d=process.env.UNIFY_LOCALE||i.LOCALE.Vietnam,`${r.CDN_ADDRESS}/cities-data-${c.MAPPED_LOCALE[d]}.json`)).then((e=>e.json()));g(l);const{list:o}=l,u=s?((e,t)=>{const s={};for(const[,e]of Object.entries(t)){const{id:t}=e;t&&(s[t]=e)}const a={};return e.map((e=>{a[e.name]=s[e.id]})),a})(s,o):o,p=Object.keys(u),v=Object.keys((null===(e=o[p[0]])||void 0===e?void 0:e.list)||{}),b=Object.keys((null===(a=null===(t=o[p[0]])||void 0===t?void 0:t[v[0]])||void 0===a?void 0:a.list)||{});n({type:"SET_DATA",payload:{provinceByName:u,provinces:p,districts:v,wards:b}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:l,districts:p,wards:v,selectedProvince:b,selectedDistrict:E,selectedWard:h,handleProvinceChange:e=>{var t;const s=Object.keys((null===(t=d[e])||void 0===t?void 0:t.list)||{});n({type:"SET_DISTRICTS",payload:s}),n({type:"SET_WARDS",payload:[]}),n({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,s;const a=Object.keys((null===(s=null===(t=d[b])||void 0===t?void 0:t.list[e])||void 0===s?void 0:s.list)||{});n({type:"SET_WARDS",payload:a}),n({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{n({type:"SELECT_WARD",payload:e})}}};exports.AddressInput=r=>{var{error:i,provinces:c,placeholder:d}=r,o=e.__rest(r,["error","provinces","placeholder"]);const{t:u}=n.useTranslations(),{provinces:v,districts:b,wards:E,selectedProvince:h,selectedDistrict:y,selectedWard:g,handleProvinceChange:j,handleDistrictChange:S,handleWardChange:C}=p({provinces:c}),[f,O]=t.useState("");return t.useEffect((()=>{h&&y&&g&&f?o.onChange({selectedProvince:h,selectedDistrict:y,selectedWard:g,extraInfo:f}):o.onChange(null)}),[h,y,g,f]),l.default.createElement(a.Input.Wrapper,Object.assign({withAsterisk:!0},o),l.default.createElement(s.Stack,null,l.default.createElement(a.Select,{placeholder:(null==d?void 0:d.province)||u("onboarding.similac.input.city"),data:c?v:v.sort(),searchable:!0,onChange:j,value:h}),l.default.createElement(a.Select,{placeholder:(null==d?void 0:d.district)||u("onboarding.similac.input.district"),data:b.sort(),searchable:!0,onChange:S,value:y,disabled:!h}),l.default.createElement(a.Select,{placeholder:(null==d?void 0:d.ward)||u("onboarding.similac.input.ward"),searchable:!0,data:E.sort(),value:g,onChange:C,disabled:!h||!y}),l.default.createElement(a.Input,{placeholder:(null==d?void 0:d.address)||u("onboarding.similac.input.no"),disabled:!h||!y||!g,value:f,onChange:O,style:{marginBottom:0}})),l.default.createElement(s.Input.Error,{size:"md"},i))};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-ef1f81bf.js"),t=require("react"),r=require("@mantine/core"),i=require("@mantine/dates"),a=require("./index-d14172a4.js"),s=require("./Subot-695ffc58.js"),n=require("./index-f85e80c5.js"),l=require("./index-72cfe602.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(t);exports.DatePicker=t=>{var o,{value:c,fullWidth:d=!0}=t,f=e.__rest(t,["value","fullWidth"]);return u.default.createElement(i.DatePickerInput,Object.assign({locale:l.MAPPED_LOCALE[process.env.UNIFY_LOCALE||s.LOCALE.Vietnam],valueFormat:null===(o=a.ISO_FORMAT[process.env.UNIFY_LOCALE||s.LOCALE.Vietnam])||void 0===o?void 0:o.dateFormat,size:"md",clearable:!1,popoverProps:d?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:u.default.createElement(r.Image,{src:n.CommonGAssets.getAssetPath(f.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:c},f,{className:`input-control ${(null==f?void 0:f.className)||""}`}))};
1
+ "use strict";var e=require("./tslib.es6-d46558cb.js"),t=require("react"),r=require("@mantine/core"),i=require("@mantine/dates"),a=require("./index-d27a3f5f.js"),s=require("./Subot-54546cbb.js"),n=require("./index-065c9097.js"),l=require("./index-4de92198.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(t);exports.DatePicker=t=>{var o,{value:c,fullWidth:d=!0}=t,v=e.__rest(t,["value","fullWidth"]);return u.default.createElement(i.DatePickerInput,Object.assign({locale:l.MAPPED_LOCALE[process.env.UNIFY_LOCALE||s.LOCALE.Vietnam],valueFormat:null===(o=a.ISO_FORMAT[process.env.UNIFY_LOCALE||s.LOCALE.Vietnam])||void 0===o?void 0:o.dateFormat,size:"md",clearable:!1,popoverProps:d?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:u.default.createElement(r.Image,{src:n.CommonGAssets.getAssetPath(v.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:c},v,{className:`input-control ${(null==v?void 0:v.className)||""}`}))};
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),i=require("./screenSizeContext-83eeed99.js");require("dayjs");var t=require("styled-components"),o=require("./theme-785c6f0c.js");require("./index-d14172a4.js"),require("./isProduction-87f95c7d.js"),require("./Subot-695ffc58.js"),require("./index-f85e80c5.js");var l=require("./tslib.es6-ef1f81bf.js"),n=require("./index.styles-d3c65e64.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e),d=a(t);const s=d.default.div`
1
+ "use strict";var e=require("react"),i=require("./utils-469dda3f.js"),t=require("styled-components"),o=require("./theme-98a7bede.js"),l=require("./tslib.es6-d46558cb.js"),n=require("./utils-c18ec2df.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e),d=a(t);const s=d.default.div`
2
2
  position: fixed;
3
3
  left: 50%;
4
4
 
@@ -81,7 +81,7 @@
81
81
  &[data-open='false'] {
82
82
  display: none;
83
83
  }
84
- `,m=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||""}:{},v=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}:{},c=e=>void 0!==e&&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}:null,p=e=>{if(!e)return{};const{button_text:i,button_url:t,status:o,banner_desktop:n,banner_mobile:a}=e,r=l.__rest(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(o),bannerDesktop:n||"",bannerMobile:a||""},r)},_={EN:"English",FIL:"Filipino"},g=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in _?_[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),y=e=>{var i,t,o,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,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:m(e.author),reviewer:e.reviewed_by&&m(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:f(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:f(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.editor),expert:f(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:f(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:w(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(w),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:v(e.expert),metaTag:e.meta_tag||null,spotlight:c(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:g(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:w(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:m(e.edit_last),subscriptionBanner:p(e.subscription_banner)}:{}},f=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,b=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},h=e=>({postTitle:e.post_title,permalink:e.permalink}),w=e=>{var i,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?b(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=>w(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?h(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>k(e))):null}:{}},k=e=>({title:e.title,content:e.content}),x=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)}:{},I=e=>{var i,t,o,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===(t=e.community)||void 0===t?void 0:t.id),communitySlug:null===(o=e.community)||void 0===o?void 0:o.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)}:{}},S=e=>e?{answer:null==e?void 0:e.answer.map(A),expert:null==e?void 0:e.expert}:{},T=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var t,o,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+i.slug,communityId:String(null===(o=e.community)||void 0===o?void 0:o.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===(t=e.community)||void 0===t?void 0:t.id)||0,name:(null===(o=e.community)||void 0===o?void 0:o.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===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.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:S(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},A=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,w,k,x,C,I,S,T,j,B,q,D,P;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(A):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(t=e.user)||void 0===t?void 0:t.user_name)||"",name:(null===(o=e.user)||void 0===o?void 0:o.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===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(k=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===k?void 0:k.toLowerCase():"",avatar:(null===(x=e.mentioned)||void 0===x?void 0:x.avatar)||"",type:(null===(C=e.mentioned)||void 0===C?void 0:C.type)||"",email:(null===(I=e.mentioned)||void 0===I?void 0:I.email)||"",partnerId:(null===(S=e.mentioned)||void 0===S?void 0:S.partner_id)?String(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id):"",doctorId:(null===(j=e.mentioned)||void 0===j?void 0:j.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id):"",title:(null===(P=e.mentioned)||void 0===P?void 0:P.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||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},j=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 B=Object.freeze({__proto__:null,formatAuthor:m,formatArticleExpert:v,formatSpotlightsSummary:c,TRANSLATE_LANGUAGES:_,formatTranslateOptions:g,formatArticle:y,formatUserProfile:f,formatBMIResult:e=>{var i,t,o,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!==(t=null==e?void 0:e.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(o=null==e?void 0:e.risk)&&void 0!==o?o:""},{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:b,formatReviewedCategory:h,formatCategory:w,formatCategoryApi:e=>e?{categoryInfo:w(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(y),subCategories:(e.data.sub_categories||[]).map(w)}:{},formatFaqsCategory:k,formatHealthTool:x,formatHealthToolTypeCategory:e=>{var i,t;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(t=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>x(e))))&&void 0!==t?t:[]}:{}},formatCommunity:C,formatTopic:I,formatExpertAnswer:S,formatPost:T,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,t,o;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===(t=e.from_user)||void 0===t?void 0:t.id,avatar:null===(o=e.from_user)||void 0===o?void 0:o.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: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}:{},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:A,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?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:j,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,t,o;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(t=e.reviewed_by)||void 0===t?void 0:t.display_name)||(null===(o=e.reviewed_by)||void 0===o?void 0:o.name)||"",date:e.reviewed_date||"",link:j(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||""}:{}}});const q=d.default.div`
84
+ `,m=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||""}:{},v=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}:{},p=e=>void 0!==e&&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}:null,c=e=>{if(!e)return{};const{button_text:i,button_url:t,status:o,banner_desktop:n,banner_mobile:a}=e,r=l.__rest(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(o),bannerDesktop:n||"",bannerMobile:a||""},r)},_={EN:"English",FIL:"Filipino"},g=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in _?_[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),y=e=>{var i,t,o,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?b(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,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:m(e.author),reviewer:e.reviewed_by&&m(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:f(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:f(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.editor),expert:f(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:f(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:w(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(w),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:v(e.expert),metaTag:e.meta_tag||null,spotlight:p(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:g(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:w(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:m(e.edit_last),subscriptionBanner:c(e.subscription_banner)}:{}},f=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,b=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},h=e=>({postTitle:e.post_title,permalink:e.permalink}),w=e=>{var i,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?b(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=>w(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?h(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>k(e))):null}:{}},k=e=>({title:e.title,content:e.content}),x=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)}:{},I=e=>{var i,t,o,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===(t=e.community)||void 0===t?void 0:t.id),communitySlug:null===(o=e.community)||void 0===o?void 0:o.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)}:{}},T=e=>e?{answer:null==e?void 0:e.answer.map(A),expert:null==e?void 0:e.expert}:{},S=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,p,c,_,g,y,f,b,h,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var t,o,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+i.slug,communityId:String(null===(o=e.community)||void 0===o?void 0:o.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===(t=e.community)||void 0===t?void 0:t.id)||0,name:(null===(o=e.community)||void 0===o?void 0:o.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===(p=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===p?void 0:p.toLowerCase():"",type:(null===(c=e.user)||void 0===c?void 0:c.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.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:T(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},A=e=>{var i,t,o,l,n,a,r,d,s,u,m,v,p,c,_,g,y,f,b,h,w,k,x,C,I,T,S,B,D,j,P,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(A):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(t=e.user)||void 0===t?void 0:t.user_name)||"",name:(null===(o=e.user)||void 0===o?void 0:o.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===(p=e.user)||void 0===p?void 0:p.doctor_id)?String(null===(c=e.user)||void 0===c?void 0:c.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===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(k=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===k?void 0:k.toLowerCase():"",avatar:(null===(x=e.mentioned)||void 0===x?void 0:x.avatar)||"",type:(null===(C=e.mentioned)||void 0===C?void 0:C.type)||"",email:(null===(I=e.mentioned)||void 0===I?void 0:I.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(S=e.mentioned)||void 0===S?void 0:S.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.doctor_id):"",hospitalId:(null===(j=e.mentioned)||void 0===j?void 0:j.hospital_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.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||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},B=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 D=Object.freeze({__proto__:null,formatAuthor:m,formatArticleExpert:v,formatSpotlightsSummary:p,TRANSLATE_LANGUAGES:_,formatTranslateOptions:g,formatArticle:y,formatUserProfile:f,formatBMIResult:e=>{var i,t,o,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!==(t=null==e?void 0:e.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(o=null==e?void 0:e.risk)&&void 0!==o?o:""},{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:b,formatReviewedCategory:h,formatCategory:w,formatCategoryApi:e=>e?{categoryInfo:w(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(y),subCategories:(e.data.sub_categories||[]).map(w)}:{},formatFaqsCategory:k,formatHealthTool:x,formatHealthToolTypeCategory:e=>{var i,t;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(t=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>x(e))))&&void 0!==t?t:[]}:{}},formatCommunity:C,formatTopic:I,formatExpertAnswer:T,formatPost:S,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,t,o;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===(t=e.from_user)||void 0===t?void 0:t.id,avatar:null===(o=e.from_user)||void 0===o?void 0:o.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: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}:{},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:A,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?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:B,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?f(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,t,o;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(t=e.reviewed_by)||void 0===t?void 0:t.display_name)||(null===(o=e.reviewed_by)||void 0===o?void 0:o.name)||"",date:e.reviewed_date||"",link:B(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||""}:{}}});const j=d.default.div`
85
85
  width: ${e=>e.size||40}px;
86
86
  height: ${e=>e.size||40}px;
87
87
  flex-shrink: 0;
@@ -114,4 +114,4 @@
114
114
  background-color: ${o.theme.mbColors.pink};
115
115
  }
116
116
  }
117
- `;exports.Popup=({type:e="lead",closeIcon:i,isOpen:t=!0,onClose:o,children:l,className:n="",enableAnimation:a=!0})=>r.default.createElement(r.default.Fragment,null,r.default.createElement(s,{"data-open":t,"data-type":e,"data-animation":a},r.default.createElement("div",{className:`${n||""} popup-content`},!!i&&r.default.createElement("div",{className:"close-button",onClick:o},i),l)),r.default.createElement(u,{"data-open":t,onClick:o})),exports.UserAvatar=i=>{var{className:t,isMarryBaby:o,style:a,avatar:d,username:s,size:u}=i,m=l.__rest(i,["className","isMarryBaby","style","avatar","username","size"]);const{data:{env:{isMarryBaby:v}}}=e.useContext(n.TogetherComponentGlobalContext),c="boolean"==typeof o?o:v,[p,_]=e.useState(!1);return r.default.createElement(q,Object.assign({"data-is-marrybaby":c,className:t,style:a,size:u},m),d&&!p?r.default.createElement("img",{loading:"lazy",src:d,className:"avatar",alt:"avatar",onError:()=>{p||_(!0)}}):r.default.createElement("div",{className:"avatar avatar-default"},s&&(null==s?void 0:s.length)>0?s[0].toUpperCase():"A"))},exports.dataTransform=B,exports.formatArticle=y,exports.formatCategory=w,exports.formatComment=A,exports.formatCommunity=C,exports.formatPost=T,exports.formatTopic=I,exports.formatUserProfileUrl=j;
117
+ `;exports.Popup=({type:e="lead",closeIcon:i,isOpen:t=!0,onClose:o,children:l,className:n="",enableAnimation:a=!0})=>r.default.createElement(r.default.Fragment,null,r.default.createElement(s,{"data-open":t,"data-type":e,"data-animation":a},r.default.createElement("div",{className:`${n||""} popup-content`},!!i&&r.default.createElement("div",{className:"close-button",onClick:o},i),l)),r.default.createElement(u,{"data-open":t,onClick:o})),exports.UserAvatar=i=>{var{className:t,isMarryBaby:o,style:a,avatar:d,username:s,size:u}=i,m=l.__rest(i,["className","isMarryBaby","style","avatar","username","size"]);const{data:{env:{isMarryBaby:v}}}=e.useContext(n.TogetherComponentGlobalContext),p="boolean"==typeof o?o:v,[c,_]=e.useState(!1);return r.default.createElement(j,Object.assign({"data-is-marrybaby":p,className:t,style:a,size:u},m),d&&!c?r.default.createElement("img",{loading:"lazy",src:d,className:"avatar",alt:"avatar",onError:()=>{c||_(!0)}}):r.default.createElement("div",{className:"avatar avatar-default"},s&&(null==s?void 0:s.length)>0?s[0].toUpperCase():"A"))},exports.dataTransform=D,exports.formatArticle=y,exports.formatCategory=w,exports.formatComment=A,exports.formatCommunity=C,exports.formatPost=S,exports.formatTopic=I,exports.formatUserProfileUrl=B;