@hhgtech/hhg-components 1.28.57 → 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 (309) hide show
  1. package/build/{Plus-29cf93ab.js → Plus-155fd41f.js} +1 -1
  2. package/build/{WhatsApp-0328afb7.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-accf73ad.js → constants-5f9a141f.js} +1 -1
  8. package/build/{constants-6df0e996.js → constants-6a8e6824.js} +1 -1
  9. package/build/constants.js +1 -1
  10. package/build/{core-74527c16.js → core-b543f933.js} +1 -1
  11. package/build/{dataTransform-90c60ebb.js → dataTransform-9d1496b9.js} +1 -1
  12. package/build/ecom.js +1 -1
  13. package/build/esm/{Plus-f7c5618a.js → Plus-0795a68c.js} +1 -1
  14. package/build/esm/{WhatsApp-712a2952.js → WhatsApp-c7fd561d.js} +1 -1
  15. package/build/esm/babyGrowth.js +5 -5
  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-0025e49b.js → constants-7b7e7784.js} +1 -1
  20. package/build/esm/{constants-2b9cc123.js → constants-d7aa1c1c.js} +1 -1
  21. package/build/esm/constants.js +1 -1
  22. package/build/esm/{core-7df57a7b.js → core-87a3d383.js} +1 -1
  23. package/build/esm/{dataTransform-0387e8b3.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-73f474a8.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-bd2dfaf4.js → index-03b6469c.js} +4 -4
  33. package/build/esm/{index-47defc94.js → index-09d9862b.js} +1 -1
  34. package/build/esm/index-0ce3ea30.js +113 -0
  35. package/build/esm/{index-11ddf8b9.js → index-1c858659.js} +1 -1
  36. package/build/esm/index-36467b48.js +1 -0
  37. package/build/esm/index-404bb127.js +1 -0
  38. package/build/esm/{index-ef286146.js → index-417dbb92.js} +1 -1
  39. package/build/esm/{index-0aa85299.js → index-47ab8d3d.js} +1 -1
  40. package/build/esm/index-47b11c19.js +1 -0
  41. package/build/esm/{index-bd890b36.js → index-4fa69484.js} +1 -1
  42. package/build/esm/{index-7bc42cef.js → index-5222461b.js} +1 -1
  43. package/build/esm/{index-3fcc7de2.js → index-5db9b9d7.js} +9 -9
  44. package/build/esm/{index-75ae81a1.js → index-64dc6b83.js} +1 -1
  45. package/build/esm/{index-6a968a24.js → index-77b369f0.js} +1 -1
  46. package/build/esm/{index-449bd04b.js → index-88f24735.js} +1 -1
  47. package/build/esm/{index-1979f711.js → index-a9cbc4b7.js} +1 -1
  48. package/build/esm/index-b6c758c5.js +2748 -0
  49. package/build/esm/{index-cbeaabc6.js → index-bfb36e6c.js} +1 -1
  50. package/build/esm/{index-49571e2c.js → index-cce4d6b6.js} +150 -150
  51. package/build/esm/{index-ac8ebb4a.js → index-ed7346f2.js} +1 -1
  52. package/build/esm/{index-495ffaf3.js → index-f047d212.js} +1 -1
  53. package/build/esm/{index-7ab2dba5.js → index-f76eef86.js} +1 -1
  54. package/build/esm/{index-27926bb9.js → index-fe314c0f.js} +2 -2
  55. package/build/esm/index.js +1 -1
  56. package/build/esm/{index.styled-f2aff174.js → index.styled-500647b4.js} +1 -1
  57. package/build/esm/{index.styles-3ff4ce8e.js → index.styles-fa4052da.js} +1 -1
  58. package/build/esm/lead/index.d.ts +2 -1
  59. package/build/esm/lead.js +1 -1
  60. package/build/esm/mantine.js +1 -1
  61. package/build/esm/misc.js +1 -1
  62. package/build/esm/navigation.js +1 -1
  63. package/build/esm/onboardingV2.js +3 -3
  64. package/build/esm/pwg.js +2 -2
  65. package/build/esm/{routing-c72cf84b.js → routing-7c6d65ae.js} +1 -1
  66. package/build/esm/subot.js +1 -1
  67. package/build/esm/together/components/atoms/cardReactions/element/index.d.ts +6 -5
  68. package/build/esm/together/components/atoms/cardReactions/index.d.ts +3 -3
  69. package/build/esm/together/components/molecules/cardAuthor/authorBadgeItem/index.d.ts +3 -0
  70. package/build/esm/together/components/molecules/cardAuthor/authorBadgeItem/index.styles.d.ts +8 -0
  71. package/build/esm/together/components/molecules/cardAuthor/context.d.ts +13 -0
  72. package/build/esm/together/components/molecules/cardAuthor/displayName.d.ts +2 -0
  73. package/build/esm/together/components/molecules/cardAuthor/index.d.ts +12 -13
  74. package/build/esm/together/components/molecules/cardAuthor/index.styles.d.ts +0 -1
  75. package/build/esm/together/interfaces/types.d.ts +6 -0
  76. package/build/esm/together.js +1 -1
  77. package/build/esm/{types-65d7416d.js → types-8e137b89.js} +202 -202
  78. package/build/esm/{types-b1b4d47c.js → types-a8c76d05.js} +22 -22
  79. package/build/esm/types.js +1 -1
  80. package/build/esm/useCategory-21a9ba33.js +1 -0
  81. package/build/esm/{useHealthToolCache-251daff3.js → useHealthToolCache-148be933.js} +1 -1
  82. package/build/esm/{usePlacesAutocomplete-4a1e0e57.js → usePlacesAutocomplete-96e52ce9.js} +1 -1
  83. package/build/esm/useTranslations-78d82c21.js +1 -0
  84. package/build/esm/{utils-f11e41fe.js → utils-3e125f1e.js} +2 -2
  85. package/build/esm/utils-5af9dad1.js +1 -0
  86. package/build/esm/{utils-0f6dd8a5.js → utils-f842970f.js} +1 -1
  87. package/build/esm/vaccination.js +3 -3
  88. package/build/footer.js +1 -1
  89. package/build/gAssets.js +1 -1
  90. package/build/{getDynamicHealthTool-c60e68fa.js → getDynamicHealthTool-c3acf06a.js} +1 -1
  91. package/build/{getSocialList-630891ed.js → getSocialList-3e010454.js} +1 -1
  92. package/build/hooks.js +1 -1
  93. package/build/i18n.js +1 -1
  94. package/build/i18nV2.js +1 -1
  95. package/build/{index-84d7415b.js → index-046ee378.js} +3 -3
  96. package/build/{index-ea138477.js → index-14cdaffe.js} +1 -1
  97. package/build/{index-c9f86bff.js → index-222727c4.js} +171 -171
  98. package/build/{index-98bbfe57.js → index-296a0b5b.js} +1 -1
  99. package/build/index-2deaed20.js +113 -0
  100. package/build/{index-7d061022.js → index-30443c6e.js} +1 -1
  101. package/build/{index-c3fd1632.js → index-3f91ded6.js} +1 -1
  102. package/build/{index-3ead4f3b.js → index-48bcbf86.js} +1 -1
  103. package/build/{index-2ef72538.js → index-6f106161.js} +1 -1
  104. package/build/index-7feececd.js +1 -0
  105. package/build/{index-af31de20.js → index-80fbf9a2.js} +1 -1
  106. package/build/{index-03f3ee56.js → index-8199c76f.js} +1 -1
  107. package/build/{index-c070fdfc.js → index-86439785.js} +1 -1
  108. package/build/index-ae905846.js +1 -0
  109. package/build/{index-03b6e1bc.js → index-ba567cf6.js} +1 -1
  110. package/build/{index-61501e74.js → index-bbdde6e0.js} +1 -1
  111. package/build/{index-4af93720.js → index-e0c87872.js} +1 -1
  112. package/build/{index-be9cca2e.js → index-e4d32d14.js} +1 -1
  113. package/build/{index-8da5271e.js → index-eca857bd.js} +1 -1
  114. package/build/{index-3893e92a.js → index-f39724a1.js} +2 -2
  115. package/build/{index-fec5e458.js → index-f6cc5b05.js} +2 -2
  116. package/build/index-fecb8f45.js +2748 -0
  117. package/build/{index-4b4621fc.js → index-ffd92aea.js} +1 -1
  118. package/build/index.js +1 -1
  119. package/build/{index.styled-c87d00c0.js → index.styled-3811edd9.js} +1 -1
  120. package/build/{index.styles-0f69a584.js → index.styles-b34ee290.js} +5 -5
  121. package/build/lead/index.d.ts +2 -1
  122. package/build/lead.js +1 -1
  123. package/build/mantine.js +1 -1
  124. package/build/misc.js +1 -1
  125. package/build/navigation.js +1 -1
  126. package/build/onboardingV2.js +1 -1
  127. package/build/pwg.js +1 -1
  128. package/build/{routing-2fc7c708.js → routing-29d56eb6.js} +1 -1
  129. package/build/subot.js +1 -1
  130. package/build/together/components/atoms/cardReactions/element/index.d.ts +6 -5
  131. package/build/together/components/atoms/cardReactions/index.d.ts +3 -3
  132. package/build/together/components/molecules/cardAuthor/authorBadgeItem/index.d.ts +3 -0
  133. package/build/together/components/molecules/cardAuthor/authorBadgeItem/index.styles.d.ts +8 -0
  134. package/build/together/components/molecules/cardAuthor/context.d.ts +13 -0
  135. package/build/together/components/molecules/cardAuthor/displayName.d.ts +2 -0
  136. package/build/together/components/molecules/cardAuthor/index.d.ts +12 -13
  137. package/build/together/components/molecules/cardAuthor/index.styles.d.ts +0 -1
  138. package/build/together/interfaces/types.d.ts +6 -0
  139. package/build/together.js +1 -1
  140. package/build/{types-9c499972.js → types-341cbbd1.js} +1 -1
  141. package/build/{types-7e10aa4b.js → types-760db918.js} +70 -70
  142. package/build/types.js +1 -1
  143. package/build/useCategory-d3020719.js +1 -0
  144. package/build/{useHealthToolCache-26767afb.js → useHealthToolCache-728f118d.js} +1 -1
  145. package/build/{usePlacesAutocomplete-df148a7c.js → usePlacesAutocomplete-07a7b610.js} +1 -1
  146. package/build/useTranslations-d2cbefef.js +1 -0
  147. package/build/utils-1a351432.js +1 -0
  148. package/build/{utils-7b0b950b.js → utils-90cf77ff.js} +1 -1
  149. package/build/{utils-2424ad70.js → utils-af90797a.js} +1 -1
  150. package/build/vaccination.js +1 -1
  151. package/package.json +5 -3
  152. package/build/esm/getDynamicHealthTool-ae9dd594.js +0 -1
  153. package/build/esm/index-0e0b9e2d.js +0 -2748
  154. package/build/esm/index-8389442a.js +0 -1
  155. package/build/esm/index-a7a6f2f8.js +0 -1
  156. package/build/esm/index-c83e2c6d.js +0 -1
  157. package/build/esm/index-d0c1cd58.js +0 -113
  158. package/build/esm/index-e119a401.js +0 -1
  159. package/build/esm/useCategory-285c8929.js +0 -1
  160. package/build/esm/useTranslations-71150e1d.js +0 -1
  161. package/build/esm/useUniqueId-871437b9.js +0 -1
  162. package/build/esm/utils-b83897f9.js +0 -1
  163. package/build/index-33839bf2.js +0 -1
  164. package/build/index-65b1d890.js +0 -113
  165. package/build/index-6853c2df.js +0 -1
  166. package/build/index-6f3496ec.js +0 -2748
  167. package/build/index-cdf8d22b.js +0 -1
  168. package/build/useCategory-e37a5113.js +0 -1
  169. package/build/useTranslations-498d106f.js +0 -1
  170. package/build/useUniqueId-dcfc3871.js +0 -1
  171. package/build/utils-f53640d1.js +0 -1
  172. /package/build/{BMI_BOYS.percentile.monthly-7c1f442a.js → BMI_BOYS.percentile.monthly-dc83dcf5.js} +0 -0
  173. /package/build/{BMI_BOYS.percentile.weekly-f35471bd.js → BMI_BOYS.percentile.weekly-e3dff055.js} +0 -0
  174. /package/build/{BMI_BOYS.percentile.yearly-747fddc8.js → BMI_BOYS.percentile.yearly-7b400a2c.js} +0 -0
  175. /package/build/{BMI_BOYS.zscore.monthly-40ffab15.js → BMI_BOYS.zscore.monthly-22e88be5.js} +0 -0
  176. /package/build/{BMI_BOYS.zscore.weekly-2558df4d.js → BMI_BOYS.zscore.weekly-7254d38e.js} +0 -0
  177. /package/build/{BMI_BOYS.zscore.yearly-c50b7daf.js → BMI_BOYS.zscore.yearly-0ce1987c.js} +0 -0
  178. /package/build/{BMI_GIRLS.percentile.monthly-930cc7b0.js → BMI_GIRLS.percentile.monthly-8f29513e.js} +0 -0
  179. /package/build/{BMI_GIRLS.percentile.weekly-abfe88eb.js → BMI_GIRLS.percentile.weekly-b13d593f.js} +0 -0
  180. /package/build/{BMI_GIRLS.percentile.yearly-ddb2fc4b.js → BMI_GIRLS.percentile.yearly-53368595.js} +0 -0
  181. /package/build/{BMI_GIRLS.zscore.monthly-b07dabad.js → BMI_GIRLS.zscore.monthly-a453df29.js} +0 -0
  182. /package/build/{BMI_GIRLS.zscore.weekly-7ff3b728.js → BMI_GIRLS.zscore.weekly-6a5afb2f.js} +0 -0
  183. /package/build/{BMI_GIRLS.zscore.yearly-23e39370.js → BMI_GIRLS.zscore.yearly-7e400eed.js} +0 -0
  184. /package/build/{ChevronDown-60dfaf68.js → ChevronDown-e3a06b59.js} +0 -0
  185. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-49ee9158.js → HEAD CIRCUM_BOYS.percentile.monthly-3bf214c5.js} +0 -0
  186. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-3212dfa3.js → HEAD CIRCUM_BOYS.percentile.weekly-10c63505.js} +0 -0
  187. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-a0bbf6a0.js → HEAD CIRCUM_BOYS.percentile.yearly-ec027f7c.js} +0 -0
  188. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e091094c.js → HEAD CIRCUM_BOYS.zscore.monthly-4b2f4e10.js} +0 -0
  189. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-833459f8.js → HEAD CIRCUM_BOYS.zscore.weekly-5a6c7eed.js} +0 -0
  190. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-1cfbeac4.js → HEAD CIRCUM_BOYS.zscore.yearly-c6d5d99a.js} +0 -0
  191. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-9849f834.js → HEAD CIRCUM_GIRLS.percentile.monthly-f38e143e.js} +0 -0
  192. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-5cb8c830.js → HEAD CIRCUM_GIRLS.percentile.weekly-961e9398.js} +0 -0
  193. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f57b40e9.js → HEAD CIRCUM_GIRLS.percentile.yearly-fb89c9d5.js} +0 -0
  194. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-79102211.js → HEAD CIRCUM_GIRLS.zscore.monthly-f4be59eb.js} +0 -0
  195. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-4320a2b5.js → HEAD CIRCUM_GIRLS.zscore.weekly-b1435610.js} +0 -0
  196. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d122a505.js → HEAD CIRCUM_GIRLS.zscore.yearly-44f4bf7e.js} +0 -0
  197. /package/build/{HEIGHT_BOYS.percentile.monthly-246e47a4.js → HEIGHT_BOYS.percentile.monthly-9d116dae.js} +0 -0
  198. /package/build/{HEIGHT_BOYS.percentile.weekly-df1d3933.js → HEIGHT_BOYS.percentile.weekly-af5e9330.js} +0 -0
  199. /package/build/{HEIGHT_BOYS.percentile.yearly-2cf03f10.js → HEIGHT_BOYS.percentile.yearly-84c68900.js} +0 -0
  200. /package/build/{HEIGHT_BOYS.zscore.monthly-35d6ff9d.js → HEIGHT_BOYS.zscore.monthly-3f6f7a60.js} +0 -0
  201. /package/build/{HEIGHT_BOYS.zscore.weekly-e5b11239.js → HEIGHT_BOYS.zscore.weekly-191d8a50.js} +0 -0
  202. /package/build/{HEIGHT_BOYS.zscore.yearly-5055ffc2.js → HEIGHT_BOYS.zscore.yearly-9e6a420d.js} +0 -0
  203. /package/build/{HEIGHT_GIRLS.percentile.monthly-b557c0ed.js → HEIGHT_GIRLS.percentile.monthly-edbe76b4.js} +0 -0
  204. /package/build/{HEIGHT_GIRLS.percentile.weekly-287247ba.js → HEIGHT_GIRLS.percentile.weekly-9656f527.js} +0 -0
  205. /package/build/{HEIGHT_GIRLS.percentile.yearly-cd0e7ffc.js → HEIGHT_GIRLS.percentile.yearly-d5e9646f.js} +0 -0
  206. /package/build/{HEIGHT_GIRLS.zscore.monthly-33433a04.js → HEIGHT_GIRLS.zscore.monthly-7962a30f.js} +0 -0
  207. /package/build/{HEIGHT_GIRLS.zscore.weekly-57e0bc18.js → HEIGHT_GIRLS.zscore.weekly-00091ba0.js} +0 -0
  208. /package/build/{HEIGHT_GIRLS.zscore.yearly-c8cacc57.js → HEIGHT_GIRLS.zscore.yearly-3f3bdcf2.js} +0 -0
  209. /package/build/{Subot-52e94ede.js → Subot-da4770e7.js} +0 -0
  210. /package/build/{Visible-8835941a.js → Visible-bbf989e9.js} +0 -0
  211. /package/build/{WEIGHT_BOYS.percentile.monthly-3917215a.js → WEIGHT_BOYS.percentile.monthly-0efda3d8.js} +0 -0
  212. /package/build/{WEIGHT_BOYS.percentile.weekly-6eb9a56d.js → WEIGHT_BOYS.percentile.weekly-da0ea954.js} +0 -0
  213. /package/build/{WEIGHT_BOYS.percentile.yearly-29731535.js → WEIGHT_BOYS.percentile.yearly-f6da0f3e.js} +0 -0
  214. /package/build/{WEIGHT_BOYS.zscore.monthly-e3123910.js → WEIGHT_BOYS.zscore.monthly-69b7c7f8.js} +0 -0
  215. /package/build/{WEIGHT_BOYS.zscore.weekly-694662de.js → WEIGHT_BOYS.zscore.weekly-288a675a.js} +0 -0
  216. /package/build/{WEIGHT_BOYS.zscore.yearly-0f990dad.js → WEIGHT_BOYS.zscore.yearly-74aa3f11.js} +0 -0
  217. /package/build/{WEIGHT_GIRLS.percentile.monthly-241403dd.js → WEIGHT_GIRLS.percentile.monthly-c507c65f.js} +0 -0
  218. /package/build/{WEIGHT_GIRLS.percentile.weekly-137b3467.js → WEIGHT_GIRLS.percentile.weekly-f08c1806.js} +0 -0
  219. /package/build/{WEIGHT_GIRLS.percentile.yearly-e9aecc7d.js → WEIGHT_GIRLS.percentile.yearly-65e7c887.js} +0 -0
  220. /package/build/{WEIGHT_GIRLS.zscore.monthly-2cff2183.js → WEIGHT_GIRLS.zscore.monthly-545572f3.js} +0 -0
  221. /package/build/{WEIGHT_GIRLS.zscore.weekly-0bfd7674.js → WEIGHT_GIRLS.zscore.weekly-0eb78b8f.js} +0 -0
  222. /package/build/{WEIGHT_GIRLS.zscore.yearly-9c0a3370.js → WEIGHT_GIRLS.zscore.yearly-f82147f8.js} +0 -0
  223. /package/build/{animation-ce2ee519.js → animation-6d0e530d.js} +0 -0
  224. /package/build/{cookieHelper-1bbbf79c.js → cookieHelper-7d59b3e7.js} +0 -0
  225. /package/build/esm/{BMI_BOYS.percentile.monthly-c4a97c9a.js → BMI_BOYS.percentile.monthly-d5a8dcff.js} +0 -0
  226. /package/build/esm/{BMI_BOYS.percentile.weekly-6339f482.js → BMI_BOYS.percentile.weekly-54a95b85.js} +0 -0
  227. /package/build/esm/{BMI_BOYS.percentile.yearly-8c1ca6e2.js → BMI_BOYS.percentile.yearly-d2d8b110.js} +0 -0
  228. /package/build/esm/{BMI_BOYS.zscore.monthly-3a5c8b0d.js → BMI_BOYS.zscore.monthly-0bd50ff3.js} +0 -0
  229. /package/build/esm/{BMI_BOYS.zscore.weekly-97453c11.js → BMI_BOYS.zscore.weekly-c8593da1.js} +0 -0
  230. /package/build/esm/{BMI_BOYS.zscore.yearly-d9b1265b.js → BMI_BOYS.zscore.yearly-d5005236.js} +0 -0
  231. /package/build/esm/{BMI_GIRLS.percentile.monthly-c05fdcd4.js → BMI_GIRLS.percentile.monthly-e3884907.js} +0 -0
  232. /package/build/esm/{BMI_GIRLS.percentile.weekly-18663de0.js → BMI_GIRLS.percentile.weekly-1ed13a41.js} +0 -0
  233. /package/build/esm/{BMI_GIRLS.percentile.yearly-2f551a4c.js → BMI_GIRLS.percentile.yearly-e718de5e.js} +0 -0
  234. /package/build/esm/{BMI_GIRLS.zscore.monthly-9a5c1809.js → BMI_GIRLS.zscore.monthly-358d226f.js} +0 -0
  235. /package/build/esm/{BMI_GIRLS.zscore.weekly-23e3fe35.js → BMI_GIRLS.zscore.weekly-fcedba22.js} +0 -0
  236. /package/build/esm/{BMI_GIRLS.zscore.yearly-02d624e8.js → BMI_GIRLS.zscore.yearly-9ca47d29.js} +0 -0
  237. /package/build/esm/{ChevronDown-bd411290.js → ChevronDown-cc35428e.js} +0 -0
  238. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-6a86e966.js → HEAD CIRCUM_BOYS.percentile.monthly-f7558c8b.js} +0 -0
  239. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-99b4a304.js → HEAD CIRCUM_BOYS.percentile.weekly-7bc35bee.js} +0 -0
  240. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-af69640c.js → HEAD CIRCUM_BOYS.percentile.yearly-77357f85.js} +0 -0
  241. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d5a7fdb7.js → HEAD CIRCUM_BOYS.zscore.monthly-2714257f.js} +0 -0
  242. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cdcc57d4.js → HEAD CIRCUM_BOYS.zscore.weekly-62058fcf.js} +0 -0
  243. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1c6c655f.js → HEAD CIRCUM_BOYS.zscore.yearly-65649b30.js} +0 -0
  244. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a4c62c65.js → HEAD CIRCUM_GIRLS.percentile.monthly-2e8f844b.js} +0 -0
  245. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-72020f04.js → HEAD CIRCUM_GIRLS.percentile.weekly-28edfa4f.js} +0 -0
  246. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-493f7cf8.js → HEAD CIRCUM_GIRLS.percentile.yearly-763567ce.js} +0 -0
  247. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-066536b9.js → HEAD CIRCUM_GIRLS.zscore.monthly-cf6bb939.js} +0 -0
  248. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-943658b2.js → HEAD CIRCUM_GIRLS.zscore.weekly-d6db86f2.js} +0 -0
  249. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-15ea58ed.js → HEAD CIRCUM_GIRLS.zscore.yearly-bd3add5c.js} +0 -0
  250. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1e25737a.js → HEIGHT_BOYS.percentile.monthly-33050dfa.js} +0 -0
  251. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f8c953c4.js → HEIGHT_BOYS.percentile.weekly-790dde30.js} +0 -0
  252. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9f8f36d6.js → HEIGHT_BOYS.percentile.yearly-24a1ba96.js} +0 -0
  253. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-22dc00c5.js → HEIGHT_BOYS.zscore.monthly-68f937ad.js} +0 -0
  254. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c7a8ae2b.js → HEIGHT_BOYS.zscore.weekly-5aafe365.js} +0 -0
  255. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-12815978.js → HEIGHT_BOYS.zscore.yearly-ffefa912.js} +0 -0
  256. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-2833c123.js → HEIGHT_GIRLS.percentile.monthly-72e94858.js} +0 -0
  257. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0daf9f5b.js → HEIGHT_GIRLS.percentile.weekly-ce075c84.js} +0 -0
  258. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4789a7e7.js → HEIGHT_GIRLS.percentile.yearly-ac92e23f.js} +0 -0
  259. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-de7243f8.js → HEIGHT_GIRLS.zscore.monthly-ea49be8c.js} +0 -0
  260. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4918bb2a.js → HEIGHT_GIRLS.zscore.weekly-59da335b.js} +0 -0
  261. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d4fd8ddd.js → HEIGHT_GIRLS.zscore.yearly-b16bfb36.js} +0 -0
  262. /package/build/esm/{Subot-56771801.js → Subot-e1ee8861.js} +0 -0
  263. /package/build/esm/{Visible-ace89781.js → Visible-5984bb59.js} +0 -0
  264. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-264f8b1e.js → WEIGHT_BOYS.percentile.monthly-15ee1673.js} +0 -0
  265. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b4944551.js → WEIGHT_BOYS.percentile.weekly-fc4985d2.js} +0 -0
  266. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-a8c6c2be.js → WEIGHT_BOYS.percentile.yearly-7fa505f0.js} +0 -0
  267. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4e623320.js → WEIGHT_BOYS.zscore.monthly-d56eab98.js} +0 -0
  268. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1555670e.js → WEIGHT_BOYS.zscore.weekly-1d371a78.js} +0 -0
  269. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-b26402ba.js → WEIGHT_BOYS.zscore.yearly-d87e6880.js} +0 -0
  270. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-984185a1.js → WEIGHT_GIRLS.percentile.monthly-6f53bf1d.js} +0 -0
  271. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b0e99fd4.js → WEIGHT_GIRLS.percentile.weekly-caa0cf1b.js} +0 -0
  272. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-893995ec.js → WEIGHT_GIRLS.percentile.yearly-4c1432b0.js} +0 -0
  273. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-8dc61ee2.js → WEIGHT_GIRLS.zscore.monthly-1628b4dd.js} +0 -0
  274. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-fe211553.js → WEIGHT_GIRLS.zscore.weekly-b240946e.js} +0 -0
  275. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-87882127.js → WEIGHT_GIRLS.zscore.yearly-f360fff3.js} +0 -0
  276. /package/build/esm/{animation-3f2b6f75.js → animation-70b8e1f2.js} +0 -0
  277. /package/build/esm/{cookieHelper-0c215a0b.js → cookieHelper-2017148d.js} +0 -0
  278. /package/build/esm/{index-7f1f7516.js → index-754b44fc.js} +0 -0
  279. /package/build/esm/{index-576a616c.js → index-86e92cc0.js} +0 -0
  280. /package/build/esm/{index-fa5073f3.js → index-cf6580dd.js} +0 -0
  281. /package/build/esm/{isProduction-6599ce88.js → isProduction-9fe75b7e.js} +0 -0
  282. /package/build/esm/{localizeNumberFormat-28d92a62.js → localizeNumberFormat-cd2532b2.js} +0 -0
  283. /package/build/esm/{normalizeLink-7c303f96.js → normalizeLink-bae43899.js} +0 -0
  284. /package/build/esm/{number-d5c1e150.js → number-07ae3046.js} +0 -0
  285. /package/build/esm/{paths-a1da3d54.js → paths-be7ff55f.js} +0 -0
  286. /package/build/esm/{theme-23782329.js → theme-dab2950f.js} +0 -0
  287. /package/build/esm/{translationsContext-5ab0d4b4.js → translationsContext-5a2101f0.js} +0 -0
  288. /package/build/esm/{tslib.es6-2cb84ad8.js → tslib.es6-16e6bdc9.js} +0 -0
  289. /package/build/esm/{types-69671356.js → types-27d242a7.js} +0 -0
  290. /package/build/esm/{useIsInit-f38f0d5c.js → useIsInit-aa198cba.js} +0 -0
  291. /package/build/esm/{useOutsideClick-f050c073.js → useOutsideClick-a88e81d5.js} +0 -0
  292. /package/build/esm/{useScrollbarSize-7f0be029.js → useScrollbarSize-81850e48.js} +0 -0
  293. /package/build/esm/{utils-1ad4f186.js → utils-f69a5c66.js} +0 -0
  294. /package/build/{index-ba62d856.js → index-49020afd.js} +0 -0
  295. /package/build/{index-aaeccb69.js → index-5caececd.js} +0 -0
  296. /package/build/{index-0790d5ae.js → index-d725f995.js} +0 -0
  297. /package/build/{isProduction-9e0e9225.js → isProduction-5ee9440e.js} +0 -0
  298. /package/build/{localizeNumberFormat-c501510d.js → localizeNumberFormat-d05fe4e0.js} +0 -0
  299. /package/build/{normalizeLink-91646273.js → normalizeLink-069cc041.js} +0 -0
  300. /package/build/{number-21ab8a99.js → number-b3bfb023.js} +0 -0
  301. /package/build/{paths-99000104.js → paths-24d6890e.js} +0 -0
  302. /package/build/{theme-533eba85.js → theme-571f5130.js} +0 -0
  303. /package/build/{translationsContext-b64cc287.js → translationsContext-dfb5d88d.js} +0 -0
  304. /package/build/{tslib.es6-0476eed4.js → tslib.es6-94b275ba.js} +0 -0
  305. /package/build/{types-5c712d9e.js → types-bf4f47c3.js} +0 -0
  306. /package/build/{useIsInit-2a888094.js → useIsInit-4db83cec.js} +0 -0
  307. /package/build/{useOutsideClick-3b96ab2e.js → useOutsideClick-51ce49df.js} +0 -0
  308. /package/build/{useScrollbarSize-bd02c351.js → useScrollbarSize-2e658fb6.js} +0 -0
  309. /package/build/{utils-381e90c1.js → utils-f2321c70.js} +0 -0
package/build/misc.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./localizeNumberFormat-c501510d.js"),r=require("./animation-ce2ee519.js"),t=require("./cookieHelper-1bbbf79c.js");require("react"),require("styled-components");var o=require("./theme-533eba85.js"),i=require("./number-21ab8a99.js"),s=require("./routing-2fc7c708.js"),a=require("./utils-381e90c1.js"),l=require("./getDynamicHealthTool-c60e68fa.js"),p=require("./getSocialList-630891ed.js"),n=require("./dataTransform-90c60ebb.js");require("dayjs"),require("./index-3ead4f3b.js"),require("date-fns/locale"),require("./Subot-52e94ede.js"),require("./isProduction-9e0e9225.js"),require("./tslib.es6-0476eed4.js"),require("./normalizeLink-91646273.js"),require("./core-74527c16.js"),require("./index-c3fd1632.js"),require("lodash/throttle"),exports.ageGenerate=e.ageGenerate,exports.convertLocalizedStringToNumber=e.convertLocalizedStringToNumber,exports.localizeNumberFormat=e.localizeNumberFormat,exports.fadeIn=r.fadeIn,exports.slideInDown=r.slideInDown,exports.slideInLeft=r.slideInLeft,exports.slideInRight=r.slideInRight,exports.slideInUp=r.slideInUp,exports.slideOutDown=r.slideOutDown,exports.slideOutLeft=r.slideOutLeft,exports.slideOutRight=r.slideOutRight,exports.slideOutUp=r.slideOutUp,exports.deleteCookie=t.deleteCookie,exports.getCookie=t.getCookie,exports.setCookie=t.setCookie,exports.MBTheme=o.MBTheme,exports.theme=o.theme,exports.abbreviateNumber=i.abbreviateNumber,exports.getCareApiDomain=s.getCareApiDomain,exports.getCurrentBaseUrl=s.getCurrentBaseUrl,exports.getCurrentSsoUrl=s.getCurrentSsoUrl,exports.getDiscoverApiDomain=s.getDiscoverApiDomain,exports.getTogetherApiDomain=s.getTogetherApiDomain,exports.Breakpoints=a.Breakpoints,exports.MediaQueries=a.MediaQueries,exports.formatUrlWithPageParam=a.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=a.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=a.getPopupWrapperDom,exports.getWrapperDomWithSelector=a.getWrapperDomWithSelector,exports.makeParams=a.makeParams,exports.safeEncodeURI=a.safeEncodeURI,exports.startCase=a.startCase,exports.toggleNoScroll=a.toggleNoScroll,exports.formatHealthTool=l.formatHealthTool,exports.getDynamicHealthTool=l.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=l.getDynamicHealthToolWithCache,exports.getSocialList=p.getSocialList,exports.ScreenSizeContext=n.ScreenSizeContext,exports.ScreenSizeContextProvider=n.ScreenSizeContextProvider,exports.formatPill=n.formatPill,exports.getWindowSizeGroups=n.getWindowSizeGroups;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./localizeNumberFormat-d05fe4e0.js"),r=require("./animation-6d0e530d.js"),t=require("./cookieHelper-7d59b3e7.js");require("react"),require("styled-components");var o=require("./theme-571f5130.js"),i=require("./number-b3bfb023.js"),s=require("./routing-29d56eb6.js"),a=require("./utils-f2321c70.js"),l=require("./getDynamicHealthTool-c3acf06a.js"),p=require("./getSocialList-3e010454.js"),n=require("./dataTransform-9d1496b9.js");require("dayjs"),require("./index-48bcbf86.js"),require("date-fns/locale"),require("./Subot-da4770e7.js"),require("./isProduction-5ee9440e.js"),require("./tslib.es6-94b275ba.js"),require("./normalizeLink-069cc041.js"),require("./core-b543f933.js"),require("./index-3f91ded6.js"),require("lodash/throttle"),exports.ageGenerate=e.ageGenerate,exports.convertLocalizedStringToNumber=e.convertLocalizedStringToNumber,exports.localizeNumberFormat=e.localizeNumberFormat,exports.fadeIn=r.fadeIn,exports.slideInDown=r.slideInDown,exports.slideInLeft=r.slideInLeft,exports.slideInRight=r.slideInRight,exports.slideInUp=r.slideInUp,exports.slideOutDown=r.slideOutDown,exports.slideOutLeft=r.slideOutLeft,exports.slideOutRight=r.slideOutRight,exports.slideOutUp=r.slideOutUp,exports.deleteCookie=t.deleteCookie,exports.getCookie=t.getCookie,exports.setCookie=t.setCookie,exports.MBTheme=o.MBTheme,exports.theme=o.theme,exports.abbreviateNumber=i.abbreviateNumber,exports.getCareApiDomain=s.getCareApiDomain,exports.getCurrentBaseUrl=s.getCurrentBaseUrl,exports.getCurrentSsoUrl=s.getCurrentSsoUrl,exports.getDiscoverApiDomain=s.getDiscoverApiDomain,exports.getTogetherApiDomain=s.getTogetherApiDomain,exports.Breakpoints=a.Breakpoints,exports.MediaQueries=a.MediaQueries,exports.formatUrlWithPageParam=a.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=a.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=a.getPopupWrapperDom,exports.getWrapperDomWithSelector=a.getWrapperDomWithSelector,exports.makeParams=a.makeParams,exports.safeEncodeURI=a.safeEncodeURI,exports.startCase=a.startCase,exports.toggleNoScroll=a.toggleNoScroll,exports.formatHealthTool=l.formatHealthTool,exports.getDynamicHealthTool=l.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=l.getDynamicHealthToolWithCache,exports.getSocialList=p.getSocialList,exports.ScreenSizeContext=n.ScreenSizeContext,exports.ScreenSizeContextProvider=n.ScreenSizeContextProvider,exports.formatPill=n.formatPill,exports.getWindowSizeGroups=n.getWindowSizeGroups;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-c9f86bff.js");require("./tslib.es6-0476eed4.js"),require("react"),require("./index-33839bf2.js"),require("./index-c3fd1632.js"),require("./index-3ead4f3b.js"),require("date-fns/locale"),require("./Subot-52e94ede.js"),require("./isProduction-9e0e9225.js"),require("./index-65b1d890.js"),require("@mantine/core"),require("@mantine/hooks"),require("./theme-533eba85.js"),require("dayjs"),require("./utils-381e90c1.js"),require("styled-components"),require("@mantine/carousel"),require("./Plus-29cf93ab.js"),require("classnames"),require("./useUniqueId-dcfc3871.js"),require("./normalizeLink-91646273.js"),require("./routing-2fc7c708.js"),require("./index-84d7415b.js"),require("./utils-2424ad70.js"),require("./cookieHelper-1bbbf79c.js"),require("slugify"),require("string-format"),require("./index-61501e74.js"),require("./utils-7b0b950b.js"),require("./useTranslations-498d106f.js"),require("./translationsContext-b64cc287.js"),require("lodash/throttle"),require("@mantine/dates"),require("./constants-6df0e996.js"),require("./index-6853c2df.js"),require("./WhatsApp-0328afb7.js"),require("./index.styles-0f69a584.js"),require("./constants-accf73ad.js"),require("./animation-ce2ee519.js"),require("react-keyed-flatten-children"),require("./ChevronDown-60dfaf68.js"),require("./index-ea138477.js"),require("./index-8da5271e.js"),require("./useIsInit-2a888094.js"),require("./index.styled-c87d00c0.js"),require("./index-ba62d856.js"),require("dayjs/plugin/relativeTime"),require("./index-0790d5ae.js"),require("lodash/debounce"),require("./core-74527c16.js"),exports.NavigationV2=e.NavigationV2,exports.getNavMenuContent=e.getNavMenuContent,exports.getNavMenuContentWithCache=e.getNavMenuContentWithCache;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-222727c4.js");require("./tslib.es6-94b275ba.js"),require("react"),require("./index-2deaed20.js"),require("@mantine/core"),require("@mantine/hooks"),require("./theme-571f5130.js"),require("./index-3f91ded6.js"),require("./index-48bcbf86.js"),require("date-fns/locale"),require("./Subot-da4770e7.js"),require("./isProduction-5ee9440e.js"),require("dayjs"),require("./utils-f2321c70.js"),require("styled-components"),require("@mantine/carousel"),require("./Plus-155fd41f.js"),require("classnames"),require("./useTranslations-d2cbefef.js"),require("./translationsContext-dfb5d88d.js"),require("string-format"),require("./normalizeLink-069cc041.js"),require("./routing-29d56eb6.js"),require("./index-046ee378.js"),require("./utils-af90797a.js"),require("./cookieHelper-7d59b3e7.js"),require("slugify"),require("./index-bbdde6e0.js"),require("./utils-90cf77ff.js"),require("lodash/throttle"),require("@mantine/dates"),require("./constants-6a8e6824.js"),require("./index-7feececd.js"),require("./WhatsApp-cbd2b870.js"),require("./index.styles-b34ee290.js"),require("./constants-5f9a141f.js"),require("./animation-6d0e530d.js"),require("react-keyed-flatten-children"),require("./ChevronDown-e3a06b59.js"),require("./index-14cdaffe.js"),require("./index-eca857bd.js"),require("./useIsInit-4db83cec.js"),require("./index.styled-3811edd9.js"),require("./index-49020afd.js"),require("dayjs/plugin/relativeTime"),require("./index-d725f995.js"),require("lodash/debounce"),require("./core-b543f933.js"),exports.NavigationV2=e.NavigationV2,exports.getNavMenuContent=e.getNavMenuContent,exports.getNavMenuContentWithCache=e.getNavMenuContentWithCache;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@mantine/core"),a=require("./index-65b1d890.js");require("@mantine/dates");var n=require("./index-3ead4f3b.js");require("./Subot-52e94ede.js");var r=require("./index-c3fd1632.js"),o=require("./Plus-29cf93ab.js"),i=require("./theme-533eba85.js");require("./translationsContext-b64cc287.js"),require("string-format");var l=require("@mantine/hooks"),s=require("./utils-381e90c1.js"),d=require("./utils-f53640d1.js"),u=require("@mantine/form"),m=require("styled-components"),c=require("./tslib.es6-0476eed4.js"),p=require("./index.styles-0f69a584.js");require("./constants-accf73ad.js");var f=require("./utils-7b0b950b.js"),g=require("./useTranslations-498d106f.js");require("./WhatsApp-0328afb7.js"),require("./index.styled-c87d00c0.js"),require("./index-ba62d856.js"),require("./utils-2424ad70.js");var b=require("yup"),h=require("./index-03b6e1bc.js"),E=require("./index-98bbfe57.js"),x=require("./Visible-8835941a.js"),C=require("react-dom"),v=require("./index-6853c2df.js"),L=require("lodash/throttle"),y=require("./index-ea138477.js"),w=require("./index-cdf8d22b.js"),S=require("date-fns"),M=require("react-keyed-flatten-children");function P(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function j(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("dayjs"),require("@mantine/carousel"),require("classnames"),require("date-fns/locale"),require("./isProduction-9e0e9225.js"),require("./animation-ce2ee519.js"),require("./cookieHelper-1bbbf79c.js"),require("slugify"),require("./useUniqueId-dcfc3871.js");var O=P(e),_=P(m),T=j(b),k=P(L),q=P(M);const B=e.createContext({currentStep:0,setCurrentStep:()=>!1,setMaxStep:()=>!1,nextStep:()=>!1,prevStep:()=>!1,isMarryBaby:!1,siteType:"helloSites",sharedData:{},setSharedData:()=>!1}),[F,I,z]=u.createFormContext(),N=_.default(t.Box)`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@mantine/core"),a=require("./index-2deaed20.js");require("@mantine/dates");var n=require("./index-48bcbf86.js");require("./Subot-da4770e7.js");var r=require("./index-3f91ded6.js"),o=require("./Plus-155fd41f.js"),i=require("./theme-571f5130.js");require("./translationsContext-dfb5d88d.js"),require("string-format");var l=require("@mantine/hooks"),s=require("./utils-f2321c70.js"),d=require("./utils-1a351432.js"),u=require("@mantine/form"),m=require("styled-components"),c=require("./tslib.es6-94b275ba.js"),p=require("./index.styles-b34ee290.js");require("./constants-5f9a141f.js");var f=require("./utils-90cf77ff.js"),g=require("./useTranslations-d2cbefef.js");require("./WhatsApp-cbd2b870.js"),require("./index.styled-3811edd9.js"),require("./index-49020afd.js"),require("./utils-af90797a.js");var b=require("yup"),h=require("./index-ba567cf6.js"),E=require("./index-296a0b5b.js"),x=require("./Visible-bbf989e9.js"),C=require("react-dom"),v=require("./index-7feececd.js"),L=require("lodash/throttle"),y=require("./index-14cdaffe.js"),w=require("./index-ae905846.js"),S=require("date-fns"),M=require("react-keyed-flatten-children");function P(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function j(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("dayjs"),require("@mantine/carousel"),require("classnames"),require("date-fns/locale"),require("./isProduction-5ee9440e.js"),require("./animation-6d0e530d.js"),require("./cookieHelper-7d59b3e7.js"),require("slugify");var O=P(e),_=P(m),T=j(b),k=P(L),q=P(M);const B=e.createContext({currentStep:0,setCurrentStep:()=>!1,setMaxStep:()=>!1,nextStep:()=>!1,prevStep:()=>!1,isMarryBaby:!1,siteType:"helloSites",sharedData:{},setSharedData:()=>!1}),[F,I,z]=u.createFormContext(),N=_.default(t.Box)`
2
2
  .phone-input {
3
3
  width: 100%;
4
4
  margin-bottom: 32px;
package/build/pwg.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-4b4621fc.js"),a=require("./Plus-29cf93ab.js"),r=require("./index-af31de20.js"),l=require("./useTranslations-498d106f.js"),n=require("./theme-533eba85.js"),i=require("recharts"),o=require("./index-ba62d856.js"),s=require("./useOutsideClick-3b96ab2e.js"),c=require("styled-components"),d=require("./tslib.es6-0476eed4.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./index.styled-c87d00c0.js"),require("@mantine/core"),require("./Subot-52e94ede.js"),require("./index-c3fd1632.js"),require("./index-3ead4f3b.js"),require("date-fns/locale"),require("./isProduction-9e0e9225.js"),require("./index-65b1d890.js"),require("@mantine/hooks"),require("dayjs"),require("./utils-381e90c1.js"),require("@mantine/carousel"),require("classnames"),require("./index-cdf8d22b.js"),require("@mantine/dates"),require("./translationsContext-b64cc287.js"),require("string-format");var m=u(e),f=u(c);const p=e=>{const{x:t,y:a,payload:r,activeWeek:l}=e;return l===r.value?m.default.createElement("g",{transform:`translate(${t},${a})`},m.default.createElement("circle",{r:12,fill:"marryBaby"===e.siteType?n.theme.mbColors.pink:n.theme.colors.primaryBase}),m.default.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:n.theme.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},r.value)):m.default.createElement("g",{transform:`translate(${t},${a})`},m.default.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:n.theme.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},r.value))},g=f.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-ffd92aea.js"),a=require("./Plus-155fd41f.js"),r=require("./index-80fbf9a2.js"),l=require("./useTranslations-d2cbefef.js"),n=require("./theme-571f5130.js"),i=require("recharts"),o=require("./index-49020afd.js"),s=require("./useOutsideClick-51ce49df.js"),c=require("styled-components"),d=require("./tslib.es6-94b275ba.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./index.styled-3811edd9.js"),require("@mantine/core"),require("./Subot-da4770e7.js"),require("./index-3f91ded6.js"),require("./index-48bcbf86.js"),require("date-fns/locale"),require("./isProduction-5ee9440e.js"),require("./index-2deaed20.js"),require("@mantine/hooks"),require("dayjs"),require("./utils-f2321c70.js"),require("@mantine/carousel"),require("classnames"),require("./index-ae905846.js"),require("@mantine/dates"),require("./translationsContext-dfb5d88d.js"),require("string-format");var m=u(e),f=u(c);const p=e=>{const{x:t,y:a,payload:r,activeWeek:l}=e;return l===r.value?m.default.createElement("g",{transform:`translate(${t},${a})`},m.default.createElement("circle",{r:12,fill:"marryBaby"===e.siteType?n.theme.mbColors.pink:n.theme.colors.primaryBase}),m.default.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:n.theme.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},r.value)):m.default.createElement("g",{transform:`translate(${t},${a})`},m.default.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:n.theme.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},r.value))},g=f.default.div`
2
2
  /* position: absolute; */
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1 +1 @@
1
- "use strict";var e=require("./index-3ead4f3b.js"),o=require("./isProduction-9e0e9225.js");exports.getCareApiDomain=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${o.isProduction?"health-care.":"service-health-care."}hellohealthgroup.com`,exports.getCurrentBaseUrl=(t,s)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,i=!r&&!o.isProduction;return r?"http://localhost:3000":`https://${i?s?"fe.":"discover.":s?"www.":""}${e.domainLocales[s?"vi-VN_MB":t]}`},exports.getCurrentSsoUrl=(t,s)=>process.env.UNIFY_SSO_API||`https://${o.isProduction?"id.":"staging-id."}${e.domainLocales[s?"vi-VN_MB":t]}`,exports.getDiscoverApiDomain=t=>process.env.UNIFY_DISCOVER_API||`https://${o.isProduction?"wp.":"staging."}${e.domainLocales[t]}`,exports.getTogetherApiDomain=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${o.isProduction?"together.":"staging-together."}hellohealthgroup.com`;
1
+ "use strict";var e=require("./index-48bcbf86.js"),o=require("./isProduction-5ee9440e.js");exports.getCareApiDomain=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${o.isProduction?"health-care.":"service-health-care."}hellohealthgroup.com`,exports.getCurrentBaseUrl=(t,s)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,i=!r&&!o.isProduction;return r?"http://localhost:3000":`https://${i?s?"fe.":"discover.":s?"www.":""}${e.domainLocales[s?"vi-VN_MB":t]}`},exports.getCurrentSsoUrl=(t,s)=>process.env.UNIFY_SSO_API||`https://${o.isProduction?"id.":"staging-id."}${e.domainLocales[s?"vi-VN_MB":t]}`,exports.getDiscoverApiDomain=t=>process.env.UNIFY_DISCOVER_API||`https://${o.isProduction?"wp.":"staging."}${e.domainLocales[t]}`,exports.getTogetherApiDomain=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${o.isProduction?"together.":"staging-together."}hellohealthgroup.com`;
package/build/subot.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Subot-52e94ede.js"),i=require("./tslib.es6-0476eed4.js"),n=require("./index-3ead4f3b.js"),a=require("js-cookie"),o=require("fastdom"),l=require("fastdom/extensions/fastdom-promised"),r=require("string-format"),d=require("./utils-2424ad70.js"),s=require("uuid"),c=require("./isProduction-9e0e9225.js"),u=require("hex-rgb"),m=require("classnames"),p=require("./index-0790d5ae.js"),f=require("./index-3893e92a.js"),v=require("framer-motion"),g=require("./utils-381e90c1.js"),b=require("styled-components"),h=require("./index-65b1d890.js"),y=require("remarkable"),_=require("react-intersection-observer"),E=require("@mantine/core"),x=require("./index-c3fd1632.js"),N=require("./index-6853c2df.js"),T=require("dayjs"),w=require("dayjs/plugin/isSameOrBefore"),I=require("./Plus-29cf93ab.js"),S=require("./theme-533eba85.js");require("@mantine/dates"),require("./translationsContext-b64cc287.js"),require("@mantine/hooks");var O=require("lodash/isEmpty"),k=require("react-hook-form"),C=require("react-phone-number-input"),M=require("@react-google-maps/api"),A=require("./usePlacesAutocomplete-df148a7c.js"),P=require("./index-ea138477.js"),R=require("./index-fec5e458.js");function U(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("date-fns/locale"),require("./cookieHelper-1bbbf79c.js"),require("slugify"),require("./useTranslations-498d106f.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("@mantine/carousel"),require("./WhatsApp-0328afb7.js"),require("./useUniqueId-dcfc3871.js");var B=U(e),L=U(a),j=U(o),D=U(l),q=U(r),$=U(u),F=U(m),G=U(b),z=U(T),H=U(w),Y=U(O),V=U(C);const Q=j.default.extend(D.default),K={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}"},W={cached:{},clearCached:e=>{console.log(W.cached),Object.keys(W.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),W.cached[e]=void 0}))},withCached:(e,t)=>i.__awaiter(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===W.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof W.cached[e]&&(t(W.cached[e]),clearInterval(n))}),100)}));if("object"==typeof W.cached[e])return W.cached[e];W.cached[e]="waitingTheFirstResponse";try{const i=yield t();return W.cached[e]=i,setTimeout((()=>{W.cached[e]=void 0}),18e5),i}catch(t){return W.cached[e]=void 0,Promise.reject(t)}}))},X=(e,t)=>{const{subotApiUrl:i}=null===d.GlobalData||void 0===d.GlobalData?void 0:d.GlobalData.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+q.default(e,Object.assign({},t))},J=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield d.callApi(X(K.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Z=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},ee=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield W.withCached("SubotInlineFirstNode",(()=>i.__awaiter(void 0,void 0,void 0,(function*(){const t=yield d.callApi(X(K.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Z(t),t}))))}catch(e){return null}})),te=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield d.callApi(X(K.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),ie=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield d.callApi(X(K.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),ne=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],ae=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...ne],oe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(ae.includes(i))if(ne.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),le=e=>[{id:s.v4(),label:JSON.stringify({title:"",description:""}),type:t.NodeIntentType.SSO_INTENT,url:""},{id:s.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:s.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:s.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/shield.svg"}];function re(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,a=(new Date).getTime(),o=setInterval((()=>{((new Date).getTime()-a>n||t())&&(clearInterval(o),i())}),300)}const de=e=>d.cookie.parse(e||"")["hhg-id"]||L.default.get("hhg-id")||"",se=e=>{if(e)return L.default.set("hhg-id",e),e;const t=de();if(t)return t;const i=s.v4();return L.default.set("hhg-id",i),i},ce=e=>{const t=d.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";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""}},ue=e=>{const t=d.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";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}}},me=s.v4(),pe=()=>me,fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${c.isProduction?"":"discover."}${n.domainLocales[e]}`,ve=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)))},ge=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},be=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},he=(e,i,n,a)=>{const o=be(e[0]);if(!i)return{};const l=e.findIndex((e=>e.id==i)),r=e.reduce(((e,r,d)=>{var s,c;if(d>l)return e;const u=r,m=n&&u.id===i?{action_id:n}:u._message;let p=0;const f=null===(s=u.actions)||void 0===s?void 0:s.find((e=>e.id===(null==m?void 0:m.action_id)));p+=(null==f?void 0:f.score)||0;const v=void 0!==o[u.id],g=n&&u.id===i?a:null==m?void 0:m.form_submit_meta;if(v&&u.type===t.NodeType.FORM&&g){const e=o[u.id].action_id,t=null===(c=u.actions)||void 0===c?void 0:c.find((t=>t.id===e)),i=null==t?void 0:t.key,n=g.find((e=>e.key===i&&"number"===e.control));if(o[u.id].number&&["+","-","x","/"].includes(o[u.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[u.id].operator,i=o[u.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:r}},ye=(e,i)=>{const n=be(i[0]);if(0===Object.keys(n).length)return e;const a=i.filter((e=>e.type===t.NodeType.FORM));return Object.keys(n).forEach((t=>{var i,o,l;const r=a.find((e=>e.id===t)),d=null===(i=null==r?void 0:r.actions)||void 0===i?void 0:i.find((e=>{var i;return e.id===(null===(i=n[t])||void 0===i?void 0:i.action_id)})),s=null==d?void 0:d.key,c=null===(l=null===(o=null==r?void 0:r._message)||void 0===o?void 0:o.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===s&&"number"===e.control));if(n[t].number&&["+","-","x","/"].includes(n[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const i=Number(c.value),a=n[t].operator,o=n[t].number;let l=0;if("+"===a&&(l=i+o),"-"===a&&(l=i-o),"x"===a&&(l=i*o),"/"===a&&(l=i/o),e.includes(`{{var:${s}}}`)){const t=new RegExp(`{{var:${s}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},_e="other",Ee="stateInlineSSO",xe=()=>{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{}}},Ne=e=>{const i=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,i)=>{var n,a,o,l,r,d,s,c,u,m,p,f,v,g,b,h,y,_,E,x,N;if(i.actions&&(null===(n=i._message)||void 0===n?void 0:n.action_id)&&(null===(a=i._message)||void 0===a?void 0:a.action_value)){const n=i._message.action_value;if(i.type===t.NodeType.FORM){const t=["address","province","district","commune"],n=((null===(o=i._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!t.includes(e.control))),a=((null===(l=i._message)||void 0===l?void 0:l.form_submit_meta)||[]).filter((e=>t.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(r=a.address)||void 0===r?void 0:r.value,null===(d=a.commune)||void 0===d?void 0:d.value,null===(s=a.district)||void 0===s?void 0:s.value,null===(c=a.province)||void 0===c?void 0:c.value].filter(Boolean).join(", ");p&&a.address?e.push({attribute:a.address.key,value:p,label_question:(null===(m=null===(u=i.intents)||void 0===u?void 0:u[0])||void 0===m?void 0:m.label)||""}):n.forEach((t=>{var n,a;e.push({attribute:t.key,value:t.value,label_question:(null===(a=null===(n=i.intents)||void 0===n?void 0:n[0])||void 0===a?void 0:a.label)||""})}))}if(i.type===t.NodeType.TEXT)if(i.is_multi_select){const t=Object.keys(i._message.selected_actions||{}),n=i.actions.filter((e=>e.label&&t.includes(e.id))).map((e=>e.label));t.length&&e.push({attribute:i.actions[0].key||"",value:n,label_question:(null===(f=null===(p=i.intents)||void 0===p?void 0:p[0])||void 0===f?void 0:f.label)||""})}else{const a=i._message.action_id,o=i.actions.find((e=>e.id===a)),l=null==o?void 0:o.label,r=null===(b=null===(g=null===(v=i._message)||void 0===v?void 0:v.form_submit_meta)||void 0===g?void 0:g.find((e=>e.key===_e)))||void 0===b?void 0:b.value,d=(null==o?void 0:o.type)===t.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;l&&a&&e.push({attribute:n,value:d&&r?r:l,label_question:(null===(y=null===(h=i.intents)||void 0===h?void 0:h[0])||void 0===y?void 0:y.label)||""})}if(i.type===t.NodeType.POLL){const t=i.id,n=(null===(E=null===(_=i._message)||void 0===_?void 0:_.current_polls)||void 0===E?void 0:E[t])||[],a=i.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:i.actions[0].key||"",value:a,label_question:(null===(N=null===(x=i.intents)||void 0===x?void 0:x[0])||void 0===N?void 0:N.label)||""})}}return e}),[]);return i},Te=(e,i)=>{var n;try{if("ACUVUE"!==(null===(n=i.extra_settings)||void 0===n?void 0:n.subot_type))return;let a="",o="",l="",r=ue().email;if((e||[]).forEach((e=>{var i,n,d;const s=e._message;if(!s)return;const c=null===(i=e.actions)||void 0===i?void 0:i.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?a=(null==c?void 0:c.label)||"":"voucher_color"===s.action_value&&(o=(null==c?void 0:c.label)||""),e.type===t.NodeType.FORM){const e=null===(n=s.form_submit_meta)||void 0===n?void 0:n.find((e=>"voucher_size"===e.key)),t=null===(d=s.form_submit_meta)||void 0===d?void 0:d.find((e=>"email"===e.control));e&&(l=e.value),t&&(r=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===a&&r)return{email:r,voucherName:a};if(a&&o&&l&&r)return{email:r,voucherName:`${a}|${o}|${l}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},we=({nodes:e,activeId:a,params:o,accountIdFromLogs:l})=>i.__awaiter(void 0,void 0,void 0,(function*(){try{let i="in_progress";const r=e[e.length-1];(null==r?void 0:r.type)&&t.NodeFinalTypes.includes(r.type)&&(i="complete");const s=e.slice(1),c={activeId:a,params:o,nodes:s,tracking:Object.assign(Object.assign({},xe()),{full_url:window.location.href}),unifiedAnswers:Ne(s),voucherAnswers:Te(s,e[0])},u={cookie_id:se(),account_id:l||ce()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(c),status:i,type:"inline",market:n.MAP_DOMAIN_BY_LOCALE[d.locale]};yield d.callApi(X(K.POST_SUBOT_CREATE_LOG),"POST",{data:u})}catch(e){}})),Ie=(e,t)=>{try{const[i,n,a]=$.default(e,{format:"array"});return`rgba(${i}, ${n}, ${a}, ${t})`}catch(e){return}},Se=e.createContext({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),Oe=({children:a,articleLink:o,subotId:l,isFullContainer:r,bgColor:s,primaryColor:c,isDisabledAnimationOnMobile:u,onCloseMobile:m,userInfo:p})=>{const{formatMessage:f,action:{pushNotifications:v}}=e.useContext(d.TogetherComponentGlobalContext),g=e.useRef(null),b=e.useRef(null),[h,y]=e.useState(!0),[_,E]=e.useState(""),[x,N]=e.useState([]),[T,w]=e.useState(!1),[I,S]=e.useState({});e.useEffect((()=>{const e=s||"#e3f2ff",t=c||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const a=g.current,o=(new Date).getTime();a&&(Q.mutate((()=>{a.style.setProperty("--subot-inline-bg-color",e),a.style.setProperty("--subot-inline-primary-color",t),a.style.setProperty("--subot-inline-primary-color-hover",Ie(t,.9)||t),a.style.setProperty("--subot-inline-primary-color-100",Ie(t,.1)||"#e3f2ff"),a.style.setProperty("--subot-inline-primary-color-300",Ie(t,.3)||"#bcdeff")})),clearInterval(n)),o-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[s,c]);const O=e.useCallback((()=>{const e=window.gaData,t=window.location.origin+n.basePath+("tl-PH"===(null===d.GlobalData||void 0===d.GlobalData?void 0:d.GlobalData.locale)?o.replace("fil/",""):o),i={bot_id:l,account_id:ce()||null,action_id:"",action_value:"",cookie_id:se(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:L.default.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:pe()};return oe(i,null===d.GlobalData||void 0===d.GlobalData?void 0:d.GlobalData.router.query)}),[]),k=e.useCallback((()=>{var e;null===(e=g.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),C=e.useCallback(((e,n=!0)=>i.__awaiter(void 0,void 0,void 0,(function*(){var a;if(!e||!e.url||!e.bot_id)return;let o="",l=[];y(!0);const r=yield ee(e.bot_id);1===(null==r?void 0:r._status)&&(o=null==r?void 0:r._data.id.toString(),l.push(null==r?void 0:r._data,null==r?void 0:r._data.first_node));const s=n?yield(c=l[0],i.__awaiter(void 0,void 0,void 0,(function*(){var e,t;try{if(!c)return null;const i=yield d.callApi(X(K.GET_SUBOT_LOG,{botId:c.id,cookieId:se(),accountId:ce()||"",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),a=n.nodes,o="in_progress"===i._data.status,l="complete"===i._data.status;return o||l?{nodes:[c,...a],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:ce()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var c;s&&(l=s.nodes,o=s.activeId,b.current=(null===(a=s.params)||void 0===a?void 0:a.account_id)||0);const u=((e,{getParams:i})=>{try{if(!ce())return null;const n=JSON.parse(localStorage.getItem(Ee)||""),a=18e5;return(null==n?void 0:n.botId)===e&&n.listNodes&&n.activeId&&n.createdAt+a>Date.now()&&(localStorage.removeItem(Ee),n.listNodes.slice(-1)[0].position===t.NodePosition.SSO)?{listNodes:n.listNodes,activeId:n.activeId,params:Object.assign(Object.assign(Object.assign({},i()),n.params),{account_id:ce()||null,cookie_id:se(n.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:O});if(u&&u.params.action_id&&u.params.action_value){const e=yield J(u.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(o=null==e?void 0:e._data.node.id,l=u.listNodes,l[l.length-1]=null==e?void 0:e._data.node,we({nodes:l,activeId:o,params:u.params,accountIdFromLogs:b.current}),setTimeout((()=>{k()}),100))}const m=(null==u?void 0:u.params)||(null==s?void 0:s.params)||e,[p,f]=((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]})(l[0],o,l);y(!1),E(p),N(f),S(Object.assign(Object.assign({},e),m))}))),[]),M=e.useCallback(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${l}"]`);i&&i.click();let n=_,a=[...x];if(null==t?void 0:t.node_id){const e=a.findIndex((({id:e})=>e==t.node_id));-1!==e&&(a[e]._message=Object.assign(Object.assign({},a[e]._message),t),a=[...a.slice(0,e+1)])}if(y(!0),e){const t=a.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)a=[...a,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},a[t]),e),{_message:Object.assign(Object.assign({},a[t]._message),null==e?void 0:e._message)});a=[...a.slice(0,t),Object.assign({},i),...a.slice(t+1)]}n=e.id}setTimeout((()=>{N(a),E(n),y(!1),we({nodes:a,activeId:n,params:I,accountIdFromLogs:b.current})}),250)}),[x,_]),A=e.useCallback((e=>i.__awaiter(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),he(x,_,e.action_id)),n=yield J(t);if(y(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:a}=e,o=i.__rest(e,["node"]),l=Object.assign(Object.assign({},a),{_message:Object.assign(Object.assign({},o),{node_id:a.id})});return void(-1!==x.findIndex((e=>e.id===l.id))?M(l):M(l,t))}v({title:f({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=x.find((e=>e.id==_));t&&t.hasOwnProperty("first_node")&&(E(x[1].id.toString()),we({nodes:x,activeId:x[1].id.toString(),params:O(),accountIdFromLogs:b.current}))}))),[M,x]),P=e.useCallback((()=>{const e=x.findIndex((({id:e})=>e==_));if(e&&-1!==e&&e>1){const t=x[e-1];E(t.id),we({nodes:x,activeId:t.id,params:I,accountIdFromLogs:b.current})}}),[x,_]),R=e.useCallback((()=>{const e=O();C(e,!1);const t=x[0],i=x[1];we({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:b.current})}),[O,C,x]),U=e.useCallback((e=>{N((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==_?t.map((t=>{const i=t;return i.id===_?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[_]);e.useEffect((()=>{if(L.default.get(n.GA_TOKEN_COOKIE)){const e=O();C(e)}else re({condition:()=>Boolean(L.default.get(n.GA_TOKEN_COOKIE)),finished:()=>{const e=O();C(e)}})}),[]),e.useEffect((()=>{if(!x.length)return;x.find((e=>e.id==_))&&_||E(l+"")}),[_,x]);const j=e.useMemo((()=>({activeId:_,params:I,listNodes:x,loading:h,setLoading:y,getParams:O,onNext:A,onPrev:P,onSubmit:M,onStartOver:R,onChange:U,isShowFooter:T,setIsShowFooter:w,isFullContainer:r,isDisabledAnimationOnMobile:u,onCloseMobile:m,userInfo:p})),[_,A,P,M,U,R,T,I,x,h,y,O,r,u,m,p]);return x.length?B.default.createElement(Se.Provider,{value:j},B.default.createElement("div",{ref:g},a)):null},ke=e=>B.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),B.default.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"})),Ce="480px",Me=G.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Subot-da4770e7.js"),i=require("./tslib.es6-94b275ba.js"),n=require("./index-48bcbf86.js"),a=require("js-cookie"),o=require("fastdom"),l=require("fastdom/extensions/fastdom-promised"),r=require("string-format"),d=require("./utils-af90797a.js"),s=require("uuid"),c=require("./isProduction-5ee9440e.js"),u=require("hex-rgb"),m=require("classnames"),p=require("./index-d725f995.js"),f=require("./index-f39724a1.js"),v=require("framer-motion"),g=require("./utils-f2321c70.js"),b=require("styled-components"),h=require("./index-2deaed20.js"),y=require("remarkable"),_=require("react-intersection-observer"),E=require("@mantine/core"),x=require("./index-3f91ded6.js"),N=require("./index-7feececd.js"),T=require("dayjs"),w=require("dayjs/plugin/isSameOrBefore"),I=require("./Plus-155fd41f.js"),S=require("./theme-571f5130.js");require("@mantine/dates"),require("./translationsContext-dfb5d88d.js"),require("@mantine/hooks");var O=require("lodash/isEmpty"),k=require("react-hook-form"),C=require("react-phone-number-input"),M=require("@react-google-maps/api"),A=require("./usePlacesAutocomplete-07a7b610.js"),P=require("./index-14cdaffe.js"),R=require("./index-f6cc5b05.js");function U(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("date-fns/locale"),require("./cookieHelper-7d59b3e7.js"),require("slugify"),require("./useTranslations-d2cbefef.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("@mantine/carousel"),require("./WhatsApp-cbd2b870.js");var B=U(e),L=U(a),j=U(o),D=U(l),q=U(r),$=U(u),F=U(m),G=U(b),z=U(T),H=U(w),Y=U(O),V=U(C);const Q=j.default.extend(D.default),K={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}"},W={cached:{},clearCached:e=>{console.log(W.cached),Object.keys(W.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),W.cached[e]=void 0}))},withCached:(e,t)=>i.__awaiter(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===W.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof W.cached[e]&&(t(W.cached[e]),clearInterval(n))}),100)}));if("object"==typeof W.cached[e])return W.cached[e];W.cached[e]="waitingTheFirstResponse";try{const i=yield t();return W.cached[e]=i,setTimeout((()=>{W.cached[e]=void 0}),18e5),i}catch(t){return W.cached[e]=void 0,Promise.reject(t)}}))},X=(e,t)=>{const{subotApiUrl:i}=null===d.GlobalData||void 0===d.GlobalData?void 0:d.GlobalData.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+q.default(e,Object.assign({},t))},J=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield d.callApi(X(K.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Z=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},ee=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield W.withCached("SubotInlineFirstNode",(()=>i.__awaiter(void 0,void 0,void 0,(function*(){const t=yield d.callApi(X(K.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Z(t),t}))))}catch(e){return null}})),te=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield d.callApi(X(K.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),ie=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield d.callApi(X(K.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),ne=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],ae=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...ne],oe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(ae.includes(i))if(ne.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),le=e=>[{id:s.v4(),label:JSON.stringify({title:"",description:""}),type:t.NodeIntentType.SSO_INTENT,url:""},{id:s.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:s.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:s.v4(),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:t.NodeIntentType.SSO_INTENT,url:"/images/subot/shield.svg"}];function re(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,a=(new Date).getTime(),o=setInterval((()=>{((new Date).getTime()-a>n||t())&&(clearInterval(o),i())}),300)}const de=e=>d.cookie.parse(e||"")["hhg-id"]||L.default.get("hhg-id")||"",se=e=>{if(e)return L.default.set("hhg-id",e),e;const t=de();if(t)return t;const i=s.v4();return L.default.set("hhg-id",i),i},ce=e=>{const t=d.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";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""}},ue=e=>{const t=d.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";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}}},me=s.v4(),pe=()=>me,fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${c.isProduction?"":"discover."}${n.domainLocales[e]}`,ve=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)))},ge=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},be=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},he=(e,i,n,a)=>{const o=be(e[0]);if(!i)return{};const l=e.findIndex((e=>e.id==i)),r=e.reduce(((e,r,d)=>{var s,c;if(d>l)return e;const u=r,m=n&&u.id===i?{action_id:n}:u._message;let p=0;const f=null===(s=u.actions)||void 0===s?void 0:s.find((e=>e.id===(null==m?void 0:m.action_id)));p+=(null==f?void 0:f.score)||0;const v=void 0!==o[u.id],g=n&&u.id===i?a:null==m?void 0:m.form_submit_meta;if(v&&u.type===t.NodeType.FORM&&g){const e=o[u.id].action_id,t=null===(c=u.actions)||void 0===c?void 0:c.find((t=>t.id===e)),i=null==t?void 0:t.key,n=g.find((e=>e.key===i&&"number"===e.control));if(o[u.id].number&&["+","-","x","/"].includes(o[u.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[u.id].operator,i=o[u.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:r}},ye=(e,i)=>{const n=be(i[0]);if(0===Object.keys(n).length)return e;const a=i.filter((e=>e.type===t.NodeType.FORM));return Object.keys(n).forEach((t=>{var i,o,l;const r=a.find((e=>e.id===t)),d=null===(i=null==r?void 0:r.actions)||void 0===i?void 0:i.find((e=>{var i;return e.id===(null===(i=n[t])||void 0===i?void 0:i.action_id)})),s=null==d?void 0:d.key,c=null===(l=null===(o=null==r?void 0:r._message)||void 0===o?void 0:o.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===s&&"number"===e.control));if(n[t].number&&["+","-","x","/"].includes(n[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const i=Number(c.value),a=n[t].operator,o=n[t].number;let l=0;if("+"===a&&(l=i+o),"-"===a&&(l=i-o),"x"===a&&(l=i*o),"/"===a&&(l=i/o),e.includes(`{{var:${s}}}`)){const t=new RegExp(`{{var:${s}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},_e="other",Ee="stateInlineSSO",xe=()=>{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{}}},Ne=e=>{const i=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,i)=>{var n,a,o,l,r,d,s,c,u,m,p,f,v,g,b,h,y,_,E,x,N;if(i.actions&&(null===(n=i._message)||void 0===n?void 0:n.action_id)&&(null===(a=i._message)||void 0===a?void 0:a.action_value)){const n=i._message.action_value;if(i.type===t.NodeType.FORM){const t=["address","province","district","commune"],n=((null===(o=i._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!t.includes(e.control))),a=((null===(l=i._message)||void 0===l?void 0:l.form_submit_meta)||[]).filter((e=>t.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(r=a.address)||void 0===r?void 0:r.value,null===(d=a.commune)||void 0===d?void 0:d.value,null===(s=a.district)||void 0===s?void 0:s.value,null===(c=a.province)||void 0===c?void 0:c.value].filter(Boolean).join(", ");p&&a.address?e.push({attribute:a.address.key,value:p,label_question:(null===(m=null===(u=i.intents)||void 0===u?void 0:u[0])||void 0===m?void 0:m.label)||""}):n.forEach((t=>{var n,a;e.push({attribute:t.key,value:t.value,label_question:(null===(a=null===(n=i.intents)||void 0===n?void 0:n[0])||void 0===a?void 0:a.label)||""})}))}if(i.type===t.NodeType.TEXT)if(i.is_multi_select){const t=Object.keys(i._message.selected_actions||{}),n=i.actions.filter((e=>e.label&&t.includes(e.id))).map((e=>e.label));t.length&&e.push({attribute:i.actions[0].key||"",value:n,label_question:(null===(f=null===(p=i.intents)||void 0===p?void 0:p[0])||void 0===f?void 0:f.label)||""})}else{const a=i._message.action_id,o=i.actions.find((e=>e.id===a)),l=null==o?void 0:o.label,r=null===(b=null===(g=null===(v=i._message)||void 0===v?void 0:v.form_submit_meta)||void 0===g?void 0:g.find((e=>e.key===_e)))||void 0===b?void 0:b.value,d=(null==o?void 0:o.type)===t.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;l&&a&&e.push({attribute:n,value:d&&r?r:l,label_question:(null===(y=null===(h=i.intents)||void 0===h?void 0:h[0])||void 0===y?void 0:y.label)||""})}if(i.type===t.NodeType.POLL){const t=i.id,n=(null===(E=null===(_=i._message)||void 0===_?void 0:_.current_polls)||void 0===E?void 0:E[t])||[],a=i.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:i.actions[0].key||"",value:a,label_question:(null===(N=null===(x=i.intents)||void 0===x?void 0:x[0])||void 0===N?void 0:N.label)||""})}}return e}),[]);return i},Te=(e,i)=>{var n;try{if("ACUVUE"!==(null===(n=i.extra_settings)||void 0===n?void 0:n.subot_type))return;let a="",o="",l="",r=ue().email;if((e||[]).forEach((e=>{var i,n,d;const s=e._message;if(!s)return;const c=null===(i=e.actions)||void 0===i?void 0:i.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?a=(null==c?void 0:c.label)||"":"voucher_color"===s.action_value&&(o=(null==c?void 0:c.label)||""),e.type===t.NodeType.FORM){const e=null===(n=s.form_submit_meta)||void 0===n?void 0:n.find((e=>"voucher_size"===e.key)),t=null===(d=s.form_submit_meta)||void 0===d?void 0:d.find((e=>"email"===e.control));e&&(l=e.value),t&&(r=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===a&&r)return{email:r,voucherName:a};if(a&&o&&l&&r)return{email:r,voucherName:`${a}|${o}|${l}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},we=({nodes:e,activeId:a,params:o,accountIdFromLogs:l})=>i.__awaiter(void 0,void 0,void 0,(function*(){try{let i="in_progress";const r=e[e.length-1];(null==r?void 0:r.type)&&t.NodeFinalTypes.includes(r.type)&&(i="complete");const s=e.slice(1),c={activeId:a,params:o,nodes:s,tracking:Object.assign(Object.assign({},xe()),{full_url:window.location.href}),unifiedAnswers:Ne(s),voucherAnswers:Te(s,e[0])},u={cookie_id:se(),account_id:l||ce()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(c),status:i,type:"inline",market:n.MAP_DOMAIN_BY_LOCALE[d.locale]};yield d.callApi(X(K.POST_SUBOT_CREATE_LOG),"POST",{data:u})}catch(e){}})),Ie=(e,t)=>{try{const[i,n,a]=$.default(e,{format:"array"});return`rgba(${i}, ${n}, ${a}, ${t})`}catch(e){return}},Se=e.createContext({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),Oe=({children:a,articleLink:o,subotId:l,isFullContainer:r,bgColor:s,primaryColor:c,isDisabledAnimationOnMobile:u,onCloseMobile:m,userInfo:p})=>{const{formatMessage:f,action:{pushNotifications:v}}=e.useContext(d.TogetherComponentGlobalContext),g=e.useRef(null),b=e.useRef(null),[h,y]=e.useState(!0),[_,E]=e.useState(""),[x,N]=e.useState([]),[T,w]=e.useState(!1),[I,S]=e.useState({});e.useEffect((()=>{const e=s||"#e3f2ff",t=c||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const a=g.current,o=(new Date).getTime();a&&(Q.mutate((()=>{a.style.setProperty("--subot-inline-bg-color",e),a.style.setProperty("--subot-inline-primary-color",t),a.style.setProperty("--subot-inline-primary-color-hover",Ie(t,.9)||t),a.style.setProperty("--subot-inline-primary-color-100",Ie(t,.1)||"#e3f2ff"),a.style.setProperty("--subot-inline-primary-color-300",Ie(t,.3)||"#bcdeff")})),clearInterval(n)),o-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[s,c]);const O=e.useCallback((()=>{const e=window.gaData,t=window.location.origin+n.basePath+("tl-PH"===(null===d.GlobalData||void 0===d.GlobalData?void 0:d.GlobalData.locale)?o.replace("fil/",""):o),i={bot_id:l,account_id:ce()||null,action_id:"",action_value:"",cookie_id:se(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:L.default.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:pe()};return oe(i,null===d.GlobalData||void 0===d.GlobalData?void 0:d.GlobalData.router.query)}),[]),k=e.useCallback((()=>{var e;null===(e=g.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),C=e.useCallback(((e,n=!0)=>i.__awaiter(void 0,void 0,void 0,(function*(){var a;if(!e||!e.url||!e.bot_id)return;let o="",l=[];y(!0);const r=yield ee(e.bot_id);1===(null==r?void 0:r._status)&&(o=null==r?void 0:r._data.id.toString(),l.push(null==r?void 0:r._data,null==r?void 0:r._data.first_node));const s=n?yield(c=l[0],i.__awaiter(void 0,void 0,void 0,(function*(){var e,t;try{if(!c)return null;const i=yield d.callApi(X(K.GET_SUBOT_LOG,{botId:c.id,cookieId:se(),accountId:ce()||"",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),a=n.nodes,o="in_progress"===i._data.status,l="complete"===i._data.status;return o||l?{nodes:[c,...a],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:ce()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var c;s&&(l=s.nodes,o=s.activeId,b.current=(null===(a=s.params)||void 0===a?void 0:a.account_id)||0);const u=((e,{getParams:i})=>{try{if(!ce())return null;const n=JSON.parse(localStorage.getItem(Ee)||""),a=18e5;return(null==n?void 0:n.botId)===e&&n.listNodes&&n.activeId&&n.createdAt+a>Date.now()&&(localStorage.removeItem(Ee),n.listNodes.slice(-1)[0].position===t.NodePosition.SSO)?{listNodes:n.listNodes,activeId:n.activeId,params:Object.assign(Object.assign(Object.assign({},i()),n.params),{account_id:ce()||null,cookie_id:se(n.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:O});if(u&&u.params.action_id&&u.params.action_value){const e=yield J(u.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(o=null==e?void 0:e._data.node.id,l=u.listNodes,l[l.length-1]=null==e?void 0:e._data.node,we({nodes:l,activeId:o,params:u.params,accountIdFromLogs:b.current}),setTimeout((()=>{k()}),100))}const m=(null==u?void 0:u.params)||(null==s?void 0:s.params)||e,[p,f]=((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]})(l[0],o,l);y(!1),E(p),N(f),S(Object.assign(Object.assign({},e),m))}))),[]),M=e.useCallback(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${l}"]`);i&&i.click();let n=_,a=[...x];if(null==t?void 0:t.node_id){const e=a.findIndex((({id:e})=>e==t.node_id));-1!==e&&(a[e]._message=Object.assign(Object.assign({},a[e]._message),t),a=[...a.slice(0,e+1)])}if(y(!0),e){const t=a.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)a=[...a,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},a[t]),e),{_message:Object.assign(Object.assign({},a[t]._message),null==e?void 0:e._message)});a=[...a.slice(0,t),Object.assign({},i),...a.slice(t+1)]}n=e.id}setTimeout((()=>{N(a),E(n),y(!1),we({nodes:a,activeId:n,params:I,accountIdFromLogs:b.current})}),250)}),[x,_]),A=e.useCallback((e=>i.__awaiter(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),he(x,_,e.action_id)),n=yield J(t);if(y(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:a}=e,o=i.__rest(e,["node"]),l=Object.assign(Object.assign({},a),{_message:Object.assign(Object.assign({},o),{node_id:a.id})});return void(-1!==x.findIndex((e=>e.id===l.id))?M(l):M(l,t))}v({title:f({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=x.find((e=>e.id==_));t&&t.hasOwnProperty("first_node")&&(E(x[1].id.toString()),we({nodes:x,activeId:x[1].id.toString(),params:O(),accountIdFromLogs:b.current}))}))),[M,x]),P=e.useCallback((()=>{const e=x.findIndex((({id:e})=>e==_));if(e&&-1!==e&&e>1){const t=x[e-1];E(t.id),we({nodes:x,activeId:t.id,params:I,accountIdFromLogs:b.current})}}),[x,_]),R=e.useCallback((()=>{const e=O();C(e,!1);const t=x[0],i=x[1];we({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:b.current})}),[O,C,x]),U=e.useCallback((e=>{N((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==_?t.map((t=>{const i=t;return i.id===_?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[_]);e.useEffect((()=>{if(L.default.get(n.GA_TOKEN_COOKIE)){const e=O();C(e)}else re({condition:()=>Boolean(L.default.get(n.GA_TOKEN_COOKIE)),finished:()=>{const e=O();C(e)}})}),[]),e.useEffect((()=>{if(!x.length)return;x.find((e=>e.id==_))&&_||E(l+"")}),[_,x]);const j=e.useMemo((()=>({activeId:_,params:I,listNodes:x,loading:h,setLoading:y,getParams:O,onNext:A,onPrev:P,onSubmit:M,onStartOver:R,onChange:U,isShowFooter:T,setIsShowFooter:w,isFullContainer:r,isDisabledAnimationOnMobile:u,onCloseMobile:m,userInfo:p})),[_,A,P,M,U,R,T,I,x,h,y,O,r,u,m,p]);return x.length?B.default.createElement(Se.Provider,{value:j},B.default.createElement("div",{ref:g},a)):null},ke=e=>B.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),B.default.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"})),Ce="480px",Me=G.default.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;
package/build/together.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-7e10aa4b.js"),r=require("./index-84d7415b.js"),t=require("./utils-2424ad70.js");require("react"),require("./Plus-29cf93ab.js"),require("./tslib.es6-0476eed4.js"),require("@mantine/core"),require("./theme-533eba85.js"),require("./translationsContext-b64cc287.js"),require("string-format"),require("./index-fec5e458.js"),require("styled-components"),require("./useTranslations-498d106f.js"),require("innertext"),require("./index-6853c2df.js"),require("./WhatsApp-0328afb7.js"),require("./useUniqueId-dcfc3871.js"),require("./index-65b1d890.js"),require("@mantine/hooks"),require("./index-c3fd1632.js"),require("./index-3ead4f3b.js"),require("date-fns/locale"),require("./Subot-52e94ede.js"),require("./isProduction-9e0e9225.js"),require("dayjs"),require("./utils-381e90c1.js"),require("@mantine/carousel"),require("classnames"),require("@mantine/dates"),require("./index-be9cca2e.js"),require("./index.styles-0f69a584.js"),require("./constants-accf73ad.js"),require("./animation-ce2ee519.js"),require("react-keyed-flatten-children"),require("./paths-99000104.js"),require("./index-c070fdfc.js"),require("lodash/debounce"),require("react-contenteditable"),require("./index-ea138477.js"),require("./cookieHelper-1bbbf79c.js"),require("react-dom"),require("./number-21ab8a99.js"),require("date-fns"),require("dayjs/plugin/relativeTime"),require("./index-4af93720.js"),require("./routing-2fc7c708.js"),require("./utils-7b0b950b.js"),require("./index.styled-c87d00c0.js"),require("./index-ba62d856.js"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-760db918.js"),r=require("./index-046ee378.js"),t=require("./utils-af90797a.js");require("react"),require("./Plus-155fd41f.js"),require("./tslib.es6-94b275ba.js"),require("@mantine/core"),require("./theme-571f5130.js"),require("./translationsContext-dfb5d88d.js"),require("string-format"),require("./index-f6cc5b05.js"),require("styled-components"),require("./useTranslations-d2cbefef.js"),require("innertext"),require("./index-7feececd.js"),require("./WhatsApp-cbd2b870.js"),require("./index-2deaed20.js"),require("@mantine/hooks"),require("./index-3f91ded6.js"),require("./index-48bcbf86.js"),require("date-fns/locale"),require("./Subot-da4770e7.js"),require("./isProduction-5ee9440e.js"),require("dayjs"),require("./utils-f2321c70.js"),require("@mantine/carousel"),require("classnames"),require("@mantine/dates"),require("./index-e4d32d14.js"),require("./index.styles-b34ee290.js"),require("./constants-5f9a141f.js"),require("./animation-6d0e530d.js"),require("react-keyed-flatten-children"),require("./paths-24d6890e.js"),require("./index-86439785.js"),require("lodash/debounce"),require("react-contenteditable"),require("./index-14cdaffe.js"),require("./cookieHelper-7d59b3e7.js"),require("react-dom"),require("./number-b3bfb023.js"),require("date-fns"),require("dayjs/plugin/relativeTime"),require("./index-e0c87872.js"),require("./routing-29d56eb6.js"),require("./utils-90cf77ff.js"),require("./index.styled-3811edd9.js"),require("./index-49020afd.js"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-0476eed4.js"),t=require("react"),a=require("./useTranslations-498d106f.js"),i=require("lodash/debounce"),o=require("./constants-accf73ad.js"),l=require("./index-c070fdfc.js"),n=require("styled-components"),s=require("./Plus-29cf93ab.js"),r=require("./theme-533eba85.js"),c=require("lodash/shuffle"),d=require("./useOutsideClick-3b96ab2e.js"),u=require("./utils-381e90c1.js"),p=require("react-loading-skeleton"),h=require("./paths-99000104.js"),g=require("@mantine/core"),f=require("./index-3ead4f3b.js"),m=require("./cookieHelper-1bbbf79c.js"),C=require("./index-0790d5ae.js"),b=require("./index-6853c2df.js"),y=require("./ChevronDown-60dfaf68.js"),v=require("string-format");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E=x(t),S=x(i),L=x(n),w=x(c),O=x(p),k=x(v);function I(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const T=L.default.div``,j=L.default.div`
1
+ "use strict";var e=require("./tslib.es6-94b275ba.js"),t=require("react"),a=require("./useTranslations-d2cbefef.js"),i=require("lodash/debounce"),o=require("./constants-5f9a141f.js"),l=require("./index-86439785.js"),n=require("styled-components"),s=require("./Plus-155fd41f.js"),r=require("./theme-571f5130.js"),c=require("lodash/shuffle"),d=require("./useOutsideClick-51ce49df.js"),u=require("./utils-f2321c70.js"),p=require("react-loading-skeleton"),h=require("./paths-24d6890e.js"),g=require("@mantine/core"),f=require("./index-48bcbf86.js"),m=require("./cookieHelper-7d59b3e7.js"),C=require("./index-d725f995.js"),b=require("./index-7feececd.js"),y=require("./ChevronDown-e3a06b59.js"),v=require("string-format");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E=x(t),S=x(i),L=x(n),w=x(c),O=x(p),k=x(v);function I(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const T=L.default.div``,j=L.default.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;