@hhgtech/hhg-components 1.28.48 → 1.28.52

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 (298) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/atoms/button/index.d.ts +2 -2
  5. package/build/components/atoms/heading/index.d.ts +6 -2
  6. package/build/components/mantine/button/index.d.ts +1 -1
  7. package/build/components/mantine/button/index.styles.d.ts +1 -0
  8. package/build/components/mantine/theme/index.d.ts +1 -1
  9. package/build/components/mantine/theme/other.d.ts +2 -2
  10. package/build/components/mantine/theme/text.d.ts +24 -0
  11. package/build/components/navigationV2/components/atoms/searchInput/index.d.ts +3 -1
  12. package/build/components.js +1 -1
  13. package/build/{constants-b2f62c20.js → constants-3b2f5e8e.js} +1 -1
  14. package/build/{constants-d6fc50ec.js → constants-f9687cf0.js} +1 -1
  15. package/build/constants.js +1 -1
  16. package/build/{core-67968481.js → core-e01ef9ea.js} +1 -1
  17. package/build/{dataTransform-e6d2d5b9.js → dataTransform-6ad85f6e.js} +1 -1
  18. package/build/ecom.js +1 -1
  19. package/build/esm/babyGrowth.js +5 -5
  20. package/build/esm/cache.js +1 -1
  21. package/build/esm/care.js +1 -1
  22. package/build/esm/components/atoms/button/index.d.ts +2 -2
  23. package/build/esm/components/atoms/heading/index.d.ts +6 -2
  24. package/build/esm/components/mantine/button/index.d.ts +1 -1
  25. package/build/esm/components/mantine/button/index.styles.d.ts +1 -0
  26. package/build/esm/components/mantine/theme/index.d.ts +1 -1
  27. package/build/esm/components/mantine/theme/other.d.ts +2 -2
  28. package/build/esm/components/mantine/theme/text.d.ts +24 -0
  29. package/build/esm/components/navigationV2/components/atoms/searchInput/index.d.ts +3 -1
  30. package/build/esm/components.js +1 -1
  31. package/build/esm/{constants-b4612415.js → constants-c6066928.js} +1 -1
  32. package/build/esm/{constants-ba48c0c2.js → constants-fe63add8.js} +1 -1
  33. package/build/esm/constants.js +1 -1
  34. package/build/esm/{core-7cc2b812.js → core-ccd629d3.js} +1 -1
  35. package/build/esm/{dataTransform-25ccf77d.js → dataTransform-96453680.js} +1 -1
  36. package/build/esm/ecom.js +1 -1
  37. package/build/esm/footer.js +1 -1
  38. package/build/esm/gAssets.js +1 -1
  39. package/build/esm/{getDynamicHealthTool-c79467d3.js → getDynamicHealthTool-a587f058.js} +1 -1
  40. package/build/esm/{getSocialList-c8df093d.js → getSocialList-af186eb2.js} +1 -1
  41. package/build/esm/hooks.js +1 -1
  42. package/build/esm/i18n.js +1 -1
  43. package/build/esm/i18nV2.js +1 -1
  44. package/build/esm/index-07642663.js +113 -0
  45. package/build/esm/{index-229455ea.js → index-181b15e4.js} +170 -170
  46. package/build/esm/{index-acdbac09.js → index-18312c77.js} +1 -1
  47. package/build/esm/{index-5ef634cd.js → index-2ce0f601.js} +1 -1
  48. package/build/esm/{index-731fa3d8.js → index-3948b7d3.js} +1 -1
  49. package/build/esm/{index-07712dae.js → index-43bdd87c.js} +1 -1
  50. package/build/esm/index-45effb56.js +1 -0
  51. package/build/esm/{index-1f99f547.js → index-476a3102.js} +1 -1
  52. package/build/esm/{index-28efdb1e.js → index-49c031a5.js} +1 -1
  53. package/build/esm/index-4e8cc919.js +1 -0
  54. package/build/esm/{index-2c5f755f.js → index-554b1cd1.js} +1 -1
  55. package/build/esm/index-5a5c9c97.js +1 -0
  56. package/build/esm/index-5b20d474.js +1 -0
  57. package/build/esm/{index-4732a9d2.js → index-5dc6c742.js} +1 -1
  58. package/build/esm/{index-dc86dbe9.js → index-66616e4b.js} +1 -1
  59. package/build/esm/{index-324b6883.js → index-6b2fd48c.js} +1 -1
  60. package/build/esm/index-a16bbcaf.js +1 -0
  61. package/build/esm/{index-2cf58693.js → index-a251d363.js} +1 -1
  62. package/build/esm/index-ac8493ba.js +1 -0
  63. package/build/esm/{index-8e17ae7a.js → index-c881d3d5.js} +4 -4
  64. package/build/esm/{index-436bfcc7.js → index-d5bc103a.js} +1 -1
  65. package/build/esm/{index-04921c7d.js → index-dda3b367.js} +1 -1
  66. package/build/esm/{index-564b7aba.js → index-f507fed8.js} +1 -1
  67. package/build/esm/index.css +1 -1
  68. package/build/esm/index.js +1 -1
  69. package/build/esm/{index.styled-704434bb.js → index.styled-2328fb7a.js} +3 -3
  70. package/build/esm/{index.styles-f1218eee.js → index.styles-e7929b94.js} +25 -25
  71. package/build/esm/lead.js +1 -1
  72. package/build/esm/mantine.js +1 -1
  73. package/build/esm/misc.js +1 -1
  74. package/build/esm/navigation.js +1 -1
  75. package/build/esm/onboardingV2.js +1 -1
  76. package/build/esm/pwg.js +1 -1
  77. package/build/esm/{routing-74e8b5cc.js → routing-f581c669.js} +1 -1
  78. package/build/esm/subot.js +129 -129
  79. package/build/esm/together.js +1 -1
  80. package/build/esm/{types-cc024ccd.js → types-61f94e93.js} +22 -22
  81. package/build/esm/{types-fee7dc97.js → types-e5b7a76b.js} +1 -1
  82. package/build/esm/types.js +1 -1
  83. package/build/esm/{useCategory-2faaca1d.js → useCategory-28d8f160.js} +1 -1
  84. package/build/esm/useHealthToolCache-2de393ef.js +1 -0
  85. package/build/esm/usePlacesAutocomplete-2603d6fb.js +1 -0
  86. package/build/esm/{useTranslations-e5538b8d.js → useTranslations-fd222d54.js} +1 -1
  87. package/build/esm/{utils-393e4a78.js → utils-0e7190da.js} +1 -1
  88. package/build/esm/{utils-f942b9ba.js → utils-8aeea206.js} +1 -1
  89. package/build/esm/{utils-377280a3.js → utils-91e7084f.js} +2 -2
  90. package/build/esm/vaccination.js +1 -1
  91. package/build/footer.js +1 -1
  92. package/build/gAssets.js +1 -1
  93. package/build/getDynamicHealthTool-f5d686dc.js +1 -0
  94. package/build/{getSocialList-8a0e0ce5.js → getSocialList-492b150f.js} +1 -1
  95. package/build/hooks.js +1 -1
  96. package/build/i18n.js +1 -1
  97. package/build/i18nV2.js +1 -1
  98. package/build/index-0a530be7.js +113 -0
  99. package/build/{index-eab44f66.js → index-2390697f.js} +1 -1
  100. package/build/{index-4a81508c.js → index-2a59f23a.js} +4 -4
  101. package/build/{index-02960f2c.js → index-3905cc48.js} +1 -1
  102. package/build/{index-c9e0288d.js → index-4b66a91e.js} +1 -1
  103. package/build/{index-d61ed07a.js → index-575d64b9.js} +1 -1
  104. package/build/{index-9020e574.js → index-647b2e7d.js} +1 -1
  105. package/build/{index-9826f83e.js → index-7a0d8237.js} +4 -4
  106. package/build/{index-11af76a3.js → index-815edd02.js} +1 -1
  107. package/build/{index-562bda11.js → index-9774fbc6.js} +1 -1
  108. package/build/{index-62ea1a89.js → index-98bb9bd3.js} +1 -1
  109. package/build/{index-c4cb718f.js → index-9e5cea4a.js} +1 -1
  110. package/build/{index-71a69990.js → index-ae975157.js} +2 -2
  111. package/build/{index-98ac3ff0.js → index-b529a332.js} +1 -1
  112. package/build/index-b71352f1.js +1 -0
  113. package/build/{index-9d70b0f9.js → index-c75cc530.js} +1 -1
  114. package/build/{index-4f1bc250.js → index-cc20d115.js} +1 -1
  115. package/build/index-d9b9827c.js +1 -0
  116. package/build/{index-bc3b3f57.js → index-e5bef191.js} +1 -1
  117. package/build/{index-ead7cd5a.js → index-e5deef91.js} +1 -1
  118. package/build/{index-129bfe13.js → index-ec752f1b.js} +1 -1
  119. package/build/{index-56cb4196.js → index-f0d486b7.js} +1 -1
  120. package/build/index-febbdc87.js +1 -0
  121. package/build/index.css +1 -1
  122. package/build/index.js +1 -1
  123. package/build/{index.styled-05b466a6.js → index.styled-58256ebd.js} +1 -1
  124. package/build/{index.styles-6c37d702.js → index.styles-f0c0a48c.js} +45 -45
  125. package/build/lead.js +1 -1
  126. package/build/mantine.js +1 -1
  127. package/build/misc.js +1 -1
  128. package/build/navigation.js +1 -1
  129. package/build/onboardingV2.js +1 -1
  130. package/build/pwg.js +1 -1
  131. package/build/{routing-992b2744.js → routing-e50153f1.js} +1 -1
  132. package/build/subot.js +86 -86
  133. package/build/together.js +1 -1
  134. package/build/{types-dc19e136.js → types-41c9b282.js} +1 -1
  135. package/build/{types-9856c014.js → types-9e78999b.js} +1 -1
  136. package/build/types.js +1 -1
  137. package/build/{useCategory-5f5098a4.js → useCategory-759f7c44.js} +1 -1
  138. package/build/{useHealthToolCache-3182a024.js → useHealthToolCache-dc952260.js} +1 -1
  139. package/build/{usePlacesAutocomplete-8be5571a.js → usePlacesAutocomplete-5c7a5c3c.js} +1 -1
  140. package/build/{useTranslations-9b6f169b.js → useTranslations-b7e3bbe6.js} +1 -1
  141. package/build/{utils-191b2951.js → utils-7627e021.js} +2 -2
  142. package/build/utils-7aab9ad0.js +1 -0
  143. package/build/{utils-7fc68adc.js → utils-c2a4f934.js} +1 -1
  144. package/build/vaccination.js +1 -1
  145. package/package.json +1 -1
  146. package/build/esm/index-34686333.js +0 -1
  147. package/build/esm/index-67922803.js +0 -1
  148. package/build/esm/index-893e905e.js +0 -1
  149. package/build/esm/index-a092fc1a.js +0 -1
  150. package/build/esm/index-ac9c8898.js +0 -113
  151. package/build/esm/index-d8af59ef.js +0 -1
  152. package/build/esm/index-db3f2d7d.js +0 -1
  153. package/build/esm/useHealthToolCache-98ac472f.js +0 -1
  154. package/build/esm/usePlacesAutocomplete-43406755.js +0 -1
  155. package/build/getDynamicHealthTool-6a1789af.js +0 -1
  156. package/build/index-1d09fd07.js +0 -1
  157. package/build/index-9b59f258.js +0 -1
  158. package/build/index-9b6fa1ba.js +0 -113
  159. package/build/index-d864828e.js +0 -1
  160. package/build/utils-03517b95.js +0 -1
  161. /package/build/{BMI_BOYS.percentile.monthly-bc61a645.js → BMI_BOYS.percentile.monthly-845b8ed0.js} +0 -0
  162. /package/build/{BMI_BOYS.percentile.weekly-47ec98d9.js → BMI_BOYS.percentile.weekly-3342befe.js} +0 -0
  163. /package/build/{BMI_BOYS.percentile.yearly-e7f1e87c.js → BMI_BOYS.percentile.yearly-fdf0c097.js} +0 -0
  164. /package/build/{BMI_BOYS.zscore.monthly-208341e8.js → BMI_BOYS.zscore.monthly-f941d04a.js} +0 -0
  165. /package/build/{BMI_BOYS.zscore.weekly-54956be8.js → BMI_BOYS.zscore.weekly-1524af2c.js} +0 -0
  166. /package/build/{BMI_BOYS.zscore.yearly-a54a0b52.js → BMI_BOYS.zscore.yearly-9943d421.js} +0 -0
  167. /package/build/{BMI_GIRLS.percentile.monthly-952b9e2a.js → BMI_GIRLS.percentile.monthly-a289961d.js} +0 -0
  168. /package/build/{BMI_GIRLS.percentile.weekly-8e97c633.js → BMI_GIRLS.percentile.weekly-761a43d7.js} +0 -0
  169. /package/build/{BMI_GIRLS.percentile.yearly-28ab4f0b.js → BMI_GIRLS.percentile.yearly-01e81905.js} +0 -0
  170. /package/build/{BMI_GIRLS.zscore.monthly-9dc5ded2.js → BMI_GIRLS.zscore.monthly-cdb33820.js} +0 -0
  171. /package/build/{BMI_GIRLS.zscore.weekly-b96128ee.js → BMI_GIRLS.zscore.weekly-1bf21df2.js} +0 -0
  172. /package/build/{BMI_GIRLS.zscore.yearly-5cab6fcf.js → BMI_GIRLS.zscore.yearly-a824bceb.js} +0 -0
  173. /package/build/{ChevronDown-495a67a9.js → ChevronDown-224f298e.js} +0 -0
  174. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-c4269023.js → HEAD CIRCUM_BOYS.percentile.monthly-9c53519e.js} +0 -0
  175. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-32182eba.js → HEAD CIRCUM_BOYS.percentile.weekly-6fc3b9ca.js} +0 -0
  176. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-ac6c11d9.js → HEAD CIRCUM_BOYS.percentile.yearly-873b1e54.js} +0 -0
  177. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-2577d093.js → HEAD CIRCUM_BOYS.zscore.monthly-e290d966.js} +0 -0
  178. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a7f7d8f5.js → HEAD CIRCUM_BOYS.zscore.weekly-90e50c31.js} +0 -0
  179. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-50398d8f.js → HEAD CIRCUM_BOYS.zscore.yearly-0b18e126.js} +0 -0
  180. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-1f248489.js → HEAD CIRCUM_GIRLS.percentile.monthly-d15289db.js} +0 -0
  181. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-d5a24f03.js → HEAD CIRCUM_GIRLS.percentile.weekly-eb43dced.js} +0 -0
  182. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-3643a63b.js → HEAD CIRCUM_GIRLS.percentile.yearly-e3bd2d6e.js} +0 -0
  183. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-6c7f59b6.js → HEAD CIRCUM_GIRLS.zscore.monthly-13585278.js} +0 -0
  184. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-78555292.js → HEAD CIRCUM_GIRLS.zscore.weekly-77c728ae.js} +0 -0
  185. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3088b5c0.js → HEAD CIRCUM_GIRLS.zscore.yearly-3ab7cabb.js} +0 -0
  186. /package/build/{HEIGHT_BOYS.percentile.monthly-2855179a.js → HEIGHT_BOYS.percentile.monthly-d49b36f8.js} +0 -0
  187. /package/build/{HEIGHT_BOYS.percentile.weekly-c461c6f9.js → HEIGHT_BOYS.percentile.weekly-bf8fe78c.js} +0 -0
  188. /package/build/{HEIGHT_BOYS.percentile.yearly-0b0995ef.js → HEIGHT_BOYS.percentile.yearly-f195c772.js} +0 -0
  189. /package/build/{HEIGHT_BOYS.zscore.monthly-4efd2085.js → HEIGHT_BOYS.zscore.monthly-2addd8bf.js} +0 -0
  190. /package/build/{HEIGHT_BOYS.zscore.weekly-1ad64c1b.js → HEIGHT_BOYS.zscore.weekly-f7a1cdae.js} +0 -0
  191. /package/build/{HEIGHT_BOYS.zscore.yearly-f599b9c5.js → HEIGHT_BOYS.zscore.yearly-6f66cb57.js} +0 -0
  192. /package/build/{HEIGHT_GIRLS.percentile.monthly-9ec4f144.js → HEIGHT_GIRLS.percentile.monthly-190e5042.js} +0 -0
  193. /package/build/{HEIGHT_GIRLS.percentile.weekly-b42e4f5d.js → HEIGHT_GIRLS.percentile.weekly-ed1a85f6.js} +0 -0
  194. /package/build/{HEIGHT_GIRLS.percentile.yearly-c092cec3.js → HEIGHT_GIRLS.percentile.yearly-2bc8a013.js} +0 -0
  195. /package/build/{HEIGHT_GIRLS.zscore.monthly-8dbb101a.js → HEIGHT_GIRLS.zscore.monthly-8bf36f8c.js} +0 -0
  196. /package/build/{HEIGHT_GIRLS.zscore.weekly-fea38287.js → HEIGHT_GIRLS.zscore.weekly-fbbd247c.js} +0 -0
  197. /package/build/{HEIGHT_GIRLS.zscore.yearly-34f5a403.js → HEIGHT_GIRLS.zscore.yearly-a8a4ce4b.js} +0 -0
  198. /package/build/{Subot-62ca50a6.js → Subot-e4dc9853.js} +0 -0
  199. /package/build/{Visible-2a895be5.js → Visible-281b4cd4.js} +0 -0
  200. /package/build/{WEIGHT_BOYS.percentile.monthly-24692ec5.js → WEIGHT_BOYS.percentile.monthly-a344333c.js} +0 -0
  201. /package/build/{WEIGHT_BOYS.percentile.weekly-25810fab.js → WEIGHT_BOYS.percentile.weekly-b65da8b2.js} +0 -0
  202. /package/build/{WEIGHT_BOYS.percentile.yearly-e5dc7f81.js → WEIGHT_BOYS.percentile.yearly-13ea17b1.js} +0 -0
  203. /package/build/{WEIGHT_BOYS.zscore.monthly-7db74a1f.js → WEIGHT_BOYS.zscore.monthly-2357da35.js} +0 -0
  204. /package/build/{WEIGHT_BOYS.zscore.weekly-9731e1c4.js → WEIGHT_BOYS.zscore.weekly-ad48d16f.js} +0 -0
  205. /package/build/{WEIGHT_BOYS.zscore.yearly-f8316e40.js → WEIGHT_BOYS.zscore.yearly-06b335f5.js} +0 -0
  206. /package/build/{WEIGHT_GIRLS.percentile.monthly-39d26569.js → WEIGHT_GIRLS.percentile.monthly-010d079d.js} +0 -0
  207. /package/build/{WEIGHT_GIRLS.percentile.weekly-96b2d2e8.js → WEIGHT_GIRLS.percentile.weekly-c3d0ebcc.js} +0 -0
  208. /package/build/{WEIGHT_GIRLS.percentile.yearly-dfc6724a.js → WEIGHT_GIRLS.percentile.yearly-078e1dc2.js} +0 -0
  209. /package/build/{WEIGHT_GIRLS.zscore.monthly-02efed83.js → WEIGHT_GIRLS.zscore.monthly-1d9c2d16.js} +0 -0
  210. /package/build/{WEIGHT_GIRLS.zscore.weekly-5a7abbcd.js → WEIGHT_GIRLS.zscore.weekly-e111b608.js} +0 -0
  211. /package/build/{WEIGHT_GIRLS.zscore.yearly-a4aa1cf3.js → WEIGHT_GIRLS.zscore.yearly-ddb47ed0.js} +0 -0
  212. /package/build/{animation-58e0efd9.js → animation-c4266352.js} +0 -0
  213. /package/build/{cookieHelper-e8568ab0.js → cookieHelper-1d47a774.js} +0 -0
  214. /package/build/esm/{BMI_BOYS.percentile.monthly-48129511.js → BMI_BOYS.percentile.monthly-8b256c59.js} +0 -0
  215. /package/build/esm/{BMI_BOYS.percentile.weekly-4ad76f27.js → BMI_BOYS.percentile.weekly-43e72903.js} +0 -0
  216. /package/build/esm/{BMI_BOYS.percentile.yearly-23ee3817.js → BMI_BOYS.percentile.yearly-1a1e1ada.js} +0 -0
  217. /package/build/esm/{BMI_BOYS.zscore.monthly-e78d6233.js → BMI_BOYS.zscore.monthly-166071d1.js} +0 -0
  218. /package/build/esm/{BMI_BOYS.zscore.weekly-06c06fdf.js → BMI_BOYS.zscore.weekly-036ceb3b.js} +0 -0
  219. /package/build/esm/{BMI_BOYS.zscore.yearly-61c6decd.js → BMI_BOYS.zscore.yearly-cd872fac.js} +0 -0
  220. /package/build/esm/{BMI_GIRLS.percentile.monthly-598af38e.js → BMI_GIRLS.percentile.monthly-f70254dc.js} +0 -0
  221. /package/build/esm/{BMI_GIRLS.percentile.weekly-8b52ce12.js → BMI_GIRLS.percentile.weekly-bde5fa74.js} +0 -0
  222. /package/build/esm/{BMI_GIRLS.percentile.yearly-2e01e445.js → BMI_GIRLS.percentile.yearly-126c8cb1.js} +0 -0
  223. /package/build/esm/{BMI_GIRLS.zscore.monthly-e6834398.js → BMI_GIRLS.zscore.monthly-b3c1a61c.js} +0 -0
  224. /package/build/esm/{BMI_GIRLS.zscore.weekly-79ec7b88.js → BMI_GIRLS.zscore.weekly-674e88da.js} +0 -0
  225. /package/build/esm/{BMI_GIRLS.zscore.yearly-01907998.js → BMI_GIRLS.zscore.yearly-fc23f19e.js} +0 -0
  226. /package/build/esm/{ChevronDown-aa300d86.js → ChevronDown-349b66e5.js} +0 -0
  227. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-01538c49.js → HEAD CIRCUM_BOYS.percentile.monthly-a30d692f.js} +0 -0
  228. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-bea02ffa.js → HEAD CIRCUM_BOYS.percentile.weekly-8ac93b82.js} +0 -0
  229. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-0ba78901.js → HEAD CIRCUM_BOYS.percentile.yearly-c4c0cc12.js} +0 -0
  230. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-3f69451c.js → HEAD CIRCUM_BOYS.zscore.monthly-2fba66f1.js} +0 -0
  231. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b10ca70a.js → HEAD CIRCUM_BOYS.zscore.weekly-96109964.js} +0 -0
  232. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-48519b10.js → HEAD CIRCUM_BOYS.zscore.yearly-afac98af.js} +0 -0
  233. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1eb778c5.js → HEAD CIRCUM_GIRLS.percentile.monthly-a2886ad5.js} +0 -0
  234. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-3e60af36.js → HEAD CIRCUM_GIRLS.percentile.weekly-460cf75a.js} +0 -0
  235. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f39de84c.js → HEAD CIRCUM_GIRLS.percentile.yearly-5c5022c4.js} +0 -0
  236. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-0e646766.js → HEAD CIRCUM_GIRLS.zscore.monthly-19c69286.js} +0 -0
  237. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f006ac74.js → HEAD CIRCUM_GIRLS.zscore.weekly-ce3a479d.js} +0 -0
  238. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b3cea06e.js → HEAD CIRCUM_GIRLS.zscore.yearly-85ba11b3.js} +0 -0
  239. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-cc1006e0.js → HEIGHT_BOYS.percentile.monthly-f5f735f8.js} +0 -0
  240. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-9e580528.js → HEIGHT_BOYS.percentile.weekly-19776264.js} +0 -0
  241. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-0b55c9ce.js → HEIGHT_BOYS.percentile.yearly-203f160e.js} +0 -0
  242. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-6ba2931c.js → HEIGHT_BOYS.zscore.monthly-e4f265f6.js} +0 -0
  243. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-25f7eedf.js → HEIGHT_BOYS.zscore.weekly-62661157.js} +0 -0
  244. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3a642e2c.js → HEIGHT_BOYS.zscore.yearly-01770cb8.js} +0 -0
  245. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-8db8755a.js → HEIGHT_GIRLS.percentile.monthly-e3eadfe6.js} +0 -0
  246. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-77b234c0.js → HEIGHT_GIRLS.percentile.weekly-9becad9b.js} +0 -0
  247. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-09780dc1.js → HEIGHT_GIRLS.percentile.yearly-2e895e83.js} +0 -0
  248. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-e40080bb.js → HEIGHT_GIRLS.zscore.monthly-ea02ec73.js} +0 -0
  249. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0bb6e304.js → HEIGHT_GIRLS.zscore.weekly-4d8b6514.js} +0 -0
  250. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-e6b635de.js → HEIGHT_GIRLS.zscore.yearly-24d79e04.js} +0 -0
  251. /package/build/esm/{Subot-2aef4c22.js → Subot-8e9ad7eb.js} +0 -0
  252. /package/build/esm/{Visible-f99f9293.js → Visible-77880c27.js} +0 -0
  253. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-4c645259.js → WEIGHT_BOYS.percentile.monthly-57d372a9.js} +0 -0
  254. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-717eabb4.js → WEIGHT_BOYS.percentile.weekly-0b68d02e.js} +0 -0
  255. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-e0914089.js → WEIGHT_BOYS.percentile.yearly-788d89fc.js} +0 -0
  256. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-f07241ff.js → WEIGHT_BOYS.zscore.monthly-3d3ee2b3.js} +0 -0
  257. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-f8fd2944.js → WEIGHT_BOYS.zscore.weekly-7cca2662.js} +0 -0
  258. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-9bd78a79.js → WEIGHT_BOYS.zscore.yearly-8fc5730d.js} +0 -0
  259. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-f24ce599.js → WEIGHT_GIRLS.percentile.monthly-280c90fc.js} +0 -0
  260. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-076ed66d.js → WEIGHT_GIRLS.percentile.weekly-1aba336e.js} +0 -0
  261. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-ab25217e.js → WEIGHT_GIRLS.percentile.yearly-91c9001f.js} +0 -0
  262. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-d870d526.js → WEIGHT_GIRLS.zscore.monthly-c8614a68.js} +0 -0
  263. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-efc426e7.js → WEIGHT_GIRLS.zscore.weekly-6aeb9f4c.js} +0 -0
  264. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-8eb03c19.js → WEIGHT_GIRLS.zscore.yearly-53ebaf01.js} +0 -0
  265. /package/build/esm/{animation-2239652d.js → animation-6b2b7dab.js} +0 -0
  266. /package/build/esm/{cookieHelper-9578d73d.js → cookieHelper-69ff265e.js} +0 -0
  267. /package/build/esm/{index-c14ddf84.js → index-910db9f6.js} +0 -0
  268. /package/build/esm/{index-f3f8be88.js → index-9c8c45f9.js} +0 -0
  269. /package/build/esm/{index-9ea16d74.js → index-dc2203ea.js} +0 -0
  270. /package/build/esm/{isProduction-b994309f.js → isProduction-09caa686.js} +0 -0
  271. /package/build/esm/{localizeNumberFormat-0e39099e.js → localizeNumberFormat-0588f8cc.js} +0 -0
  272. /package/build/esm/{normalizeLink-2956c90b.js → normalizeLink-22992e53.js} +0 -0
  273. /package/build/esm/{number-94d78e9a.js → number-c598edcf.js} +0 -0
  274. /package/build/esm/{paths-4b267f09.js → paths-3a59da5a.js} +0 -0
  275. /package/build/esm/{theme-a6d85437.js → theme-e2f5082a.js} +0 -0
  276. /package/build/esm/{translationsContext-74b88f84.js → translationsContext-d98f0db3.js} +0 -0
  277. /package/build/esm/{tslib.es6-4278f71d.js → tslib.es6-29beeaba.js} +0 -0
  278. /package/build/esm/{types-2ec780b9.js → types-7c839811.js} +0 -0
  279. /package/build/esm/{useIsInit-1bef15ee.js → useIsInit-25be298b.js} +0 -0
  280. /package/build/esm/{useOutsideClick-d27c0682.js → useOutsideClick-324cf9cc.js} +0 -0
  281. /package/build/esm/{useScrollbarSize-85c834b1.js → useScrollbarSize-97c7c3b1.js} +0 -0
  282. /package/build/esm/{utils-3789cdf6.js → utils-0212f8af.js} +0 -0
  283. /package/build/{index-d724a4d8.js → index-68a90371.js} +0 -0
  284. /package/build/{index-3345841e.js → index-7318d380.js} +0 -0
  285. /package/build/{index-f39227a2.js → index-94496153.js} +0 -0
  286. /package/build/{isProduction-46480e86.js → isProduction-81b72bf2.js} +0 -0
  287. /package/build/{localizeNumberFormat-3d4f7fbf.js → localizeNumberFormat-f22141ef.js} +0 -0
  288. /package/build/{normalizeLink-e4a910d1.js → normalizeLink-a8042801.js} +0 -0
  289. /package/build/{number-9f4f6a0c.js → number-70b95624.js} +0 -0
  290. /package/build/{paths-7d9c5b84.js → paths-f4ff7484.js} +0 -0
  291. /package/build/{theme-4724d52c.js → theme-568c5c71.js} +0 -0
  292. /package/build/{translationsContext-c8cf35dc.js → translationsContext-4d2756ea.js} +0 -0
  293. /package/build/{tslib.es6-6b4af3f9.js → tslib.es6-0151ae97.js} +0 -0
  294. /package/build/{types-777f6b53.js → types-227a5904.js} +0 -0
  295. /package/build/{useIsInit-a24486c6.js → useIsInit-a38277ab.js} +0 -0
  296. /package/build/{useOutsideClick-b69f9e0b.js → useOutsideClick-c18d50d4.js} +0 -0
  297. /package/build/{useScrollbarSize-118b32ba.js → useScrollbarSize-3847391c.js} +0 -0
  298. /package/build/{utils-001f8ba1.js → utils-dbb28536.js} +0 -0
package/build/together.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-dc19e136.js"),r=require("./index-4f1bc250.js"),t=require("./utils-7fc68adc.js");require("react"),require("./index-9b59f258.js"),require("./tslib.es6-6b4af3f9.js"),require("@mantine/core"),require("./theme-4724d52c.js"),require("./useTranslations-9b6f169b.js"),require("./translationsContext-c8cf35dc.js"),require("string-format"),require("./index-71a69990.js"),require("styled-components"),require("innertext"),require("./index-9b6fa1ba.js"),require("@mantine/hooks"),require("./index-62ea1a89.js"),require("./index-c4cb718f.js"),require("date-fns/locale"),require("./Subot-62ca50a6.js"),require("./isProduction-46480e86.js"),require("dayjs"),require("./utils-001f8ba1.js"),require("@mantine/carousel"),require("classnames"),require("@mantine/dates"),require("./index-9020e574.js"),require("./index.styles-6c37d702.js"),require("./constants-d6fc50ec.js"),require("./animation-58e0efd9.js"),require("react-keyed-flatten-children"),require("./paths-7d9c5b84.js"),require("./index-11af76a3.js"),require("lodash/debounce"),require("react-contenteditable"),require("./index-1d09fd07.js"),require("./cookieHelper-e8568ab0.js"),require("react-dom"),require("./number-9f4f6a0c.js"),require("date-fns"),require("dayjs/plugin/relativeTime"),require("./index-9d70b0f9.js"),require("./routing-992b2744.js"),require("./utils-191b2951.js"),require("./index.styled-05b466a6.js"),require("./index-3345841e.js"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-41c9b282.js"),r=require("./index-cc20d115.js"),t=require("./utils-c2a4f934.js");require("react"),require("./index-d9b9827c.js"),require("./tslib.es6-0151ae97.js"),require("@mantine/core"),require("./theme-568c5c71.js"),require("./useTranslations-b7e3bbe6.js"),require("./translationsContext-4d2756ea.js"),require("string-format"),require("./index-ae975157.js"),require("styled-components"),require("innertext"),require("./index-0a530be7.js"),require("@mantine/hooks"),require("./index-98bb9bd3.js"),require("./index-9e5cea4a.js"),require("date-fns/locale"),require("./Subot-e4dc9853.js"),require("./isProduction-81b72bf2.js"),require("dayjs"),require("./utils-dbb28536.js"),require("@mantine/carousel"),require("classnames"),require("@mantine/dates"),require("./index-647b2e7d.js"),require("./index.styles-f0c0a48c.js"),require("./constants-f9687cf0.js"),require("./animation-c4266352.js"),require("react-keyed-flatten-children"),require("./paths-f4ff7484.js"),require("./index-815edd02.js"),require("lodash/debounce"),require("react-contenteditable"),require("./index-b71352f1.js"),require("./cookieHelper-1d47a774.js"),require("react-dom"),require("./number-70b95624.js"),require("date-fns"),require("dayjs/plugin/relativeTime"),require("./index-c75cc530.js"),require("./routing-e50153f1.js"),require("./utils-7627e021.js"),require("./index.styled-58256ebd.js"),require("./index-7318d380.js"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react"),t=require("./index-9b59f258.js");require("./translationsContext-c8cf35dc.js"),require("string-format");var a=require("./utils-7fc68adc.js"),l=require("./tslib.es6-6b4af3f9.js"),o=require("@mantine/core"),n=require("./index-71a69990.js"),i=require("./useTranslations-9b6f169b.js"),r=require("innertext"),s=require("./theme-4724d52c.js"),d=require("./index-9b6fa1ba.js");require("@mantine/dates");var c=require("./index-c4cb718f.js"),u=require("./Subot-62ca50a6.js"),m=require("./index-62ea1a89.js");require("@mantine/hooks");var p=require("./index-9020e574.js"),g=require("./index-4f1bc250.js"),h=require("./index-11af76a3.js"),f=require("lodash/debounce"),v=require("react-contenteditable"),b=require("./index-1d09fd07.js"),x=require("./index.styles-6c37d702.js"),y=require("./cookieHelper-e8568ab0.js"),w=require("./utils-001f8ba1.js"),C=require("react-dom"),E=require("styled-components"),k=require("./number-9f4f6a0c.js"),A=require("date-fns"),N=require("dayjs"),T=require("dayjs/plugin/relativeTime"),S=require("./index-9d70b0f9.js"),P=require("./routing-992b2744.js");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function M(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("./constants-d6fc50ec.js"),require("./utils-191b2951.js"),require("./index.styled-05b466a6.js"),require("./index-3345841e.js");var z=M(e),L=I(e),B=I(r),R=I(f),O=I(v),j=M(C),F=I(E),D=I(N),V=I(T);const U=e=>z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),z.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),_=e.createContext({}),H=({children:e,defaultParams:t})=>L.default.createElement(_.Provider,{value:{defaultParams:t}},e),W=t=>{const{data:{userInfo:l,env:{togetherBasePath:o}}}=e.useContext(a.TogetherComponentGlobalContext),{defaultParams:n}=e.useContext(_)||{},i=null==l?void 0:l.id,r=l&&"number"==typeof l.communities_interacted&&0===l.communities_interacted;return{authActionWrapper:(e,l)=>{const s=Object.assign(Object.assign(Object.assign({},n),t),l);if(!i||r){i||y.deleteCookie(a.BEARER_TOKEN_COOKIE),(null==s?void 0:s._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(s._joinCommunityIds).filter(Boolean))))),null==s||delete s._joinCommunityIds),(null==s?void 0:s._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(s._joinTopicIds).filter(Boolean))))),null==s||delete s._joinTopicIds);const e=(null==s?void 0:s._location)||window.location.href;return null==s||delete s._location,window.location.href=a.getUrlToSignUp(e,s,o),null}return e&&e()},params:Object.assign(Object.assign({},n),t)}},q=F.default.div`
1
+ "use strict";var e=require("react"),t=require("./index-d9b9827c.js");require("./translationsContext-4d2756ea.js"),require("string-format");var a=require("./utils-c2a4f934.js"),l=require("./tslib.es6-0151ae97.js"),o=require("@mantine/core"),n=require("./index-ae975157.js"),i=require("./useTranslations-b7e3bbe6.js"),r=require("innertext"),s=require("./theme-568c5c71.js"),d=require("./index-0a530be7.js");require("@mantine/dates");var c=require("./index-9e5cea4a.js"),u=require("./Subot-e4dc9853.js"),m=require("./index-98bb9bd3.js");require("@mantine/hooks");var p=require("./index-647b2e7d.js"),g=require("./index-cc20d115.js"),h=require("./index-815edd02.js"),f=require("lodash/debounce"),v=require("react-contenteditable"),b=require("./index-b71352f1.js"),x=require("./index.styles-f0c0a48c.js"),y=require("./cookieHelper-1d47a774.js"),w=require("./utils-dbb28536.js"),C=require("react-dom"),E=require("styled-components"),k=require("./number-70b95624.js"),A=require("date-fns"),N=require("dayjs"),T=require("dayjs/plugin/relativeTime"),S=require("./index-c75cc530.js"),P=require("./routing-e50153f1.js");function I(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function M(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("./constants-f9687cf0.js"),require("./utils-7627e021.js"),require("./index.styled-58256ebd.js"),require("./index-7318d380.js");var z=M(e),L=I(e),B=I(r),R=I(f),O=I(v),j=M(C),F=I(E),D=I(N),V=I(T);const U=e=>z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},e),z.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),_=e.createContext({}),H=({children:e,defaultParams:t})=>L.default.createElement(_.Provider,{value:{defaultParams:t}},e),W=t=>{const{data:{userInfo:l,env:{togetherBasePath:o}}}=e.useContext(a.TogetherComponentGlobalContext),{defaultParams:n}=e.useContext(_)||{},i=null==l?void 0:l.id,r=l&&"number"==typeof l.communities_interacted&&0===l.communities_interacted;return{authActionWrapper:(e,l)=>{const s=Object.assign(Object.assign(Object.assign({},n),t),l);if(!i||r){i||y.deleteCookie(a.BEARER_TOKEN_COOKIE),(null==s?void 0:s._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(s._joinCommunityIds).filter(Boolean))))),null==s||delete s._joinCommunityIds),(null==s?void 0:s._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(s._joinTopicIds).filter(Boolean))))),null==s||delete s._joinTopicIds);const e=(null==s?void 0:s._location)||window.location.href;return null==s||delete s._location,window.location.href=a.getUrlToSignUp(e,s,o),null}return e&&e()},params:Object.assign(Object.assign({},n),t)}},q=F.default.div`
2
2
  .link-info-container {
3
3
  padding: 0.5rem 1rem;
4
4
  background: ${e=>e.color||"#f4faff"};
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-6b4af3f9.js"),t=require("react"),a=require("./useTranslations-9b6f169b.js"),i=require("lodash/debounce"),o=require("./constants-d6fc50ec.js"),l=require("./index-11af76a3.js"),n=require("styled-components"),s=require("./index-9b59f258.js"),r=require("./theme-4724d52c.js"),c=require("lodash/shuffle"),d=require("./useOutsideClick-b69f9e0b.js"),u=require("./utils-001f8ba1.js"),p=require("react-loading-skeleton"),h=require("./paths-7d9c5b84.js"),g=require("@mantine/core"),f=require("./index-c4cb718f.js"),m=require("./cookieHelper-e8568ab0.js"),C=require("./index-f39227a2.js"),b=require("./ChevronDown-495a67a9.js"),y=require("string-format");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=v(t),E=v(i),S=v(n),L=v(c),w=v(p),O=v(y);function k(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const I=S.default.div``,T=S.default.div`
1
+ "use strict";var e=require("./tslib.es6-0151ae97.js"),t=require("react"),a=require("./useTranslations-b7e3bbe6.js"),i=require("lodash/debounce"),o=require("./constants-f9687cf0.js"),l=require("./index-815edd02.js"),n=require("styled-components"),s=require("./index-d9b9827c.js"),r=require("./theme-568c5c71.js"),c=require("lodash/shuffle"),d=require("./useOutsideClick-c18d50d4.js"),u=require("./utils-dbb28536.js"),p=require("react-loading-skeleton"),h=require("./paths-f4ff7484.js"),g=require("@mantine/core"),f=require("./index-9e5cea4a.js"),m=require("./cookieHelper-1d47a774.js"),C=require("./index-94496153.js"),b=require("./ChevronDown-224f298e.js"),y=require("string-format");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var x=v(t),E=v(i),S=v(n),L=v(c),w=v(p),O=v(y);function k(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const I=S.default.div``,T=S.default.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
package/build/types.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Subot-62ca50a6.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),exports.ELEMENT_CONTROL_INPUT_TYPE=e.ELEMENT_CONTROL_INPUT_TYPE,exports.FULL_KEY_ADDRESS=e.FULL_KEY_ADDRESS,Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"NodeActionType",{enumerable:!0,get:function(){return e.NodeActionType}}),exports.NodeFinalTypes=e.NodeFinalTypes,Object.defineProperty(exports,"NodeIntentType",{enumerable:!0,get:function(){return e.NodeIntentType}}),Object.defineProperty(exports,"NodeMultipleOptions",{enumerable:!0,get:function(){return e.NodeMultipleOptions}}),Object.defineProperty(exports,"NodePosition",{enumerable:!0,get:function(){return e.NodePosition}}),Object.defineProperty(exports,"NodeType",{enumerable:!0,get:function(){return e.NodeType}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}}),exports.SubotType=e.SubotType;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Subot-e4dc9853.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),exports.ELEMENT_CONTROL_INPUT_TYPE=e.ELEMENT_CONTROL_INPUT_TYPE,exports.FULL_KEY_ADDRESS=e.FULL_KEY_ADDRESS,Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"NodeActionType",{enumerable:!0,get:function(){return e.NodeActionType}}),exports.NodeFinalTypes=e.NodeFinalTypes,Object.defineProperty(exports,"NodeIntentType",{enumerable:!0,get:function(){return e.NodeIntentType}}),Object.defineProperty(exports,"NodeMultipleOptions",{enumerable:!0,get:function(){return e.NodeMultipleOptions}}),Object.defineProperty(exports,"NodePosition",{enumerable:!0,get:function(){return e.NodePosition}}),Object.defineProperty(exports,"NodeType",{enumerable:!0,get:function(){return e.NodeType}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}}),exports.SubotType=e.SubotType;
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-6b4af3f9.js"),a=require("react"),n=require("./cookieHelper-e8568ab0.js"),t=require("./useTranslations-9b6f169b.js"),i=require("./Subot-62ca50a6.js");function s(e){const a=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",a).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const l={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},r={[i.LOCALE.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[i.LOCALE.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};exports.MAPPED_CATEGORY_SLUGS=r,exports.PREGNANCY_SLUG=l,exports.useCategory=e=>{const{locale:n}=t.useTranslations();return{isPregnancy:a.useMemo((()=>decodeURI(e.replace(/\//gi,"")).includes(l[n])),[]),isParenting:a.useMemo((()=>{var a;return decodeURI(e.replace(/\//gi,"")).includes(null===(a=r[n])||void 0===a?void 0:a.parenting)}),[]),type:a.useMemo((()=>function(e,a){const n=e.split("/");for(const e in a){const t=a[e];if(n.includes(t))return e}return null}(e,r[n])),[e,n])}},exports.useFbDataLayer=t=>{const i=a.useRef("");a.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,a,l,r,b;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(a=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===a||a.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(l=i.current)||void 0===l?void 0:l.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==t?void 0:t.id){const[e,a,i,l,h,u]=yield Promise.all([t.email?s(t.email):null,t.phone?s(t.phone):null,t.birthday?s(t.birthday.split("-").join("")):null,t.gender?"m":"f",t.city_name?s(t.city_name).then((e=>e.replace(/\s/g,""))):null,t.name?s(t.name):null]);n.getCookie("_fbc"),n.getCookie("_fbp");const o={user_id:t.id};u&&(o.fn=u),e&&(o.em=e),a&&(o.ph=a),i&&(o.db=i),h&&(o.ct=h),null===(b=null===(r=window.localStorage)||void 0===r?void 0:r.setItem)||void 0===b||b.call(r,"fbDataLayer_userInfo",JSON.stringify(o))}})),()=>{})),[t])},exports.usePrevious=e=>{const n=a.useRef(),i=a.useRef(e);return t.useInitialMount()||i.current===e||(n.current=i.current,i.current=e),n.current},exports.useRafState=e=>{const[n,t]=a.useState(e),i=a.useRef(0),s=a.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{t(e)}))}),[]);return a.useEffect((()=>()=>cancelAnimationFrame(i.current))),[n,s]};
1
+ "use strict";var e=require("./tslib.es6-0151ae97.js"),a=require("react"),n=require("./cookieHelper-1d47a774.js"),t=require("./useTranslations-b7e3bbe6.js"),i=require("./Subot-e4dc9853.js");function s(e){const a=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",a).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const l={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},r={[i.LOCALE.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[i.LOCALE.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[i.LOCALE.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};exports.MAPPED_CATEGORY_SLUGS=r,exports.PREGNANCY_SLUG=l,exports.useCategory=e=>{const{locale:n}=t.useTranslations();return{isPregnancy:a.useMemo((()=>decodeURI(e.replace(/\//gi,"")).includes(l[n])),[]),isParenting:a.useMemo((()=>{var a;return decodeURI(e.replace(/\//gi,"")).includes(null===(a=r[n])||void 0===a?void 0:a.parenting)}),[]),type:a.useMemo((()=>function(e,a){const n=e.split("/");for(const e in a){const t=a[e];if(n.includes(t))return e}return null}(e,r[n])),[e,n])}},exports.useFbDataLayer=t=>{const i=a.useRef("");a.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,a,l,r,b;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(a=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===a||a.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(l=i.current)||void 0===l?void 0:l.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==t?void 0:t.id){const[e,a,i,l,h,u]=yield Promise.all([t.email?s(t.email):null,t.phone?s(t.phone):null,t.birthday?s(t.birthday.split("-").join("")):null,t.gender?"m":"f",t.city_name?s(t.city_name).then((e=>e.replace(/\s/g,""))):null,t.name?s(t.name):null]);n.getCookie("_fbc"),n.getCookie("_fbp");const o={user_id:t.id};u&&(o.fn=u),e&&(o.em=e),a&&(o.ph=a),i&&(o.db=i),h&&(o.ct=h),null===(b=null===(r=window.localStorage)||void 0===r?void 0:r.setItem)||void 0===b||b.call(r,"fbDataLayer_userInfo",JSON.stringify(o))}})),()=>{})),[t])},exports.usePrevious=e=>{const n=a.useRef(),i=a.useRef(e);return t.useInitialMount()||i.current===e||(n.current=i.current,i.current=e),n.current},exports.useRafState=e=>{const[n,t]=a.useState(e),i=a.useRef(0),s=a.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{t(e)}))}),[]);return a.useEffect((()=>()=>cancelAnimationFrame(i.current))),[n,s]};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-6b4af3f9.js"),t=require("react"),a=require("./getDynamicHealthTool-6a1789af.js");exports.useHealthToolsCache=o=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield a.getDynamicHealthToolWithCache(o);l(e)}))}),[a.getDynamicHealthToolWithCache,o]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
1
+ "use strict";var e=require("./tslib.es6-0151ae97.js"),t=require("react"),a=require("./getDynamicHealthTool-f5d686dc.js");exports.useHealthToolsCache=o=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield a.getDynamicHealthToolWithCache(o);l(e)}))}),[a.getDynamicHealthToolWithCache,o]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-6b4af3f9.js"),t=require("react");const i="undefined"==typeof window,o={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"};exports.GOOGLE_API_KEY="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",exports.GOOGLE_API_LANGUAGE=o,exports.usePlacesAutocomplete=(n="",r="",s="",c=500)=>{const[a,d]=t.useState([]),[u,l]=t.useState(!1);return t.useEffect((()=>{let t;return n?t=window.setTimeout((()=>e.__awaiter(void 0,void 0,void 0,(function*(){var t;if(n)try{l(!0);const c=yield((t="",n="",r="vi")=>e.__awaiter(void 0,void 0,void 0,(function*(){return new Promise(((e,s)=>{if(!t)return s("Need valid text input");if(i)return s("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:t},n?{componentRestrictions:{country:n}}:{}),{language:o[r]}),e)}catch(e){s(e)}}))})))(n,r,s);d(!(t=c)||t.length<1?[]:t.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{l(!1)}else d([])}))),c):a.length&&d([]),()=>{window.clearTimeout(t)}}),[n,c,r]),{isLoading:u,predictions:a}};
1
+ "use strict";var e=require("./tslib.es6-0151ae97.js"),t=require("react");const i="undefined"==typeof window,o={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"};exports.GOOGLE_API_KEY="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",exports.GOOGLE_API_LANGUAGE=o,exports.usePlacesAutocomplete=(n="",r="",s="",c=500)=>{const[a,d]=t.useState([]),[u,l]=t.useState(!1);return t.useEffect((()=>{let t;return n?t=window.setTimeout((()=>e.__awaiter(void 0,void 0,void 0,(function*(){var t;if(n)try{l(!0);const c=yield((t="",n="",r="vi")=>e.__awaiter(void 0,void 0,void 0,(function*(){return new Promise(((e,s)=>{if(!t)return s("Need valid text input");if(i)return s("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:t},n?{componentRestrictions:{country:n}}:{}),{language:o[r]}),e)}catch(e){s(e)}}))})))(n,r,s);d(!(t=c)||t.length<1?[]:t.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{l(!1)}else d([])}))),c):a.length&&d([]),()=>{window.clearTimeout(t)}}),[n,c,r]),{isLoading:u,predictions:a}};
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("./translationsContext-c8cf35dc.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(require("string-format"));const s=()=>{const t=e.useRef(!0);return!!t.current&&(t.current=!1,!0)};let o=0;exports.useInitialMount=s,exports.useTranslations=function(){const{values:n,locale:s}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>n?n[e]?t?r.default(n[e]||e,t):n[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${s}`),t?r.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:s})),[n,s])},exports.useUniqueId=()=>{const t=e.useRef("");return s()&&(o+=1,t.current=`hhg-gen-id${o}`),t.current};
1
+ "use strict";var e=require("react"),t=require("./translationsContext-4d2756ea.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(require("string-format"));const s=()=>{const t=e.useRef(!0);return!!t.current&&(t.current=!1,!0)};let o=0;exports.useInitialMount=s,exports.useTranslations=function(){const{values:n,locale:s}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>n?n[e]?t?r.default(n[e]||e,t):n[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${s}`),t?r.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:s})),[n,s])},exports.useUniqueId=()=>{const t=e.useRef("");return s()&&(o+=1,t.current=`hhg-gen-id${o}`),t.current};
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./utils-001f8ba1.js"),t=require("styled-components"),o=require("react"),a=require("./index-62ea1a89.js"),s=require("./index-9b6fa1ba.js"),n=require("./Subot-62ca50a6.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(t),h=r(o);const g=l.default.div`
1
+ "use strict";var e=require("./utils-dbb28536.js"),t=require("styled-components"),o=require("react"),s=require("./index-98bb9bd3.js"),a=require("./index-0a530be7.js"),n=require("./Subot-e4dc9853.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(t),h=r(o);const g=l.default.div`
2
2
  position: relative;
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -138,4 +138,4 @@
138
138
  width: unset;
139
139
  margin-bottom: 4px;
140
140
  margin-left: -3px;
141
- `,p=o.memo((({type:e,width:t,height:n})=>{const r=o.useMemo((()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:t||"127px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:n||"27px",src:a.CommonGAssets.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:t||"123px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:n||"24px",src:a.CommonGAssets.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:n||"57px",src:a.CommonGAssets.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:n||"28px",src:a.CommonGAssets.getAssetPath("logo/marrybaby.png")};default:return null}}),[e,t,n]),{src:l,width:g,height:i}=r||{};return h.default.createElement(s.ImageWrap,{alt:`${e} logo`,className:"main-logo-icon",src:l,style:{width:g,height:i}})})),m={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},d=[n.LOCALE.Vietnam,n.LOCALE.Taiwan,n.LOCALE.Indonesia,n.LOCALE.Malaysia],c=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],x={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]};exports.LogoIcon=p,exports.LunarNewYearLocale=d,exports.StyledLogo=g,exports.StyledProLogo=i,exports.isChristmas=e=>{const t=e.getDate();return 11===e.getMonth()&&t>=16&&t<=25},exports.isLabourDay=e=>{const t=e.getFullYear(),o=new Date(t,4,1),a=new Date(o);a.setDate(o.getDate()-1);const s=new Date(o);return s.setDate(o.getDate()+1),a<=e&&e<=s},exports.isLunarNewYear=e=>{const t=e.getFullYear(),o=m[t];if(!o)return!1;const a=new Date(t,o[1],o[0]),s=new Date(a);s.setDate(a.getDate()-7);const n=new Date(a);return n.setDate(a.getDate()+5),s<=e&&e<=n},exports.isNewYear=e=>{const t=e.getDate(),o=e.getMonth();return 11===o&&t>=26||0===o&&t<=15},exports.isRamadan=e=>{const t=e.getFullYear(),o=c.filter((e=>e.year===t));return!!o.length&&o.some((o=>{const a=o.start[2]||t,s=new Date(a,o.start[1],o.start[0]),n=new Date(a,o.end[1],o.end[0]);return s<=e&&e<=n}))},exports.isVN3004=e=>{const t=e.getFullYear(),o=new Date(t,3,30),a=new Date(o);a.setDate(o.getDate()-1);const s=new Date(o);return s.setDate(o.getDate()+2),a<=e&&e<=s},exports.isVNHungKing=e=>{const t=e.getFullYear(),o=x[t];if(!o)return!1;const a=new Date(t,o[1],o[0]),s=new Date(a);s.setDate(a.getDate()-1);const n=new Date(a);return n.setDate(a.getDate()+1),s<=e&&e<=n};
141
+ `,p=o.memo((({type:e,width:t,height:n})=>{const r=o.useMemo((()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellobacsi.png")};case"hellodoktor":return{width:t||"127px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:n||"27px",src:s.CommonGAssets.getAssetPath("logo/hellosehat.png")};case"hellohealth":return{width:t||"123px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:n||"24px",src:s.CommonGAssets.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:n||"57px",src:s.CommonGAssets.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:n||"28px",src:s.CommonGAssets.getAssetPath("logo/marrybaby.png")};default:return null}}),[e,t,n]),{src:l,width:g,height:i}=r||{};return h.default.createElement(a.ImageWrap,{alt:`${e} logo`,className:"main-logo-icon",src:l,style:{width:g,height:i}})})),d={2023:[22,0],2024:[10,1],2025:[29,0],2026:[17,1],2027:[6,1],2028:[26,0],2029:[13,1],2030:[3,1],2031:[23,0],2032:[11,1],2033:[31,0],2034:[19,1],2035:[8,1],2036:[28,0],2037:[15,1],2038:[4,1],2039:[24,0],2040:[12,1]},m=[n.LOCALE.Vietnam,n.LOCALE.Taiwan,n.LOCALE.Indonesia,n.LOCALE.Malaysia],c=[{year:2024,start:[10,2],end:[8,3]},{year:2025,start:[1,2],end:[30,2]},{year:2026,start:[18,1],end:[19,2]},{year:2027,start:[8,1],end:[9,2]},{year:2028,start:[28,0],end:[26,1]},{year:2029,start:[16,0],end:[14,1]},{year:2030,start:[6,0],end:[4,1]},{year:2030,start:[26,11],end:[24,0,2031]},{year:2031,start:[15,11],end:[13,0,2032]},{year:2032,start:[4,11],end:[2,0,2033]}],x={2024:[18,3],2025:[7,3],2026:[26,3],2027:[16,3],2028:[4,3],2029:[23,3],2030:[12,3],2031:[1,3],2032:[19,3],2033:[9,3],2034:[28,3],2035:[17,3]};exports.LogoIcon=p,exports.LunarNewYearLocale=m,exports.StyledLogo=g,exports.StyledProLogo=i,exports.isChristmas=e=>{const t=e.getDate();return 11===e.getMonth()&&t>=16&&t<=25},exports.isLabourDay=e=>{const t=e.getFullYear(),o=new Date(t,4,1),s=new Date(o);s.setDate(o.getDate()-1);const a=new Date(o);return a.setDate(o.getDate()+1),s<=e&&e<=a},exports.isLunarNewYear=e=>{const t=e.getFullYear(),o=d[t];if(!o)return!1;const s=new Date(t,o[1],o[0]),a=new Date(s);a.setDate(s.getDate()-7);const n=new Date(s);return n.setDate(s.getDate()+5),a<=e&&e<=n},exports.isNewYear=e=>{const t=e.getDate(),o=e.getMonth();return 11===o&&t>=26||0===o&&t<=15},exports.isRamadan=e=>{const t=e.getFullYear(),o=c.filter((e=>e.year===t));return!!o.length&&o.some((o=>{const s=o.start[2]||t,a=new Date(s,o.start[1],o.start[0]),n=new Date(s,o.end[1],o.end[0]);return a<=e&&e<=n}))},exports.isVN3004=e=>{const t=e.getFullYear(),o=new Date(t,3,30),s=new Date(o);s.setDate(o.getDate()-1);const a=new Date(o);return a.setDate(o.getDate()+2),s<=e&&e<=a},exports.isVNHungKing=e=>{const t=e.getFullYear(),o=x[t];if(!o)return!1;const s=new Date(t,o[1],o[0]),a=new Date(s);a.setDate(s.getDate()-1);const n=new Date(s);return n.setDate(s.getDate()+1),a<=e&&e<=n};
@@ -0,0 +1 @@
1
+ "use strict";var i=require("./Subot-e4dc9853.js");const a={[i.LOCALE.Vietnam]:"VN",[i.LOCALE.Cambodia]:"KH",[i.LOCALE.Indonesia]:"ID",[i.LOCALE.Malaysia]:"MY",[i.LOCALE.PhilippinesEnglish]:"PH",[i.LOCALE.PhilippinesTagalog]:"PH",[i.LOCALE.Taiwan]:"TW",[i.LOCALE.Thailand]:"TH",[i.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=a,exports.hiddenEmailChar=(i="")=>{const a=i.indexOf("@"),e=i.substring(0,a),L=e.length>3?3:e.length;return i.replace(i.substring(L,a),i.slice(L,a).replace(/./g,"x"))};
@@ -1 +1 @@
1
- "use strict";var e=require("./tslib.es6-6b4af3f9.js"),t=require("./cookieHelper-e8568ab0.js"),o=require("slugify");require("./index-c4cb718f.js");var r=require("string-format"),a=require("react"),i=require("./isProduction-46480e86.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=l(o),n=l(r),_=l(a),u=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var o={},r=(t||{}).decode||d,a=0;for(;a<e.length;){var i=e.indexOf("=",a);if(-1===i)break;var l=e.indexOf(";",a);if(-1===l)l=e.length;else if(l<i){a=e.lastIndexOf(";",i-1)+1;continue}var s=e.slice(a,i).trim();if(void 0===o[s]){var n=e.slice(i+1,l).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1)),o[s]=m(n,r)}a=l+1}return o},c=function(e,t,o){var r=o||{},a=r.encode||T;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!E.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!E.test(i))throw new TypeError("argument val is invalid");var l=e+"="+i;if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(s)}if(r.domain){if(!E.test(r.domain))throw new TypeError("option domain is invalid");l+="; Domain="+r.domain}if(r.path){if(!E.test(r.path))throw new TypeError("option path is invalid");l+="; Path="+r.path}if(r.expires){var n=r.expires;if(!function(e){return"[object Date]"===p.call(e)||e instanceof Date}(n)||isNaN(n.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+n.toUTCString()}r.httpOnly&&(l+="; HttpOnly");r.secure&&(l+="; Secure");if(r.priority){switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},p=Object.prototype.toString,E=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function T(e){return encodeURIComponent(e)}function m(e,t){try{return t(e)}catch(t){return e}}var b={parse:u,serialize:c};const A={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",USER:{DETAIL:"profile/user/detail?website_url={website_url}&user_id={id}",COUNT_TABS:"profile/user/counting?website_url={website_url}&user_id={id}&total_post={post}&total_comment={comment}&total_community={community}&total_reply={reply}&total_question={question}",LIST_POST:"profile/user/posts?website_url={website_url}&user_id={id}&is_anonymous={isAnonymous}&paging=none",LIST_QUESTION_NEED_REPLY:"questions/no-reply?website_url={website_url}",LIST_QUESTION:"question/{id}?website_url={website_url}&is_reply={isReply}&is_question={isQuestion}&is_ignore={isIgnore}&group_by={groupBy}",SKIP_QUESTION:"questions/ignore?website_url={website_url}&question_id={id}",LIST_ANSWERS:"replied/{id}?website_url={website_url}&paging=1&items_per_page={pageSize}"},HEALTH_TOOL:{CREATE:"health-profile/{type}/create?website_url={website_url}",GET_STATUS:"health-profile/get-status-for-user?website_url={website_url}"}},O={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},h=a.createContext({data:O,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null});exports.GlobalData=O;const g="DD/MM/YYYY",v="/images/avatar.jpg",I="/images/default-image.jpg",L={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR",BGC:"BGC"},S={"id-ID":{"kalkulator-bmi":L.BMI,"kebutuhan-kalori":L.BMR,"kalkulator-hari-perkiraan-lahir":L.DUE_DATE,"kalkulator-masa-subur-2":L.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":L.PWG,"kalkulator-detak-jantung-saat-olahraga":L.THR},"ms-MY":{"kalkulator-bmi":L.BMI,"kalkulator-bmr":L.BMR,"kalkulator-tarikh-bersalin":L.DUE_DATE,"kalkulator-kesuburan":L.OVULATION,"kalkulator-tambah-berat-badan-hamil":L.PWG,"target-heart-rate-calculator":L.THR},"vi-VN":{"cach-tinh-chi-so-bmi":L.BMI,"tinh-chi-so-bmr":L.BMR,"cong-cu-tinh-ngay-du-sinh":L.DUE_DATE,"tinh-ngay-rung-trung":L.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":L.PWG,"cong-cu-do-nhip-tim":L.THR},"zh-TW":{"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"due-date-calculator":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnancy-weight-gain-calculator":L.PWG,"target-heart-rate-calculator":L.THR},"en-PH":{"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"due-date-calculator":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnancy-weight-gain-calculator":L.PWG,"target-heart-rate-calculator":L.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":L.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":L.BMR,"เครื่องมือคำนวณกำหนดคลอด":L.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":L.OVULATION,"เครื่องคำนวณน้ำหนักตัว":L.PWG,"เครื่องวัดอัตราการเต้น":L.THR},"hi-IN":{"bmi-calculator-en":L.BMI,"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"delivery-date-calculator":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnancy-weight-gain-calculator":L.PWG,"target-heart-rate-calculator":L.THR},"km-KH":{"គណនា-bmi":L.BMI,"គណនា-bmr":L.BMR,"គណនាថ្ងៃសម្រាលកូន":L.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":L.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":L.PWG,"គណនារកចង្វាក់បេះដូងល្អ":L.THR},"my-MM":{"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"due-date-calendar":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnaancy-weight-calculator":L.PWG,"target-heartrate":L.THR,"pregnancy-weight-calculator":L.PWG,"target-heart-rate":L.THR}},R="hhg_user_token",w="together_admin_token",f={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},y="hhg-id",D={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},P={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}};var G=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DUE_DATE_FORMAT:g,DEFAULT_AVATAR_IMG:v,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:I,BMI_LEVELS:["underweight","healthy","overweight","obese_level_1","obese_level_2"],BMR_LEVELS:["low","normal","high"],CORAL_TOKEN_COOKE:"coral_together_user_token",HEALTH_TOOL_TYPE:L,LOCALE_HEALTH_TOOLS:S,BEARER_TOKEN_COOKIE:R,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:w,Z_INDEX:f,BmrActiveLevels:[{value:"sedentary",icon:"bmr-sedentary",name:"bmr.activeLevel.sedentary",description:"bmr.activeLevel.sedentary.description"},{value:"lightly-active",icon:"bmr-light",name:"bmr.activeLevel.lightlyActive",description:"bmr.activeLevel.lightlyActive.description"},{value:"moderately-active",icon:"bmr-moderately",name:"bmr.activeLevel.moderatelyActive",description:"bmr.activeLevel.moderatelyActive.description"},{value:"intensely-active",icon:"bmr-intensively",name:"bmr.activeLevel.intenselyActive",description:"bmr.activeLevel.intenselyActive.description"},{value:"extremely-active",icon:"bmr-extremely",name:"bmr.activeLevel.extremelyActive",description:"bmr.activeLevel.extremelyActive.description"}],LEAD_CAMPAIGN_CODE:"lmoct7xfr5sv4fv",LEAD_TOKEN_COOKIE:y,GA_TOKEN_COOKIE:"_ga",GOOGLE_CALENDAR_AUTH_CLIENT_ID:"1038242799566-esoq4ij201ve5qfp266nbca44scpo3c6.apps.googleusercontent.com",FIND_CARE_IFRAME_URL:"https://www.appsheet.com/start/4ba34ebe-3cb6-4c16-8dd4-d074025a5bb6#appName=DependentDropdowns-2711103&group=%5B%5D&page=card&sort=%5B%5D&table=Menu&view=Menu",REPORT_REASON_MAP:D,MB_SOCIAL_LINKS:{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/marry.baby.vn",INSTAGRAM:"https://www.instagram.com/marrybaby.vn/",TWITTER:"",YOUTUBE:"https://www.youtube.com/channel/UCeZybTkY1VzJ3N7LvPGdKbg",ZALO:"http://zalo.me/806483414530291942"},INTERNAL_ROLES:["admin","moderator","local-admin"],EXTERNAL_ROLES:["ambassador","expert","sponsor","guide","influencer"],INTERNAL_PROFILE_ROLES:["moderator","local-admin"],EXTERNAL_PROFILE_ROLES:["expert","ambassador","sponsor"],RoleDataMap:{moderator:{text:"Moderator",fid:"cardAuthor.moderator",background:"#fe921d"},admin:{text:"Admin",fid:"cardAuthor.admin",background:"#2b62cd"},"local-admin":{text:"Local admin",fid:"cardAuthor.localAdmin",background:"#2b62cd"},expert:{text:"Expert",fid:"cardAuthor.expert",background:"#ff6f4d"},sponsor:{text:"Sponsor",fid:"cardAuthor.sponsor",background:"#00c7e6"},ambassador:{text:"Ambassador",fid:"cardAuthor.ambassador",background:"#00CB8A"}},MAX_IMAGE_UPLOADS:20,LOCALISED_SLUGS:P});const N={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},C={"vi-VN":"marrybaby.vn"},x=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",M=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;return`https://${t?C[e]:N[e]}`},U=e=>{const t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},k=(e,t,o,r)=>{let a="";o&&(a=Object.keys(o).map((e=>e+"="+o[e])).join("&"));const{togetherBaseApiUrl:i=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};let l=n.default(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:M(String(t._locale))}:{}),t));l+=`${l.includes("?")?"&":"?"}${a}`;return(r||i)+"api/v1/"+U(l)},B=e=>((null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e),H=(t,o,r,a=!1)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,i,l,s;try{const e=yield fetch(a?t:(s=t,encodeURI(s).replace(/%5B/g,"[").replace(/%5D/g,"]")),Object.assign(Object.assign({method:o},B(r)),{headers:Object.assign({},null==r?void 0:r.headers)})).then((e=>e.json()));if(e)return e}catch(o){return console.log(o),console.log({url:t,status:null===(e=null==o?void 0:o.response)||void 0===e?void 0:e.status,statusText:null===(i=null==o?void 0:o.response)||void 0===i?void 0:i.statusText}),(null===(l=null==o?void 0:o.response)||void 0===l?void 0:l.data)||null}return null})),F=(o,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=b.parse(i||""),l=e[R]||t.getCookie(R);if(l&&l.length){const e=yield fetch(o,Object.assign(Object.assign({method:r},B(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null}));function j(e,t,o){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+o+"$2"):e+a+t+"="+o}const K=(e,t,o,r)=>o&&t?`${o}-${t}`:`${s.default(e||"",{lower:!0,locale:r||x})}-${t}`;exports.ADMIN_PATHS={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},exports.BEARER_TOKEN_COOKIE=R,exports.CARE_PATHS={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},exports.DEFAULT_AVATAR_IMG=v,exports.DEFAULT_IMG=I,exports.DISCOVER_PATHS={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},exports.DUE_DATE_FORMAT=g,exports.DefaultComponentGlobalContextData=O,exports.HEALTH_TOOL_TYPE=L,exports.LEAD_TOKEN_COOKIE=y,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=A,exports.REPORT_REASON_MAP=D,exports.TogetherComponentGlobalContext=h,exports.TogetherComponentGlobalContextProvider=({locale:e="vi-VN",children:t,userInfo:o,router:r,env:i={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:l=(e=>e),pushNotifications:s=(()=>!1),formatMessage:n})=>{const[u,c]=a.useState();return exports.GlobalData={userInfo:o,locale:e,togetherUserId:u,router:r,env:i},a.useEffect((()=>{(null==o?void 0:o.id)&&F(k(A.PROFILE,{_locale:e}),"GET").then((e=>{var t;c(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)}))}),[null==o?void 0:o.id]),_.default.createElement(h.Provider,{value:{data:{userInfo:o,locale:e,togetherUserId:u,router:r,env:i},action:{pushNotifications:s,sanitizeFunction:l},formatMessage:n}},t)},exports.Z_INDEX=f,exports.callApi=H,exports.callApiWithAdminAuth=(o,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=b.parse(i||""),l=e[w]||t.getCookie(w);if(l&&l.length){const e=yield fetch(o,Object.assign(Object.assign({method:r},B(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null})),exports.callApiWithAuth=F,exports.callApiWithOptionalAuth=(o,r="GET",a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,l,s,n,_,u;try{const n="string"==typeof o?o:o.url,_="string"==typeof o?o:o.backupUrl,u=b.parse(i||""),c=u[R]||t.getCookie(R);if(!c||!c.length)return H(_||n,r,a);try{const t=yield fetch(n,Object.assign(Object.assign({method:r},B(a)),{headers:Object.assign({Authorization:"Bearer "+c},null==a?void 0:a.headers)})).then((e=>e.json()));if(null===(e=null==t?void 0:t.messages)||void 0===e?void 0:e.find((e=>"Unauthenticated"===(null==e?void 0:e.toLowerCase()))))return H(_||n,r,a);if(t)return t}catch(e){return console.log({status:null===(l=null==e?void 0:e.response)||void 0===l?void 0:l.status,statusText:null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.statusText}),H(_||n,r,a)}}catch(e){return console.log({status:null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status,statusText:null===(_=null==e?void 0:e.response)||void 0===_?void 0:_.statusText}),(null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.data)||null}return null})),exports.constants=G,exports.cookie=b,exports.domainLocales=N,exports.domainLocalesMarryBaby=C,exports.getApiPath=k,exports.getCareDoctorUrl=({name:e,id:t,locale:o})=>{var r;return`/care/${null===(r=P[o||"vi-VN"])||void 0===r?void 0:r.DOCTOR}/${K(e,t)}`},exports.getCareHospitalUrl=({name:e,id:t,slug:o,locale:r})=>{var a;return`/care/${null===(a=P[r||"vi-VN"])||void 0===a?void 0:a.HOSPITAL}/${K(e,t,o)}`},exports.getCarePath=(e,t)=>{const{careBaseApiUrl:o=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(o||"https://service-health-care.hellohealthgroup.com/")+U(n.default(e,Object.assign({},t)))},exports.getCurrentBaseUrl=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;if("undefined"!=typeof window)return window.location.origin;const o="staging"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return"development"===process.env.NEXT_PUBLIC_DEPLOY_ENV?"http://localhost:3000":`https://${o?t?"fe.":"discover.":t?"www.":""}${N[e]}`},exports.getDiscoverApiPath=(e,t,o)=>{const{discoverBaseApiUrl:r="",discoverBaseProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(!i.isProduction&&o?a:r)+"wp-json/api/"+U(n.default(e,Object.assign({},t)))},exports.getMarryBabyApiPath=(e,t,o)=>{const{marryBabyApiUrl:r="",marryBabyProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(o&&!i.isProduction?a:r)+"wp-json/api/"+U(n.default(e,Object.assign({},t)))},exports.getPremiumApiPath=(e,t)=>{const{premiumBaseApiUrl:o=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(o||"https://premium-content-stag.hellohealthgroup.com/")+U(n.default(e,Object.assign({},t)))},exports.getSsoApiPath=(e,t)=>{const{publicSSO:o=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(o||"https://staging-id.hellobacsi.com/")+"api/"+U(n.default(e,Object.assign({},t)))},exports.getUrlToSignUp=(e,t,o="/community")=>{const r=e||("undefined"!=typeof window?window.location.href:"/");let a="undefined"!=typeof window?window.location.origin:"";a||e&&(e.startsWith("http://")||e.startsWith("https://"))&&(a=e.split("/").slice(0,3).join("/"));return((e,t)=>{const{publicSSO:o}=exports.GlobalData.env,r=e||window.location.href;return t&&Object.keys(t).map((e=>{j(r,e,t[e])})),j(r,"source","communities"),o?`${o}?returnUrl=${encodeURIComponent(r.toString())}`:r})(`${a}${o}/on-boarding?return=${encodeURIComponent(r)}`,t)},exports.getWebsiteUrlApi=M,exports.locale=x;
1
+ "use strict";var e=require("./tslib.es6-0151ae97.js"),t=require("./cookieHelper-1d47a774.js"),o=require("slugify");require("./index-9e5cea4a.js");var r=require("string-format"),a=require("react"),i=require("./isProduction-81b72bf2.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=l(o),n=l(r),_=l(a),u=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var o={},r=(t||{}).decode||E,a=0;for(;a<e.length;){var i=e.indexOf("=",a);if(-1===i)break;var l=e.indexOf(";",a);if(-1===l)l=e.length;else if(l<i){a=e.lastIndexOf(";",i-1)+1;continue}var s=e.slice(a,i).trim();if(void 0===o[s]){var n=e.slice(i+1,l).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1)),o[s]=m(n,r)}a=l+1}return o},c=function(e,t,o){var r=o||{},a=r.encode||T;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!d.test(e))throw new TypeError("argument name is invalid");var i=a(t);if(i&&!d.test(i))throw new TypeError("argument val is invalid");var l=e+"="+i;if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(s)}if(r.domain){if(!d.test(r.domain))throw new TypeError("option domain is invalid");l+="; Domain="+r.domain}if(r.path){if(!d.test(r.path))throw new TypeError("option path is invalid");l+="; Path="+r.path}if(r.expires){var n=r.expires;if(!function(e){return"[object Date]"===p.call(e)||e instanceof Date}(n)||isNaN(n.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+n.toUTCString()}r.httpOnly&&(l+="; HttpOnly");r.secure&&(l+="; Secure");if(r.priority){switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},p=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function E(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function T(e){return encodeURIComponent(e)}function m(e,t){try{return t(e)}catch(t){return e}}var b={parse:u,serialize:c};const A={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",USER:{DETAIL:"profile/user/detail?website_url={website_url}&user_id={id}",COUNT_TABS:"profile/user/counting?website_url={website_url}&user_id={id}&total_post={post}&total_comment={comment}&total_community={community}&total_reply={reply}&total_question={question}",LIST_POST:"profile/user/posts?website_url={website_url}&user_id={id}&is_anonymous={isAnonymous}&paging=none",LIST_QUESTION_NEED_REPLY:"questions/no-reply?website_url={website_url}",LIST_QUESTION:"question/{id}?website_url={website_url}&is_reply={isReply}&is_question={isQuestion}&is_ignore={isIgnore}&group_by={groupBy}",SKIP_QUESTION:"questions/ignore?website_url={website_url}&question_id={id}",LIST_ANSWERS:"replied/{id}?website_url={website_url}&paging=1&items_per_page={pageSize}"},HEALTH_TOOL:{CREATE:"health-profile/{type}/create?website_url={website_url}",GET_STATUS:"health-profile/get-status-for-user?website_url={website_url}"}},O={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},h=a.createContext({data:O,action:{pushNotifications:e=>e,sanitizeFunction:e=>e},formatMessage:()=>null});exports.GlobalData=O;const g="DD/MM/YYYY",v="/images/avatar.jpg",I="/images/default-image.jpg",L={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR",BGC:"BGC"},S={"id-ID":{"kalkulator-bmi":L.BMI,"kebutuhan-kalori":L.BMR,"kalkulator-hari-perkiraan-lahir":L.DUE_DATE,"kalkulator-masa-subur-2":L.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":L.PWG,"kalkulator-detak-jantung-saat-olahraga":L.THR},"ms-MY":{"kalkulator-bmi":L.BMI,"kalkulator-bmr":L.BMR,"kalkulator-tarikh-bersalin":L.DUE_DATE,"kalkulator-kesuburan":L.OVULATION,"kalkulator-tambah-berat-badan-hamil":L.PWG,"target-heart-rate-calculator":L.THR},"vi-VN":{"cach-tinh-chi-so-bmi":L.BMI,"tinh-chi-so-bmr":L.BMR,"cong-cu-tinh-ngay-du-sinh":L.DUE_DATE,"tinh-ngay-rung-trung":L.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":L.PWG,"cong-cu-do-nhip-tim":L.THR},"zh-TW":{"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"due-date-calculator":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnancy-weight-gain-calculator":L.PWG,"target-heart-rate-calculator":L.THR},"en-PH":{"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"due-date-calculator":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnancy-weight-gain-calculator":L.PWG,"target-heart-rate-calculator":L.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":L.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":L.BMR,"เครื่องมือคำนวณกำหนดคลอด":L.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":L.OVULATION,"เครื่องคำนวณน้ำหนักตัว":L.PWG,"เครื่องวัดอัตราการเต้น":L.THR},"hi-IN":{"bmi-calculator-en":L.BMI,"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"delivery-date-calculator":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnancy-weight-gain-calculator":L.PWG,"target-heart-rate-calculator":L.THR},"km-KH":{"គណនា-bmi":L.BMI,"គណនា-bmr":L.BMR,"គណនាថ្ងៃសម្រាលកូន":L.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":L.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":L.PWG,"គណនារកចង្វាក់បេះដូងល្អ":L.THR},"my-MM":{"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"due-date-calendar":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnaancy-weight-calculator":L.PWG,"target-heartrate":L.THR,"pregnancy-weight-calculator":L.PWG,"target-heart-rate":L.THR}},R="hhg_user_token",w="together_admin_token",y={adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},f="hhg-id",D={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},P={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}};var G=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DUE_DATE_FORMAT:g,DEFAULT_AVATAR_IMG:v,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:I,BMI_LEVELS:["underweight","healthy","overweight","obese_level_1","obese_level_2"],BMR_LEVELS:["low","normal","high"],CORAL_TOKEN_COOKE:"coral_together_user_token",HEALTH_TOOL_TYPE:L,LOCALE_HEALTH_TOOLS:S,BEARER_TOKEN_COOKIE:R,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:w,Z_INDEX:y,BmrActiveLevels:[{value:"sedentary",icon:"bmr-sedentary",name:"bmr.activeLevel.sedentary",description:"bmr.activeLevel.sedentary.description"},{value:"lightly-active",icon:"bmr-light",name:"bmr.activeLevel.lightlyActive",description:"bmr.activeLevel.lightlyActive.description"},{value:"moderately-active",icon:"bmr-moderately",name:"bmr.activeLevel.moderatelyActive",description:"bmr.activeLevel.moderatelyActive.description"},{value:"intensely-active",icon:"bmr-intensively",name:"bmr.activeLevel.intenselyActive",description:"bmr.activeLevel.intenselyActive.description"},{value:"extremely-active",icon:"bmr-extremely",name:"bmr.activeLevel.extremelyActive",description:"bmr.activeLevel.extremelyActive.description"}],LEAD_CAMPAIGN_CODE:"lmoct7xfr5sv4fv",LEAD_TOKEN_COOKIE:f,GA_TOKEN_COOKIE:"_ga",GOOGLE_CALENDAR_AUTH_CLIENT_ID:"1038242799566-esoq4ij201ve5qfp266nbca44scpo3c6.apps.googleusercontent.com",FIND_CARE_IFRAME_URL:"https://www.appsheet.com/start/4ba34ebe-3cb6-4c16-8dd4-d074025a5bb6#appName=DependentDropdowns-2711103&group=%5B%5D&page=card&sort=%5B%5D&table=Menu&view=Menu",REPORT_REASON_MAP:D,MB_SOCIAL_LINKS:{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/marry.baby.vn",INSTAGRAM:"https://www.instagram.com/marrybaby.vn/",TWITTER:"",YOUTUBE:"https://www.youtube.com/channel/UCeZybTkY1VzJ3N7LvPGdKbg",ZALO:"http://zalo.me/806483414530291942"},INTERNAL_ROLES:["admin","moderator","local-admin"],EXTERNAL_ROLES:["ambassador","expert","sponsor","guide","influencer"],INTERNAL_PROFILE_ROLES:["moderator","local-admin"],EXTERNAL_PROFILE_ROLES:["expert","ambassador","sponsor"],RoleDataMap:{moderator:{text:"Moderator",fid:"cardAuthor.moderator",background:"#fe921d"},admin:{text:"Admin",fid:"cardAuthor.admin",background:"#2b62cd"},"local-admin":{text:"Local admin",fid:"cardAuthor.localAdmin",background:"#2b62cd"},expert:{text:"Expert",fid:"cardAuthor.expert",background:"#ff6f4d"},sponsor:{text:"Sponsor",fid:"cardAuthor.sponsor",background:"#00c7e6"},ambassador:{text:"Ambassador",fid:"cardAuthor.ambassador",background:"#00CB8A"}},MAX_IMAGE_UPLOADS:20,LOCALISED_SLUGS:P});const N={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},C={"vi-VN":"marrybaby.vn"},x=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",M=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;return`https://${t?C[e]:N[e]}`},U=e=>{const t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},k=(e,t,o,r)=>{let a="";o&&(a=Object.keys(o).map((e=>e+"="+o[e])).join("&"));const{togetherBaseApiUrl:i=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};let l=n.default(e,Object.assign(Object.assign({},(null==t?void 0:t._locale)?{website_url:M(String(t._locale))}:{}),t));l+=`${l.includes("?")?"&":"?"}${a}`;return(r||i)+"api/v1/"+U(l)},B=e=>((null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e),H=(t,o,r,a=!1)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,i,l,s;try{const e=yield fetch(a?t:(s=t,encodeURI(s).replace(/%5B/g,"[").replace(/%5D/g,"]")),Object.assign(Object.assign({method:o},B(r)),{headers:Object.assign({},null==r?void 0:r.headers)})).then((e=>e.json()));if(e)return e}catch(o){return console.log(o),console.log({url:t,status:null===(e=null==o?void 0:o.response)||void 0===e?void 0:e.status,statusText:null===(i=null==o?void 0:o.response)||void 0===i?void 0:i.statusText}),(null===(l=null==o?void 0:o.response)||void 0===l?void 0:l.data)||null}return null})),F=(o,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=b.parse(i||""),l=e[R]||t.getCookie(R);if(l&&l.length){const e=yield fetch(o,Object.assign(Object.assign({method:r},B(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null}));function j(e,t,o){const r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(r)?e.replace(r,"$1"+t+"="+o+"$2"):e+a+t+"="+o}const K=(e,t,o,r)=>o&&t?`${o}-${t}`:`${s.default(e||"",{lower:!0,locale:r||x})}-${t}`;exports.ADMIN_PATHS={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},exports.BEARER_TOKEN_COOKIE=R,exports.CARE_PATHS={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},exports.DEFAULT_AVATAR_IMG=v,exports.DEFAULT_IMG=I,exports.DISCOVER_PATHS={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},exports.DUE_DATE_FORMAT=g,exports.DefaultComponentGlobalContextData=O,exports.HEALTH_TOOL_TYPE=L,exports.LEAD_TOKEN_COOKIE=f,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=A,exports.REPORT_REASON_MAP=D,exports.TogetherComponentGlobalContext=h,exports.TogetherComponentGlobalContextProvider=({locale:e="vi-VN",children:t,userInfo:o,router:r,env:i={isMarryBaby:!1,togetherBasePath:"/community"},sanitizeFunction:l=(e=>e),pushNotifications:s=(()=>!1),formatMessage:n})=>{const[u,c]=a.useState();return exports.GlobalData={userInfo:o,locale:e,togetherUserId:u,router:r,env:i},a.useEffect((()=>{(null==o?void 0:o.id)&&F(k(A.PROFILE,{_locale:e}),"GET").then((e=>{var t;c(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)}))}),[null==o?void 0:o.id]),_.default.createElement(h.Provider,{value:{data:{userInfo:o,locale:e,togetherUserId:u,router:r,env:i},action:{pushNotifications:s,sanitizeFunction:l},formatMessage:n}},t)},exports.Z_INDEX=y,exports.callApi=H,exports.callApiWithAdminAuth=(o,r,a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){try{const e=b.parse(i||""),l=e[w]||t.getCookie(w);if(l&&l.length){const e=yield fetch(o,Object.assign(Object.assign({method:r},B(a)),{headers:Object.assign({Authorization:"Bearer "+l},null==a?void 0:a.headers)})).then((e=>e.json()));if(e)return e}}catch(e){return null}return null})),exports.callApiWithAuth=F,exports.callApiWithOptionalAuth=(o,r="GET",a,i)=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,l,s,n,_,u;try{const n="string"==typeof o?o:o.url,_="string"==typeof o?o:o.backupUrl,u=b.parse(i||""),c=u[R]||t.getCookie(R);if(!c||!c.length)return H(_||n,r,a);try{const t=yield fetch(n,Object.assign(Object.assign({method:r},B(a)),{headers:Object.assign({Authorization:"Bearer "+c},null==a?void 0:a.headers)})).then((e=>e.json()));if(null===(e=null==t?void 0:t.messages)||void 0===e?void 0:e.find((e=>"Unauthenticated"===(null==e?void 0:e.toLowerCase()))))return H(_||n,r,a);if(t)return t}catch(e){return console.log({status:null===(l=null==e?void 0:e.response)||void 0===l?void 0:l.status,statusText:null===(s=null==e?void 0:e.response)||void 0===s?void 0:s.statusText}),H(_||n,r,a)}}catch(e){return console.log({status:null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status,statusText:null===(_=null==e?void 0:e.response)||void 0===_?void 0:_.statusText}),(null===(u=null==e?void 0:e.response)||void 0===u?void 0:u.data)||null}return null})),exports.constants=G,exports.cookie=b,exports.domainLocales=N,exports.domainLocalesMarryBaby=C,exports.getApiPath=k,exports.getCareDoctorUrl=({name:e,id:t,locale:o})=>{var r;return`/care/${null===(r=P[o||"vi-VN"])||void 0===r?void 0:r.DOCTOR}/${K(e,t)}`},exports.getCareHospitalUrl=({name:e,id:t,slug:o,locale:r})=>{var a;return`/care/${null===(a=P[r||"vi-VN"])||void 0===a?void 0:a.HOSPITAL}/${K(e,t,o)}`},exports.getCarePath=(e,t)=>{const{careBaseApiUrl:o=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(o||"https://service-health-care.hellohealthgroup.com/")+U(n.default(e,Object.assign({},t)))},exports.getCurrentBaseUrl=e=>{const{env:{isMarryBaby:t}}=exports.GlobalData;if("undefined"!=typeof window)return window.location.origin;const o="staging"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return"development"===process.env.NEXT_PUBLIC_DEPLOY_ENV?"http://localhost:3000":`https://${o?t?"fe.":"discover.":t?"www.":""}${N[e]}`},exports.getDiscoverApiPath=(e,t,o)=>{const{discoverBaseApiUrl:r="",discoverBaseProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(!i.isProduction&&o?a:r)+"wp-json/api/"+U(n.default(e,Object.assign({},t)))},exports.getMarryBabyApiPath=(e,t,o)=>{const{marryBabyApiUrl:r="",marryBabyProdApiUrl:a=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(o&&!i.isProduction?a:r)+"wp-json/api/"+U(n.default(e,Object.assign({},t)))},exports.getPremiumApiPath=(e,t)=>{const{premiumBaseApiUrl:o=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(o||"https://premium-content-stag.hellohealthgroup.com/")+U(n.default(e,Object.assign({},t)))},exports.getSsoApiPath=(e,t)=>{const{publicSSO:o=""}=(null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{};return(o||"https://staging-id.hellobacsi.com/")+"api/"+U(n.default(e,Object.assign({},t)))},exports.getUrlToSignUp=(e,t,o="/community")=>{const r=e||("undefined"!=typeof window?window.location.href:"/");let a="undefined"!=typeof window?window.location.origin:"";a||e&&(e.startsWith("http://")||e.startsWith("https://"))&&(a=e.split("/").slice(0,3).join("/"));return((e,t)=>{const{publicSSO:o}=exports.GlobalData.env,r=e||window.location.href;return t&&Object.keys(t).map((e=>{j(r,e,t[e])})),j(r,"source","communities"),o?`${o}?returnUrl=${encodeURIComponent(r.toString())}`:r})(`${a}${o}/on-boarding?return=${encodeURIComponent(r)}`,t)},exports.getWebsiteUrlApi=M,exports.locale=x;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-6b4af3f9.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-9b6fa1ba.js");require("@mantine/dates"),require("./index-c4cb718f.js");var n=require("./Subot-62ca50a6.js");require("./index-62ea1a89.js");var r=require("./index-9b59f258.js"),i=require("./theme-4724d52c.js"),o=require("./useTranslations-9b6f169b.js"),c=require("@mantine/hooks"),s=require("styled-components"),d=require("./utils-001f8ba1.js"),u=require("./index-d724a4d8.js");require("./translationsContext-c8cf35dc.js"),require("string-format");var m=require("./index.styles-6c37d702.js");require("./constants-d6fc50ec.js"),require("./utils-191b2951.js"),require("./index.styled-05b466a6.js"),require("./index-3345841e.js"),require("./utils-7fc68adc.js");var C=require("./index-9d70b0f9.js"),f=require("@mantine/form"),p=require("dayjs"),g=require("dayjs/plugin/customParseFormat"),h=require("./index-ead7cd5a.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("@mantine/carousel"),require("classnames"),require("date-fns/locale"),require("./isProduction-46480e86.js"),require("./animation-58e0efd9.js"),require("react-keyed-flatten-children"),require("./cookieHelper-e8568ab0.js"),require("slugify");var E=b(t),x=b(s),v=b(p),y=b(g);const T=x.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-0151ae97.js"),t=require("react"),a=require("@mantine/core"),l=require("./index-0a530be7.js");require("@mantine/dates"),require("./index-9e5cea4a.js");var n=require("./Subot-e4dc9853.js");require("./index-98bb9bd3.js");var r=require("./index-d9b9827c.js"),i=require("./theme-568c5c71.js"),o=require("./useTranslations-b7e3bbe6.js"),c=require("@mantine/hooks"),s=require("styled-components"),d=require("./utils-dbb28536.js"),u=require("./index-68a90371.js");require("./translationsContext-4d2756ea.js"),require("string-format");var m=require("./index.styles-f0c0a48c.js");require("./constants-f9687cf0.js"),require("./utils-7627e021.js"),require("./index.styled-58256ebd.js"),require("./index-7318d380.js"),require("./utils-c2a4f934.js");var C=require("./index-c75cc530.js"),f=require("@mantine/form"),p=require("dayjs"),g=require("dayjs/plugin/customParseFormat"),h=require("./index-e5deef91.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("@mantine/carousel"),require("classnames"),require("date-fns/locale"),require("./isProduction-81b72bf2.js"),require("./animation-c4266352.js"),require("react-keyed-flatten-children"),require("./cookieHelper-1d47a774.js"),require("slugify");var E=b(t),x=b(s),v=b(p),y=b(g);const T=x.default.div`
2
2
  position: relative;
3
3
  padding: 16px;
4
4
  min-height: 110px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hhgtech/hhg-components",
3
- "version": "1.28.48",
3
+ "version": "1.28.52",
4
4
  "main": "build/index.js",
5
5
  "module": "build/esm/index.js",
6
6
  "files": [
@@ -1 +0,0 @@
1
- import{_ as a}from"./tslib.es6-4278f71d.js";import t from"react";var e="P03rcnV",d="LsvykAk",o="S2kaD9B",c="fAwTdkg",i="ITgol3T",r="cD-HMFz",n="oAG2-aJ",s="Y9fGCaj";const l=l=>{var{size:C,color:m="primary",theme:u="helloSites",isDisabled:h,isBlock:p,title:P,className:g,onClick:k,icon:v,iconPosition:E="left",children:y,isLoading:N=!1,loadingText:b,dataEventCategory:f,dataEventAction:L,dataEventLabel:B,dataProductChannel:w,dataProductSku:x,dataProductBrand:A,dataProductName:T,dataProductPrice:z,dataProductCategory:D,dataProductPosition:S,type:j}=l,F=a(l,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","iconPosition","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","type"]);const M={"data-event-category":f,"data-event-action":L,"data-event-label":B,"data-product-channel":w,"data-product-sku":x,"data-product-brand":A,"data-product-name":T,"data-product-price":z,"data-product-category":D,"data-product-position":S},G=t.createElement("span",{className:d},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("circle",{className:s,cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),t.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},t.createElement("mask",{id:"path-1-inside-1",fill:"white"},t.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),t.createElement("path",{className:n,d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),W=(v||N)&&t.createElement("span",{className:r},N?G:v," ");return t.createElement("button",Object.assign({},M,{className:`${i} ${g||""}`,"data-size":C,"data-color":m,"data-block":p,"data-has-icon":!!v||void 0,"data-theme":u,disabled:h,onClick:a=>{!N&&!h&&k&&k(a)},title:P,"data-is-loading":N,type:j},F),t.createElement("span",{className:c},"left"===E&&W,y&&t.createElement("span",{className:o},N&&b||y),"right"===E&&W))};export{l as B};
@@ -1 +0,0 @@
1
- import{_ as e}from"./tslib.es6-4278f71d.js";import t from"react";import{S as s,a}from"./index.styled-704434bb.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};