@hhgtech/hhg-components 1.26.9 → 1.26.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/mantine/breadcrumbs/item.d.ts +1 -1
  5. package/build/components.js +1 -1
  6. package/build/constants.js +1 -1
  7. package/build/{core-bce57a3f.js → core-da0e7208.js} +1 -1
  8. package/build/{dataTransform-2e3216c1.js → dataTransform-6dabd7aa.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +6 -6
  11. package/build/esm/cache.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components.js +1 -1
  14. package/build/esm/constants.js +1 -1
  15. package/build/esm/{core-eaca75d2.js → core-5223901d.js} +1 -1
  16. package/build/esm/{dataTransform-099866f1.js → dataTransform-cc7ae538.js} +1 -1
  17. package/build/esm/ecom.js +1 -1
  18. package/build/esm/footer.js +1 -1
  19. package/build/esm/gAssets.js +1 -1
  20. package/build/esm/getDynamicHealthTool-70fd643e.js +1 -0
  21. package/build/esm/{getSocialList-2f0bba5d.js → getSocialList-9c4f7eca.js} +1 -1
  22. package/build/esm/hooks.js +1 -1
  23. package/build/esm/i18n.js +1 -1
  24. package/build/esm/{index-4c1722c9.js → index-0bf72e18.js} +1 -1
  25. package/build/esm/{index-5fd031d8.js → index-13498149.js} +1 -1
  26. package/build/esm/{index-5ff9487f.js → index-1582057b.js} +1 -1
  27. package/build/esm/{index-ad31ca14.js → index-1cb79555.js} +1 -1
  28. package/build/esm/{index-da540258.js → index-27cfb186.js} +1 -1
  29. package/build/esm/{index-e86baa73.js → index-2f13e528.js} +1 -1
  30. package/build/esm/{index-9d8d196e.js → index-37560f75.js} +1 -1
  31. package/build/esm/{index-773f005a.js → index-38b0f96d.js} +2 -2
  32. package/build/esm/{index-c80835a2.js → index-3cdd76e8.js} +1 -1
  33. package/build/esm/{index-1433f24d.js → index-450ddfb1.js} +1 -1
  34. package/build/esm/{index-e2c1d836.js → index-4d3a9137.js} +1 -1
  35. package/build/esm/index-67084a87.js +151 -0
  36. package/build/esm/index-6f179a12.js +1 -0
  37. package/build/esm/{index-d685c854.js → index-735ebdc1.js} +1 -1
  38. package/build/esm/{index-714f7c99.js → index-9e935134.js} +1 -1
  39. package/build/esm/{index-0bd8f75a.js → index-9eed57d3.js} +1 -1
  40. package/build/esm/{index-51e350e5.js → index-a4b72105.js} +1 -1
  41. package/build/esm/{index-c6035781.js → index-a9692f1b.js} +1 -1
  42. package/build/esm/{index-84827b34.js → index-b98c5458.js} +1 -1
  43. package/build/esm/{index-372b593f.js → index-c84d03c2.js} +1 -1
  44. package/build/esm/{index-22caf7f4.js → index-ccd4242c.js} +1 -1
  45. package/build/esm/{index-0823a58a.js → index-dbb51364.js} +1 -1
  46. package/build/esm/{index-b3bac285.js → index-e7e79527.js} +1 -1
  47. package/build/esm/index.css +1 -1
  48. package/build/esm/index.js +1 -1
  49. package/build/esm/{index.styled-fe007e9a.js → index.styled-49a9f09c.js} +1 -1
  50. package/build/esm/{index.styled-7761c40a.js → index.styled-a1a70192.js} +1 -1
  51. package/build/esm/{index.styled-474cfb0b.js → index.styled-b5fdf388.js} +1 -1
  52. package/build/esm/{index.styled-8fb8e9b8.js → index.styled-f6a2270f.js} +6 -6
  53. package/build/esm/{index.styled-8556d345.js → index.styled-fc0af758.js} +1 -1
  54. package/build/esm/lead.js +1 -1
  55. package/build/esm/mantine.js +1 -1
  56. package/build/esm/misc.js +1 -1
  57. package/build/esm/navigation.js +1 -1
  58. package/build/esm/onboarding.js +1 -1
  59. package/build/esm/pwg.js +5 -5
  60. package/build/esm/{routing-05aee8b0.js → routing-0a281b0f.js} +1 -1
  61. package/build/esm/{screenSizeContext-afe24f18.js → screenSizeContext-2f42d159.js} +3 -3
  62. package/build/esm/together.js +1 -1
  63. package/build/esm/{translationsProvider-3c6be0a3.js → translationsProvider-17551e06.js} +1 -1
  64. package/build/esm/{types-a26ed60e.js → types-5167d46b.js} +3 -3
  65. package/build/esm/{types-2e3179ac.js → types-a2c8e457.js} +1 -1
  66. package/build/esm/types.js +1 -1
  67. package/build/esm/{useHealthToolCache-9a837339.js → useHealthToolCache-6ede816c.js} +1 -1
  68. package/build/esm/{useRafState-df251936.js → useRafState-e37089ea.js} +1 -1
  69. package/build/esm/useTranslations-b5fe8278.js +1 -0
  70. package/build/esm/{utils-f05931b6.js → utils-3ca577d3.js} +1 -1
  71. package/build/esm/vaccination.js +1 -1
  72. package/build/footer.js +1 -1
  73. package/build/gAssets.js +1 -1
  74. package/build/{getDynamicHealthTool-c32d21e9.js → getDynamicHealthTool-4dc0d840.js} +1 -1
  75. package/build/{getSocialList-c7d47760.js → getSocialList-768413a2.js} +1 -1
  76. package/build/hooks.js +1 -1
  77. package/build/i18n.js +1 -1
  78. package/build/index-041229d0.js +151 -0
  79. package/build/{index-43d4148a.js → index-0729ed0d.js} +1 -1
  80. package/build/{index-162a3187.js → index-15c7a577.js} +1 -1
  81. package/build/{index-c831afb1.js → index-1a55d623.js} +1 -1
  82. package/build/{index-aa38a545.js → index-202dd169.js} +1 -1
  83. package/build/{index-4488afbb.js → index-2520a8c9.js} +1 -1
  84. package/build/index-386f5db2.js +1 -0
  85. package/build/{index-2ad56564.js → index-404a3d73.js} +1 -1
  86. package/build/{index-c7e0b905.js → index-43394201.js} +1 -1
  87. package/build/{index-240af476.js → index-4e414134.js} +1 -1
  88. package/build/{index-89ddf392.js → index-6e0d05b1.js} +1 -1
  89. package/build/{index-f79d0367.js → index-73da7c60.js} +1 -1
  90. package/build/{index-9a66bc04.js → index-73f0e97f.js} +1 -1
  91. package/build/{index-dfffbff4.js → index-7d048012.js} +1 -1
  92. package/build/{index-bbb6ca10.js → index-8471cc1e.js} +1 -1
  93. package/build/{index-6879aad8.js → index-858340a9.js} +1 -1
  94. package/build/{index-3cf6c798.js → index-a0cce0ac.js} +1 -1
  95. package/build/{index-9b3628f7.js → index-c0177ee6.js} +1 -1
  96. package/build/{index-5bcb8e18.js → index-dd0c38c9.js} +1 -1
  97. package/build/{index-be75135e.js → index-e53b0c2c.js} +3 -3
  98. package/build/{index-178bcba4.js → index-ebe2ba84.js} +1 -1
  99. package/build/{index-a8828931.js → index-f85f3c11.js} +1 -1
  100. package/build/{index-638f59f0.js → index-fe88e8b3.js} +1 -1
  101. package/build/index.css +1 -1
  102. package/build/index.js +1 -1
  103. package/build/{index.styled-9123dab7.js → index.styled-46ceab59.js} +1 -1
  104. package/build/{index.styled-c95f67be.js → index.styled-53def59c.js} +1 -1
  105. package/build/{index.styled-90363295.js → index.styled-7641af72.js} +3 -3
  106. package/build/{index.styled-1b1f2c69.js → index.styled-9daf18de.js} +1 -1
  107. package/build/{index.styled-c128f3cb.js → index.styled-a4e8a7b7.js} +1 -1
  108. package/build/lead.js +1 -1
  109. package/build/mantine.js +1 -1
  110. package/build/misc.js +1 -1
  111. package/build/navigation.js +1 -1
  112. package/build/onboarding.js +1 -1
  113. package/build/pwg.js +2 -2
  114. package/build/{routing-79e9fce4.js → routing-c3ffb52b.js} +1 -1
  115. package/build/{screenSizeContext-3cd42202.js → screenSizeContext-3943022a.js} +10 -10
  116. package/build/together.js +1 -1
  117. package/build/{translationsProvider-f627001f.js → translationsProvider-c0f248b5.js} +1 -1
  118. package/build/{types-b4c9e644.js → types-338e24c8.js} +23 -23
  119. package/build/{types-026ff49f.js → types-49d8766a.js} +1 -1
  120. package/build/types.js +1 -1
  121. package/build/useHealthToolCache-6becf0d9.js +1 -0
  122. package/build/{useRafState-2139defa.js → useRafState-8831c00f.js} +1 -1
  123. package/build/{useTranslations-21728373.js → useTranslations-20a122aa.js} +1 -1
  124. package/build/{utils-08380dce.js → utils-f7d920e3.js} +12 -12
  125. package/build/vaccination.js +1 -1
  126. package/package.json +1 -1
  127. package/build/esm/getDynamicHealthTool-30f0d9c8.js +0 -1
  128. package/build/esm/index-0fb0e636.js +0 -151
  129. package/build/esm/index-3969abb6.js +0 -1
  130. package/build/esm/useTranslations-c605802e.js +0 -1
  131. package/build/index-08ebf815.js +0 -1
  132. package/build/index-828fea6d.js +0 -151
  133. package/build/useHealthToolCache-5bb0b780.js +0 -1
  134. /package/build/{BMI_BOYS.percentile.monthly-65c1c1b9.js → BMI_BOYS.percentile.monthly-1d9bec4b.js} +0 -0
  135. /package/build/{BMI_BOYS.percentile.weekly-329d55ce.js → BMI_BOYS.percentile.weekly-eb13f2ee.js} +0 -0
  136. /package/build/{BMI_BOYS.percentile.yearly-ba61708b.js → BMI_BOYS.percentile.yearly-e592ff95.js} +0 -0
  137. /package/build/{BMI_BOYS.zscore.monthly-67c47ae8.js → BMI_BOYS.zscore.monthly-0f0268c8.js} +0 -0
  138. /package/build/{BMI_BOYS.zscore.weekly-2c82a17f.js → BMI_BOYS.zscore.weekly-38abbfe4.js} +0 -0
  139. /package/build/{BMI_BOYS.zscore.yearly-2a36a22b.js → BMI_BOYS.zscore.yearly-c93c6148.js} +0 -0
  140. /package/build/{BMI_GIRLS.percentile.monthly-e8d8b043.js → BMI_GIRLS.percentile.monthly-2dba4588.js} +0 -0
  141. /package/build/{BMI_GIRLS.percentile.weekly-0c7be973.js → BMI_GIRLS.percentile.weekly-34eb2bcb.js} +0 -0
  142. /package/build/{BMI_GIRLS.percentile.yearly-e5459d9d.js → BMI_GIRLS.percentile.yearly-40a91872.js} +0 -0
  143. /package/build/{BMI_GIRLS.zscore.monthly-c0930f28.js → BMI_GIRLS.zscore.monthly-189b1c78.js} +0 -0
  144. /package/build/{BMI_GIRLS.zscore.weekly-80b80949.js → BMI_GIRLS.zscore.weekly-61bf6a78.js} +0 -0
  145. /package/build/{BMI_GIRLS.zscore.yearly-1a85ea3f.js → BMI_GIRLS.zscore.yearly-93d81b04.js} +0 -0
  146. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5efd51d6.js → HEAD CIRCUM_BOYS.percentile.monthly-9f5ff1da.js} +0 -0
  147. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-a8e50f1e.js → HEAD CIRCUM_BOYS.percentile.weekly-0aed8ea5.js} +0 -0
  148. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-cb66a281.js → HEAD CIRCUM_BOYS.percentile.yearly-4a12c615.js} +0 -0
  149. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-ba711ef5.js → HEAD CIRCUM_BOYS.zscore.monthly-0e1a43dc.js} +0 -0
  150. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-237af1fc.js → HEAD CIRCUM_BOYS.zscore.weekly-9aee6ba8.js} +0 -0
  151. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d46c43ca.js → HEAD CIRCUM_BOYS.zscore.yearly-71dc165d.js} +0 -0
  152. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-359de71b.js → HEAD CIRCUM_GIRLS.percentile.monthly-4daf6847.js} +0 -0
  153. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-3a7711bb.js → HEAD CIRCUM_GIRLS.percentile.weekly-6ab5a248.js} +0 -0
  154. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-819a5e7f.js → HEAD CIRCUM_GIRLS.percentile.yearly-a1030254.js} +0 -0
  155. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-e8b70d6c.js → HEAD CIRCUM_GIRLS.zscore.monthly-5b2b35ec.js} +0 -0
  156. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-1636719b.js → HEAD CIRCUM_GIRLS.zscore.weekly-087b7618.js} +0 -0
  157. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4a160915.js → HEAD CIRCUM_GIRLS.zscore.yearly-b23d0345.js} +0 -0
  158. /package/build/{HEIGHT_BOYS.percentile.monthly-aae5f4ea.js → HEIGHT_BOYS.percentile.monthly-0c8f1a23.js} +0 -0
  159. /package/build/{HEIGHT_BOYS.percentile.weekly-e07df5bd.js → HEIGHT_BOYS.percentile.weekly-59526a5a.js} +0 -0
  160. /package/build/{HEIGHT_BOYS.percentile.yearly-f0ff2920.js → HEIGHT_BOYS.percentile.yearly-a12064fc.js} +0 -0
  161. /package/build/{HEIGHT_BOYS.zscore.monthly-b33b7eed.js → HEIGHT_BOYS.zscore.monthly-5767c0fc.js} +0 -0
  162. /package/build/{HEIGHT_BOYS.zscore.weekly-6a528e0d.js → HEIGHT_BOYS.zscore.weekly-5f653307.js} +0 -0
  163. /package/build/{HEIGHT_BOYS.zscore.yearly-fc772f54.js → HEIGHT_BOYS.zscore.yearly-23ee7b02.js} +0 -0
  164. /package/build/{HEIGHT_GIRLS.percentile.monthly-77645433.js → HEIGHT_GIRLS.percentile.monthly-7fb519b0.js} +0 -0
  165. /package/build/{HEIGHT_GIRLS.percentile.weekly-81798a05.js → HEIGHT_GIRLS.percentile.weekly-23440637.js} +0 -0
  166. /package/build/{HEIGHT_GIRLS.percentile.yearly-28b9cef1.js → HEIGHT_GIRLS.percentile.yearly-bc0f3575.js} +0 -0
  167. /package/build/{HEIGHT_GIRLS.zscore.monthly-a1e1d91f.js → HEIGHT_GIRLS.zscore.monthly-7e4d2499.js} +0 -0
  168. /package/build/{HEIGHT_GIRLS.zscore.weekly-ece7a9cb.js → HEIGHT_GIRLS.zscore.weekly-b8df04ea.js} +0 -0
  169. /package/build/{HEIGHT_GIRLS.zscore.yearly-dba371f2.js → HEIGHT_GIRLS.zscore.yearly-d035a302.js} +0 -0
  170. /package/build/{Onboarding-1e96a01c.js → Onboarding-c6871f42.js} +0 -0
  171. /package/build/{Visible-8691b9d0.js → Visible-e4921015.js} +0 -0
  172. /package/build/{WEIGHT_BOYS.percentile.monthly-510b5f4d.js → WEIGHT_BOYS.percentile.monthly-c825e4ac.js} +0 -0
  173. /package/build/{WEIGHT_BOYS.percentile.weekly-ea71ac3d.js → WEIGHT_BOYS.percentile.weekly-638577b0.js} +0 -0
  174. /package/build/{WEIGHT_BOYS.percentile.yearly-4a14baaa.js → WEIGHT_BOYS.percentile.yearly-d71bc32e.js} +0 -0
  175. /package/build/{WEIGHT_BOYS.zscore.monthly-fa08281a.js → WEIGHT_BOYS.zscore.monthly-18f6c48d.js} +0 -0
  176. /package/build/{WEIGHT_BOYS.zscore.weekly-87ca83f2.js → WEIGHT_BOYS.zscore.weekly-ffe1e320.js} +0 -0
  177. /package/build/{WEIGHT_BOYS.zscore.yearly-92ec7e52.js → WEIGHT_BOYS.zscore.yearly-cb05887c.js} +0 -0
  178. /package/build/{WEIGHT_GIRLS.percentile.monthly-b64ff9ed.js → WEIGHT_GIRLS.percentile.monthly-814cc8f9.js} +0 -0
  179. /package/build/{WEIGHT_GIRLS.percentile.weekly-6a072ba9.js → WEIGHT_GIRLS.percentile.weekly-b4fa30a6.js} +0 -0
  180. /package/build/{WEIGHT_GIRLS.percentile.yearly-805c942f.js → WEIGHT_GIRLS.percentile.yearly-860948e8.js} +0 -0
  181. /package/build/{WEIGHT_GIRLS.zscore.monthly-8cc45264.js → WEIGHT_GIRLS.zscore.monthly-d279ea6c.js} +0 -0
  182. /package/build/{WEIGHT_GIRLS.zscore.weekly-29458a45.js → WEIGHT_GIRLS.zscore.weekly-8760e218.js} +0 -0
  183. /package/build/{WEIGHT_GIRLS.zscore.yearly-5a12b2bf.js → WEIGHT_GIRLS.zscore.yearly-5fa174e1.js} +0 -0
  184. /package/build/{constants-de607f4d.js → constants-137de225.js} +0 -0
  185. /package/build/{cookieHelper-e3e70eb3.js → cookieHelper-fc31669c.js} +0 -0
  186. /package/build/{dataTransform-0bd1d1d6.js → dataTransform-f9a16eb6.js} +0 -0
  187. /package/build/esm/{BMI_BOYS.percentile.monthly-17a75e3d.js → BMI_BOYS.percentile.monthly-0f58d52d.js} +0 -0
  188. /package/build/esm/{BMI_BOYS.percentile.weekly-58f3c8ec.js → BMI_BOYS.percentile.weekly-d59f4ddc.js} +0 -0
  189. /package/build/esm/{BMI_BOYS.percentile.yearly-34734ac8.js → BMI_BOYS.percentile.yearly-f0c300c8.js} +0 -0
  190. /package/build/esm/{BMI_BOYS.zscore.monthly-f331bfd3.js → BMI_BOYS.zscore.monthly-d1b5da03.js} +0 -0
  191. /package/build/esm/{BMI_BOYS.zscore.weekly-02b6669e.js → BMI_BOYS.zscore.weekly-bad146df.js} +0 -0
  192. /package/build/esm/{BMI_BOYS.zscore.yearly-8b6dbd27.js → BMI_BOYS.zscore.yearly-fbcfd4d4.js} +0 -0
  193. /package/build/esm/{BMI_GIRLS.percentile.monthly-f47a78b1.js → BMI_GIRLS.percentile.monthly-cf59ccab.js} +0 -0
  194. /package/build/esm/{BMI_GIRLS.percentile.weekly-31078b59.js → BMI_GIRLS.percentile.weekly-a5b282c5.js} +0 -0
  195. /package/build/esm/{BMI_GIRLS.percentile.yearly-7914df40.js → BMI_GIRLS.percentile.yearly-614f549f.js} +0 -0
  196. /package/build/esm/{BMI_GIRLS.zscore.monthly-ef2fa80b.js → BMI_GIRLS.zscore.monthly-3d3f52d2.js} +0 -0
  197. /package/build/esm/{BMI_GIRLS.zscore.weekly-fc2859b2.js → BMI_GIRLS.zscore.weekly-91f23625.js} +0 -0
  198. /package/build/esm/{BMI_GIRLS.zscore.yearly-5e8c8ace.js → BMI_GIRLS.zscore.yearly-f78390ca.js} +0 -0
  199. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f0a9b560.js → HEAD CIRCUM_BOYS.percentile.monthly-fb813eb2.js} +0 -0
  200. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c01f614e.js → HEAD CIRCUM_BOYS.percentile.weekly-2f898b92.js} +0 -0
  201. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-03a28a8b.js → HEAD CIRCUM_BOYS.percentile.yearly-33036b78.js} +0 -0
  202. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d5de3e8b.js → HEAD CIRCUM_BOYS.zscore.monthly-d23782da.js} +0 -0
  203. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-a2d3f03f.js → HEAD CIRCUM_BOYS.zscore.weekly-cdb28ef8.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-77410c4d.js → HEAD CIRCUM_BOYS.zscore.yearly-5fda07b4.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-791abaf5.js → HEAD CIRCUM_GIRLS.percentile.monthly-88c5276c.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-de6b914e.js → HEAD CIRCUM_GIRLS.percentile.weekly-56b56ce7.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-391d8f3d.js → HEAD CIRCUM_GIRLS.percentile.yearly-c245be6a.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-22118a38.js → HEAD CIRCUM_GIRLS.zscore.monthly-6edd31c6.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-033fadf5.js → HEAD CIRCUM_GIRLS.zscore.weekly-907cc100.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-1043f92c.js → HEAD CIRCUM_GIRLS.zscore.yearly-e17de0f4.js} +0 -0
  211. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-e30512f8.js → HEIGHT_BOYS.percentile.monthly-be3d4059.js} +0 -0
  212. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-2669b8d2.js → HEIGHT_BOYS.percentile.weekly-20f3931c.js} +0 -0
  213. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9b889de2.js → HEIGHT_BOYS.percentile.yearly-ca69cc63.js} +0 -0
  214. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5f74d2ee.js → HEIGHT_BOYS.zscore.monthly-c982c2c8.js} +0 -0
  215. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b40182eb.js → HEIGHT_BOYS.zscore.weekly-eb6c1583.js} +0 -0
  216. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-0ec11593.js → HEIGHT_BOYS.zscore.yearly-71359421.js} +0 -0
  217. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-95c00017.js → HEIGHT_GIRLS.percentile.monthly-0b59f814.js} +0 -0
  218. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-ff8faa93.js → HEIGHT_GIRLS.percentile.weekly-3056c245.js} +0 -0
  219. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f2c2a09a.js → HEIGHT_GIRLS.percentile.yearly-fe260d00.js} +0 -0
  220. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-b739572b.js → HEIGHT_GIRLS.zscore.monthly-ee073f72.js} +0 -0
  221. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-26e015bb.js → HEIGHT_GIRLS.zscore.weekly-b6a4f509.js} +0 -0
  222. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-45192b6a.js → HEIGHT_GIRLS.zscore.yearly-2be9ebaa.js} +0 -0
  223. /package/build/esm/{Onboarding-10567429.js → Onboarding-05bf223b.js} +0 -0
  224. /package/build/esm/{Visible-49a5c322.js → Visible-e05a3176.js} +0 -0
  225. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-69b48e8f.js → WEIGHT_BOYS.percentile.monthly-b8bbc2f2.js} +0 -0
  226. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-1beaae43.js → WEIGHT_BOYS.percentile.weekly-459ce22c.js} +0 -0
  227. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-7c7e9919.js → WEIGHT_BOYS.percentile.yearly-56897342.js} +0 -0
  228. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-9283b869.js → WEIGHT_BOYS.zscore.monthly-bf3f74c3.js} +0 -0
  229. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1ac9a072.js → WEIGHT_BOYS.zscore.weekly-2d53190b.js} +0 -0
  230. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-9b839b9b.js → WEIGHT_BOYS.zscore.yearly-d7cb14c3.js} +0 -0
  231. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-cb1c7848.js → WEIGHT_GIRLS.percentile.monthly-11c15b4c.js} +0 -0
  232. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9ffe610b.js → WEIGHT_GIRLS.percentile.weekly-1d6352b0.js} +0 -0
  233. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-7fd15451.js → WEIGHT_GIRLS.percentile.yearly-c32bbe22.js} +0 -0
  234. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-6bfdcfb2.js → WEIGHT_GIRLS.zscore.monthly-07245c59.js} +0 -0
  235. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-919cbbb2.js → WEIGHT_GIRLS.zscore.weekly-93a49fa2.js} +0 -0
  236. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-38d57df3.js → WEIGHT_GIRLS.zscore.yearly-2b38cbac.js} +0 -0
  237. /package/build/esm/{constants-4a417337.js → constants-b4b0dbd5.js} +0 -0
  238. /package/build/esm/{cookieHelper-f076ed06.js → cookieHelper-b1be0dca.js} +0 -0
  239. /package/build/esm/{dataTransform-b230f97a.js → dataTransform-b1d2d9fe.js} +0 -0
  240. /package/build/esm/{index-822affa3.js → index-2017e495.js} +0 -0
  241. /package/build/esm/{index-a740301e.js → index-d95fe6c9.js} +0 -0
  242. /package/build/esm/{isProduction-0fd1652a.js → isProduction-2e232ce7.js} +0 -0
  243. /package/build/esm/{localizeNumberFormat-6198dbc9.js → localizeNumberFormat-64055455.js} +0 -0
  244. /package/build/esm/{normalizeLink-cb62ad21.js → normalizeLink-2168153a.js} +0 -0
  245. /package/build/esm/{theme-875e5b63.js → theme-de51c819.js} +0 -0
  246. /package/build/esm/{translationsContext-fc6486f2.js → translationsContext-ce5d4145.js} +0 -0
  247. /package/build/esm/{tslib.es6-34de753e.js → tslib.es6-463f2e62.js} +0 -0
  248. /package/build/esm/{types-dc04785f.js → types-389e60ae.js} +0 -0
  249. /package/build/esm/{useIsInit-0a3202aa.js → useIsInit-a2253862.js} +0 -0
  250. /package/build/esm/{useOutsideClick-07eeb8f1.js → useOutsideClick-4ea0b71d.js} +0 -0
  251. /package/build/esm/{useScrollbarSize-a3b4003c.js → useScrollbarSize-3778037b.js} +0 -0
  252. /package/build/esm/{useUniqueId-c4f0155d.js → useUniqueId-a6a613ce.js} +0 -0
  253. /package/build/esm/{utils-f2d53b55.js → utils-8fca0431.js} +0 -0
  254. /package/build/{index-f543c132.js → index-6db1832c.js} +0 -0
  255. /package/build/{index-81408460.js → index-c63daae8.js} +0 -0
  256. /package/build/{isProduction-98c7ea47.js → isProduction-0e33663c.js} +0 -0
  257. /package/build/{localizeNumberFormat-1138924a.js → localizeNumberFormat-abbc3ee7.js} +0 -0
  258. /package/build/{normalizeLink-72b84dc0.js → normalizeLink-f2e3baa1.js} +0 -0
  259. /package/build/{theme-1a9c8dfd.js → theme-dbe18ce3.js} +0 -0
  260. /package/build/{translationsContext-293921e2.js → translationsContext-3e475b46.js} +0 -0
  261. /package/build/{tslib.es6-68615b0b.js → tslib.es6-42ca090c.js} +0 -0
  262. /package/build/{types-0e11a3ca.js → types-fc458f45.js} +0 -0
  263. /package/build/{useIsInit-4db8b56c.js → useIsInit-3184a248.js} +0 -0
  264. /package/build/{useOutsideClick-c07db0f6.js → useOutsideClick-c252593f.js} +0 -0
  265. /package/build/{useScrollbarSize-5b3b19b1.js → useScrollbarSize-6b0408ca.js} +0 -0
  266. /package/build/{useUniqueId-f59551e6.js → useUniqueId-e4c1f25e.js} +0 -0
  267. /package/build/{utils-3a8eef75.js → utils-73981712.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e,_ as t}from"./tslib.es6-34de753e.js";import*as a from"react";import o,{createContext as n,useContext as i,useState as l,useRef as r,useEffect as s,useMemo as c,useCallback as d}from"react";import{useMantineTheme as m,createStyles as p,Flex as u,Checkbox as g,Portal as h,Anchor as v,Accordion as f,Popover as b}from"@mantine/core";import{a as y}from"./index.styled-7761c40a.js";import{u as w}from"./useTranslations-c605802e.js";import x from"innertext";import{t as E}from"./theme-875e5b63.js";import{N as C,a9 as k,a4 as N,D as A,_ as L,C as T,ab as P}from"./index.styled-474cfb0b.js";import{CommonGAssets as I}from"./gAssets.js";import{f as S,A as z}from"./index-0fb0e636.js";import{B as M}from"./index-84827b34.js";import j from"dayjs";import"./screenSizeContext-afe24f18.js";import F,{keyframes as B,css as O}from"styled-components";import{d as R}from"./index-e2c1d836.js";import{M as V,t as D,c as U,a as W}from"./utils-f2d53b55.js";import"./isProduction-0fd1652a.js";import"./Onboarding-10567429.js";import"./index-ad31ca14.js";import"@mantine/hooks";import{T as Z,au as H,av as q,aw as _,ax as G,ay as Q,az as X,aA as K,U as $,aB as Y,aC as J,aD as ee,aE as te,aF as ae,aG as oe,aH as ne,aI as ie,aJ as le,aK as re,aL as se,aM as ce,aN as de,aO as me,aP as pe}from"./index.styled-fe007e9a.js";import{A as ue,B as ge,T as he,D as ve}from"./index-d685c854.js";import{e as fe,c as be,P as ye,g as we,b as xe,h as Ee,i as Ce}from"./dataTransform-099866f1.js";import{T as ke}from"./index-22caf7f4.js";import{I as Ne}from"./index-5fd031d8.js";import Ae from"lodash/debounce";import Le from"react-contenteditable";import{I as Te,C as Pe,a as Ie}from"./index-b3bac285.js";import{B as Se}from"./index-5ff9487f.js";import{H as ze}from"./index-0823a58a.js";import{d as Me,g as je}from"./cookieHelper-f076ed06.js";import*as Fe from"react-dom";import"./index-714f7c99.js";import"./index-da540258.js";import"./index.styled-8556d345.js";import"./index-a740301e.js";import"date-fns";import"react-day-picker/DayPickerInput";import"./index-773f005a.js";import"lodash/throttle";import"keen-slider/react";import"./types-dc04785f.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-8fb8e9b8.js";import"string-format";import Be from"dayjs/plugin/relativeTime";import{M as Oe}from"./index-c80835a2.js";import{a as Re}from"./useUniqueId-c4f0155d.js";import"./translationsContext-fc6486f2.js";import{g as Ve}from"./routing-05aee8b0.js";const De=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),a.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"})),Ue=n({}),We=({children:e,defaultParams:t})=>o.createElement(Ue.Provider,{value:{defaultParams:t}},e),Ze=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(Z),{defaultParams:o}=i(Ue)||{},n=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,i)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),i);if(!n||l){n||Me(H),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=q(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},He=F.div`
1
+ import{a as e,_ as t}from"./tslib.es6-463f2e62.js";import*as a from"react";import o,{createContext as n,useContext as i,useState as l,useRef as r,useEffect as s,useMemo as c,useCallback as d}from"react";import{useMantineTheme as m,createStyles as p,Flex as u,Checkbox as g,Portal as h,Anchor as v,Accordion as f,Popover as b}from"@mantine/core";import{a as y}from"./index.styled-a1a70192.js";import{u as w}from"./useTranslations-b5fe8278.js";import x from"innertext";import{t as E}from"./theme-de51c819.js";import{N as C,a9 as k,a4 as N,D as A,_ as L,C as T,ab as P}from"./index.styled-b5fdf388.js";import{CommonGAssets as I}from"./gAssets.js";import{f as S,A as z}from"./index-67084a87.js";import{B as M}from"./index-b98c5458.js";import j from"dayjs";import"./screenSizeContext-2f42d159.js";import F,{keyframes as B,css as O}from"styled-components";import{d as R}from"./index-4d3a9137.js";import{M as V,t as D,c as U,a as W}from"./utils-8fca0431.js";import"./isProduction-2e232ce7.js";import"./Onboarding-05bf223b.js";import"./index-1cb79555.js";import"@mantine/hooks";import{T as Z,au as H,av as q,aw as _,ax as G,ay as Q,az as X,aA as K,U as $,aB as Y,aC as J,aD as ee,aE as te,aF as ae,aG as oe,aH as ne,aI as ie,aJ as le,aK as re,aL as se,aM as ce,aN as de,aO as me,aP as pe}from"./index.styled-49a9f09c.js";import{A as ue,B as ge,T as he,D as ve}from"./index-735ebdc1.js";import{e as fe,c as be,P as ye,g as we,b as xe,h as Ee,i as Ce}from"./dataTransform-cc7ae538.js";import{T as ke}from"./index-ccd4242c.js";import{I as Ne}from"./index-13498149.js";import Ae from"lodash/debounce";import Le from"react-contenteditable";import{I as Te,C as Pe,a as Ie}from"./index-e7e79527.js";import{B as Se}from"./index-1582057b.js";import{H as ze}from"./index-dbb51364.js";import{d as Me,g as je}from"./cookieHelper-b1be0dca.js";import*as Fe from"react-dom";import"./index-9e935134.js";import"./index-27cfb186.js";import"./index.styled-fc0af758.js";import"./index-d95fe6c9.js";import"date-fns";import"react-day-picker/DayPickerInput";import"./index-38b0f96d.js";import"lodash/throttle";import"keen-slider/react";import"./types-389e60ae.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-f6a2270f.js";import"string-format";import Be from"dayjs/plugin/relativeTime";import{M as Oe}from"./index-3cdd76e8.js";import{a as Re}from"./useUniqueId-a6a613ce.js";import"./translationsContext-ce5d4145.js";import{g as Ve}from"./routing-0a281b0f.js";const De=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),a.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"})),Ue=n({}),We=({children:e,defaultParams:t})=>o.createElement(Ue.Provider,{value:{defaultParams:t}},e),Ze=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=i(Z),{defaultParams:o}=i(Ue)||{},n=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,i)=>{const r=Object.assign(Object.assign(Object.assign({},o),e),i);if(!n||l){n||Me(H),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=q(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},He=F.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -959,7 +959,7 @@ import{a as e,_ as t}from"./tslib.es6-34de753e.js";import*as a from"react";impor
959
959
  width: 24px;
960
960
  height: 24px;
961
961
  }
962
- `;const Yt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=I.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=w(),[g,h]=l(null),[v,f]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){f(!0);try{h(null),_(Y(J.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:ee[i]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}f(!1)}}),[e,n,null==g?void 0:g.id]);const b=(null==g?void 0:g.specialties)||[],y=c((()=>b.map((e=>e.name))),[b]);return o.createElement(o.Fragment,null,o.createElement(Qt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},v||!g?o.createElement(_e,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Rt,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Kt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(zt,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:Vt,alt:"badge"})))),o.createElement($t,null,o.createElement(ke,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},b&&o.createElement(ke,{size:"p4",color:E.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:te({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(ke,{size:"p4",className:"organisation",color:E.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:te({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Se,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement($t,null,o.createElement("div",{className:"experience"},o.createElement(ke,{type:"bold",size:"s3",color:E.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(ke,{size:"p2",color:E.colors.gray500},g.about),r?o.createElement("a",{href:te({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Se,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:te({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(ke,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":K(i)+te({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Xt,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var Jt="_2UKyiK1",ea="E5ga-tI",ta="_8Y2nWXX",aa="d0T7kSP";const oa=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=w();return o.createElement(Oe,Object.assign({className:Jt,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end",borderRadius:0},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"}},title:"Profile"},n),o.createElement("div",{className:ea},o.createElement("div",{className:ta},i("profilePanel.modal.heading")),o.createElement("div",{className:aa,onClick:t},o.createElement(De,null))),a)};var na=p((()=>({root:{},authorBadge:{background:"yellow"}})));j.extend(Be);const ia=n({}),la=({siteType:e})=>{const{t:t}=w(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(ia);return o.createElement(Se,{theme:e,color:"primary",size:"xs",onClick:e=>{null==a||a(n,l),e.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:r,icon:o.createElement(N,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},ra=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:m,title:p,userType:g="user",expertId:h,isMarryBaby:v,doctorId:f,hospitalId:b,hasQuickBooking:y,handleMakeAppointment:x,communityTrackingAttr:C,isAnonymous:N,showDetailPopup:A,subLine:L,authActionWrapper:T,profileProps:P,profileModalProps:S,extendEle:z,avatarProps:M,hideInfo:j,timeText:F,onCloseFromPost:B,avatarIcon:O,badgeIconSize:V,hideBackground:U,children:W,styles:H,dataEventCategory:q,dataEventAction:_,dataEventLabel:G}=e,{data:{locale:Q,router:X,env:{isMarryBaby:K,togetherBasePath:$}}}=i(Z),{t:Y}=w(),{classes:J}=na(void 0,{name:"CardAuthor",styles:H}),ee="boolean"==typeof v?v:K,te=ee?"marryBaby":"helloSites",ae=N?Y("cardPost.anonymous"):n||r||"",oe=N?I.getAssetPath("avatar.jpg"):d,ne=N?void 0:m,[ie,le]=l(!1),{asPath:re}=X||{},se=`https://${R[Q]}${re}`,ce=()=>{if(N||"chatbot"===g)return!1;A?me(!0):c&&(window.location.href=c)};s((()=>{D(ie)}),[ie]);const[de,me]=l(!1),pe="expert"===(null==e?void 0:e.role),[ge,he]=l(null);return s((()=>{de&&!ge&&Promise.resolve().then((function(){return On})).then((e=>{he((()=>e.ProfileDetail))}))}),[de]),o.createElement(ia.Provider,{value:{handleMakeAppointment:x,doctorId:f,hospitalId:b,currentUrl:se}},o.createElement(oa,{open:de,onClose:()=>me(!1),profileModalProps:S},ge&&o.createElement(ge,Object.assign({authorProps:{userId:null==e?void 0:e.userId,avatar:oe,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{me(!1),null==B||B()}},P))),"expert"===ne&&h?o.createElement(Gt,{isOpen:ie,onClose:()=>le(!1),expertId:h}):null,"expert"===ne&&f?o.createElement(Dt,{isOpen:ie,onClose:()=>le(!1),doctorId:f,locale:Q}):null,"expert"===ne&&b?o.createElement(Yt,{isOpen:ie,onClose:()=>le(!1),hospitalId:b,locale:Q}):null,o.createElement("div",{className:`hhg-card-author ${J.root} ${t} ${pe?"expert-author":""}`,"data-background":!U&&pe,"data-is-marrybaby":ee},o.createElement(St,{dataEventCategory:q,dataEventAction:_,dataEventLabel:G,onAvatarClick:ce,avatarProps:Object.assign(Object.assign({avatar:N?I.getAssetPath(ee?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):oe,username:ae},M),{style:{cursor:N||!c&&!A?"default":"pointer"}}),avatarIcon:O||pe&&o.createElement(yt,{size:V||15})},W?o.createElement("div",{onClick:ce},W):!j&&o.createElement(St.Row,null,o.createElement(St.ColLeft,null,o.createElement(u,{align:"center",onClick:ce},o.createElement(St.MainText,{onClick:ce},ae,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(k,{color:E.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):ne&&o.createElement(ue,{className:J.authorBadge,siteType:te,role:ne,title:p,style:{verticalAlign:"bottom"}}))),L||o.createElement(St.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(St.SubText,null,o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${$}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},C),`${null==a?void 0:a.name}`)),F&&o.createElement(o.Fragment,null,o.createElement(St.SubDivider,null),o.createElement(St.SubText,{className:"time-text"},F)))),y&&o.createElement(St.ColRight,null,o.createElement(la,{siteType:te})))),z&&z))};ra.BookingBtn=la,ra.MainText=St.MainText,ra.SubText=St.SubText,ra.SubTextRow=St.SubTextRow,ra.SubDivider=St.SubDivider;const sa=e=>({message:e("notification.failure"),type:"danger"}),ca=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99967 1.33331C4.31967 1.33331 1.33301 4.31998 1.33301 7.99998C1.33301 11.68 4.31967 14.6666 7.99967 14.6666C11.6797 14.6666 14.6663 11.68 14.6663 7.99998C14.6663 4.31998 11.6797 1.33331 7.99967 1.33331ZM7.99967 8.66665C7.63301 8.66665 7.33301 8.36665 7.33301 7.99998V5.33331C7.33301 4.96665 7.63301 4.66665 7.99967 4.66665C8.36634 4.66665 8.66634 4.96665 8.66634 5.33331V7.99998C8.66634 8.36665 8.36634 8.66665 7.99967 8.66665ZM7.33301 9.99998V11.3333H8.66634V9.99998H7.33301Z",fill:n}))};ca.defaultProps={size:24,color:E.colors.gray600};var da="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%23FE921D'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ma=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,pa=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,ua=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,ga=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ha=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,va=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,fa=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ba=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ya=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,wa=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,xa=({url:e,text:t,method:a})=>{const o=t.indexOf(t.trimStart()),n=t.trimEnd().length,i=t.substring(0,o),l=t.substring(o,n),r=t.substring(n);return"edit"===a?`${i}<mocka data-href="${e}" data-url="true">${l}</mocka>${r}`:"display"===a&&(e.startsWith("http://")||e.startsWith("https://"))?`${i}<a href="${e}" target="_blank">${l}</a>${r}`:t},Ea=(e,t)=>e.replace(ua,((e,a,o)=>xa({text:o||a,url:a,method:t}))).replace(ya,((e,a,o)=>xa({text:o||a,url:a,method:t}))),Ca=(e,t=[])=>e.replace(va,((e,a,o)=>{const n=t.find((e=>String(e.id)===a));if(!n){if(!o)return"";let e="";return o.replace(/\+name="([^<"]+)"/i,((t,a)=>(e=a,t))),`<mention data-id="${a}" data-name="${e}">${e}</mention>`}return`<mention data-id="${a}" data-name="${n.name}">${n.name}</mention>`})),ka=e=>{const t=[];return e.replace(/(\&amp;)+/g,"&").replace(pa,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},Na=(e,t)=>{const a=[];return e.replace(ga,((e,t)=>(a.push(t),e))).replace(va,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Aa=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),La=e=>e.replace(wa,"$1"),Ta=(e,t=(e=>e))=>((e,t=(e=>e))=>{var a;return t(null===(a=e.replace(/(\&nbsp;)+/g," ").replace(/(\&amp;)+/g,"&"))||void 0===a?void 0:a.replace(/(\u200c|&zwnj;)+/g,"").replace(pa,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(ma,((e,t,a)=>{var o;const n=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return n?`<a href="${n}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(ga,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(La(e)),t),Pa=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Ia=e=>e.match(ba)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Sa=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return La(e).replace(new RegExp(`\\b(${a.map((e=>Aa(e))).join("|")})\\b`,"gi"),((e,t)=>{const a=document.createElement("mocka");return a.setAttribute("data-bad-word",t),a.setAttribute("data-error","true"),a.innerText=t,`${a.outerHTML}`}))}return e},za=(t,a,o)=>"string"==typeof t?Promise.resolve(t):e(void 0,void 0,void 0,(function*(){var e;const n=new FormData;if(t.type.startsWith("image/gif"))n.append("image",t);else{const e=yield import("browser-image-compression"),a=yield e.default(t,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});n.append("image",a)}const i=o?le:re,l=yield i(G(o?ie.COMMENT.IMAGE_UPLOAD:Q.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),Ma=(e,t)=>{const[a,o]=l(e||[]);return{onSelectImages:n=>{const i=n.target.files;if(i)if(t&&e){t((e||a).concat(Array.from(i)))}else o((a=>{const o=e||a;return t&&t(o.concat(Array.from(i))),o.concat(Array.from(i))}))},onRemoveImage:a=>{if(t&&e){const o=e;o.splice(a,1),t(o.slice())}else o((o=>{const n=e||o;return n.splice(a,1),t&&t(n.slice()),n.slice()}))},onRemoveAllImages:()=>{t?t([]):o([])},imageSrcs:c((()=>(e||a).map((e=>"string"==typeof e?e:URL.createObjectURL(e)))),[e,a]),imageFiles:e||a}},ja=F.div`
962
+ `;const Yt=({isOpen:e=!0,onClose:t,enableAnimation:a=!0,hospitalId:n,locale:i,isMobile:r,overwriteProfileProps:d,avatarFallback:m=I.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{const{t:u}=w(),[g,h]=l(null),[v,f]=l(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){f(!0);try{h(null),_(Y(J.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:ee[i]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),d))}))}catch(e){console.error(e)}f(!1)}}),[e,n,null==g?void 0:g.id]);const b=(null==g?void 0:g.specialties)||[],y=c((()=>b.map((e=>e.name))),[b]);return o.createElement(o.Fragment,null,o.createElement(Qt,{"data-open":e,"data-animation":a,onClick:e=>e.stopPropagation()},v||!g?o.createElement(_e,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:t},o.createElement("img",{src:Rt,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Kt,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement(zt,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",fallbackSrc:m}),o.createElement("img",{className:"badge-avatar",src:Vt,alt:"badge"})))),o.createElement($t,null,o.createElement(ke,{size:"s3",type:"semiBold",className:"full-name"},null==g?void 0:g.name),o.createElement("div",{className:"specialty"},b&&o.createElement(ke,{size:"p4",color:E.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:te({id:g.id,name:g.name,slug:g.slug,locale:i}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(ke,{size:"p4",className:"organisation",color:E.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!r&&o.createElement("a",{href:te({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Se,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),o.createElement($t,null,o.createElement("div",{className:"experience"},o.createElement(ke,{type:"bold",size:"s3",color:E.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),o.createElement(ke,{size:"p2",color:E.colors.gray500},g.about),r?o.createElement("a",{href:te({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement("div",{className:"btn-wrapper"},o.createElement(Se,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):o.createElement("a",{href:te({id:g.id,name:g.name,slug:g.slug,locale:i})},o.createElement(ke,{size:"s4",color:"#2D87F3",as:"span","data-event-category":p,"data-event-action":"See Full Hospital Profile","data-event-label":K(i)+te({id:g.id,name:g.name,slug:g.slug,locale:i})},u("home.seeHospital"))))))),o.createElement(Xt,{"data-open":e,onClick:e=>{e.stopPropagation(),t()}}))};var Jt="_2UKyiK1",ea="E5ga-tI",ta="_8Y2nWXX",aa="d0T7kSP";const oa=({open:e,onClose:t,children:a,profileModalProps:n})=>{const{t:i}=w();return o.createElement(Oe,Object.assign({className:Jt,opened:e,onClose:t,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end",borderRadius:0},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"}},title:"Profile"},n),o.createElement("div",{className:ea},o.createElement("div",{className:ta},i("profilePanel.modal.heading")),o.createElement("div",{className:aa,onClick:t},o.createElement(De,null))),a)};var na=p((()=>({root:{},authorBadge:{background:"yellow"}})));j.extend(Be);const ia=n({}),la=({siteType:e})=>{const{t:t}=w(),{handleMakeAppointment:a,doctorId:n,hospitalId:l,currentUrl:r}=i(ia);return o.createElement(Se,{theme:e,color:"primary",size:"xs",onClick:e=>{null==a||a(n,l),e.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:r,icon:o.createElement(N,{className:"buttonIcon",size:18}),iconPosition:"right",style:{whiteSpace:"nowrap"}},o.createElement("span",null,t("careBooking.bookAnAppointment")))},ra=e=>{const{className:t="",community:a,name:n,username:r,url:c,avatar:d,role:m,title:p,userType:g="user",expertId:h,isMarryBaby:v,doctorId:f,hospitalId:b,hasQuickBooking:y,handleMakeAppointment:x,communityTrackingAttr:C,isAnonymous:N,showDetailPopup:A,subLine:L,authActionWrapper:T,profileProps:P,profileModalProps:S,extendEle:z,avatarProps:M,hideInfo:j,timeText:F,onCloseFromPost:B,avatarIcon:O,badgeIconSize:V,hideBackground:U,children:W,styles:H,dataEventCategory:q,dataEventAction:_,dataEventLabel:G}=e,{data:{locale:Q,router:X,env:{isMarryBaby:K,togetherBasePath:$}}}=i(Z),{t:Y}=w(),{classes:J}=na(void 0,{name:"CardAuthor",styles:H}),ee="boolean"==typeof v?v:K,te=ee?"marryBaby":"helloSites",ae=N?Y("cardPost.anonymous"):n||r||"",oe=N?I.getAssetPath("avatar.jpg"):d,ne=N?void 0:m,[ie,le]=l(!1),{asPath:re}=X||{},se=`https://${R[Q]}${re}`,ce=()=>{if(N||"chatbot"===g)return!1;A?me(!0):c&&(window.location.href=c)};s((()=>{D(ie)}),[ie]);const[de,me]=l(!1),pe="expert"===(null==e?void 0:e.role),[ge,he]=l(null);return s((()=>{de&&!ge&&Promise.resolve().then((function(){return On})).then((e=>{he((()=>e.ProfileDetail))}))}),[de]),o.createElement(ia.Provider,{value:{handleMakeAppointment:x,doctorId:f,hospitalId:b,currentUrl:se}},o.createElement(oa,{open:de,onClose:()=>me(!1),profileModalProps:S},ge&&o.createElement(ge,Object.assign({currentPageUrl:G,authorProps:{userId:null==e?void 0:e.userId,avatar:oe,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title},authActionWrapper:T,onCloseFromPost:()=>{me(!1),null==B||B()}},P))),"expert"===ne&&h?o.createElement(Gt,{isOpen:ie,onClose:()=>le(!1),expertId:h}):null,"expert"===ne&&f?o.createElement(Dt,{isOpen:ie,onClose:()=>le(!1),doctorId:f,locale:Q}):null,"expert"===ne&&b?o.createElement(Yt,{isOpen:ie,onClose:()=>le(!1),hospitalId:b,locale:Q}):null,o.createElement("div",{className:`hhg-card-author ${J.root} ${t} ${pe?"expert-author":""}`,"data-background":!U&&pe,"data-is-marrybaby":ee},o.createElement(St,{dataEventCategory:q,dataEventAction:_,dataEventLabel:G,onAvatarClick:ce,avatarProps:Object.assign(Object.assign({avatar:N?I.getAssetPath(ee?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):oe,username:ae},M),{style:{cursor:N||!c&&!A?"default":"pointer"}}),avatarIcon:O||pe&&o.createElement(yt,{size:V||15})},W?o.createElement("div",{onClick:ce},W):!j&&o.createElement(St.Row,null,o.createElement(St.ColLeft,null,o.createElement(u,{align:"center",onClick:ce},o.createElement(St.MainText,{onClick:ce},ae,"chatbot"===g?o.createElement(o.Fragment,null," ",o.createElement(k,{color:E.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):ne&&o.createElement(ue,{className:J.authorBadge,siteType:te,role:ne,title:p,style:{verticalAlign:"bottom"}}))),L||o.createElement(St.SubTextRow,null,(null==a?void 0:a.name)&&o.createElement(St.SubText,null,o.createElement("a",Object.assign({href:(null==a?void 0:a.slug)&&a.isActive&&!a.isHidden?`${$}/${null==a?void 0:a.slug}`:void 0,className:"author-community-name"},C),`${null==a?void 0:a.name}`)),F&&o.createElement(o.Fragment,null,o.createElement(St.SubDivider,null),o.createElement(St.SubText,{className:"time-text"},F)))),y&&o.createElement(St.ColRight,null,o.createElement(la,{siteType:te})))),z&&z))};ra.BookingBtn=la,ra.MainText=St.MainText,ra.SubText=St.SubText,ra.SubTextRow=St.SubTextRow,ra.SubDivider=St.SubDivider;const sa=e=>({message:e("notification.failure"),type:"danger"}),ca=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99967 1.33331C4.31967 1.33331 1.33301 4.31998 1.33301 7.99998C1.33301 11.68 4.31967 14.6666 7.99967 14.6666C11.6797 14.6666 14.6663 11.68 14.6663 7.99998C14.6663 4.31998 11.6797 1.33331 7.99967 1.33331ZM7.99967 8.66665C7.63301 8.66665 7.33301 8.36665 7.33301 7.99998V5.33331C7.33301 4.96665 7.63301 4.66665 7.99967 4.66665C8.36634 4.66665 8.66634 4.96665 8.66634 5.33331V7.99998C8.66634 8.36665 8.36634 8.66665 7.99967 8.66665ZM7.33301 9.99998V11.3333H8.66634V9.99998H7.33301Z",fill:n}))};ca.defaultProps={size:24,color:E.colors.gray600};var da="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%23FE921D'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ma=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,pa=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,ua=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,ga=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ha=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,va=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,fa=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ba=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ya=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,wa=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,xa=({url:e,text:t,method:a})=>{const o=t.indexOf(t.trimStart()),n=t.trimEnd().length,i=t.substring(0,o),l=t.substring(o,n),r=t.substring(n);return"edit"===a?`${i}<mocka data-href="${e}" data-url="true">${l}</mocka>${r}`:"display"===a&&(e.startsWith("http://")||e.startsWith("https://"))?`${i}<a href="${e}" target="_blank">${l}</a>${r}`:t},Ea=(e,t)=>e.replace(ua,((e,a,o)=>xa({text:o||a,url:a,method:t}))).replace(ya,((e,a,o)=>xa({text:o||a,url:a,method:t}))),Ca=(e,t=[])=>e.replace(va,((e,a,o)=>{const n=t.find((e=>String(e.id)===a));if(!n){if(!o)return"";let e="";return o.replace(/\+name="([^<"]+)"/i,((t,a)=>(e=a,t))),`<mention data-id="${a}" data-name="${e}">${e}</mention>`}return`<mention data-id="${a}" data-name="${n.name}">${n.name}</mention>`})),ka=e=>{const t=[];return e.replace(/(\&amp;)+/g,"&").replace(pa,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},Na=(e,t)=>{const a=[];return e.replace(ga,((e,t)=>(a.push(t),e))).replace(va,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Aa=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),La=e=>e.replace(wa,"$1"),Ta=(e,t=(e=>e))=>((e,t=(e=>e))=>{var a;return t(null===(a=e.replace(/(\&nbsp;)+/g," ").replace(/(\&amp;)+/g,"&"))||void 0===a?void 0:a.replace(/(\u200c|&zwnj;)+/g,"").replace(pa,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(ma,((e,t,a)=>{var o;const n=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return n?`<a href="${n}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(ga,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(La(e)),t),Pa=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Ia=e=>e.match(ba)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Sa=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return La(e).replace(new RegExp(`\\b(${a.map((e=>Aa(e))).join("|")})\\b`,"gi"),((e,t)=>{const a=document.createElement("mocka");return a.setAttribute("data-bad-word",t),a.setAttribute("data-error","true"),a.innerText=t,`${a.outerHTML}`}))}return e},za=(t,a,o)=>"string"==typeof t?Promise.resolve(t):e(void 0,void 0,void 0,(function*(){var e;const n=new FormData;if(t.type.startsWith("image/gif"))n.append("image",t);else{const e=yield import("browser-image-compression"),a=yield e.default(t,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});n.append("image",a)}const i=o?le:re,l=yield i(G(o?ie.COMMENT.IMAGE_UPLOAD:Q.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:n});return(null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.image)||""})),Ma=(e,t)=>{const[a,o]=l(e||[]);return{onSelectImages:n=>{const i=n.target.files;if(i)if(t&&e){t((e||a).concat(Array.from(i)))}else o((a=>{const o=e||a;return t&&t(o.concat(Array.from(i))),o.concat(Array.from(i))}))},onRemoveImage:a=>{if(t&&e){const o=e;o.splice(a,1),t(o.slice())}else o((o=>{const n=e||o;return n.splice(a,1),t&&t(n.slice()),n.slice()}))},onRemoveAllImages:()=>{t?t([]):o([])},imageSrcs:c((()=>(e||a).map((e=>"string"==typeof e?e:URL.createObjectURL(e)))),[e,a]),imageFiles:e||a}},ja=F.div`
963
963
  input:focus,
964
964
  textarea:focus,
965
965
  [contenteditable='true'] {
@@ -2634,7 +2634,7 @@ import{a as e,_ as t}from"./tslib.es6-34de753e.js";import*as a from"react";impor
2634
2634
  overflow: hidden;
2635
2635
  border-radius: 1rem;
2636
2636
  }
2637
- `,qo=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(Z),[g,h]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return h(null);h((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),_(G(Q.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;h({url:t,image:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.image)||(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.logo)})})).catch((()=>{h(null)}))}}))}),[t,a]);const v=a||(null==g?void 0:g.image),f=(null==g?void 0:g.url)||t,b=c((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(f)),[f]),y=c((()=>f.includes("facebook.com")||f.includes("fb.watch")),[f]),w=r(0),x=r(0),[E,C]=l(!1);s((()=>{const e=()=>{var e;const t=null===(e=k.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!w.current||Math.abs((w.current-t.width)/(null==t?void 0:t.width))>.2)&&(w.current=Math.floor(t.width),a=!0),t&&(!x.current||Math.abs((x.current-t.height)/(null==t?void 0:t.height))>.2)&&(x.current=Math.floor(t.height),a=!0),a&&C((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const k=r(null),N=r(!1),A=m();return o.createElement(Ho,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!b&&!y?o.createElement("a",{href:f,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:"link-image-wrapper "+((null==g?void 0:g.isFetching)?"fetching":"")},(null==g?void 0:g.isFetching)?o.createElement(_e,{className:"loading-spinner"}):o.createElement("img",{className:"link-image",src:v||X,onError:e=>{N.current||(N.current=!0,e.currentTarget.src=X)}}))):o.createElement("div",{className:"link-image-wrapper"},b?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${b}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"}}):y?o.createElement("iframe",{key:String(E),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(f)}&autoplay=${p?1:0}&show_text=false&t=0&width=${w.current}&height=${x.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:x.current,width:w.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"}):null))};var _o="PD6nRZX";const Go=({className:e,size:t="md"})=>{const{t:a}=w();return o.createElement("div",{className:`${_o} ${e}`},o.createElement(Se,{size:t,color:"transparent",isLoading:!0},a("loading")))},Qo=n({});var Xo="l5fL1xL",Ko="L-aGKo7";const $o=({children:e,className:t=""})=>o.createElement("div",{className:`${Xo} ${t}`},e),Yo=({children:e,className:t=""})=>o.createElement("div",{className:`${Ko} ${t}`},e);var Jo="eaR8ATZ",en="xM-7K0a",tn="DZmf3s7";const an=({src:e,defaultSrc:t=I.getAssetPath("logo/logomark.png"),ratio:a=1,size:n=80,radius:i=8,alt:l,className:r=""})=>o.createElement("div",{className:r},o.createElement("div",{className:tn,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(zt,{src:e,fallbackSrc:t,alt:l}))),on=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${Jo} ${i}`},o.createElement(an,{src:a}),o.createElement("div",{className:en},n||o.createElement("div",null,e&&o.createElement($o,null,e),t&&o.createElement(Yo,null,t))));on.CategoryText=$o,on.Title=Yo;const nn=({featureImage:e,postTitle:t,author:a,categories:n,isReview:i,className:l=""})=>{var r;const s=i?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return o.createElement(on,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(on.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(on.Title,null,t),o.createElement(St,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(St.SubDivider,null),"Dec 12, 2022")})))};var ln={container:"SFSgnOz",header:"Tf3aoVa",heading:"TOt4QXl",headingIcon:"_5XYN1KT",accBodyGroup:"yE-tZRj",accBodyGroupItem:"LXiGuGT",accBodyGroupDesc:"r4rx-6v",subTitle:"XrHh8-C",subIcon:"c5-Yecd",group:"UBj6nWr",groupBody:"_2vptVBd",articleCardLink:"ZPDAwiR",relatedList:"_6wJn-NR",socialItem:"_21XDdFv",mbChevronWrapper:"LSyr3Zo"};const rn=({className:e=""})=>{var t,a,n,l,r;const{t:s}=w(),{info:c,isMarryBaby:d,currentPageUrl:m}=i(Qo),p=null==c?void 0:c.data,g=[{type:"linkedin",icon:I.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:I.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:I.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:I.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:I.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],h=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:I.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupItem,key:String(t)},o.createElement("div",{className:ln.accBodyGroupTitle},e.title),o.createElement("div",{className:ln.accBodyGroupDesc},o.createElement("p",null,e.organization),o.createElement("p",null,e.duration))))))}]:[],...((null==c?void 0:c.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:I.getAssetPath(d?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupItem,key:String(t)},o.createElement("div",{className:ln.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:ln.accBodyGroupDesc},o.createElement("p",null,e.study),o.createElement("p",null,e.completedYear))))))}]:[],...((null==c?void 0:c.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:I.getAssetPath(d?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupTitle,key:t},e.title))))}]:[]],v=(null==c?void 0:c.relatedPosts)||[],b=g.filter((e=>e.url));return o.createElement("div",{className:`${ln.container} ${e}`,"data-is-marrybaby":d},h.length>0&&o.createElement(f,{defaultValue:h[0].key,chevron:d?o.createElement("div",{className:ln.mbChevronWrapper},o.createElement(P,{size:12,color:E.mbColors.midGray})):o.createElement(P,{color:E.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},h.map((e=>o.createElement(f.Item,{key:e.key,value:e.key},o.createElement(f.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},o.createElement("div",{className:ln.header},o.createElement("div",{className:ln.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:ln.heading},e.heading))),o.createElement(f.Panel,null,e.panel))))),v.length>0&&o.createElement("div",{className:ln.group},o.createElement("div",{className:ln.subTitle},o.createElement("img",{className:ln.subIcon,src:I.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${ln.relatedList}`},null==c?void 0:c.relatedPosts.map((e=>o.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:ln.articleCardLink},o.createElement(nn,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==p?void 0:p.name,avatar:null==p?void 0:p.avatar}}),{isReview:!0}))))))),b.length>0&&o.createElement("div",{className:ln.group},o.createElement("div",{className:ln.subTitle},o.createElement("img",{className:ln.subIcon,src:I.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:ln.groupBody},o.createElement(u,null,g.map(((e,t)=>e.url&&o.createElement("div",{className:ln.socialItem,key:t,"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px"})))))))))};var sn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const cn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=w(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(Z),{authActionWrapper:h,authorProps:v,currentPageUrl:f}=i(Qo),b=`${window.location.origin}${g}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${sn.container} ${t}`},o.createElement("div",{className:sn.header},o.createElement("div",{className:sn.question},p("profilePanel.question")," ",o.createElement(z,{className:sn.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=b))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:sn.community},null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.name," - ",null==e?void 0:e.createdTime)),o.createElement("div",{className:sn.questionCard},o.createElement(ra,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:o.createElement(yt,null),subLine:o.createElement(ra.SubTextRow,null,o.createElement(ra.SubText,null,null===(s=null===(r=null===(l=null==e?void 0:e.expertAnswer)||void 0===l?void 0:l.answer)||void 0===r?void 0:r[0])||void 0===s?void 0:s.createdTime))})),o.createElement(Eo,{className:"post-content-wrapper",description:(null===(m=null===(d=null===(c=null==e?void 0:e.expertAnswer)||void 0===c?void 0:c.answer)||void 0===d?void 0:d[0])||void 0===m?void 0:m.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),o.createElement(M,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":f,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=b:null==h||h((()=>window.location.href=b))}},p("profilePanel.anserwing.viewFull")))};var dn="MrdoES3",mn="_8fd7YMs",pn="DomiQfw",un="-b2qnfL";const gn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Qo);return o.createElement("div",{className:mn},o.createElement("div",{className:pn},o.createElement("img",{src:a||I.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:un},e),t&&o.createElement(Se,{size:"md",theme:l,color:"secondary",onClick:n},t))},hn=({id:t})=>{const{t:a}=w(),{data:{locale:n}}=i(Z),{authorProps:r}=i(Qo),[c,d]=l(null),[m,p]=l(!1);return s((()=>{t&&e(void 0,void 0,void 0,(function*(){var e;p(!0);const a=yield _(G(Q.USER.LIST_ANSWERS,{_locale:n,id:t}),"GET"),o=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.replies)||[]).map(be);d(o),p(!1)}))}),[]),o.createElement("div",{className:dn},m?o.createElement(Go,null):null!==c&&(c.length>0?c.map((e=>o.createElement(cn,{className:"post-card",key:e.id,post:e}))):o.createElement(gn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},vn=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{d:"M9.99983 9.14326L6.94303 12.2001C6.61183 12.5313 6.07423 12.5313 5.74303 12.2001C5.41183 11.8689 5.41183 11.3313 5.74303 11.0001L9.43423 7.30886C9.74703 6.99606 10.2534 6.99606 10.5654 7.30886L14.2566 11.0001C14.5878 11.3313 14.5878 11.8689 14.2566 12.2001C13.9254 12.5313 13.3878 12.5313 13.0566 12.2001L9.99983 9.14326Z",fill:n}))};vn.defaultProps={size:24,color:E.colors.gray600};var fn="toEutn7",bn="drdisHs";const yn=e=>{var a,n,l,r,{post:s}=e,c=t(e,["post"]);const{data:{env:{togetherBasePath:d}}}=i(Z);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},c,{className:`${fn} ${(null==c?void 0:c.className)||""}`}),o.createElement(ra,{className:"card-author",avatar:null===(a=null==s?void 0:s.author)||void 0===a?void 0:a.avatar,name:(null===(n=null==s?void 0:s.author)||void 0===n?void 0:n.name)||(null===(l=null==s?void 0:s.author)||void 0===l?void 0:l.username),isAnonymous:Boolean(null==s?void 0:s.isAnonymous),subLine:o.createElement(ra.SubTextRow,null,o.createElement(ra.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(z,{href:`${window.location.origin}${d}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}`,className:bn,rel:"noreferrer"},null==s?void 0:s.title)))};var wn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const xn=()=>{var t,a;const{t:n}=w(),{data:{locale:r,userInfo:c}}=i(Z),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Qo),[u,g]=l(),[h,v]=l([]),[b,y]=l(!1),x=null==c?void 0:c.id;s((()=>{x&&e(void 0,void 0,void 0,(function*(){var e;y(!0);const t=yield re(G(Q.USER.LIST_QUESTION_NEED_REPLY,{_locale:r}),"GET"),a=[],o=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter((e=>((null==e?void 0:e.question)||[]).length>0)).map((e=>{o[e.id]=e.question.map(be),delete e.question,a.push(xe(e))})),v(a),g(o),y(!1)}))}),[]);const C=({id:e,communityId:t})=>{if(e&&t&&u){const a=Object.assign(Object.assign({},u),{[t]:[...((null==u?void 0:u[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),g(a),p(Object.assign(Object.assign({},m),{total_question:o})),null==d||d(o)}};return o.createElement("div",{className:wn.container},b?o.createElement(Go,null):(null==m?void 0:m.total_question)>0?h.length>0&&o.createElement(f,{className:wn.accordion,defaultValue:String((null===(a=h[null===(t=Object.keys(h))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}}),chevron:o.createElement("div",{className:wn.chevron},o.createElement(vn,{color:E.colors.gray600,size:20}))},h.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(f.Item,{key:e.id,value:String(e.id)},o.createElement(f.Control,null,o.createElement("div",{className:wn.header},o.createElement("div",{className:wn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:wn.heading},e.name))),o.createElement(f.Panel,null,o.createElement("div",{className:wn.body},t.map((e=>o.createElement(yn,{className:"question-card",key:e.id,post:e,onSkip:C}))))))}))):o.createElement(gn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:I.getAssetPath("questions.svg")}))};var En="GA-zc-O",Cn="A18McWD",kn="IB049vj",Nn="_8I--vEV";const An=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(Z),{authActionWrapper:r,authorProps:s}=i(Qo),c=`${window.location.origin}${l}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${En} ${t}`},o.createElement("div",{className:kn},o.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":c,className:Nn,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(St,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(ra.MainText,{className:Cn},null==e?void 0:e.title),o.createElement(ra.SubTextRow,null,o.createElement(ra.SubText,null,null==e?void 0:e.createdTime))),o.createElement(Eo,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post"})))};var Ln="TSMHoEM";const Tn=()=>{const{t:t}=w(),{data:{locale:a}}=i(Z),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Qo),[m,p]=l(null),[u,g]=l(!1);return s((()=>{n&&e(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield _(G(Q.USER.LIST_POST,{_locale:a,id:n,isAnonymous:0}),"GET"),o=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(be);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Ln},u?o.createElement(Go,null):null!==m&&(m.length>0?m.map((e=>o.createElement(An,{className:"post-card",key:e.id,post:e}))):o.createElement(gn,{message:t("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:c&&t("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var Pn="_4Vekw96",In="DIJdGcB",Sn="aQSt4-Q";const zn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Mn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var jn,Fn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(jn||(jn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Fn||(Fn={}));const Bn=a=>{var n,r,{authorProps:c,selectedTab:d,authActionWrapper:m,onSkipQuestion:p,onCloseFromPost:u,hideQuestionTab:g,hideAnswerTab:h,showSkipQuestionTag:v,rolesToShowQuestionsTab:f=["expert"],currentPageUrl:b}=a,y=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:x,userInfo:E,env:{isMarryBaby:C}}}=i(Z),{t:k}=w(),N=null==c?void 0:c.role,A=null==E?void 0:E.role,L=String(null==c?void 0:c.userId),[T,P]=l(),[I,S]=l(!1),[z,M]=l(),F=(null==E?void 0:E._togetherUserId)===(null==c?void 0:c.userId),B=[...-1!==f.indexOf(N)?[{key:jn.About,name:k("profilePanel.tabs.highlight"),component:o.createElement(rn,{id:L,info:z}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:b}]:[{key:jn.Posts,name:k("profilePanel.tabs.posts"),component:o.createElement(Tn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===f.indexOf(A)||(null==E?void 0:E._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:jn.Care,name:`${k("profilePanel.tabs.care")}`,component:o.createElement(xn,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:b}],...h||-1===f.indexOf(N)?[]:[{key:jn.Answer,name:`${k("profilePanel.tabs.expertAnswer")}`,component:o.createElement(hn,{id:L}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[O,R]=l(null),[V,D]=l(null),U={initialTab:V,tabContent:O,onChange:e=>D(e),styles:e=>({label:{fontSize:e.fontSizes.sm,fontWeight:600}})},W=null==B?void 0:B.filter((e=>null==e?void 0:e.hasCountResult));s((()=>{e(void 0,void 0,void 0,(function*(){var e,t,a,o,n,i,l,r,s;S(!0);const c=yield Promise.all([_(G(Q.USER.DETAIL,{_locale:x,id:L}),"GET"),...W.map((e=>_(G(Q.USER.COUNT_TABS,{_locale:x,id:L,[e.keyOfCountApi]:1}),"GET")))]),[m]=c,p={data:null==m?void 0:m.data,experiences:((null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(zn),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Ee(e.post))),educations:((null===(n=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(Mn),awards:(null===(l=null===(i=null==m?void 0:m.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==m?void 0:m.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==m?void 0:m.status)&&M(p);const u=(null==p?void 0:p.relatedPosts)||[],g=Object.keys(p.contact).map((e=>{var t;return""!==(null===(t=null==p?void 0:p.contact)||void 0===t?void 0:t[e])})),h=[...(null==p?void 0:p.experiences)||[],...(null==p?void 0:p.educations)||[],...(null==p?void 0:p.awards)||[]],v=u.length>0||g.length>0||h.length>0,f={},b=W.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=c[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===n?void 0:n[e.keyOfResult])||0;return i>0?(f[e.keyOfResult]=i,e):-1!==[jn.Care,jn.Posts].indexOf(e.key)?e:void 0})).filter(Boolean).map((e=>e.key)),y=B.map((e=>{const t=Object.assign(Object.assign({},e),{name:e.name+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==b.indexOf(t.key)?t:void 0:t.key===jn.About?v&&t:t})).filter(Boolean);R(y),D((()=>{if(!d)return 0;const e=null==y?void 0:y.findIndex((e=>e.key===d));return-1!==e?e:0})()),P(f),S(!1)}))}),[]);const H=null==z?void 0:z.data;return o.createElement(Qo.Provider,{value:{isMarryBaby:C,siteType:C?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:z,authorProps:c,onCloseFromPost:u,countValues:T,setCountValues:P,isAuthorLogin:F,showSkipQuestionTag:v,currentPageUrl:b}},o.createElement("div",Object.assign({},y,{className:`${Pn} ${(null==y?void 0:y.className)||""}`,"data-is-marrybaby":C}),I?o.createElement(Go,null):o.createElement(o.Fragment,null,o.createElement(ra,Object.assign({},c,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==c?void 0:c.role)?(null==H?void 0:H.specialty)&&(null==H?void 0:H.organisation)&&o.createElement(ra.SubTextRow,null,(null==H?void 0:H.specialty)&&o.createElement(o.Fragment,null,o.createElement(ra.SubText,null,null==H?void 0:H.specialty),o.createElement(ra.SubDivider,null)),o.createElement(ra.SubText,null,null==H?void 0:H.organisation)):(null==H?void 0:H.created_at)&&o.createElement(ra.SubTextRow,null,o.createElement(ra.SubText,null,k("profilePanel.joined")," ",j(null==H?void 0:H.created_at).toNow(!0)))})),"expert"===N&&o.createElement("div",{className:In,dangerouslySetInnerHTML:{__html:null===(n=null==z?void 0:z.data)||void 0===n?void 0:n.description}}),null!==O&&null!==V&&(O.length>0?o.createElement("div",{className:Sn},o.createElement(he,Object.assign({},U)),null===(r=null==O?void 0:O[V])||void 0===r?void 0:r.component):o.createElement(gn,{message:k("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var On=Object.freeze({__proto__:null,get TabName(){return jn},get UserType(){return Fn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Bn}),Rn="KsWg8i6",Vn="_9tS0EUN",Dn="kyyRKlb",Un="-Uqqka-";const Wn=a=>{var{post:n,onSkip:r,btnText:s,currentPageUrl:c}=a,p=t(a,["post","onSkip","btnText","currentPageUrl"]);const{t:u}=w(),{data:{locale:g},action:{pushNotifications:h}}=i(Z),[v,f]=l(!1),[y,x]=l(!1),E=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield re(G(Q.USER.SKIP_QUESTION,{_locale:g,id:null==n?void 0:n.id}),"PUT");1===(null==t?void 0:t.status)?(null==r||r({id:(null==n?void 0:n.id)||"",communityId:(null===(e=null==n?void 0:n.community)||void 0===e?void 0:e.id)||""}),f(!1),h({title:"",message:"Skip success",type:"success"})):h({title:"",message:null==t?void 0:t.messages,type:"danger"}),x(!1)}))),[]);return o.createElement(b,{width:327,withArrow:!0,shadow:"md",opened:v},o.createElement(b.Target,null,o.createElement("div",Object.assign({className:`${Rn} ${(null==p?void 0:p.className)||""}`,onClick:()=>f(!0)},p),s||u("profilePanel.questionNotClear"))),o.createElement(b.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:Vn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:Dn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:Un},o.createElement(M,{size:"md",variant:"secondary",leftIcon:o.createElement(Pe,{color:E.fn.primaryColor(),size:24}),onClick:()=>f(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement(M,{variant:"primary",size:"md",leftIcon:o.createElement(Ie,{color:"white",size:24}),onClick:C,loading:y,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":c,styles:()=>({leftIcon:{marginRight:0}})})))))};var Zn="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10Z' fill='%233E3F58'/%3e %3cpath d='M19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10Z' fill='%233E3F58'/%3e %3cpath d='M12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z' fill='%233E3F58'/%3e %3c/svg%3e",Hn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='%23595959' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",qn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",_n="data:image/svg+xml,%3csvg width='3' height='13' viewBox='0 0 3 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1.58326' cy='6.41663' r='1.25' transform='rotate(89.9997 1.58326 6.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='1.41663' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 1.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='11.4166' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 11.4166)' fill='%23595959'/%3e%3c/svg%3e",Gn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 5.33337C13.1046 5.33337 14 4.43794 14 3.33337C14 2.2288 13.1046 1.33337 12 1.33337C10.8954 1.33337 10 2.2288 10 3.33337C10 4.43794 10.8954 5.33337 12 5.33337Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4 10C5.10457 10 6 9.10457 6 8C6 6.89543 5.10457 6 4 6C2.89543 6 2 6.89543 2 8C2 9.10457 2.89543 10 4 10Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12 14.6666C13.1046 14.6666 14 13.7712 14 12.6666C14 11.5621 13.1046 10.6666 12 10.6666C10.8954 10.6666 10 11.5621 10 12.6666C10 13.7712 10.8954 14.6666 12 14.6666Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.72668 9.00665L10.28 11.66' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.2734 4.33997L5.72668 6.9933' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Qn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 4H3.33333H14' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33334 3.99992V2.66659C5.33334 2.31296 5.47382 1.97382 5.72387 1.72378C5.97392 1.47373 6.31305 1.33325 6.66668 1.33325H9.33334C9.68697 1.33325 10.0261 1.47373 10.2762 1.72378C10.5262 1.97382 10.6667 2.31296 10.6667 2.66659V3.99992M12.6667 3.99992V13.3333C12.6667 13.6869 12.5262 14.026 12.2762 14.2761C12.0261 14.5261 11.687 14.6666 11.3333 14.6666H4.66668C4.31305 14.6666 3.97392 14.5261 3.72387 14.2761C3.47382 14.026 3.33334 13.6869 3.33334 13.3333V3.99992H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66666 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33334 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Xn=({authorEmail:t,onDeletePost:a,shareUrl:n,post:r,className:s="",popoverClassName:c="",onBookmark:d,onRemoveBookmark:m,onEditPost:p})=>{const{data:{locale:u,userInfo:g,togetherUserId:h,env:{isMarryBaby:v}},action:{pushNotifications:f}}=i(Z),{t:b}=w(),[y,x]=l(!1),[E,C]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=Ze(),L=t&&(null==g?void 0:g.email)&&t===String(null==g?void 0:g.email);return o.createElement("div",{className:s,onClick:e=>{e.preventDefault(),e.stopPropagation()}},k&&o.createElement(ho,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),E&&o.createElement(ro,{thumbnail:I.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:b("popup.deletePost.title"),description:b("popup.deletePost.description"),acceptText:b("popup.deletePost.accept"),cancelText:b("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!y){x(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield re(G(Q.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}x(!1)}})),onClose:()=>C(!1)}),o.createElement(ht,{className:c,toggleButtonContent:o.createElement("img",{src:v?Zn:_n}),position:"bottom",align:"end",buttonProps:{isLoading:y},data:L?{isShowheader:!1,type:"list",list:[{icon:Gn,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.16952 3.2356H2.99484C2.6785 3.2356 2.37512 3.36126 2.15143 3.58495C1.92774 3.80863 1.80208 4.11202 1.80208 4.42836V12.7777C1.80208 13.094 1.92774 13.3974 2.15143 13.6211C2.37512 13.8448 2.6785 13.9705 2.99484 13.9705H11.3442C11.6605 13.9705 11.9639 13.8448 12.1876 13.6211C12.4113 13.3974 12.537 13.094 12.537 12.7777V8.60303' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M11.6425 2.341C11.8798 2.10375 12.2016 1.97046 12.5371 1.97046C12.8726 1.97046 13.1944 2.10375 13.4317 2.341C13.6689 2.57826 13.8022 2.90005 13.8022 3.23558C13.8022 3.57111 13.6689 3.89289 13.4317 4.13015L7.76607 9.79578L5.38054 10.3922L5.97692 8.00663L11.6425 2.341Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",label:b("actionPopover.edit"),onClick:p},{icon:Qn,label:b("actionPopover.delete"),onClick:()=>{A((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Gn,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?Hn:qn,label:(null==r?void 0:r.bookmarked)?b("morePopover.unsavePost"):b("morePopover.savePost"),onClick:()=>{A((()=>e(void 0,void 0,void 0,(function*(){if((null==g?void 0:g.id)&&(null==r?void 0:r.id))if(null==r?void 0:r.bookmarked){const e=yield re(G(Q.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(f({title:"",message:"Removed saved post",type:"success",displayIcon:qn}),m&&m()):f({title:"",message:"Remove failed",type:"danger",displayIcon:qn})}else{const e=yield re(G(Q.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:h||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(f({title:"",message:"Post saved",type:"success",displayIcon:Hn}),d&&d()):f({title:"",message:"Post saved failed",type:"danger",displayIcon:qn})}}))))}},{icon:bo,label:b("morePopover.report"),subTree:{title:b("morePopover.report.title"),description:b("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(de).map((e=>({label:de[e].label,reason:de[e].reportReasonText,reasonValue:e}))).map((e=>({label:b(e.label),subTree:{title:b("morePopover.reportSubmit.title"),description:b("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(yo,{reason:e.reasonValue,reasonText:b(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},Kn=F.div`
2637
+ `,qo=({url:t,image:a,className:n,style:d,autoPlay:p=!0})=>{const{data:{locale:u}}=i(Z),[g,h]=l(null);s((()=>{e(void 0,void 0,void 0,(function*(){if(!a){if(!t)return h(null);h((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),_(G(Q.FETCH_PREVIEW,{_locale:u}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then((e=>{var a,o;h({url:t,image:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.image)||(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.logo)})})).catch((()=>{h(null)}))}}))}),[t,a]);const v=a||(null==g?void 0:g.image),f=(null==g?void 0:g.url)||t,b=c((()=>(e=>{var t;return e.includes("youtu")&&(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""})(f)),[f]),y=c((()=>f.includes("facebook.com")||f.includes("fb.watch")),[f]),w=r(0),x=r(0),[E,C]=l(!1);s((()=>{const e=()=>{var e;const t=null===(e=k.current)||void 0===e?void 0:e.getBoundingClientRect();let a=!1;t&&(!w.current||Math.abs((w.current-t.width)/(null==t?void 0:t.width))>.2)&&(w.current=Math.floor(t.width),a=!0),t&&(!x.current||Math.abs((x.current-t.height)/(null==t?void 0:t.height))>.2)&&(x.current=Math.floor(t.height),a=!0),a&&C((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const k=r(null),N=r(!1),A=m();return o.createElement(Ho,{className:`${n} no-replace-click`,style:d,ref:k,color:A.colors[A.primaryColor][0]},a||!b&&!y?o.createElement("a",{href:f,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:"link-image-wrapper "+((null==g?void 0:g.isFetching)?"fetching":"")},(null==g?void 0:g.isFetching)?o.createElement(_e,{className:"loading-spinner"}):o.createElement("img",{className:"link-image",src:v||X,onError:e=>{N.current||(N.current=!0,e.currentTarget.src=X)}}))):o.createElement("div",{className:"link-image-wrapper"},b?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${b}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"}}):y?o.createElement("iframe",{key:String(E),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(f)}&autoplay=${p?1:0}&show_text=false&t=0&width=${w.current}&height=${x.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:x.current,width:w.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"}):null))};var _o="PD6nRZX";const Go=({className:e,size:t="md"})=>{const{t:a}=w();return o.createElement("div",{className:`${_o} ${e}`},o.createElement(Se,{size:t,color:"transparent",isLoading:!0},a("loading")))},Qo=n({});var Xo="l5fL1xL",Ko="L-aGKo7";const $o=({children:e,className:t=""})=>o.createElement("div",{className:`${Xo} ${t}`},e),Yo=({children:e,className:t=""})=>o.createElement("div",{className:`${Ko} ${t}`},e);var Jo="eaR8ATZ",en="xM-7K0a",tn="DZmf3s7";const an=({src:e,defaultSrc:t=I.getAssetPath("logo/logomark.png"),ratio:a=1,size:n=80,radius:i=8,alt:l,className:r=""})=>o.createElement("div",{className:r},o.createElement("div",{className:tn,style:{width:`${n}px`,height:n*a+"px",borderRadius:`${i}px`}},o.createElement(zt,{src:e,fallbackSrc:t,alt:l}))),on=({category:e,title:t,src:a,children:n,className:i=""})=>o.createElement("div",{className:`${Jo} ${i}`},o.createElement(an,{src:a}),o.createElement("div",{className:en},n||o.createElement("div",null,e&&o.createElement($o,null,e),t&&o.createElement(Yo,null,t))));on.CategoryText=$o,on.Title=Yo;const nn=({featureImage:e,postTitle:t,author:a,categories:n,isReview:i,className:l=""})=>{var r;const s=i?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return o.createElement(on,{src:e,className:l},o.createElement(o.Fragment,null,o.createElement(on.CategoryText,null,null===(r=null==n?void 0:n[0])||void 0===r?void 0:r.name),o.createElement(on.Title,null,t),o.createElement(St,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:o.createElement(o.Fragment,null,s,o.createElement(St.SubDivider,null),"Dec 12, 2022")})))};var ln={container:"SFSgnOz",header:"Tf3aoVa",heading:"TOt4QXl",headingIcon:"_5XYN1KT",accBodyGroup:"yE-tZRj",accBodyGroupItem:"LXiGuGT",accBodyGroupDesc:"r4rx-6v",subTitle:"XrHh8-C",subIcon:"c5-Yecd",group:"UBj6nWr",groupBody:"_2vptVBd",articleCardLink:"ZPDAwiR",relatedList:"_6wJn-NR",socialItem:"_21XDdFv",mbChevronWrapper:"LSyr3Zo"};const rn=({className:e=""})=>{var t,a,n,l,r;const{t:s}=w(),{info:c,isMarryBaby:d,currentPageUrl:m}=i(Qo),p=null==c?void 0:c.data,g=[{type:"linkedin",icon:I.getAssetPath("linkedin.svg"),url:null===(t=null==c?void 0:c.contact)||void 0===t?void 0:t.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:I.getAssetPath("instagram.svg"),url:null===(a=null==c?void 0:c.contact)||void 0===a?void 0:a.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:I.getAssetPath("facebook.svg"),url:null===(n=null==c?void 0:c.contact)||void 0===n?void 0:n.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:I.getAssetPath("youtube.svg"),url:null===(l=null==c?void 0:c.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:I.getAssetPath("tiktok.svg"),url:null===(r=null==c?void 0:c.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],h=[...((null==c?void 0:c.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:I.getAssetPath(d?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.experiences.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupItem,key:String(t)},o.createElement("div",{className:ln.accBodyGroupTitle},e.title),o.createElement("div",{className:ln.accBodyGroupDesc},o.createElement("p",null,e.organization),o.createElement("p",null,e.duration))))))}]:[],...((null==c?void 0:c.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:I.getAssetPath(d?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.educations.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupItem,key:String(t)},o.createElement("div",{className:ln.accBodyGroupTitle},e.schoolName),o.createElement("div",{className:ln.accBodyGroupDesc},o.createElement("p",null,e.study),o.createElement("p",null,e.completedYear))))))}]:[],...((null==c?void 0:c.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:I.getAssetPath(d?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:o.createElement("div",{className:ln.accBodyGroup},null==c?void 0:c.awards.map(((e,t)=>o.createElement("div",{className:ln.accBodyGroupTitle,key:t},e.title))))}]:[]],v=(null==c?void 0:c.relatedPosts)||[],b=g.filter((e=>e.url));return o.createElement("div",{className:`${ln.container} ${e}`,"data-is-marrybaby":d},h.length>0&&o.createElement(f,{defaultValue:h[0].key,chevron:d?o.createElement("div",{className:ln.mbChevronWrapper},o.createElement(P,{size:12,color:E.mbColors.midGray})):o.createElement(P,{color:E.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},h.map((e=>o.createElement(f.Item,{key:e.key,value:e.key},o.createElement(f.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},o.createElement("div",{className:ln.header},o.createElement("div",{className:ln.headingIcon},o.createElement("img",{src:e.iconSrc})),o.createElement("div",{className:ln.heading},e.heading))),o.createElement(f.Panel,null,e.panel))))),v.length>0&&o.createElement("div",{className:ln.group},o.createElement("div",{className:ln.subTitle},o.createElement("img",{className:ln.subIcon,src:I.getAssetPath(d?"mb-logo.svg":"logo/circle-solid.svg")}),s("profilePanel.publishedArticles")),o.createElement("div",{className:`${ln.relatedList}`},null==c?void 0:c.relatedPosts.map((e=>o.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:ln.articleCardLink},o.createElement(nn,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==p?void 0:p.name,avatar:null==p?void 0:p.avatar}}),{isReview:!0}))))))),b.length>0&&o.createElement("div",{className:ln.group},o.createElement("div",{className:ln.subTitle},o.createElement("img",{className:ln.subIcon,src:I.getAssetPath(d?"social-mb.svg":"social.svg")}),s("profilePanel.socialLinks")),o.createElement("div",{className:ln.groupBody},o.createElement(u,null,g.map(((e,t)=>e.url&&o.createElement("div",{className:ln.socialItem,key:t},o.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},o.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m})))))))))};var sn={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const cn=({post:e,className:t=""})=>{var a,n,l,r,s,c,d,m;const{t:p}=w(),{data:{userInfo:u,env:{togetherBasePath:g}}}=i(Z),{authActionWrapper:h,authorProps:v,currentPageUrl:f}=i(Qo),b=`${window.location.origin}${g}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${sn.container} ${t}`},o.createElement("div",{className:sn.header},o.createElement("div",{className:sn.question},p("profilePanel.question")," ",o.createElement(z,{className:sn.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=b))}},"#",null==e?void 0:e.title)),o.createElement("div",{className:sn.community},null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.name," - ",null==e?void 0:e.createdTime)),o.createElement("div",{className:sn.questionCard},o.createElement(ra,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:o.createElement(yt,null),subLine:o.createElement(ra.SubTextRow,null,o.createElement(ra.SubText,null,null===(s=null===(r=null===(l=null==e?void 0:e.expertAnswer)||void 0===l?void 0:l.answer)||void 0===r?void 0:r[0])||void 0===s?void 0:s.createdTime))})),o.createElement(Eo,{className:"post-content-wrapper",description:(null===(m=null===(d=null===(c=null==e?void 0:e.expertAnswer)||void 0===c?void 0:c.answer)||void 0===d?void 0:d[0])||void 0===m?void 0:m.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),o.createElement(M,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":f,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=b:null==h||h((()=>window.location.href=b))}},p("profilePanel.anserwing.viewFull")))};var dn="MrdoES3",mn="_8fd7YMs",pn="DomiQfw",un="-b2qnfL";const gn=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{const{siteType:l,isMarryBaby:r}=i(Qo);return o.createElement("div",{className:mn},o.createElement("div",{className:pn},o.createElement("img",{src:a||I.getAssetPath(r?"comments-mb.svg":"comments.svg")})),e&&o.createElement("div",{className:un},e),t&&o.createElement(Se,{size:"md",theme:l,color:"secondary",onClick:n},t))},hn=({id:t})=>{const{t:a}=w(),{data:{locale:n}}=i(Z),{authorProps:r}=i(Qo),[c,d]=l(null),[m,p]=l(!1);return s((()=>{t&&e(void 0,void 0,void 0,(function*(){var e;p(!0);const a=yield _(G(Q.USER.LIST_ANSWERS,{_locale:n,id:t}),"GET"),o=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.replies)||[]).map(be);d(o),p(!1)}))}),[]),o.createElement("div",{className:dn},m?o.createElement(Go,null):null!==c&&(c.length>0?c.map((e=>o.createElement(cn,{className:"post-card",key:e.id,post:e}))):o.createElement(gn,{message:a("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))},vn=e=>{var{size:a,color:n}=e,i=t(e,["size","color"]);return o.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("path",{d:"M9.99983 9.14326L6.94303 12.2001C6.61183 12.5313 6.07423 12.5313 5.74303 12.2001C5.41183 11.8689 5.41183 11.3313 5.74303 11.0001L9.43423 7.30886C9.74703 6.99606 10.2534 6.99606 10.5654 7.30886L14.2566 11.0001C14.5878 11.3313 14.5878 11.8689 14.2566 12.2001C13.9254 12.5313 13.3878 12.5313 13.0566 12.2001L9.99983 9.14326Z",fill:n}))};vn.defaultProps={size:24,color:E.colors.gray600};var fn="toEutn7",bn="drdisHs";const yn=e=>{var a,n,l,r,{post:s}=e,c=t(e,["post"]);const{data:{env:{togetherBasePath:d}}}=i(Z);return o.createElement(o.Fragment,null,o.createElement("div",Object.assign({},c,{className:`${fn} ${(null==c?void 0:c.className)||""}`}),o.createElement(ra,{className:"card-author",avatar:null===(a=null==s?void 0:s.author)||void 0===a?void 0:a.avatar,name:(null===(n=null==s?void 0:s.author)||void 0===n?void 0:n.name)||(null===(l=null==s?void 0:s.author)||void 0===l?void 0:l.username),isAnonymous:Boolean(null==s?void 0:s.isAnonymous),subLine:o.createElement(ra.SubTextRow,null,o.createElement(ra.SubText,null,null==s?void 0:s.createdTime))}),o.createElement(z,{href:`${window.location.origin}${d}/${null===(r=null==s?void 0:s.community)||void 0===r?void 0:r.slug}/${null==s?void 0:s.slug}`,className:bn,rel:"noreferrer"},null==s?void 0:s.title)))};var wn={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const xn=()=>{var t,a;const{t:n}=w(),{data:{locale:r,userInfo:c}}=i(Z),{onSkipQuestion:d,countValues:m,setCountValues:p}=i(Qo),[u,g]=l(),[h,v]=l([]),[b,y]=l(!1),x=null==c?void 0:c.id;s((()=>{x&&e(void 0,void 0,void 0,(function*(){var e;y(!0);const t=yield re(G(Q.USER.LIST_QUESTION_NEED_REPLY,{_locale:r}),"GET"),a=[],o=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter((e=>((null==e?void 0:e.question)||[]).length>0)).map((e=>{o[e.id]=e.question.map(be),delete e.question,a.push(xe(e))})),v(a),g(o),y(!1)}))}),[]);const C=({id:e,communityId:t})=>{if(e&&t&&u){const a=Object.assign(Object.assign({},u),{[t]:[...((null==u?void 0:u[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),g(a),p(Object.assign(Object.assign({},m),{total_question:o})),null==d||d(o)}};return o.createElement("div",{className:wn.container},b?o.createElement(Go,null):(null==m?void 0:m.total_question)>0?h.length>0&&o.createElement(f,{className:wn.accordion,defaultValue:String((null===(a=h[null===(t=Object.keys(h))||void 0===t?void 0:t[0]])||void 0===a?void 0:a.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}}),chevron:o.createElement("div",{className:wn.chevron},o.createElement(vn,{color:E.colors.gray600,size:20}))},h.map((e=>{const t=u&&(null==u?void 0:u[e.id])||[];return t.length>0&&o.createElement(f.Item,{key:e.id,value:String(e.id)},o.createElement(f.Control,null,o.createElement("div",{className:wn.header},o.createElement("div",{className:wn.headingIcon},o.createElement("img",{src:e.thumbnail})),o.createElement("div",{className:wn.heading},e.name))),o.createElement(f.Panel,null,o.createElement("div",{className:wn.body},t.map((e=>o.createElement(yn,{className:"question-card",key:e.id,post:e,onSkip:C}))))))}))):o.createElement(gn,{message:n("profilePanel.emptyCareMess.content"),imgSrc:I.getAssetPath("questions.svg")}))};var En="GA-zc-O",Cn="A18McWD",kn="IB049vj",Nn="_8I--vEV";const An=({post:e,className:t=""})=>{var a;const{data:{userInfo:n,env:{togetherBasePath:l}}}=i(Z),{authActionWrapper:r,authorProps:s}=i(Qo),c=`${window.location.origin}${l}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}`;return o.createElement("div",{className:`${En} ${t}`},o.createElement("div",{className:kn},o.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":c,className:Nn,href:c,onClick:e=>{(null==n?void 0:n.id)||(e.preventDefault(),null==r||r((()=>window.location.href=c)))}}),o.createElement(St,{className:"card-author",avatarProps:{avatar:null==s?void 0:s.avatar,size:32}},o.createElement(ra.MainText,{className:Cn},null==e?void 0:e.title),o.createElement(ra.SubTextRow,null,o.createElement(ra.SubText,null,null==e?void 0:e.createdTime))),o.createElement(Eo,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post"})))};var Ln="TSMHoEM";const Tn=()=>{const{t:t}=w(),{data:{locale:a}}=i(Z),{authorId:n,authorProps:r,isAuthorLogin:c,onCloseFromPost:d}=i(Qo),[m,p]=l(null),[u,g]=l(!1);return s((()=>{n&&e(void 0,void 0,void 0,(function*(){var e;g(!0);const t=yield _(G(Q.USER.LIST_POST,{_locale:a,id:n,isAnonymous:0}),"GET"),o=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(be);p(o),g(!1)}))}),[n]),o.createElement("div",{className:Ln},u?o.createElement(Go,null):null!==m&&(m.length>0?m.map((e=>o.createElement(An,{className:"post-card",key:e.id,post:e}))):o.createElement(gn,{message:t("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:c&&t("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var Pn="_4Vekw96",In="DIJdGcB",Sn="aQSt4-Q";const zn=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},Mn=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var jn,Fn;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(jn||(jn={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(Fn||(Fn={}));const Bn=a=>{var n,r,{authorProps:c,selectedTab:d,authActionWrapper:m,onSkipQuestion:p,onCloseFromPost:u,hideQuestionTab:g,hideAnswerTab:h,showSkipQuestionTag:v,rolesToShowQuestionsTab:f=["expert"],currentPageUrl:b}=a,y=t(a,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:x,userInfo:E,env:{isMarryBaby:C}}}=i(Z),{t:k}=w(),N=null==c?void 0:c.role,A=null==E?void 0:E.role,L=String(null==c?void 0:c.userId),[T,P]=l(),[I,S]=l(!1),[z,M]=l(),F=(null==E?void 0:E._togetherUserId)===(null==c?void 0:c.userId),B=[...-1!==f.indexOf(N)?[{key:jn.About,name:k("profilePanel.tabs.highlight"),component:o.createElement(rn,{id:L,info:z}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:b}]:[{key:jn.Posts,name:k("profilePanel.tabs.posts"),component:o.createElement(Tn,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"}],...g||-1===f.indexOf(A)||(null==E?void 0:E._togetherUserId)!==(null==c?void 0:c.userId)?[]:[{key:jn.Care,name:`${k("profilePanel.tabs.care")}`,component:o.createElement(xn,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:b}],...h||-1===f.indexOf(N)?[]:[{key:jn.Answer,name:`${k("profilePanel.tabs.expertAnswer")}`,component:o.createElement(hn,{id:L}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[O,R]=l(null),[V,D]=l(null),U={initialTab:V,tabContent:O,onChange:e=>D(e),styles:e=>({label:{fontSize:e.fontSizes.sm,fontWeight:600}})},W=null==B?void 0:B.filter((e=>null==e?void 0:e.hasCountResult));s((()=>{e(void 0,void 0,void 0,(function*(){var e,t,a,o,n,i,l,r,s;S(!0);const c=yield Promise.all([_(G(Q.USER.DETAIL,{_locale:x,id:L}),"GET"),...W.map((e=>_(G(Q.USER.COUNT_TABS,{_locale:x,id:L,[e.keyOfCountApi]:1}),"GET")))]),[m]=c,p={data:null==m?void 0:m.data,experiences:((null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(zn),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>Ee(e.post))),educations:((null===(n=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===n?void 0:n.educations)||[]).map(Mn),awards:(null===(l=null===(i=null==m?void 0:m.data)||void 0===i?void 0:i.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==m?void 0:m.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};1===(null==m?void 0:m.status)&&M(p);const u=(null==p?void 0:p.relatedPosts)||[],g=Object.keys(p.contact).map((e=>{var t;return""!==(null===(t=null==p?void 0:p.contact)||void 0===t?void 0:t[e])})),h=[...(null==p?void 0:p.experiences)||[],...(null==p?void 0:p.educations)||[],...(null==p?void 0:p.awards)||[]],v=u.length>0||g.length>0||h.length>0,f={},b=W.map(((e,t)=>{var a,o,n;const i=(null===(n=null===(o=null===(a=c[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===n?void 0:n[e.keyOfResult])||0;return i>0?(f[e.keyOfResult]=i,e):-1!==[jn.Care,jn.Posts].indexOf(e.key)?e:void 0})).filter(Boolean).map((e=>e.key)),y=B.map((e=>{const t=Object.assign(Object.assign({},e),{name:e.name+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==b.indexOf(t.key)?t:void 0:t.key===jn.About?v&&t:t})).filter(Boolean);R(y),D((()=>{if(!d)return 0;const e=null==y?void 0:y.findIndex((e=>e.key===d));return-1!==e?e:0})()),P(f),S(!1)}))}),[]);const H=null==z?void 0:z.data;return o.createElement(Qo.Provider,{value:{isMarryBaby:C,siteType:C?"marryBaby":"helloSites",authorId:String((null==c?void 0:c.userId)||""),authActionWrapper:m,onSkipQuestion:p,info:z,authorProps:c,onCloseFromPost:u,countValues:T,setCountValues:P,isAuthorLogin:F,showSkipQuestionTag:v,currentPageUrl:b}},o.createElement("div",Object.assign({},y,{className:`${Pn} ${(null==y?void 0:y.className)||""}`,"data-is-marrybaby":C}),I?o.createElement(Go,null):o.createElement(o.Fragment,null,o.createElement(ra,Object.assign({},c,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==c?void 0:c.role)?(null==H?void 0:H.specialty)&&(null==H?void 0:H.organisation)&&o.createElement(ra.SubTextRow,null,(null==H?void 0:H.specialty)&&o.createElement(o.Fragment,null,o.createElement(ra.SubText,null,null==H?void 0:H.specialty),o.createElement(ra.SubDivider,null)),o.createElement(ra.SubText,null,null==H?void 0:H.organisation)):(null==H?void 0:H.created_at)&&o.createElement(ra.SubTextRow,null,o.createElement(ra.SubText,null,k("profilePanel.joined")," ",j(null==H?void 0:H.created_at).toNow(!0)))})),"expert"===N&&o.createElement("div",{className:In,dangerouslySetInnerHTML:{__html:null===(n=null==z?void 0:z.data)||void 0===n?void 0:n.description}}),null!==O&&null!==V&&(O.length>0?o.createElement("div",{className:Sn},o.createElement(he,Object.assign({},U)),null===(r=null==O?void 0:O[V])||void 0===r?void 0:r.component):o.createElement(gn,{message:k("profilePanel.emptyPostMess.content",{name:(null==c?void 0:c.name)||(null==c?void 0:c.username)||""})})))))};var On=Object.freeze({__proto__:null,get TabName(){return jn},get UserType(){return Fn},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:Bn}),Rn="KsWg8i6",Vn="_9tS0EUN",Dn="kyyRKlb",Un="-Uqqka-";const Wn=a=>{var{post:n,onSkip:r,btnText:s,currentPageUrl:c}=a,p=t(a,["post","onSkip","btnText","currentPageUrl"]);const{t:u}=w(),{data:{locale:g},action:{pushNotifications:h}}=i(Z),[v,f]=l(!1),[y,x]=l(!1),E=m(),C=d((()=>e(void 0,void 0,void 0,(function*(){var e;x(!0);const t=yield re(G(Q.USER.SKIP_QUESTION,{_locale:g,id:null==n?void 0:n.id}),"PUT");1===(null==t?void 0:t.status)?(null==r||r({id:(null==n?void 0:n.id)||"",communityId:(null===(e=null==n?void 0:n.community)||void 0===e?void 0:e.id)||""}),f(!1),h({title:"",message:"Skip success",type:"success"})):h({title:"",message:null==t?void 0:t.messages,type:"danger"}),x(!1)}))),[]);return o.createElement(b,{width:327,withArrow:!0,shadow:"md",opened:v},o.createElement(b.Target,null,o.createElement("div",Object.assign({className:`${Rn} ${(null==p?void 0:p.className)||""}`,onClick:()=>f(!0)},p),s||u("profilePanel.questionNotClear"))),o.createElement(b.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:Vn},u("profilePanel.skipQuestion.heading")),o.createElement("div",{className:Dn},u("profilePanel.skipQuestion.content")),o.createElement("div",{className:Un},o.createElement(M,{size:"md",variant:"secondary",leftIcon:o.createElement(Pe,{color:E.fn.primaryColor(),size:24}),onClick:()=>f(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement(M,{variant:"primary",size:"md",leftIcon:o.createElement(Ie,{color:"white",size:24}),onClick:C,loading:y,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":c,styles:()=>({leftIcon:{marginRight:0}})})))))};var Zn="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10Z' fill='%233E3F58'/%3e %3cpath d='M19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10Z' fill='%233E3F58'/%3e %3cpath d='M12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z' fill='%233E3F58'/%3e %3c/svg%3e",Hn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='%23595959' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",qn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",_n="data:image/svg+xml,%3csvg width='3' height='13' viewBox='0 0 3 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1.58326' cy='6.41663' r='1.25' transform='rotate(89.9997 1.58326 6.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='1.41663' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 1.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='11.4166' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 11.4166)' fill='%23595959'/%3e%3c/svg%3e",Gn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 5.33337C13.1046 5.33337 14 4.43794 14 3.33337C14 2.2288 13.1046 1.33337 12 1.33337C10.8954 1.33337 10 2.2288 10 3.33337C10 4.43794 10.8954 5.33337 12 5.33337Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4 10C5.10457 10 6 9.10457 6 8C6 6.89543 5.10457 6 4 6C2.89543 6 2 6.89543 2 8C2 9.10457 2.89543 10 4 10Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12 14.6666C13.1046 14.6666 14 13.7712 14 12.6666C14 11.5621 13.1046 10.6666 12 10.6666C10.8954 10.6666 10 11.5621 10 12.6666C10 13.7712 10.8954 14.6666 12 14.6666Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.72668 9.00665L10.28 11.66' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.2734 4.33997L5.72668 6.9933' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Qn="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 4H3.33333H14' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33334 3.99992V2.66659C5.33334 2.31296 5.47382 1.97382 5.72387 1.72378C5.97392 1.47373 6.31305 1.33325 6.66668 1.33325H9.33334C9.68697 1.33325 10.0261 1.47373 10.2762 1.72378C10.5262 1.97382 10.6667 2.31296 10.6667 2.66659V3.99992M12.6667 3.99992V13.3333C12.6667 13.6869 12.5262 14.026 12.2762 14.2761C12.0261 14.5261 11.687 14.6666 11.3333 14.6666H4.66668C4.31305 14.6666 3.97392 14.5261 3.72387 14.2761C3.47382 14.026 3.33334 13.6869 3.33334 13.3333V3.99992H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66666 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33334 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Xn=({authorEmail:t,onDeletePost:a,shareUrl:n,post:r,className:s="",popoverClassName:c="",onBookmark:d,onRemoveBookmark:m,onEditPost:p})=>{const{data:{locale:u,userInfo:g,togetherUserId:h,env:{isMarryBaby:v}},action:{pushNotifications:f}}=i(Z),{t:b}=w(),[y,x]=l(!1),[E,C]=l(!1),[k,N]=l(!1),{authActionWrapper:A}=Ze(),L=t&&(null==g?void 0:g.email)&&t===String(null==g?void 0:g.email);return o.createElement("div",{className:s,onClick:e=>{e.preventDefault(),e.stopPropagation()}},k&&o.createElement(ho,{url:n,text:null==r?void 0:r.title,onClose:()=>N(!1)}),E&&o.createElement(ro,{thumbnail:I.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:b("popup.deletePost.title"),description:b("popup.deletePost.description"),acceptText:b("popup.deletePost.accept"),cancelText:b("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==r?void 0:r.id)&&!y){x(!0);try{const t=yield(({id:t,locale:a})=>e(void 0,void 0,void 0,(function*(){if(t)return yield re(G(Q.POST.DELETE,{id:t,_locale:a}),"DELETE")})))({id:r.id,locale:u});1===(null==t?void 0:t.status)&&(null==a||a())}catch(e){}x(!1)}})),onClose:()=>C(!1)}),o.createElement(ht,{className:c,toggleButtonContent:o.createElement("img",{src:v?Zn:_n}),position:"bottom",align:"end",buttonProps:{isLoading:y},data:L?{isShowheader:!1,type:"list",list:[{icon:Gn,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.16952 3.2356H2.99484C2.6785 3.2356 2.37512 3.36126 2.15143 3.58495C1.92774 3.80863 1.80208 4.11202 1.80208 4.42836V12.7777C1.80208 13.094 1.92774 13.3974 2.15143 13.6211C2.37512 13.8448 2.6785 13.9705 2.99484 13.9705H11.3442C11.6605 13.9705 11.9639 13.8448 12.1876 13.6211C12.4113 13.3974 12.537 13.094 12.537 12.7777V8.60303' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M11.6425 2.341C11.8798 2.10375 12.2016 1.97046 12.5371 1.97046C12.8726 1.97046 13.1944 2.10375 13.4317 2.341C13.6689 2.57826 13.8022 2.90005 13.8022 3.23558C13.8022 3.57111 13.6689 3.89289 13.4317 4.13015L7.76607 9.79578L5.38054 10.3922L5.97692 8.00663L11.6425 2.341Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",label:b("actionPopover.edit"),onClick:p},{icon:Qn,label:b("actionPopover.delete"),onClick:()=>{A((()=>C(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Gn,label:b("morePopover.share"),onClick:()=>N(!0)},{icon:(null==r?void 0:r.bookmarked)?Hn:qn,label:(null==r?void 0:r.bookmarked)?b("morePopover.unsavePost"):b("morePopover.savePost"),onClick:()=>{A((()=>e(void 0,void 0,void 0,(function*(){if((null==g?void 0:g.id)&&(null==r?void 0:r.id))if(null==r?void 0:r.bookmarked){const e=yield re(G(Q.BOOKMARK.DELETE,{_locale:u}),"DELETE",{data:{post_id:String(r.id)}});1===(null==e?void 0:e.status)?(f({title:"",message:"Removed saved post",type:"success",displayIcon:qn}),m&&m()):f({title:"",message:"Remove failed",type:"danger",displayIcon:qn})}else{const e=yield re(G(Q.BOOKMARK.CREATE,{_locale:u}),"POST",{data:{user_id:h||g.id,post_id:r.id}});1===(null==e?void 0:e.status)?(f({title:"",message:"Post saved",type:"success",displayIcon:Hn}),d&&d()):f({title:"",message:"Post saved failed",type:"danger",displayIcon:qn})}}))))}},{icon:bo,label:b("morePopover.report"),subTree:{title:b("morePopover.report.title"),description:b("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(de).map((e=>({label:de[e].label,reason:de[e].reportReasonText,reasonValue:e}))).map((e=>({label:b(e.label),subTree:{title:b("morePopover.reportSubmit.title"),description:b("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(yo,{reason:e.reasonValue,reasonText:b(e.reason),postId:null==r?void 0:r.id,onClose:()=>t&&t(!1)})}})))}}]}}))},Kn=F.div`
2638
2638
  position: relative;
2639
2639
  margin-bottom: 24px;
2640
2640
  background: white;
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-34de753e.js";import t,{useState as i,useCallback as o,useMemo as a,useEffect as n,useRef as s,useReducer as r}from"react";import{I as c,L as l}from"./constants-4a417337.js";import{b as d,d as h}from"./index-e2c1d836.js";import{g as u,s as p,d as g}from"./cookieHelper-f076ed06.js";import{u as m}from"./useTranslations-c605802e.js";import C from"lodash/debounce";import{I as f}from"./index-5fd031d8.js";import y,{createGlobalStyle as b}from"styled-components";import{T as v}from"./index-22caf7f4.js";import{t as w}from"./theme-875e5b63.js";import E from"react-loading-skeleton";import{M as L}from"./utils-f2d53b55.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-07eeb8f1.js";import k from"string-format";const O=y.div``,j=y.div`
1
+ import{a as e}from"./tslib.es6-463f2e62.js";import t,{useState as i,useCallback as o,useMemo as a,useEffect as n,useRef as s,useReducer as r}from"react";import{I as c,L as l}from"./constants-b4b0dbd5.js";import{b as d,d as h}from"./index-4d3a9137.js";import{g as u,s as p,d as g}from"./cookieHelper-b1be0dca.js";import{u as m}from"./useTranslations-b5fe8278.js";import C from"lodash/debounce";import{I as f}from"./index-13498149.js";import y,{createGlobalStyle as b}from"styled-components";import{T as v}from"./index-ccd4242c.js";import{t as w}from"./theme-de51c819.js";import E from"react-loading-skeleton";import{M as L}from"./utils-8fca0431.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-4ea0b71d.js";import k from"string-format";const O=y.div``,j=y.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -1 +1 @@
1
- export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE,O as OnboardingStep}from"./Onboarding-10567429.js";
1
+ export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,G as Gender,L as LOCALE,O as OnboardingStep}from"./Onboarding-05bf223b.js";
@@ -1 +1 @@
1
- import{a as o}from"./tslib.es6-34de753e.js";import{useState as t,useEffect as i,useCallback as e}from"react";import{a as l}from"./getDynamicHealthTool-30f0d9c8.js";const n=n=>{const[r,a]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield l(n);a(o)}))}),[l,n]);const s=e((o=>{var t;return(null===(t=r.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[r]);return{allTools:r,getHealthToolLink:s}};export{n as u};
1
+ import{a as o}from"./tslib.es6-463f2e62.js";import{useState as t,useEffect as i,useCallback as e}from"react";import{a as l}from"./getDynamicHealthTool-70fd643e.js";const n=n=>{const[r,a]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield l(n);a(o)}))}),[l,n]);const s=e((o=>{var t;return(null===(t=r.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[r]);return{allTools:r,getHealthToolLink:s}};export{n as u};
@@ -1 +1 @@
1
- import{a as e}from"./tslib.es6-34de753e.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-f076ed06.js";import{u as a}from"./useUniqueId-c4f0155d.js";function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=r=>{const i=t("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,t,n,a,c;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===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==r?void 0:r.id){const[e,t,n,i,s,u]=yield Promise.all([r.email?l(r.email):null,r.phone?l(r.phone):null,r.birthday?l(r.birthday.split("-").join("")):null,r.gender?"m":"f",r.city_name?l(r.city_name).then((e=>e.replace(/\s/g,""))):null,r.name?l(r.name):null]);o("_fbc"),o("_fbp");const d={user_id:r.id};u&&(d.fn=u),e&&(d.em=e),t&&(d.ph=t),n&&(d.db=n),s&&(d.ct=s),null===(c=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===c||c.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[r])},s=e=>{const n=t(),r=t(e);return a()||r.current===e||(n.current=r.current,r.current=e),n.current},u=e=>{const[o,a]=r(e),l=t(0),c=i((e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame((()=>{a(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(l.current))),[o,c]};export{s as a,u as b,c as u};
1
+ import{a as e}from"./tslib.es6-463f2e62.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-b1be0dca.js";import{u as a}from"./useUniqueId-a6a613ce.js";function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=r=>{const i=t("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,t,n,a,c;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===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==r?void 0:r.id){const[e,t,n,i,s,u]=yield Promise.all([r.email?l(r.email):null,r.phone?l(r.phone):null,r.birthday?l(r.birthday.split("-").join("")):null,r.gender?"m":"f",r.city_name?l(r.city_name).then((e=>e.replace(/\s/g,""))):null,r.name?l(r.name):null]);o("_fbc"),o("_fbp");const d={user_id:r.id};u&&(d.fn=u),e&&(d.em=e),t&&(d.ph=t),n&&(d.db=n),s&&(d.ct=s),null===(c=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===c||c.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[r])},s=e=>{const n=t(),r=t(e);return a()||r.current===e||(n.current=r.current,r.current=e),n.current},u=e=>{const[o,a]=r(e),l=t(0),c=i((e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame((()=>{a(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(l.current))),[o,c]};export{s as a,u as b,c as u};
@@ -0,0 +1 @@
1
+ import{useContext as o,useMemo as a}from"react";import{T as e,d as r}from"./translationsContext-ce5d4145.js";import t from"string-format";function n(){const{values:n,locale:s}=o(e)||{locale:"en-PH"};return a((()=>({t:(o,a)=>n?n[o]?a?t(n[o]||o,a):n[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${s}`),a?t(r[o]||o,a):r[o]||o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:s})),[n,s])}export{n as u};
@@ -1,4 +1,4 @@
1
- import"dayjs";import"./screenSizeContext-afe24f18.js";import e,{createContext as t,useContext as n}from"react";import r from"styled-components";import{t as o}from"./theme-875e5b63.js";import{L as a}from"./index-e2c1d836.js";import{M as i}from"./utils-f2d53b55.js";import"./isProduction-0fd1652a.js";import{L as s}from"./Onboarding-10567429.js";import"./gAssets.js";import{_ as p,a as l}from"./tslib.es6-34de753e.js";import{createFormContext as m,yupResolver as d}from"@mantine/form";import"./index.styled-474cfb0b.js";import{B as c}from"./index-5ff9487f.js";import{Container as g,Title as u,Input as b}from"@mantine/core";import"./index-714f7c99.js";import{c as h}from"./index-da540258.js";import"./index.styled-8556d345.js";import{u as f}from"./useTranslations-c605802e.js";import"./index-a740301e.js";import{f as x,n as w,e as E,m as y,R as P,O as j}from"./index-0fb0e636.js";import"./index-ad31ca14.js";import"@mantine/hooks";import"lodash/debounce";import{V as v}from"./Visible-49a5c322.js";import*as M from"yup";import"./translationsContext-fc6486f2.js";import"string-format";const I=t({}),[O,N,T]=m(),k=r.div`
1
+ import"dayjs";import"./screenSizeContext-2f42d159.js";import e,{createContext as t,useContext as n}from"react";import r from"styled-components";import{t as o}from"./theme-de51c819.js";import{L as a}from"./index-4d3a9137.js";import{M as i}from"./utils-8fca0431.js";import"./isProduction-2e232ce7.js";import{L as s}from"./Onboarding-05bf223b.js";import"./gAssets.js";import{_ as p,a as l}from"./tslib.es6-463f2e62.js";import{createFormContext as m,yupResolver as d}from"@mantine/form";import"./index.styled-b5fdf388.js";import{B as c}from"./index-1582057b.js";import{Container as g,Title as u,Input as b}from"@mantine/core";import"./index-9e935134.js";import{c as h}from"./index-27cfb186.js";import"./index.styled-fc0af758.js";import{u as f}from"./useTranslations-b5fe8278.js";import"./index-d95fe6c9.js";import{f as x,n as w,e as E,m as y,R as P,O as j}from"./index-67084a87.js";import"./index-1cb79555.js";import"@mantine/hooks";import"lodash/debounce";import{V as v}from"./Visible-e05a3176.js";import*as M from"yup";import"./translationsContext-ce5d4145.js";import"string-format";const I=t({}),[O,N,T]=m(),k=r.div`
2
2
  margin-top: 70px;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{_ as a,a as e}from"./tslib.es6-34de753e.js";import i,{useMemo as n,useState as r,useEffect as o,Fragment as l}from"react";import{Stack as t,Flex as s,Badge as u,Grid as c,Box as d,Input as m,Container as k,AspectRatio as g,Tabs as h,ScrollArea as p,Divider as v,SimpleGrid as b}from"@mantine/core";import"./gAssets.js";import{f as y,t as z,l as f,u as S,m as M}from"./index-0fb0e636.js";import{B as j}from"./index-84827b34.js";import B from"dayjs";import"./screenSizeContext-afe24f18.js";import A from"styled-components";import{t as P}from"./theme-875e5b63.js";import"./index-e2c1d836.js";import{M as C}from"./utils-f2d53b55.js";import"./isProduction-0fd1652a.js";import{G as K}from"./Onboarding-10567429.js";import{u as w}from"./useTranslations-c605802e.js";import"./index-ad31ca14.js";import{useDisclosure as T}from"@mantine/hooks";import"lodash/debounce";import{S as L}from"./index-822affa3.js";import"./translationsContext-fc6486f2.js";import"string-format";import"./index.styled-474cfb0b.js";import"./index-714f7c99.js";import"./index-da540258.js";import{I as N}from"./index-b3bac285.js";import"./index.styled-8556d345.js";import"./index-a740301e.js";import{M as x}from"./index-c80835a2.js";import{useForm as H}from"@mantine/form";import D from"dayjs/plugin/customParseFormat";import{H as R}from"./index-0823a58a.js";import"@mantine/dates";import"@mantine/carousel";import"lodash/throttle";import"./index-22caf7f4.js";import"./useUniqueId-c4f0155d.js";const G=A.div`
1
+ import{_ as a,a as e}from"./tslib.es6-463f2e62.js";import i,{useMemo as n,useState as r,useEffect as o,Fragment as l}from"react";import{Stack as t,Flex as s,Badge as u,Grid as c,Box as d,Input as m,Container as k,AspectRatio as g,Tabs as h,ScrollArea as p,Divider as v,SimpleGrid as b}from"@mantine/core";import"./gAssets.js";import{f as y,t as z,l as f,u as S,m as M}from"./index-67084a87.js";import{B as j}from"./index-b98c5458.js";import B from"dayjs";import"./screenSizeContext-2f42d159.js";import A from"styled-components";import{t as P}from"./theme-de51c819.js";import"./index-4d3a9137.js";import{M as C}from"./utils-8fca0431.js";import"./isProduction-2e232ce7.js";import{G as K}from"./Onboarding-05bf223b.js";import{u as w}from"./useTranslations-b5fe8278.js";import"./index-1cb79555.js";import{useDisclosure as T}from"@mantine/hooks";import"lodash/debounce";import{S as L}from"./index-2017e495.js";import"./translationsContext-ce5d4145.js";import"string-format";import"./index.styled-b5fdf388.js";import"./index-9e935134.js";import"./index-27cfb186.js";import{I as N}from"./index-e7e79527.js";import"./index.styled-fc0af758.js";import"./index-d95fe6c9.js";import{M as x}from"./index-3cdd76e8.js";import{useForm as H}from"@mantine/form";import D from"dayjs/plugin/customParseFormat";import{H as R}from"./index-dbb51364.js";import"@mantine/dates";import"@mantine/carousel";import"lodash/throttle";import"./index-ccd4242c.js";import"./useUniqueId-a6a613ce.js";const G=A.div`
2
2
  position: relative;
3
3
  padding: 16px;
4
4
  min-height: 110px;
package/build/footer.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-c7e0b905.js"),a=require("./index-f79d0367.js"),l=require("./index-2ad56564.js"),n=require("./index-162a3187.js"),o=require("./theme-1a9c8dfd.js"),r=require("./useTranslations-21728373.js"),i=require("./index-43d4148a.js"),d=require("./index-bbb6ca10.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./tslib.es6-68615b0b.js"),require("./utils-3a8eef75.js"),require("styled-components"),require("./gAssets.js"),require("./isProduction-98c7ea47.js"),require("./Onboarding-1e96a01c.js"),require("./translationsContext-293921e2.js"),require("string-format"),require("./index.styled-9123dab7.js");var s=c(e),u="Lj0qoTD",m="OO-qFWT";const v=({url:e,isMobile:t,dataEventCategory:a,dataEventAction:l,dataEventLabel:n})=>s.default.createElement("div",{className:m,"data-is-mobile":t},s.default.createElement("img",{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":a,"data-event-action":l,"data-content-label":n})),f=({className:e,type:i="main",footerInfo:d,isMobile:c,locale:m})=>{var f,y,E,g,b,p,N,h,k,x,T,F,$,z,q,C,j,L,M,w,B,_,A,H,I,G,S,D;const{t:O}=r.useTranslations(),P=null==d?void 0:d.menu,J=(null===(y=null===(f=null==d?void 0:d.general)||void 0===f?void 0:f.verified)||void 0===y?void 0:y.filter(Boolean))||[];return s.default.createElement("footer",{className:`${u} ${e||""}`,style:"mini"===i?{backgroundColor:o.theme.colors.neutral50}:{}},s.default.createElement(a.Container,null,s.default.createElement("div",{className:"inner","data-type":i},"main"===i?s.default.createElement(s.default.Fragment,null,s.default.createElement("a",{href:"/"},s.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(E=null==d?void 0:d.general)||void 0===E?void 0:E.logo,alt:"Logo","data-is-sehat":"id-ID"===m})),s.default.createElement("div",{className:"columns"},s.default.createElement("div",{className:"newsletter"},s.default.createElement(l.Text,{size:"p1",type:"bold"},null===(g=null==d?void 0:d.general)||void 0===g?void 0:g.content),s.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),s.default.createElement("div",{className:"social"},s.default.createElement(l.Text,{size:"sm",type:"regular"},null===(b=null==d?void 0:d.social)||void 0===b?void 0:b.title),s.default.createElement("div",{className:"icons"},null===(N=null===(p=null==d?void 0:d.social)||void 0===p?void 0:p.socials)||void 0===N?void 0:N.map(((e,t)=>s.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},s.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))))),s.default.createElement("hr",{className:"hrMobile"}))),s.default.createElement("div",null,P&&s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"biglinks"},null===(k=null===(h=P[0])||void 0===h?void 0:h.items)||void 0===k?void 0:k.map(((e,t)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`,className:"bigLink",key:t,href:e.url},e.title)))),s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(x=P[1])||void 0===x?void 0:x.menu_title),null===(F=null===(T=P[1])||void 0===T?void 0:T.items)||void 0===F?void 0:F.map(((e,t)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`,className:"link",href:e.url,key:t},s.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[m]}${e.url}`},e.title))))),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===($=P[2])||void 0===$?void 0:$.menu_title),null===(q=null===(z=P[2])||void 0===z?void 0:z.items)||void 0===q?void 0:q.map(((e,t)=>e.url&&s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},s.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title)))))),s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"otherSites"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(C=null==d?void 0:d.branch)||void 0===C?void 0:C.title),s.default.createElement("div",{className:"flags"},null===(L=null===(j=null==d?void 0:d.branch)||void 0===j?void 0:j.branch)||void 0===L?void 0:L.map(((e,t)=>s.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},s.default.createElement(v,{url:e.flag,isMobile:c,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))))),s.default.createElement("hr",null),s.default.createElement("div",{className:"copyright"},s.default.createElement("div",{className:"copyright-image-wrapper"},J.length?J.map(((e,t)=>s.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},s.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),s.default.createElement(l.Text,{size:"xs",type:"regular",className:"copyright-content"},null===(M=null==d?void 0:d.general)||void 0===M?void 0:M.copyright)),"vi-VN"===m&&s.default.createElement(l.Text,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):s.default.createElement(s.default.Fragment,null,(null==d?void 0:d.menu)&&s.default.createElement("div",{className:"columns"},s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(w=null==d?void 0:d.menu[1])||void 0===w?void 0:w.menu_title),null===(_=null===(B=null==d?void 0:d.menu[1])||void 0===B?void 0:B.items)||void 0===_?void 0:_.map((e=>s.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":`https://${n.domainLocales[m]}${e.url}`,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`},s.default.createElement(l.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[m]}${e.url}`,size:"sm",type:"regular",style:{color:o.theme.colors.gray800}},e.title))))),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==d?void 0:d.menu[2])||void 0===A?void 0:A.menu_title),null===(I=null===(H=null==d?void 0:d.menu[2])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map(((e,t)=>s.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},s.default.createElement(l.Text,{size:"sm",type:"regular",style:{color:o.theme.colors.gray800},dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))))),"mini"!==i&&s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"newsletter"},s.default.createElement("div",{className:"social"},s.default.createElement(l.Text,{size:"sm",type:"regular"},null===(G=null==d?void 0:d.social)||void 0===G?void 0:G.title),s.default.createElement("div",{className:"icons"},null===(D=null===(S=null==d?void 0:d.social)||void 0===S?void 0:S.socials)||void 0===D?void 0:D.map(((e,t)=>s.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},s.default.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",E="GS-7mbG",g="qc5bEb3",b="CQGVeuT",p="_6JMoel-",N="_8eUT8Jr",h="cjDwoLi";const k=({logoType:e="marryBaby",footerMenu:t,background:l})=>{var n;if(!t)return null;const{general:r,menu:c,socials:u}=t;return s.default.createElement("footer",{className:y,style:{backgroundColor:l||"none"}},s.default.createElement("div",{className:h},s.default.createElement(a.Container,null,s.default.createElement("div",{className:E},null==c?void 0:c.map((({menu_title:e,items:t},a)=>s.default.createElement("div",{className:g,key:`mbf${a}`},s.default.createElement(d.MarryBabyText,{className:"title",type:"subtitle-1",color:o.theme.mbColors.pink},e),null==t?void 0:t.map((({title:e,url:t},a)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},s.default.createElement("div",{className:b,key:`mbitem${a}`},s.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},e)))))))))),s.default.createElement(a.Container,null,s.default.createElement("div",{className:p},s.default.createElement(i.Logo,{className:"logo",type:e}),s.default.createElement("div",{className:"content"},s.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},null==r?void 0:r.content)),s.default.createElement("div",{className:"social-link"},null==u?void 0:u.map((({icon:e,name:t,url:a},l)=>s.default.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},s.default.createElement("img",{loading:"lazy",src:e,alt:t}))))))),s.default.createElement("div",{className:N},s.default.createElement(a.Container,null,s.default.createElement("div",{className:"content"},s.default.createElement(d.MarryBabyText,{type:"bodytext-3",color:o.theme.colors.white},null==r?void 0:r.copyright),s.default.createElement("div",{className:"verify"},null===(n=null==r?void 0:r.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>s.default.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t})))))))))};exports.Footer=({type:e,isMobile:t=!0,locale:a,footerInfo:l,siteType:n,background:o})=>"helloSites"===n?s.default.createElement(f,{isMobile:t,type:e,locale:a,footerInfo:l||{}}):s.default.createElement(k,{footerMenu:l,background:o});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-43394201.js"),a=require("./index-73da7c60.js"),l=require("./index-404a3d73.js"),n=require("./index-15c7a577.js"),o=require("./theme-dbe18ce3.js"),r=require("./useTranslations-20a122aa.js"),i=require("./index-0729ed0d.js"),d=require("./index-8471cc1e.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./tslib.es6-42ca090c.js"),require("./utils-73981712.js"),require("styled-components"),require("./gAssets.js"),require("./isProduction-0e33663c.js"),require("./Onboarding-c6871f42.js"),require("./translationsContext-3e475b46.js"),require("string-format"),require("./index.styled-46ceab59.js");var s=c(e),u="Lj0qoTD",m="OO-qFWT";const v=({url:e,isMobile:t,dataEventCategory:a,dataEventAction:l,dataEventLabel:n})=>s.default.createElement("div",{className:m,"data-is-mobile":t},s.default.createElement("img",{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":a,"data-event-action":l,"data-content-label":n})),f=({className:e,type:i="main",footerInfo:d,isMobile:c,locale:m})=>{var f,y,E,g,p,b,N,h,k,x,T,F,$,z,q,C,j,L,M,w,B,_,A,H,I,G,S,D;const{t:O}=r.useTranslations(),P=null==d?void 0:d.menu,J=(null===(y=null===(f=null==d?void 0:d.general)||void 0===f?void 0:f.verified)||void 0===y?void 0:y.filter(Boolean))||[];return s.default.createElement("footer",{className:`${u} ${e||""}`,style:"mini"===i?{backgroundColor:o.theme.colors.neutral50}:{}},s.default.createElement(a.Container,null,s.default.createElement("div",{className:"inner","data-type":i},"main"===i?s.default.createElement(s.default.Fragment,null,s.default.createElement("a",{href:"/"},s.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(E=null==d?void 0:d.general)||void 0===E?void 0:E.logo,alt:"Logo","data-is-sehat":"id-ID"===m})),s.default.createElement("div",{className:"columns"},s.default.createElement("div",{className:"newsletter"},s.default.createElement(l.Text,{size:"p1",type:"bold"},null===(g=null==d?void 0:d.general)||void 0===g?void 0:g.content),s.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),s.default.createElement("div",{className:"social"},s.default.createElement(l.Text,{size:"sm",type:"regular"},null===(p=null==d?void 0:d.social)||void 0===p?void 0:p.title),s.default.createElement("div",{className:"icons"},null===(N=null===(b=null==d?void 0:d.social)||void 0===b?void 0:b.socials)||void 0===N?void 0:N.map(((e,t)=>s.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},s.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))))),s.default.createElement("hr",{className:"hrMobile"}))),s.default.createElement("div",null,P&&s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"biglinks"},null===(k=null===(h=P[0])||void 0===h?void 0:h.items)||void 0===k?void 0:k.map(((e,t)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`,className:"bigLink",key:t,href:e.url},e.title)))),s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(x=P[1])||void 0===x?void 0:x.menu_title),null===(F=null===(T=P[1])||void 0===T?void 0:T.items)||void 0===F?void 0:F.map(((e,t)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`,className:"link",href:e.url,key:t},s.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[m]}${e.url}`},e.title))))),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===($=P[2])||void 0===$?void 0:$.menu_title),null===(q=null===(z=P[2])||void 0===z?void 0:z.items)||void 0===q?void 0:q.map(((e,t)=>e.url&&s.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},s.default.createElement(l.Text,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title)))))),s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"otherSites"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(C=null==d?void 0:d.branch)||void 0===C?void 0:C.title),s.default.createElement("div",{className:"flags"},null===(L=null===(j=null==d?void 0:d.branch)||void 0===j?void 0:j.branch)||void 0===L?void 0:L.map(((e,t)=>s.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},s.default.createElement(v,{url:e.flag,isMobile:c,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))))),s.default.createElement("hr",null),s.default.createElement("div",{className:"copyright"},s.default.createElement("div",{className:"copyright-image-wrapper"},J.length?J.map(((e,t)=>s.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},s.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),s.default.createElement(l.Text,{size:"xs",type:"regular",className:"copyright-content"},null===(M=null==d?void 0:d.general)||void 0===M?void 0:M.copyright)),"vi-VN"===m&&s.default.createElement(l.Text,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):s.default.createElement(s.default.Fragment,null,(null==d?void 0:d.menu)&&s.default.createElement("div",{className:"columns"},s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(w=null==d?void 0:d.menu[1])||void 0===w?void 0:w.menu_title),null===(_=null===(B=null==d?void 0:d.menu[1])||void 0===B?void 0:B.items)||void 0===_?void 0:_.map((e=>s.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":`https://${n.domainLocales[m]}${e.url}`,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[m]}${e.url}`},s.default.createElement(l.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[m]}${e.url}`,size:"sm",type:"regular",style:{color:o.theme.colors.gray800}},e.title))))),s.default.createElement("div",{className:"mHalf"},s.default.createElement(l.Text,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==d?void 0:d.menu[2])||void 0===A?void 0:A.menu_title),null===(I=null===(H=null==d?void 0:d.menu[2])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map(((e,t)=>s.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},s.default.createElement(l.Text,{size:"sm",type:"regular",style:{color:o.theme.colors.gray800},dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))))),"mini"!==i&&s.default.createElement("hr",{className:"hrMobile"}),s.default.createElement("div",{className:"newsletter"},s.default.createElement("div",{className:"social"},s.default.createElement(l.Text,{size:"sm",type:"regular"},null===(G=null==d?void 0:d.social)||void 0===G?void 0:G.title),s.default.createElement("div",{className:"icons"},null===(D=null===(S=null==d?void 0:d.social)||void 0===S?void 0:S.socials)||void 0===D?void 0:D.map(((e,t)=>s.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},s.default.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",E="GS-7mbG",g="qc5bEb3",p="CQGVeuT",b="_6JMoel-",N="_8eUT8Jr",h="cjDwoLi";const k=({logoType:e="marryBaby",footerMenu:t,background:l})=>{var n;if(!t)return null;const{general:r,menu:c,socials:u}=t;return s.default.createElement("footer",{className:y,style:{backgroundColor:l||"none"}},s.default.createElement("div",{className:h},s.default.createElement(a.Container,null,s.default.createElement("div",{className:E},null==c?void 0:c.map((({menu_title:e,items:t},a)=>s.default.createElement("div",{className:g,key:`mbf${a}`},s.default.createElement(d.MarryBabyText,{className:"title",type:"subtitle-1",color:o.theme.mbColors.pink},e),null==t?void 0:t.map((({title:e,url:t},a)=>s.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},s.default.createElement("div",{className:p,key:`mbitem${a}`},s.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},e)))))))))),s.default.createElement(a.Container,null,s.default.createElement("div",{className:b},s.default.createElement(i.Logo,{className:"logo",type:e}),s.default.createElement("div",{className:"content"},s.default.createElement(d.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},null==r?void 0:r.content)),s.default.createElement("div",{className:"social-link"},null==u?void 0:u.map((({icon:e,name:t,url:a},l)=>s.default.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},s.default.createElement("img",{loading:"lazy",src:e,alt:t}))))))),s.default.createElement("div",{className:N},s.default.createElement(a.Container,null,s.default.createElement("div",{className:"content"},s.default.createElement(d.MarryBabyText,{type:"bodytext-3",color:o.theme.colors.white},null==r?void 0:r.copyright),s.default.createElement("div",{className:"verify"},null===(n=null==r?void 0:r.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>s.default.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t})))))))))};exports.Footer=({type:e,isMobile:t=!0,locale:a,footerInfo:l,siteType:n,background:o})=>"helloSites"===n?s.default.createElement(f,{isMobile:t,type:e,locale:a,footerInfo:l||{}}):s.default.createElement(k,{footerMenu:l,background:o});
package/build/gAssets.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-162a3187.js"),s=require("./isProduction-98c7ea47.js");require("./Onboarding-1e96a01c.js");const o="hellosehat.com";class t{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,o,t)=>{const i="https://hhg-common."+[o||this.getBaseDomain(),t||this.subPath,e].join("/");return s.isProduction||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,t=s.split("."),i=e.domainLocales[Object.keys(e.domainLocales).find((o=>s.includes(e.domainLocales[o])))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?o:i}return o}}const i=new t;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=i,exports.GAssets=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-15c7a577.js"),s=require("./isProduction-0e33663c.js");require("./Onboarding-c6871f42.js");const o="hellosehat.com";class t{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,o,t)=>{const i="https://hhg-common."+[o||this.getBaseDomain(),t||this.subPath,e].join("/");return s.isProduction||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:s}=window.location,t=s.split("."),i=e.domainLocales[Object.keys(e.domainLocales).find((o=>s.includes(e.domainLocales[o])))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every((e=>{return s=e,!isNaN(parseFloat(s))&&isFinite(s);var s}))||!i?o:i}return o}}const i=new t;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e.domainLocales[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]),exports.CommonGAssets=i,exports.GAssets=t;
@@ -1 +1 @@
1
- "use strict";var t=require("./tslib.es6-68615b0b.js"),e=require("./core-bce57a3f.js"),i=require("./normalizeLink-72b84dc0.js"),o=require("./routing-79e9fce4.js");const l=(t,e)=>{var i,o;if(!t)return{};const l="tl-PH"===e?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${l}/health-tools`+(null===(o=t.link)||void 0===o?void 0:o.replace(`${l}/`,"/")),subtitle:t.subtitle,title:t.title}},n=e=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{let r;r="undefined"!=typeof window?window.fetch:yield require("node-fetch");const a="tl-PH"===e?"lang=fil":"";let s=[];try{const d=yield r(i.normalizeLinkSlash(`${o.getDiscoverApiDomain(e)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));s=(null===(n=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>l(t,e))))||[]}catch(t){}return s}catch(t){console.error(t)}}));exports.formatHealthTool=l,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=i=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield e.getDataWithCache("all-health-tools",(()=>n(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
1
+ "use strict";var t=require("./tslib.es6-42ca090c.js"),e=require("./core-da0e7208.js"),i=require("./normalizeLink-f2e3baa1.js"),o=require("./routing-c3ffb52b.js");const l=(t,e)=>{var i,o;if(!t)return{};const l="tl-PH"===e?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${l}/health-tools`+(null===(o=t.link)||void 0===o?void 0:o.replace(`${l}/`,"/")),subtitle:t.subtitle,title:t.title}},n=e=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{let a;a="undefined"!=typeof window?window.fetch:yield require("node-fetch");const r="tl-PH"===e?"lang=fil":"";let s=[];try{const d=yield a(i.normalizeLinkSlash(`${o.getDiscoverApiDomain(e)}/wp-json/api/healthtools?ismenu=0${r?"&"+r:""}`)).then((t=>t.json()));s=(null===(n=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>l(t,e))))||[]}catch(t){}return s}catch(t){console.error(t)}}));exports.formatHealthTool=l,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=i=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield e.getDataWithCache("all-health-tools",(()=>n(i||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
@@ -1 +1 @@
1
- "use strict";var e=require("react"),t=require("./Onboarding-1e96a01c.js"),l=require("./gAssets.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=C(e);exports.getSocialList=e=>[{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{icon:a.default.createElement("img",{src:l.CommonGAssets.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`,allowedLocales:[t.LOCALE.Vietnam]},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("g",{clipPath:"url(#clip0_687_88944)"},a.default.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),a.default.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),a.default.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},a.default.createElement("stop",{stopColor:"#36F46C"}),a.default.createElement("stop",{offset:"1",stopColor:"#03D749"})),a.default.createElement("clipPath",{id:"clip0_687_88944"},a.default.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},a.default.createElement("g",{id:"surface1"},a.default.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),a.default.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${e}`,allowedLocales:[t.LOCALE.Taiwan]}];
1
+ "use strict";var e=require("react"),t=require("./Onboarding-c6871f42.js"),l=require("./gAssets.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=C(e);exports.getSocialList=e=>[{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{icon:a.default.createElement("img",{src:l.CommonGAssets.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`,allowedLocales:[t.LOCALE.Vietnam]},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("g",{clipPath:"url(#clip0_687_88944)"},a.default.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),a.default.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),a.default.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},a.default.createElement("stop",{stopColor:"#36F46C"}),a.default.createElement("stop",{offset:"1",stopColor:"#03D749"})),a.default.createElement("clipPath",{id:"clip0_687_88944"},a.default.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),a.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},a.default.createElement("g",{id:"surface1"},a.default.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),a.default.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),a.default.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${e}`,allowedLocales:[t.LOCALE.Taiwan]}];
package/build/hooks.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-21728373.js"),s=require("./useScrollbarSize-5b3b19b1.js"),r=require("./useRafState-2139defa.js"),i=require("./useHealthToolCache-5bb0b780.js"),u=require("./useIsInit-4db8b56c.js"),t=require("./useOutsideClick-c07db0f6.js"),a=require("./useUniqueId-f59551e6.js");require("react"),require("./translationsContext-293921e2.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-68615b0b.js"),require("./cookieHelper-e3e70eb3.js"),require("./getDynamicHealthTool-c32d21e9.js"),require("./core-bce57a3f.js"),require("./isProduction-98c7ea47.js"),require("./normalizeLink-72b84dc0.js"),require("./routing-79e9fce4.js"),require("./index-162a3187.js"),require("./Onboarding-1e96a01c.js"),exports.useTranslations=e.useTranslations,exports.MEASURE_ELEMENT_CLASS=s.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=s.useScrollbarSize,exports.useFbDataLayer=r.useFbDataLayer,exports.usePrevious=r.usePrevious,exports.useRafState=r.useRafState,exports.useHealthToolsCache=i.useHealthToolsCache,exports.useIsInit=u.useIsInit,exports.initSharedOutSideClickListener=t.initSharedOutSideClickListener,exports.useOutsideClick=t.useOutsideClick,exports.useSharedOutsideClick=t.useSharedOutsideClick,exports.useInitialMount=a.useInitialMount,exports.useUniqueId=a.useUniqueId;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-20a122aa.js"),s=require("./useScrollbarSize-6b0408ca.js"),r=require("./useRafState-8831c00f.js"),i=require("./useHealthToolCache-6becf0d9.js"),u=require("./useIsInit-3184a248.js"),t=require("./useOutsideClick-c252593f.js"),a=require("./useUniqueId-e4c1f25e.js");require("react"),require("./translationsContext-3e475b46.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-42ca090c.js"),require("./cookieHelper-fc31669c.js"),require("./getDynamicHealthTool-4dc0d840.js"),require("./core-da0e7208.js"),require("./isProduction-0e33663c.js"),require("./normalizeLink-f2e3baa1.js"),require("./routing-c3ffb52b.js"),require("./index-15c7a577.js"),require("./Onboarding-c6871f42.js"),exports.useTranslations=e.useTranslations,exports.MEASURE_ELEMENT_CLASS=s.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=s.useScrollbarSize,exports.useFbDataLayer=r.useFbDataLayer,exports.usePrevious=r.usePrevious,exports.useRafState=r.useRafState,exports.useHealthToolsCache=i.useHealthToolsCache,exports.useIsInit=u.useIsInit,exports.initSharedOutSideClickListener=t.initSharedOutSideClickListener,exports.useOutsideClick=t.useOutsideClick,exports.useSharedOutsideClick=t.useSharedOutsideClick,exports.useInitialMount=a.useInitialMount,exports.useUniqueId=a.useUniqueId;
package/build/i18n.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./translationsProvider-f627001f.js"),t=require("./translationsContext-293921e2.js");require("react"),exports.TranslationsProvider=r.TranslationsProvider,exports.translationsMap=r.translationsMap,exports.TranslationsContext=t.TranslationsContext,exports.defaultTranslations=t.defaultTranslations;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./translationsProvider-c0f248b5.js"),t=require("./translationsContext-3e475b46.js");require("react"),exports.TranslationsProvider=r.TranslationsProvider,exports.translationsMap=r.translationsMap,exports.TranslationsContext=t.TranslationsContext,exports.defaultTranslations=t.defaultTranslations;