@hhgtech/hhg-components 1.28.37 → 1.28.39

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 (275) hide show
  1. package/build/babyGrowth.js +2 -2
  2. package/build/cache.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components.js +1 -1
  5. package/build/{constants-e54aa389.js → constants-57d89069.js} +1 -1
  6. package/build/{constants-8ef08ff5.js → constants-82348c13.js} +1 -1
  7. package/build/constants.js +1 -1
  8. package/build/{core-ba7d65c8.js → core-081bdce5.js} +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/babyGrowth.js +4 -4
  11. package/build/esm/cache.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components.js +1 -1
  14. package/build/esm/{constants-6cfaa1ef.js → constants-039f36fe.js} +1 -1
  15. package/build/esm/{constants-2b76d121.js → constants-0d46ae1d.js} +1 -1
  16. package/build/esm/constants.js +1 -1
  17. package/build/esm/{core-18ff4cb5.js → core-3c0d6b0f.js} +1 -1
  18. package/build/esm/ecom.js +1 -1
  19. package/build/esm/footer.js +1 -1
  20. package/build/esm/gAssets.js +1 -1
  21. package/build/esm/{getDynamicHealthTool-7989183b.js → getDynamicHealthTool-d874b77f.js} +1 -1
  22. package/build/esm/{getSocialList-5330dbd2.js → getSocialList-5ea15cba.js} +1 -1
  23. package/build/esm/hooks.js +1 -1
  24. package/build/esm/i18n.js +1 -1
  25. package/build/esm/i18nV2.js +1 -1
  26. package/build/esm/{index-c9737971.js → index-0e6dbcc0.js} +1 -1
  27. package/build/esm/{index-2be76d22.js → index-14839883.js} +1 -1
  28. package/build/esm/{index-064bc751.js → index-1ac72931.js} +1 -1
  29. package/build/esm/{index-fa625a55.js → index-1be91706.js} +1 -1
  30. package/build/esm/{index-6127f94b.js → index-20b84b31.js} +1 -1
  31. package/build/esm/{index-12a2d8bc.js → index-282bbb6d.js} +1 -1
  32. package/build/esm/index-3d1ca95c.js +1 -0
  33. package/build/esm/index-434197c4.js +1 -0
  34. package/build/esm/{index-74cef015.js → index-5761cc3d.js} +1 -1
  35. package/build/esm/{index-9991cfb3.js → index-5ecfac85.js} +1 -1
  36. package/build/esm/{index-2b4575ac.js → index-622dbaca.js} +1 -1
  37. package/build/esm/index-65d31851.js +1 -0
  38. package/build/esm/{index-7684a5b9.js → index-6795099e.js} +1 -1
  39. package/build/esm/{index-6e2dd27b.js → index-7d0179b5.js} +1 -1
  40. package/build/esm/{index-03141739.js → index-8db07311.js} +1 -1
  41. package/build/esm/{index-a2e81576.js → index-8dfb1724.js} +1 -1
  42. package/build/esm/{index-5fdbf5bc.js → index-c70696a6.js} +7 -7
  43. package/build/esm/index-c7136b2d.js +1 -0
  44. package/build/esm/{index-8f2fcc98.js → index-dff74895.js} +1 -1
  45. package/build/esm/{index-79f41857.js → index-e17cd802.js} +1 -1
  46. package/build/esm/{index-162b9bde.js → index-f1ff7dac.js} +1 -1
  47. package/build/esm/{index-60f16dee.js → index-fa32b4d8.js} +1 -1
  48. package/build/esm/index.js +1 -1
  49. package/build/esm/{index.styled-46a99590.js → index.styled-90fe28c0.js} +1 -1
  50. package/build/esm/{index.styled-a25d7261.js → index.styled-a1854a4a.js} +80 -77
  51. package/build/esm/{index.styled-36cb24ce.js → index.styled-e26007df.js} +6 -6
  52. package/build/esm/{index.styled-17af4657.js → index.styled-ede7c10d.js} +1 -1
  53. package/build/esm/{index.styles-671382bc.js → index.styles-95837b62.js} +5 -5
  54. package/build/esm/lead.js +1 -1
  55. package/build/esm/mantine.js +1 -1
  56. package/build/esm/misc.js +1 -1
  57. package/build/esm/navigation.js +1 -1
  58. package/build/esm/onboardingV2.js +1 -1
  59. package/build/esm/pwg.js +3 -3
  60. package/build/esm/{routing-ec23ed74.js → routing-7c32cdb3.js} +1 -1
  61. package/build/esm/subot.js +1 -1
  62. package/build/esm/together.js +1 -1
  63. package/build/esm/{types-e1669387.js → types-c5a3b173.js} +1 -1
  64. package/build/esm/{types-232e79d1.js → types-d466572e.js} +1 -1
  65. package/build/esm/types.js +1 -1
  66. package/build/esm/{useCategory-00053487.js → useCategory-702b6604.js} +1 -1
  67. package/build/esm/{useHealthToolCache-cfa13b2f.js → useHealthToolCache-1290f2b9.js} +1 -1
  68. package/build/esm/{usePlacesAutocomplete-07f0fc32.js → usePlacesAutocomplete-d14c4671.js} +1 -1
  69. package/build/esm/{useRafState-9968ee17.js → useRafState-1ba3edb3.js} +1 -1
  70. package/build/esm/{useTranslations-d963b37f.js → useTranslations-51dc4ab8.js} +1 -1
  71. package/build/esm/{utils-892d8a65.js → utils-8849cc57.js} +1 -1
  72. package/build/esm/{utils-98561d5e.js → utils-b2a0d664.js} +1 -1
  73. package/build/esm/vaccination.js +11 -11
  74. package/build/footer.js +1 -1
  75. package/build/gAssets.js +1 -1
  76. package/build/getDynamicHealthTool-12e2540d.js +1 -0
  77. package/build/{getSocialList-9e58358a.js → getSocialList-55a29d3a.js} +1 -1
  78. package/build/hooks.js +1 -1
  79. package/build/i18n.js +1 -1
  80. package/build/i18nV2.js +1 -1
  81. package/build/{index-2241f0a7.js → index-192c3976.js} +1 -1
  82. package/build/{index-d9c91a7a.js → index-1cc9c0e2.js} +1 -1
  83. package/build/{index-fe748c3b.js → index-2744bd7d.js} +1 -1
  84. package/build/{index-a788941c.js → index-505a6231.js} +3 -3
  85. package/build/{index-6b89bd1e.js → index-511b99c0.js} +1 -1
  86. package/build/{index-1763366b.js → index-543b2956.js} +1 -1
  87. package/build/{index-f8a63825.js → index-5537eb8b.js} +1 -1
  88. package/build/{index-24584ae5.js → index-557f79d9.js} +1 -1
  89. package/build/{index-824143ee.js → index-566d616e.js} +1 -1
  90. package/build/{index-db727a39.js → index-5a09ea5b.js} +1 -1
  91. package/build/{index-df9365fe.js → index-70fc6801.js} +1 -1
  92. package/build/{index-6a76dedf.js → index-80a776c5.js} +1 -1
  93. package/build/index-86314983.js +1 -0
  94. package/build/{index-63e33ff2.js → index-8a4e8200.js} +1 -1
  95. package/build/{index-5a341117.js → index-9686d73a.js} +1 -1
  96. package/build/index-b983594e.js +1 -0
  97. package/build/{index-7c3ea642.js → index-cbb25109.js} +10 -10
  98. package/build/{index-8e8894d5.js → index-cda192d8.js} +1 -1
  99. package/build/{index-3f6899fe.js → index-dd161fb0.js} +1 -1
  100. package/build/{index-8e766956.js → index-e23393d6.js} +1 -1
  101. package/build/index-e4732cde.js +1 -0
  102. package/build/{index-b9003514.js → index-f20a3b0b.js} +1 -1
  103. package/build/index.js +1 -1
  104. package/build/{index.styled-3570c720.js → index.styled-7c52b155.js} +2 -2
  105. package/build/{index.styled-40cb1c5c.js → index.styled-95722c0d.js} +1 -1
  106. package/build/{index.styled-77b9479f.js → index.styled-bf702a00.js} +5 -2
  107. package/build/{index.styled-380d6e0a.js → index.styled-edaa5fca.js} +1 -1
  108. package/build/{index.styles-3f14873c.js → index.styles-eee657e0.js} +1 -1
  109. package/build/lead.js +1 -1
  110. package/build/mantine.js +1 -1
  111. package/build/misc.js +1 -1
  112. package/build/navigation.js +1 -1
  113. package/build/onboardingV2.js +1 -1
  114. package/build/pwg.js +3 -3
  115. package/build/{routing-f6c590ab.js → routing-d19d8856.js} +1 -1
  116. package/build/subot.js +1 -1
  117. package/build/together.js +1 -1
  118. package/build/{types-72e39367.js → types-e7648820.js} +1 -1
  119. package/build/{types-2439f02e.js → types-ec42e31c.js} +1 -1
  120. package/build/types.js +1 -1
  121. package/build/{useCategory-b165202c.js → useCategory-15d34903.js} +1 -1
  122. package/build/{useHealthToolCache-b15142cb.js → useHealthToolCache-af770568.js} +1 -1
  123. package/build/{usePlacesAutocomplete-966d009c.js → usePlacesAutocomplete-24621567.js} +1 -1
  124. package/build/{useRafState-af69ad6c.js → useRafState-80bb67ea.js} +1 -1
  125. package/build/{useTranslations-95cf8449.js → useTranslations-2e112ad4.js} +1 -1
  126. package/build/{utils-6754d753.js → utils-6f3d330e.js} +1 -1
  127. package/build/{utils-167797c2.js → utils-a167e7a3.js} +1 -1
  128. package/build/vaccination.js +1 -1
  129. package/package.json +1 -1
  130. package/build/esm/index-752b7c3f.js +0 -1
  131. package/build/esm/index-778d5fb2.js +0 -1
  132. package/build/esm/index-84c08ad9.js +0 -1
  133. package/build/esm/index-956cdde0.js +0 -1
  134. package/build/getDynamicHealthTool-a7d75452.js +0 -1
  135. package/build/index-01f4346e.js +0 -1
  136. package/build/index-7adb6ca5.js +0 -1
  137. package/build/index-c782489f.js +0 -1
  138. /package/build/{BMI_BOYS.percentile.monthly-19f4ed11.js → BMI_BOYS.percentile.monthly-1abf1841.js} +0 -0
  139. /package/build/{BMI_BOYS.percentile.weekly-988c28e7.js → BMI_BOYS.percentile.weekly-a8aff425.js} +0 -0
  140. /package/build/{BMI_BOYS.percentile.yearly-2ce0172a.js → BMI_BOYS.percentile.yearly-c73321bb.js} +0 -0
  141. /package/build/{BMI_BOYS.zscore.monthly-0319a3ca.js → BMI_BOYS.zscore.monthly-69a99c2a.js} +0 -0
  142. /package/build/{BMI_BOYS.zscore.weekly-6af17a54.js → BMI_BOYS.zscore.weekly-f990fa6a.js} +0 -0
  143. /package/build/{BMI_BOYS.zscore.yearly-51a52dc7.js → BMI_BOYS.zscore.yearly-ed65c22b.js} +0 -0
  144. /package/build/{BMI_GIRLS.percentile.monthly-49e8d16b.js → BMI_GIRLS.percentile.monthly-4c7cb156.js} +0 -0
  145. /package/build/{BMI_GIRLS.percentile.weekly-6852a685.js → BMI_GIRLS.percentile.weekly-d570954a.js} +0 -0
  146. /package/build/{BMI_GIRLS.percentile.yearly-e769c49a.js → BMI_GIRLS.percentile.yearly-61a85bc5.js} +0 -0
  147. /package/build/{BMI_GIRLS.zscore.monthly-82c5d7a1.js → BMI_GIRLS.zscore.monthly-f20b70e4.js} +0 -0
  148. /package/build/{BMI_GIRLS.zscore.weekly-1f4764fb.js → BMI_GIRLS.zscore.weekly-178a1989.js} +0 -0
  149. /package/build/{BMI_GIRLS.zscore.yearly-cac12266.js → BMI_GIRLS.zscore.yearly-88ad18e5.js} +0 -0
  150. /package/build/{ChevronDown-5b4ef88d.js → ChevronDown-3037c172.js} +0 -0
  151. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-00707b2f.js → HEAD CIRCUM_BOYS.percentile.monthly-56a4402b.js} +0 -0
  152. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-36272a6b.js → HEAD CIRCUM_BOYS.percentile.weekly-ccf3c87f.js} +0 -0
  153. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-8ffd2a1b.js → HEAD CIRCUM_BOYS.percentile.yearly-2b9916f6.js} +0 -0
  154. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b9037d32.js → HEAD CIRCUM_BOYS.zscore.monthly-bc3fdf65.js} +0 -0
  155. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-acf9cc31.js → HEAD CIRCUM_BOYS.zscore.weekly-a3275cbb.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-50079d83.js → HEAD CIRCUM_BOYS.zscore.yearly-424de02b.js} +0 -0
  157. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-211234b7.js → HEAD CIRCUM_GIRLS.percentile.monthly-31cf5774.js} +0 -0
  158. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b6a1780b.js → HEAD CIRCUM_GIRLS.percentile.weekly-56bc87df.js} +0 -0
  159. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-2ac79afc.js → HEAD CIRCUM_GIRLS.percentile.yearly-d495ae77.js} +0 -0
  160. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-39639744.js → HEAD CIRCUM_GIRLS.zscore.monthly-389b52dc.js} +0 -0
  161. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8ebb9191.js → HEAD CIRCUM_GIRLS.zscore.weekly-545c913f.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0a728371.js → HEAD CIRCUM_GIRLS.zscore.yearly-25153e42.js} +0 -0
  163. /package/build/{HEIGHT_BOYS.percentile.monthly-a04a5707.js → HEIGHT_BOYS.percentile.monthly-a0167766.js} +0 -0
  164. /package/build/{HEIGHT_BOYS.percentile.weekly-601c6385.js → HEIGHT_BOYS.percentile.weekly-fe6c86b4.js} +0 -0
  165. /package/build/{HEIGHT_BOYS.percentile.yearly-ee7cc294.js → HEIGHT_BOYS.percentile.yearly-b5f70609.js} +0 -0
  166. /package/build/{HEIGHT_BOYS.zscore.monthly-390392ac.js → HEIGHT_BOYS.zscore.monthly-69050519.js} +0 -0
  167. /package/build/{HEIGHT_BOYS.zscore.weekly-d0be59ca.js → HEIGHT_BOYS.zscore.weekly-086ed503.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.zscore.yearly-67fe48eb.js → HEIGHT_BOYS.zscore.yearly-ea1fd110.js} +0 -0
  169. /package/build/{HEIGHT_GIRLS.percentile.monthly-32fbf6d6.js → HEIGHT_GIRLS.percentile.monthly-04393cf7.js} +0 -0
  170. /package/build/{HEIGHT_GIRLS.percentile.weekly-378c22e7.js → HEIGHT_GIRLS.percentile.weekly-309dd221.js} +0 -0
  171. /package/build/{HEIGHT_GIRLS.percentile.yearly-f8a775da.js → HEIGHT_GIRLS.percentile.yearly-3fe7b9fc.js} +0 -0
  172. /package/build/{HEIGHT_GIRLS.zscore.monthly-eba9d82b.js → HEIGHT_GIRLS.zscore.monthly-a274d11d.js} +0 -0
  173. /package/build/{HEIGHT_GIRLS.zscore.weekly-649d1e6a.js → HEIGHT_GIRLS.zscore.weekly-832a2702.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.zscore.yearly-d7566aef.js → HEIGHT_GIRLS.zscore.yearly-e1250f72.js} +0 -0
  175. /package/build/{Subot-781f30c5.js → Subot-b76ccc9c.js} +0 -0
  176. /package/build/{Visible-0d367263.js → Visible-a902bc5d.js} +0 -0
  177. /package/build/{WEIGHT_BOYS.percentile.monthly-cdd83d2c.js → WEIGHT_BOYS.percentile.monthly-6aee36d0.js} +0 -0
  178. /package/build/{WEIGHT_BOYS.percentile.weekly-08b2cc25.js → WEIGHT_BOYS.percentile.weekly-84a9ddf3.js} +0 -0
  179. /package/build/{WEIGHT_BOYS.percentile.yearly-78bd0332.js → WEIGHT_BOYS.percentile.yearly-6a5235a6.js} +0 -0
  180. /package/build/{WEIGHT_BOYS.zscore.monthly-bd9c59c4.js → WEIGHT_BOYS.zscore.monthly-7b87e89a.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.zscore.weekly-71bf2560.js → WEIGHT_BOYS.zscore.weekly-7dc34a8b.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.zscore.yearly-80a65ace.js → WEIGHT_BOYS.zscore.yearly-8cde12c0.js} +0 -0
  183. /package/build/{WEIGHT_GIRLS.percentile.monthly-e602fb9f.js → WEIGHT_GIRLS.percentile.monthly-c1117e84.js} +0 -0
  184. /package/build/{WEIGHT_GIRLS.percentile.weekly-8ec40671.js → WEIGHT_GIRLS.percentile.weekly-5da1d720.js} +0 -0
  185. /package/build/{WEIGHT_GIRLS.percentile.yearly-6c13450f.js → WEIGHT_GIRLS.percentile.yearly-a23ec4ec.js} +0 -0
  186. /package/build/{WEIGHT_GIRLS.zscore.monthly-f2dff34a.js → WEIGHT_GIRLS.zscore.monthly-2f26e279.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.zscore.weekly-a7c88fa4.js → WEIGHT_GIRLS.zscore.weekly-8b0a38e9.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.zscore.yearly-4c55b4b9.js → WEIGHT_GIRLS.zscore.yearly-8bad89fe.js} +0 -0
  189. /package/build/{cookieHelper-cb2c780d.js → cookieHelper-edf24fec.js} +0 -0
  190. /package/build/{dataTransform-aa76f31c.js → dataTransform-e2f61d60.js} +0 -0
  191. /package/build/esm/{BMI_BOYS.percentile.monthly-05d05da5.js → BMI_BOYS.percentile.monthly-b9ab85f0.js} +0 -0
  192. /package/build/esm/{BMI_BOYS.percentile.weekly-b1aa1512.js → BMI_BOYS.percentile.weekly-ef82192f.js} +0 -0
  193. /package/build/esm/{BMI_BOYS.percentile.yearly-9a9ca29b.js → BMI_BOYS.percentile.yearly-183654c8.js} +0 -0
  194. /package/build/esm/{BMI_BOYS.zscore.monthly-ab8c5087.js → BMI_BOYS.zscore.monthly-6eda6e64.js} +0 -0
  195. /package/build/esm/{BMI_BOYS.zscore.weekly-9c26d743.js → BMI_BOYS.zscore.weekly-2e5db2e4.js} +0 -0
  196. /package/build/esm/{BMI_BOYS.zscore.yearly-0c8e88bf.js → BMI_BOYS.zscore.yearly-89b97ccc.js} +0 -0
  197. /package/build/esm/{BMI_GIRLS.percentile.monthly-09da7135.js → BMI_GIRLS.percentile.monthly-c2dca76b.js} +0 -0
  198. /package/build/esm/{BMI_GIRLS.percentile.weekly-04cd0f7f.js → BMI_GIRLS.percentile.weekly-3db696ed.js} +0 -0
  199. /package/build/esm/{BMI_GIRLS.percentile.yearly-b96e6cdd.js → BMI_GIRLS.percentile.yearly-d3831386.js} +0 -0
  200. /package/build/esm/{BMI_GIRLS.zscore.monthly-e301d83d.js → BMI_GIRLS.zscore.monthly-9cef6f5e.js} +0 -0
  201. /package/build/esm/{BMI_GIRLS.zscore.weekly-23ab6a7b.js → BMI_GIRLS.zscore.weekly-78f3bce3.js} +0 -0
  202. /package/build/esm/{BMI_GIRLS.zscore.yearly-576720ea.js → BMI_GIRLS.zscore.yearly-50c1c22d.js} +0 -0
  203. /package/build/esm/{ChevronDown-70559b47.js → ChevronDown-38081c52.js} +0 -0
  204. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-81d95d86.js → HEAD CIRCUM_BOYS.percentile.monthly-768e0230.js} +0 -0
  205. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-12162f09.js → HEAD CIRCUM_BOYS.percentile.weekly-68c28fef.js} +0 -0
  206. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-45cd1c23.js → HEAD CIRCUM_BOYS.percentile.yearly-79c477be.js} +0 -0
  207. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-47835e82.js → HEAD CIRCUM_BOYS.zscore.monthly-c22a6bb8.js} +0 -0
  208. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-026aced6.js → HEAD CIRCUM_BOYS.zscore.weekly-fa0c45de.js} +0 -0
  209. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-01c4d654.js → HEAD CIRCUM_BOYS.zscore.yearly-fd828878.js} +0 -0
  210. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-3bac7be1.js → HEAD CIRCUM_GIRLS.percentile.monthly-0e370871.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-d0a20741.js → HEAD CIRCUM_GIRLS.percentile.weekly-f4708552.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-dc919555.js → HEAD CIRCUM_GIRLS.percentile.yearly-dfb103cf.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-47bf7a3c.js → HEAD CIRCUM_GIRLS.zscore.monthly-3ee0be1b.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a8e45e75.js → HEAD CIRCUM_GIRLS.zscore.weekly-44bcc793.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-bf546ba6.js → HEAD CIRCUM_GIRLS.zscore.yearly-a1027497.js} +0 -0
  216. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-6ba59424.js → HEIGHT_BOYS.percentile.monthly-02e472da.js} +0 -0
  217. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-29b8fe64.js → HEIGHT_BOYS.percentile.weekly-0680ad0c.js} +0 -0
  218. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f135b8e2.js → HEIGHT_BOYS.percentile.yearly-6f8aae30.js} +0 -0
  219. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-49e9680a.js → HEIGHT_BOYS.zscore.monthly-c4cd5e14.js} +0 -0
  220. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f9a65efa.js → HEIGHT_BOYS.zscore.weekly-44a38e55.js} +0 -0
  221. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-8b5ad6d2.js → HEIGHT_BOYS.zscore.yearly-07fc5764.js} +0 -0
  222. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e5b38079.js → HEIGHT_GIRLS.percentile.monthly-747f685b.js} +0 -0
  223. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f3670276.js → HEIGHT_GIRLS.percentile.weekly-f8a8a438.js} +0 -0
  224. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4c02f1bb.js → HEIGHT_GIRLS.percentile.yearly-19c6a95d.js} +0 -0
  225. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-640e5e55.js → HEIGHT_GIRLS.zscore.monthly-a70d26ec.js} +0 -0
  226. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4eead516.js → HEIGHT_GIRLS.zscore.weekly-80c3120b.js} +0 -0
  227. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-6ebee51c.js → HEIGHT_GIRLS.zscore.yearly-55b48c0f.js} +0 -0
  228. /package/build/esm/{Subot-2c9e4c09.js → Subot-f581f4df.js} +0 -0
  229. /package/build/esm/{Visible-280d16e3.js → Visible-773a840f.js} +0 -0
  230. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-430dc3b2.js → WEIGHT_BOYS.percentile.monthly-c7365e22.js} +0 -0
  231. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b937aeb9.js → WEIGHT_BOYS.percentile.weekly-5d62ee47.js} +0 -0
  232. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-cbf833e8.js → WEIGHT_BOYS.percentile.yearly-90eef9c4.js} +0 -0
  233. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-dd6b0e64.js → WEIGHT_BOYS.zscore.monthly-39cb41e2.js} +0 -0
  234. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-786a8d18.js → WEIGHT_BOYS.zscore.weekly-1fd3816a.js} +0 -0
  235. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-acfb2c76.js → WEIGHT_BOYS.zscore.yearly-91994e22.js} +0 -0
  236. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-1e4153b0.js → WEIGHT_GIRLS.percentile.monthly-8803f9b5.js} +0 -0
  237. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f69a3ddb.js → WEIGHT_GIRLS.percentile.weekly-ec6c8a49.js} +0 -0
  238. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-a42cb1fc.js → WEIGHT_GIRLS.percentile.yearly-0e9334c7.js} +0 -0
  239. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-c8062203.js → WEIGHT_GIRLS.zscore.monthly-031167a3.js} +0 -0
  240. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c4c6e1e6.js → WEIGHT_GIRLS.zscore.weekly-36d7530c.js} +0 -0
  241. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-35f750e9.js → WEIGHT_GIRLS.zscore.yearly-93c90f87.js} +0 -0
  242. /package/build/esm/{cookieHelper-02a646ef.js → cookieHelper-1491c7ea.js} +0 -0
  243. /package/build/esm/{dataTransform-3970f88b.js → dataTransform-9bceddac.js} +0 -0
  244. /package/build/esm/{index-d74e3f4d.js → index-0797d3cb.js} +0 -0
  245. /package/build/esm/{index-2d5104c5.js → index-2f243424.js} +0 -0
  246. /package/build/esm/{index-4daeba4d.js → index-bbf78608.js} +0 -0
  247. /package/build/esm/{isProduction-2e0a8f23.js → isProduction-d8d94564.js} +0 -0
  248. /package/build/esm/{localizeNumberFormat-d7e41005.js → localizeNumberFormat-3657ce11.js} +0 -0
  249. /package/build/esm/{normalizeLink-78014c07.js → normalizeLink-7259b86a.js} +0 -0
  250. /package/build/esm/{number-33fd0b74.js → number-a14a26d2.js} +0 -0
  251. /package/build/esm/{paths-64d19041.js → paths-80d2b4f2.js} +0 -0
  252. /package/build/esm/{screenSizeContext-18a2ae59.js → screenSizeContext-f9a53919.js} +0 -0
  253. /package/build/esm/{theme-2bdea2f5.js → theme-9d69f1a2.js} +0 -0
  254. /package/build/esm/{translationsContext-63b5cfff.js → translationsContext-a929820e.js} +0 -0
  255. /package/build/esm/{tslib.es6-70854b37.js → tslib.es6-7b491686.js} +0 -0
  256. /package/build/esm/{types-4c039872.js → types-c4843c87.js} +0 -0
  257. /package/build/esm/{useIsInit-28ed39fb.js → useIsInit-36546b9c.js} +0 -0
  258. /package/build/esm/{useOutsideClick-0fb1f5b8.js → useOutsideClick-78141983.js} +0 -0
  259. /package/build/esm/{useScrollbarSize-622c2c1a.js → useScrollbarSize-30b1bee4.js} +0 -0
  260. /package/build/{index-36f0d549.js → index-0251e5f0.js} +0 -0
  261. /package/build/{index-f0a00b26.js → index-af3f2c07.js} +0 -0
  262. /package/build/{index-869fff15.js → index-ff51ac26.js} +0 -0
  263. /package/build/{isProduction-d688052c.js → isProduction-fa856154.js} +0 -0
  264. /package/build/{localizeNumberFormat-c01aadd7.js → localizeNumberFormat-118c54b5.js} +0 -0
  265. /package/build/{normalizeLink-b47d5761.js → normalizeLink-b898d874.js} +0 -0
  266. /package/build/{number-7e0491b4.js → number-e86b559d.js} +0 -0
  267. /package/build/{paths-b90c2d13.js → paths-bbbcac69.js} +0 -0
  268. /package/build/{screenSizeContext-41fd163e.js → screenSizeContext-478cce5e.js} +0 -0
  269. /package/build/{theme-5779230b.js → theme-1481c80b.js} +0 -0
  270. /package/build/{translationsContext-149822d4.js → translationsContext-e83c75a5.js} +0 -0
  271. /package/build/{tslib.es6-afbb99a9.js → tslib.es6-524ea691.js} +0 -0
  272. /package/build/{types-3377b03d.js → types-5ceae17e.js} +0 -0
  273. /package/build/{useIsInit-2ed8cbec.js → useIsInit-b0daf2cf.js} +0 -0
  274. /package/build/{useOutsideClick-e2fd0c7a.js → useOutsideClick-abc52969.js} +0 -0
  275. /package/build/{useScrollbarSize-4279aad3.js → useScrollbarSize-251ab8f8.js} +0 -0
package/build/esm/pwg.js CHANGED
@@ -1,4 +1,4 @@
1
- import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as l}from"./index-03141739.js";import{T as n}from"./index-60f16dee.js";import{P as i}from"./index-c9737971.js";import{u as s}from"./useTranslations-d963b37f.js";import{t as c}from"./theme-2bdea2f5.js";import{ResponsiveContainer as m,AreaChart as d,CartesianGrid as p,Tooltip as g,XAxis as y,YAxis as u,Area as b,ReferenceDot as h}from"recharts";import{C as f}from"./index-2d5104c5.js";import{a as x}from"./useOutsideClick-0fb1f5b8.js";import E from"styled-components";import{_ as k}from"./tslib.es6-70854b37.js";import"./index.styled-46a99590.js";import"@mantine/core";import"dayjs";import"./screenSizeContext-18a2ae59.js";import"lodash/throttle";import"./index-2be76d22.js";import"date-fns/locale";import"./Subot-2c9e4c09.js";import"./isProduction-2e0a8f23.js";import"./gAssets.js";import"./index.styled-36cb24ce.js";import"./index-a2e81576.js";import"@mantine/hooks";import"@mantine/carousel";import"classnames";import"./index-956cdde0.js";import"@mantine/dates";import"./translationsContext-63b5cfff.js";import"string-format";const w=t=>{const{x:r,y:a,payload:o,activeWeek:l}=t;return l===o.value?e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("circle",{r:12,fill:"marryBaby"===t.siteType?c.mbColors.pink:c.colors.primaryBase}),e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},o.value)):e.createElement("g",{transform:`translate(${r},${a})`},e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},o.value))},v=E.div`
1
+ import e,{useMemo as t,useState as r,useRef as o}from"react";import{M as a,a as l}from"./index-8db07311.js";import{T as n}from"./index-fa32b4d8.js";import{P as i}from"./index-0e6dbcc0.js";import{u as s}from"./useTranslations-51dc4ab8.js";import{t as c}from"./theme-9d69f1a2.js";import{ResponsiveContainer as m,AreaChart as d,CartesianGrid as p,Tooltip as g,XAxis as y,YAxis as u,Area as b,ReferenceDot as h}from"recharts";import{C as f}from"./index-2f243424.js";import{a as x}from"./useOutsideClick-78141983.js";import E from"styled-components";import{_ as k}from"./tslib.es6-7b491686.js";import"./index.styled-90fe28c0.js";import"@mantine/core";import"dayjs";import"./screenSizeContext-f9a53919.js";import"lodash/throttle";import"./index-14839883.js";import"date-fns/locale";import"./Subot-f581f4df.js";import"./isProduction-d8d94564.js";import"./gAssets.js";import"./index.styled-e26007df.js";import"./index-8dfb1724.js";import"@mantine/hooks";import"@mantine/carousel";import"classnames";import"./index-65d31851.js";import"@mantine/dates";import"./translationsContext-a929820e.js";import"string-format";const w=t=>{const{x:r,y:o,payload:a,activeWeek:l}=t;return l===a.value?e.createElement("g",{transform:`translate(${r},${o})`},e.createElement("circle",{r:12,fill:"marryBaby"===t.siteType?c.mbColors.pink:c.colors.primaryBase}),e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},a.value)):e.createElement("g",{transform:`translate(${r},${o})`},e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},a.value))},v=E.div`
2
2
  /* position: absolute; */
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -55,7 +55,7 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
55
55
  align-items: center;
56
56
  gap: 4px;
57
57
  }
58
- `,T=[{name:"overweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"underweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"healthy",backgroundColor:c.colors.green50,color:c.colors.green900}],B=r=>{var a,o,l,i,s;const{payload:m,active:d}=r,p=null===(a=null==m?void 0:m[0])||void 0===a?void 0:a.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:y}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(o=p.toolTipLabel)||void 0===o?void 0:o[0]," ",null===(l=p.toolTipLabel)||void 0===l?void 0:l[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:c.colors.gray800,weight:"semiBold"},null===(s=p.toolTipLabel)||void 0===s?void 0:s[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:y},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:a,activeWeek:o,t:l})=>{const n=l(`bmi.result.${a}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===o?{toolTipLabel:r,translatedStatus:n,status:a}:{})))},S=({weightBefore:l,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:S})=>{const{t:z}=s(),L="marryBaby"===S,F=t((()=>W({weightByWeek:i,weightBefore:l,toolTipLabel:v,status:C,activeWeek:E,t:z})),[i,l,v,C,E]),[I,M]=r(!1),N=a(null);return x(N,(()=>M(!1))),e.createElement(j,null,L?e.createElement(o,{type:"bodytext-3",color:c.mbColors.dark}," ",z("babyGrowth.weight")," ",z("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:c.colors.gray500},z("babyGrowth.weight")," ",z("pregnancyWeightGain.weightInput.desc")),Array.isArray(F)&&F.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:F,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:c.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&I&&void 0!==E&&void 0!==k},t))}),e.createElement(y,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:S})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(u,{domain:[e=>Math.max(e,l-10||e),e=>Math.max(e,l+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:c.colors.gray600}}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:L?c.mbColors.tonePink:c.colors.primary100}),void 0!==E&&void 0!==k&&e.createElement(h,{onClick:()=>M(!0),x:0===E?1:E,y:k,r:4,shape:e.createElement(f,{ref:N,r:4}),fill:L?c.mbColors.pink:c.colors.primaryBase,stroke:L?c.mbColors.pink:c.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),L?e.createElement(o,{type:"bodytext-3",color:c.mbColors.dark},z("pregnancy.week")):e.createElement(n,{size:"n1",color:c.colors.gray500},z("pregnancy.week")))))},z=t=>{var{color:r}=t,a=k(t,["color"]);return e.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},a),e.createElement("circle",{cx:"4",cy:"4",r:"4",fill:r||c.colors.primaryBase}))},L=({idealWeight:t,siteType:r})=>{const{t:a}=s(),l="marryBaby"===r;return e.createElement(C,null,e.createElement("div",null,l?e.createElement(e.Fragment,null,e.createElement(z,{color:c.mbColors.lightPink}),e.createElement(o,{type:"bodytext-3",color:c.mbColors.dark},a("pregnancyTool.weightSuggested")," ",e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t))):e.createElement(e.Fragment,null,e.createElement(z,{color:c.colors.primary100}),e.createElement(n,{size:"n1",color:c.colors.gray600},e.createElement(n,{size:"n1",as:"span"},a("pregnancyTool.weightSuggested")," "),e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t)))),e.createElement("div",null,l?e.createElement(e.Fragment,null,e.createElement(z,{color:c.mbColors.pink}),e.createElement(o,{type:"bodytext-3",color:c.mbColors.dark},a("pwg.placeholder.weight"))):e.createElement(e.Fragment,null,e.createElement(z,null),e.createElement(n,{size:"n1",color:c.colors.gray600},a("pwg.placeholder.weight")))))},F=E.div`
58
+ `,T=[{name:"overweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"underweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"healthy",backgroundColor:c.colors.green50,color:c.colors.green900}],B=r=>{var o,a,l,i,s;const{payload:m,active:d}=r,p=null===(o=null==m?void 0:m[0])||void 0===o?void 0:o.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:y}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(a=p.toolTipLabel)||void 0===a?void 0:a[0]," ",null===(l=p.toolTipLabel)||void 0===l?void 0:l[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:c.colors.gray800,weight:"semiBold"},null===(s=p.toolTipLabel)||void 0===s?void 0:s[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:y},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:o,activeWeek:a,t:l})=>{const n=l(`bmi.result.${o}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===a?{toolTipLabel:r,translatedStatus:n,status:o}:{})))},S=({weightBefore:l,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:S})=>{const{t:z}=s(),L="marryBaby"===S,F=t((()=>W({weightByWeek:i,weightBefore:l,toolTipLabel:v,status:C,activeWeek:E,t:z})),[i,l,v,C,E]),[I,M]=r(!1),N=o(null);return x(N,(()=>M(!1))),e.createElement(j,null,L?e.createElement(a,{type:"bodytext-3",color:c.mbColors.dark}," ",z("babyGrowth.weight")," ",z("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:c.colors.gray500},z("babyGrowth.weight")," ",z("pregnancyWeightGain.weightInput.desc")),Array.isArray(F)&&F.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:F,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:c.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&I&&void 0!==E&&void 0!==k},t))}),e.createElement(y,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:S})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(u,{domain:[e=>Math.max(e,l-10||e),e=>Math.max(e,l+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:c.colors.gray600}}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:L?c.mbColors.tonePink:c.colors.primary100}),void 0!==E&&void 0!==k&&e.createElement(h,{onClick:()=>M(!0),x:0===E?1:E,y:k,r:4,shape:e.createElement(f,{ref:N,r:4}),fill:L?c.mbColors.pink:c.colors.primaryBase,stroke:L?c.mbColors.pink:c.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),L?e.createElement(a,{type:"bodytext-3",color:c.mbColors.dark},z("pregnancy.week")):e.createElement(n,{size:"n1",color:c.colors.gray500},z("pregnancy.week")))))},z=t=>{var{color:r}=t,o=k(t,["color"]);return e.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},o),e.createElement("circle",{cx:"4",cy:"4",r:"4",fill:r||c.colors.primaryBase}))},L=({idealWeight:t,siteType:r})=>{const{t:o}=s(),l="marryBaby"===r;return e.createElement(C,null,e.createElement("div",null,l?e.createElement(e.Fragment,null,e.createElement(z,{color:c.mbColors.lightPink}),e.createElement(a,{type:"bodytext-3",color:c.mbColors.dark},o("pregnancyTool.weightSuggested")," ",e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t))):e.createElement(e.Fragment,null,e.createElement(z,{color:c.colors.primary100}),e.createElement(n,{size:"n1",color:c.colors.gray600},e.createElement(n,{size:"n1",as:"span"},o("pregnancyTool.weightSuggested")," "),e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t)))),e.createElement("div",null,l?e.createElement(e.Fragment,null,e.createElement(z,{color:c.mbColors.pink}),e.createElement(a,{type:"bodytext-3",color:c.mbColors.dark},o("pwg.placeholder.weight"))):e.createElement(e.Fragment,null,e.createElement(z,null),e.createElement(n,{size:"n1",color:c.colors.gray600},o("pwg.placeholder.weight")))))},F=E.div`
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  align-items: center;
@@ -70,4 +70,4 @@ import e,{useMemo as t,useState as r,useRef as a}from"react";import{M as o,a as
70
70
  > div {
71
71
  width: 100%;
72
72
  }
73
- `,I=({chartProps:t,pillCarouselProps:r,idealWeight:a,description:o,siteType:m})=>{const{t:d}=s(),p="marryBaby"===m;return e.createElement(F,null,e.createElement("div",{className:"chart-header"},p?e.createElement(l,{type:"h3",color:c.mbColors.dark},d("pregnancyTool.weightSuggested")):e.createElement(n,{size:"s1",weight:"semiBold",color:c.colors.gray800},d("pregnancyTool.weightSuggested")),o&&o),e.createElement(i,Object.assign({},r)),e.createElement("div",null,e.createElement(L,{idealWeight:a,siteType:m}),e.createElement(S,Object.assign({},t,{siteType:m}))))};export{I as PregnancyWeightGainChart};
73
+ `,I=({chartProps:t,pillCarouselProps:r,idealWeight:o,description:a,siteType:m})=>{const{t:d}=s(),p="marryBaby"===m;return e.createElement(F,null,e.createElement("div",{className:"chart-header"},p?e.createElement(l,{type:"h3",color:c.mbColors.dark},d("pregnancyTool.weightSuggested")):e.createElement(n,{size:"s1",weight:"semiBold",color:c.colors.gray800},d("pregnancyTool.weightSuggested")),a&&a),e.createElement(i,Object.assign({},r)),e.createElement("div",null,e.createElement(L,{idealWeight:o,siteType:m}),e.createElement(S,Object.assign({},t,{siteType:m}))))};export{I as PregnancyWeightGainChart};
@@ -1 +1 @@
1
- import{d as e}from"./index-2be76d22.js";import{i as s}from"./isProduction-2e0a8f23.js";const t=(t,o)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return r?"http://localhost:3000":`https://${!r&&!s?o?"fe.":"discover.":o?"www.":""}${e[o?"vi-VN_MB":t]}`},o=(t,o)=>process.env.UNIFY_SSO_API||`https://${s?"id.":"staging-id."}${e[o?"vi-VN_MB":t]}`,r=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${s?"together.":"staging-together."}hellohealthgroup.com`,n=t=>process.env.UNIFY_DISCOVER_API||`https://${s?"wp.":"staging."}${e[t]}`,i=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${s?"health-care.":"service-health-care."}hellohealthgroup.com`;export{o as a,r as b,n as c,i as d,t as g};
1
+ import{d as e}from"./index-14839883.js";import{i as s}from"./isProduction-d8d94564.js";const t=(t,o)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return r?"http://localhost:3000":`https://${!r&&!s?o?"fe.":"discover.":o?"www.":""}${e[o?"vi-VN_MB":t]}`},o=(t,o)=>process.env.UNIFY_SSO_API||`https://${s?"id.":"staging-id."}${e[o?"vi-VN_MB":t]}`,r=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${s?"together.":"staging-together."}hellohealthgroup.com`,n=t=>process.env.UNIFY_DISCOVER_API||`https://${s?"wp.":"staging."}${e[t]}`,i=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${s?"health-care.":"service-health-care."}hellohealthgroup.com`;export{o as a,r as b,n as c,i as d,t as g};
@@ -1,4 +1,4 @@
1
- import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-2c9e4c09.js";import{a as E,_ as x}from"./tslib.es6-70854b37.js";import{B as C,d as w,M as k,e as S,G as I,f as N,A as _,g as T}from"./index-2be76d22.js";import O from"js-cookie";import j from"fastdom";import A from"fastdom/extensions/fastdom-promised";import{D as B}from"./index.styled-17af4657.js";import{G as P,N as M,a9 as R,aa as U,b as L,ab as D}from"./index.styles-671382bc.js";import"./index-064bc751.js";import{Box as F,Textarea as H}from"@mantine/core";import{I as z,T as Y}from"./index-60f16dee.js";import"./translationsContext-63b5cfff.js";import q from"string-format";import"innertext";import{t as G}from"./theme-2bdea2f5.js";import{B as V,S as X}from"./index-a2e81576.js";import"@mantine/dates";import"./gAssets.js";import Q from"dayjs";import{M as K}from"./screenSizeContext-18a2ae59.js";import W from"styled-components";import{i as J}from"./isProduction-2e0a8f23.js";import"@mantine/hooks";import"./constants-6cfaa1ef.js";import"lodash/debounce";import"react-contenteditable";import"react-dom";import"./useCategory-00053487.js";import{v4 as Z}from"uuid";import $ from"hex-rgb";import ee from"classnames";import"@linaria/react";import"./utils-892d8a65.js";import{C as te}from"./index-4daeba4d.js";import"./index.styled-46a99590.js";import"./index-2d5104c5.js";import{D as ie,L as ne}from"./index-6127f94b.js";import{motion as oe}from"framer-motion";import{Remarkable as ae}from"remarkable";import"date-fns";import"react-day-picker/DayPickerInput";import"./index-5fdbf5bc.js";import"lodash/throttle";import"html-react-parser";import"./types-4c039872.js";import{Controller as le,useForm as re}from"react-hook-form";import"./index.styled-a25d7261.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-36cb24ce.js";import"./utils-98561d5e.js";import"@mantine/form";import"lodash/flatten";import"lodash/uniqBy";import"./constants-2b76d121.js";import{useInView as se}from"react-intersection-observer";import de from"dayjs/plugin/isSameOrBefore";import{B as ce}from"./index-9991cfb3.js";import ue from"lodash/isEmpty";import me,{getCountryCallingCode as pe,isPossiblePhoneNumber as ve,parsePhoneNumber as ge}from"react-phone-number-input";import{LoadScript as be}from"@react-google-maps/api";import{u as he,G as fe,a as ye}from"./usePlacesAutocomplete-07f0fc32.js";import"date-fns/locale";import"./useTranslations-d963b37f.js";import"./number-33fd0b74.js";import"./index-162b9bde.js";import"./routing-ec23ed74.js";import"dayjs/plugin/relativeTime";import"./paths-64d19041.js";import"./index-2b4575ac.js";import"./cookieHelper-02a646ef.js";import"react-keyed-flatten-children";import"slugify";import"@mantine/carousel";import"./index-12a2d8bc.js";import"@hookform/resolvers/yup";import"./index-778d5fb2.js";import"./index-03141739.js";import"./index-956cdde0.js";const Ee=j.extend(A),xe={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}"},Ce={cached:{},clearCached:e=>{console.log(Ce.cached),Object.keys(Ce.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),Ce.cached[e]=void 0}))},withCached:(e,t)=>E(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===Ce.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof Ce.cached[e]&&(t(Ce.cached[e]),clearInterval(n))}),100)}));if("object"==typeof Ce.cached[e])return Ce.cached[e];Ce.cached[e]="waitingTheFirstResponse";try{const i=yield t();return Ce.cached[e]=i,setTimeout((()=>{Ce.cached[e]=void 0}),18e5),i}catch(t){return Ce.cached[e]=void 0,Promise.reject(t)}}))},we=(e,t)=>{const{subotApiUrl:i}=null==P?void 0:P.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+q(e,Object.assign({},t))},ke=e=>E(void 0,void 0,void 0,(function*(){try{return yield M(we(xe.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Se=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},Ie=e=>E(void 0,void 0,void 0,(function*(){try{return yield Ce.withCached("SubotInlineFirstNode",(()=>E(void 0,void 0,void 0,(function*(){const t=yield M(we(xe.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Se(t),t}))))}catch(e){return null}})),Ne=e=>E(void 0,void 0,void 0,(function*(){try{return yield M(we(xe.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),_e=e=>E(void 0,void 0,void 0,(function*(){try{return yield M(we(xe.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Te=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Oe=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Te],je=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Oe.includes(i))if(Te.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),Ae=e=>[{id:Z(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:Z(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:Z(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:Z(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const Pe=e=>R.parse(e||"")["hhg-id"]||O.get("hhg-id")||"",Me=e=>{if(e)return O.set("hhg-id",e),e;const t=Pe();if(t)return t;const i=Z();return O.set("hhg-id",i),i},Re=e=>{const t=R.parse(e||"")[C]||O.get(C)||"";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=R.parse(e||"")[C]||O.get(C)||"";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}}},Le=Z(),De=()=>Le,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${J?"":"discover."}${w[e]}`,He=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},Ye=30,qe=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ge=(e,t,i,n)=>{const o=qe(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ve=(e,t)=>{const i=qe(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},Xe="other",Qe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},We=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,E,x,C,w,k;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===Xe)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(E=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===E?void 0:E.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(C=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===C?void 0:C[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(k=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===k?void 0:k.label)||""})}}return e}),[]);return t},Je=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Ue().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>E(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:We(l),voucherAnswers:Je(l,e[0])},s={cookie_id:Me(),account_id:n||Re()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:k[U]};yield M(we(xe.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),$e=(e,t)=>{try{const[i,n,o]=$(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},et=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),tt=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:f}}=i(L),y=n(null),C=n(null),[w,k]=o(!0),[N,_]=o(""),[T,j]=o([]),[A,B]=o(!1),[R,U]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(Ee.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",$e(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",$e(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",$e(t,.3)||"#bcdeff")})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m]);const D=l((()=>{const e=window.gaData,t=window.location.origin+S+("tl-PH"===(null==P?void 0:P.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Re()||null,action_id:"",action_value:"",cookie_id:Me(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:O.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:De()};return je(i,null==P?void 0:P.router.query)}),[]),F=l((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),H=l(((e,t=!0)=>E(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];k(!0);const a=yield Ie(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],E(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield M(we(xe.GET_SUBOT_LOG,{botId:r.id,cookieId:Me(),accountId:Re()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Re()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,C.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Re())return null;const i=JSON.parse(localStorage.getItem(Qe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Qe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Re()||null,cookie_id:Me(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:D});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:C.current}),setTimeout((()=>{F()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);k(!1),_(c),j(u),U(Object.assign(Object.assign({},e),d))}))),[]),z=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=N,o=[...T];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(k(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{j(o),_(n),k(!1),Ze({nodes:o,activeId:n,params:R,accountIdFromLogs:C.current})}),250)}),[T,N]),Y=l((e=>E(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ge(T,N,e.action_id)),i=yield ke(t);if(k(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==T.findIndex((e=>e.id===a.id))?z(a):z(a,t))}f({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=T.find((e=>e.id==N));t&&t.hasOwnProperty("first_node")&&(_(T[1].id.toString()),Ze({nodes:T,activeId:T[1].id.toString(),params:D(),accountIdFromLogs:C.current}))}))),[z,T]),q=l((()=>{const e=T.findIndex((({id:e})=>e==N));if(e&&-1!==e&&e>1){const t=T[e-1];_(t.id),Ze({nodes:T,activeId:t.id,params:R,accountIdFromLogs:C.current})}}),[T,N]),G=l((()=>{const e=D();H(e,!1);const t=T[0],i=T[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:C.current})}),[D,H,T]),V=l((e=>{j((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==N?t.map((t=>{const i=t;return i.id===N?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[N]);a((()=>{if(O.get(I)){const e=D();H(e)}else Be({condition:()=>Boolean(O.get(I)),finished:()=>{const e=D();H(e)}})}),[]),a((()=>{if(!T.length)return;T.find((e=>e.id==N))&&N||_(d+"")}),[N,T]);const X=r((()=>({activeId:N,params:R,listNodes:T,loading:w,setLoading:k,getParams:D,onNext:Y,onPrev:q,onSubmit:z,onStartOver:G,onChange:V,isShowFooter:A,setIsShowFooter:B,isFullContainer:c,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[N,Y,q,z,V,G,A,R,T,w,k,D,c,v,g,b]);return T.length?e.createElement(et.Provider,{value:X},e.createElement("div",{ref:y},t)):null},it=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.99105 4.99067C5.79212 4.99072 5.59772 5.0501 5.43271 5.16121C5.2677 5.27233 5.13958 5.43013 5.06472 5.61444C4.98986 5.79875 4.97167 6.0012 5.01248 6.1959C5.05328 6.39061 5.15122 6.56872 5.29379 6.70747L10.5868 12.0004L5.29379 17.2934C5.19781 17.3855 5.12119 17.4959 5.0684 17.618C5.01562 17.7402 4.98773 17.8716 4.98638 18.0046C4.98503 18.1377 5.01023 18.2697 5.06052 18.3928C5.11081 18.516 5.18517 18.6279 5.27925 18.722C5.37333 18.8161 5.48523 18.8904 5.60841 18.9407C5.73159 18.991 5.86356 19.0162 5.9966 19.0149C6.12964 19.0135 6.26108 18.9856 6.38321 18.9328C6.50533 18.8801 6.6157 18.8034 6.70785 18.7075L12.0008 13.4145L17.2938 18.7075C17.3859 18.8034 17.4963 18.8801 17.6184 18.9328C17.7406 18.9856 17.872 19.0135 18.005 19.0149C18.1381 19.0162 18.27 18.991 18.3932 18.9407C18.5164 18.8904 18.6283 18.8161 18.7224 18.722C18.8165 18.6279 18.8908 18.516 18.9411 18.3928C18.9914 18.2697 19.0166 18.1377 19.0153 18.0047C19.0139 17.8716 18.986 17.7402 18.9332 17.618C18.8804 17.4959 18.8038 17.3855 18.7078 17.2934L13.4149 12.0004L18.7078 6.70747C18.8524 6.567 18.951 6.38616 18.991 6.18864C19.031 5.99112 19.0103 5.78614 18.9318 5.60055C18.8532 5.41497 18.7205 5.25744 18.5509 5.14861C18.3812 5.03978 18.1827 4.98473 17.9813 4.99067C17.7215 4.99841 17.4749 5.10699 17.2938 5.2934L12.0008 10.5864L6.70785 5.2934C6.61466 5.19761 6.50321 5.12146 6.3801 5.06947C6.25698 5.01747 6.1247 4.99068 5.99105 4.99067Z",fill:"#595959"})),nt="480px",ot=W.div`
1
+ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-f581f4df.js";import{a as E,_ as x}from"./tslib.es6-7b491686.js";import{B as C,d as w,M as k,e as S,G as I,f as N,A as _,g as T}from"./index-14839883.js";import O from"js-cookie";import j from"fastdom";import A from"fastdom/extensions/fastdom-promised";import{D as B}from"./index.styled-ede7c10d.js";import{G as P,N as M,a9 as R,aa as U,b as L,ab as D}from"./index.styles-95837b62.js";import"./index-1ac72931.js";import{Box as F,Textarea as H}from"@mantine/core";import{I as z,T as Y}from"./index-fa32b4d8.js";import"./translationsContext-a929820e.js";import q from"string-format";import"innertext";import{t as G}from"./theme-9d69f1a2.js";import{B as V,S as X}from"./index-8dfb1724.js";import"@mantine/dates";import"./gAssets.js";import Q from"dayjs";import{M as K}from"./screenSizeContext-f9a53919.js";import W from"styled-components";import{i as J}from"./isProduction-d8d94564.js";import"@mantine/hooks";import"./constants-039f36fe.js";import"lodash/debounce";import"react-contenteditable";import"react-dom";import"./useCategory-702b6604.js";import{v4 as Z}from"uuid";import $ from"hex-rgb";import ee from"classnames";import"@linaria/react";import"./utils-8849cc57.js";import{C as te}from"./index-bbf78608.js";import"./index.styled-90fe28c0.js";import"./index-2f243424.js";import{D as ie,L as ne}from"./index-20b84b31.js";import{motion as oe}from"framer-motion";import{Remarkable as ae}from"remarkable";import"date-fns";import"react-day-picker/DayPickerInput";import"./index-c70696a6.js";import"lodash/throttle";import"html-react-parser";import"./types-c4843c87.js";import{Controller as le,useForm as re}from"react-hook-form";import"./index.styled-a1854a4a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./index.styled-e26007df.js";import"./utils-b2a0d664.js";import"@mantine/form";import"lodash/flatten";import"lodash/uniqBy";import"./constants-0d46ae1d.js";import{useInView as se}from"react-intersection-observer";import de from"dayjs/plugin/isSameOrBefore";import{B as ce}from"./index-5ecfac85.js";import ue from"lodash/isEmpty";import me,{getCountryCallingCode as pe,isPossiblePhoneNumber as ve,parsePhoneNumber as ge}from"react-phone-number-input";import{LoadScript as be}from"@react-google-maps/api";import{u as he,G as fe,a as ye}from"./usePlacesAutocomplete-d14c4671.js";import"date-fns/locale";import"./useTranslations-51dc4ab8.js";import"./number-a14a26d2.js";import"./index-f1ff7dac.js";import"./routing-7c32cdb3.js";import"dayjs/plugin/relativeTime";import"./paths-80d2b4f2.js";import"./index-622dbaca.js";import"./cookieHelper-1491c7ea.js";import"react-keyed-flatten-children";import"slugify";import"@mantine/carousel";import"./index-282bbb6d.js";import"@hookform/resolvers/yup";import"./index-3d1ca95c.js";import"./index-8db07311.js";import"./index-65d31851.js";const Ee=j.extend(A),xe={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}"},Ce={cached:{},clearCached:e=>{console.log(Ce.cached),Object.keys(Ce.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),Ce.cached[e]=void 0}))},withCached:(e,t)=>E(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===Ce.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof Ce.cached[e]&&(t(Ce.cached[e]),clearInterval(n))}),100)}));if("object"==typeof Ce.cached[e])return Ce.cached[e];Ce.cached[e]="waitingTheFirstResponse";try{const i=yield t();return Ce.cached[e]=i,setTimeout((()=>{Ce.cached[e]=void 0}),18e5),i}catch(t){return Ce.cached[e]=void 0,Promise.reject(t)}}))},we=(e,t)=>{const{subotApiUrl:i}=null==P?void 0:P.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+q(e,Object.assign({},t))},ke=e=>E(void 0,void 0,void 0,(function*(){try{return yield M(we(xe.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Se=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},Ie=e=>E(void 0,void 0,void 0,(function*(){try{return yield Ce.withCached("SubotInlineFirstNode",(()=>E(void 0,void 0,void 0,(function*(){const t=yield M(we(xe.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Se(t),t}))))}catch(e){return null}})),Ne=e=>E(void 0,void 0,void 0,(function*(){try{return yield M(we(xe.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),_e=e=>E(void 0,void 0,void 0,(function*(){try{return yield M(we(xe.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Te=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Oe=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Te],je=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Oe.includes(i))if(Te.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),Ae=e=>[{id:Z(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:Z(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:Z(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:Z(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const Pe=e=>R.parse(e||"")["hhg-id"]||O.get("hhg-id")||"",Me=e=>{if(e)return O.set("hhg-id",e),e;const t=Pe();if(t)return t;const i=Z();return O.set("hhg-id",i),i},Re=e=>{const t=R.parse(e||"")[C]||O.get(C)||"";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=R.parse(e||"")[C]||O.get(C)||"";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}}},Le=Z(),De=()=>Le,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${J?"":"discover."}${w[e]}`,He=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},Ye=30,qe=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ge=(e,t,i,n)=>{const o=qe(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ve=(e,t)=>{const i=qe(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},Xe="other",Qe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},We=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,E,x,C,w,k;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===Xe)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(E=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===E?void 0:E.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(C=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===C?void 0:C[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(k=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===k?void 0:k.label)||""})}}return e}),[]);return t},Je=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Ue().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>E(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:We(l),voucherAnswers:Je(l,e[0])},s={cookie_id:Me(),account_id:n||Re()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:k[U]};yield M(we(xe.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),$e=(e,t)=>{try{const[i,n,o]=$(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},et=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),tt=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:f}}=i(L),y=n(null),C=n(null),[w,k]=o(!0),[N,_]=o(""),[T,j]=o([]),[A,B]=o(!1),[R,U]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(Ee.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",$e(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",$e(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",$e(t,.3)||"#bcdeff")})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m]);const D=l((()=>{const e=window.gaData,t=window.location.origin+S+("tl-PH"===(null==P?void 0:P.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Re()||null,action_id:"",action_value:"",cookie_id:Me(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:O.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:De()};return je(i,null==P?void 0:P.router.query)}),[]),F=l((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),H=l(((e,t=!0)=>E(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];k(!0);const a=yield Ie(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],E(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield M(we(xe.GET_SUBOT_LOG,{botId:r.id,cookieId:Me(),accountId:Re()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Re()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,C.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Re())return null;const i=JSON.parse(localStorage.getItem(Qe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Qe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Re()||null,cookie_id:Me(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:D});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:C.current}),setTimeout((()=>{F()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);k(!1),_(c),j(u),U(Object.assign(Object.assign({},e),d))}))),[]),z=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=N,o=[...T];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(k(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{j(o),_(n),k(!1),Ze({nodes:o,activeId:n,params:R,accountIdFromLogs:C.current})}),250)}),[T,N]),Y=l((e=>E(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ge(T,N,e.action_id)),i=yield ke(t);if(k(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==T.findIndex((e=>e.id===a.id))?z(a):z(a,t))}f({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=T.find((e=>e.id==N));t&&t.hasOwnProperty("first_node")&&(_(T[1].id.toString()),Ze({nodes:T,activeId:T[1].id.toString(),params:D(),accountIdFromLogs:C.current}))}))),[z,T]),q=l((()=>{const e=T.findIndex((({id:e})=>e==N));if(e&&-1!==e&&e>1){const t=T[e-1];_(t.id),Ze({nodes:T,activeId:t.id,params:R,accountIdFromLogs:C.current})}}),[T,N]),G=l((()=>{const e=D();H(e,!1);const t=T[0],i=T[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:C.current})}),[D,H,T]),V=l((e=>{j((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==N?t.map((t=>{const i=t;return i.id===N?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[N]);a((()=>{if(O.get(I)){const e=D();H(e)}else Be({condition:()=>Boolean(O.get(I)),finished:()=>{const e=D();H(e)}})}),[]),a((()=>{if(!T.length)return;T.find((e=>e.id==N))&&N||_(d+"")}),[N,T]);const X=r((()=>({activeId:N,params:R,listNodes:T,loading:w,setLoading:k,getParams:D,onNext:Y,onPrev:q,onSubmit:z,onStartOver:G,onChange:V,isShowFooter:A,setIsShowFooter:B,isFullContainer:c,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[N,Y,q,z,V,G,A,R,T,w,k,D,c,v,g,b]);return T.length?e.createElement(et.Provider,{value:X},e.createElement("div",{ref:y},t)):null},it=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.99105 4.99067C5.79212 4.99072 5.59772 5.0501 5.43271 5.16121C5.2677 5.27233 5.13958 5.43013 5.06472 5.61444C4.98986 5.79875 4.97167 6.0012 5.01248 6.1959C5.05328 6.39061 5.15122 6.56872 5.29379 6.70747L10.5868 12.0004L5.29379 17.2934C5.19781 17.3855 5.12119 17.4959 5.0684 17.618C5.01562 17.7402 4.98773 17.8716 4.98638 18.0046C4.98503 18.1377 5.01023 18.2697 5.06052 18.3928C5.11081 18.516 5.18517 18.6279 5.27925 18.722C5.37333 18.8161 5.48523 18.8904 5.60841 18.9407C5.73159 18.991 5.86356 19.0162 5.9966 19.0149C6.12964 19.0135 6.26108 18.9856 6.38321 18.9328C6.50533 18.8801 6.6157 18.8034 6.70785 18.7075L12.0008 13.4145L17.2938 18.7075C17.3859 18.8034 17.4963 18.8801 17.6184 18.9328C17.7406 18.9856 17.872 19.0135 18.005 19.0149C18.1381 19.0162 18.27 18.991 18.3932 18.9407C18.5164 18.8904 18.6283 18.8161 18.7224 18.722C18.8165 18.6279 18.8908 18.516 18.9411 18.3928C18.9914 18.2697 19.0166 18.1377 19.0153 18.0047C19.0139 17.8716 18.986 17.7402 18.9332 17.618C18.8804 17.4959 18.8038 17.3855 18.7078 17.2934L13.4149 12.0004L18.7078 6.70747C18.8524 6.567 18.951 6.38616 18.991 6.18864C19.031 5.99112 19.0103 5.78614 18.9318 5.60055C18.8532 5.41497 18.7205 5.25744 18.5509 5.14861C18.3812 5.03978 18.1827 4.98473 17.9813 4.99067C17.7215 4.99841 17.4749 5.10699 17.2938 5.2934L12.0008 10.5864L6.70785 5.2934C6.61466 5.19761 6.50321 5.12146 6.3801 5.06947C6.25698 5.01747 6.1247 4.99068 5.99105 4.99067Z",fill:"#595959"})),nt="480px",ot=W.div`
2
2
  position: relative;
3
3
 
4
4
  .si-inline-revamp-container {
@@ -1 +1 @@
1
- export{d as CardAuthor,C as CardReactions,L as LabelSortPin,c as LabelSorting,m as PopoverMenu,e as PopupDoctor,P as PopupExpert,g as PopupFrame,f as PopupHospital,i as PostContent,k as ProfileDetail,j as ProfileDetailModal,h as ShareBox,S as SharePopup,n as SourceList,l as TabNameInProfileDetail,b as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,u as useTogetherAuthRequiredAction}from"./index.styled-17af4657.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-064bc751.js";export{C as CardLink,i as CardPost,j as CardPostPopoverMore,k as CardReply,l as CardReplyPopover,a as CreateNewPostContent,b as CreatePostDescription,c as CreatePostTitle,d as ImagePreviewPopup,I as InputCommentBar,L as LabelPin,P as PopupDanger,f as PostImagePreview,e as PostSingleImageViewPopup,h as SkipQuestionOfExpertBtn,g as SocialLinkPreview,S as SubmitReportForm,t as TogetherTypes,T as TopicSelectList,V as VerifiedTag}from"./types-232e79d1.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,b as TogetherComponentGlobalContext,d as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./index.styles-671382bc.js";import"react";import"@mantine/core";import"./tslib.es6-70854b37.js";import"./useTranslations-d963b37f.js";import"./translationsContext-63b5cfff.js";import"string-format";import"./index-60f16dee.js";import"./theme-2bdea2f5.js";import"dayjs";import"./screenSizeContext-18a2ae59.js";import"styled-components";import"lodash/throttle";import"./index-2be76d22.js";import"date-fns/locale";import"./Subot-2c9e4c09.js";import"./isProduction-2e0a8f23.js";import"./gAssets.js";import"./index-a2e81576.js";import"@mantine/hooks";import"@mantine/carousel";import"classnames";import"@mantine/dates";import"./number-33fd0b74.js";import"date-fns";import"./index-9991cfb3.js";import"./index-162b9bde.js";import"./constants-6cfaa1ef.js";import"./routing-ec23ed74.js";import"dayjs/plugin/relativeTime";import"./paths-64d19041.js";import"lodash/debounce";import"./useCategory-00053487.js";import"./index-2b4575ac.js";import"innertext";import"./cookieHelper-02a646ef.js";import"react-contenteditable";import"react-dom";import"@linaria/react";import"./utils-892d8a65.js";import"./index.styled-46a99590.js";import"./index-2d5104c5.js";import"./index-79f41857.js";import"react-keyed-flatten-children";import"slugify";
1
+ export{d as CardAuthor,C as CardReactions,L as LabelSortPin,c as LabelSorting,m as PopoverMenu,e as PopupDoctor,P as PopupExpert,g as PopupFrame,f as PopupHospital,i as PostContent,k as ProfileDetail,j as ProfileDetailModal,h as ShareBox,S as SharePopup,n as SourceList,l as TabNameInProfileDetail,b as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,u as useTogetherAuthRequiredAction}from"./index.styled-ede7c10d.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-1ac72931.js";export{C as CardLink,i as CardPost,j as CardPostPopoverMore,k as CardReply,l as CardReplyPopover,a as CreateNewPostContent,b as CreatePostDescription,c as CreatePostTitle,d as ImagePreviewPopup,I as InputCommentBar,L as LabelPin,P as PopupDanger,f as PostImagePreview,e as PostSingleImageViewPopup,h as SkipQuestionOfExpertBtn,g as SocialLinkPreview,S as SubmitReportForm,t as TogetherTypes,T as TopicSelectList,V as VerifiedTag}from"./types-d466572e.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,b as TogetherComponentGlobalContext,d as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./index.styles-95837b62.js";import"react";import"@mantine/core";import"./tslib.es6-7b491686.js";import"./useTranslations-51dc4ab8.js";import"./translationsContext-a929820e.js";import"string-format";import"./index-fa32b4d8.js";import"./theme-9d69f1a2.js";import"dayjs";import"./screenSizeContext-f9a53919.js";import"styled-components";import"lodash/throttle";import"./index-14839883.js";import"date-fns/locale";import"./Subot-f581f4df.js";import"./isProduction-d8d94564.js";import"./gAssets.js";import"./index-8dfb1724.js";import"@mantine/hooks";import"@mantine/carousel";import"classnames";import"@mantine/dates";import"./number-a14a26d2.js";import"date-fns";import"./index-5ecfac85.js";import"./index-f1ff7dac.js";import"./constants-039f36fe.js";import"./routing-7c32cdb3.js";import"dayjs/plugin/relativeTime";import"./paths-80d2b4f2.js";import"lodash/debounce";import"./useCategory-702b6604.js";import"./index-622dbaca.js";import"innertext";import"./cookieHelper-1491c7ea.js";import"react-contenteditable";import"react-dom";import"@linaria/react";import"./utils-8849cc57.js";import"./index.styled-90fe28c0.js";import"./index-2f243424.js";import"./index-e17cd802.js";import"react-keyed-flatten-children";import"slugify";
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-70854b37.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-d963b37f.js";import c from"lodash/debounce";import{I as d,e as p,f as u,M as h,g,C as m}from"./constants-6cfaa1ef.js";import{I as C}from"./index-162b9bde.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f,I as v}from"./index-60f16dee.js";import{t as x}from"./theme-2bdea2f5.js";import S from"lodash/shuffle";import{a as E}from"./useOutsideClick-0fb1f5b8.js";import{M as w}from"./screenSizeContext-18a2ae59.js";import"dayjs";import{U as L,d as k}from"./index-2be76d22.js";import"./isProduction-2e0a8f23.js";import"./Subot-2c9e4c09.js";import"./gAssets.js";import O from"react-loading-skeleton";import{P as j}from"./paths-64d19041.js";import{Skeleton as I,Input as $,Divider as F,Tabs as M,Flex as R,Button as T}from"@mantine/core";import{g as P,s as N,d as A}from"./cookieHelper-02a646ef.js";import{C as B}from"./index-4daeba4d.js";import{C as V}from"./ChevronDown-70559b47.js";import D from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(P(L))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=P(L);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};N(L,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{A(L),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
1
+ import{a as e}from"./tslib.es6-7b491686.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-51dc4ab8.js";import c from"lodash/debounce";import{I as d,e as p,f as u,M as h,g,C as m}from"./constants-039f36fe.js";import{I as C}from"./index-f1ff7dac.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f,I as v}from"./index-fa32b4d8.js";import{t as x}from"./theme-9d69f1a2.js";import S from"lodash/shuffle";import{a as E}from"./useOutsideClick-78141983.js";import{M as w}from"./screenSizeContext-f9a53919.js";import"dayjs";import{U as L,d as k}from"./index-14839883.js";import"./isProduction-d8d94564.js";import"./Subot-f581f4df.js";import"./gAssets.js";import O from"react-loading-skeleton";import{P as j}from"./paths-80d2b4f2.js";import{Skeleton as I,Input as $,Divider as F,Tabs as M,Flex as R,Button as T}from"@mantine/core";import{g as P,s as N,d as A}from"./cookieHelper-1491c7ea.js";import{C as B}from"./index-bbf78608.js";import{C as V}from"./ChevronDown-38081c52.js";import D from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(P(L))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=P(L);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};N(L,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{A(L),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;