@hhgtech/hhg-components 1.28.64-beta-1 → 1.28.64

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 (456) hide show
  1. package/build/Plus-04194182.js +1 -0
  2. package/build/WhatsApp-7fe744bc.js +1 -0
  3. package/build/adapters.js +1 -1
  4. package/build/babyGrowth.js +8 -8
  5. package/build/cache.js +1 -1
  6. package/build/care.js +1 -1
  7. package/build/components/atoms/icons/ACharacter.d.ts +4 -0
  8. package/build/components/atoms/icons/Activities.d.ts +4 -0
  9. package/build/components/atoms/icons/ArrowDown.d.ts +4 -0
  10. package/build/components/atoms/icons/ArrowLeft.d.ts +4 -0
  11. package/build/components/atoms/icons/ArrowRight.d.ts +4 -0
  12. package/build/components/atoms/icons/Article.d.ts +4 -0
  13. package/build/components/atoms/icons/Ask.d.ts +4 -0
  14. package/build/components/atoms/icons/BabyBoyMB.d.ts +4 -0
  15. package/build/components/atoms/icons/BabyGirlMB.d.ts +4 -0
  16. package/build/components/atoms/icons/BarChart.d.ts +4 -0
  17. package/build/components/atoms/icons/Booking.d.ts +4 -0
  18. package/build/components/atoms/icons/Bookmark.d.ts +4 -0
  19. package/build/components/atoms/icons/Boy.d.ts +4 -0
  20. package/build/components/atoms/icons/Business.d.ts +4 -0
  21. package/build/components/atoms/icons/Calendar.d.ts +4 -0
  22. package/build/components/atoms/icons/CalendarMB.d.ts +4 -0
  23. package/build/components/atoms/icons/CameraCircle.d.ts +4 -0
  24. package/build/components/atoms/icons/Chat.d.ts +4 -0
  25. package/build/components/atoms/icons/Check.d.ts +4 -0
  26. package/build/components/atoms/icons/CheckActiveMB.d.ts +4 -0
  27. package/build/components/atoms/icons/CircleBorder.d.ts +4 -0
  28. package/build/components/atoms/icons/Clickable.d.ts +4 -0
  29. package/build/components/atoms/icons/ClinicPin.d.ts +4 -0
  30. package/build/components/atoms/icons/Close.d.ts +4 -0
  31. package/build/components/atoms/icons/Comment.d.ts +4 -0
  32. package/build/components/atoms/icons/Community.d.ts +4 -0
  33. package/build/components/atoms/icons/CrossLogo.d.ts +4 -0
  34. package/build/components/atoms/icons/Current.d.ts +4 -0
  35. package/build/components/atoms/icons/EditSpecial.d.ts +4 -0
  36. package/build/components/atoms/icons/Endorse.d.ts +4 -0
  37. package/build/components/atoms/icons/Envelop.d.ts +4 -0
  38. package/build/components/atoms/icons/Family.d.ts +4 -0
  39. package/build/components/atoms/icons/Font.d.ts +4 -0
  40. package/build/components/atoms/icons/FullScreen.d.ts +4 -0
  41. package/build/components/atoms/icons/GenderBoy.d.ts +4 -0
  42. package/build/components/atoms/icons/GenderChooseBoy.d.ts +4 -0
  43. package/build/components/atoms/icons/GenderChooseGirl.d.ts +4 -0
  44. package/build/components/atoms/icons/GenderGirl.d.ts +4 -0
  45. package/build/components/atoms/icons/Girl.d.ts +4 -0
  46. package/build/components/atoms/icons/GroupPeople.d.ts +4 -0
  47. package/build/components/atoms/icons/GroupPeopleSolid.d.ts +4 -0
  48. package/build/components/atoms/icons/Heart.d.ts +4 -0
  49. package/build/components/atoms/icons/Home.d.ts +4 -0
  50. package/build/components/atoms/icons/Hospital.d.ts +4 -0
  51. package/build/components/atoms/icons/Info.d.ts +4 -0
  52. package/build/components/atoms/icons/Kebab.d.ts +4 -0
  53. package/build/components/atoms/icons/Like.d.ts +4 -0
  54. package/build/components/atoms/icons/Link.d.ts +4 -0
  55. package/build/components/atoms/icons/Minus.d.ts +4 -0
  56. package/build/components/atoms/icons/Missed.d.ts +4 -0
  57. package/build/components/atoms/icons/MyCommunity.d.ts +4 -0
  58. package/build/components/atoms/icons/MyHealth.d.ts +4 -0
  59. package/build/components/atoms/icons/Oppose.d.ts +4 -0
  60. package/build/components/atoms/icons/Parents.d.ts +4 -0
  61. package/build/components/atoms/icons/Plus.d.ts +4 -0
  62. package/build/components/atoms/icons/PlusSpecial.d.ts +4 -0
  63. package/build/components/atoms/icons/Post.d.ts +4 -0
  64. package/build/components/atoms/icons/Recalculate.d.ts +4 -0
  65. package/build/components/atoms/icons/Reply.d.ts +4 -0
  66. package/build/components/atoms/icons/Scale.d.ts +4 -0
  67. package/build/components/atoms/icons/Screener.d.ts +4 -0
  68. package/build/components/atoms/icons/Search.d.ts +4 -0
  69. package/build/components/atoms/icons/ShieldCheck.d.ts +4 -0
  70. package/build/components/atoms/icons/Smile.d.ts +4 -0
  71. package/build/components/atoms/icons/Sparkle.d.ts +4 -0
  72. package/build/components/atoms/icons/Star.d.ts +4 -0
  73. package/build/components/atoms/icons/Stethoscope.d.ts +4 -0
  74. package/build/components/atoms/icons/StethoscopeActive.d.ts +4 -0
  75. package/build/components/atoms/icons/ToggleOff.d.ts +4 -0
  76. package/build/components/atoms/icons/ToggleOn.d.ts +4 -0
  77. package/build/components/atoms/icons/Trash.d.ts +4 -0
  78. package/build/components/atoms/icons/Upcoming.d.ts +4 -0
  79. package/build/components/atoms/icons/User.d.ts +4 -0
  80. package/build/components/atoms/icons/UserCheck.d.ts +4 -0
  81. package/build/components/atoms/icons/Vaccinated.d.ts +4 -0
  82. package/build/components/atoms/icons/Video.d.ts +4 -0
  83. package/build/components/atoms/icons/VideoCall.d.ts +4 -0
  84. package/build/components/atoms/icons/Woman.d.ts +4 -0
  85. package/build/components/atoms/icons/index.d.ts +58 -94
  86. package/build/components.js +1 -1
  87. package/build/{constants-39ce5af1.js → constants-bcb62c25.js} +1 -1
  88. package/build/{constants-49967dce.js → constants-d42ecccd.js} +1 -1
  89. package/build/constants.js +1 -1
  90. package/build/{core-ec1d6326.js → core-a695d5de.js} +1 -1
  91. package/build/{dataTransform-4932d13f.js → dataTransform-b579048e.js} +1 -1
  92. package/build/ecom.js +1 -1
  93. package/build/esm/Plus-8cef4caa.js +1 -0
  94. package/build/esm/WhatsApp-44e057d5.js +1 -0
  95. package/build/esm/adapters.js +1 -1
  96. package/build/esm/babyGrowth.js +4 -4
  97. package/build/esm/cache.js +1 -1
  98. package/build/esm/care.js +1 -1
  99. package/build/esm/components/atoms/icons/ACharacter.d.ts +4 -0
  100. package/build/esm/components/atoms/icons/Activities.d.ts +4 -0
  101. package/build/esm/components/atoms/icons/ArrowDown.d.ts +4 -0
  102. package/build/esm/components/atoms/icons/ArrowLeft.d.ts +4 -0
  103. package/build/esm/components/atoms/icons/ArrowRight.d.ts +4 -0
  104. package/build/esm/components/atoms/icons/Article.d.ts +4 -0
  105. package/build/esm/components/atoms/icons/Ask.d.ts +4 -0
  106. package/build/esm/components/atoms/icons/BabyBoyMB.d.ts +4 -0
  107. package/build/esm/components/atoms/icons/BabyGirlMB.d.ts +4 -0
  108. package/build/esm/components/atoms/icons/BarChart.d.ts +4 -0
  109. package/build/esm/components/atoms/icons/Booking.d.ts +4 -0
  110. package/build/esm/components/atoms/icons/Bookmark.d.ts +4 -0
  111. package/build/esm/components/atoms/icons/Boy.d.ts +4 -0
  112. package/build/esm/components/atoms/icons/Business.d.ts +4 -0
  113. package/build/esm/components/atoms/icons/Calendar.d.ts +4 -0
  114. package/build/esm/components/atoms/icons/CalendarMB.d.ts +4 -0
  115. package/build/esm/components/atoms/icons/CameraCircle.d.ts +4 -0
  116. package/build/esm/components/atoms/icons/Chat.d.ts +4 -0
  117. package/build/esm/components/atoms/icons/Check.d.ts +4 -0
  118. package/build/esm/components/atoms/icons/CheckActiveMB.d.ts +4 -0
  119. package/build/esm/components/atoms/icons/CircleBorder.d.ts +4 -0
  120. package/build/esm/components/atoms/icons/Clickable.d.ts +4 -0
  121. package/build/esm/components/atoms/icons/ClinicPin.d.ts +4 -0
  122. package/build/esm/components/atoms/icons/Close.d.ts +4 -0
  123. package/build/esm/components/atoms/icons/Comment.d.ts +4 -0
  124. package/build/esm/components/atoms/icons/Community.d.ts +4 -0
  125. package/build/esm/components/atoms/icons/CrossLogo.d.ts +4 -0
  126. package/build/esm/components/atoms/icons/Current.d.ts +4 -0
  127. package/build/esm/components/atoms/icons/EditSpecial.d.ts +4 -0
  128. package/build/esm/components/atoms/icons/Endorse.d.ts +4 -0
  129. package/build/esm/components/atoms/icons/Envelop.d.ts +4 -0
  130. package/build/esm/components/atoms/icons/Family.d.ts +4 -0
  131. package/build/esm/components/atoms/icons/Font.d.ts +4 -0
  132. package/build/esm/components/atoms/icons/FullScreen.d.ts +4 -0
  133. package/build/esm/components/atoms/icons/GenderBoy.d.ts +4 -0
  134. package/build/esm/components/atoms/icons/GenderChooseBoy.d.ts +4 -0
  135. package/build/esm/components/atoms/icons/GenderChooseGirl.d.ts +4 -0
  136. package/build/esm/components/atoms/icons/GenderGirl.d.ts +4 -0
  137. package/build/esm/components/atoms/icons/Girl.d.ts +4 -0
  138. package/build/esm/components/atoms/icons/GroupPeople.d.ts +4 -0
  139. package/build/esm/components/atoms/icons/GroupPeopleSolid.d.ts +4 -0
  140. package/build/esm/components/atoms/icons/Heart.d.ts +4 -0
  141. package/build/esm/components/atoms/icons/Home.d.ts +4 -0
  142. package/build/esm/components/atoms/icons/Hospital.d.ts +4 -0
  143. package/build/esm/components/atoms/icons/Info.d.ts +4 -0
  144. package/build/esm/components/atoms/icons/Kebab.d.ts +4 -0
  145. package/build/esm/components/atoms/icons/Like.d.ts +4 -0
  146. package/build/esm/components/atoms/icons/Link.d.ts +4 -0
  147. package/build/esm/components/atoms/icons/Minus.d.ts +4 -0
  148. package/build/esm/components/atoms/icons/Missed.d.ts +4 -0
  149. package/build/esm/components/atoms/icons/MyCommunity.d.ts +4 -0
  150. package/build/esm/components/atoms/icons/MyHealth.d.ts +4 -0
  151. package/build/esm/components/atoms/icons/Oppose.d.ts +4 -0
  152. package/build/esm/components/atoms/icons/Parents.d.ts +4 -0
  153. package/build/esm/components/atoms/icons/Plus.d.ts +4 -0
  154. package/build/esm/components/atoms/icons/PlusSpecial.d.ts +4 -0
  155. package/build/esm/components/atoms/icons/Post.d.ts +4 -0
  156. package/build/esm/components/atoms/icons/Recalculate.d.ts +4 -0
  157. package/build/esm/components/atoms/icons/Reply.d.ts +4 -0
  158. package/build/esm/components/atoms/icons/Scale.d.ts +4 -0
  159. package/build/esm/components/atoms/icons/Screener.d.ts +4 -0
  160. package/build/esm/components/atoms/icons/Search.d.ts +4 -0
  161. package/build/esm/components/atoms/icons/ShieldCheck.d.ts +4 -0
  162. package/build/esm/components/atoms/icons/Smile.d.ts +4 -0
  163. package/build/esm/components/atoms/icons/Sparkle.d.ts +4 -0
  164. package/build/esm/components/atoms/icons/Star.d.ts +4 -0
  165. package/build/esm/components/atoms/icons/Stethoscope.d.ts +4 -0
  166. package/build/esm/components/atoms/icons/StethoscopeActive.d.ts +4 -0
  167. package/build/esm/components/atoms/icons/ToggleOff.d.ts +4 -0
  168. package/build/esm/components/atoms/icons/ToggleOn.d.ts +4 -0
  169. package/build/esm/components/atoms/icons/Trash.d.ts +4 -0
  170. package/build/esm/components/atoms/icons/Upcoming.d.ts +4 -0
  171. package/build/esm/components/atoms/icons/User.d.ts +4 -0
  172. package/build/esm/components/atoms/icons/UserCheck.d.ts +4 -0
  173. package/build/esm/components/atoms/icons/Vaccinated.d.ts +4 -0
  174. package/build/esm/components/atoms/icons/Video.d.ts +4 -0
  175. package/build/esm/components/atoms/icons/VideoCall.d.ts +4 -0
  176. package/build/esm/components/atoms/icons/Woman.d.ts +4 -0
  177. package/build/esm/components/atoms/icons/index.d.ts +58 -94
  178. package/build/esm/components.js +1 -1
  179. package/build/esm/{constants-ec850b6a.js → constants-7213bbbb.js} +1 -1
  180. package/build/esm/{constants-69dc3233.js → constants-cac24050.js} +2 -2
  181. package/build/esm/constants.js +1 -1
  182. package/build/esm/{core-b2577003.js → core-da48e47b.js} +1 -1
  183. package/build/esm/{dataTransform-6d44e1c4.js → dataTransform-03e7fa9a.js} +1 -1
  184. package/build/esm/ecom.js +1 -1
  185. package/build/esm/footer.js +1 -1
  186. package/build/esm/gAssets.js +1 -1
  187. package/build/esm/{getDynamicHealthTool-af1be748.js → getDynamicHealthTool-0ff6917c.js} +1 -1
  188. package/build/esm/{getSocialList-3fb95700.js → getSocialList-29a0bf49.js} +1 -1
  189. package/build/esm/hooks.js +1 -1
  190. package/build/esm/i18n.js +1 -1
  191. package/build/esm/i18nV2.js +1 -1
  192. package/build/esm/{index-41a9d0b9.js → index-141712fe.js} +2 -2
  193. package/build/esm/{index-9b1da6c1.js → index-2cc07b58.js} +8 -8
  194. package/build/esm/{index-9083697e.js → index-30dcdaff.js} +1 -1
  195. package/build/esm/{index-c49c75be.js → index-46633cce.js} +2 -2
  196. package/build/esm/{index-dc0c86fd.js → index-62568f31.js} +15 -15
  197. package/build/esm/{index-16a426f1.js → index-647e25e0.js} +1 -1
  198. package/build/esm/index-64942f9b.js +1 -0
  199. package/build/esm/{index-36159954.js → index-7d8e4d8b.js} +1 -1
  200. package/build/esm/{index-6ef12748.js → index-7eb55c75.js} +1 -1
  201. package/build/esm/{index-6ad0389b.js → index-870ec5ab.js} +1 -1
  202. package/build/esm/index-8a0ab15c.js +1 -0
  203. package/build/esm/index-9157a95c.js +1 -0
  204. package/build/esm/{index-a9ca9dc5.js → index-97c988f4.js} +1 -1
  205. package/build/esm/index-9a160c2c.js +1 -0
  206. package/build/esm/{index-9afd9172.js → index-9bf97e76.js} +1 -1
  207. package/build/esm/index-a9f5bf20.js +1 -0
  208. package/build/esm/{index-6cd966a3.js → index-aaa1f5d3.js} +5 -5
  209. package/build/esm/index-abd02d49.js +1 -0
  210. package/build/esm/{index-1d248975.js → index-b5608883.js} +3 -3
  211. package/build/esm/{index-640ddb62.js → index-c3993bda.js} +1 -1
  212. package/build/esm/index-d57b7df3.js +1 -0
  213. package/build/esm/{index-9690ac95.js → index-dbde2b91.js} +1 -1
  214. package/build/esm/{index-f03c9c66.js → index-e3793123.js} +1 -1
  215. package/build/esm/index-fc3bb59b.js +1 -0
  216. package/build/esm/index.js +1 -1
  217. package/build/esm/{index.styled-47295403.js → index.styled-83923568.js} +3 -3
  218. package/build/esm/{index.styles-0132251b.js → index.styles-4c6315d7.js} +1 -1
  219. package/build/esm/lead.js +1 -1
  220. package/build/esm/mantine.js +1 -1
  221. package/build/esm/misc.js +1 -1
  222. package/build/esm/navigation.js +1 -1
  223. package/build/esm/onboardingV2.js +8 -8
  224. package/build/esm/pwg.js +5 -5
  225. package/build/esm/{routing-604355d5.js → routing-c329e50f.js} +1 -1
  226. package/build/esm/subot.js +1 -1
  227. package/build/esm/together.js +1 -1
  228. package/build/esm/{types-c68a9a30.js → types-4cada678.js} +22 -22
  229. package/build/esm/{types-98dbabc5.js → types-f7e030f2.js} +200 -200
  230. package/build/esm/types.js +1 -1
  231. package/build/esm/{useCategory-b9c61b92.js → useCategory-ec1e1cde.js} +1 -1
  232. package/build/esm/useHealthToolCache-1f9ac3e3.js +1 -0
  233. package/build/esm/{usePlacesAutocomplete-c257257c.js → usePlacesAutocomplete-8f2dc510.js} +1 -1
  234. package/build/esm/useTranslations-a40b1ce6.js +1 -0
  235. package/build/esm/{utils-83391bec.js → utils-65178664.js} +1 -1
  236. package/build/esm/{utils-64b7f4cd.js → utils-78dbdac6.js} +1 -1
  237. package/build/esm/{utils-5c44d1a5.js → utils-cd3a7006.js} +2 -2
  238. package/build/esm/vaccination.js +11 -11
  239. package/build/footer.js +1 -1
  240. package/build/gAssets.js +1 -1
  241. package/build/getDynamicHealthTool-da8479cd.js +1 -0
  242. package/build/{getSocialList-4db065c4.js → getSocialList-0ea4a4ae.js} +1 -1
  243. package/build/hooks.js +1 -1
  244. package/build/i18n.js +1 -1
  245. package/build/i18nV2.js +1 -1
  246. package/build/{index-0836566d.js → index-0e6e226f.js} +1 -1
  247. package/build/index-1d991713.js +1 -0
  248. package/build/index-1de21188.js +113 -0
  249. package/build/{index-676997c2.js → index-2514ba86.js} +1 -1
  250. package/build/{index-0420b146.js → index-2b1ed03f.js} +1 -1
  251. package/build/{index-377dcf63.js → index-33e990e9.js} +1 -1
  252. package/build/index-34d36860.js +1 -0
  253. package/build/{index-09af54bf.js → index-3c68c5e4.js} +1 -1
  254. package/build/{index-87a97765.js → index-4dc83419.js} +1 -1
  255. package/build/{index-2b5f13e9.js → index-5eb51860.js} +1 -1
  256. package/build/{index-dcc46678.js → index-74083edd.js} +1 -1
  257. package/build/{index-d9b6c241.js → index-7725e8e6.js} +18 -18
  258. package/build/index-782d7030.js +1 -0
  259. package/build/{index-f3d850c2.js → index-7aa07832.js} +2 -2
  260. package/build/{index-37f69418.js → index-7d5dd9db.js} +1 -1
  261. package/build/{index-90efccd6.js → index-7fad2e82.js} +1 -1
  262. package/build/{index-8f0ff4a5.js → index-89a4a534.js} +1 -1
  263. package/build/index-9c9a2ef3.js +1 -0
  264. package/build/index-d75b1e7c.js +1 -0
  265. package/build/{index-b25871e4.js → index-eca051c5.js} +2 -2
  266. package/build/{index-ef615786.js → index-ecc725c8.js} +1 -1
  267. package/build/{index-d2198612.js → index-f519b310.js} +1 -1
  268. package/build/{index-3f66b676.js → index-faddb766.js} +2 -2
  269. package/build/index-fbed8d8d.js +1 -0
  270. package/build/index.js +1 -1
  271. package/build/{index.styled-0ee163ab.js → index.styled-e54e7b0d.js} +1 -1
  272. package/build/{index.styles-7d8d7d8d.js → index.styles-e0843712.js} +1 -1
  273. package/build/lead.js +1 -1
  274. package/build/mantine.js +1 -1
  275. package/build/misc.js +1 -1
  276. package/build/navigation.js +1 -1
  277. package/build/onboardingV2.js +1 -1
  278. package/build/pwg.js +3 -3
  279. package/build/{routing-9856aab9.js → routing-c9bedd73.js} +1 -1
  280. package/build/subot.js +1 -1
  281. package/build/together.js +1 -1
  282. package/build/{types-c24620b1.js → types-51d4c862.js} +1 -1
  283. package/build/{types-28aaffcf.js → types-7ca520e1.js} +202 -202
  284. package/build/types.js +1 -1
  285. package/build/{useCategory-d47beb67.js → useCategory-ab903748.js} +1 -1
  286. package/build/{useHealthToolCache-86a7240e.js → useHealthToolCache-32180c29.js} +1 -1
  287. package/build/{usePlacesAutocomplete-e636363d.js → usePlacesAutocomplete-83af3ee0.js} +1 -1
  288. package/build/{useTranslations-1da09077.js → useTranslations-17f45aff.js} +1 -1
  289. package/build/{utils-e74f7231.js → utils-e6e89802.js} +1 -1
  290. package/build/utils-e94dccb9.js +1 -0
  291. package/build/{utils-fa8ea45a.js → utils-ed46648c.js} +1 -1
  292. package/build/vaccination.js +4 -4
  293. package/package.json +2 -4
  294. package/build/WhatsApp-59bf48e6.js +0 -1
  295. package/build/esm/WhatsApp-c6012890.js +0 -1
  296. package/build/esm/index-14234adb.js +0 -1
  297. package/build/esm/index-32b4e6bd.js +0 -1
  298. package/build/esm/index-376659df.js +0 -1
  299. package/build/esm/index-41a009c2.js +0 -1
  300. package/build/esm/index-529b02cd.js +0 -1
  301. package/build/esm/index-7ea8eb13.js +0 -1
  302. package/build/esm/index-8c2b742a.js +0 -1
  303. package/build/esm/index-cd383314.js +0 -1
  304. package/build/esm/index-d22e5cad.js +0 -1
  305. package/build/esm/useHealthToolCache-50f40dfc.js +0 -1
  306. package/build/esm/useTranslations-13dca823.js +0 -1
  307. package/build/getDynamicHealthTool-605ad34f.js +0 -1
  308. package/build/index-4e0c886a.js +0 -1
  309. package/build/index-9f562075.js +0 -1
  310. package/build/index-a4d471a9.js +0 -1
  311. package/build/index-ae525f06.js +0 -1
  312. package/build/index-b7c3d3c0.js +0 -1
  313. package/build/index-e592a397.js +0 -113
  314. package/build/index-f41291af.js +0 -1
  315. package/build/index-feef2a5c.js +0 -1
  316. package/build/utils-033008de.js +0 -1
  317. /package/build/{BMI_BOYS.percentile.monthly-5039cbe3.js → BMI_BOYS.percentile.monthly-dd0787a4.js} +0 -0
  318. /package/build/{BMI_BOYS.percentile.weekly-9495ce98.js → BMI_BOYS.percentile.weekly-12100f6b.js} +0 -0
  319. /package/build/{BMI_BOYS.percentile.yearly-c5fb39a0.js → BMI_BOYS.percentile.yearly-ff515845.js} +0 -0
  320. /package/build/{BMI_BOYS.zscore.monthly-9a4cea14.js → BMI_BOYS.zscore.monthly-72928887.js} +0 -0
  321. /package/build/{BMI_BOYS.zscore.weekly-7c32068e.js → BMI_BOYS.zscore.weekly-7b027923.js} +0 -0
  322. /package/build/{BMI_BOYS.zscore.yearly-144c6f47.js → BMI_BOYS.zscore.yearly-3dadcbb1.js} +0 -0
  323. /package/build/{BMI_GIRLS.percentile.monthly-50f14162.js → BMI_GIRLS.percentile.monthly-d29eb1c7.js} +0 -0
  324. /package/build/{BMI_GIRLS.percentile.weekly-828a7a3c.js → BMI_GIRLS.percentile.weekly-88fef1af.js} +0 -0
  325. /package/build/{BMI_GIRLS.percentile.yearly-e0dfc677.js → BMI_GIRLS.percentile.yearly-c6ddbac7.js} +0 -0
  326. /package/build/{BMI_GIRLS.zscore.monthly-2b53c7d6.js → BMI_GIRLS.zscore.monthly-ab818a1f.js} +0 -0
  327. /package/build/{BMI_GIRLS.zscore.weekly-27499516.js → BMI_GIRLS.zscore.weekly-9003f380.js} +0 -0
  328. /package/build/{BMI_GIRLS.zscore.yearly-7123f1af.js → BMI_GIRLS.zscore.yearly-dfa059f1.js} +0 -0
  329. /package/build/{ChevronDown-55639416.js → ChevronDown-803fe42c.js} +0 -0
  330. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-0a76d9d7.js → HEAD CIRCUM_BOYS.percentile.monthly-77895287.js} +0 -0
  331. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-945f47d3.js → HEAD CIRCUM_BOYS.percentile.weekly-4ca7812f.js} +0 -0
  332. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-f57af2ae.js → HEAD CIRCUM_BOYS.percentile.yearly-433510d1.js} +0 -0
  333. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-bc56c4bc.js → HEAD CIRCUM_BOYS.zscore.monthly-bdf5b764.js} +0 -0
  334. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-7f3a6bf4.js → HEAD CIRCUM_BOYS.zscore.weekly-e862947f.js} +0 -0
  335. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c16d3ed0.js → HEAD CIRCUM_BOYS.zscore.yearly-7f9196e5.js} +0 -0
  336. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-270da9e9.js → HEAD CIRCUM_GIRLS.percentile.monthly-18256d90.js} +0 -0
  337. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-178d92ad.js → HEAD CIRCUM_GIRLS.percentile.weekly-cb70bbf1.js} +0 -0
  338. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-7e5c0d23.js → HEAD CIRCUM_GIRLS.percentile.yearly-40e80d68.js} +0 -0
  339. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-a1726c3b.js → HEAD CIRCUM_GIRLS.zscore.monthly-0de371a2.js} +0 -0
  340. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-954985ec.js → HEAD CIRCUM_GIRLS.zscore.weekly-b341ca75.js} +0 -0
  341. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-f31c008e.js → HEAD CIRCUM_GIRLS.zscore.yearly-15b5aea0.js} +0 -0
  342. /package/build/{HEIGHT_BOYS.percentile.monthly-922216c1.js → HEIGHT_BOYS.percentile.monthly-ba64a256.js} +0 -0
  343. /package/build/{HEIGHT_BOYS.percentile.weekly-0d4a1fea.js → HEIGHT_BOYS.percentile.weekly-5d10791e.js} +0 -0
  344. /package/build/{HEIGHT_BOYS.percentile.yearly-b705e72a.js → HEIGHT_BOYS.percentile.yearly-79ee40f2.js} +0 -0
  345. /package/build/{HEIGHT_BOYS.zscore.monthly-ffefb583.js → HEIGHT_BOYS.zscore.monthly-16d074a2.js} +0 -0
  346. /package/build/{HEIGHT_BOYS.zscore.weekly-88e4092e.js → HEIGHT_BOYS.zscore.weekly-ea3b3654.js} +0 -0
  347. /package/build/{HEIGHT_BOYS.zscore.yearly-6cfabca3.js → HEIGHT_BOYS.zscore.yearly-4129bbf0.js} +0 -0
  348. /package/build/{HEIGHT_GIRLS.percentile.monthly-0edd4cfd.js → HEIGHT_GIRLS.percentile.monthly-59fd5a10.js} +0 -0
  349. /package/build/{HEIGHT_GIRLS.percentile.weekly-2a021551.js → HEIGHT_GIRLS.percentile.weekly-0bc7ebe8.js} +0 -0
  350. /package/build/{HEIGHT_GIRLS.percentile.yearly-bd7e9a4e.js → HEIGHT_GIRLS.percentile.yearly-a0147cc9.js} +0 -0
  351. /package/build/{HEIGHT_GIRLS.zscore.monthly-d1e73e92.js → HEIGHT_GIRLS.zscore.monthly-838d01e7.js} +0 -0
  352. /package/build/{HEIGHT_GIRLS.zscore.weekly-98cf1211.js → HEIGHT_GIRLS.zscore.weekly-25eeeeb5.js} +0 -0
  353. /package/build/{HEIGHT_GIRLS.zscore.yearly-aac3a192.js → HEIGHT_GIRLS.zscore.yearly-5f97e1a7.js} +0 -0
  354. /package/build/{Subot-e8e32c73.js → Subot-4d83c672.js} +0 -0
  355. /package/build/{Visible-affee4b2.js → Visible-94602fb4.js} +0 -0
  356. /package/build/{WEIGHT_BOYS.percentile.monthly-0f24e0bd.js → WEIGHT_BOYS.percentile.monthly-853f5898.js} +0 -0
  357. /package/build/{WEIGHT_BOYS.percentile.weekly-fcbd46cd.js → WEIGHT_BOYS.percentile.weekly-96a24c93.js} +0 -0
  358. /package/build/{WEIGHT_BOYS.percentile.yearly-8814bc51.js → WEIGHT_BOYS.percentile.yearly-3f4d4db3.js} +0 -0
  359. /package/build/{WEIGHT_BOYS.zscore.monthly-94504c4c.js → WEIGHT_BOYS.zscore.monthly-f07cfbeb.js} +0 -0
  360. /package/build/{WEIGHT_BOYS.zscore.weekly-7b84049b.js → WEIGHT_BOYS.zscore.weekly-e6f99307.js} +0 -0
  361. /package/build/{WEIGHT_BOYS.zscore.yearly-201a7e94.js → WEIGHT_BOYS.zscore.yearly-70ff5ed4.js} +0 -0
  362. /package/build/{WEIGHT_GIRLS.percentile.monthly-33b66eaf.js → WEIGHT_GIRLS.percentile.monthly-88278a8d.js} +0 -0
  363. /package/build/{WEIGHT_GIRLS.percentile.weekly-eaa3585f.js → WEIGHT_GIRLS.percentile.weekly-8ac6a819.js} +0 -0
  364. /package/build/{WEIGHT_GIRLS.percentile.yearly-9f54928a.js → WEIGHT_GIRLS.percentile.yearly-08bf0d27.js} +0 -0
  365. /package/build/{WEIGHT_GIRLS.zscore.monthly-aa624e96.js → WEIGHT_GIRLS.zscore.monthly-9f8e6200.js} +0 -0
  366. /package/build/{WEIGHT_GIRLS.zscore.weekly-e8992dd6.js → WEIGHT_GIRLS.zscore.weekly-e927ee90.js} +0 -0
  367. /package/build/{WEIGHT_GIRLS.zscore.yearly-95ed71a9.js → WEIGHT_GIRLS.zscore.yearly-4c49dbd7.js} +0 -0
  368. /package/build/{animation-7e26c3b2.js → animation-d444dca5.js} +0 -0
  369. /package/build/{cookieHelper-66c3970b.js → cookieHelper-e8ab6752.js} +0 -0
  370. /package/build/esm/{BMI_BOYS.percentile.monthly-74935385.js → BMI_BOYS.percentile.monthly-a3fbe919.js} +0 -0
  371. /package/build/esm/{BMI_BOYS.percentile.weekly-f22d6723.js → BMI_BOYS.percentile.weekly-65d7d406.js} +0 -0
  372. /package/build/esm/{BMI_BOYS.percentile.yearly-caee8b43.js → BMI_BOYS.percentile.yearly-078fc39e.js} +0 -0
  373. /package/build/esm/{BMI_BOYS.zscore.monthly-9d366921.js → BMI_BOYS.zscore.monthly-3c7f5bcf.js} +0 -0
  374. /package/build/esm/{BMI_BOYS.zscore.weekly-745da98c.js → BMI_BOYS.zscore.weekly-4db584f9.js} +0 -0
  375. /package/build/esm/{BMI_BOYS.zscore.yearly-13814f73.js → BMI_BOYS.zscore.yearly-1263a326.js} +0 -0
  376. /package/build/esm/{BMI_GIRLS.percentile.monthly-406f20e7.js → BMI_GIRLS.percentile.monthly-c6f5e667.js} +0 -0
  377. /package/build/esm/{BMI_GIRLS.percentile.weekly-f46db61f.js → BMI_GIRLS.percentile.weekly-3798c60b.js} +0 -0
  378. /package/build/esm/{BMI_GIRLS.percentile.yearly-b74a31ee.js → BMI_GIRLS.percentile.yearly-c057d173.js} +0 -0
  379. /package/build/esm/{BMI_GIRLS.zscore.monthly-c36d7a27.js → BMI_GIRLS.zscore.monthly-2d3a4407.js} +0 -0
  380. /package/build/esm/{BMI_GIRLS.zscore.weekly-e7ddc75e.js → BMI_GIRLS.zscore.weekly-a597019e.js} +0 -0
  381. /package/build/esm/{BMI_GIRLS.zscore.yearly-8f193425.js → BMI_GIRLS.zscore.yearly-5c18e72b.js} +0 -0
  382. /package/build/esm/{ChevronDown-fc847d50.js → ChevronDown-5db2360e.js} +0 -0
  383. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-5240860a.js → HEAD CIRCUM_BOYS.percentile.monthly-67647508.js} +0 -0
  384. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-fe3568ef.js → HEAD CIRCUM_BOYS.percentile.weekly-3f3d11fd.js} +0 -0
  385. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9543563b.js → HEAD CIRCUM_BOYS.percentile.yearly-a5ebceab.js} +0 -0
  386. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-f13ea0d0.js → HEAD CIRCUM_BOYS.zscore.monthly-5f65d015.js} +0 -0
  387. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6cf1bf25.js → HEAD CIRCUM_BOYS.zscore.weekly-9646bd1d.js} +0 -0
  388. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-d2678162.js → HEAD CIRCUM_BOYS.zscore.yearly-1577e112.js} +0 -0
  389. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-16a73929.js → HEAD CIRCUM_GIRLS.percentile.monthly-2e1d63f0.js} +0 -0
  390. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2f4a97b7.js → HEAD CIRCUM_GIRLS.percentile.weekly-b5c14f75.js} +0 -0
  391. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5461d257.js → HEAD CIRCUM_GIRLS.percentile.yearly-a9a2297c.js} +0 -0
  392. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7b1ab028.js → HEAD CIRCUM_GIRLS.zscore.monthly-64322cce.js} +0 -0
  393. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-1f703257.js → HEAD CIRCUM_GIRLS.zscore.weekly-f0a4eb11.js} +0 -0
  394. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-5d71d3be.js → HEAD CIRCUM_GIRLS.zscore.yearly-9c16faaa.js} +0 -0
  395. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-4f09b10f.js → HEIGHT_BOYS.percentile.monthly-93967ab8.js} +0 -0
  396. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-327aab45.js → HEIGHT_BOYS.percentile.weekly-9a0371d2.js} +0 -0
  397. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c2558f78.js → HEIGHT_BOYS.percentile.yearly-bff57925.js} +0 -0
  398. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-d26b0b03.js → HEIGHT_BOYS.zscore.monthly-1c65337a.js} +0 -0
  399. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-aa7af4e9.js → HEIGHT_BOYS.zscore.weekly-5510c252.js} +0 -0
  400. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-bbb47e18.js → HEIGHT_BOYS.zscore.yearly-28ca01a2.js} +0 -0
  401. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-eaa9685d.js → HEIGHT_GIRLS.percentile.monthly-65712d49.js} +0 -0
  402. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f9da6de5.js → HEIGHT_GIRLS.percentile.weekly-0ed0c579.js} +0 -0
  403. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-c00643f4.js → HEIGHT_GIRLS.percentile.yearly-2ab13639.js} +0 -0
  404. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-1b8ba3b2.js → HEIGHT_GIRLS.zscore.monthly-66b36a42.js} +0 -0
  405. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-c02c9da0.js → HEIGHT_GIRLS.zscore.weekly-ef04b1d6.js} +0 -0
  406. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c30447fa.js → HEIGHT_GIRLS.zscore.yearly-bb536cbe.js} +0 -0
  407. /package/build/esm/{Subot-6bd4468b.js → Subot-ba94d06d.js} +0 -0
  408. /package/build/esm/{Visible-814b2902.js → Visible-a76046a0.js} +0 -0
  409. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-aa99bb64.js → WEIGHT_BOYS.percentile.monthly-77cabfa3.js} +0 -0
  410. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-eec17128.js → WEIGHT_BOYS.percentile.weekly-0a04e65e.js} +0 -0
  411. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-e29d5fdd.js → WEIGHT_BOYS.percentile.yearly-f882b053.js} +0 -0
  412. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-1c0cfc92.js → WEIGHT_BOYS.zscore.monthly-824c013e.js} +0 -0
  413. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7cf038a6.js → WEIGHT_BOYS.zscore.weekly-7c78e4a7.js} +0 -0
  414. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-4cd1a316.js → WEIGHT_BOYS.zscore.yearly-2608d242.js} +0 -0
  415. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-79ce414d.js → WEIGHT_GIRLS.percentile.monthly-246e4ff9.js} +0 -0
  416. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-4987d9d8.js → WEIGHT_GIRLS.percentile.weekly-5ec92162.js} +0 -0
  417. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-24f3984c.js → WEIGHT_GIRLS.percentile.yearly-3ed9ebc3.js} +0 -0
  418. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-864b043f.js → WEIGHT_GIRLS.zscore.monthly-f441af43.js} +0 -0
  419. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-883205ad.js → WEIGHT_GIRLS.zscore.weekly-b5754300.js} +0 -0
  420. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-052c6827.js → WEIGHT_GIRLS.zscore.yearly-3e1fc57f.js} +0 -0
  421. /package/build/esm/{animation-68eeaae2.js → animation-66a1c1ce.js} +0 -0
  422. /package/build/esm/{cookieHelper-43e1308f.js → cookieHelper-df4a2854.js} +0 -0
  423. /package/build/esm/{index-6d5ebc24.js → index-7b756a6d.js} +0 -0
  424. /package/build/esm/{index-25a3cef3.js → index-d5218a33.js} +0 -0
  425. /package/build/esm/{index-33c1509a.js → index-ef8d4339.js} +0 -0
  426. /package/build/esm/{isProduction-9f06dc5d.js → isProduction-19272325.js} +0 -0
  427. /package/build/esm/{localizeNumberFormat-e5a54945.js → localizeNumberFormat-e2010643.js} +0 -0
  428. /package/build/esm/{normalizeLink-1e106256.js → normalizeLink-1ae80c80.js} +0 -0
  429. /package/build/esm/{number-95c68b29.js → number-e275d874.js} +0 -0
  430. /package/build/esm/{paths-4ad3ca21.js → paths-9a48ab92.js} +0 -0
  431. /package/build/esm/{theme-80deef14.js → theme-c7fcc315.js} +0 -0
  432. /package/build/esm/{translationsContext-dac524e6.js → translationsContext-05acb0bb.js} +0 -0
  433. /package/build/esm/{tslib.es6-cea976a7.js → tslib.es6-54269969.js} +0 -0
  434. /package/build/esm/{types-15ecbe4e.js → types-e8b4798d.js} +0 -0
  435. /package/build/esm/{useIsInit-2c03a4ee.js → useIsInit-c48126a0.js} +0 -0
  436. /package/build/esm/{useOutsideClick-e6375b69.js → useOutsideClick-300879ed.js} +0 -0
  437. /package/build/esm/{useScrollbarSize-067a95bd.js → useScrollbarSize-5ee33322.js} +0 -0
  438. /package/build/esm/{useUniqueId-709622de.js → useUniqueId-dfbebe55.js} +0 -0
  439. /package/build/esm/{utils-0193d14e.js → utils-62658391.js} +0 -0
  440. /package/build/{index-198bff5e.js → index-23c49de5.js} +0 -0
  441. /package/build/{index-8e613759.js → index-88ab1d12.js} +0 -0
  442. /package/build/{index-20c9448d.js → index-c9cb5957.js} +0 -0
  443. /package/build/{isProduction-79e09f71.js → isProduction-b889d385.js} +0 -0
  444. /package/build/{localizeNumberFormat-b8f6648e.js → localizeNumberFormat-1a4c0880.js} +0 -0
  445. /package/build/{normalizeLink-36e3cc8b.js → normalizeLink-d3ed677e.js} +0 -0
  446. /package/build/{number-399852e3.js → number-5bba44ba.js} +0 -0
  447. /package/build/{paths-62ca2502.js → paths-ea19c0f8.js} +0 -0
  448. /package/build/{theme-9d8c0f15.js → theme-ee913b49.js} +0 -0
  449. /package/build/{translationsContext-9f3e5975.js → translationsContext-49f28d46.js} +0 -0
  450. /package/build/{tslib.es6-92473394.js → tslib.es6-74f26191.js} +0 -0
  451. /package/build/{types-211218df.js → types-262182f3.js} +0 -0
  452. /package/build/{useIsInit-8399d317.js → useIsInit-3e1beb6b.js} +0 -0
  453. /package/build/{useOutsideClick-ae164827.js → useOutsideClick-e9041b92.js} +0 -0
  454. /package/build/{useScrollbarSize-ce00006c.js → useScrollbarSize-3e190b0c.js} +0 -0
  455. /package/build/{useUniqueId-e6800dce.js → useUniqueId-642dc3a9.js} +0 -0
  456. /package/build/{utils-6602144b.js → utils-81e28888.js} +0 -0
package/build/subot.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Subot-e8e32c73.js"),i=require("./tslib.es6-92473394.js"),n=require("./index-377dcf63.js"),o=require("js-cookie"),a=require("fastdom"),l=require("fastdom/extensions/fastdom-promised"),r=require("string-format"),s=require("./utils-fa8ea45a.js"),d=require("uuid"),c=require("./isProduction-79e09f71.js"),u=require("hex-rgb"),m=require("classnames"),p=require("./index-20c9448d.js"),f=require("./index-b25871e4.js"),v=require("framer-motion"),g=require("./utils-6602144b.js"),b=require("styled-components"),h=require("./index-e592a397.js"),_=require("remarkable"),y=require("react-intersection-observer"),E=require("@mantine/core"),x=require("./index-2b5f13e9.js"),N=require("./index-4e0c886a.js"),T=require("dayjs"),w=require("dayjs/plugin/isSameOrBefore"),I=require("./index-feef2a5c.js"),S=require("./theme-9d8c0f15.js");require("@mantine/dates"),require("./translationsContext-9f3e5975.js"),require("@mantine/hooks");var O=require("lodash/isEmpty"),k=require("react-hook-form"),C=require("react-phone-number-input"),M=require("@react-google-maps/api"),A=require("./usePlacesAutocomplete-e636363d.js"),P=require("./index-3f66b676.js"),R=require("./index-09af54bf.js");function U(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("date-fns/locale"),require("./cookieHelper-66c3970b.js"),require("slugify"),require("./useTranslations-1da09077.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("@hhgtech/icons/other"),require("@mantine/carousel"),require("./useUniqueId-e6800dce.js"),require("@hhgtech/icons/core"),require("./WhatsApp-59bf48e6.js");var B=U(e),L=U(o),j=U(a),D=U(l),q=U(r),F=U(u),$=U(m),G=U(b),z=U(T),H=U(w),Y=U(O),V=U(C);const Q=j.default.extend(D.default),K={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},W={cached:{},clearCached:e=>{console.log(W.cached),Object.keys(W.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),W.cached[e]=void 0}))},withCached:(e,t)=>i.__awaiter(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===W.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof W.cached[e]&&(t(W.cached[e]),clearInterval(n))}),100)}));if("object"==typeof W.cached[e])return W.cached[e];W.cached[e]="waitingTheFirstResponse";try{const i=yield t();return W.cached[e]=i,setTimeout((()=>{W.cached[e]=void 0}),18e5),i}catch(t){return W.cached[e]=void 0,Promise.reject(t)}}))},X=(e,t)=>{const{subotApiUrl:i}=null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+q.default(e,Object.assign({},t))},J=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Z=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},ee=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield W.withCached("SubotInlineFirstNode/"+e,(()=>i.__awaiter(void 0,void 0,void 0,(function*(){const t=yield s.callApi(X(K.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Z(t),t}))))}catch(e){return null}})),te=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),ie=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),ne=["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",...ne],ae=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(oe.includes(i))if(ne.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),le=e=>[{id:d.v4(),label:JSON.stringify({title:"",description:""}),type:t.NodeIntentType.SSO_INTENT,url:""},{id:d.v4(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:t.NodeIntentType.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:d.v4(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:t.NodeIntentType.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:d.v4(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:t.NodeIntentType.SSO_INTENT,url:"/images/subot/shield.svg"}];function re(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const se=e=>s.cookie.parse(e||"")["hhg-id"]||L.default.get("hhg-id")||"",de=e=>{if(e)return L.default.set("hhg-id",e),e;const t=se();if(t)return t;const i=d.v4();return L.default.set("hhg-id",i),i},ce=e=>{const t=s.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},ue=e=>{const t=s.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},me=d.v4(),pe=()=>me,fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${c.isProduction?"":"discover."}${n.domainLocales[e]}`,ve=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ge=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},be=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},he=(e,i,n,o)=>{const a=be(e[0]);if(!i)return{};const l=e.findIndex((e=>e.id==i)),r=e.reduce(((e,r,s)=>{var d,c;if(s>l)return e;const u=r,m=n&&u.id===i?{action_id:n}:u._message;let p=0;const f=null===(d=u.actions)||void 0===d?void 0:d.find((e=>e.id===(null==m?void 0:m.action_id)));p+=(null==f?void 0:f.score)||0;const v=void 0!==a[u.id],g=n&&u.id===i?o:null==m?void 0:m.form_submit_meta;if(v&&u.type===t.NodeType.FORM&&g){const e=a[u.id].action_id,t=null===(c=u.actions)||void 0===c?void 0:c.find((t=>t.id===e)),i=null==t?void 0:t.key,n=g.find((e=>e.key===i&&"number"===e.control));if(a[u.id].number&&["+","-","x","/"].includes(a[u.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=a[u.id].operator,i=a[u.id].number;let o=0;"+"===t&&(o=e+i),"-"===t&&(o=e-i),"x"===t&&(o=e*i),"/"===t&&(o=e/i),isNaN(o)||(p+=o)}}return e+p}),0);return{current_total_dynamic_score:r}},_e=(e,i)=>{const n=be(i[0]);if(0===Object.keys(n).length)return e;const o=i.filter((e=>e.type===t.NodeType.FORM));return Object.keys(n).forEach((t=>{var i,a,l;const r=o.find((e=>e.id===t)),s=null===(i=null==r?void 0:r.actions)||void 0===i?void 0:i.find((e=>{var i;return e.id===(null===(i=n[t])||void 0===i?void 0:i.action_id)})),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(n[t].number&&["+","-","x","/"].includes(n[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const i=Number(c.value),o=n[t].operator,a=n[t].number;let l=0;if("+"===o&&(l=i+a),"-"===o&&(l=i-a),"x"===o&&(l=i*a),"/"===o&&(l=i/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},ye="other",Ee="stateInlineSSO",xe=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Ne=e=>{const i=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,i)=>{var n,o,a,l,r,s,d,c,u,m,p,f,v,g,b,h,_,y,E,x,N;if(i.actions&&(null===(n=i._message)||void 0===n?void 0:n.action_id)&&(null===(o=i._message)||void 0===o?void 0:o.action_value)){const n=i._message.action_value;if(i.type===t.NodeType.FORM){const t=["address","province","district","commune"],n=((null===(a=i._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>!t.includes(e.control))),o=((null===(l=i._message)||void 0===l?void 0:l.form_submit_meta)||[]).filter((e=>t.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(r=o.address)||void 0===r?void 0:r.value,null===(s=o.commune)||void 0===s?void 0:s.value,null===(d=o.district)||void 0===d?void 0:d.value,null===(c=o.province)||void 0===c?void 0:c.value].filter(Boolean).join(", ");p&&o.address?e.push({attribute:o.address.key,value:p,label_question:(null===(m=null===(u=i.intents)||void 0===u?void 0:u[0])||void 0===m?void 0:m.label)||""}):n.forEach((t=>{var n,o;e.push({attribute:t.key,value:t.value,label_question:(null===(o=null===(n=i.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(i.type===t.NodeType.TEXT)if(i.is_multi_select){const t=Object.keys(i._message.selected_actions||{}),n=i.actions.filter((e=>e.label&&t.includes(e.id))).map((e=>e.label));t.length&&e.push({attribute:i.actions[0].key||"",value:n,label_question:(null===(f=null===(p=i.intents)||void 0===p?void 0:p[0])||void 0===f?void 0:f.label)||""})}else{const o=i._message.action_id,a=i.actions.find((e=>e.id===o)),l=null==a?void 0:a.label,r=null===(b=null===(g=null===(v=i._message)||void 0===v?void 0:v.form_submit_meta)||void 0===g?void 0:g.find((e=>e.key===ye)))||void 0===b?void 0:b.value,s=(null==a?void 0:a.type)===t.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;l&&o&&e.push({attribute:n,value:s&&r?r:l,label_question:(null===(_=null===(h=i.intents)||void 0===h?void 0:h[0])||void 0===_?void 0:_.label)||""})}if(i.type===t.NodeType.POLL){const t=i.id,n=(null===(E=null===(y=i._message)||void 0===y?void 0:y.current_polls)||void 0===E?void 0:E[t])||[],o=i.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:i.actions[0].key||"",value:o,label_question:(null===(N=null===(x=i.intents)||void 0===x?void 0:x[0])||void 0===N?void 0:N.label)||""})}}return e}),[]);return i},Te=(e,i)=>{var n;try{if("ACUVUE"!==(null===(n=i.extra_settings)||void 0===n?void 0:n.subot_type))return;let o="",a="",l="",r=ue().email;if((e||[]).forEach((e=>{var i,n,s;const d=e._message;if(!d)return;const c=null===(i=e.actions)||void 0===i?void 0:i.find((e=>e.id===d.action_id));if("voucher_product"===d.action_value?o=(null==c?void 0:c.label)||"":"voucher_color"===d.action_value&&(a=(null==c?void 0:c.label)||""),e.type===t.NodeType.FORM){const e=null===(n=d.form_submit_meta)||void 0===n?void 0:n.find((e=>"voucher_size"===e.key)),t=null===(s=d.form_submit_meta)||void 0===s?void 0:s.find((e=>"email"===e.control));e&&(l=e.value),t&&(r=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===o&&r)return{email:r,voucherName:o};if(o&&a&&l&&r)return{email:r,voucherName:`${o}|${a}|${l}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},we=({nodes:e,activeId:o,params:a,accountIdFromLogs:l})=>i.__awaiter(void 0,void 0,void 0,(function*(){try{let i="in_progress";const r=e[e.length-1];(null==r?void 0:r.type)&&t.NodeFinalTypes.includes(r.type)&&(i="complete");const d=e.slice(1),c={activeId:o,params:a,nodes:d,tracking:Object.assign(Object.assign({},xe()),{full_url:window.location.href}),unifiedAnswers:Ne(d),voucherAnswers:Te(d,e[0])},u={cookie_id:de(),account_id:l||ce()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(c),status:i,type:"inline",market:n.MAP_DOMAIN_BY_LOCALE[s.locale]};yield s.callApi(X(K.POST_SUBOT_CREATE_LOG),"POST",{data:u})}catch(e){}})),Ie=(e,t)=>{try{const[i,n,o]=F.default(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},Se=e.createContext({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),Oe=({children:o,articleLink:a,subotId:l,isFullContainer:r,bgColor:d,primaryColor:c,textColor:u,textButtonColor:m,bgContentColor:p,bgImgFullContainer:f,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:_}}=e.useContext(s.TogetherComponentGlobalContext),y=e.useRef(null),E=e.useRef(null),[x,N]=e.useState(!0),[T,w]=e.useState(""),[I,S]=e.useState([]),[O,k]=e.useState(!1),[C,M]=e.useState({});e.useEffect((()=>{const e=d||"#e3f2ff",t=c||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(Q.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",Ie(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",Ie(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",Ie(t,.3)||"#bcdeff"),u&&o.style.setProperty("--subot-inline-text-color",u),m&&o.style.setProperty("--subot-inline-text-button-color",m),p&&o.style.setProperty("--subot-inline-bg-content-color",p)})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[d,c,u,m,p]);const A=e.useCallback((()=>{const e=window.gaData,t=window.location.origin+n.basePath+("tl-PH"===(null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.locale)?a.replace("fil/",""):a),i={bot_id:l,account_id:ce()||null,action_id:"",action_value:"",cookie_id:de(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:L.default.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:pe()};return ae(i,null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.router.query)}),[]),P=e.useCallback((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),R=e.useCallback(((e,n=!0)=>i.__awaiter(void 0,void 0,void 0,(function*(){var o;if(!e||!e.url||!e.bot_id)return;let a="",l=[];N(!0);const r=yield ee(e.bot_id);1===(null==r?void 0:r._status)&&(a=null==r?void 0:r._data.id.toString(),l.push(null==r?void 0:r._data,null==r?void 0:r._data.first_node));const d=n?yield(c=l[0],i.__awaiter(void 0,void 0,void 0,(function*(){var e,t;try{if(!c)return null;const i=yield s.callApi(X(K.GET_SUBOT_LOG,{botId:c.id,cookieId:de(),accountId:ce()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[c,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:ce()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var c;d&&(l=d.nodes,a=d.activeId,E.current=(null===(o=d.params)||void 0===o?void 0:o.account_id)||0);const u=((e,{getParams:i})=>{try{if(!ce())return null;const n=JSON.parse(localStorage.getItem(Ee)||""),o=18e5;return(null==n?void 0:n.botId)===e&&n.listNodes&&n.activeId&&n.createdAt+o>Date.now()&&(localStorage.removeItem(Ee),n.listNodes.slice(-1)[0].position===t.NodePosition.SSO)?{listNodes:n.listNodes,activeId:n.activeId,params:Object.assign(Object.assign(Object.assign({},i()),n.params),{account_id:ce()||null,cookie_id:de(n.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:A});if(u&&u.params.action_id&&u.params.action_value){const e=yield J(u.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(a=null==e?void 0:e._data.node.id,l=u.listNodes,l[l.length-1]=null==e?void 0:e._data.node,we({nodes:l,activeId:a,params:u.params,accountIdFromLogs:E.current}),setTimeout((()=>{P()}),100))}const m=(null==u?void 0:u.params)||(null==d?void 0:d.params)||e,[p,f]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(l[0],a,l);N(!1),w(p),S(f),M(Object.assign(Object.assign({},e),m))}))),[]),U=e.useCallback(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${l}"]`);i&&i.click();let n=T,o=[...I];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(N(!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((()=>{S(o),w(n),N(!1),we({nodes:o,activeId:n,params:C,accountIdFromLogs:E.current})}),250)}),[I,T]),j=e.useCallback((e=>i.__awaiter(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),he(I,T,e.action_id)),n=yield J(t);if(N(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:o}=e,a=i.__rest(e,["node"]),l=Object.assign(Object.assign({},o),{_message:Object.assign(Object.assign({},a),{node_id:o.id})});return void(-1!==I.findIndex((e=>e.id===l.id))?U(l):U(l,t))}_({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=I.find((e=>e.id==T));t&&t.hasOwnProperty("first_node")&&(w(I[1].id.toString()),we({nodes:I,activeId:I[1].id.toString(),params:A(),accountIdFromLogs:E.current}))}))),[U,I]),D=e.useCallback((()=>{const e=I.findIndex((({id:e})=>e==T));if(e&&-1!==e&&e>1){const t=I[e-1];w(t.id),we({nodes:I,activeId:t.id,params:C,accountIdFromLogs:E.current})}}),[I,T]),q=e.useCallback((()=>{const e=A();R(e,!1);const t=I[0],i=I[1];we({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[A,R,I]),F=e.useCallback((e=>{S((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==T?t.map((t=>{const i=t;return i.id===T?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[T]);e.useEffect((()=>{if(L.default.get(n.GA_TOKEN_COOKIE)){const e=A();R(e)}else re({condition:()=>Boolean(L.default.get(n.GA_TOKEN_COOKIE)),finished:()=>{const e=A();R(e)}})}),[]),e.useEffect((()=>{if(!I.length)return;I.find((e=>e.id==T))&&T||w(l+"")}),[T,I]);const $=e.useMemo((()=>({activeId:T,params:C,listNodes:I,loading:x,setLoading:N,getParams:A,onNext:j,onPrev:D,onSubmit:U,onStartOver:q,onChange:F,isShowFooter:O,setIsShowFooter:k,isFullContainer:r,bgImgFullContainer:f,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[T,j,D,U,F,q,O,C,I,x,N,A,r,v,g,b,f]);return I.length?B.default.createElement(Se.Provider,{value:$},B.default.createElement("div",{ref:y},o)):null},ke=e=>B.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),B.default.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),Ce="480px",Me=G.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Subot-4d83c672.js"),i=require("./tslib.es6-74f26191.js"),n=require("./index-33e990e9.js"),o=require("js-cookie"),a=require("fastdom"),l=require("fastdom/extensions/fastdom-promised"),r=require("string-format"),s=require("./utils-ed46648c.js"),d=require("uuid"),c=require("./isProduction-b889d385.js"),u=require("hex-rgb"),m=require("classnames"),p=require("./index-c9cb5957.js"),f=require("./index-eca051c5.js"),v=require("framer-motion"),g=require("./utils-81e28888.js"),b=require("styled-components"),h=require("./index-1de21188.js"),_=require("remarkable"),y=require("react-intersection-observer"),E=require("@mantine/core"),x=require("./index-5eb51860.js"),N=require("./index-9c9a2ef3.js"),T=require("dayjs"),w=require("dayjs/plugin/isSameOrBefore"),I=require("./Plus-04194182.js"),S=require("./theme-ee913b49.js");require("@mantine/dates"),require("./translationsContext-49f28d46.js"),require("@mantine/hooks");var O=require("lodash/isEmpty"),k=require("react-hook-form"),C=require("react-phone-number-input"),M=require("@react-google-maps/api"),A=require("./usePlacesAutocomplete-83af3ee0.js"),P=require("./index-faddb766.js"),R=require("./index-3c68c5e4.js");function U(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("date-fns/locale"),require("./cookieHelper-e8ab6752.js"),require("slugify"),require("./useTranslations-17f45aff.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("@mantine/carousel"),require("./useUniqueId-642dc3a9.js"),require("./WhatsApp-7fe744bc.js");var B=U(e),L=U(o),j=U(a),D=U(l),q=U(r),F=U(u),$=U(m),G=U(b),z=U(T),H=U(w),Y=U(O),V=U(C);const Q=j.default.extend(D.default),K={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},W={cached:{},clearCached:e=>{console.log(W.cached),Object.keys(W.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),W.cached[e]=void 0}))},withCached:(e,t)=>i.__awaiter(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===W.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof W.cached[e]&&(t(W.cached[e]),clearInterval(n))}),100)}));if("object"==typeof W.cached[e])return W.cached[e];W.cached[e]="waitingTheFirstResponse";try{const i=yield t();return W.cached[e]=i,setTimeout((()=>{W.cached[e]=void 0}),18e5),i}catch(t){return W.cached[e]=void 0,Promise.reject(t)}}))},X=(e,t)=>{const{subotApiUrl:i}=null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+q.default(e,Object.assign({},t))},J=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Z=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},ee=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield W.withCached("SubotInlineFirstNode/"+e,(()=>i.__awaiter(void 0,void 0,void 0,(function*(){const t=yield s.callApi(X(K.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Z(t),t}))))}catch(e){return null}})),te=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),ie=e=>i.__awaiter(void 0,void 0,void 0,(function*(){try{return yield s.callApi(X(K.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),ne=["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",...ne],ae=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(oe.includes(i))if(ne.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),le=e=>[{id:d.v4(),label:JSON.stringify({title:"",description:""}),type:t.NodeIntentType.SSO_INTENT,url:""},{id:d.v4(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:t.NodeIntentType.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:d.v4(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:t.NodeIntentType.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:d.v4(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:t.NodeIntentType.SSO_INTENT,url:"/images/subot/shield.svg"}];function re(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const se=e=>s.cookie.parse(e||"")["hhg-id"]||L.default.get("hhg-id")||"",de=e=>{if(e)return L.default.set("hhg-id",e),e;const t=se();if(t)return t;const i=d.v4();return L.default.set("hhg-id",i),i},ce=e=>{const t=s.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},ue=e=>{const t=s.cookie.parse(e||"")[n.BEARER_TOKEN_COOKIE]||L.default.get(n.BEARER_TOKEN_COOKIE)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},me=d.v4(),pe=()=>me,fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${c.isProduction?"":"discover."}${n.domainLocales[e]}`,ve=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ge=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},be=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},he=(e,i,n,o)=>{const a=be(e[0]);if(!i)return{};const l=e.findIndex((e=>e.id==i)),r=e.reduce(((e,r,s)=>{var d,c;if(s>l)return e;const u=r,m=n&&u.id===i?{action_id:n}:u._message;let p=0;const f=null===(d=u.actions)||void 0===d?void 0:d.find((e=>e.id===(null==m?void 0:m.action_id)));p+=(null==f?void 0:f.score)||0;const v=void 0!==a[u.id],g=n&&u.id===i?o:null==m?void 0:m.form_submit_meta;if(v&&u.type===t.NodeType.FORM&&g){const e=a[u.id].action_id,t=null===(c=u.actions)||void 0===c?void 0:c.find((t=>t.id===e)),i=null==t?void 0:t.key,n=g.find((e=>e.key===i&&"number"===e.control));if(a[u.id].number&&["+","-","x","/"].includes(a[u.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=a[u.id].operator,i=a[u.id].number;let o=0;"+"===t&&(o=e+i),"-"===t&&(o=e-i),"x"===t&&(o=e*i),"/"===t&&(o=e/i),isNaN(o)||(p+=o)}}return e+p}),0);return{current_total_dynamic_score:r}},_e=(e,i)=>{const n=be(i[0]);if(0===Object.keys(n).length)return e;const o=i.filter((e=>e.type===t.NodeType.FORM));return Object.keys(n).forEach((t=>{var i,a,l;const r=o.find((e=>e.id===t)),s=null===(i=null==r?void 0:r.actions)||void 0===i?void 0:i.find((e=>{var i;return e.id===(null===(i=n[t])||void 0===i?void 0:i.action_id)})),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(n[t].number&&["+","-","x","/"].includes(n[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const i=Number(c.value),o=n[t].operator,a=n[t].number;let l=0;if("+"===o&&(l=i+a),"-"===o&&(l=i-a),"x"===o&&(l=i*a),"/"===o&&(l=i/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},ye="other",Ee="stateInlineSSO",xe=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Ne=e=>{const i=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,i)=>{var n,o,a,l,r,s,d,c,u,m,p,f,v,g,b,h,_,y,E,x,N;if(i.actions&&(null===(n=i._message)||void 0===n?void 0:n.action_id)&&(null===(o=i._message)||void 0===o?void 0:o.action_value)){const n=i._message.action_value;if(i.type===t.NodeType.FORM){const t=["address","province","district","commune"],n=((null===(a=i._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>!t.includes(e.control))),o=((null===(l=i._message)||void 0===l?void 0:l.form_submit_meta)||[]).filter((e=>t.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(r=o.address)||void 0===r?void 0:r.value,null===(s=o.commune)||void 0===s?void 0:s.value,null===(d=o.district)||void 0===d?void 0:d.value,null===(c=o.province)||void 0===c?void 0:c.value].filter(Boolean).join(", ");p&&o.address?e.push({attribute:o.address.key,value:p,label_question:(null===(m=null===(u=i.intents)||void 0===u?void 0:u[0])||void 0===m?void 0:m.label)||""}):n.forEach((t=>{var n,o;e.push({attribute:t.key,value:t.value,label_question:(null===(o=null===(n=i.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(i.type===t.NodeType.TEXT)if(i.is_multi_select){const t=Object.keys(i._message.selected_actions||{}),n=i.actions.filter((e=>e.label&&t.includes(e.id))).map((e=>e.label));t.length&&e.push({attribute:i.actions[0].key||"",value:n,label_question:(null===(f=null===(p=i.intents)||void 0===p?void 0:p[0])||void 0===f?void 0:f.label)||""})}else{const o=i._message.action_id,a=i.actions.find((e=>e.id===o)),l=null==a?void 0:a.label,r=null===(b=null===(g=null===(v=i._message)||void 0===v?void 0:v.form_submit_meta)||void 0===g?void 0:g.find((e=>e.key===ye)))||void 0===b?void 0:b.value,s=(null==a?void 0:a.type)===t.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;l&&o&&e.push({attribute:n,value:s&&r?r:l,label_question:(null===(_=null===(h=i.intents)||void 0===h?void 0:h[0])||void 0===_?void 0:_.label)||""})}if(i.type===t.NodeType.POLL){const t=i.id,n=(null===(E=null===(y=i._message)||void 0===y?void 0:y.current_polls)||void 0===E?void 0:E[t])||[],o=i.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:i.actions[0].key||"",value:o,label_question:(null===(N=null===(x=i.intents)||void 0===x?void 0:x[0])||void 0===N?void 0:N.label)||""})}}return e}),[]);return i},Te=(e,i)=>{var n;try{if("ACUVUE"!==(null===(n=i.extra_settings)||void 0===n?void 0:n.subot_type))return;let o="",a="",l="",r=ue().email;if((e||[]).forEach((e=>{var i,n,s;const d=e._message;if(!d)return;const c=null===(i=e.actions)||void 0===i?void 0:i.find((e=>e.id===d.action_id));if("voucher_product"===d.action_value?o=(null==c?void 0:c.label)||"":"voucher_color"===d.action_value&&(a=(null==c?void 0:c.label)||""),e.type===t.NodeType.FORM){const e=null===(n=d.form_submit_meta)||void 0===n?void 0:n.find((e=>"voucher_size"===e.key)),t=null===(s=d.form_submit_meta)||void 0===s?void 0:s.find((e=>"email"===e.control));e&&(l=e.value),t&&(r=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===o&&r)return{email:r,voucherName:o};if(o&&a&&l&&r)return{email:r,voucherName:`${o}|${a}|${l}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},we=({nodes:e,activeId:o,params:a,accountIdFromLogs:l})=>i.__awaiter(void 0,void 0,void 0,(function*(){try{let i="in_progress";const r=e[e.length-1];(null==r?void 0:r.type)&&t.NodeFinalTypes.includes(r.type)&&(i="complete");const d=e.slice(1),c={activeId:o,params:a,nodes:d,tracking:Object.assign(Object.assign({},xe()),{full_url:window.location.href}),unifiedAnswers:Ne(d),voucherAnswers:Te(d,e[0])},u={cookie_id:de(),account_id:l||ce()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(c),status:i,type:"inline",market:n.MAP_DOMAIN_BY_LOCALE[s.locale]};yield s.callApi(X(K.POST_SUBOT_CREATE_LOG),"POST",{data:u})}catch(e){}})),Ie=(e,t)=>{try{const[i,n,o]=F.default(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},Se=e.createContext({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),Oe=({children:o,articleLink:a,subotId:l,isFullContainer:r,bgColor:d,primaryColor:c,textColor:u,textButtonColor:m,bgContentColor:p,bgImgFullContainer:f,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:_}}=e.useContext(s.TogetherComponentGlobalContext),y=e.useRef(null),E=e.useRef(null),[x,N]=e.useState(!0),[T,w]=e.useState(""),[I,S]=e.useState([]),[O,k]=e.useState(!1),[C,M]=e.useState({});e.useEffect((()=>{const e=d||"#e3f2ff",t=c||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(Q.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",Ie(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",Ie(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",Ie(t,.3)||"#bcdeff"),u&&o.style.setProperty("--subot-inline-text-color",u),m&&o.style.setProperty("--subot-inline-text-button-color",m),p&&o.style.setProperty("--subot-inline-bg-content-color",p)})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[d,c,u,m,p]);const A=e.useCallback((()=>{const e=window.gaData,t=window.location.origin+n.basePath+("tl-PH"===(null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.locale)?a.replace("fil/",""):a),i={bot_id:l,account_id:ce()||null,action_id:"",action_value:"",cookie_id:de(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:L.default.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:pe()};return ae(i,null===s.GlobalData||void 0===s.GlobalData?void 0:s.GlobalData.router.query)}),[]),P=e.useCallback((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),R=e.useCallback(((e,n=!0)=>i.__awaiter(void 0,void 0,void 0,(function*(){var o;if(!e||!e.url||!e.bot_id)return;let a="",l=[];N(!0);const r=yield ee(e.bot_id);1===(null==r?void 0:r._status)&&(a=null==r?void 0:r._data.id.toString(),l.push(null==r?void 0:r._data,null==r?void 0:r._data.first_node));const d=n?yield(c=l[0],i.__awaiter(void 0,void 0,void 0,(function*(){var e,t;try{if(!c)return null;const i=yield s.callApi(X(K.GET_SUBOT_LOG,{botId:c.id,cookieId:de(),accountId:ce()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[c,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:ce()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var c;d&&(l=d.nodes,a=d.activeId,E.current=(null===(o=d.params)||void 0===o?void 0:o.account_id)||0);const u=((e,{getParams:i})=>{try{if(!ce())return null;const n=JSON.parse(localStorage.getItem(Ee)||""),o=18e5;return(null==n?void 0:n.botId)===e&&n.listNodes&&n.activeId&&n.createdAt+o>Date.now()&&(localStorage.removeItem(Ee),n.listNodes.slice(-1)[0].position===t.NodePosition.SSO)?{listNodes:n.listNodes,activeId:n.activeId,params:Object.assign(Object.assign(Object.assign({},i()),n.params),{account_id:ce()||null,cookie_id:de(n.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:A});if(u&&u.params.action_id&&u.params.action_value){const e=yield J(u.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(a=null==e?void 0:e._data.node.id,l=u.listNodes,l[l.length-1]=null==e?void 0:e._data.node,we({nodes:l,activeId:a,params:u.params,accountIdFromLogs:E.current}),setTimeout((()=>{P()}),100))}const m=(null==u?void 0:u.params)||(null==d?void 0:d.params)||e,[p,f]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(l[0],a,l);N(!1),w(p),S(f),M(Object.assign(Object.assign({},e),m))}))),[]),U=e.useCallback(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${l}"]`);i&&i.click();let n=T,o=[...I];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(N(!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((()=>{S(o),w(n),N(!1),we({nodes:o,activeId:n,params:C,accountIdFromLogs:E.current})}),250)}),[I,T]),j=e.useCallback((e=>i.__awaiter(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),he(I,T,e.action_id)),n=yield J(t);if(N(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:o}=e,a=i.__rest(e,["node"]),l=Object.assign(Object.assign({},o),{_message:Object.assign(Object.assign({},a),{node_id:o.id})});return void(-1!==I.findIndex((e=>e.id===l.id))?U(l):U(l,t))}_({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=I.find((e=>e.id==T));t&&t.hasOwnProperty("first_node")&&(w(I[1].id.toString()),we({nodes:I,activeId:I[1].id.toString(),params:A(),accountIdFromLogs:E.current}))}))),[U,I]),D=e.useCallback((()=>{const e=I.findIndex((({id:e})=>e==T));if(e&&-1!==e&&e>1){const t=I[e-1];w(t.id),we({nodes:I,activeId:t.id,params:C,accountIdFromLogs:E.current})}}),[I,T]),q=e.useCallback((()=>{const e=A();R(e,!1);const t=I[0],i=I[1];we({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[A,R,I]),F=e.useCallback((e=>{S((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==T?t.map((t=>{const i=t;return i.id===T?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[T]);e.useEffect((()=>{if(L.default.get(n.GA_TOKEN_COOKIE)){const e=A();R(e)}else re({condition:()=>Boolean(L.default.get(n.GA_TOKEN_COOKIE)),finished:()=>{const e=A();R(e)}})}),[]),e.useEffect((()=>{if(!I.length)return;I.find((e=>e.id==T))&&T||w(l+"")}),[T,I]);const $=e.useMemo((()=>({activeId:T,params:C,listNodes:I,loading:x,setLoading:N,getParams:A,onNext:j,onPrev:D,onSubmit:U,onStartOver:q,onChange:F,isShowFooter:O,setIsShowFooter:k,isFullContainer:r,bgImgFullContainer:f,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[T,j,D,U,F,q,O,C,I,x,N,A,r,v,g,b,f]);return I.length?B.default.createElement(Se.Provider,{value:$},B.default.createElement("div",{ref:y},o)):null},ke=e=>B.default.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),B.default.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),Ce="480px",Me=G.default.div`
2
2
  position: relative;
3
3
 
4
4
  .si-inline-revamp-container {
package/build/together.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-28aaffcf.js"),r=require("./index-ef615786.js"),t=require("./utils-fa8ea45a.js");require("react"),require("./index-feef2a5c.js"),require("./tslib.es6-92473394.js"),require("@mantine/core"),require("./translationsContext-9f3e5975.js"),require("string-format"),require("@hhgtech/icons/other"),require("./index-3f66b676.js"),require("./theme-9d8c0f15.js"),require("styled-components"),require("./useTranslations-1da09077.js"),require("innertext"),require("./index-e592a397.js"),require("@mantine/hooks"),require("./index-2b5f13e9.js"),require("./index-377dcf63.js"),require("date-fns/locale"),require("./Subot-e8e32c73.js"),require("./isProduction-79e09f71.js"),require("dayjs"),require("./utils-6602144b.js"),require("@mantine/carousel"),require("classnames"),require("./useUniqueId-e6800dce.js"),require("@hhgtech/icons/core"),require("@mantine/dates"),require("./index-87a97765.js"),require("./index.styles-7d8d7d8d.js"),require("./constants-39ce5af1.js"),require("./animation-7e26c3b2.js"),require("react-keyed-flatten-children"),require("./paths-62ca2502.js"),require("./index-37f69418.js"),require("lodash/debounce"),require("react-contenteditable"),require("./index-09af54bf.js"),require("./index-a4d471a9.js"),require("./cookieHelper-66c3970b.js"),require("react-dom"),require("./index-4e0c886a.js"),require("./WhatsApp-59bf48e6.js"),require("./number-399852e3.js"),require("date-fns"),require("dayjs/plugin/relativeTime"),require("./index-f41291af.js"),require("./routing-9856aab9.js"),require("./utils-e74f7231.js"),require("./index.styled-0ee163ab.js"),require("./index-198bff5e.js"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-7ca520e1.js"),r=require("./index-ecc725c8.js"),t=require("./utils-ed46648c.js");require("react"),require("./Plus-04194182.js"),require("./tslib.es6-74f26191.js"),require("@mantine/core"),require("./theme-ee913b49.js"),require("./translationsContext-49f28d46.js"),require("string-format"),require("./index-faddb766.js"),require("styled-components"),require("./useTranslations-17f45aff.js"),require("innertext"),require("./index-9c9a2ef3.js"),require("./WhatsApp-7fe744bc.js"),require("./useUniqueId-642dc3a9.js"),require("./index-1de21188.js"),require("@mantine/hooks"),require("./index-5eb51860.js"),require("./index-33e990e9.js"),require("date-fns/locale"),require("./Subot-4d83c672.js"),require("./isProduction-b889d385.js"),require("dayjs"),require("./utils-81e28888.js"),require("@mantine/carousel"),require("classnames"),require("@mantine/dates"),require("./index-4dc83419.js"),require("./index.styles-e0843712.js"),require("./constants-bcb62c25.js"),require("./animation-d444dca5.js"),require("react-keyed-flatten-children"),require("./paths-ea19c0f8.js"),require("./index-7d5dd9db.js"),require("lodash/debounce"),require("react-contenteditable"),require("./index-3c68c5e4.js"),require("./index-fbed8d8d.js"),require("./cookieHelper-e8ab6752.js"),require("react-dom"),require("./number-5bba44ba.js"),require("date-fns"),require("dayjs/plugin/relativeTime"),require("./index-d75b1e7c.js"),require("./routing-c9bedd73.js"),require("./utils-e6e89802.js"),require("./index.styled-e54e7b0d.js"),require("./index-23c49de5.js"),require("slugify"),exports.CardAuthor=e.CardAuthor,exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ProfileDetail=e.ProfileDetail,exports.ProfileDetailModal=e.ProfileDetailModal,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SkipQuestionOfExpertBtn=e.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=e.SocialLinkPreview,exports.SourceList=e.SourceList,exports.SubmitReportForm=e.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return e.TabName}}),exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.VerifiedTag=e.VerifiedTag,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants;
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("./tslib.es6-92473394.js"),t=require("react"),a=require("./useTranslations-1da09077.js"),i=require("lodash/debounce"),o=require("./constants-39ce5af1.js"),l=require("./index-37f69418.js"),n=require("styled-components"),s=require("./index-feef2a5c.js"),r=require("./theme-9d8c0f15.js"),c=require("lodash/shuffle"),d=require("./useOutsideClick-ae164827.js"),u=require("./utils-6602144b.js"),p=require("react-loading-skeleton"),h=require("./paths-62ca2502.js"),g=require("@mantine/core"),f=require("./index-377dcf63.js"),m=require("./cookieHelper-66c3970b.js"),C=require("./index-20c9448d.js"),b=require("./index-4e0c886a.js"),y=require("./ChevronDown-55639416.js"),v=require("string-format");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E=x(t),S=x(i),L=x(n),w=x(c),O=x(p),k=x(v);function I(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const T=L.default.div``,j=L.default.div`
1
+ "use strict";var e=require("./tslib.es6-74f26191.js"),t=require("react"),a=require("./useTranslations-17f45aff.js"),i=require("lodash/debounce"),o=require("./constants-bcb62c25.js"),l=require("./index-7d5dd9db.js"),n=require("styled-components"),s=require("./Plus-04194182.js"),r=require("./theme-ee913b49.js"),c=require("lodash/shuffle"),d=require("./useOutsideClick-e9041b92.js"),u=require("./utils-81e28888.js"),p=require("react-loading-skeleton"),h=require("./paths-ea19c0f8.js"),g=require("@mantine/core"),f=require("./index-33e990e9.js"),m=require("./cookieHelper-e8ab6752.js"),C=require("./index-c9cb5957.js"),b=require("./index-9c9a2ef3.js"),y=require("./ChevronDown-803fe42c.js"),v=require("string-format");function x(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E=x(t),S=x(i),L=x(n),w=x(c),O=x(p),k=x(v);function I(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,o]=t.useState((()=>{if("undefined"==typeof window)return null;const e=m.getCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};m.setCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),o(t),a("granted")}),(()=>{m.deleteCookie(f.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:l})),[e,i])}const T=L.default.div``,j=L.default.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;