@hhgtech/hhg-components 1.28.58 → 1.28.59

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 (301) hide show
  1. package/build/{Plus-f712ad34.js → Plus-155fd41f.js} +1 -1
  2. package/build/{WhatsApp-922bab38.js → WhatsApp-cbd2b870.js} +1 -1
  3. package/build/babyGrowth.js +2 -2
  4. package/build/cache.js +1 -1
  5. package/build/care.js +1 -1
  6. package/build/components.js +1 -1
  7. package/build/{constants-d6564fca.js → constants-5f9a141f.js} +1 -1
  8. package/build/{constants-ce8bc3a9.js → constants-6a8e6824.js} +1 -1
  9. package/build/constants.js +1 -1
  10. package/build/core-b543f933.js +1 -0
  11. package/build/{dataTransform-32d3fe0a.js → dataTransform-9d1496b9.js} +1 -1
  12. package/build/ecom.js +1 -1
  13. package/build/esm/{Plus-e140d11d.js → Plus-0795a68c.js} +1 -1
  14. package/build/esm/{WhatsApp-94b28f38.js → WhatsApp-c7fd561d.js} +1 -1
  15. package/build/esm/babyGrowth.js +2 -2
  16. package/build/esm/cache.js +1 -1
  17. package/build/esm/care.js +1 -1
  18. package/build/esm/components.js +1 -1
  19. package/build/esm/{constants-cbdfa9c7.js → constants-7b7e7784.js} +1 -1
  20. package/build/esm/{constants-465ad352.js → constants-d7aa1c1c.js} +1 -1
  21. package/build/esm/constants.js +1 -1
  22. package/build/esm/{core-c724d8de.js → core-87a3d383.js} +1 -1
  23. package/build/esm/{dataTransform-426f6148.js → dataTransform-9c92d261.js} +1 -1
  24. package/build/esm/ecom.js +1 -1
  25. package/build/esm/footer.js +1 -1
  26. package/build/esm/gAssets.js +1 -1
  27. package/build/esm/getDynamicHealthTool-f55ca837.js +1 -0
  28. package/build/esm/{getSocialList-7519b152.js → getSocialList-be651baf.js} +1 -1
  29. package/build/esm/hooks.js +1 -1
  30. package/build/esm/i18n.js +1 -1
  31. package/build/esm/i18nV2.js +1 -1
  32. package/build/esm/{index-0bbb28e1.js → index-03b6469c.js} +1 -1
  33. package/build/esm/{index-fcd1bf3c.js → index-09d9862b.js} +1 -1
  34. package/build/esm/{index-3c7f4191.js → index-0ce3ea30.js} +1 -1
  35. package/build/esm/{index-902cf5bc.js → index-1c858659.js} +1 -1
  36. package/build/esm/{index-69ffebf9.js → index-36467b48.js} +1 -1
  37. package/build/esm/index-404bb127.js +1 -0
  38. package/build/esm/{index-b20b680e.js → index-417dbb92.js} +1 -1
  39. package/build/esm/index-47ab8d3d.js +1 -0
  40. package/build/esm/{index-3fa780c2.js → index-47b11c19.js} +1 -1
  41. package/build/esm/{index-b1190bab.js → index-4fa69484.js} +1 -1
  42. package/build/esm/{index-0060a1e2.js → index-5222461b.js} +1 -1
  43. package/build/esm/index-5db9b9d7.js +117 -0
  44. package/build/esm/{index-f7d2862f.js → index-64dc6b83.js} +1 -1
  45. package/build/esm/{index-c809f760.js → index-77b369f0.js} +1 -1
  46. package/build/esm/index-88f24735.js +1 -0
  47. package/build/esm/{index-bf735873.js → index-a9cbc4b7.js} +1 -1
  48. package/build/esm/{index-37fbc159.js → index-b6c758c5.js} +1 -1
  49. package/build/esm/{index-40a24566.js → index-bfb36e6c.js} +1 -1
  50. package/build/esm/{index-861f1f7a.js → index-cce4d6b6.js} +3 -3
  51. package/build/esm/{index-5157d6fe.js → index-ed7346f2.js} +1 -1
  52. package/build/esm/{index-bd8670b9.js → index-f047d212.js} +1 -1
  53. package/build/esm/{index-a966d393.js → index-f76eef86.js} +5 -5
  54. package/build/esm/{index-dd1b52b3.js → index-fe314c0f.js} +1 -1
  55. package/build/esm/index.js +1 -1
  56. package/build/esm/{index.styled-1cda3f12.js → index.styled-500647b4.js} +3 -3
  57. package/build/esm/{index.styles-443a8b9d.js → index.styles-fa4052da.js} +1 -1
  58. package/build/esm/lead.js +1 -1
  59. package/build/esm/mantine.js +1 -1
  60. package/build/esm/misc.js +1 -1
  61. package/build/esm/navigation.js +1 -1
  62. package/build/esm/onboardingV2.js +1 -1
  63. package/build/esm/pwg.js +5 -5
  64. package/build/esm/{routing-6deb7068.js → routing-7c6d65ae.js} +1 -1
  65. package/build/esm/subot.js +1 -1
  66. package/build/esm/together/components/atoms/cardReactions/element/index.d.ts +6 -5
  67. package/build/esm/together/components/atoms/cardReactions/index.d.ts +3 -3
  68. package/build/esm/together/components/molecules/cardAuthor/authorBadgeItem/index.d.ts +3 -0
  69. package/build/esm/together/components/molecules/cardAuthor/authorBadgeItem/index.styles.d.ts +8 -0
  70. package/build/esm/together/components/molecules/cardAuthor/context.d.ts +13 -0
  71. package/build/esm/together/components/molecules/cardAuthor/displayName.d.ts +2 -0
  72. package/build/esm/together/components/molecules/cardAuthor/index.d.ts +12 -13
  73. package/build/esm/together/components/molecules/cardAuthor/index.styles.d.ts +0 -1
  74. package/build/esm/together/interfaces/types.d.ts +6 -0
  75. package/build/esm/together.js +1 -1
  76. package/build/esm/{types-1a715e98.js → types-8e137b89.js} +67 -67
  77. package/build/esm/{types-43a9a7c2.js → types-a8c76d05.js} +22 -22
  78. package/build/esm/types.js +1 -1
  79. package/build/esm/{useCategory-68272cd2.js → useCategory-21a9ba33.js} +1 -1
  80. package/build/esm/{useHealthToolCache-42739df7.js → useHealthToolCache-148be933.js} +1 -1
  81. package/build/esm/usePlacesAutocomplete-96e52ce9.js +1 -0
  82. package/build/esm/{useTranslations-dcdb33ca.js → useTranslations-78d82c21.js} +1 -1
  83. package/build/esm/{utils-c3cf3400.js → utils-3e125f1e.js} +2 -2
  84. package/build/esm/utils-5af9dad1.js +1 -0
  85. package/build/esm/{utils-498ba951.js → utils-f842970f.js} +1 -1
  86. package/build/esm/vaccination.js +1 -1
  87. package/build/footer.js +1 -1
  88. package/build/gAssets.js +1 -1
  89. package/build/getDynamicHealthTool-c3acf06a.js +1 -0
  90. package/build/{getSocialList-1eac634c.js → getSocialList-3e010454.js} +1 -1
  91. package/build/hooks.js +1 -1
  92. package/build/i18n.js +1 -1
  93. package/build/i18nV2.js +1 -1
  94. package/build/{index-39d339f9.js → index-046ee378.js} +3 -3
  95. package/build/{index-bf9081d8.js → index-14cdaffe.js} +1 -1
  96. package/build/{index-98916ae2.js → index-222727c4.js} +3 -3
  97. package/build/index-296a0b5b.js +1 -0
  98. package/build/{index-7a5bf34a.js → index-2deaed20.js} +1 -1
  99. package/build/{index-b1a10c8d.js → index-30443c6e.js} +1 -1
  100. package/build/{index-cf4e2f0b.js → index-3f91ded6.js} +1 -1
  101. package/build/{index-36ed9fcc.js → index-48bcbf86.js} +1 -1
  102. package/build/{index-1e823830.js → index-6f106161.js} +2 -2
  103. package/build/{index-97e4387e.js → index-7feececd.js} +1 -1
  104. package/build/{index-cbebaa19.js → index-80fbf9a2.js} +1 -1
  105. package/build/{index-6584dd52.js → index-8199c76f.js} +1 -1
  106. package/build/{index-46e10bf4.js → index-86439785.js} +1 -1
  107. package/build/index-ae905846.js +1 -0
  108. package/build/index-ba567cf6.js +1 -0
  109. package/build/{index-9ed0b6ca.js → index-bbdde6e0.js} +1 -1
  110. package/build/{index-0b39ed00.js → index-e0c87872.js} +1 -1
  111. package/build/{index-30263e2c.js → index-e4d32d14.js} +1 -1
  112. package/build/{index-4ded8a86.js → index-eca857bd.js} +1 -1
  113. package/build/{index-dc5707d7.js → index-f39724a1.js} +2 -2
  114. package/build/{index-ae2e69b4.js → index-f6cc5b05.js} +2 -2
  115. package/build/{index-e72e40d0.js → index-fecb8f45.js} +19 -19
  116. package/build/index-ffd92aea.js +1 -0
  117. package/build/index.js +1 -1
  118. package/build/{index.styled-f9544ae0.js → index.styled-3811edd9.js} +1 -1
  119. package/build/{index.styles-3a92c242.js → index.styles-b34ee290.js} +1 -1
  120. package/build/lead.js +1 -1
  121. package/build/mantine.js +1 -1
  122. package/build/misc.js +1 -1
  123. package/build/navigation.js +1 -1
  124. package/build/onboardingV2.js +1 -1
  125. package/build/pwg.js +1 -1
  126. package/build/{routing-729273bd.js → routing-29d56eb6.js} +1 -1
  127. package/build/subot.js +1 -1
  128. package/build/together/components/atoms/cardReactions/element/index.d.ts +6 -5
  129. package/build/together/components/atoms/cardReactions/index.d.ts +3 -3
  130. package/build/together/components/molecules/cardAuthor/authorBadgeItem/index.d.ts +3 -0
  131. package/build/together/components/molecules/cardAuthor/authorBadgeItem/index.styles.d.ts +8 -0
  132. package/build/together/components/molecules/cardAuthor/context.d.ts +13 -0
  133. package/build/together/components/molecules/cardAuthor/displayName.d.ts +2 -0
  134. package/build/together/components/molecules/cardAuthor/index.d.ts +12 -13
  135. package/build/together/components/molecules/cardAuthor/index.styles.d.ts +0 -1
  136. package/build/together/interfaces/types.d.ts +6 -0
  137. package/build/together.js +1 -1
  138. package/build/{types-e26f31fd.js → types-341cbbd1.js} +1 -1
  139. package/build/{types-74c5ac5f.js → types-760db918.js} +67 -67
  140. package/build/types.js +1 -1
  141. package/build/{useCategory-2f81aa9a.js → useCategory-d3020719.js} +1 -1
  142. package/build/{useHealthToolCache-ae84171c.js → useHealthToolCache-728f118d.js} +1 -1
  143. package/build/{usePlacesAutocomplete-d26bd8db.js → usePlacesAutocomplete-07a7b610.js} +1 -1
  144. package/build/{useTranslations-954fe610.js → useTranslations-d2cbefef.js} +1 -1
  145. package/build/utils-1a351432.js +1 -0
  146. package/build/{utils-2bd750bd.js → utils-90cf77ff.js} +2 -2
  147. package/build/{utils-40ccbbd4.js → utils-af90797a.js} +1 -1
  148. package/build/vaccination.js +1 -1
  149. package/package.json +1 -1
  150. package/build/core-e70f95a2.js +0 -1
  151. package/build/esm/getDynamicHealthTool-33b7f5d8.js +0 -1
  152. package/build/esm/index-59276832.js +0 -1
  153. package/build/esm/index-662bfc5d.js +0 -1
  154. package/build/esm/index-6674d1d3.js +0 -117
  155. package/build/esm/index-e2d8ff1c.js +0 -1
  156. package/build/esm/usePlacesAutocomplete-4659e7a7.js +0 -1
  157. package/build/esm/utils-ea76be2a.js +0 -1
  158. package/build/getDynamicHealthTool-57465d04.js +0 -1
  159. package/build/index-11479f6e.js +0 -1
  160. package/build/index-17b96c15.js +0 -1
  161. package/build/index-732603df.js +0 -1
  162. package/build/index-86c0869b.js +0 -1
  163. package/build/utils-ff04e1a6.js +0 -1
  164. /package/build/{BMI_BOYS.percentile.monthly-1c06195c.js → BMI_BOYS.percentile.monthly-dc83dcf5.js} +0 -0
  165. /package/build/{BMI_BOYS.percentile.weekly-309cc5c4.js → BMI_BOYS.percentile.weekly-e3dff055.js} +0 -0
  166. /package/build/{BMI_BOYS.percentile.yearly-362925bc.js → BMI_BOYS.percentile.yearly-7b400a2c.js} +0 -0
  167. /package/build/{BMI_BOYS.zscore.monthly-86c7e9c5.js → BMI_BOYS.zscore.monthly-22e88be5.js} +0 -0
  168. /package/build/{BMI_BOYS.zscore.weekly-82677a28.js → BMI_BOYS.zscore.weekly-7254d38e.js} +0 -0
  169. /package/build/{BMI_BOYS.zscore.yearly-9ae503cc.js → BMI_BOYS.zscore.yearly-0ce1987c.js} +0 -0
  170. /package/build/{BMI_GIRLS.percentile.monthly-8343be6e.js → BMI_GIRLS.percentile.monthly-8f29513e.js} +0 -0
  171. /package/build/{BMI_GIRLS.percentile.weekly-7a2fda0a.js → BMI_GIRLS.percentile.weekly-b13d593f.js} +0 -0
  172. /package/build/{BMI_GIRLS.percentile.yearly-43ee2f14.js → BMI_GIRLS.percentile.yearly-53368595.js} +0 -0
  173. /package/build/{BMI_GIRLS.zscore.monthly-b96f5384.js → BMI_GIRLS.zscore.monthly-a453df29.js} +0 -0
  174. /package/build/{BMI_GIRLS.zscore.weekly-732836b5.js → BMI_GIRLS.zscore.weekly-6a5afb2f.js} +0 -0
  175. /package/build/{BMI_GIRLS.zscore.yearly-83bcd846.js → BMI_GIRLS.zscore.yearly-7e400eed.js} +0 -0
  176. /package/build/{ChevronDown-271c6086.js → ChevronDown-e3a06b59.js} +0 -0
  177. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-44e08c28.js → HEAD CIRCUM_BOYS.percentile.monthly-3bf214c5.js} +0 -0
  178. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-44d051d4.js → HEAD CIRCUM_BOYS.percentile.weekly-10c63505.js} +0 -0
  179. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-ec50f8c3.js → HEAD CIRCUM_BOYS.percentile.yearly-ec027f7c.js} +0 -0
  180. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1693daf7.js → HEAD CIRCUM_BOYS.zscore.monthly-4b2f4e10.js} +0 -0
  181. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-e9a374bb.js → HEAD CIRCUM_BOYS.zscore.weekly-5a6c7eed.js} +0 -0
  182. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-3fdab8c6.js → HEAD CIRCUM_BOYS.zscore.yearly-c6d5d99a.js} +0 -0
  183. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-fb8ad75c.js → HEAD CIRCUM_GIRLS.percentile.monthly-f38e143e.js} +0 -0
  184. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b968fea2.js → HEAD CIRCUM_GIRLS.percentile.weekly-961e9398.js} +0 -0
  185. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-7aa7724b.js → HEAD CIRCUM_GIRLS.percentile.yearly-fb89c9d5.js} +0 -0
  186. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-b79dd559.js → HEAD CIRCUM_GIRLS.zscore.monthly-f4be59eb.js} +0 -0
  187. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-3ed98ac6.js → HEAD CIRCUM_GIRLS.zscore.weekly-b1435610.js} +0 -0
  188. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3d09b324.js → HEAD CIRCUM_GIRLS.zscore.yearly-44f4bf7e.js} +0 -0
  189. /package/build/{HEIGHT_BOYS.percentile.monthly-84c2134d.js → HEIGHT_BOYS.percentile.monthly-9d116dae.js} +0 -0
  190. /package/build/{HEIGHT_BOYS.percentile.weekly-2f5fac9b.js → HEIGHT_BOYS.percentile.weekly-af5e9330.js} +0 -0
  191. /package/build/{HEIGHT_BOYS.percentile.yearly-2a16f55c.js → HEIGHT_BOYS.percentile.yearly-84c68900.js} +0 -0
  192. /package/build/{HEIGHT_BOYS.zscore.monthly-059667dd.js → HEIGHT_BOYS.zscore.monthly-3f6f7a60.js} +0 -0
  193. /package/build/{HEIGHT_BOYS.zscore.weekly-45faee0f.js → HEIGHT_BOYS.zscore.weekly-191d8a50.js} +0 -0
  194. /package/build/{HEIGHT_BOYS.zscore.yearly-76930d9f.js → HEIGHT_BOYS.zscore.yearly-9e6a420d.js} +0 -0
  195. /package/build/{HEIGHT_GIRLS.percentile.monthly-365f5b43.js → HEIGHT_GIRLS.percentile.monthly-edbe76b4.js} +0 -0
  196. /package/build/{HEIGHT_GIRLS.percentile.weekly-87840310.js → HEIGHT_GIRLS.percentile.weekly-9656f527.js} +0 -0
  197. /package/build/{HEIGHT_GIRLS.percentile.yearly-eab5b71f.js → HEIGHT_GIRLS.percentile.yearly-d5e9646f.js} +0 -0
  198. /package/build/{HEIGHT_GIRLS.zscore.monthly-5d2026a3.js → HEIGHT_GIRLS.zscore.monthly-7962a30f.js} +0 -0
  199. /package/build/{HEIGHT_GIRLS.zscore.weekly-a4f77ba1.js → HEIGHT_GIRLS.zscore.weekly-00091ba0.js} +0 -0
  200. /package/build/{HEIGHT_GIRLS.zscore.yearly-49bf5c20.js → HEIGHT_GIRLS.zscore.yearly-3f3bdcf2.js} +0 -0
  201. /package/build/{Subot-783c8b35.js → Subot-da4770e7.js} +0 -0
  202. /package/build/{Visible-cbe2b892.js → Visible-bbf989e9.js} +0 -0
  203. /package/build/{WEIGHT_BOYS.percentile.monthly-a83e56b9.js → WEIGHT_BOYS.percentile.monthly-0efda3d8.js} +0 -0
  204. /package/build/{WEIGHT_BOYS.percentile.weekly-ffc224c7.js → WEIGHT_BOYS.percentile.weekly-da0ea954.js} +0 -0
  205. /package/build/{WEIGHT_BOYS.percentile.yearly-4762b388.js → WEIGHT_BOYS.percentile.yearly-f6da0f3e.js} +0 -0
  206. /package/build/{WEIGHT_BOYS.zscore.monthly-20d07ddd.js → WEIGHT_BOYS.zscore.monthly-69b7c7f8.js} +0 -0
  207. /package/build/{WEIGHT_BOYS.zscore.weekly-b76fe6a2.js → WEIGHT_BOYS.zscore.weekly-288a675a.js} +0 -0
  208. /package/build/{WEIGHT_BOYS.zscore.yearly-56d6ddd9.js → WEIGHT_BOYS.zscore.yearly-74aa3f11.js} +0 -0
  209. /package/build/{WEIGHT_GIRLS.percentile.monthly-7d179a3a.js → WEIGHT_GIRLS.percentile.monthly-c507c65f.js} +0 -0
  210. /package/build/{WEIGHT_GIRLS.percentile.weekly-3eab2756.js → WEIGHT_GIRLS.percentile.weekly-f08c1806.js} +0 -0
  211. /package/build/{WEIGHT_GIRLS.percentile.yearly-1feeb7aa.js → WEIGHT_GIRLS.percentile.yearly-65e7c887.js} +0 -0
  212. /package/build/{WEIGHT_GIRLS.zscore.monthly-df4c89cb.js → WEIGHT_GIRLS.zscore.monthly-545572f3.js} +0 -0
  213. /package/build/{WEIGHT_GIRLS.zscore.weekly-7ad866dd.js → WEIGHT_GIRLS.zscore.weekly-0eb78b8f.js} +0 -0
  214. /package/build/{WEIGHT_GIRLS.zscore.yearly-cd080073.js → WEIGHT_GIRLS.zscore.yearly-f82147f8.js} +0 -0
  215. /package/build/{animation-7187a3d6.js → animation-6d0e530d.js} +0 -0
  216. /package/build/{cookieHelper-2424d30a.js → cookieHelper-7d59b3e7.js} +0 -0
  217. /package/build/esm/{BMI_BOYS.percentile.monthly-481c9b6c.js → BMI_BOYS.percentile.monthly-d5a8dcff.js} +0 -0
  218. /package/build/esm/{BMI_BOYS.percentile.weekly-9ecefc5f.js → BMI_BOYS.percentile.weekly-54a95b85.js} +0 -0
  219. /package/build/esm/{BMI_BOYS.percentile.yearly-31262211.js → BMI_BOYS.percentile.yearly-d2d8b110.js} +0 -0
  220. /package/build/esm/{BMI_BOYS.zscore.monthly-97ad526c.js → BMI_BOYS.zscore.monthly-0bd50ff3.js} +0 -0
  221. /package/build/esm/{BMI_BOYS.zscore.weekly-56d6d40c.js → BMI_BOYS.zscore.weekly-c8593da1.js} +0 -0
  222. /package/build/esm/{BMI_BOYS.zscore.yearly-81b0b54f.js → BMI_BOYS.zscore.yearly-d5005236.js} +0 -0
  223. /package/build/esm/{BMI_GIRLS.percentile.monthly-1a979035.js → BMI_GIRLS.percentile.monthly-e3884907.js} +0 -0
  224. /package/build/esm/{BMI_GIRLS.percentile.weekly-20d225ea.js → BMI_GIRLS.percentile.weekly-1ed13a41.js} +0 -0
  225. /package/build/esm/{BMI_GIRLS.percentile.yearly-2def92f1.js → BMI_GIRLS.percentile.yearly-e718de5e.js} +0 -0
  226. /package/build/esm/{BMI_GIRLS.zscore.monthly-845d7f9f.js → BMI_GIRLS.zscore.monthly-358d226f.js} +0 -0
  227. /package/build/esm/{BMI_GIRLS.zscore.weekly-d8e6e4d0.js → BMI_GIRLS.zscore.weekly-fcedba22.js} +0 -0
  228. /package/build/esm/{BMI_GIRLS.zscore.yearly-2a7ff01d.js → BMI_GIRLS.zscore.yearly-9ca47d29.js} +0 -0
  229. /package/build/esm/{ChevronDown-ee31c8aa.js → ChevronDown-cc35428e.js} +0 -0
  230. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-5392740c.js → HEAD CIRCUM_BOYS.percentile.monthly-f7558c8b.js} +0 -0
  231. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-a3446962.js → HEAD CIRCUM_BOYS.percentile.weekly-7bc35bee.js} +0 -0
  232. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7de8ea14.js → HEAD CIRCUM_BOYS.percentile.yearly-77357f85.js} +0 -0
  233. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-918e9910.js → HEAD CIRCUM_BOYS.zscore.monthly-2714257f.js} +0 -0
  234. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cbd78260.js → HEAD CIRCUM_BOYS.zscore.weekly-62058fcf.js} +0 -0
  235. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-2d3423b2.js → HEAD CIRCUM_BOYS.zscore.yearly-65649b30.js} +0 -0
  236. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-fb6e13bd.js → HEAD CIRCUM_GIRLS.percentile.monthly-2e8f844b.js} +0 -0
  237. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-67823275.js → HEAD CIRCUM_GIRLS.percentile.weekly-28edfa4f.js} +0 -0
  238. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-fc675cf8.js → HEAD CIRCUM_GIRLS.percentile.yearly-763567ce.js} +0 -0
  239. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-79856bd0.js → HEAD CIRCUM_GIRLS.zscore.monthly-cf6bb939.js} +0 -0
  240. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-b4fc71cd.js → HEAD CIRCUM_GIRLS.zscore.weekly-d6db86f2.js} +0 -0
  241. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-10614559.js → HEAD CIRCUM_GIRLS.zscore.yearly-bd3add5c.js} +0 -0
  242. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3cf12eed.js → HEIGHT_BOYS.percentile.monthly-33050dfa.js} +0 -0
  243. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-56a6a86a.js → HEIGHT_BOYS.percentile.weekly-790dde30.js} +0 -0
  244. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-2f0aadcd.js → HEIGHT_BOYS.percentile.yearly-24a1ba96.js} +0 -0
  245. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b8c33f35.js → HEIGHT_BOYS.zscore.monthly-68f937ad.js} +0 -0
  246. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-aee1c866.js → HEIGHT_BOYS.zscore.weekly-5aafe365.js} +0 -0
  247. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-08837bdf.js → HEIGHT_BOYS.zscore.yearly-ffefa912.js} +0 -0
  248. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-a56be6e5.js → HEIGHT_GIRLS.percentile.monthly-72e94858.js} +0 -0
  249. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-35432dc5.js → HEIGHT_GIRLS.percentile.weekly-ce075c84.js} +0 -0
  250. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-a9e7e75b.js → HEIGHT_GIRLS.percentile.yearly-ac92e23f.js} +0 -0
  251. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-13b0edaa.js → HEIGHT_GIRLS.zscore.monthly-ea49be8c.js} +0 -0
  252. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f0d5e23e.js → HEIGHT_GIRLS.zscore.weekly-59da335b.js} +0 -0
  253. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5d0233cf.js → HEIGHT_GIRLS.zscore.yearly-b16bfb36.js} +0 -0
  254. /package/build/esm/{Subot-f0ae92e9.js → Subot-e1ee8861.js} +0 -0
  255. /package/build/esm/{Visible-05cddf20.js → Visible-5984bb59.js} +0 -0
  256. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-fa4233f7.js → WEIGHT_BOYS.percentile.monthly-15ee1673.js} +0 -0
  257. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-262cbe6c.js → WEIGHT_BOYS.percentile.weekly-fc4985d2.js} +0 -0
  258. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4fc46ee8.js → WEIGHT_BOYS.percentile.yearly-7fa505f0.js} +0 -0
  259. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e5559992.js → WEIGHT_BOYS.zscore.monthly-d56eab98.js} +0 -0
  260. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-19a1252d.js → WEIGHT_BOYS.zscore.weekly-1d371a78.js} +0 -0
  261. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-cb880a38.js → WEIGHT_BOYS.zscore.yearly-d87e6880.js} +0 -0
  262. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-bd523d31.js → WEIGHT_GIRLS.percentile.monthly-6f53bf1d.js} +0 -0
  263. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b294ccd6.js → WEIGHT_GIRLS.percentile.weekly-caa0cf1b.js} +0 -0
  264. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8a6ab96a.js → WEIGHT_GIRLS.percentile.yearly-4c1432b0.js} +0 -0
  265. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-4a0fbc9b.js → WEIGHT_GIRLS.zscore.monthly-1628b4dd.js} +0 -0
  266. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-8f51f53a.js → WEIGHT_GIRLS.zscore.weekly-b240946e.js} +0 -0
  267. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c3a2e45d.js → WEIGHT_GIRLS.zscore.yearly-f360fff3.js} +0 -0
  268. /package/build/esm/{animation-bddac9b6.js → animation-70b8e1f2.js} +0 -0
  269. /package/build/esm/{cookieHelper-1fb3be1d.js → cookieHelper-2017148d.js} +0 -0
  270. /package/build/esm/{index-c7fa112f.js → index-754b44fc.js} +0 -0
  271. /package/build/esm/{index-9e042d54.js → index-86e92cc0.js} +0 -0
  272. /package/build/esm/{index-49960be3.js → index-cf6580dd.js} +0 -0
  273. /package/build/esm/{isProduction-6cfd2e5f.js → isProduction-9fe75b7e.js} +0 -0
  274. /package/build/esm/{localizeNumberFormat-fc661717.js → localizeNumberFormat-cd2532b2.js} +0 -0
  275. /package/build/esm/{normalizeLink-f9553c7e.js → normalizeLink-bae43899.js} +0 -0
  276. /package/build/esm/{number-3adfc7c9.js → number-07ae3046.js} +0 -0
  277. /package/build/esm/{paths-2d7752c5.js → paths-be7ff55f.js} +0 -0
  278. /package/build/esm/{theme-329bebe3.js → theme-dab2950f.js} +0 -0
  279. /package/build/esm/{translationsContext-5b1b71c5.js → translationsContext-5a2101f0.js} +0 -0
  280. /package/build/esm/{tslib.es6-65aab26e.js → tslib.es6-16e6bdc9.js} +0 -0
  281. /package/build/esm/{types-c90a21ae.js → types-27d242a7.js} +0 -0
  282. /package/build/esm/{useIsInit-b5e1063f.js → useIsInit-aa198cba.js} +0 -0
  283. /package/build/esm/{useOutsideClick-1c0cadb4.js → useOutsideClick-a88e81d5.js} +0 -0
  284. /package/build/esm/{useScrollbarSize-c446cb03.js → useScrollbarSize-81850e48.js} +0 -0
  285. /package/build/esm/{utils-5df7c3ca.js → utils-f69a5c66.js} +0 -0
  286. /package/build/{index-e6268d5b.js → index-49020afd.js} +0 -0
  287. /package/build/{index-8ab9f68b.js → index-5caececd.js} +0 -0
  288. /package/build/{index-5716dbb6.js → index-d725f995.js} +0 -0
  289. /package/build/{isProduction-4a6daf99.js → isProduction-5ee9440e.js} +0 -0
  290. /package/build/{localizeNumberFormat-27ee6051.js → localizeNumberFormat-d05fe4e0.js} +0 -0
  291. /package/build/{normalizeLink-00561cf7.js → normalizeLink-069cc041.js} +0 -0
  292. /package/build/{number-95c0dcd8.js → number-b3bfb023.js} +0 -0
  293. /package/build/{paths-22a2f046.js → paths-24d6890e.js} +0 -0
  294. /package/build/{theme-330bc0a7.js → theme-571f5130.js} +0 -0
  295. /package/build/{translationsContext-8f927975.js → translationsContext-dfb5d88d.js} +0 -0
  296. /package/build/{tslib.es6-a180af9a.js → tslib.es6-94b275ba.js} +0 -0
  297. /package/build/{types-02b14d58.js → types-bf4f47c3.js} +0 -0
  298. /package/build/{useIsInit-e6ebb515.js → useIsInit-4db83cec.js} +0 -0
  299. /package/build/{useOutsideClick-97383323.js → useOutsideClick-51ce49df.js} +0 -0
  300. /package/build/{useScrollbarSize-067c1620.js → useScrollbarSize-2e658fb6.js} +0 -0
  301. /package/build/{utils-66856242.js → utils-f2321c70.js} +0 -0
package/build/esm/pwg.js CHANGED
@@ -1,4 +1,4 @@
1
- import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as l,a as o}from"./index-e2d8ff1c.js";import{T as n}from"./Plus-e140d11d.js";import{P as i}from"./index-0bbb28e1.js";import{u as c}from"./useTranslations-dcdb33ca.js";import{t as s}from"./theme-329bebe3.js";import{ResponsiveContainer as m,AreaChart as d,CartesianGrid as p,Tooltip as g,XAxis as u,YAxis as y,Area as b,ReferenceDot as f}from"recharts";import{C as h}from"./index-c7fa112f.js";import{a as x}from"./useOutsideClick-1c0cadb4.js";import E from"styled-components";import{_ as k}from"./tslib.es6-65aab26e.js";import"./index.styled-1cda3f12.js";import"@mantine/core";import"./Subot-f0ae92e9.js";import"./index-0060a1e2.js";import"./index-902cf5bc.js";import"date-fns/locale";import"./isProduction-6cfd2e5f.js";import"./index-3c7f4191.js";import"@mantine/hooks";import"dayjs";import"./utils-5df7c3ca.js";import"@mantine/carousel";import"classnames";import"./index-662bfc5d.js";import"@mantine/dates";import"./translationsContext-5b1b71c5.js";import"string-format";const w=t=>{const{x:r,y:a,payload:l,activeWeek:o}=t;return o===l.value?e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("circle",{r:12,fill:"marryBaby"===t.siteType?s.mbColors.pink:s.colors.primaryBase}),e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:s.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},l.value)):e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:s.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},l.value))},v=E.div`
1
+ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as l,a as o}from"./index-88f24735.js";import{T as n}from"./Plus-0795a68c.js";import{P as i}from"./index-03b6469c.js";import{u as s}from"./useTranslations-78d82c21.js";import{t as c}from"./theme-dab2950f.js";import{ResponsiveContainer as m,AreaChart as d,CartesianGrid as p,Tooltip as g,XAxis as u,YAxis as y,Area as b,ReferenceDot as h}from"recharts";import{C as f}from"./index-754b44fc.js";import{a as x}from"./useOutsideClick-a88e81d5.js";import E from"styled-components";import{_ as k}from"./tslib.es6-16e6bdc9.js";import"./index.styled-500647b4.js";import"@mantine/core";import"./Subot-e1ee8861.js";import"./index-5222461b.js";import"./index-1c858659.js";import"date-fns/locale";import"./isProduction-9fe75b7e.js";import"./index-0ce3ea30.js";import"@mantine/hooks";import"dayjs";import"./utils-f69a5c66.js";import"@mantine/carousel";import"classnames";import"./index-404bb127.js";import"@mantine/dates";import"./translationsContext-5a2101f0.js";import"string-format";const w=t=>{const{x:r,y:a,payload:l,activeWeek:o}=t;return o===l.value?e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("circle",{r:12,fill:"marryBaby"===t.siteType?c.mbColors.pink:c.colors.primaryBase}),e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},l.value)):e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},l.value))},v=E.div`
2
2
  /* position: absolute; */
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -18,7 +18,7 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as l,a as
18
18
  display: flex;
19
19
  align-items: center;
20
20
  padding: 4px 8px;
21
- background: ${s.colors.yellow600};
21
+ background: ${c.colors.yellow600};
22
22
  border-radius: 3px;
23
23
  } */
24
24
  & > * {
@@ -55,14 +55,14 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as l,a as
55
55
  align-items: center;
56
56
  gap: 4px;
57
57
  }
58
- `,T=[{name:"overweight",backgroundColor:s.colors.yellow50,color:s.colors.yellow900},{name:"underweight",backgroundColor:s.colors.yellow50,color:s.colors.yellow900},{name:"healthy",backgroundColor:s.colors.green50,color:s.colors.green900}],B=r=>{var a,l,o,i,c;const{payload:m,active:d}=r,p=null===(a=null==m?void 0:m[0])||void 0===a?void 0:a.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:u}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(l=p.toolTipLabel)||void 0===l?void 0:l[0]," ",null===(o=p.toolTipLabel)||void 0===o?void 0:o[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:s.colors.gray800,weight:"semiBold"},null===(c=p.toolTipLabel)||void 0===c?void 0:c[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:u},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:a,activeWeek:l,t:o})=>{const n=o(`bmi.result.${a}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===l?{toolTipLabel:r,translatedStatus:n,status:a}:{})))},S=({weightBefore:o,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:S})=>{const{t:z}=c(),L="marryBaby"===S,F=t((()=>W({weightByWeek:i,weightBefore:o,toolTipLabel:v,status:C,activeWeek:E,t:z})),[i,o,v,C,E]),[I,M]=r(!1),N=a(null);return x(N,(()=>M(!1))),e.createElement(j,null,L?e.createElement(l,{type:"bodytext-3",color:s.mbColors.dark}," ",z("babyGrowth.weight")," ",z("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:s.colors.gray500},z("babyGrowth.weight")," ",z("pregnancyWeightGain.weightInput.desc")),Array.isArray(F)&&F.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:F,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:s.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&I&&void 0!==E&&void 0!==k},t))}),e.createElement(u,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:S})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(y,{domain:[e=>Math.max(e,o-10||e),e=>Math.max(e,o+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:s.colors.gray600}}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:L?s.mbColors.tonePink:s.colors.primary100}),void 0!==E&&void 0!==k&&e.createElement(f,{onClick:()=>M(!0),x:0===E?1:E,y:k,r:4,shape:e.createElement(h,{ref:N,r:4}),fill:L?s.mbColors.pink:s.colors.primaryBase,stroke:L?s.mbColors.pink:s.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),L?e.createElement(l,{type:"bodytext-3",color:s.mbColors.dark},z("pregnancy.week")):e.createElement(n,{size:"n1",color:s.colors.gray500},z("pregnancy.week")))))},z=t=>{var{color:r}=t,a=k(t,["color"]);return e.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},a),e.createElement("circle",{cx:"4",cy:"4",r:"4",fill:r||s.colors.primaryBase}))},L=({idealWeight:t,siteType:r})=>{const{t:a}=c(),o="marryBaby"===r;return e.createElement(C,null,e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement(z,{color:s.mbColors.lightPink}),e.createElement(l,{type:"bodytext-3",color:s.mbColors.dark},a("pregnancyTool.weightSuggested")," ",e.createElement(n,{size:"n1",color:s.colors.gray800,weight:"bold",as:"span"},t))):e.createElement(e.Fragment,null,e.createElement(z,{color:s.colors.primary100}),e.createElement(n,{size:"n1",color:s.colors.gray600},e.createElement(n,{size:"n1",as:"span"},a("pregnancyTool.weightSuggested")," "),e.createElement(n,{size:"n1",color:s.colors.gray800,weight:"bold",as:"span"},t)))),e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement(z,{color:s.mbColors.pink}),e.createElement(l,{type:"bodytext-3",color:s.mbColors.dark},a("pwg.placeholder.weight"))):e.createElement(e.Fragment,null,e.createElement(z,null),e.createElement(n,{size:"n1",color:s.colors.gray600},a("pwg.placeholder.weight")))))},F=E.div`
58
+ `,T=[{name:"overweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"underweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"healthy",backgroundColor:c.colors.green50,color:c.colors.green900}],B=r=>{var a,l,o,i,s;const{payload:m,active:d}=r,p=null===(a=null==m?void 0:m[0])||void 0===a?void 0:a.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:u}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(l=p.toolTipLabel)||void 0===l?void 0:l[0]," ",null===(o=p.toolTipLabel)||void 0===o?void 0:o[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:c.colors.gray800,weight:"semiBold"},null===(s=p.toolTipLabel)||void 0===s?void 0:s[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:u},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:a,activeWeek:l,t:o})=>{const n=o(`bmi.result.${a}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===l?{toolTipLabel:r,translatedStatus:n,status:a}:{})))},S=({weightBefore:o,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:S})=>{const{t:z}=s(),L="marryBaby"===S,F=t((()=>W({weightByWeek:i,weightBefore:o,toolTipLabel:v,status:C,activeWeek:E,t:z})),[i,o,v,C,E]),[I,M]=r(!1),N=a(null);return x(N,(()=>M(!1))),e.createElement(j,null,L?e.createElement(l,{type:"bodytext-3",color:c.mbColors.dark}," ",z("babyGrowth.weight")," ",z("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:c.colors.gray500},z("babyGrowth.weight")," ",z("pregnancyWeightGain.weightInput.desc")),Array.isArray(F)&&F.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:F,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:c.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&I&&void 0!==E&&void 0!==k},t))}),e.createElement(u,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:S})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(y,{domain:[e=>Math.max(e,o-10||e),e=>Math.max(e,o+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:c.colors.gray600}}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:L?c.mbColors.tonePink:c.colors.primary100}),void 0!==E&&void 0!==k&&e.createElement(h,{onClick:()=>M(!0),x:0===E?1:E,y:k,r:4,shape:e.createElement(f,{ref:N,r:4}),fill:L?c.mbColors.pink:c.colors.primaryBase,stroke:L?c.mbColors.pink:c.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),L?e.createElement(l,{type:"bodytext-3",color:c.mbColors.dark},z("pregnancy.week")):e.createElement(n,{size:"n1",color:c.colors.gray500},z("pregnancy.week")))))},z=t=>{var{color:r}=t,a=k(t,["color"]);return e.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},a),e.createElement("circle",{cx:"4",cy:"4",r:"4",fill:r||c.colors.primaryBase}))},L=({idealWeight:t,siteType:r})=>{const{t:a}=s(),o="marryBaby"===r;return e.createElement(C,null,e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement(z,{color:c.mbColors.lightPink}),e.createElement(l,{type:"bodytext-3",color:c.mbColors.dark},a("pregnancyTool.weightSuggested")," ",e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t))):e.createElement(e.Fragment,null,e.createElement(z,{color:c.colors.primary100}),e.createElement(n,{size:"n1",color:c.colors.gray600},e.createElement(n,{size:"n1",as:"span"},a("pregnancyTool.weightSuggested")," "),e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t)))),e.createElement("div",null,o?e.createElement(e.Fragment,null,e.createElement(z,{color:c.mbColors.pink}),e.createElement(l,{type:"bodytext-3",color:c.mbColors.dark},a("pwg.placeholder.weight"))):e.createElement(e.Fragment,null,e.createElement(z,null),e.createElement(n,{size:"n1",color:c.colors.gray600},a("pwg.placeholder.weight")))))},F=E.div`
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  align-items: center;
62
62
  padding: 24px 16px;
63
63
  width: 100%;
64
64
  gap: 24px;
65
- border: 1px solid ${s.colors.neutral100};
65
+ border: 1px solid ${c.colors.neutral100};
66
66
  border-radius: 8px;
67
67
  .chart-header {
68
68
  text-align: center;
@@ -70,4 +70,4 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as l,a as
70
70
  > div {
71
71
  width: 100%;
72
72
  }
73
- `,I=({chartProps:t,pillCarouselProps:r,idealWeight:a,description:l,siteType:m})=>{const{t:d}=c(),p="marryBaby"===m;return e.createElement(F,null,e.createElement("div",{className:"chart-header"},p?e.createElement(o,{type:"h3",color:s.mbColors.dark},d("pregnancyTool.weightSuggested")):e.createElement(n,{size:"s1",weight:"semiBold",color:s.colors.gray800},d("pregnancyTool.weightSuggested")),l&&l),e.createElement(i,Object.assign({},r)),e.createElement("div",null,e.createElement(L,{idealWeight:a,siteType:m}),e.createElement(S,Object.assign({},t,{siteType:m}))))};export{I as PregnancyWeightGainChart};
73
+ `,I=({chartProps:t,pillCarouselProps:r,idealWeight:a,description:l,siteType:m})=>{const{t:d}=s(),p="marryBaby"===m;return e.createElement(F,null,e.createElement("div",{className:"chart-header"},p?e.createElement(o,{type:"h3",color:c.mbColors.dark},d("pregnancyTool.weightSuggested")):e.createElement(n,{size:"s1",weight:"semiBold",color:c.colors.gray800},d("pregnancyTool.weightSuggested")),l&&l),e.createElement(i,Object.assign({},r)),e.createElement("div",null,e.createElement(L,{idealWeight:a,siteType:m}),e.createElement(S,Object.assign({},t,{siteType:m}))))};export{I as PregnancyWeightGainChart};
@@ -1 +1 @@
1
- import{d as e}from"./index-902cf5bc.js";import{i as s}from"./isProduction-6cfd2e5f.js";const t=(t,o)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return r?"http://localhost:3000":`https://${!r&&!s?o?"fe.":"discover.":o?"www.":""}${e[o?"vi-VN_MB":t]}`},o=(t,o)=>process.env.UNIFY_SSO_API||`https://${s?"id.":"staging-id."}${e[o?"vi-VN_MB":t]}`,r=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${s?"together.":"staging-together."}hellohealthgroup.com`,n=t=>process.env.UNIFY_DISCOVER_API||`https://${s?"wp.":"staging."}${e[t]}`,c=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${s?"health-care.":"service-health-care."}hellohealthgroup.com`;export{o as a,r as b,n as c,c as d,t as g};
1
+ import{d as e}from"./index-1c858659.js";import{i as s}from"./isProduction-9fe75b7e.js";const t=(t,o)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return r?"http://localhost:3000":`https://${!r&&!s?o?"fe.":"discover.":o?"www.":""}${e[o?"vi-VN_MB":t]}`},o=(t,o)=>process.env.UNIFY_SSO_API||`https://${s?"id.":"staging-id."}${e[o?"vi-VN_MB":t]}`,r=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${s?"together.":"staging-together."}hellohealthgroup.com`,n=t=>process.env.UNIFY_DISCOVER_API||`https://${s?"wp.":"staging."}${e[t]}`,i=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${s?"health-care.":"service-health-care."}hellohealthgroup.com`;export{o as a,r as b,n as c,i as d,t as g};
@@ -1,4 +1,4 @@
1
- import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-f0ae92e9.js";import{a as _,_ as x}from"./tslib.es6-65aab26e.js";import{B as E,d as w,M as S,e as k,G as I,h as N,A as O,f as T}from"./index-902cf5bc.js";import C from"js-cookie";import M from"fastdom";import P from"fastdom/extensions/fastdom-promised";import U from"string-format";import{G as B,b as j,x as R,y as A,T as L,L as D}from"./utils-c3cf3400.js";import{v4 as $}from"uuid";import{i as F}from"./isProduction-6cfd2e5f.js";import q from"hex-rgb";import z from"classnames";import{C as H}from"./index-9e042d54.js";import{D as G,L as V}from"./index-f7d2862f.js";import{motion as Y}from"framer-motion";import{M as W}from"./utils-5df7c3ca.js";import X from"styled-components";import{B as K,S as J}from"./index-3c7f4191.js";import{Remarkable as Q}from"remarkable";import{useInView as Z}from"react-intersection-observer";import{Box as ee,Textarea as te}from"@mantine/core";import{C as ie}from"./index-0060a1e2.js";import{I as ne}from"./index-69ffebf9.js";import oe from"dayjs";import ae from"dayjs/plugin/isSameOrBefore";import{T as le}from"./Plus-e140d11d.js";import{t as re}from"./theme-329bebe3.js";import"@mantine/dates";import"./translationsContext-5b1b71c5.js";import"@mantine/hooks";import se from"lodash/isEmpty";import{Controller as de,useForm as ce}from"react-hook-form";import ue,{getCountryCallingCode as me,isPossiblePhoneNumber as pe,parsePhoneNumber as ve}from"react-phone-number-input";import{LoadScript as ge}from"@react-google-maps/api";import{u as be,G as he,a as fe}from"./usePlacesAutocomplete-4659e7a7.js";import{B as ye}from"./index-5157d6fe.js";import{D as _e}from"./index-dd1b52b3.js";import"date-fns/locale";import"./cookieHelper-1fb3be1d.js";import"slugify";import"./useTranslations-dcdb33ca.js";import"date-fns";import"react-day-picker/DayPickerInput";import"@mantine/carousel";import"./WhatsApp-94b28f38.js";const xe=M.extend(P),Ee={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},we={cached:{},clearCached:e=>{console.log(we.cached),Object.keys(we.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),we.cached[e]=void 0}))},withCached:(e,t)=>_(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===we.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof we.cached[e]&&(t(we.cached[e]),clearInterval(n))}),100)}));if("object"==typeof we.cached[e])return we.cached[e];we.cached[e]="waitingTheFirstResponse";try{const i=yield t();return we.cached[e]=i,setTimeout((()=>{we.cached[e]=void 0}),18e5),i}catch(t){return we.cached[e]=void 0,Promise.reject(t)}}))},Se=(e,t)=>{const{subotApiUrl:i}=null==B?void 0:B.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+U(e,Object.assign({},t))},ke=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Ie=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},Ne=e=>_(void 0,void 0,void 0,(function*(){try{return yield we.withCached("SubotInlineFirstNode",(()=>_(void 0,void 0,void 0,(function*(){const t=yield j(Se(Ee.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Ie(t),t}))))}catch(e){return null}})),Oe=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),Te=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Ce=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Me=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Ce],Pe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Me.includes(i))if(Ce.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),Ue=e=>[{id:$(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:$(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const je=e=>R.parse(e||"")["hhg-id"]||C.get("hhg-id")||"",Re=e=>{if(e)return C.set("hhg-id",e),e;const t=je();if(t)return t;const i=$();return C.set("hhg-id",i),i},Ae=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},Le=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},De=$(),$e=()=>De,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${F?"":"discover."}${w[e]}`,qe=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},He=30,Ge=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ve=(e,t,i,n)=>{const o=Ge(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ye=(e,t)=>{const i=Ge(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},We="other",Xe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Je=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,_,x,E,w,S;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===We)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(_=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===_?void 0:_.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(E=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===E?void 0:E[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(S=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===S?void 0:S.label)||""})}}return e}),[]);return t},Qe=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Le().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>_(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:Je(l),voucherAnswers:Qe(l,e[0])},s={cookie_id:Re(),account_id:n||Ae()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:S[A]};yield j(Se(Ee.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),et=(e,t)=>{try{const[i,n,o]=q(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},tt=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),it=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:f}}=i(L),y=n(null),E=n(null),[w,S]=o(!0),[N,O]=o(""),[T,M]=o([]),[P,U]=o(!1),[R,A]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(xe.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",et(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",et(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",et(t,.3)||"#bcdeff")})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m]);const D=l((()=>{const e=window.gaData,t=window.location.origin+k+("tl-PH"===(null==B?void 0:B.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Ae()||null,action_id:"",action_value:"",cookie_id:Re(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:C.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:$e()};return Pe(i,null==B?void 0:B.router.query)}),[]),$=l((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),F=l(((e,t=!0)=>_(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];S(!0);const a=yield Ne(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],_(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield j(Se(Ee.GET_SUBOT_LOG,{botId:r.id,cookieId:Re(),accountId:Ae()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Ae()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,E.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Ae())return null;const i=JSON.parse(localStorage.getItem(Xe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Xe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Ae()||null,cookie_id:Re(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:D});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:E.current}),setTimeout((()=>{$()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);S(!1),O(c),M(u),A(Object.assign(Object.assign({},e),d))}))),[]),q=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=N,o=[...T];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(S(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{M(o),O(n),S(!1),Ze({nodes:o,activeId:n,params:R,accountIdFromLogs:E.current})}),250)}),[T,N]),z=l((e=>_(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ve(T,N,e.action_id)),i=yield ke(t);if(S(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==T.findIndex((e=>e.id===a.id))?q(a):q(a,t))}f({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=T.find((e=>e.id==N));t&&t.hasOwnProperty("first_node")&&(O(T[1].id.toString()),Ze({nodes:T,activeId:T[1].id.toString(),params:D(),accountIdFromLogs:E.current}))}))),[q,T]),H=l((()=>{const e=T.findIndex((({id:e})=>e==N));if(e&&-1!==e&&e>1){const t=T[e-1];O(t.id),Ze({nodes:T,activeId:t.id,params:R,accountIdFromLogs:E.current})}}),[T,N]),G=l((()=>{const e=D();F(e,!1);const t=T[0],i=T[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[D,F,T]),V=l((e=>{M((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==N?t.map((t=>{const i=t;return i.id===N?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[N]);a((()=>{if(C.get(I)){const e=D();F(e)}else Be({condition:()=>Boolean(C.get(I)),finished:()=>{const e=D();F(e)}})}),[]),a((()=>{if(!T.length)return;T.find((e=>e.id==N))&&N||O(d+"")}),[N,T]);const Y=r((()=>({activeId:N,params:R,listNodes:T,loading:w,setLoading:S,getParams:D,onNext:z,onPrev:H,onSubmit:q,onStartOver:G,onChange:V,isShowFooter:P,setIsShowFooter:U,isFullContainer:c,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[N,z,H,q,V,G,P,R,T,w,S,D,c,v,g,b]);return T.length?e.createElement(tt.Provider,{value:Y},e.createElement("div",{ref:y},t)):null},nt=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),ot="480px",at=X.div`
1
+ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-e1ee8861.js";import{a as _,_ as x}from"./tslib.es6-16e6bdc9.js";import{B as E,d as w,M as S,e as k,G as I,h as N,A as O,f as T}from"./index-1c858659.js";import C from"js-cookie";import M from"fastdom";import P from"fastdom/extensions/fastdom-promised";import U from"string-format";import{G as B,b as j,x as R,y as A,T as L,L as D}from"./utils-3e125f1e.js";import{v4 as $}from"uuid";import{i as F}from"./isProduction-9fe75b7e.js";import q from"hex-rgb";import z from"classnames";import{C as H}from"./index-86e92cc0.js";import{D as G,L as V}from"./index-64dc6b83.js";import{motion as Y}from"framer-motion";import{M as W}from"./utils-f69a5c66.js";import X from"styled-components";import{B as K,S as J}from"./index-0ce3ea30.js";import{Remarkable as Q}from"remarkable";import{useInView as Z}from"react-intersection-observer";import{Box as ee,Textarea as te}from"@mantine/core";import{C as ie}from"./index-5222461b.js";import{I as ne}from"./index-36467b48.js";import oe from"dayjs";import ae from"dayjs/plugin/isSameOrBefore";import{T as le}from"./Plus-0795a68c.js";import{t as re}from"./theme-dab2950f.js";import"@mantine/dates";import"./translationsContext-5a2101f0.js";import"@mantine/hooks";import se from"lodash/isEmpty";import{Controller as de,useForm as ce}from"react-hook-form";import ue,{getCountryCallingCode as me,isPossiblePhoneNumber as pe,parsePhoneNumber as ve}from"react-phone-number-input";import{LoadScript as ge}from"@react-google-maps/api";import{u as be,G as he,a as fe}from"./usePlacesAutocomplete-96e52ce9.js";import{B as ye}from"./index-ed7346f2.js";import{D as _e}from"./index-fe314c0f.js";import"date-fns/locale";import"./cookieHelper-2017148d.js";import"slugify";import"./useTranslations-78d82c21.js";import"date-fns";import"react-day-picker/DayPickerInput";import"@mantine/carousel";import"./WhatsApp-c7fd561d.js";const xe=M.extend(P),Ee={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},we={cached:{},clearCached:e=>{console.log(we.cached),Object.keys(we.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),we.cached[e]=void 0}))},withCached:(e,t)=>_(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===we.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof we.cached[e]&&(t(we.cached[e]),clearInterval(n))}),100)}));if("object"==typeof we.cached[e])return we.cached[e];we.cached[e]="waitingTheFirstResponse";try{const i=yield t();return we.cached[e]=i,setTimeout((()=>{we.cached[e]=void 0}),18e5),i}catch(t){return we.cached[e]=void 0,Promise.reject(t)}}))},Se=(e,t)=>{const{subotApiUrl:i}=null==B?void 0:B.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+U(e,Object.assign({},t))},ke=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Ie=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},Ne=e=>_(void 0,void 0,void 0,(function*(){try{return yield we.withCached("SubotInlineFirstNode",(()=>_(void 0,void 0,void 0,(function*(){const t=yield j(Se(Ee.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Ie(t),t}))))}catch(e){return null}})),Oe=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),Te=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Ce=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Me=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Ce],Pe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Me.includes(i))if(Ce.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),Ue=e=>[{id:$(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:$(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const je=e=>R.parse(e||"")["hhg-id"]||C.get("hhg-id")||"",Re=e=>{if(e)return C.set("hhg-id",e),e;const t=je();if(t)return t;const i=$();return C.set("hhg-id",i),i},Ae=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},Le=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},De=$(),$e=()=>De,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${F?"":"discover."}${w[e]}`,qe=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},He=30,Ge=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ve=(e,t,i,n)=>{const o=Ge(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ye=(e,t)=>{const i=Ge(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},We="other",Xe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Je=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,_,x,E,w,S;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===We)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(_=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===_?void 0:_.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(E=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===E?void 0:E[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(S=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===S?void 0:S.label)||""})}}return e}),[]);return t},Qe=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Le().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>_(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:Je(l),voucherAnswers:Qe(l,e[0])},s={cookie_id:Re(),account_id:n||Ae()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:S[A]};yield j(Se(Ee.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),et=(e,t)=>{try{const[i,n,o]=q(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},tt=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),it=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:f}}=i(L),y=n(null),E=n(null),[w,S]=o(!0),[N,O]=o(""),[T,M]=o([]),[P,U]=o(!1),[R,A]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(xe.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",et(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",et(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",et(t,.3)||"#bcdeff")})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m]);const D=l((()=>{const e=window.gaData,t=window.location.origin+k+("tl-PH"===(null==B?void 0:B.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Ae()||null,action_id:"",action_value:"",cookie_id:Re(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:C.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:$e()};return Pe(i,null==B?void 0:B.router.query)}),[]),$=l((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),F=l(((e,t=!0)=>_(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];S(!0);const a=yield Ne(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],_(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield j(Se(Ee.GET_SUBOT_LOG,{botId:r.id,cookieId:Re(),accountId:Ae()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Ae()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,E.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Ae())return null;const i=JSON.parse(localStorage.getItem(Xe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Xe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Ae()||null,cookie_id:Re(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:D});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:E.current}),setTimeout((()=>{$()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);S(!1),O(c),M(u),A(Object.assign(Object.assign({},e),d))}))),[]),q=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=N,o=[...T];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(S(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{M(o),O(n),S(!1),Ze({nodes:o,activeId:n,params:R,accountIdFromLogs:E.current})}),250)}),[T,N]),z=l((e=>_(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ve(T,N,e.action_id)),i=yield ke(t);if(S(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==T.findIndex((e=>e.id===a.id))?q(a):q(a,t))}f({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=T.find((e=>e.id==N));t&&t.hasOwnProperty("first_node")&&(O(T[1].id.toString()),Ze({nodes:T,activeId:T[1].id.toString(),params:D(),accountIdFromLogs:E.current}))}))),[q,T]),H=l((()=>{const e=T.findIndex((({id:e})=>e==N));if(e&&-1!==e&&e>1){const t=T[e-1];O(t.id),Ze({nodes:T,activeId:t.id,params:R,accountIdFromLogs:E.current})}}),[T,N]),G=l((()=>{const e=D();F(e,!1);const t=T[0],i=T[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[D,F,T]),V=l((e=>{M((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==N?t.map((t=>{const i=t;return i.id===N?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[N]);a((()=>{if(C.get(I)){const e=D();F(e)}else Be({condition:()=>Boolean(C.get(I)),finished:()=>{const e=D();F(e)}})}),[]),a((()=>{if(!T.length)return;T.find((e=>e.id==N))&&N||O(d+"")}),[N,T]);const Y=r((()=>({activeId:N,params:R,listNodes:T,loading:w,setLoading:S,getParams:D,onNext:z,onPrev:H,onSubmit:q,onStartOver:G,onChange:V,isShowFooter:P,setIsShowFooter:U,isFullContainer:c,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[N,z,H,q,V,G,P,R,T,w,S,D,c,v,g,b]);return T.length?e.createElement(tt.Provider,{value:Y},e.createElement("div",{ref:y},t)):null},nt=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),ot="480px",at=X.div`
2
2
  position: relative;
3
3
 
4
4
  .si-inline-revamp-container {
@@ -1,8 +1,9 @@
1
- import React, { HTMLAttributes, ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
+ import { BoxProps } from '@mantine/core';
2
3
  export type Props = {
3
4
  children?: ReactNode;
4
- } & HTMLAttributes<HTMLDivElement>;
5
- declare const LikeWrapper: ({ children, className }: Props) => React.JSX.Element;
6
- declare const ShareWrapper: ({ children, className }: Props) => React.JSX.Element;
7
- declare const CommentWrapper: ({ children, className }: Props) => React.JSX.Element;
5
+ } & BoxProps;
6
+ declare const LikeWrapper: ({ children, className, ...boxProps }: Props) => React.JSX.Element;
7
+ declare const ShareWrapper: ({ children, className, ...boxProps }: Props) => React.JSX.Element;
8
+ declare const CommentWrapper: ({ children, className, ...boxProps }: Props) => React.JSX.Element;
8
9
  export { LikeWrapper, ShareWrapper, CommentWrapper };
@@ -28,8 +28,8 @@ export type Props = {
28
28
  };
29
29
  declare const CardReactions: {
30
30
  ({ type, viewCount, loveCount, replyCount, replyPadding, liked, isReplied, onCommentClick, onLikeClick, onShareClick, className, style, hideCommentIcon, showingMostEngaging, isMarryBaby: isMarryBabyInit, hasShare, hasCountLike, trackingCategory, trackingLabel, children, ...rest }: Props): React.JSX.Element;
31
- LikeWrapper: ({ children, className }: import("./element").Props) => React.JSX.Element;
32
- ShareWrapper: ({ children, className }: import("./element").Props) => React.JSX.Element;
33
- CommentWrapper: ({ children, className }: import("./element").Props) => React.JSX.Element;
31
+ LikeWrapper: ({ children, className, ...boxProps }: import("./element").Props) => React.JSX.Element;
32
+ ShareWrapper: ({ children, className, ...boxProps }: import("./element").Props) => React.JSX.Element;
33
+ CommentWrapper: ({ children, className, ...boxProps }: import("./element").Props) => React.JSX.Element;
34
34
  };
35
35
  export { CardReactions };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '@mantine/core';
3
+ export declare const AuthorBadgeItem: ({ styles, className, classNames, }: BoxProps) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<string>) => {
2
+ classes: {
3
+ root: string;
4
+ };
5
+ cx: (...args: any) => string;
6
+ theme: import("@mantine/core").MantineTheme;
7
+ };
8
+ export default _default;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { SiteType } from "../../../../types";
3
+ export type CardAuthorContextProps = {
4
+ displayName: string;
5
+ role: string;
6
+ title: string;
7
+ siteType: SiteType;
8
+ handleMakeAppointment: (doctorId?: string, hospitalId?: string) => void;
9
+ doctorId: string;
10
+ hospitalId: string;
11
+ currentUrl: string;
12
+ };
13
+ export declare const CardAuthorContext: import("react").Context<CardAuthorContextProps>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DisplayName: () => React.JSX.Element;
@@ -1,7 +1,10 @@
1
1
  import React, { HTMLAttributes, ReactNode } from 'react';
2
2
  import { DefaultProps, Selectors } from '@mantine/core';
3
+ import { CardAuthor as CardAuthorUI } from "../../../../components/ui/cardAuthor";
3
4
  import { DataTrackingType } from "../../../../interfaces/types";
4
5
  import { Role } from "../../../../interfaces/types";
6
+ import { AuthorBadgeItem } from "./authorBadgeItem";
7
+ import { DisplayName } from "./displayName";
5
8
  import useStyles from "./index.styles";
6
9
  import { Community } from "../../../interfaces/types";
7
10
  import { Props as UserAvatarProps } from "../../atoms/userAvatar";
@@ -47,17 +50,13 @@ export interface Props extends DefaultProps<MyComponentStylesNames, HTMLAttribut
47
50
  hideBackground?: boolean;
48
51
  children?: ReactNode;
49
52
  }
50
- export type CardAuthorContextProps = {
51
- handleMakeAppointment: (doctorId?: string, hospitalId?: string) => void;
52
- doctorId: string;
53
- hospitalId: string;
54
- currentUrl: string;
55
- };
56
- declare const CardAuthor: {
57
- (props: Props & DataTrackingType): React.JSX.Element;
58
- MainText: ({ children, className }: import("../../../../components/ui/cardAuthor/element").Props) => React.JSX.Element;
59
- SubText: ({ children, className }: import("../../../../components/ui/cardAuthor/element").Props) => React.JSX.Element;
60
- SubTextRow: ({ children, className, ...rest }: import("../../../../components/ui/cardAuthor/element").Props) => React.JSX.Element;
61
- SubDivider: ({ className }: import("../../../../components/ui/cardAuthor/element").Props) => React.JSX.Element;
62
- };
53
+ export interface CompoundedComponent extends React.ForwardRefExoticComponent<Props & DataTrackingType> {
54
+ MainText: typeof CardAuthorUI.MainText;
55
+ SubText: typeof CardAuthorUI.SubText;
56
+ SubTextRow: typeof CardAuthorUI.SubTextRow;
57
+ SubDivider: typeof CardAuthorUI.SubDivider;
58
+ AuthorBadge: typeof AuthorBadgeItem;
59
+ DisplayName: typeof DisplayName;
60
+ }
61
+ declare const CardAuthor: CompoundedComponent;
63
62
  export { CardAuthor };
@@ -1,7 +1,6 @@
1
1
  declare const _default: (params: void, options?: import("@mantine/core").UseStylesOptions<string>) => {
2
2
  classes: {
3
3
  root: string;
4
- authorBadge: string;
5
4
  };
6
5
  cx: (...args: any) => string;
7
6
  theme: import("@mantine/core").MantineTheme;
@@ -138,6 +138,9 @@ export type Post = {
138
138
  isAskDoctor?: number;
139
139
  expertAnswer: ExpertAnswer;
140
140
  createdTime?: string;
141
+ isMinigame?: boolean;
142
+ eventStart?: string;
143
+ eventEnd?: string;
141
144
  };
142
145
  export type PostPaginationApi = {
143
146
  current: number;
@@ -214,6 +217,9 @@ export type PostApi = {
214
217
  is_anonymous?: number;
215
218
  is_question?: number;
216
219
  expert_answer?: ExpertAnswerApi;
220
+ event_type?: string;
221
+ event_start?: string;
222
+ event_end?: string;
217
223
  };
218
224
  export type TogetherTopicsApi = {
219
225
  community_id: number;
@@ -1 +1 @@
1
- export{f as CardAuthor,C as CardLink,B as CardPost,D as CardPostPopoverMore,b as CardReactions,E as CardReply,F as CardReplyPopover,g as CreateNewPostContent,h as CreatePostDescription,i as CreatePostTitle,r as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,G as PopoverMenu,P as PopupDanger,k as PopupDoctor,j as PopupExpert,n as PopupFrame,l as PopupHospital,q as PostContent,v as PostImagePreview,s as PostSingleImageViewPopup,y as ProfileDetail,x as ProfileDetailModal,p as ShareBox,S as SharePopup,A as SkipQuestionOfExpertBtn,w as SocialLinkPreview,H as SourceList,o as SubmitReportForm,z as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,m as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-1a715e98.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-6674d1d3.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-c3cf3400.js";import"react";import"./Plus-e140d11d.js";import"./tslib.es6-65aab26e.js";import"@mantine/core";import"./theme-329bebe3.js";import"./translationsContext-5b1b71c5.js";import"string-format";import"./index-dd1b52b3.js";import"styled-components";import"./useTranslations-dcdb33ca.js";import"innertext";import"./index-69ffebf9.js";import"./WhatsApp-94b28f38.js";import"./index-3c7f4191.js";import"@mantine/hooks";import"./index-0060a1e2.js";import"./index-902cf5bc.js";import"date-fns/locale";import"./Subot-f0ae92e9.js";import"./isProduction-6cfd2e5f.js";import"dayjs";import"./utils-5df7c3ca.js";import"@mantine/carousel";import"classnames";import"@mantine/dates";import"./index-bf735873.js";import"./index.styles-443a8b9d.js";import"./constants-465ad352.js";import"./animation-bddac9b6.js";import"react-keyed-flatten-children";import"./paths-2d7752c5.js";import"./index-c809f760.js";import"lodash/debounce";import"react-contenteditable";import"./index-5157d6fe.js";import"./cookieHelper-1fb3be1d.js";import"react-dom";import"./number-3adfc7c9.js";import"date-fns";import"dayjs/plugin/relativeTime";import"./index-3fa780c2.js";import"./routing-6deb7068.js";import"./utils-498ba951.js";import"./index.styled-1cda3f12.js";import"./index-c7fa112f.js";import"slugify";
1
+ export{f as CardAuthor,C as CardLink,B as CardPost,D as CardPostPopoverMore,b as CardReactions,E as CardReply,F as CardReplyPopover,g as CreateNewPostContent,h as CreatePostDescription,i as CreatePostTitle,r as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,G as PopoverMenu,P as PopupDanger,k as PopupDoctor,j as PopupExpert,n as PopupFrame,l as PopupHospital,q as PostContent,v as PostImagePreview,s as PostSingleImageViewPopup,y as ProfileDetail,x as ProfileDetailModal,p as ShareBox,S as SharePopup,A as SkipQuestionOfExpertBtn,w as SocialLinkPreview,H as SourceList,o as SubmitReportForm,z as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,m as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-8e137b89.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-5db9b9d7.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-3e125f1e.js";import"react";import"./Plus-0795a68c.js";import"./tslib.es6-16e6bdc9.js";import"@mantine/core";import"./theme-dab2950f.js";import"./translationsContext-5a2101f0.js";import"string-format";import"./index-fe314c0f.js";import"styled-components";import"./useTranslations-78d82c21.js";import"innertext";import"./index-36467b48.js";import"./WhatsApp-c7fd561d.js";import"./index-0ce3ea30.js";import"@mantine/hooks";import"./index-5222461b.js";import"./index-1c858659.js";import"date-fns/locale";import"./Subot-e1ee8861.js";import"./isProduction-9fe75b7e.js";import"dayjs";import"./utils-f69a5c66.js";import"@mantine/carousel";import"classnames";import"@mantine/dates";import"./index-a9cbc4b7.js";import"./index.styles-fa4052da.js";import"./constants-d7aa1c1c.js";import"./animation-70b8e1f2.js";import"react-keyed-flatten-children";import"./paths-be7ff55f.js";import"./index-77b369f0.js";import"lodash/debounce";import"react-contenteditable";import"./index-ed7346f2.js";import"./cookieHelper-2017148d.js";import"react-dom";import"./number-07ae3046.js";import"date-fns";import"dayjs/plugin/relativeTime";import"./index-47b11c19.js";import"./routing-7c6d65ae.js";import"./utils-f842970f.js";import"./index.styled-500647b4.js";import"./index-754b44fc.js";import"slugify";