@hhgtech/hhg-components 1.29.569 → 1.29.571-beta-1

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 (549) hide show
  1. package/build/{InputDate-a18bc00c.js → InputDate-995cb207.js} +5 -5
  2. package/build/{LastPeriod-c52146b8.js → LastPeriod-bb33cd60.js} +1 -1
  3. package/build/{MobileBottomNavigationIcon-203f5c0a.js → MobileBottomNavigationIcon-960145ab.js} +3 -3
  4. package/build/{SiteWideBanner-1efd98f2.js → SiteWideBanner-7dc3b848.js} +13 -13
  5. package/build/{Spinner-c69f1111.js → Spinner-36aa3370.js} +1 -1
  6. package/build/{WhatsApp-e1814aa4.js → WhatsApp-9d46392b.js} +1 -1
  7. package/build/adapters.js +20 -26
  8. package/build/atoms.js +54 -58
  9. package/build/babyGrowth.js +87 -90
  10. package/build/cache.js +2 -2
  11. package/build/care.js +21 -21
  12. package/build/careBookingSearchBar.js +13 -13
  13. package/build/careBookingSearchBarV2.js +18 -18
  14. package/build/components.js +115 -116
  15. package/build/{constants-a53ed5ac.js → constants-60a484ab.js} +1 -1
  16. package/build/{constants-9595a529.js → constants-a5ff8d2b.js} +1 -1
  17. package/build/constants.js +2 -2
  18. package/build/constantsRiskScreener.js +1 -1
  19. package/build/constantsSite.js +1 -1
  20. package/build/{core-a6aaff5a.js → core-f43f5f1b.js} +1 -1
  21. package/build/countrySelect-e8d73af3.js +1436 -0
  22. package/build/{dataTransform-a24f3b5d.js → dataTransform-8e76c982.js} +1 -1
  23. package/build/ecom.js +4 -4
  24. package/build/{editor-20142c20.js → editor-1bf827ce.js} +11 -11
  25. package/build/embeddedHeathToolCards_babyGrowth.js +26 -31
  26. package/build/embeddedHeathToolCards_babyPoop.js +21 -26
  27. package/build/embeddedHeathToolCards_babyVaccine.js +25 -30
  28. package/build/embeddedHeathToolCards_bmi_bmi.js +28 -33
  29. package/build/embeddedHeathToolCards_bmrBmr.js +28 -33
  30. package/build/embeddedHeathToolCards_dueDate_dueDate.js +25 -30
  31. package/build/embeddedHeathToolCards_helpers.js +2 -2
  32. package/build/embeddedHeathToolCards_ovulation_ovulation.js +25 -30
  33. package/build/embeddedHeathToolCards_pwg_pwg.js +27 -32
  34. package/build/embeddedHeathToolCards_targetHeartRate.js +30 -35
  35. package/build/esm/{InputDate-76b2b51e.js → InputDate-9c9580bf.js} +5 -5
  36. package/build/esm/{LastPeriod-036478e1.js → LastPeriod-9101f9cb.js} +1 -1
  37. package/build/esm/{MobileBottomNavigationIcon-fabfe84a.js → MobileBottomNavigationIcon-246790b3.js} +3 -3
  38. package/build/esm/{SiteWideBanner-54900998.js → SiteWideBanner-56fff397.js} +13 -13
  39. package/build/esm/{Spinner-21e6c8cf.js → Spinner-26dc772e.js} +1 -1
  40. package/build/esm/{WhatsApp-71339b48.js → WhatsApp-c7d35699.js} +1 -1
  41. package/build/esm/adapters.js +20 -26
  42. package/build/esm/atoms.js +54 -58
  43. package/build/esm/babyGrowth.js +87 -90
  44. package/build/esm/cache.js +2 -2
  45. package/build/esm/care.js +21 -21
  46. package/build/esm/careBookingSearchBar.js +13 -13
  47. package/build/esm/careBookingSearchBarV2.js +18 -18
  48. package/build/esm/components.js +115 -116
  49. package/build/esm/{constants-dcecefd0.js → constants-4d660f1c.js} +1 -1
  50. package/build/esm/{constants-4651372c.js → constants-ae05c38c.js} +1 -1
  51. package/build/esm/constants.js +2 -2
  52. package/build/esm/constantsRiskScreener.js +1 -1
  53. package/build/esm/constantsSite.js +1 -1
  54. package/build/esm/{core-ff5a4ff4.js → core-aea991a6.js} +1 -1
  55. package/build/esm/countrySelect-f63b8689.js +1426 -0
  56. package/build/esm/{dataTransform-21157f08.js → dataTransform-37e8c48c.js} +1 -1
  57. package/build/esm/ecom.js +4 -4
  58. package/build/esm/{editor-6479340e.js → editor-1af0c8a9.js} +11 -11
  59. package/build/esm/embeddedHeathToolCards_babyGrowth.js +26 -31
  60. package/build/esm/embeddedHeathToolCards_babyPoop.js +21 -26
  61. package/build/esm/embeddedHeathToolCards_babyVaccine.js +25 -30
  62. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +28 -33
  63. package/build/esm/embeddedHeathToolCards_bmrBmr.js +28 -33
  64. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +25 -30
  65. package/build/esm/embeddedHeathToolCards_helpers.js +2 -2
  66. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +25 -30
  67. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -32
  68. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +30 -35
  69. package/build/esm/footer.js +22 -28
  70. package/build/esm/formatTrackingData-abf42d49.js +4708 -0
  71. package/build/esm/gAssets.js +1 -1
  72. package/build/esm/{healthTools-450f8ae5.js → healthTools-2080ed70.js} +1 -1
  73. package/build/esm/healthToolsCardWrapper.js +19 -24
  74. package/build/esm/healthToolsForm.js +38 -43
  75. package/build/esm/{helpers-1a34b8e4.js → helpers-cee95490.js} +1 -1
  76. package/build/esm/hooks.js +14 -14
  77. package/build/esm/i18n.js +2 -2
  78. package/build/esm/i18nV2.js +2 -2
  79. package/build/esm/{index-b029598c.js → index-07f80b01.js} +3 -3
  80. package/build/esm/{index-fc45bb56.js → index-08cfa16e.js} +3 -3
  81. package/build/esm/{index-6ec3e262.js → index-0d2e1037.js} +2 -2
  82. package/build/esm/{index-bcc6f323.js → index-0e007078.js} +15 -15
  83. package/build/esm/{index-a4c4ea0e.js → index-0e501836.js} +14 -14
  84. package/build/esm/{index-15e548b1.js → index-237b8cd9.js} +1 -1
  85. package/build/esm/{index-bd943133.js → index-24894a72.js} +5 -5
  86. package/build/esm/{index-a0ec9f0c.js → index-27f9e93a.js} +3 -3
  87. package/build/esm/{index-7e156045.js → index-28d79f4b.js} +16 -16
  88. package/build/esm/{index-0194fe12.js → index-29a750bd.js} +4 -4
  89. package/build/esm/{index-0bea513d.js → index-29cd513e.js} +3 -3
  90. package/build/esm/{index-12966283.js → index-3be53b9b.js} +18 -18
  91. package/build/esm/{index-15a0c0b0.js → index-3d0afe18.js} +6 -6
  92. package/build/esm/{index-7eb3a9a5.js → index-3fe1192f.js} +3 -3
  93. package/build/esm/{index-406c579c.js → index-498a276b.js} +3 -3
  94. package/build/esm/{index-a2b0a919.js → index-4cf8b5f1.js} +1 -1
  95. package/build/esm/{index-1220f127.js → index-52148654.js} +1 -1
  96. package/build/esm/{index-be4c6d29.js → index-53c22c93.js} +17 -17
  97. package/build/esm/{index-b660ef2f.js → index-5592d074.js} +4 -4
  98. package/build/esm/{index-67745539.js → index-5619dd62.js} +3 -3
  99. package/build/esm/{index-7bc72b65.js → index-56d2d60f.js} +6 -6
  100. package/build/esm/{index-e8163874.js → index-57ffae3a.js} +2 -2
  101. package/build/esm/{index-4e3f7cfe.js → index-5841c3e9.js} +19 -19
  102. package/build/esm/{index-01559ee6.js → index-5e838787.js} +2 -2
  103. package/build/esm/{index-d277008f.js → index-5ee90121.js} +2 -2
  104. package/build/esm/{index-18d4c461.js → index-643f16ff.js} +11 -11
  105. package/build/esm/{index-35ecb2c1.js → index-65916df7.js} +7 -7
  106. package/build/esm/{index-65ad453f.js → index-6cb6260f.js} +1 -1
  107. package/build/esm/{index-7046b3f5.js → index-6d1fe7c8.js} +2 -2
  108. package/build/esm/{index-5bd184c7.js → index-6fa2c6ce.js} +7 -7
  109. package/build/esm/{index-c6a1fbe6.js → index-707cb603.js} +5 -5
  110. package/build/esm/{index-0337bc9f.js → index-71b51d89.js} +17 -17
  111. package/build/esm/{index-82a5e988.js → index-726d569f.js} +2 -2
  112. package/build/esm/{index-b44e090c.js → index-7d86b1a8.js} +2 -2
  113. package/build/esm/{index-25e3829f.js → index-8619675e.js} +31 -31
  114. package/build/esm/index-8af37f62.js +50 -0
  115. package/build/esm/{index-ec699f0f.js → index-90ef2c39.js} +14 -14
  116. package/build/esm/{index-ab8b350c.js → index-93d64849.js} +2 -2
  117. package/build/esm/{index-f40c1a79.js → index-9484c5ca.js} +16 -16
  118. package/build/esm/{index-0e93a145.js → index-94bb7063.js} +2 -2
  119. package/build/esm/{index-6d013daf.js → index-9d506407.js} +2 -2
  120. package/build/esm/{index-52bc257a.js → index-9f30e96d.js} +17 -17
  121. package/build/esm/{index-c71852e8.js → index-a14631c4.js} +2 -2
  122. package/build/esm/{index-79fd7e59.js → index-b1a6e5d0.js} +1 -1
  123. package/build/esm/{index-057d9669.js → index-b36deefc.js} +2 -2
  124. package/build/esm/{index-d25e17e6.js → index-b490a756.js} +24 -24
  125. package/build/esm/{index-fb9d573e.js → index-b8247641.js} +12 -12
  126. package/build/esm/{index-d34c0494.js → index-b839f3d8.js} +1 -1
  127. package/build/esm/{index-a32337d7.js → index-b8e42f40.js} +21 -21
  128. package/build/esm/{index-c0373767.js → index-b8fbc885.js} +13 -13
  129. package/build/esm/{index-3b61af7f.js → index-b9a20401.js} +5 -5
  130. package/build/esm/{index-fc7390ca.js → index-b9a46a26.js} +6 -6
  131. package/build/esm/{index-21de405a.js → index-bd4ebd5b.js} +1 -1
  132. package/build/esm/{index-193f7c90.js → index-bebe42f2.js} +25 -25
  133. package/build/esm/{index-f5c18624.js → index-c29fc01e.js} +2 -2
  134. package/build/esm/{index-fd79ca23.js → index-c569f9e0.js} +2 -2
  135. package/build/esm/{index-3ce03de7.js → index-ca40e113.js} +7 -7
  136. package/build/esm/{index-6fce2660.js → index-cdadb975.js} +2 -2
  137. package/build/esm/{index-a907b725.js → index-d0713f49.js} +22 -22
  138. package/build/esm/{index-64666e17.js → index-d3cb33aa.js} +21 -1411
  139. package/build/esm/{index-98b44b84.js → index-d4b7a047.js} +13 -13
  140. package/build/esm/{index-0b19fa38.js → index-d50849ed.js} +2 -2
  141. package/build/esm/{index-b65ce016.js → index-d6d684a7.js} +17 -17
  142. package/build/esm/{index-ea6d0c80.js → index-d73c5c39.js} +20 -20
  143. package/build/esm/{index-67cffa01.js → index-d9b3b939.js} +2 -2
  144. package/build/esm/{index-23ef0c6e.js → index-db46dfa4.js} +9 -9
  145. package/build/esm/{index-e9804c5e.js → index-dfbabe79.js} +31 -31
  146. package/build/esm/{index-672d998e.js → index-e535cd30.js} +16 -16
  147. package/build/esm/{index-e231e389.js → index-e5babd72.js} +3 -3
  148. package/build/esm/{index-3c97a13a.js → index-eea83486.js} +34 -34
  149. package/build/esm/{index-c867d385.js → index-f45155a3.js} +3 -3
  150. package/build/esm/{index-9203189b.js → index-f8ea3dd5.js} +2 -2
  151. package/build/esm/{index-85f0c143.js → index-fc3a5254.js} +3 -3
  152. package/build/esm/{index-1744c0ec.js → index-fc73d436.js} +17 -17
  153. package/build/esm/index.js +132 -133
  154. package/build/esm/{labelSorting-d18fd1cc.js → labelSorting-4c2b9b29.js} +4 -4
  155. package/build/esm/lead/LeadGenCore.d.ts +75 -0
  156. package/build/esm/lead/LeadGenSlim.d.ts +33 -0
  157. package/build/esm/lead/LeadGenTranslationContext.d.ts +4 -1
  158. package/build/esm/lead/i18n/index.d.ts +1 -1
  159. package/build/esm/lead/i18n/leadTranslations.d.ts +6 -0
  160. package/build/esm/lead/utils/recaptchaV3.d.ts +1 -1
  161. package/build/esm/lead.js +442 -5106
  162. package/build/esm/leadRecaptcha.js +2 -2
  163. package/build/esm/leadSlim.d.ts +1 -0
  164. package/build/esm/leadSlim.js +457 -0
  165. package/build/esm/{logoIcon-92cf4f60.js → logoIcon-ed0ba65c.js} +2 -2
  166. package/build/esm/mantine.js +29 -34
  167. package/build/esm/misc.js +17 -17
  168. package/build/esm/miscGetDynamicHealthTool.js +3 -3
  169. package/build/esm/miscGetSocialList.js +6 -6
  170. package/build/esm/miscScreenSizeContext.js +1 -1
  171. package/build/esm/mobileBottomNavigation.js +5 -5
  172. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  173. package/build/esm/molecules.js +90 -91
  174. package/build/esm/moleculesArticleCard.js +5 -5
  175. package/build/esm/moleculesArticleCardV2.js +17 -23
  176. package/build/esm/navigation.js +54 -56
  177. package/build/esm/navigationLogoutPopup.js +10 -10
  178. package/build/esm/navigationProfileButton.js +26 -31
  179. package/build/esm/onboardingV2.js +31 -35
  180. package/build/esm/organisms.js +68 -69
  181. package/build/esm/{post-8d7d2fa7.js → post-cbbd8afa.js} +2 -2
  182. package/build/esm/profileNavigation.js +19 -24
  183. package/build/esm/progressBar.js +1 -1
  184. package/build/esm/pwg.js +23 -28
  185. package/build/esm/{recaptchaV3-35dc74db.js → recaptchaV3-cc6fd4ca.js} +1 -1
  186. package/build/esm/ssoV2.js +32 -36
  187. package/build/esm/{store-3b3ce0f3.js → store-0d93e898.js} +3 -3
  188. package/build/esm/subot/api/utils.d.ts +1 -1
  189. package/build/esm/subot/captcha/index.d.ts +31 -0
  190. package/build/esm/subot/index.d.ts +1 -0
  191. package/build/esm/subot/subotInline/subotInline.config.d.ts +1 -1
  192. package/build/esm/subot.js +129 -91
  193. package/build/esm/subotRecaptcha.d.ts +1 -0
  194. package/build/esm/subotRecaptcha.js +3 -0
  195. package/build/esm/surveyOrPremiumBanner.js +34 -38
  196. package/build/esm/surveyQuestionCard.js +11 -11
  197. package/build/esm/{surveyThankyouCard-e13a1288.js → surveyThankyouCard-639e53f7.js} +5 -5
  198. package/build/esm/together.js +59 -62
  199. package/build/esm/togetherApiUtils.js +6 -6
  200. package/build/esm/togetherAtoms.js +31 -36
  201. package/build/esm/togetherComponentGlobalContext.js +6 -6
  202. package/build/esm/togetherMolecules.js +53 -56
  203. package/build/esm/togetherMoleculesCardAuthor.js +28 -28
  204. package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
  205. package/build/esm/togetherMoleculesProfileDetail.js +40 -44
  206. package/build/esm/togetherOrganisms.js +50 -53
  207. package/build/esm/togetherRichTextEditor.js +20 -20
  208. package/build/esm/togetherShareBox.js +12 -12
  209. package/build/esm/{transform-32869213.js → transform-3e8c4f18.js} +34 -34
  210. package/build/esm/{translationsProvider-82f1e3a2.js → translationsProvider-588a0b2f.js} +1 -1
  211. package/build/esm/{treePopoverMenu-b0b5bcec.js → treePopoverMenu-167029db.js} +18 -18
  212. package/build/esm/{types-1411ec49.js → types-59349efa.js} +1 -1
  213. package/build/esm/types.js +1 -1
  214. package/build/esm/{useCartCareService-8fd6ec06.js → useCartCareService-7a55d5cd.js} +1 -1
  215. package/build/esm/{useHealthToolCache-08829731.js → useHealthToolCache-b75a1a0f.js} +1 -1
  216. package/build/esm/{usePhoneValidator-aa06c6ab.js → usePhoneValidator-810fd4b0.js} +4 -4
  217. package/build/esm/{usePlacesAutocomplete-6f685be5.js → usePlacesAutocomplete-8b114d56.js} +1 -1
  218. package/build/esm/{useResolvedCaptureUrls-d05c7b00.js → useResolvedCaptureUrls-def61857.js} +1 -1
  219. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  220. package/build/esm/{utils-ec0b6893.js → utils-141179b6.js} +4 -4
  221. package/build/esm/{utils-a25bf899.js → utils-3ef98622.js} +4 -4
  222. package/build/esm/{utils-879550af.js → utils-6c355922.js} +1 -1
  223. package/build/esm/{utils-c3b59ca1.js → utils-c8b41185.js} +2 -2
  224. package/build/esm/{utils-e6bd848c.js → utils-e62c8c96.js} +5 -5
  225. package/build/esm/vaccination.js +23 -28
  226. package/build/footer.js +22 -28
  227. package/build/formatTrackingData-86139edc.js +4757 -0
  228. package/build/gAssets.js +1 -1
  229. package/build/{healthTools-399058e3.js → healthTools-f332b98b.js} +1 -1
  230. package/build/healthToolsCardWrapper.js +19 -24
  231. package/build/healthToolsForm.js +38 -43
  232. package/build/{helpers-01f910a0.js → helpers-fd76182d.js} +1 -1
  233. package/build/hooks.js +14 -14
  234. package/build/i18n.js +2 -2
  235. package/build/i18nV2.js +1 -1
  236. package/build/{index-13878a5c.js → index-05d450cd.js} +6 -6
  237. package/build/{index-eff0df4d.js → index-0a0f349e.js} +2 -2
  238. package/build/{index-e5649179.js → index-0b002741.js} +5 -5
  239. package/build/{index-ea70c2ed.js → index-0ecc0039.js} +3 -3
  240. package/build/{index-da938539.js → index-1854ea71.js} +2 -2
  241. package/build/{index-e368e43e.js → index-18a375e9.js} +17 -17
  242. package/build/index-192407f0.js +56 -0
  243. package/build/{index-f1e5359e.js → index-1d83a02d.js} +3 -3
  244. package/build/{index-b5c1c4b4.js → index-2ef7f67e.js} +2 -2
  245. package/build/{index-1e2f428f.js → index-3381d7cc.js} +1 -1
  246. package/build/{index-0288501e.js → index-33a85e15.js} +2 -2
  247. package/build/{index-476b0037.js → index-366d51c3.js} +7 -7
  248. package/build/{index-d0375353.js → index-36cca36d.js} +9 -9
  249. package/build/{index-f14e2494.js → index-37610634.js} +2 -2
  250. package/build/{index-fce3e07e.js → index-3cfb2944.js} +24 -24
  251. package/build/{index-33da2fd3.js → index-410ff5af.js} +14 -14
  252. package/build/{index-1d13d856.js → index-42cd4003.js} +3 -3
  253. package/build/{index-65a1a00c.js → index-438bcf83.js} +2 -2
  254. package/build/{index-0591c871.js → index-43b42a19.js} +16 -16
  255. package/build/{index-174ec702.js → index-43e461c8.js} +18 -18
  256. package/build/{index-41ce2ea8.js → index-44701f4a.js} +2 -2
  257. package/build/{index-378d19ee.js → index-4c0a64cf.js} +2 -2
  258. package/build/{index-51585bbc.js → index-50301f71.js} +2 -2
  259. package/build/{index-e7ab43c6.js → index-63842221.js} +3 -3
  260. package/build/{index-236498dc.js → index-63a8efc6.js} +11 -11
  261. package/build/{index-81738a90.js → index-676984f3.js} +2 -2
  262. package/build/{index-2ade4162.js → index-67f538e3.js} +31 -31
  263. package/build/{index-842feb12.js → index-69ed731e.js} +14 -14
  264. package/build/{index-dc368e07.js → index-6cf3681a.js} +2 -2
  265. package/build/{index-121334b4.js → index-70f07d4e.js} +3 -3
  266. package/build/{index-43639807.js → index-77562ac2.js} +13 -13
  267. package/build/{index-0cd7d5ca.js → index-776f38bf.js} +6 -6
  268. package/build/{index-9f920700.js → index-780105c3.js} +17 -17
  269. package/build/{index-135c9f35.js → index-7bb58e13.js} +2 -2
  270. package/build/{index-0a40cd17.js → index-7bf3a398.js} +12 -12
  271. package/build/{index-fe13d458.js → index-7da5ed40.js} +21 -1414
  272. package/build/{index-f63adfb7.js → index-8254a007.js} +7 -7
  273. package/build/{index-da047ba1.js → index-88b3db0c.js} +1 -1
  274. package/build/{index-354240f8.js → index-8902d37c.js} +17 -17
  275. package/build/{index-ac6320ae.js → index-9538674e.js} +1 -1
  276. package/build/{index-18f21b6b.js → index-9b921233.js} +2 -2
  277. package/build/{index-d885ca83.js → index-9bb2149a.js} +21 -21
  278. package/build/{index-61cbce33.js → index-9e252f4c.js} +4 -4
  279. package/build/{index-8d66ab46.js → index-a369ea0e.js} +1 -1
  280. package/build/{index-cf8a9b0d.js → index-a3791803.js} +16 -16
  281. package/build/{index-3ecfd40a.js → index-a4772869.js} +31 -31
  282. package/build/{index-3f59afdf.js → index-a60fc062.js} +20 -20
  283. package/build/{index-ea399b70.js → index-a8d0149a.js} +3 -3
  284. package/build/{index-ed015e00.js → index-a9762d07.js} +3 -3
  285. package/build/{index-90bdc07d.js → index-a98ea311.js} +25 -25
  286. package/build/{index-a7df5bd1.js → index-b0222315.js} +1 -1
  287. package/build/{index-cb34e2ad.js → index-b3797c90.js} +1 -1
  288. package/build/{index-00c9161a.js → index-b5947cbf.js} +6 -6
  289. package/build/{index-28529fa8.js → index-b76f0cf3.js} +5 -5
  290. package/build/{index-28c72d60.js → index-b849f9d5.js} +2 -2
  291. package/build/{index-a68463d0.js → index-bd8c6967.js} +34 -34
  292. package/build/{index-3135c61f.js → index-bfb6f248.js} +7 -7
  293. package/build/{index-8f583d88.js → index-c680babd.js} +19 -19
  294. package/build/{index-5cf98c87.js → index-c6fe2253.js} +3 -3
  295. package/build/{index-62b6d173.js → index-c8dc7534.js} +16 -16
  296. package/build/{index-06c53ec5.js → index-cb385b49.js} +2 -2
  297. package/build/{index-6623934d.js → index-cc02cab7.js} +13 -13
  298. package/build/{index-2c5ba22b.js → index-cdff82f1.js} +3 -3
  299. package/build/{index-0e363f27.js → index-d349c778.js} +2 -2
  300. package/build/{index-05539371.js → index-db1676b7.js} +1 -1
  301. package/build/{index-f77a42a8.js → index-e1c63f1a.js} +15 -15
  302. package/build/{index-79bc73ba.js → index-e81660b7.js} +2 -2
  303. package/build/{index-496ae0b7.js → index-ee3f0966.js} +3 -3
  304. package/build/{index-3fee0721.js → index-f06896ce.js} +4 -4
  305. package/build/{index-91d4e775.js → index-f549e0a3.js} +2 -2
  306. package/build/{index-249a0909.js → index-f6bc1784.js} +22 -22
  307. package/build/{index-fdbd90db.js → index-f721bc96.js} +17 -17
  308. package/build/{index-467a4915.js → index-f80f101c.js} +5 -5
  309. package/build/{index-3e918a8d.js → index-f87a7c07.js} +17 -17
  310. package/build/index.js +132 -133
  311. package/build/{labelSorting-ea0524c0.js → labelSorting-31326412.js} +4 -4
  312. package/build/lead/LeadGenCore.d.ts +75 -0
  313. package/build/lead/LeadGenSlim.d.ts +33 -0
  314. package/build/lead/LeadGenTranslationContext.d.ts +4 -1
  315. package/build/lead/i18n/index.d.ts +1 -1
  316. package/build/lead/i18n/leadTranslations.d.ts +6 -0
  317. package/build/lead/utils/recaptchaV3.d.ts +1 -1
  318. package/build/lead.js +531 -5214
  319. package/build/leadRecaptcha.js +2 -2
  320. package/build/leadSlim.d.ts +1 -0
  321. package/build/leadSlim.js +466 -0
  322. package/build/{logoIcon-e184b529.js → logoIcon-1bf09f07.js} +2 -2
  323. package/build/mantine.js +27 -32
  324. package/build/misc.js +17 -17
  325. package/build/miscGetDynamicHealthTool.js +3 -3
  326. package/build/miscGetSocialList.js +6 -6
  327. package/build/miscScreenSizeContext.js +1 -1
  328. package/build/mobileBottomNavigation.js +5 -5
  329. package/build/mobileBottomNavigationIcon.js +5 -5
  330. package/build/molecules.js +90 -91
  331. package/build/moleculesArticleCard.js +5 -5
  332. package/build/moleculesArticleCardV2.js +17 -23
  333. package/build/navigation.js +54 -56
  334. package/build/navigationLogoutPopup.js +10 -10
  335. package/build/navigationProfileButton.js +26 -31
  336. package/build/onboardingV2.js +30 -34
  337. package/build/organisms.js +68 -69
  338. package/build/{post-e0bb7e35.js → post-6d243ae6.js} +2 -2
  339. package/build/profileNavigation.js +19 -24
  340. package/build/progressBar.js +1 -1
  341. package/build/pwg.js +23 -28
  342. package/build/{recaptchaV3-29bbadd7.js → recaptchaV3-7b6c0e41.js} +1 -1
  343. package/build/ssoV2.js +30 -34
  344. package/build/{store-54417afe.js → store-0e139b7c.js} +3 -3
  345. package/build/subot/api/utils.d.ts +1 -1
  346. package/build/subot/captcha/index.d.ts +31 -0
  347. package/build/subot/index.d.ts +1 -0
  348. package/build/subot/subotInline/subotInline.config.d.ts +1 -1
  349. package/build/subot.js +469 -427
  350. package/build/subotRecaptcha.d.ts +1 -0
  351. package/build/subotRecaptcha.js +15 -0
  352. package/build/surveyOrPremiumBanner.js +34 -38
  353. package/build/surveyQuestionCard.js +11 -11
  354. package/build/{surveyThankyouCard-fd47ee7f.js → surveyThankyouCard-80ff60c8.js} +5 -5
  355. package/build/together.js +59 -62
  356. package/build/togetherApiUtils.js +6 -6
  357. package/build/togetherAtoms.js +31 -36
  358. package/build/togetherComponentGlobalContext.js +6 -6
  359. package/build/togetherMolecules.js +53 -56
  360. package/build/togetherMoleculesCardAuthor.js +28 -28
  361. package/build/togetherMoleculesPostImagePreview.js +13 -13
  362. package/build/togetherMoleculesProfileDetail.js +40 -44
  363. package/build/togetherOrganisms.js +50 -53
  364. package/build/togetherRichTextEditor.js +20 -20
  365. package/build/togetherShareBox.js +12 -12
  366. package/build/{transform-67fa7e3a.js → transform-a9f2ba27.js} +34 -34
  367. package/build/{translationsProvider-dc900334.js → translationsProvider-d168e99d.js} +1 -1
  368. package/build/{treePopoverMenu-1a8181c0.js → treePopoverMenu-453b7df7.js} +18 -18
  369. package/build/{types-f81098a2.js → types-2aa77453.js} +1 -1
  370. package/build/types.js +1 -1
  371. package/build/{useCartCareService-4848d690.js → useCartCareService-e0dd9f20.js} +1 -1
  372. package/build/{useHealthToolCache-8c13b14e.js → useHealthToolCache-3a1ec3cd.js} +1 -1
  373. package/build/{usePhoneValidator-ed765294.js → usePhoneValidator-b7cc229f.js} +4 -4
  374. package/build/{usePlacesAutocomplete-a0067daa.js → usePlacesAutocomplete-7b7ddd89.js} +1 -1
  375. package/build/{useResolvedCaptureUrls-3029d8ff.js → useResolvedCaptureUrls-eae8eaf7.js} +1 -1
  376. package/build/useTogetherAuthRequiredAction.js +9 -9
  377. package/build/{utils-ffd64494.js → utils-019e7f64.js} +2 -2
  378. package/build/{utils-b20dc3b3.js → utils-1e719362.js} +4 -4
  379. package/build/{utils-672df2af.js → utils-4fea7795.js} +5 -5
  380. package/build/{utils-cfc38013.js → utils-9a670387.js} +1 -1
  381. package/build/{utils-a639b68b.js → utils-e4866c58.js} +4 -4
  382. package/build/vaccination.js +23 -28
  383. package/package.json +1 -1
  384. /package/build/{BMI_BOYS.percentile.monthly-490159e0.js → BMI_BOYS.percentile.monthly-a4116fd7.js} +0 -0
  385. /package/build/{BMI_BOYS.percentile.weekly-a5ae1575.js → BMI_BOYS.percentile.weekly-b08e7790.js} +0 -0
  386. /package/build/{BMI_BOYS.percentile.yearly-48286c54.js → BMI_BOYS.percentile.yearly-5fc6e0bf.js} +0 -0
  387. /package/build/{BMI_BOYS.zscore.monthly-75a9ab73.js → BMI_BOYS.zscore.monthly-322bbb0e.js} +0 -0
  388. /package/build/{BMI_BOYS.zscore.weekly-74e5cd78.js → BMI_BOYS.zscore.weekly-39f72817.js} +0 -0
  389. /package/build/{BMI_BOYS.zscore.yearly-a65f073b.js → BMI_BOYS.zscore.yearly-32cc88eb.js} +0 -0
  390. /package/build/{BMI_GIRLS.percentile.monthly-01bda44c.js → BMI_GIRLS.percentile.monthly-8d467f0c.js} +0 -0
  391. /package/build/{BMI_GIRLS.percentile.weekly-885b53a5.js → BMI_GIRLS.percentile.weekly-900c0f0d.js} +0 -0
  392. /package/build/{BMI_GIRLS.percentile.yearly-717adef0.js → BMI_GIRLS.percentile.yearly-26f10a71.js} +0 -0
  393. /package/build/{BMI_GIRLS.zscore.monthly-5874cea2.js → BMI_GIRLS.zscore.monthly-2bc8a1c5.js} +0 -0
  394. /package/build/{BMI_GIRLS.zscore.weekly-5aaf6a95.js → BMI_GIRLS.zscore.weekly-e3c0b382.js} +0 -0
  395. /package/build/{BMI_GIRLS.zscore.yearly-8e8e91b0.js → BMI_GIRLS.zscore.yearly-7b199915.js} +0 -0
  396. /package/build/{ChevronDown-3ce6252e.js → ChevronDown-1a2f225a.js} +0 -0
  397. /package/build/{Google-b0c9b786.js → Google-24430f64.js} +0 -0
  398. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-8a52829b.js → HEAD CIRCUM_BOYS.percentile.monthly-22166a0b.js} +0 -0
  399. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-72e7b444.js → HEAD CIRCUM_BOYS.percentile.weekly-3ac50c42.js} +0 -0
  400. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-bd214c95.js → HEAD CIRCUM_BOYS.percentile.yearly-743b2f5a.js} +0 -0
  401. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-72494fb6.js → HEAD CIRCUM_BOYS.zscore.monthly-9aa65a20.js} +0 -0
  402. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-7c55e158.js → HEAD CIRCUM_BOYS.zscore.weekly-de42fd4b.js} +0 -0
  403. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-7259f91f.js → HEAD CIRCUM_BOYS.zscore.yearly-015a842c.js} +0 -0
  404. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-97600069.js → HEAD CIRCUM_GIRLS.percentile.monthly-c548fd55.js} +0 -0
  405. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-9666d149.js → HEAD CIRCUM_GIRLS.percentile.weekly-db38bf32.js} +0 -0
  406. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-05660adf.js → HEAD CIRCUM_GIRLS.percentile.yearly-a953fb93.js} +0 -0
  407. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-73724e53.js → HEAD CIRCUM_GIRLS.zscore.monthly-188b7a7e.js} +0 -0
  408. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-aa6e582e.js → HEAD CIRCUM_GIRLS.zscore.weekly-6e1094f2.js} +0 -0
  409. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-64708957.js → HEAD CIRCUM_GIRLS.zscore.yearly-ed155590.js} +0 -0
  410. /package/build/{HEIGHT_BOYS.percentile.monthly-832f34bc.js → HEIGHT_BOYS.percentile.monthly-268a8cce.js} +0 -0
  411. /package/build/{HEIGHT_BOYS.percentile.weekly-51ee8423.js → HEIGHT_BOYS.percentile.weekly-723e98f9.js} +0 -0
  412. /package/build/{HEIGHT_BOYS.percentile.yearly-1ba52fab.js → HEIGHT_BOYS.percentile.yearly-29e59851.js} +0 -0
  413. /package/build/{HEIGHT_BOYS.zscore.monthly-bd09ab5c.js → HEIGHT_BOYS.zscore.monthly-73ccc770.js} +0 -0
  414. /package/build/{HEIGHT_BOYS.zscore.weekly-bc0f03f7.js → HEIGHT_BOYS.zscore.weekly-8db0e0ea.js} +0 -0
  415. /package/build/{HEIGHT_BOYS.zscore.yearly-6fdfda26.js → HEIGHT_BOYS.zscore.yearly-fc08b103.js} +0 -0
  416. /package/build/{HEIGHT_GIRLS.percentile.monthly-d0fca325.js → HEIGHT_GIRLS.percentile.monthly-8ceaf7ab.js} +0 -0
  417. /package/build/{HEIGHT_GIRLS.percentile.weekly-1b15f59b.js → HEIGHT_GIRLS.percentile.weekly-5885b0c7.js} +0 -0
  418. /package/build/{HEIGHT_GIRLS.percentile.yearly-2c3de6e3.js → HEIGHT_GIRLS.percentile.yearly-35e40e15.js} +0 -0
  419. /package/build/{HEIGHT_GIRLS.zscore.monthly-b74db86d.js → HEIGHT_GIRLS.zscore.monthly-86e8a36c.js} +0 -0
  420. /package/build/{HEIGHT_GIRLS.zscore.weekly-8d604029.js → HEIGHT_GIRLS.zscore.weekly-7ae93417.js} +0 -0
  421. /package/build/{HEIGHT_GIRLS.zscore.yearly-19621501.js → HEIGHT_GIRLS.zscore.yearly-e0bcff79.js} +0 -0
  422. /package/build/{Visible-67eba78f.js → Visible-2e851a27.js} +0 -0
  423. /package/build/{WEIGHT_BOYS.percentile.monthly-6dd1df3c.js → WEIGHT_BOYS.percentile.monthly-afca7805.js} +0 -0
  424. /package/build/{WEIGHT_BOYS.percentile.weekly-c14c8f1d.js → WEIGHT_BOYS.percentile.weekly-27adcaf9.js} +0 -0
  425. /package/build/{WEIGHT_BOYS.percentile.yearly-00641fd3.js → WEIGHT_BOYS.percentile.yearly-780dc3f4.js} +0 -0
  426. /package/build/{WEIGHT_BOYS.zscore.monthly-f7a3a6c7.js → WEIGHT_BOYS.zscore.monthly-9968e956.js} +0 -0
  427. /package/build/{WEIGHT_BOYS.zscore.weekly-ff4af183.js → WEIGHT_BOYS.zscore.weekly-3ac1116e.js} +0 -0
  428. /package/build/{WEIGHT_BOYS.zscore.yearly-e75b22c2.js → WEIGHT_BOYS.zscore.yearly-898d2579.js} +0 -0
  429. /package/build/{WEIGHT_GIRLS.percentile.monthly-703d5f33.js → WEIGHT_GIRLS.percentile.monthly-ca6622a9.js} +0 -0
  430. /package/build/{WEIGHT_GIRLS.percentile.weekly-0e72e080.js → WEIGHT_GIRLS.percentile.weekly-35d4370d.js} +0 -0
  431. /package/build/{WEIGHT_GIRLS.percentile.yearly-d6867abc.js → WEIGHT_GIRLS.percentile.yearly-fc5ceaba.js} +0 -0
  432. /package/build/{WEIGHT_GIRLS.zscore.monthly-4214e10f.js → WEIGHT_GIRLS.zscore.monthly-49a0f49a.js} +0 -0
  433. /package/build/{WEIGHT_GIRLS.zscore.weekly-6268865d.js → WEIGHT_GIRLS.zscore.weekly-ceb312e8.js} +0 -0
  434. /package/build/{WEIGHT_GIRLS.zscore.yearly-cca12dd8.js → WEIGHT_GIRLS.zscore.yearly-335fc936.js} +0 -0
  435. /package/build/{ageGenerate-0d309a2f.js → ageGenerate-77d6c6a0.js} +0 -0
  436. /package/build/{animation-cda92bee.js → animation-000648a5.js} +0 -0
  437. /package/build/{appearance-4ff904e1.js → appearance-7e4cb3c0.js} +0 -0
  438. /package/build/{constants-71115e11.js → constants-7016a8d0.js} +0 -0
  439. /package/build/{constants-ed51c306.js → constants-96f9b51c.js} +0 -0
  440. /package/build/{constants-8a513b11.js → constants-eec0eb66.js} +0 -0
  441. /package/build/{context-d91c6f19.js → context-d532eb08.js} +0 -0
  442. /package/build/{dataTransform-3623ee6e.js → dataTransform-0aa82232.js} +0 -0
  443. /package/build/esm/{BMI_BOYS.percentile.monthly-a7796536.js → BMI_BOYS.percentile.monthly-819b1d31.js} +0 -0
  444. /package/build/esm/{BMI_BOYS.percentile.weekly-d9b0b1f1.js → BMI_BOYS.percentile.weekly-dae3c9e3.js} +0 -0
  445. /package/build/esm/{BMI_BOYS.percentile.yearly-9458b168.js → BMI_BOYS.percentile.yearly-b854737b.js} +0 -0
  446. /package/build/esm/{BMI_BOYS.zscore.monthly-5ffd534e.js → BMI_BOYS.zscore.monthly-c2467c66.js} +0 -0
  447. /package/build/esm/{BMI_BOYS.zscore.weekly-f84d91f3.js → BMI_BOYS.zscore.weekly-4bad030d.js} +0 -0
  448. /package/build/esm/{BMI_BOYS.zscore.yearly-52bef3f9.js → BMI_BOYS.zscore.yearly-ffc35db2.js} +0 -0
  449. /package/build/esm/{BMI_GIRLS.percentile.monthly-4dd9ecfb.js → BMI_GIRLS.percentile.monthly-8d963faf.js} +0 -0
  450. /package/build/esm/{BMI_GIRLS.percentile.weekly-c07348fd.js → BMI_GIRLS.percentile.weekly-ea6b4d43.js} +0 -0
  451. /package/build/esm/{BMI_GIRLS.percentile.yearly-460d06d4.js → BMI_GIRLS.percentile.yearly-048d0602.js} +0 -0
  452. /package/build/esm/{BMI_GIRLS.zscore.monthly-4f2e8f6b.js → BMI_GIRLS.zscore.monthly-ed7011cd.js} +0 -0
  453. /package/build/esm/{BMI_GIRLS.zscore.weekly-e4ca1cd0.js → BMI_GIRLS.zscore.weekly-4d64a151.js} +0 -0
  454. /package/build/esm/{BMI_GIRLS.zscore.yearly-19864a4a.js → BMI_GIRLS.zscore.yearly-9595220f.js} +0 -0
  455. /package/build/esm/{ChevronDown-95c95b1b.js → ChevronDown-eaf19f23.js} +0 -0
  456. /package/build/esm/{Google-f8e1e30a.js → Google-1876371c.js} +0 -0
  457. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-95e01789.js → HEAD CIRCUM_BOYS.percentile.monthly-71d49275.js} +0 -0
  458. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-50ed0f06.js → HEAD CIRCUM_BOYS.percentile.weekly-60a61c5d.js} +0 -0
  459. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-178f0c90.js → HEAD CIRCUM_BOYS.percentile.yearly-be915a08.js} +0 -0
  460. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-600f4c03.js → HEAD CIRCUM_BOYS.zscore.monthly-8cc18d01.js} +0 -0
  461. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-f86fdd1d.js → HEAD CIRCUM_BOYS.zscore.weekly-05b96219.js} +0 -0
  462. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-7f0a4e4c.js → HEAD CIRCUM_BOYS.zscore.yearly-3ae724b9.js} +0 -0
  463. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ae8a6627.js → HEAD CIRCUM_GIRLS.percentile.monthly-ac12449c.js} +0 -0
  464. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-ecd3bfcc.js → HEAD CIRCUM_GIRLS.percentile.weekly-e75c41d9.js} +0 -0
  465. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5f8f4dd6.js → HEAD CIRCUM_GIRLS.percentile.yearly-494cac16.js} +0 -0
  466. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-6e06fe3b.js → HEAD CIRCUM_GIRLS.zscore.monthly-9add68dd.js} +0 -0
  467. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-28d19a9c.js → HEAD CIRCUM_GIRLS.zscore.weekly-5590a44a.js} +0 -0
  468. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b1ee3970.js → HEAD CIRCUM_GIRLS.zscore.yearly-f1e813fb.js} +0 -0
  469. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-7f3cece2.js → HEIGHT_BOYS.percentile.monthly-1f057021.js} +0 -0
  470. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-31a50964.js → HEIGHT_BOYS.percentile.weekly-f0eef4d8.js} +0 -0
  471. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-44c82d42.js → HEIGHT_BOYS.percentile.yearly-50c83275.js} +0 -0
  472. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e1dd5549.js → HEIGHT_BOYS.zscore.monthly-b70eeb31.js} +0 -0
  473. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-f68e1a5b.js → HEIGHT_BOYS.zscore.weekly-abf16a17.js} +0 -0
  474. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-c696b56a.js → HEIGHT_BOYS.zscore.yearly-aeb5e5ab.js} +0 -0
  475. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0a86bd6a.js → HEIGHT_GIRLS.percentile.monthly-def1b3c8.js} +0 -0
  476. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c3cea51e.js → HEIGHT_GIRLS.percentile.weekly-0144b04e.js} +0 -0
  477. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-0c082848.js → HEIGHT_GIRLS.percentile.yearly-778a63ba.js} +0 -0
  478. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-7ec30ead.js → HEIGHT_GIRLS.zscore.monthly-cc6a4e10.js} +0 -0
  479. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-d4d85942.js → HEIGHT_GIRLS.zscore.weekly-5fc0de25.js} +0 -0
  480. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-beceebaf.js → HEIGHT_GIRLS.zscore.yearly-eabe188d.js} +0 -0
  481. /package/build/esm/{Visible-8f5b8ec3.js → Visible-3488b00b.js} +0 -0
  482. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c0e46f21.js → WEIGHT_BOYS.percentile.monthly-ac77f33a.js} +0 -0
  483. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-3415d12b.js → WEIGHT_BOYS.percentile.weekly-bb10e1c5.js} +0 -0
  484. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-0a996445.js → WEIGHT_BOYS.percentile.yearly-12f79f5f.js} +0 -0
  485. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-efa39539.js → WEIGHT_BOYS.zscore.monthly-44c635cb.js} +0 -0
  486. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-dd4d8482.js → WEIGHT_BOYS.zscore.weekly-26db7184.js} +0 -0
  487. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-cded3528.js → WEIGHT_BOYS.zscore.yearly-c93de8a4.js} +0 -0
  488. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-ebaef217.js → WEIGHT_GIRLS.percentile.monthly-044fe6de.js} +0 -0
  489. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f7d756e7.js → WEIGHT_GIRLS.percentile.weekly-d109deb7.js} +0 -0
  490. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bcfd11ca.js → WEIGHT_GIRLS.percentile.yearly-ec495075.js} +0 -0
  491. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-fc4001e2.js → WEIGHT_GIRLS.zscore.monthly-189f6161.js} +0 -0
  492. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-601fb250.js → WEIGHT_GIRLS.zscore.weekly-055242a6.js} +0 -0
  493. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-3fa4d4a4.js → WEIGHT_GIRLS.zscore.yearly-9ab5ab6f.js} +0 -0
  494. /package/build/esm/{ageGenerate-b399822b.js → ageGenerate-95a24f3b.js} +0 -0
  495. /package/build/esm/{animation-2477269c.js → animation-f305d18c.js} +0 -0
  496. /package/build/esm/{appearance-14acda3a.js → appearance-4d829171.js} +0 -0
  497. /package/build/esm/{constants-9e424985.js → constants-01cc2d6d.js} +0 -0
  498. /package/build/esm/{constants-e7108c13.js → constants-09ec7d2d.js} +0 -0
  499. /package/build/esm/{constants-606b0b67.js → constants-8e7f0d42.js} +0 -0
  500. /package/build/esm/{context-8122f5d0.js → context-f28da715.js} +0 -0
  501. /package/build/esm/{dataTransform-1d893887.js → dataTransform-d89a5c1d.js} +0 -0
  502. /package/build/esm/{index-c2c60a4f.js → index-16831bab.js} +0 -0
  503. /package/build/esm/{index-9e84c927.js → index-4662e01b.js} +0 -0
  504. /package/build/esm/{index-d8ac5dee.js → index-53f21f54.js} +0 -0
  505. /package/build/esm/{index-57c1ec53.js → index-77ad256a.js} +0 -0
  506. /package/build/esm/{index-8441371f.js → index-7b73a628.js} +0 -0
  507. /package/build/esm/{index-6f5f100e.js → index-84065ed0.js} +0 -0
  508. /package/build/esm/{index-c22d0971.js → index-89bbf30c.js} +0 -0
  509. /package/build/esm/{index-5792f9a5.js → index-9e7aea01.js} +0 -0
  510. /package/build/esm/{index-ec03790b.js → index-c13ffa4f.js} +0 -0
  511. /package/build/esm/{index.styles-db9202ef.js → index.styles-4c7ac336.js} +0 -0
  512. /package/build/esm/{localizeNumberFormat-49759e1e.js → localizeNumberFormat-9541cb8c.js} +0 -0
  513. /package/build/esm/{number-deed8a4d.js → number-3ff3c945.js} +0 -0
  514. /package/build/esm/{paths-d496fd35.js → paths-36449217.js} +0 -0
  515. /package/build/esm/{routing-2da43d45.js → routing-f4634b0d.js} +0 -0
  516. /package/build/esm/{shared-d5677fb6.js → shared-1fdaf34a.js} +0 -0
  517. /package/build/esm/{translationsContext-f816b792.js → translationsContext-0188cf47.js} +0 -0
  518. /package/build/esm/{tslib.es6-a4f8cb90.js → tslib.es6-97e77b98.js} +0 -0
  519. /package/build/esm/{types-d0486821.js → types-6e531be2.js} +0 -0
  520. /package/build/esm/{useImageAspectRatio-faa52577.js → useImageAspectRatio-d606bc4d.js} +0 -0
  521. /package/build/esm/{useOutsideClick-abfb7835.js → useOutsideClick-16cac5a3.js} +0 -0
  522. /package/build/esm/{useScrollbarSize-2dbd96f5.js → useScrollbarSize-a1de6d08.js} +0 -0
  523. /package/build/esm/{useUniqueId-e52ac41d.js → useUniqueId-6617fc8c.js} +0 -0
  524. /package/build/esm/{utils-959332eb.js → utils-1f37e52f.js} +0 -0
  525. /package/build/esm/{utils-6cbe2471.js → utils-8f3d8e88.js} +0 -0
  526. /package/build/{index-b9f9b545.js → index-1bc22565.js} +0 -0
  527. /package/build/{index-0effc0b1.js → index-1bc5147a.js} +0 -0
  528. /package/build/{index-b9ed0e7c.js → index-5a78eab8.js} +0 -0
  529. /package/build/{index-a7ef706a.js → index-5f11365b.js} +0 -0
  530. /package/build/{index-39518415.js → index-8dee3b8f.js} +0 -0
  531. /package/build/{index-c046af06.js → index-91719e7d.js} +0 -0
  532. /package/build/{index-bcd14bfe.js → index-999c7bcd.js} +0 -0
  533. /package/build/{index-1174da28.js → index-ac3b1f6d.js} +0 -0
  534. /package/build/{index-d1f1adb7.js → index-cf188099.js} +0 -0
  535. /package/build/{index.styles-6c9c1e0b.js → index.styles-b7c2b099.js} +0 -0
  536. /package/build/{localizeNumberFormat-e32271b1.js → localizeNumberFormat-39be0f5c.js} +0 -0
  537. /package/build/{number-2f72ed70.js → number-2d49c4a7.js} +0 -0
  538. /package/build/{paths-d78c072d.js → paths-92ccb998.js} +0 -0
  539. /package/build/{routing-084163fc.js → routing-4cc2e7c9.js} +0 -0
  540. /package/build/{shared-e95a8e9a.js → shared-07d3fb7f.js} +0 -0
  541. /package/build/{translationsContext-c11386e0.js → translationsContext-8464a806.js} +0 -0
  542. /package/build/{tslib.es6-74fa88f9.js → tslib.es6-71662edb.js} +0 -0
  543. /package/build/{types-155848b9.js → types-203a2f6c.js} +0 -0
  544. /package/build/{useImageAspectRatio-30c3fb88.js → useImageAspectRatio-2658464d.js} +0 -0
  545. /package/build/{useOutsideClick-0bf15a78.js → useOutsideClick-91901d6e.js} +0 -0
  546. /package/build/{useScrollbarSize-3ce9fc39.js → useScrollbarSize-96fb3803.js} +0 -0
  547. /package/build/{useUniqueId-e259d96b.js → useUniqueId-f016b344.js} +0 -0
  548. /package/build/{utils-dc3dd5c3.js → utils-1ea5064b.js} +0 -0
  549. /package/build/{utils-24713e42.js → utils-9d3c15e5.js} +0 -0
package/build/subot.js CHANGED
@@ -3,85 +3,82 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var index$2 = require('./index-b9ed0e7c.js');
7
- var tslib_es6 = require('./tslib.es6-74fa88f9.js');
8
- var index$3 = require('./index-cb34e2ad.js');
6
+ var index$3 = require('./index-5a78eab8.js');
7
+ var tslib_es6 = require('./tslib.es6-71662edb.js');
8
+ var index$4 = require('./index-b3797c90.js');
9
9
  var Cookies = require('js-cookie');
10
10
  var fd = require('fastdom');
11
11
  var fastdomPromised = require('fastdom/extensions/fastdom-promised');
12
- var togetherComponentGlobalContext = require('./utils-b20dc3b3.js');
12
+ var togetherComponentGlobalContext = require('./utils-1e719362.js');
13
13
  var formatString = require('string-format');
14
- var index$1 = require('./index-06c53ec5.js');
14
+ var index$2 = require('./index-192407f0.js');
15
+ var index$1 = require('./index-cb385b49.js');
15
16
  var dayjs = require('dayjs');
16
17
  var constantsDomainLocales = require('./constantsDomainLocales.js');
17
18
  var core = require('@mantine/core');
18
19
  var classNames = require('classnames');
19
- var index$b = require('./index-bcd14bfe.js');
20
- var index$a = require('./index-28c72d60.js');
20
+ var index$c = require('./index-999c7bcd.js');
21
+ var index$b = require('./index-b849f9d5.js');
21
22
  var framerMotion = require('framer-motion');
22
23
  var styled = require('@emotion/styled');
23
- var utils = require('./utils-24713e42.js');
24
- var index$4 = require('./index-f1e5359e.js');
24
+ var utils = require('./utils-9d3c15e5.js');
25
+ var index$5 = require('./index-1d83a02d.js');
25
26
  var remarkable = require('remarkable');
26
27
  var other = require('@hhgtech/icons/other');
27
28
  var reactIntersectionObserver = require('react-intersection-observer');
28
- var index$5 = require('./index-b9f9b545.js');
29
+ var index$6 = require('./index-1bc22565.js');
29
30
  var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
30
- var constants = require('./constants-a53ed5ac.js');
31
+ var constants = require('./constants-60a484ab.js');
31
32
  var uuid = require('uuid');
32
- var recaptchaV3 = require('./recaptchaV3-29bbadd7.js');
33
- var index$6 = require('./index-0e363f27.js');
33
+ var recaptchaV3 = require('./recaptchaV3-7b6c0e41.js');
34
+ var index$7 = require('./index-d349c778.js');
34
35
  var miscTheme = require('./miscTheme.js');
35
36
  var constantsIsProduction = require('./constantsIsProduction.js');
36
- var index$7 = require('./index-fe13d458.js');
37
+ var index$8 = require('./index-7da5ed40.js');
37
38
  require('@mantine/dates');
38
- require('./index-476b0037.js');
39
- require('./index-1174da28.js');
40
- require('./index.styles-6c9c1e0b.js');
41
- require('./translationsContext-c11386e0.js');
39
+ require('./index-366d51c3.js');
40
+ require('./index-ac3b1f6d.js');
41
+ require('./index.styles-b7c2b099.js');
42
+ require('./translationsContext-8464a806.js');
42
43
  require('@mantine/hooks');
43
- require('./index-2c5ba22b.js');
44
+ require('./index-cdff82f1.js');
44
45
  var isEmpty = require('lodash/isEmpty');
45
46
  var reactHookForm = require('react-hook-form');
46
47
  var PhoneInputBase = require('react-phone-number-input');
47
48
  var api = require('@react-google-maps/api');
48
- var usePlacesAutocomplete = require('./usePlacesAutocomplete-a0067daa.js');
49
+ var usePlacesAutocomplete = require('./usePlacesAutocomplete-7b7ddd89.js');
49
50
  var miscDefaultClassWrapper = require('./miscDefaultClassWrapper.js');
50
- var InputDate = require('./InputDate-a18bc00c.js');
51
- var index$8 = require('./index-79bc73ba.js');
52
- var index$9 = require('./index-39518415.js');
53
- var store = require('./store-54417afe.js');
54
- var utils$1 = require('./utils-a639b68b.js');
55
- var index$c = require('./index-e7ab43c6.js');
51
+ var InputDate = require('./InputDate-995cb207.js');
52
+ var index$9 = require('./index-e81660b7.js');
53
+ var index$a = require('./index-8dee3b8f.js');
54
+ var store = require('./store-0e139b7c.js');
55
+ var utils$1 = require('./utils-e4866c58.js');
56
+ var index$d = require('./index-63842221.js');
56
57
  var StarRatings = require('react-star-ratings');
57
58
  var moleculesArticleCard = require('./moleculesArticleCard.js');
58
- var index$d = require('./index-6623934d.js');
59
- var index$e = require('./index-0288501e.js');
59
+ var index$e = require('./index-cc02cab7.js');
60
+ var index$f = require('./index-33a85e15.js');
60
61
  require('date-fns/locale');
61
62
  require('./constantsSite.js');
62
63
  require('./constantsRiskScreener.js');
63
64
  require('./miscCookieHelper.js');
64
65
  require('slugify');
65
66
  require('./togetherApiPaths.js');
66
- require('./index-ea70c2ed.js');
67
- require('./WhatsApp-e1814aa4.js');
68
- require('./Spinner-c69f1111.js');
69
- require('./index-ac6320ae.js');
70
- require('./shared-e95a8e9a.js');
71
- require('./index-18f21b6b.js');
67
+ require('./index-0ecc0039.js');
68
+ require('./WhatsApp-9d46392b.js');
69
+ require('./Spinner-36aa3370.js');
70
+ require('./index-9538674e.js');
71
+ require('./shared-07d3fb7f.js');
72
+ require('./index-9b921233.js');
72
73
  require('@mantine/carousel');
73
- require('./useUniqueId-e259d96b.js');
74
- require('@hhgtech/icons/core');
75
- require('lodash/debounce');
76
- require('lodash/throttle');
77
- require('react-phone-number-input/flags');
78
- require('vaul');
74
+ require('./useUniqueId-f016b344.js');
79
75
  require('@emotion/react');
76
+ require('@hhgtech/icons/core');
80
77
  require('@mantine/notifications');
81
78
  require('zustand');
82
- require('./index-3fee0721.js');
83
- require('./routing-084163fc.js');
84
- require('./healthTools-399058e3.js');
79
+ require('./index-f06896ce.js');
80
+ require('./routing-4cc2e7c9.js');
81
+ require('./healthTools-f332b98b.js');
85
82
 
86
83
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
87
84
 
@@ -180,9 +177,7 @@ const getSubotApiPath = (path, params) => {
180
177
  /** inline message */
181
178
  const subotInlineMessage$1 = (data) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
182
179
  try {
183
- return yield togetherComponentGlobalContext.callApi(getSubotApiPath(PATHS$1.GET_INLINE_MESSAGE), 'POST', {
184
- data,
185
- });
180
+ return yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.GET_INLINE_MESSAGE), 'chat', data);
186
181
  }
187
182
  catch (error) { }
188
183
  });
@@ -334,7 +329,7 @@ const getCurrentTotalDynamicScore = (listNodes, activeId, nextActionId, _formSub
334
329
  ? _formSubmitMeta
335
330
  : nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.form_submit_meta;
336
331
  if (isNodeWithDynamicScore &&
337
- node.type === index$2.NodeType.FORM &&
332
+ node.type === index$3.NodeType.FORM &&
338
333
  formSubmitMeta) {
339
334
  // debugger
340
335
  // NodeId hiện tại có trong object "dynamic_score"
@@ -346,22 +341,22 @@ const getCurrentTotalDynamicScore = (listNodes, activeId, nextActionId, _formSub
346
341
  const foundActions = (_b = node.actions) === null || _b === void 0 ? void 0 : _b.filter((act) => actionIdsDynamicScore.includes(act.id));
347
342
  const foundFormMetas = formSubmitMeta.filter((f) => foundActions.find((a) => a.key === f.key) &&
348
343
  (f.control ===
349
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_NUMBER] ||
344
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NUMBER] ||
350
345
  f.control ===
351
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DOB]));
346
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]));
352
347
  const formulaWithVariable = actionVarsDynamicScore
353
348
  .map((variableName, idx) => {
354
349
  const variableMapToActionId = actionIdsDynamicScore[idx];
355
350
  const variableMapToAction = foundActions.find((act) => act.id === variableMapToActionId);
356
351
  const formValue = foundFormMetas.find((f) => (variableMapToAction === null || variableMapToAction === void 0 ? void 0 : variableMapToAction.key) === f.key &&
357
352
  (f.control ===
358
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_NUMBER] ||
353
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NUMBER] ||
359
354
  f.control ===
360
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DOB]));
355
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]));
361
356
  if (!formValue)
362
357
  return '';
363
358
  if (formValue.control ===
364
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DOB]) {
359
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]) {
365
360
  const { age } = calcAge(dayjs__default["default"](formValue.value).toDate());
366
361
  return `var ${variableName} = ${age};`;
367
362
  }
@@ -383,7 +378,7 @@ const getCurrentTotalDynamicScore = (listNodes, activeId, nextActionId, _formSub
383
378
  const replaceTextWithVariables = (label, listNodes) => {
384
379
  const dynamicScoreHash = getDynamicScore(listNodes[0]);
385
380
  try {
386
- const listFormNodes = listNodes.filter((node) => node.type === index$2.NodeType.FORM);
381
+ const listFormNodes = listNodes.filter((node) => node.type === index$3.NodeType.FORM);
387
382
  /** Apply for dynamic score */
388
383
  Object.keys(dynamicScoreHash).forEach((nodeId) => {
389
384
  var _a, _b, _c;
@@ -394,9 +389,9 @@ const replaceTextWithVariables = (label, listNodes) => {
394
389
  const foundActions = (_a = foundNode === null || foundNode === void 0 ? void 0 : foundNode.actions) === null || _a === void 0 ? void 0 : _a.filter((act) => actionIdsDynamicScore.includes(act.id));
395
390
  const foundFormMetas = (_c = (_b = foundNode === null || foundNode === void 0 ? void 0 : foundNode._message) === null || _b === void 0 ? void 0 : _b.form_submit_meta) === null || _c === void 0 ? void 0 : _c.filter((f) => foundActions.find((a) => a.key === f.key) &&
396
391
  (f.control ===
397
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_NUMBER] ||
392
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NUMBER] ||
398
393
  f.control ===
399
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DOB]));
394
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]));
400
395
  if (dynamicScoreHash[nodeId].formula &&
401
396
  dynamicScoreHash[nodeId].formula_result_name &&
402
397
  (foundFormMetas === null || foundFormMetas === void 0 ? void 0 : foundFormMetas.length)) {
@@ -406,9 +401,9 @@ const replaceTextWithVariables = (label, listNodes) => {
406
401
  const variableMapToAction = foundActions.find((act) => act.id === variableMapToActionId);
407
402
  const formValue = foundFormMetas.find((f) => (variableMapToAction === null || variableMapToAction === void 0 ? void 0 : variableMapToAction.key) === f.key &&
408
403
  (f.control ===
409
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_NUMBER] ||
404
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NUMBER] ||
410
405
  f.control ===
411
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DOB]));
406
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]));
412
407
  if (!formValue)
413
408
  return '';
414
409
  return `var ${variableName} = ${formValue.value};`;
@@ -564,7 +559,7 @@ const buildSubotInlineSsoReturnUrl = () => {
564
559
  };
565
560
  const isActiveSubotInlineSsoNode = (listNodes, activeId) => {
566
561
  const found = listNodes.find((n) => n.id == activeId);
567
- return (found === null || found === void 0 ? void 0 : found.position) === index$2.NodePosition.SSO;
562
+ return (found === null || found === void 0 ? void 0 : found.position) === index$3.NodePosition.SSO;
568
563
  };
569
564
  const hasPendingSubotInlineSsoState = (botId) => {
570
565
  var _a;
@@ -580,7 +575,7 @@ const hasPendingSubotInlineSsoState = (botId) => {
580
575
  json.createdAt + timeToExist <= Date.now()) {
581
576
  return false;
582
577
  }
583
- return ((_a = json.listNodes.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.position) === index$2.NodePosition.SSO;
578
+ return ((_a = json.listNodes.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.position) === index$3.NodePosition.SSO;
584
579
  }
585
580
  catch (_b) {
586
581
  return false;
@@ -617,7 +612,7 @@ const getPreviousStateFromStorage = (botId, { getParams }) => {
617
612
  json.activeId &&
618
613
  json.createdAt + timeToExist > Date.now()) {
619
614
  localStorage.removeItem(STATE_SUBOT_INLINE_KEY);
620
- const isSSOAtLast = json.listNodes.slice(-1)[0].position === index$2.NodePosition.SSO;
615
+ const isSSOAtLast = json.listNodes.slice(-1)[0].position === index$3.NodePosition.SSO;
621
616
  if (isSSOAtLast) {
622
617
  return {
623
618
  listNodes: json.listNodes,
@@ -689,7 +684,7 @@ const extractUnifiedAnswers = (nodes) => {
689
684
  ((_a = nodeMessage._message) === null || _a === void 0 ? void 0 : _a.action_id) &&
690
685
  ((_b = nodeMessage._message) === null || _b === void 0 ? void 0 : _b.action_value)) {
691
686
  const key = nodeMessage._message.action_value; // submit
692
- if (nodeMessage.type === index$2.NodeType.FORM) {
687
+ if (nodeMessage.type === index$3.NodeType.FORM) {
693
688
  const addressControl = ['address', 'province', 'district', 'commune'];
694
689
  const formMetaExceptAddress = (((_c = nodeMessage._message) === null || _c === void 0 ? void 0 : _c.form_submit_meta) || []).filter((formMeta) => !addressControl.includes(formMeta.control));
695
690
  /** For address field */
@@ -725,7 +720,7 @@ const extractUnifiedAnswers = (nodes) => {
725
720
  });
726
721
  }
727
722
  }
728
- if (nodeMessage.type === index$2.NodeType.TEXT) {
723
+ if (nodeMessage.type === index$3.NodeType.TEXT) {
729
724
  if (nodeMessage.is_multi_select) {
730
725
  const actionIds = Object.keys(nodeMessage._message.selected_actions || {});
731
726
  const actionLabel = nodeMessage.actions
@@ -744,7 +739,7 @@ const extractUnifiedAnswers = (nodes) => {
744
739
  const actionLabel = action === null || action === void 0 ? void 0 : action.label;
745
740
  // Select "Other, please provide more detail" -> There is an input below the option is stored in form_submit_meta
746
741
  const otherText = (_q = (_p = (_o = nodeMessage._message) === null || _o === void 0 ? void 0 : _o.form_submit_meta) === null || _p === void 0 ? void 0 : _p.find((f) => f.key === KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD)) === null || _q === void 0 ? void 0 : _q.value;
747
- const isSelectedOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;
742
+ const isSelectedOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;
748
743
  if (actionLabel && actionId) {
749
744
  result.push({
750
745
  attribute: key,
@@ -754,7 +749,7 @@ const extractUnifiedAnswers = (nodes) => {
754
749
  }
755
750
  }
756
751
  }
757
- if (nodeMessage.type === index$2.NodeType.POLL) {
752
+ if (nodeMessage.type === index$3.NodeType.POLL) {
758
753
  const nodeId = nodeMessage.id;
759
754
  const actionIds = ((_u = (_t = nodeMessage._message) === null || _t === void 0 ? void 0 : _t.current_polls) === null || _u === void 0 ? void 0 : _u[nodeId]) || [];
760
755
  const actionLabel = nodeMessage.actions
@@ -799,7 +794,7 @@ const extractVoucherAnswers = (nodes, botItem) => {
799
794
  else if (submitMessage.action_value === 'voucher_color') {
800
795
  voucherColor = (selectedAction === null || selectedAction === void 0 ? void 0 : selectedAction.label) || '';
801
796
  }
802
- if (nodeMessage.type === index$2.NodeType.FORM) {
797
+ if (nodeMessage.type === index$3.NodeType.FORM) {
803
798
  const logicFind = (key) => (formMeta) => {
804
799
  return formMeta.key === key;
805
800
  };
@@ -864,7 +859,7 @@ const saveSubotInlineLogs = ({ nodes, activeId, params, accountIdFromLogs, }) =>
864
859
  let statusFlowBot = 'in_progress';
865
860
  const lastNode = nodes[nodes.length - 1];
866
861
  // Saving data with status COMPLETE when chatbot go to final node
867
- if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) && index$2.NodeFinalTypes.includes(lastNode.type)) {
862
+ if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) && index$3.NodeFinalTypes.includes(lastNode.type)) {
868
863
  statusFlowBot = 'complete';
869
864
  }
870
865
  /** Remove the first node and push it later in data fetching step to make sure data is latest */
@@ -888,9 +883,7 @@ const saveSubotInlineLogs = ({ nodes, activeId, params, accountIdFromLogs, }) =>
888
883
  type: 'inline',
889
884
  market: constantsDomainLocales.domainLocales[togetherComponentGlobalContext.locale],
890
885
  };
891
- yield togetherComponentGlobalContext.callApi(getSubotApiPath(PATHS$1.POST_SUBOT_CREATE_LOG), 'POST', {
892
- data: payload,
893
- });
886
+ yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.POST_SUBOT_CREATE_LOG), 'log', payload);
894
887
  }
895
888
  catch (err) {
896
889
  //
@@ -981,7 +974,7 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
981
974
  /** Get Params */
982
975
  const getParams = React.useCallback(() => {
983
976
  const gaData = window.gaData;
984
- const url = (customUrl || window.location.origin + index$3.basePath) +
977
+ const url = (customUrl || window.location.origin + index$4.basePath) +
985
978
  ((togetherComponentGlobalContext.GlobalData === null || togetherComponentGlobalContext.GlobalData === void 0 ? void 0 : togetherComponentGlobalContext.GlobalData.locale) === 'tl-PH'
986
979
  ? articleLink.replace('fil/', '')
987
980
  : articleLink);
@@ -1234,9 +1227,9 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
1234
1227
  elementScrollIntoView,
1235
1228
  ]);
1236
1229
  React.useEffect(() => {
1237
- if (!Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE)) {
1230
+ if (!Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)) {
1238
1231
  index$1.checkUntilFinished({
1239
- condition: () => Boolean(Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE)),
1232
+ condition: () => Boolean(Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)),
1240
1233
  finished: () => {
1241
1234
  const params = getParams();
1242
1235
  getFirstNode(params);
@@ -1676,7 +1669,7 @@ Container$v.displayName = 'SubotInlineDisclaimer';
1676
1669
  const useCurrentUrl = () => {
1677
1670
  const { data: { locale, router }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
1678
1671
  const { asPath } = router || {};
1679
- const [currentUrl, setCurrentUrl] = React.useState(() => `${index$1.getHelloSitesUrl(locale, false)}${index$3.basePath}${asPath}`);
1672
+ const [currentUrl, setCurrentUrl] = React.useState(() => `${index$1.getHelloSitesUrl(locale, false)}${index$4.basePath}${asPath}`);
1680
1673
  React.useEffect(() => {
1681
1674
  setCurrentUrl(window.location.href);
1682
1675
  }, [asPath]);
@@ -1687,7 +1680,7 @@ const useCurrentUrl = () => {
1687
1680
  const useValidationMultiOption = () => {
1688
1681
  const { formatMessage: f, action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
1689
1682
  const validateSelectActions = (activeActions, node, callBack) => {
1690
- if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$2.NodeMultipleOptions.EXACT_NUMBER &&
1683
+ if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.EXACT_NUMBER &&
1691
1684
  activeActions.length !== (node === null || node === void 0 ? void 0 : node.from)) {
1692
1685
  pushNotifications({
1693
1686
  message: f({
@@ -1700,7 +1693,7 @@ const useValidationMultiOption = () => {
1700
1693
  });
1701
1694
  return;
1702
1695
  }
1703
- else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$2.NodeMultipleOptions.RANGE &&
1696
+ else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.RANGE &&
1704
1697
  (activeActions.length < (node === null || node === void 0 ? void 0 : node.from) ||
1705
1698
  activeActions.length > (node === null || node === void 0 ? void 0 : node.to))) {
1706
1699
  pushNotifications({
@@ -1830,12 +1823,12 @@ const NodeContextProvider = ({ children }) => {
1830
1823
  return (React__default["default"].createElement(NodeContext.Provider, { value: ctxValue }, children));
1831
1824
  };
1832
1825
 
1833
- const disabledNodeList = [index$2.NodeType.FORM];
1834
- const disabledPositionList = [index$2.NodePosition.SSO];
1826
+ const disabledNodeList = [index$3.NodeType.FORM];
1827
+ const disabledPositionList = [index$3.NodePosition.SSO];
1835
1828
  const excludeNodeList = [
1836
- index$2.NodeType.FINAL,
1837
- index$2.NodeType.FINAL_THANK_YOU,
1838
- index$2.NodeType.FINAL_STANDARD,
1829
+ index$3.NodeType.FINAL,
1830
+ index$3.NodeType.FINAL_THANK_YOU,
1831
+ index$3.NodeType.FINAL_STANDARD,
1839
1832
  ];
1840
1833
  // const isSingleChoiceText = (node?: SubotNode) => {
1841
1834
  // if (!node) return false
@@ -1853,9 +1846,9 @@ const Container$u = () => {
1853
1846
  const validation = useValidationMultiOption();
1854
1847
  const botItem = listNodes[0];
1855
1848
  const node = listNodes.find((nodeItem) => nodeItem.id == activeId);
1856
- const actionNextChoice = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$2.NodeActionType.USER_CHOICE_NEXT);
1857
- const actionPollSubmit = (_b = node === null || node === void 0 ? void 0 : node.actions) === null || _b === void 0 ? void 0 : _b.find(({ type }) => type == index$2.NodeActionType.POLL_BUTTON);
1858
- const actionMultipleSubmit = (_c = node === null || node === void 0 ? void 0 : node.actions) === null || _c === void 0 ? void 0 : _c.find(({ type }) => type == index$2.NodeActionType.ACTION_MULTIPLE_BUTTON);
1849
+ const actionNextChoice = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$3.NodeActionType.USER_CHOICE_NEXT);
1850
+ const actionPollSubmit = (_b = node === null || node === void 0 ? void 0 : node.actions) === null || _b === void 0 ? void 0 : _b.find(({ type }) => type == index$3.NodeActionType.POLL_BUTTON);
1851
+ const actionMultipleSubmit = (_c = node === null || node === void 0 ? void 0 : node.actions) === null || _c === void 0 ? void 0 : _c.find(({ type }) => type == index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
1859
1852
  // const selectedWithOtherInput =
1860
1853
  // node?.actions?.find(({ id }) => id === value.action_id)?.type ===
1861
1854
  // NodeActionType.USER_CHOICE_TEXT_BY_INPUT
@@ -1929,7 +1922,7 @@ const Container$u = () => {
1929
1922
  defaultMessage: 'Start over',
1930
1923
  }))),
1931
1924
  isDisplayAction && (React__default["default"].createElement("div", { className: "si-footer-actions" },
1932
- React__default["default"].createElement(index$4.Button, { size: "md", variant: "tertiary", onClick: onPrev, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Back", "data-event-label": currentUrl, "data-bot-id": params.bot_id, sx: { paddingLeft: 16, paddingRight: 16, borderRadius: 8 }, styles: {
1925
+ React__default["default"].createElement(index$5.Button, { size: "md", variant: "tertiary", onClick: onPrev, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Back", "data-event-label": currentUrl, "data-bot-id": params.bot_id, sx: { paddingLeft: 16, paddingRight: 16, borderRadius: 8 }, styles: {
1933
1926
  root: {
1934
1927
  ':not(:disabled)': {
1935
1928
  backgroundColor: 'transparent !important',
@@ -1945,7 +1938,7 @@ const Container$u = () => {
1945
1938
  id: 'riskScreener.back',
1946
1939
  defaultMessage: 'Back',
1947
1940
  })),
1948
- React__default["default"].createElement(index$4.Button, { size: "md", onClick: handleClickNext, loading: isDisabled ? false : loading, disabled: isDisabled, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Continue", "data-event-label": currentUrl, "data-bot-id": params.bot_id, sx: { paddingLeft: 16, paddingRight: 16, borderRadius: 8 }, styles: {
1941
+ React__default["default"].createElement(index$5.Button, { size: "md", onClick: handleClickNext, loading: isDisabled ? false : loading, disabled: isDisabled, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Continue", "data-event-label": currentUrl, "data-bot-id": params.bot_id, sx: { paddingLeft: 16, paddingRight: 16, borderRadius: 8 }, styles: {
1949
1942
  root: {
1950
1943
  ':not(:disabled)': {
1951
1944
  backgroundColor: 'var(--subot-inline-primary-color) !important',
@@ -2269,11 +2262,11 @@ const SubotInlineVoucherLeftUI = ({ clientId, voucherAnswers }) => {
2269
2262
  return null;
2270
2263
  }
2271
2264
  return (React__default["default"].createElement(StyledWrap$n, { className: "si-voucher-left-ui" },
2272
- React__default["default"].createElement("img", { src: index$5.CommonGAssets.getAssetPath('subot/voucher_bg.png'), alt: "", loading: "eager", className: "si-voucher-bg" }),
2273
- React__default["default"].createElement("img", { src: index$5.CommonGAssets.getAssetPath('subot/voucher_icon.png'), alt: "", loading: "eager", className: "si-voucher-item" }),
2265
+ React__default["default"].createElement("img", { src: index$6.CommonGAssets.getAssetPath('subot/voucher_bg.png'), alt: "", loading: "eager", className: "si-voucher-bg" }),
2266
+ React__default["default"].createElement("img", { src: index$6.CommonGAssets.getAssetPath('subot/voucher_icon.png'), alt: "", loading: "eager", className: "si-voucher-item" }),
2274
2267
  React__default["default"].createElement(core.Box, { className: "si-voucher-in-stock" },
2275
2268
  React__default["default"].createElement("h3", null, quantityInStock),
2276
- React__default["default"].createElement("img", { src: index$5.CommonGAssets.getAssetPath('subot/voucher_icon_small.png'), alt: "", loading: "eager" })),
2269
+ React__default["default"].createElement("img", { src: index$6.CommonGAssets.getAssetPath('subot/voucher_icon_small.png'), alt: "", loading: "eager" })),
2277
2270
  React__default["default"].createElement(core.Box, { className: "si-voucher-progress" },
2278
2271
  React__default["default"].createElement(core.Box, { className: "si-voucher-progress--inner", style: { width: `${percentage}%` } }))));
2279
2272
  };
@@ -2314,7 +2307,7 @@ const Container$s = ({ node, onClickStart }) => {
2314
2307
  email: '',
2315
2308
  voucherName: '',
2316
2309
  } })),
2317
- React__default["default"].createElement(index$4.Button, { onClick: handleClickStart, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Start", "data-event-label": currentUrl, "data-bot-id": params.bot_id, rightIcon: React__default["default"].createElement(other.ArrowRight, { color: "var(--subot-inline-text-button-color, #fff)" }), styles: {
2310
+ React__default["default"].createElement(index$5.Button, { onClick: handleClickStart, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Start", "data-event-label": currentUrl, "data-bot-id": params.bot_id, rightIcon: React__default["default"].createElement(other.ArrowRight, { color: "var(--subot-inline-text-button-color, #fff)" }), styles: {
2318
2311
  root: {
2319
2312
  backgroundColor: 'var(--subot-inline-primary-color) !important',
2320
2313
  '&:hover': {
@@ -2415,7 +2408,7 @@ const getLeadPath = (path, params) => {
2415
2408
  const callApiWithLead = (url, method, options) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
2416
2409
  if (options === null || options === void 0 ? void 0 : options.data) {
2417
2410
  let cookie = Cookies__default["default"].get(constants.LEAD_TOKEN_COOKIE);
2418
- const ga = Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE);
2411
+ const ga = Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE);
2419
2412
  if (!cookie) {
2420
2413
  const newCookie = uuid.v4();
2421
2414
  cookie = newCookie;
@@ -2496,15 +2489,15 @@ const checkSyncDataOnFrisoCampaign = (bot, values) => {
2496
2489
  if (!((_a = bot.extra_settings) === null || _a === void 0 ? void 0 : _a.sync_data_friso_campaign) || !values) {
2497
2490
  return;
2498
2491
  }
2499
- const nameControl = index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_NAME];
2500
- const emailControl = index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_EMAIL];
2501
- const dateControl = index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DATE];
2502
- const phoneControlOtp = index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_OTP];
2503
- const phoneControl = index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_PHONE];
2504
- const level1Control = index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE];
2505
- const level2Control = index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT];
2506
- const level3Control = index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE];
2507
- const addressControl = index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_ADDRESS];
2492
+ const nameControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NAME];
2493
+ const emailControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_EMAIL];
2494
+ const dateControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DATE];
2495
+ const phoneControlOtp = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_OTP];
2496
+ const phoneControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_PHONE];
2497
+ const level1Control = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE];
2498
+ const level2Control = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT];
2499
+ const level3Control = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE];
2500
+ const addressControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_ADDRESS];
2508
2501
  const name = ((_b = values.find((o) => o.control === nameControl)) === null || _b === void 0 ? void 0 : _b.value) || '';
2509
2502
  const email = ((_c = values.find((o) => o.control === emailControl)) === null || _c === void 0 ? void 0 : _c.value) || '';
2510
2503
  const date = ((_d = values.find((o) => o.control === dateControl)) === null || _d === void 0 ? void 0 : _d.value) || '';
@@ -2550,11 +2543,11 @@ const foundNodeFrisoForm = (listNode) => {
2550
2543
  var _a, _b, _c, _d, _e, _f;
2551
2544
  const node = n;
2552
2545
  const phone = ((_c = (_b = (_a = node === null || node === void 0 ? void 0 : node._message) === null || _a === void 0 ? void 0 : _a.form_submit_meta) === null || _b === void 0 ? void 0 : _b.find((o) => o.control ===
2553
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_OTP] ||
2546
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_OTP] ||
2554
2547
  o.control ===
2555
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_PHONE])) === null || _c === void 0 ? void 0 : _c.value) || '';
2548
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_PHONE])) === null || _c === void 0 ? void 0 : _c.value) || '';
2556
2549
  const date = ((_f = (_e = (_d = node === null || node === void 0 ? void 0 : node._message) === null || _d === void 0 ? void 0 : _d.form_submit_meta) === null || _e === void 0 ? void 0 : _e.find((o) => o.control ===
2557
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DATE])) === null || _f === void 0 ? void 0 : _f.value) || '';
2550
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DATE])) === null || _f === void 0 ? void 0 : _f.value) || '';
2558
2551
  if (phone && date) {
2559
2552
  foundPhone = phone;
2560
2553
  foundDate = date;
@@ -2593,7 +2586,7 @@ const Container$r = ({ intent }) => {
2593
2586
  const trackingMainButton = React.useMemo(() => {
2594
2587
  if (!intent.url ||
2595
2588
  !intent.label ||
2596
- (intent === null || intent === void 0 ? void 0 : intent.type) !== index$2.NodeIntentType.BOT_MAIN_BUTTON)
2589
+ (intent === null || intent === void 0 ? void 0 : intent.type) !== index$3.NodeIntentType.BOT_MAIN_BUTTON)
2597
2590
  return {};
2598
2591
  return {
2599
2592
  'data-event-category': 'Service Connection',
@@ -2605,7 +2598,7 @@ const Container$r = ({ intent }) => {
2605
2598
  return null;
2606
2599
  const isShowDownloadIcon = (_a = intent.label) === null || _a === void 0 ? void 0 : _a.startsWith(':download:');
2607
2600
  return (React__default["default"].createElement(StyledWrap$j, null,
2608
- React__default["default"].createElement(index$4.Button, Object.assign({ size: "md", color: "primary", onClick: handleOnClick }, trackingMainButton, { styles: {
2601
+ React__default["default"].createElement(index$5.Button, Object.assign({ size: "md", color: "primary", onClick: handleOnClick }, trackingMainButton, { styles: {
2609
2602
  root: {
2610
2603
  backgroundColor: 'var(--subot-inline-primary-color) !important',
2611
2604
  '&:hover': {
@@ -2638,20 +2631,20 @@ Container$q.displayName = 'SubotInlineIntentBotImage';
2638
2631
 
2639
2632
  const Container$p = ({ intent, indexNumber }) => {
2640
2633
  const { listNodes } = React.useContext(SubotInlineContext$1);
2641
- const isShowLabel = ![index$2.NodeIntentType.SSO_INTENT].includes(intent === null || intent === void 0 ? void 0 : intent.type);
2634
+ const isShowLabel = ![index$3.NodeIntentType.SSO_INTENT].includes(intent === null || intent === void 0 ? void 0 : intent.type);
2642
2635
  const isText = [
2643
- index$2.NodeIntentType.BOT_TEXT,
2644
- index$2.NodeIntentType.BOT_MAIN_TITLE,
2636
+ index$3.NodeIntentType.BOT_TEXT,
2637
+ index$3.NodeIntentType.BOT_MAIN_TITLE,
2645
2638
  ].includes(intent === null || intent === void 0 ? void 0 : intent.type);
2646
2639
  const isBtn = [
2647
- index$2.NodeIntentType.BOT_BUTTON,
2648
- index$2.NodeIntentType.BOT_RECALCULATE,
2640
+ index$3.NodeIntentType.BOT_BUTTON,
2641
+ index$3.NodeIntentType.BOT_RECALCULATE,
2649
2642
  ].includes(intent === null || intent === void 0 ? void 0 : intent.type);
2650
2643
  const isImageNode = [
2651
- index$2.NodeIntentType.BOT_IMAGE,
2652
- index$2.NodeIntentType.BOT_MAIN_IMAGE,
2644
+ index$3.NodeIntentType.BOT_IMAGE,
2645
+ index$3.NodeIntentType.BOT_MAIN_IMAGE,
2653
2646
  ].includes(intent === null || intent === void 0 ? void 0 : intent.type);
2654
- const isMainTitle = (intent === null || intent === void 0 ? void 0 : intent.type) === index$2.NodeIntentType.BOT_MAIN_TITLE;
2647
+ const isMainTitle = (intent === null || intent === void 0 ? void 0 : intent.type) === index$3.NodeIntentType.BOT_MAIN_TITLE;
2655
2648
  if (isBtn)
2656
2649
  return React__default["default"].createElement(Container$r, { intent: intent });
2657
2650
  if (!intent) {
@@ -2826,11 +2819,11 @@ function useGetEncodedGaId() {
2826
2819
  const [encodedGaId, setEncodedGaId] = React.useState('');
2827
2820
  const [gaId, setGaId] = React.useState('');
2828
2821
  React.useEffect(() => {
2829
- if (!Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE)) {
2822
+ if (!Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)) {
2830
2823
  index$1.checkUntilFinished({
2831
- condition: () => Boolean(Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE)),
2824
+ condition: () => Boolean(Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)),
2832
2825
  finished: () => {
2833
- const gaClientId = Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE);
2826
+ const gaClientId = Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE);
2834
2827
  if (gaClientId) {
2835
2828
  const base64Encoded = btoa(gaClientId);
2836
2829
  setEncodedGaId(base64Encoded);
@@ -2841,7 +2834,7 @@ function useGetEncodedGaId() {
2841
2834
  });
2842
2835
  }
2843
2836
  else {
2844
- const gaClientId = Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE);
2837
+ const gaClientId = Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE);
2845
2838
  if (gaClientId) {
2846
2839
  const base64Encoded = btoa(gaClientId);
2847
2840
  setEncodedGaId(base64Encoded);
@@ -2982,7 +2975,7 @@ const Container$l = ({ intent }) => {
2982
2975
  const disclaimerText = (_a = listServices[0]) === null || _a === void 0 ? void 0 : _a.disclaimer;
2983
2976
  const sectionTitle = (_b = listServices[0]) === null || _b === void 0 ? void 0 : _b.sectionTitle;
2984
2977
  return (React__default["default"].createElement(StyledWrap$g, null,
2985
- React__default["default"].createElement(index$6.Text, { size: "lg", weight: "semiBold", className: "si-title", color: "var(--subot-inline-text-color, #262626)" }, ((_c = sectionTitle === null || sectionTitle === void 0 ? void 0 : sectionTitle.trim) === null || _c === void 0 ? void 0 : _c.call(sectionTitle)) ||
2978
+ React__default["default"].createElement(index$7.Text, { size: "lg", weight: "semiBold", className: "si-title", color: "var(--subot-inline-text-color, #262626)" }, ((_c = sectionTitle === null || sectionTitle === void 0 ? void 0 : sectionTitle.trim) === null || _c === void 0 ? void 0 : _c.call(sectionTitle)) ||
2986
2979
  f({
2987
2980
  id: 'tools.suggestedServices',
2988
2981
  defaultMessage: 'Suggested services',
@@ -2991,7 +2984,7 @@ const Container$l = ({ intent }) => {
2991
2984
  return (React__default["default"].createElement("div", { onClick: () => handleOnClick(service), key: index, className: "image-wrapper", role: "presentation", "data-event-category": "Service Connection", "data-event-action": "Risk Screener Result Recommended Services", "data-event-label": index$1.formatUrlWithEncrypedGa((service === null || service === void 0 ? void 0 : service.url) || '', encodedGaId) },
2992
2985
  React__default["default"].createElement(core.Box, { className: "aspect-square" },
2993
2986
  React__default["default"].createElement("img", { loading: "lazy", src: service.feature, alt: service.feature, key: index })),
2994
- service.title && (React__default["default"].createElement(index$6.Text, { size: "p2", className: "si-service-title", color: "var(--subot-inline-text-color, #262626)" }, service.title))));
2987
+ service.title && (React__default["default"].createElement(index$7.Text, { size: "p2", className: "si-service-title", color: "var(--subot-inline-text-color, #262626)" }, service.title))));
2995
2988
  })),
2996
2989
  disclaimerText && React__default["default"].createElement(Container$m, { text: disclaimerText })));
2997
2990
  };
@@ -3016,7 +3009,7 @@ const Container$k = ({ intent }) => {
3016
3009
  if (!(intent === null || intent === void 0 ? void 0 : intent.label)) {
3017
3010
  return null;
3018
3011
  }
3019
- const isMainBody = (intent === null || intent === void 0 ? void 0 : intent.type) === index$2.NodeIntentType.BOT_MAIN_BODY;
3012
+ const isMainBody = (intent === null || intent === void 0 ? void 0 : intent.type) === index$3.NodeIntentType.BOT_MAIN_BODY;
3020
3013
  return (React__default["default"].createElement(StyledWrap$e, { className: "si-bot-text" },
3021
3014
  React__default["default"].createElement(Markdown, null, isMainBody
3022
3015
  ? replaceTextWithVariables(intent.label, listNodes)
@@ -3132,30 +3125,30 @@ const Container$i = ({ intent, }) => {
3132
3125
  Container$i.displayName = 'SubotInlineIntentUrl';
3133
3126
 
3134
3127
  const SubotInlineIntentBaseTarget = {
3135
- [index$2.NodeIntentType.BOT_TEXT]: Container$k,
3136
- [index$2.NodeIntentType.BOT_IMAGE]: Container$q,
3137
- [index$2.NodeIntentType.BOT_BUTTON]: Container$r,
3138
- [index$2.NodeIntentType.BOT_URL]: Container$i,
3128
+ [index$3.NodeIntentType.BOT_TEXT]: Container$k,
3129
+ [index$3.NodeIntentType.BOT_IMAGE]: Container$q,
3130
+ [index$3.NodeIntentType.BOT_BUTTON]: Container$r,
3131
+ [index$3.NodeIntentType.BOT_URL]: Container$i,
3139
3132
  // In the revamp UI, recalculate as a normal button
3140
- [index$2.NodeIntentType.BOT_RECALCULATE]: Container$r,
3141
- [index$2.NodeIntentType.BOT_MAIN_TITLE]: Container$p,
3142
- [index$2.NodeIntentType.BOT_MAIN_IMAGE]: Container$q,
3143
- [index$2.NodeIntentType.BOT_MAIN_BODY]: Container$k,
3144
- [index$2.NodeIntentType.BOT_MAIN_BUTTON]: Container$r,
3145
- [index$2.NodeIntentType.BOT_SUB_TITLE]: Container$k,
3146
- [index$2.NodeIntentType.BOT_SUB_BODY]: Container$k,
3133
+ [index$3.NodeIntentType.BOT_RECALCULATE]: Container$r,
3134
+ [index$3.NodeIntentType.BOT_MAIN_TITLE]: Container$p,
3135
+ [index$3.NodeIntentType.BOT_MAIN_IMAGE]: Container$q,
3136
+ [index$3.NodeIntentType.BOT_MAIN_BODY]: Container$k,
3137
+ [index$3.NodeIntentType.BOT_MAIN_BUTTON]: Container$r,
3138
+ [index$3.NodeIntentType.BOT_SUB_TITLE]: Container$k,
3139
+ [index$3.NodeIntentType.BOT_SUB_BODY]: Container$k,
3147
3140
  // [NodeIntentType.BOT_LANDING_PAGE_URL]: SubotInlineIntentBotText,
3148
3141
  // [NodeIntentType.BOT_LANDING_PAGE_BUTTON]: SubotInlineIntentBotText,
3149
3142
  // [NodeIntentType.BOT_RISK_SCREEN]: SubotInlineIntentBotRiskScreener,
3150
- [index$2.NodeIntentType.BOT_RELATED_ARTICLE]: Container$n,
3151
- [index$2.NodeIntentType.THANK_YOU_IMAGE]: Container$q,
3152
- [index$2.NodeIntentType.THANK_YOU_TITLE]: Container$k,
3153
- [index$2.NodeIntentType.THANK_YOU_BODY]: Container$k,
3154
- [index$2.NodeIntentType.BOT_SUGGESTED_SERVICE]: Container$l,
3155
- [index$2.NodeIntentType.BOT_BOOKING]: Container$r,
3156
- [index$2.NodeIntentType.BOT_EVENT_SUBMISSION]: Container$o,
3143
+ [index$3.NodeIntentType.BOT_RELATED_ARTICLE]: Container$n,
3144
+ [index$3.NodeIntentType.THANK_YOU_IMAGE]: Container$q,
3145
+ [index$3.NodeIntentType.THANK_YOU_TITLE]: Container$k,
3146
+ [index$3.NodeIntentType.THANK_YOU_BODY]: Container$k,
3147
+ [index$3.NodeIntentType.BOT_SUGGESTED_SERVICE]: Container$l,
3148
+ [index$3.NodeIntentType.BOT_BOOKING]: Container$r,
3149
+ [index$3.NodeIntentType.BOT_EVENT_SUBMISSION]: Container$o,
3157
3150
  /** intents fake for sso block */
3158
- [index$2.NodeIntentType.SSO_INTENT]: Container$j,
3151
+ [index$3.NodeIntentType.SSO_INTENT]: Container$j,
3159
3152
  };
3160
3153
  const SubotInlineIntentBase$1 = new Proxy(SubotInlineIntentBaseTarget, {
3161
3154
  get(_, prop) {
@@ -3171,13 +3164,13 @@ const SubotInlineIntentBase$1 = new Proxy(SubotInlineIntentBaseTarget, {
3171
3164
  });
3172
3165
 
3173
3166
  const excludeIntents = [
3174
- index$2.NodeIntentType.BOT_SUBMISSION,
3175
- index$2.NodeIntentType.BOT_BACKGROUND_IMAGE,
3167
+ index$3.NodeIntentType.BOT_SUBMISSION,
3168
+ index$3.NodeIntentType.BOT_BACKGROUND_IMAGE,
3176
3169
  ];
3177
3170
  const Container$h = ({ intents: intentsProp, indexNumber, }) => {
3178
3171
  const filteredIntents = intentsProp.filter((intent) => !excludeIntents.includes(intent.type || ''));
3179
- const intentTitle = filteredIntents.find((intent) => intent.type === index$2.NodeIntentType.BOT_MAIN_TITLE);
3180
- const intents = filteredIntents.filter((intent) => intent.type !== index$2.NodeIntentType.BOT_MAIN_TITLE);
3172
+ const intentTitle = filteredIntents.find((intent) => intent.type === index$3.NodeIntentType.BOT_MAIN_TITLE);
3173
+ const intents = filteredIntents.filter((intent) => intent.type !== index$3.NodeIntentType.BOT_MAIN_TITLE);
3181
3174
  return (React__default["default"].createElement(StyledWrap$l, { "data-intent-count": intents.length + 1 },
3182
3175
  intentTitle && (React__default["default"].createElement(Container$p, { intent: intentTitle, indexNumber: indexNumber })),
3183
3176
  !!intents.length && (React__default["default"].createElement("div", { className: "si-intent-list" }, intents.map((intent) => {
@@ -3427,41 +3420,41 @@ const Container$f = ({ node }) => {
3427
3420
  let botSubmissionIntent = undefined;
3428
3421
  intentsProps.forEach((intent) => {
3429
3422
  switch (intent === null || intent === void 0 ? void 0 : intent.type) {
3430
- case index$2.NodeIntentType.BOT_MAIN_IMAGE:
3423
+ case index$3.NodeIntentType.BOT_MAIN_IMAGE:
3431
3424
  mainIntents.push(intent);
3432
3425
  break;
3433
- case index$2.NodeIntentType.BOT_MAIN_TITLE:
3426
+ case index$3.NodeIntentType.BOT_MAIN_TITLE:
3434
3427
  mainIntents.push(intent);
3435
3428
  break;
3436
- case index$2.NodeIntentType.BOT_MAIN_BODY:
3429
+ case index$3.NodeIntentType.BOT_MAIN_BODY:
3437
3430
  mainIntents.push(intent);
3438
3431
  break;
3439
- case index$2.NodeIntentType.BOT_SUGGESTED_SERVICE:
3432
+ case index$3.NodeIntentType.BOT_SUGGESTED_SERVICE:
3440
3433
  suggestedServiceIntents.push(intent);
3441
3434
  break;
3442
- case index$2.NodeIntentType.BOT_MAIN_BUTTON:
3435
+ case index$3.NodeIntentType.BOT_MAIN_BUTTON:
3443
3436
  mainButtonIntents.push(intent);
3444
3437
  break;
3445
- case index$2.NodeIntentType.BOT_BOOKING:
3438
+ case index$3.NodeIntentType.BOT_BOOKING:
3446
3439
  bookingButtonIntents.push(intent);
3447
3440
  break;
3448
- case index$2.NodeIntentType.BOT_RECALCULATE:
3441
+ case index$3.NodeIntentType.BOT_RECALCULATE:
3449
3442
  // mainIntents.push(intent)
3450
3443
  // TODO: Do not apply. Inline Revamp has "Start Over" btn already
3451
3444
  break;
3452
- case index$2.NodeIntentType.BOT_SUB_TITLE:
3445
+ case index$3.NodeIntentType.BOT_SUB_TITLE:
3453
3446
  subIntents.push(intent);
3454
3447
  break;
3455
- case index$2.NodeIntentType.BOT_SUB_BODY:
3448
+ case index$3.NodeIntentType.BOT_SUB_BODY:
3456
3449
  subIntents.push(intent);
3457
3450
  break;
3458
- case index$2.NodeIntentType.BOT_RELATED_ARTICLE:
3451
+ case index$3.NodeIntentType.BOT_RELATED_ARTICLE:
3459
3452
  relatedArticleIntents.push(intent);
3460
3453
  break;
3461
- case index$2.NodeIntentType.BOT_RISK_SCREEN:
3454
+ case index$3.NodeIntentType.BOT_RISK_SCREEN:
3462
3455
  screenerIntents.push(intent);
3463
3456
  break;
3464
- case index$2.NodeIntentType.BOT_SUBMISSION:
3457
+ case index$3.NodeIntentType.BOT_SUBMISSION:
3465
3458
  botSubmissionIntent = intent;
3466
3459
  break;
3467
3460
  }
@@ -3507,7 +3500,7 @@ const Container$f = ({ node }) => {
3507
3500
  return NodeIntent && React__default["default"].createElement(NodeIntent, { key: intent.id, intent: intent });
3508
3501
  }))),
3509
3502
  (relatedArticleIntents === null || relatedArticleIntents === void 0 ? void 0 : relatedArticleIntents.length) > 0 && (React__default["default"].createElement("div", { style: { marginTop: 24 } },
3510
- React__default["default"].createElement(index$6.Text, { size: "lg", weight: "semiBold", color: "var(--subot-inline-text-color, #262626)" }, f({
3503
+ React__default["default"].createElement(index$7.Text, { size: "lg", weight: "semiBold", color: "var(--subot-inline-text-color, #262626)" }, f({
3511
3504
  id: 'articlePage.relatedPostsSectionTitle',
3512
3505
  defaultMessage: 'Related Articles',
3513
3506
  })),
@@ -3532,7 +3525,7 @@ const Container$e = ({ node }) => {
3532
3525
  }, []);
3533
3526
  const resultButton = React.useMemo(() => {
3534
3527
  var _a;
3535
- const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$2.NodeActionType.RESULT_BUTTON);
3528
+ const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$3.NodeActionType.RESULT_BUTTON);
3536
3529
  if (_resultButton)
3537
3530
  return _resultButton;
3538
3531
  return null;
@@ -3546,7 +3539,7 @@ const Container$e = ({ node }) => {
3546
3539
  return (React__default["default"].createElement(StyledWrap$b, { id: "si-node-final-thank-you" },
3547
3540
  React__default["default"].createElement(Container$h, { intents: node.intents || [] }),
3548
3541
  resultButton && (React__default["default"].createElement("div", { className: "si-final-thank-action" },
3549
- React__default["default"].createElement(index$4.Button, { size: "md", onClick: handleOnNext }, resultButton.label)))));
3542
+ React__default["default"].createElement(index$5.Button, { size: "md", onClick: handleOnNext }, resultButton.label)))));
3550
3543
  };
3551
3544
  Container$e.displayName = 'SubotinlineNodeFinal';
3552
3545
 
@@ -4256,7 +4249,7 @@ function GoogleAddressField({ action, formError, control, initValue, onChange, }
4256
4249
  }, render: (props) => {
4257
4250
  const { address = '' } = (props.field.value || {});
4258
4251
  console.log('props', props);
4259
- return (React__default["default"].createElement(index$7.Select, { data: options, icon: React__default["default"].createElement(Location, null), itemComponent: SelectItem,
4252
+ return (React__default["default"].createElement(index$8.Select, { data: options, icon: React__default["default"].createElement(Location, null), itemComponent: SelectItem,
4260
4253
  // Always display the suggestions
4261
4254
  filter: () => true, searchable: true, className: classNames__default["default"]({
4262
4255
  isEmpty: options.length === 0 ||
@@ -4764,57 +4757,57 @@ const StyleWrapperFullAddress = styled__default["default"].div `
4764
4757
  `;
4765
4758
 
4766
4759
  const getActionEmail = (actions) => {
4767
- return actions.find(({ type }) => type === index$2.NodeActionType.USER_SUBMIT_EMAIL);
4760
+ return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_EMAIL);
4768
4761
  };
4769
4762
  const getActionName = (actions) => {
4770
- return actions.find(({ type }) => type === index$2.NodeActionType.USER_SUBMIT_NAME);
4763
+ return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_NAME);
4771
4764
  };
4772
4765
  const getActionPhone = (actions) => {
4773
- return actions.find(({ type }) => type === index$2.NodeActionType.USER_SUBMIT_PHONE);
4766
+ return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_PHONE);
4774
4767
  };
4775
4768
  const getActionOtp = (actions) => {
4776
- return actions.find(({ type }) => type === index$2.NodeActionType.USER_SUBMIT_OTP);
4769
+ return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_OTP);
4777
4770
  };
4778
4771
  const getActionOtpWhatsApp = (actions) => {
4779
- return actions.find(({ type }) => type === index$2.NodeActionType.USER_SUBMIT_WHATSAPP);
4772
+ return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_WHATSAPP);
4780
4773
  };
4781
4774
  const getActionConfirm = (actions) => {
4782
- return actions.find(({ type }) => type === index$2.NodeActionType.USER_SUBMIT_CONFIRM);
4775
+ return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_CONFIRM);
4783
4776
  };
4784
4777
  const isControlOtp = (control) => {
4785
- return (control === index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_OTP] ||
4786
- control === index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_WHATSAPP]);
4778
+ return (control === index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_OTP] ||
4779
+ control === index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_WHATSAPP]);
4787
4780
  };
4788
4781
  const isActionTypeOtp = (type) => {
4789
- return (type === index$2.NodeActionType.USER_SUBMIT_OTP ||
4790
- type === index$2.NodeActionType.USER_SUBMIT_WHATSAPP);
4782
+ return (type === index$3.NodeActionType.USER_SUBMIT_OTP ||
4783
+ type === index$3.NodeActionType.USER_SUBMIT_WHATSAPP);
4791
4784
  };
4792
4785
  const getTranslateVerifiedOtpMessages = () => {
4793
4786
  const phoneWasVerifiedMessage = new Map();
4794
- phoneWasVerifiedMessage.set(index$2.LOCALE.Vietnam, 'Số điện thoại này đã được xác minh.');
4795
- phoneWasVerifiedMessage.set(index$2.LOCALE.PhilippinesEnglish, 'This phone number has been verified.');
4796
- phoneWasVerifiedMessage.set(index$2.LOCALE.Cambodia, 'លេខទូរស័ព្ទនេះត្រូវបានផ្ទៀងផ្ទាត់។');
4797
- phoneWasVerifiedMessage.set(index$2.LOCALE.India, 'इस फ़ोन नंबर की पुष्टि कर दी गई है.');
4798
- phoneWasVerifiedMessage.set(index$2.LOCALE.Indonesia, 'Nomor telepon ini telah diverifikasi.');
4799
- phoneWasVerifiedMessage.set(index$2.LOCALE.Malaysia, 'Nombor telefon ini telah disahkan.');
4800
- phoneWasVerifiedMessage.set(index$2.LOCALE.Myanmar, 'ဤဖုန်းနံပါတ်ကို စစ်ဆေးပြီးပါပြီ။');
4801
- phoneWasVerifiedMessage.set(index$2.LOCALE.Taiwan, '該電話號碼已經過驗證。');
4802
- phoneWasVerifiedMessage.set(index$2.LOCALE.Thailand, 'หมายเลขโทรศัพท์นี้ได้รับการตรวจสอบแล้ว');
4803
- phoneWasVerifiedMessage.set(index$2.LOCALE.PhilippinesTagalog, 'Na-verify na ang numero ng teleponong ito.');
4787
+ phoneWasVerifiedMessage.set(index$3.LOCALE.Vietnam, 'Số điện thoại này đã được xác minh.');
4788
+ phoneWasVerifiedMessage.set(index$3.LOCALE.PhilippinesEnglish, 'This phone number has been verified.');
4789
+ phoneWasVerifiedMessage.set(index$3.LOCALE.Cambodia, 'លេខទូរស័ព្ទនេះត្រូវបានផ្ទៀងផ្ទាត់។');
4790
+ phoneWasVerifiedMessage.set(index$3.LOCALE.India, 'इस फ़ोन नंबर की पुष्टि कर दी गई है.');
4791
+ phoneWasVerifiedMessage.set(index$3.LOCALE.Indonesia, 'Nomor telepon ini telah diverifikasi.');
4792
+ phoneWasVerifiedMessage.set(index$3.LOCALE.Malaysia, 'Nombor telefon ini telah disahkan.');
4793
+ phoneWasVerifiedMessage.set(index$3.LOCALE.Myanmar, 'ဤဖုန်းနံပါတ်ကို စစ်ဆေးပြီးပါပြီ။');
4794
+ phoneWasVerifiedMessage.set(index$3.LOCALE.Taiwan, '該電話號碼已經過驗證。');
4795
+ phoneWasVerifiedMessage.set(index$3.LOCALE.Thailand, 'หมายเลขโทรศัพท์นี้ได้รับการตรวจสอบแล้ว');
4796
+ phoneWasVerifiedMessage.set(index$3.LOCALE.PhilippinesTagalog, 'Na-verify na ang numero ng teleponong ito.');
4804
4797
  return phoneWasVerifiedMessage;
4805
4798
  };
4806
4799
  const getTransPleaseVerifiedOtp = () => {
4807
4800
  const pleaseVerifiedOtp = new Map();
4808
- pleaseVerifiedOtp.set(index$2.LOCALE.Vietnam, 'Vui lòng xác minh số điện thoại');
4809
- pleaseVerifiedOtp.set(index$2.LOCALE.PhilippinesEnglish, 'Please verify your phone number');
4810
- pleaseVerifiedOtp.set(index$2.LOCALE.Cambodia, 'សូមផ្ទៀងផ្ទាត់លេខទូរស័ព្ទរបស់អ្នក។');
4811
- pleaseVerifiedOtp.set(index$2.LOCALE.India, 'कृपया अपना फ़ोन नंबर सत्यापित करें');
4812
- pleaseVerifiedOtp.set(index$2.LOCALE.Indonesia, 'Harap verifikasi nomor telepon AndaNomor telepon ini telah diverifikasi.');
4813
- pleaseVerifiedOtp.set(index$2.LOCALE.Malaysia, 'Sila sahkan nombor telefon anda');
4814
- pleaseVerifiedOtp.set(index$2.LOCALE.Myanmar, 'သင့်ဖုန်းနံပါတ်ကို အတည်ပြုပါ။');
4815
- pleaseVerifiedOtp.set(index$2.LOCALE.Taiwan, '請驗證您的電話號碼');
4816
- pleaseVerifiedOtp.set(index$2.LOCALE.Thailand, 'กรุณาตรวจสอบหมายเลขโทรศัพท์ของคุณ');
4817
- pleaseVerifiedOtp.set(index$2.LOCALE.PhilippinesTagalog, 'Paki-verify ang iyong numero ng telepono');
4801
+ pleaseVerifiedOtp.set(index$3.LOCALE.Vietnam, 'Vui lòng xác minh số điện thoại');
4802
+ pleaseVerifiedOtp.set(index$3.LOCALE.PhilippinesEnglish, 'Please verify your phone number');
4803
+ pleaseVerifiedOtp.set(index$3.LOCALE.Cambodia, 'សូមផ្ទៀងផ្ទាត់លេខទូរស័ព្ទរបស់អ្នក។');
4804
+ pleaseVerifiedOtp.set(index$3.LOCALE.India, 'कृपया अपना फ़ोन नंबर सत्यापित करें');
4805
+ pleaseVerifiedOtp.set(index$3.LOCALE.Indonesia, 'Harap verifikasi nomor telepon AndaNomor telepon ini telah diverifikasi.');
4806
+ pleaseVerifiedOtp.set(index$3.LOCALE.Malaysia, 'Sila sahkan nombor telefon anda');
4807
+ pleaseVerifiedOtp.set(index$3.LOCALE.Myanmar, 'သင့်ဖုန်းနံပါတ်ကို အတည်ပြုပါ။');
4808
+ pleaseVerifiedOtp.set(index$3.LOCALE.Taiwan, '請驗證您的電話號碼');
4809
+ pleaseVerifiedOtp.set(index$3.LOCALE.Thailand, 'กรุณาตรวจสอบหมายเลขโทรศัพท์ของคุณ');
4810
+ pleaseVerifiedOtp.set(index$3.LOCALE.PhilippinesTagalog, 'Paki-verify ang iyong numero ng telepono');
4818
4811
  return pleaseVerifiedOtp;
4819
4812
  };
4820
4813
  const validateDateField = (value, isSubmitting, f, cb) => {
@@ -5093,10 +5086,10 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5093
5086
  }
5094
5087
  data[d.key] = d.value;
5095
5088
  if ([
5096
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DATE],
5097
- index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_DOB],
5089
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DATE],
5090
+ index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB],
5098
5091
  ].includes(d.control)) {
5099
- data[d.key] = dayjs__default["default"](d.value, index$3.API_DATE_FORMAT).toDate();
5092
+ data[d.key] = dayjs__default["default"](d.value, index$4.API_DATE_FORMAT).toDate();
5100
5093
  }
5101
5094
  });
5102
5095
  if (data['otpPhoneNumber']) {
@@ -5141,39 +5134,39 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5141
5134
  }, [botId, nodeId, JSON.stringify(trackingSubmitBtn)]);
5142
5135
  const firstActionAddressIndex = React.useMemo(() => {
5143
5136
  return actions.findIndex((action) => {
5144
- return index$2.FULL_KEY_ADDRESS.includes(action.type);
5137
+ return index$3.FULL_KEY_ADDRESS.includes(action.type);
5145
5138
  });
5146
5139
  }, [actions]);
5147
5140
  const actionAddress = React.useMemo(() => {
5148
5141
  return actions.find((action) => {
5149
- return index$2.NodeActionType.USER_SUBMIT_ADDRESS === action.type;
5142
+ return index$3.NodeActionType.USER_SUBMIT_ADDRESS === action.type;
5150
5143
  });
5151
5144
  }, [actions]);
5152
5145
  const actionAddressLever1 = React.useMemo(() => {
5153
5146
  return actions.find((action) => {
5154
- return index$2.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE === action.type;
5147
+ return index$3.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE === action.type;
5155
5148
  });
5156
5149
  }, [actions]);
5157
5150
  const actionAddressLever2 = React.useMemo(() => {
5158
5151
  return actions.find((action) => {
5159
- return index$2.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT === action.type;
5152
+ return index$3.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT === action.type;
5160
5153
  });
5161
5154
  }, [actions]);
5162
5155
  const actionAddressLever3 = React.useMemo(() => {
5163
5156
  return actions.find((action) => {
5164
- return index$2.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE === action.type;
5157
+ return index$3.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE === action.type;
5165
5158
  });
5166
5159
  }, [actions]);
5167
5160
  const { labelInputDate } = React.useMemo(() => {
5168
- const { dateFormat } = (index$3.ISO_FORMAT === null || index$3.ISO_FORMAT === void 0 ? void 0 : index$3.ISO_FORMAT[locale]) || index$3.ISO_FORMAT['vi-VN'];
5161
+ const { dateFormat } = (index$4.ISO_FORMAT === null || index$4.ISO_FORMAT === void 0 ? void 0 : index$4.ISO_FORMAT[locale]) || index$4.ISO_FORMAT['vi-VN'];
5169
5162
  return {
5170
5163
  dateFormat,
5171
5164
  labelInputDate: dateFormat
5172
5165
  .split('/')
5173
- .map((key) => f(index$2.COMMON_DATE_TRANSLATE_KEY === null || index$2.COMMON_DATE_TRANSLATE_KEY === void 0 ? void 0 : index$2.COMMON_DATE_TRANSLATE_KEY[key])),
5166
+ .map((key) => f(index$3.COMMON_DATE_TRANSLATE_KEY === null || index$3.COMMON_DATE_TRANSLATE_KEY === void 0 ? void 0 : index$3.COMMON_DATE_TRANSLATE_KEY[key])),
5174
5167
  };
5175
5168
  }, [locale, f]);
5176
- const inputType = index$2.ELEMENT_CONTROL_INPUT_TYPE;
5169
+ const inputType = index$3.ELEMENT_CONTROL_INPUT_TYPE;
5177
5170
  const { register, handleSubmit, watch, formState: { errors, isSubmitting }, control, setValue, setError, clearErrors, getValues, trigger, } = reactHookForm.useForm({ defaultValues: defaultFormValues });
5178
5171
  const setSubmitData = (data) => {
5179
5172
  const submitMeta = [];
@@ -5181,9 +5174,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5181
5174
  if (!action.key) {
5182
5175
  continue;
5183
5176
  }
5184
- if (action.type !== index$2.NodeActionType.USER_SUBMIT_CONFIRM &&
5185
- action.type !== index$2.NodeActionType.USER_SUBMIT_TERMS) {
5186
- if (action.type === index$2.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS) {
5177
+ if (action.type !== index$3.NodeActionType.USER_SUBMIT_CONFIRM &&
5178
+ action.type !== index$3.NodeActionType.USER_SUBMIT_TERMS) {
5179
+ if (action.type === index$3.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS) {
5187
5180
  /** If it's google api address, admin cannot add address province/district/commune and address freetext */
5188
5181
  const googleMapData = data[action.key];
5189
5182
  googleMapAddressKeys.forEach((addressKey) => {
@@ -5196,9 +5189,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5196
5189
  }
5197
5190
  });
5198
5191
  }
5199
- else if (action.type === index$2.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE ||
5200
- action.type === index$2.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT ||
5201
- action.type === index$2.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE) {
5192
+ else if (action.type === index$3.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE ||
5193
+ action.type === index$3.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT ||
5194
+ action.type === index$3.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE) {
5202
5195
  submitMeta.push({
5203
5196
  key: action.key,
5204
5197
  control: inputType[action.type] || '',
@@ -5206,22 +5199,22 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5206
5199
  value: data[action.key].label || '',
5207
5200
  });
5208
5201
  }
5209
- else if (action.type === index$2.NodeActionType.USER_SUBMIT_DOB ||
5210
- action.type === index$2.NodeActionType.USER_SUBMIT_DATE) {
5202
+ else if (action.type === index$3.NodeActionType.USER_SUBMIT_DOB ||
5203
+ action.type === index$3.NodeActionType.USER_SUBMIT_DATE) {
5211
5204
  const dobStr = (data[action.key] || '');
5212
5205
  const dayInJS = dayjs__default["default"](dobStr);
5213
5206
  if (dayInJS.isValid()) {
5214
5207
  submitMeta.push({
5215
5208
  key: action.key,
5216
5209
  control: inputType[action.type] || '',
5217
- value: dayInJS.format(index$3.API_DATE_FORMAT),
5210
+ value: dayInJS.format(index$4.API_DATE_FORMAT),
5218
5211
  });
5219
5212
  }
5220
5213
  }
5221
5214
  else if (isActionTypeOtp(action.type)) {
5222
5215
  submitMeta.push({
5223
5216
  key: action.key,
5224
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_OTP],
5217
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_OTP],
5225
5218
  value: data.otpPhoneNumber,
5226
5219
  });
5227
5220
  }
@@ -5247,7 +5240,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5247
5240
  }
5248
5241
  }
5249
5242
  }
5250
- const actionArr = actions.filter((action) => action.type === index$2.NodeActionType.USER_SUBMIT_SEND);
5243
+ const actionArr = actions.filter((action) => action.type === index$3.NodeActionType.USER_SUBMIT_SEND);
5251
5244
  const submitData = {
5252
5245
  action_id: actionArr[0].id,
5253
5246
  action_value: actionArr[0].key,
@@ -5309,20 +5302,29 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5309
5302
  }
5310
5303
  setIsLoading(true);
5311
5304
  try {
5312
- const result = yield togetherComponentGlobalContext.callApi(getSubotApiPath(actionOtpWhatsApp
5305
+ const result = yield index$2.callSubotProtectedApi(getSubotApiPath(actionOtpWhatsApp
5313
5306
  ? PATHS$1.POST_SEND_OTP_WHATSAPP
5314
- : PATHS$1.POST_SEND_OTP), 'POST', {
5315
- data: actionOtpWhatsApp
5316
- ? {
5317
- phone_number: `+${parsedPhone.countryCallingCode}${parsedPhone.nationalNumber}`,
5318
- }
5319
- : {
5320
- phone_number: parsedPhone.nationalNumber,
5321
- area_code: `+${parsedPhone.countryCallingCode}`,
5322
- },
5323
- });
5307
+ : PATHS$1.POST_SEND_OTP), actionOtpWhatsApp ? 'whatsapp_otp' : 'sms_otp', actionOtpWhatsApp
5308
+ ? {
5309
+ phone_number: `+${parsedPhone.countryCallingCode}${parsedPhone.nationalNumber}`,
5310
+ }
5311
+ : {
5312
+ phone_number: parsedPhone.nationalNumber,
5313
+ area_code: `+${parsedPhone.countryCallingCode}`,
5314
+ });
5324
5315
  setIsLoading(false);
5325
5316
  const { _status, _errorCode } = result;
5317
+ if (index$2.isSubotCaptchaForbidden(result)) {
5318
+ if (countRef.current) {
5319
+ countRef.current.cancel();
5320
+ }
5321
+ pushNotifications({
5322
+ title: '',
5323
+ message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
5324
+ type: 'warning',
5325
+ });
5326
+ return;
5327
+ }
5326
5328
  if (_status === 1) {
5327
5329
  if (sentOTP) {
5328
5330
  setIsFinishedCountDown(false);
@@ -5344,7 +5346,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5344
5346
  title: '',
5345
5347
  message: f(OTP_VERIFIED_MSG_CODE === null || OTP_VERIFIED_MSG_CODE === void 0 ? void 0 : OTP_VERIFIED_MSG_CODE[_errorCode]) ||
5346
5348
  messages.get(locale) ||
5347
- messages.get(index$2.LOCALE.PhilippinesEnglish),
5349
+ messages.get(index$3.LOCALE.PhilippinesEnglish),
5348
5350
  type: 'success',
5349
5351
  });
5350
5352
  clearErrors(((_a = getActionOtp(actions)) === null || _a === void 0 ? void 0 : _a.key) || ((_b = getActionOtpWhatsApp(actions)) === null || _b === void 0 ? void 0 : _b.key));
@@ -5387,20 +5389,18 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5387
5389
  const parsedPhone = PhoneInputBase.parsePhoneNumber(data.otpPhoneNumber);
5388
5390
  if (action.key && parsedPhone) {
5389
5391
  try {
5390
- const result = yield togetherComponentGlobalContext.callApi(getSubotApiPath(actionOtpWhatsApp
5392
+ const result = yield index$2.callSubotProtectedApi(getSubotApiPath(actionOtpWhatsApp
5391
5393
  ? PATHS$1.POST_VERIFY_OTP_WHATSAPP
5392
- : PATHS$1.POST_VERIFY_OTP), 'POST', {
5393
- data: actionOtpWhatsApp
5394
- ? {
5395
- code: data['otpCode'],
5396
- phone_number: `+${parsedPhone.countryCallingCode}${parsedPhone.nationalNumber}`,
5397
- }
5398
- : {
5399
- code: data['otpCode'],
5400
- phone_number: parsedPhone.nationalNumber,
5401
- area_code: `+${parsedPhone.countryCallingCode}`,
5402
- },
5403
- });
5394
+ : PATHS$1.POST_VERIFY_OTP), actionOtpWhatsApp ? 'whatsapp_verify' : 'sms_verify', actionOtpWhatsApp
5395
+ ? {
5396
+ code: data['otpCode'],
5397
+ phone_number: `+${parsedPhone.countryCallingCode}${parsedPhone.nationalNumber}`,
5398
+ }
5399
+ : {
5400
+ code: data['otpCode'],
5401
+ phone_number: parsedPhone.nationalNumber,
5402
+ area_code: `+${parsedPhone.countryCallingCode}`,
5403
+ });
5404
5404
  const { _status, _messages } = result;
5405
5405
  if (_status === 1) {
5406
5406
  pushNotifications({
@@ -5418,8 +5418,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5418
5418
  catch (error) {
5419
5419
  const errMessage = JSON.parse(error.message);
5420
5420
  const { _errorCode } = errMessage || {};
5421
- const message = f(OTP_VERIFIED_MSG_CODE === null || OTP_VERIFIED_MSG_CODE === void 0 ? void 0 : OTP_VERIFIED_MSG_CODE[_errorCode]) ||
5422
- f({ id: 'validation.error.validOTP' });
5421
+ const message = f(index$2.isSubotCaptchaForbidden(errMessage)
5422
+ ? index$2.SUBOT_CAPTCHA_FAILED_MESSAGE
5423
+ : OTP_VERIFIED_MSG_CODE === null || OTP_VERIFIED_MSG_CODE === void 0 ? void 0 : OTP_VERIFIED_MSG_CODE[_errorCode]) || f({ id: 'validation.error.validOTP' });
5423
5424
  pushNotifications({ title: '', message, type: 'danger' });
5424
5425
  setError('otpCode', { type: 'custom', message });
5425
5426
  }
@@ -5450,7 +5451,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5450
5451
  required: true,
5451
5452
  }, render: (props) => {
5452
5453
  var _a;
5453
- return (React__default["default"].createElement(index$9.Dropdown, { id: actionAddressLever1.id, options: provinceData, onChange: (val) => {
5454
+ return (React__default["default"].createElement(index$a.Dropdown, { id: actionAddressLever1.id, options: provinceData, onChange: (val) => {
5454
5455
  props.field.onChange(val);
5455
5456
  handleSelectedProvince(val);
5456
5457
  }, value: props.field.value, placeholder: (actionAddressLever1 === null || actionAddressLever1 === void 0 ? void 0 : actionAddressLever1.label) || '', className: `address-dropdown ${((_a = props.field.value) === null || _a === void 0 ? void 0 : _a.value) ? '' : 'show-placeholder'}` }));
@@ -5466,7 +5467,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5466
5467
  required: true,
5467
5468
  }, render: (props) => {
5468
5469
  var _a;
5469
- return (React__default["default"].createElement(index$9.Dropdown, { id: actionAddressLever2.id, options: districtData, onChange: (val) => {
5470
+ return (React__default["default"].createElement(index$a.Dropdown, { id: actionAddressLever2.id, options: districtData, onChange: (val) => {
5470
5471
  props.field.onChange(val);
5471
5472
  handleSelectedDistrict(val);
5472
5473
  }, value: props.field.value, placeholder: (actionAddressLever2 === null || actionAddressLever2 === void 0 ? void 0 : actionAddressLever2.label) || '', className: `address-dropdown ${((_a = props.field.value) === null || _a === void 0 ? void 0 : _a.value) ? '' : 'show-placeholder'}` }));
@@ -5482,7 +5483,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5482
5483
  required: true,
5483
5484
  }, render: (props) => {
5484
5485
  var _a;
5485
- return (React__default["default"].createElement(index$9.Dropdown, { id: actionAddressLever3.id, options: communeData, onChange: (val) => {
5486
+ return (React__default["default"].createElement(index$a.Dropdown, { id: actionAddressLever3.id, options: communeData, onChange: (val) => {
5486
5487
  props.field.onChange(val);
5487
5488
  }, value: props.field.value, placeholder: (actionAddressLever3 === null || actionAddressLever3 === void 0 ? void 0 : actionAddressLever3.label) || '', className: `address-dropdown ${((_a = props.field.value) === null || _a === void 0 ? void 0 : _a.value) ? '' : 'show-placeholder'}` }));
5488
5489
  } })),
@@ -5500,20 +5501,20 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5500
5501
  return renderFullAddressInput();
5501
5502
  }
5502
5503
  switch (action.type) {
5503
- case index$2.NodeActionType.USER_SUBMIT_DROPDOWN:
5504
+ case index$3.NodeActionType.USER_SUBMIT_DROPDOWN:
5504
5505
  const options = action.url ? action.url.split('\n') : [];
5505
5506
  return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
5506
5507
  React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
5507
5508
  React__default["default"].createElement(reactHookForm.Controller, { key: action.key, control: control, name: action.key, rules: {
5508
5509
  required: true,
5509
5510
  }, render: ({ field }) => {
5510
- return (React__default["default"].createElement(index$7.Select, Object.assign({ searchable: true, data: options, placeholder: action.label }, field, { withinPortal: true, zIndex: 1000 })));
5511
+ return (React__default["default"].createElement(index$8.Select, Object.assign({ searchable: true, data: options, placeholder: action.label }, field, { withinPortal: true, zIndex: 1000 })));
5511
5512
  } }),
5512
5513
  errors[action.key] && (React__default["default"].createElement("p", { className: "error-message" }, f({
5513
5514
  id: 'validation.error.requiredField',
5514
5515
  defaultMessage: 'This field is required',
5515
5516
  })))));
5516
- case index$2.NodeActionType.USER_SUBMIT_EMAIL:
5517
+ case index$3.NodeActionType.USER_SUBMIT_EMAIL:
5517
5518
  const emailPattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
5518
5519
  return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
5519
5520
  React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
@@ -5530,7 +5531,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5530
5531
  id: 'validation.error.validEmail',
5531
5532
  defaultMessage: 'Please enter a valid email address.',
5532
5533
  })))));
5533
- case index$2.NodeActionType.USER_SUBMIT_NAME:
5534
+ case index$3.NodeActionType.USER_SUBMIT_NAME:
5534
5535
  return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
5535
5536
  React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
5536
5537
  React__default["default"].createElement("input", Object.assign({ id: action.id, placeholder: action.label }, register(action.key, { required: true }))),
@@ -5538,7 +5539,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5538
5539
  id: 'validation.error.requiredField',
5539
5540
  defaultMessage: 'This field is required',
5540
5541
  })))));
5541
- case index$2.NodeActionType.USER_SUBMIT_PHONE:
5542
+ case index$3.NodeActionType.USER_SUBMIT_PHONE:
5542
5543
  return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
5543
5544
  React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
5544
5545
  React__default["default"].createElement(reactHookForm.Controller, { name: action.key, control: control, rules: {
@@ -5549,7 +5550,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5549
5550
  id: 'validation.error.validNumber',
5550
5551
  defaultMessage: 'Please enter a valid number.',
5551
5552
  })))));
5552
- case index$2.NodeActionType.USER_SUBMIT_NUMBER:
5553
+ case index$3.NodeActionType.USER_SUBMIT_NUMBER:
5553
5554
  return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
5554
5555
  React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
5555
5556
  React__default["default"].createElement("input", Object.assign({ type: "number", id: action.id }, register(action.key, { required: true }))),
@@ -5557,7 +5558,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5557
5558
  id: 'validation.error.requiredField',
5558
5559
  defaultMessage: 'This field is required',
5559
5560
  })))));
5560
- case index$2.NodeActionType.USER_SUBMIT_DATE:
5561
+ case index$3.NodeActionType.USER_SUBMIT_DATE:
5561
5562
  return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
5562
5563
  React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
5563
5564
  React__default["default"].createElement(reactHookForm.Controller, { name: action.key, control: control, rules: {
@@ -5585,7 +5586,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5585
5586
  }, labelTuples: labelInputDate, locale: locale, error: isError, className: "subot_input subot_input_date" }))),
5586
5587
  isError && (React__default["default"].createElement("p", { className: "error-message" }, error === null || error === void 0 ? void 0 : error.message))));
5587
5588
  } })));
5588
- case index$2.NodeActionType.USER_SUBMIT_BMI:
5589
+ case index$3.NodeActionType.USER_SUBMIT_BMI:
5589
5590
  return (React__default["default"].createElement("div", { key: action.id },
5590
5591
  React__default["default"].createElement("div", { className: "input-row", key: `${action.id}-height` },
5591
5592
  React__default["default"].createElement("label", { htmlFor: `${action.key}-height` }, f({ id: 'home.bmi.input.height', defaultMessage: 'Height' })),
@@ -5601,7 +5602,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5601
5602
  id: 'validation.error.requiredField',
5602
5603
  defaultMessage: 'This field is required',
5603
5604
  }))))));
5604
- case index$2.NodeActionType.USER_SUBMIT_GENDER:
5605
+ case index$3.NodeActionType.USER_SUBMIT_GENDER:
5605
5606
  return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
5606
5607
  React__default["default"].createElement("label", null, action.label),
5607
5608
  React__default["default"].createElement("div", { className: "radio-group" },
@@ -5625,7 +5626,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5625
5626
  id: 'validation.error.requiredField',
5626
5627
  defaultMessage: 'This field is required',
5627
5628
  })))));
5628
- case index$2.NodeActionType.USER_SUBMIT_TEXT:
5629
+ case index$3.NodeActionType.USER_SUBMIT_TEXT:
5629
5630
  return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
5630
5631
  React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
5631
5632
  React__default["default"].createElement("input", Object.assign({ id: action.id, placeholder: action.label }, register(action.key, { required: true }))),
@@ -5633,8 +5634,8 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5633
5634
  id: 'validation.error.requiredField',
5634
5635
  defaultMessage: 'This field is required',
5635
5636
  })))));
5636
- case index$2.NodeActionType.USER_SUBMIT_OTP:
5637
- case index$2.NodeActionType.USER_SUBMIT_WHATSAPP:
5637
+ case index$3.NodeActionType.USER_SUBMIT_OTP:
5638
+ case index$3.NodeActionType.USER_SUBMIT_WHATSAPP:
5638
5639
  return (React__default["default"].createElement("div", null,
5639
5640
  React__default["default"].createElement("div", { className: "input-row input-row--otp" },
5640
5641
  React__default["default"].createElement("label", { htmlFor: "otpPhoneNumber" }, action.label),
@@ -5664,7 +5665,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5664
5665
  id: 'validation.error.validNumber',
5665
5666
  defaultMessage: 'Please enter a valid number.',
5666
5667
  })))),
5667
- verifiedOTP ? ('') : (React__default["default"].createElement(index$4.Button, Object.assign({ size: "sm", loading: isLoading, disabled: (!isFinishedCountDown && sentOTP) ||
5668
+ verifiedOTP ? ('') : (React__default["default"].createElement(index$5.Button, Object.assign({ size: "sm", loading: isLoading, disabled: (!isFinishedCountDown && sentOTP) ||
5668
5669
  isLoading ||
5669
5670
  !PhoneInputBase.isPossiblePhoneNumber(watchOtp || ''), onClick: handleSendOTP, variant: "ghost", className: "btn-send-otp" }, trackingSendOTP), sentOTP ? (React__default["default"].createElement(CountDown$1, { ref: countRef, isFinished: isFinishedCountDown, onFinish: setIsFinishedCountDown })) : (React__default["default"].createElement("span", null, f({
5670
5671
  id: 'subot.sendOTP.button',
@@ -5687,13 +5688,13 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5687
5688
  React__default["default"].createElement("span", { className: "verify-success-label" }, f({
5688
5689
  id: 'subot.verifyOTP.success.message',
5689
5690
  defaultMessage: 'Verified successful',
5690
- })))) : (React__default["default"].createElement(index$8.Button, Object.assign({ className: "submit-btn", size: isFormRevamp ? 'md' : 'lg', isLoading: isLoadingVerify, isDisabled: !sentOTP, onClick: (e) => handleVerifyOTP(e, action) }, trackingVerifyOTP), f({
5691
+ })))) : (React__default["default"].createElement(index$9.Button, Object.assign({ className: "submit-btn", size: isFormRevamp ? 'md' : 'lg', isLoading: isLoadingVerify, isDisabled: !sentOTP, onClick: (e) => handleVerifyOTP(e, action) }, trackingVerifyOTP), f({
5691
5692
  id: 'subot.verifyOTP.button',
5692
5693
  defaultMessage: 'Verify OTP',
5693
5694
  })))))));
5694
- case index$2.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS:
5695
+ case index$3.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS:
5695
5696
  return (React__default["default"].createElement(GoogleAddressField$1, { action: action, control: control, formError: errors[action.key], key: action.id, initValue: defaultFormValues === null || defaultFormValues === void 0 ? void 0 : defaultFormValues[action.key], onChange: setValue }));
5696
- case index$2.NodeActionType.USER_SUBMIT_DOB:
5697
+ case index$3.NodeActionType.USER_SUBMIT_DOB:
5697
5698
  return (React__default["default"].createElement(DOB, { key: action.key, action: action, trigger: trigger, control: control, locale: locale, labelTuples: labelInputDate, isSubmitting: isSubmitting }));
5698
5699
  default:
5699
5700
  return '';
@@ -5701,17 +5702,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
5701
5702
  };
5702
5703
  const renderFormSubmitAndTerms = (action) => {
5703
5704
  switch (action.type) {
5704
- case index$2.NodeActionType.USER_SUBMIT_CONFIRM:
5705
+ case index$3.NodeActionType.USER_SUBMIT_CONFIRM:
5705
5706
  return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
5706
5707
  React__default["default"].createElement("label", { className: "subot-checkbox" },
5707
5708
  React__default["default"].createElement("input", Object.assign({}, register('confirm'), { type: "checkbox", defaultChecked: true, className: "subot-checkbox__input" })),
5708
5709
  React__default["default"].createElement("span", { className: "subot-checkbox__label" },
5709
5710
  React__default["default"].createElement(Markdown, null, action.label)))));
5710
- case index$2.NodeActionType.USER_SUBMIT_SEND:
5711
+ case index$3.NodeActionType.USER_SUBMIT_SEND:
5711
5712
  const disabled = hasConfirm ? !confirm : false;
5712
5713
  return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
5713
5714
  React__default["default"].createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled: disabled }, trackingSubmit, { "data-response-id": action.id }), action.label)));
5714
- case index$2.NodeActionType.USER_SUBMIT_TERMS:
5715
+ case index$3.NodeActionType.USER_SUBMIT_TERMS:
5715
5716
  return (React__default["default"].createElement("div", { className: "form-terms", key: action.id },
5716
5717
  React__default["default"].createElement(Markdown, null, action.label)));
5717
5718
  default:
@@ -5734,6 +5735,7 @@ const Container$d = ({ node, indexNumber }) => {
5734
5735
  var _a;
5735
5736
  const locale = togetherComponentGlobalContext.GlobalData === null || togetherComponentGlobalContext.GlobalData === void 0 ? void 0 : togetherComponentGlobalContext.GlobalData.locale;
5736
5737
  const { params, listNodes, activeId, onSubmit, setIsShowFooter } = React.useContext(SubotInlineContext$1);
5738
+ const { formatMessage: f, action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
5737
5739
  React.useMemo(() => {
5738
5740
  setIsShowFooter(true);
5739
5741
  }, []);
@@ -5741,6 +5743,14 @@ const Container$d = ({ node, indexNumber }) => {
5741
5743
  checkSyncDataOnFrisoCampaign(listNodes[0], data.form_submit_meta);
5742
5744
  const _message = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, params), node._message), data), getCurrentTotalDynamicScore(listNodes, activeId, data.action_id, data.form_submit_meta)), { node_id: node.id });
5743
5745
  const res = yield subotInlineMessage$1(_message);
5746
+ if (index$2.isSubotCaptchaForbidden(res)) {
5747
+ pushNotifications({
5748
+ title: '',
5749
+ message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
5750
+ type: 'warning',
5751
+ });
5752
+ return;
5753
+ }
5744
5754
  // asking
5745
5755
  if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
5746
5756
  const _b = res === null || res === void 0 ? void 0 : res._data, { node: _node } = _b, restData = tslib_es6.__rest(_b, ["node"]);
@@ -5923,7 +5933,7 @@ const Container$b = ({ action, onChange }) => {
5923
5933
  const currentUrl = useCurrentUrl();
5924
5934
  const { params, activeId } = React.useContext(SubotInlineContext$1);
5925
5935
  return (React__default["default"].createElement(StyledWrap$6, null,
5926
- React__default["default"].createElement(index$4.Button, { onClick: () => onChange && onChange(action), size: "lg", "data-event-category": "Service Connection", "data-event-action": "Risk Screening Sign Up for Result", "data-event-label": currentUrl, "data-bot-id": params.bot_id, "data-event-question-id": activeId, styles: {
5936
+ React__default["default"].createElement(index$5.Button, { onClick: () => onChange && onChange(action), size: "lg", "data-event-category": "Service Connection", "data-event-action": "Risk Screening Sign Up for Result", "data-event-label": currentUrl, "data-bot-id": params.bot_id, "data-event-question-id": activeId, styles: {
5927
5937
  root: {
5928
5938
  backgroundColor: 'var(--subot-inline-primary-color) !important',
5929
5939
  '&:hover': {
@@ -5984,8 +5994,8 @@ const Container$a = ({ action, onChange, active, htmlType, formSubmitMeta, }) =>
5984
5994
  const inputRef = React.useRef(null);
5985
5995
  const [otherText, setOtherText] = React.useState('');
5986
5996
  const { params } = React.useContext(SubotInlineContext$1);
5987
- const isActionPollWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
5988
- const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
5997
+ const isActionPollWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
5998
+ const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
5989
5999
  isActionPollWithOther;
5990
6000
  React.useEffect(() => {
5991
6001
  var _a, _b;
@@ -6022,7 +6032,7 @@ const Container$9 = ({ action, onChange, active, htmlType, }) => {
6022
6032
  if (action && onChange) {
6023
6033
  onChange({
6024
6034
  key: action === null || action === void 0 ? void 0 : action.key,
6025
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
6035
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
6026
6036
  value: '',
6027
6037
  action_id: action === null || action === void 0 ? void 0 : action.id,
6028
6038
  });
@@ -6038,7 +6048,7 @@ const Container$8 = ({ action, onChange, active, htmlType, }) => {
6038
6048
  if (action && onChange) {
6039
6049
  onChange({
6040
6050
  key: action === null || action === void 0 ? void 0 : action.key,
6041
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
6051
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
6042
6052
  value: '',
6043
6053
  action_id: action === null || action === void 0 ? void 0 : action.id,
6044
6054
  });
@@ -6050,14 +6060,14 @@ Container$8.displayName = 'SubotInlinePollChoiceImage';
6050
6060
 
6051
6061
  const SubotInlineActionBaseTarget = {
6052
6062
  // 'user-image': SubotInlineActionImageChoice,
6053
- [index$2.NodeActionType.USER_CHOICE_TEXT]: Container$a,
6054
- [index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT]: Container$a,
6055
- [index$2.NodeActionType.USER_CHOICE_IMAGE]: Container$c,
6056
- [index$2.NodeActionType.ACTION_SSO_REDIRECT]: Container$b,
6057
- [index$2.NodeActionType.POLL_CHOICE]: Container$9,
6058
- [index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT]: Container$a,
6059
- [index$2.NodeActionType.POLL_BUTTON]: () => null,
6060
- [index$2.NodeActionType.POLL_CHOICE_IMAGE]: Container$8,
6063
+ [index$3.NodeActionType.USER_CHOICE_TEXT]: Container$a,
6064
+ [index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT]: Container$a,
6065
+ [index$3.NodeActionType.USER_CHOICE_IMAGE]: Container$c,
6066
+ [index$3.NodeActionType.ACTION_SSO_REDIRECT]: Container$b,
6067
+ [index$3.NodeActionType.POLL_CHOICE]: Container$9,
6068
+ [index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT]: Container$a,
6069
+ [index$3.NodeActionType.POLL_BUTTON]: () => null,
6070
+ [index$3.NodeActionType.POLL_CHOICE_IMAGE]: Container$8,
6061
6071
  // [NodeActionType.RATING_STAR]: SubotInlineRatingStar,
6062
6072
  // [NodeActionType.RATING_DESCRIPTION]: SubotInlineTextArea,
6063
6073
  // [NodeActionType.LIKE_CHOICE]: SubotInlineLikeChoice,
@@ -6080,13 +6090,13 @@ const SubotInlineActionBase$1 = new Proxy(SubotInlineActionBaseTarget, {
6080
6090
  },
6081
6091
  });
6082
6092
 
6083
- const excludeActions = [index$2.NodeActionType.USER_CHOICE_NEXT];
6093
+ const excludeActions = [index$3.NodeActionType.USER_CHOICE_NEXT];
6084
6094
  const Container$7 = ({ actions, value, onChange, htmlType, node_type, formSubmitMeta, }) => {
6085
- const isPollChoiceImage = React.useMemo(() => !!(actions === null || actions === void 0 ? void 0 : actions.find((act) => act.type === index$2.NodeActionType.POLL_CHOICE_IMAGE)), [actions]);
6095
+ const isPollChoiceImage = React.useMemo(() => !!(actions === null || actions === void 0 ? void 0 : actions.find((act) => act.type === index$3.NodeActionType.POLL_CHOICE_IMAGE)), [actions]);
6086
6096
  const className = React.useMemo(() => {
6087
6097
  switch (node_type) {
6088
- case index$2.NodeType.IMAGE:
6089
- case index$2.NodeType.REACTION:
6098
+ case index$3.NodeType.IMAGE:
6099
+ case index$3.NodeType.REACTION:
6090
6100
  return 'si-two-columns';
6091
6101
  default:
6092
6102
  return isPollChoiceImage ? 'si-two-columns' : '';
@@ -6160,7 +6170,7 @@ const Container$5 = ({ node, indexNumber }) => {
6160
6170
  }, []);
6161
6171
  const submitButton = React.useMemo(() => {
6162
6172
  var _a;
6163
- const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$2.NodeActionType.ACTION_MULTIPLE_BUTTON);
6173
+ const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
6164
6174
  if (_submitButton)
6165
6175
  return _submitButton;
6166
6176
  return null;
@@ -6175,8 +6185,8 @@ const Container$5 = ({ node, indexNumber }) => {
6175
6185
  var _b, _c;
6176
6186
  if (action) {
6177
6187
  const _value = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, selected_actions: Object.assign({}, value === null || value === void 0 ? void 0 : value.selected_actions) })));
6178
- if ((action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
6179
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
6188
+ if ((action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
6189
+ (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
6180
6190
  const isExistedPoll = (_value === null || _value === void 0 ? void 0 : _value.selected_actions) && action.id in _value.selected_actions;
6181
6191
  if (isExistedPoll) {
6182
6192
  if (formSubmitMeta) {
@@ -6210,7 +6220,7 @@ const Container$5 = ({ node, indexNumber }) => {
6210
6220
  }
6211
6221
  }
6212
6222
  });
6213
- const actionsRemoveMultipleBtn = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter((a) => a.type !== index$2.NodeActionType.ACTION_MULTIPLE_BUTTON);
6223
+ const actionsRemoveMultipleBtn = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter((a) => a.type !== index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
6214
6224
  return (React__default["default"].createElement(StyledWrap$3, { id: "si-node-text" },
6215
6225
  React__default["default"].createElement(Container$h, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [], indexNumber: indexNumber }),
6216
6226
  React__default["default"].createElement(Container$7, { value: activeActions, actions: actionsRemoveMultipleBtn, onChange: handleOnChange, formSubmitMeta: value === null || value === void 0 ? void 0 : value.form_submit_meta })));
@@ -6223,13 +6233,13 @@ const useDescriptionPollNode = ({ node }) => {
6223
6233
  id: 'multiSelectError.required',
6224
6234
  defaultMessage: 'You must choose one options',
6225
6235
  });
6226
- if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$2.NodeMultipleOptions.UNLIMITED) {
6236
+ if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.UNLIMITED) {
6227
6237
  description = f({
6228
6238
  id: 'multiSelectError.unlimited',
6229
6239
  defaultMessage: 'You must choose at least one options',
6230
6240
  });
6231
6241
  }
6232
- if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$2.NodeMultipleOptions.RANGE) {
6242
+ if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.RANGE) {
6233
6243
  description = f({
6234
6244
  id: 'multiSelectError.range',
6235
6245
  defaultMessage: 'You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)',
@@ -6238,7 +6248,7 @@ const useDescriptionPollNode = ({ node }) => {
6238
6248
  to: node.to,
6239
6249
  });
6240
6250
  }
6241
- if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$2.NodeMultipleOptions.EXACT_NUMBER) {
6251
+ if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.EXACT_NUMBER) {
6242
6252
  description = f({
6243
6253
  id: 'multiSelectError.exactNumber',
6244
6254
  defaultMessage: 'You must choose {from} answers.',
@@ -6268,7 +6278,7 @@ const Container$4 = ({ node, indexNumber }) => {
6268
6278
  }, []);
6269
6279
  const submitButton = React.useMemo(() => {
6270
6280
  var _a;
6271
- const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$2.NodeActionType.POLL_BUTTON);
6281
+ const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.POLL_BUTTON);
6272
6282
  if (_submitButton)
6273
6283
  return _submitButton;
6274
6284
  return null;
@@ -6277,8 +6287,8 @@ const Container$4 = ({ node, indexNumber }) => {
6277
6287
  const handleOnChange = (action, formSubmitMeta) => {
6278
6288
  var _a, _b, _c, _d, _e, _f, _g;
6279
6289
  const newValue = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { node_id: node.id, action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, form_submit_meta: [...((value === null || value === void 0 ? void 0 : value.form_submit_meta) || [])] })));
6280
- if ((action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
6281
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
6290
+ if ((action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
6291
+ (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
6282
6292
  const isExistedPoll = (_a = newValue.form_submit_meta) === null || _a === void 0 ? void 0 : _a.some(({ action_id }) => action_id === action.id);
6283
6293
  if (isExistedPoll) {
6284
6294
  newValue.form_submit_meta =
@@ -6290,7 +6300,7 @@ const Container$4 = ({ node, indexNumber }) => {
6290
6300
  newValue.form_submit_meta = (_d = newValue.form_submit_meta) === null || _d === void 0 ? void 0 : _d.concat([
6291
6301
  {
6292
6302
  key: action === null || action === void 0 ? void 0 : action.key,
6293
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
6303
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
6294
6304
  value: '',
6295
6305
  action_id: action === null || action === void 0 ? void 0 : action.id,
6296
6306
  },
@@ -6339,7 +6349,7 @@ const Container$3 = ({ node }) => {
6339
6349
  const handleOnChange = (action) => {
6340
6350
  if (params.bot_id &&
6341
6351
  action &&
6342
- action.type === index$2.NodeActionType.ACTION_SSO_REDIRECT) {
6352
+ action.type === index$3.NodeActionType.ACTION_SSO_REDIRECT) {
6343
6353
  const currentState = {
6344
6354
  params: Object.assign(Object.assign(Object.assign({}, params), node === null || node === void 0 ? void 0 : node._message), { action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key, mode: 'inline' }),
6345
6355
  listNodes,
@@ -6362,7 +6372,7 @@ const Container$3 = ({ node }) => {
6362
6372
  urlObj.searchParams.set('mode', 'inline');
6363
6373
  urlObj.searchParams.set('source', 'subot-inline');
6364
6374
  const returnUrl = urlObj.href;
6365
- window.location.href = `${index$3.SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
6375
+ window.location.href = `${index$4.SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
6366
6376
  }
6367
6377
  }
6368
6378
  };
@@ -6412,8 +6422,8 @@ const Container$2 = ({ node, indexNumber }) => {
6412
6422
  const handleOnChange = (action, formSubmitMeta) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
6413
6423
  if (!action)
6414
6424
  return;
6415
- const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
6416
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
6425
+ const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
6426
+ (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
6417
6427
  const newValue = Object.assign(Object.assign({}, value), { action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key, form_submit_meta: formSubmitMeta });
6418
6428
  if (actionWithOther) {
6419
6429
  setValue(newValue);
@@ -6482,12 +6492,12 @@ const Container$1 = ({ onClickStart }) => {
6482
6492
  React__default["default"].createElement(Container$s, { node: foundNode, onClickStart: onClickStart })));
6483
6493
  }
6484
6494
  const node = foundNode;
6485
- const nodeType = index$2.NodeType[node.type].valueOf();
6486
- const nodeTypeSSO = (_a = index$2.NodePosition[node.position]) === null || _a === void 0 ? void 0 : _a.valueOf();
6487
- let NodeComponent = node.position === index$2.NodePosition.SSO
6495
+ const nodeType = index$3.NodeType[node.type].valueOf();
6496
+ const nodeTypeSSO = (_a = index$3.NodePosition[node.position]) === null || _a === void 0 ? void 0 : _a.valueOf();
6497
+ let NodeComponent = node.position === index$3.NodePosition.SSO
6488
6498
  ? SubotInlineNodeBase$1[nodeTypeSSO]
6489
6499
  : SubotInlineNodeBase$1[nodeType];
6490
- if (node.is_multi_select && node.type !== index$2.NodeType.POLL) {
6500
+ if (node.is_multi_select && node.type !== index$3.NodeType.POLL) {
6491
6501
  NodeComponent = SubotInlineNodeBase$1['MULTIPLE'];
6492
6502
  }
6493
6503
  return (React__default["default"].createElement(framerMotion.motion.div, { key: node.id, initial: { opacity: 1, y: -300 }, animate: { opacity: 1, y: 0 }, transition: {
@@ -6558,7 +6568,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
6558
6568
  React__default["default"].createElement(Close, null))),
6559
6569
  typeFormProps && locale ? (React__default["default"].createElement(TypeFormView, { locale: locale, typeFormProps: typeFormProps })) : (React__default["default"].createElement(NodeContextProvider, null,
6560
6570
  React__default["default"].createElement("div", { className: "subot-inline-revamp-container", "data-show-footer": isShowFooter },
6561
- loading && !isShowFooter && React__default["default"].createElement(index$a.Loading, { className: "si-loading" }),
6571
+ loading && !isShowFooter && React__default["default"].createElement(index$b.Loading, { className: "si-loading" }),
6562
6572
  React__default["default"].createElement(Container$1, { onClickStart: () => {
6563
6573
  setIsDisplayFullMobile(true);
6564
6574
  } })),
@@ -6578,7 +6588,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
6578
6588
  if (isFullContainer) {
6579
6589
  const showLeftInfo = hasSubotLeftInfo(subotSettingData);
6580
6590
  return (React__default["default"].createElement(StyledContainerFullscreen, { className: "si-container-fs", style: styleFullContainer, "data-has-left-info": showLeftInfo },
6581
- React__default["default"].createElement(index$b.Container, { className: core.clsx('si-container', {
6591
+ React__default["default"].createElement(index$c.Container, { className: core.clsx('si-container', {
6582
6592
  'si-typeform-container': Boolean(typeFormProps),
6583
6593
  'si-no-left-info': !showLeftInfo,
6584
6594
  }) },
@@ -6603,7 +6613,7 @@ const Container = () => {
6603
6613
  if (!foundNode)
6604
6614
  return '';
6605
6615
  return (foundNode.inline_background ||
6606
- ((_b = (_a = foundNode.intents) === null || _a === void 0 ? void 0 : _a.find((i) => i.type === index$2.NodeIntentType.BOT_BACKGROUND_IMAGE)) === null || _b === void 0 ? void 0 : _b.url));
6616
+ ((_b = (_a = foundNode.intents) === null || _a === void 0 ? void 0 : _a.find((i) => i.type === index$3.NodeIntentType.BOT_BACKGROUND_IMAGE)) === null || _b === void 0 ? void 0 : _b.url));
6607
6617
  }, [listNodes, activeId]);
6608
6618
  const subotSettingData = React.useMemo(() => {
6609
6619
  const subotInlineSettings = listNodes[0];
@@ -6656,7 +6666,7 @@ const Root = styled__default["default"](core.Box) `
6656
6666
  `}
6657
6667
  }
6658
6668
  `;
6659
- const Inner = styled__default["default"](index$b.Container) `
6669
+ const Inner = styled__default["default"](index$c.Container) `
6660
6670
  display: flex;
6661
6671
  gap: 24px;
6662
6672
 
@@ -6862,9 +6872,7 @@ const subotInlineImpression = (data) => tslib_es6.__awaiter(void 0, void 0, void
6862
6872
  /** inline message */
6863
6873
  const subotInlineMessage = (data) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
6864
6874
  try {
6865
- return yield togetherComponentGlobalContext.callApi(getSubotApiPath(PATHS$1.GET_INLINE_MESSAGE), 'POST', {
6866
- data,
6867
- });
6875
+ return yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.GET_INLINE_MESSAGE), 'chat', data);
6868
6876
  }
6869
6877
  catch (error) { }
6870
6878
  });
@@ -6920,7 +6928,7 @@ const SubotInlineDescription$1 = styled__default["default"].div `
6920
6928
  color: #595959;
6921
6929
  font-style: italic;
6922
6930
  `;
6923
- const SubotInlineFinalButton = styled__default["default"](index$8.Button) `
6931
+ const SubotInlineFinalButton = styled__default["default"](index$9.Button) `
6924
6932
  position: relative;
6925
6933
  min-width: 180px;
6926
6934
  svg {
@@ -7308,8 +7316,8 @@ const SubotInlineActionListContainer = styled__default["default"].div `
7308
7316
  const SubotInlineAction = ({ actions, value, onChange, htmlType, node_type, formSubmitMeta, }) => {
7309
7317
  const className = React.useMemo(() => {
7310
7318
  switch (node_type) {
7311
- case index$2.NodeType.IMAGE:
7312
- case index$2.NodeType.REACTION:
7319
+ case index$3.NodeType.IMAGE:
7320
+ case index$3.NodeType.REACTION:
7313
7321
  return 'list-container';
7314
7322
  default:
7315
7323
  return '';
@@ -7321,7 +7329,7 @@ const SubotInlineAction = ({ actions, value, onChange, htmlType, node_type, form
7321
7329
  })))));
7322
7330
  };
7323
7331
 
7324
- const ButtonStyled = styled__default["default"](index$8.Button) `
7332
+ const ButtonStyled = styled__default["default"](index$9.Button) `
7325
7333
  &:disabled {
7326
7334
  background-color: rgb(242, 242, 242);
7327
7335
  color: rgb(140, 140, 140);
@@ -7373,8 +7381,8 @@ const SubotInlineActionTextChoice = ({ action, onChange, active, htmlType, formS
7373
7381
  const { trackingCommonInline } = React.useContext(SubotInlineContext);
7374
7382
  const inputRef = React.useRef(null);
7375
7383
  const [otherText, setOtherText] = React.useState('');
7376
- const isActionPollWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
7377
- const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
7384
+ const isActionPollWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
7385
+ const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
7378
7386
  isActionPollWithOther;
7379
7387
  const onChangeTextArea = (evt) => {
7380
7388
  setOtherText(evt.target.value);
@@ -7382,7 +7390,7 @@ const SubotInlineActionTextChoice = ({ action, onChange, active, htmlType, formS
7382
7390
  onChange === null || onChange === void 0 ? void 0 : onChange(action, [
7383
7391
  {
7384
7392
  key: KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD,
7385
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
7393
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
7386
7394
  value: evt.target.value,
7387
7395
  action_id: action.id,
7388
7396
  },
@@ -7433,12 +7441,12 @@ const SubotInlinePollChoice = ({ active, action, onChange, htmlType, node_type,
7433
7441
  onChange &&
7434
7442
  onChange({
7435
7443
  key: (action === null || action === void 0 ? void 0 : action.key) || '',
7436
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7444
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7437
7445
  value: '',
7438
7446
  action_id: action === null || action === void 0 ? void 0 : action.id,
7439
7447
  });
7440
7448
  };
7441
- if (node_type === index$2.NodeType.RESULT_POLL)
7449
+ if (node_type === index$3.NodeType.RESULT_POLL)
7442
7450
  return (React__default["default"].createElement(SubotInlineActionItemContainer, null,
7443
7451
  React__default["default"].createElement(SubotInlineActionPollChoiceResult, { percent: (action === null || action === void 0 ? void 0 : action.percent) || 0, is_chosen: action === null || action === void 0 ? void 0 : action.is_chosen },
7444
7452
  React__default["default"].createElement("div", { className: "number" }, action === null || action === void 0 ? void 0 :
@@ -7454,12 +7462,12 @@ const SubotInlinePollChoiceImage = ({ active, action, onChange, htmlType, node_t
7454
7462
  onChange &&
7455
7463
  onChange({
7456
7464
  key: action === null || action === void 0 ? void 0 : action.key,
7457
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7465
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7458
7466
  value: '',
7459
7467
  action_id: action === null || action === void 0 ? void 0 : action.id,
7460
7468
  });
7461
7469
  };
7462
- if (node_type === index$2.NodeType.RESULT_POLL)
7470
+ if (node_type === index$3.NodeType.RESULT_POLL)
7463
7471
  // TODO: Update layout result poll image
7464
7472
  return (React__default["default"].createElement(SubotInlineActionItemContainer, null,
7465
7473
  React__default["default"].createElement(SubotInlineActionPollChoiceResult, { percent: (action === null || action === void 0 ? void 0 : action.percent) || 0, is_chosen: action === null || action === void 0 ? void 0 : action.is_chosen },
@@ -7479,7 +7487,7 @@ const SubotInlineRatingStar = ({ action, value, onChange, }) => {
7479
7487
  : 0, changeRating: (star) => {
7480
7488
  const _value = {
7481
7489
  key: action === null || action === void 0 ? void 0 : action.key,
7482
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7490
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7483
7491
  value: star.toString(),
7484
7492
  action_id: action === null || action === void 0 ? void 0 : action.id,
7485
7493
  };
@@ -7489,12 +7497,12 @@ const SubotInlineRatingStar = ({ action, value, onChange, }) => {
7489
7497
  const SubotInlineTextArea = ({ action, value, onChange, }) => {
7490
7498
  return (React__default["default"].createElement(SubotInlineActionItemContainer, null,
7491
7499
  React__default["default"].createElement(SubotInlineActionRatingDescriptionContainer, null,
7492
- React__default["default"].createElement(index$c.TextArea, { placeholder: action === null || action === void 0 ? void 0 : action.label, value: value && typeof value !== 'string' && (value === null || value === void 0 ? void 0 : value.value)
7500
+ React__default["default"].createElement(index$d.TextArea, { placeholder: action === null || action === void 0 ? void 0 : action.label, value: value && typeof value !== 'string' && (value === null || value === void 0 ? void 0 : value.value)
7493
7501
  ? value === null || value === void 0 ? void 0 : value.value
7494
7502
  : '', onChange: (evt) => {
7495
7503
  const _value = {
7496
7504
  key: action === null || action === void 0 ? void 0 : action.key,
7497
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7505
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7498
7506
  value: evt.target.value,
7499
7507
  action_id: action === null || action === void 0 ? void 0 : action.id,
7500
7508
  };
@@ -7517,7 +7525,7 @@ const SubotInlineReviewChoice = ({ active, action, onChange, }) => (React__defau
7517
7525
  React__default["default"].createElement(SubotInlineButtonReview, { className: classNames__default["default"](!!active && 'active'), onClick: () => onChange &&
7518
7526
  onChange({
7519
7527
  key: action === null || action === void 0 ? void 0 : action.key,
7520
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7528
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
7521
7529
  value: '',
7522
7530
  action_id: action === null || action === void 0 ? void 0 : action.id,
7523
7531
  }) },
@@ -7526,21 +7534,21 @@ const SubotInlinePollResult = ({ action, }) => (React__default["default"].create
7526
7534
  React__default["default"].createElement(SubotInlineActionPollResult, null, action === null || action === void 0 ? void 0 : action.label)));
7527
7535
  const SubotInlineActionBase = {
7528
7536
  'user-image': SubotInlineActionImageChoice,
7529
- [index$2.NodeActionType.USER_CHOICE_TEXT]: SubotInlineActionTextChoice,
7530
- [index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT]: SubotInlineActionTextChoice,
7531
- [index$2.NodeActionType.USER_CHOICE_IMAGE]: SubotInlineActionImageChoice,
7532
- [index$2.NodeActionType.ACTION_SSO_REDIRECT]: SubotInlineActionSSO,
7533
- [index$2.NodeActionType.POLL_CHOICE]: SubotInlinePollChoice,
7534
- [index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT]: SubotInlineActionTextChoice,
7535
- [index$2.NodeActionType.POLL_CHOICE_IMAGE]: SubotInlinePollChoiceImage,
7536
- [index$2.NodeActionType.RATING_STAR]: SubotInlineRatingStar,
7537
- [index$2.NodeActionType.RATING_DESCRIPTION]: SubotInlineTextArea,
7538
- [index$2.NodeActionType.LIKE_CHOICE]: SubotInlineLikeChoice,
7539
- [index$2.NodeActionType.DISLIKE_CHOICE]: SubotInlineDislikeChoice,
7540
- [index$2.NodeActionType.REVIEW_CHOICE]: SubotInlineReviewChoice,
7541
- [index$2.NodeActionType.REVIEW_DESCRIPTION]: SubotInlineTextArea,
7542
- [index$2.NodeActionType.RESULT_BUTTON]: SubotInlineActionTextChoice,
7543
- [index$2.NodeActionType.POLL_RESULT]: SubotInlinePollResult,
7537
+ [index$3.NodeActionType.USER_CHOICE_TEXT]: SubotInlineActionTextChoice,
7538
+ [index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT]: SubotInlineActionTextChoice,
7539
+ [index$3.NodeActionType.USER_CHOICE_IMAGE]: SubotInlineActionImageChoice,
7540
+ [index$3.NodeActionType.ACTION_SSO_REDIRECT]: SubotInlineActionSSO,
7541
+ [index$3.NodeActionType.POLL_CHOICE]: SubotInlinePollChoice,
7542
+ [index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT]: SubotInlineActionTextChoice,
7543
+ [index$3.NodeActionType.POLL_CHOICE_IMAGE]: SubotInlinePollChoiceImage,
7544
+ [index$3.NodeActionType.RATING_STAR]: SubotInlineRatingStar,
7545
+ [index$3.NodeActionType.RATING_DESCRIPTION]: SubotInlineTextArea,
7546
+ [index$3.NodeActionType.LIKE_CHOICE]: SubotInlineLikeChoice,
7547
+ [index$3.NodeActionType.DISLIKE_CHOICE]: SubotInlineDislikeChoice,
7548
+ [index$3.NodeActionType.REVIEW_CHOICE]: SubotInlineReviewChoice,
7549
+ [index$3.NodeActionType.REVIEW_DESCRIPTION]: SubotInlineTextArea,
7550
+ [index$3.NodeActionType.RESULT_BUTTON]: SubotInlineActionTextChoice,
7551
+ [index$3.NodeActionType.POLL_RESULT]: SubotInlinePollResult,
7544
7552
  };
7545
7553
 
7546
7554
  const SubotInlineFooter = ({ onBack, onNext: onSubmit, hideBack, hideNext, nextText, backProps, nextProps, }) => {
@@ -7548,7 +7556,7 @@ const SubotInlineFooter = ({ onBack, onNext: onSubmit, hideBack, hideNext, nextT
7548
7556
  const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
7549
7557
  const { nodes: listNodes, activeId, params, onNext, trackingCommonInline, } = React.useContext(SubotInlineContext);
7550
7558
  const nodeMessage = listNodes.find((nodeItem) => nodeItem.id == activeId);
7551
- const actionNextChoice = (_a = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$2.NodeActionType.USER_CHOICE_NEXT);
7559
+ const actionNextChoice = (_a = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$3.NodeActionType.USER_CHOICE_NEXT);
7552
7560
  const handleNextChoice = () => {
7553
7561
  if (nodeMessage && actionNextChoice) {
7554
7562
  const nextValue = {
@@ -7559,7 +7567,7 @@ const SubotInlineFooter = ({ onBack, onNext: onSubmit, hideBack, hideNext, nextT
7559
7567
  onNext === null || onNext === void 0 ? void 0 : onNext(Object.assign(Object.assign(Object.assign({}, params), nextValue), nodeMessage._message));
7560
7568
  }
7561
7569
  };
7562
- const actionSubmitMultiple = (_b = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _b === void 0 ? void 0 : _b.find((act) => act.type === index$2.NodeActionType.ACTION_MULTIPLE_BUTTON);
7570
+ const actionSubmitMultiple = (_b = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _b === void 0 ? void 0 : _b.find((act) => act.type === index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
7563
7571
  return (React__default["default"].createElement(SubotInlineFooterStyled, null,
7564
7572
  !hideBack && (React__default["default"].createElement(ButtonBackStyled, Object.assign({ size: "md", color: "secondary", onClick: onBack }, backProps, { className: classNames__default["default"]('pointer-event-child-none', backProps === null || backProps === void 0 ? void 0 : backProps.className) }, trackingCommonInline, { "data-event-action": "Back Click" }),
7565
7573
  React__default["default"].createElement(ArrowLeft, { style: { marginRight: 10 } }),
@@ -7618,7 +7626,7 @@ const SubotInlineIntentTitle = styled__default["default"].h3 `
7618
7626
  font-size: 20px;
7619
7627
  }
7620
7628
  `;
7621
- const SubotInlineRecalculateButton = styled__default["default"](index$8.Button) `
7629
+ const SubotInlineRecalculateButton = styled__default["default"](index$9.Button) `
7622
7630
  &.bot-recalculate {
7623
7631
  svg {
7624
7632
  path {
@@ -7634,7 +7642,7 @@ const SubotInlineRecalculateButton = styled__default["default"](index$8.Button)
7634
7642
  }
7635
7643
  }
7636
7644
  `;
7637
- const SubotInlineIntentButton = styled__default["default"](index$8.Button) `
7645
+ const SubotInlineIntentButton = styled__default["default"](index$9.Button) `
7638
7646
  border: 2px solid transparent;
7639
7647
  `;
7640
7648
  const SubotInlineItemIcon = styled__default["default"].div `
@@ -7678,7 +7686,7 @@ const SubotInlineItemIcon = styled__default["default"].div `
7678
7686
  }
7679
7687
  }
7680
7688
  `;
7681
- styled__default["default"](index$8.Button) ``;
7689
+ styled__default["default"](index$9.Button) ``;
7682
7690
  const SubotInlineIntentFirstTextWrapper = styled__default["default"].div `
7683
7691
  display: flex;
7684
7692
  align-items: flex-start;
@@ -7914,25 +7922,25 @@ const SubotInlineIntentFinal = ({ intents: intentsProps, }) => {
7914
7922
  const rest = [];
7915
7923
  intentsProps === null || intentsProps === void 0 ? void 0 : intentsProps.map((intent) => {
7916
7924
  switch (intent === null || intent === void 0 ? void 0 : intent.type) {
7917
- case index$2.NodeIntentType.BOT_MAIN_IMAGE:
7925
+ case index$3.NodeIntentType.BOT_MAIN_IMAGE:
7918
7926
  mainIntents.push(intent);
7919
7927
  break;
7920
- case index$2.NodeIntentType.BOT_MAIN_TITLE:
7928
+ case index$3.NodeIntentType.BOT_MAIN_TITLE:
7921
7929
  mainIntents.push(intent);
7922
7930
  break;
7923
- case index$2.NodeIntentType.BOT_MAIN_BODY:
7931
+ case index$3.NodeIntentType.BOT_MAIN_BODY:
7924
7932
  mainIntents.push(intent);
7925
7933
  break;
7926
- case index$2.NodeIntentType.BOT_MAIN_BUTTON:
7934
+ case index$3.NodeIntentType.BOT_MAIN_BUTTON:
7927
7935
  mainIntents.push(intent);
7928
7936
  break;
7929
- case index$2.NodeIntentType.BOT_RECALCULATE:
7937
+ case index$3.NodeIntentType.BOT_RECALCULATE:
7930
7938
  mainIntents.push(intent);
7931
7939
  break;
7932
- case index$2.NodeIntentType.BOT_SUB_TITLE:
7940
+ case index$3.NodeIntentType.BOT_SUB_TITLE:
7933
7941
  subIntents.push(intent);
7934
7942
  break;
7935
- case index$2.NodeIntentType.BOT_SUB_BODY:
7943
+ case index$3.NodeIntentType.BOT_SUB_BODY:
7936
7944
  subIntents.push(intent);
7937
7945
  break;
7938
7946
  default:
@@ -8065,7 +8073,7 @@ const SubotInlineIntentSSO = ({ intent, }) => {
8065
8073
  /*************************** NodeIntentType: 'bot-title' ***********************/
8066
8074
  //#region
8067
8075
  const SubotInlineIntentBotTitle = ({ intent, indexNumber, }) => {
8068
- const isShowLabel = ![index$2.NodeIntentType.SSO_INTENT].includes(intent === null || intent === void 0 ? void 0 : intent.type);
8076
+ const isShowLabel = ![index$3.NodeIntentType.SSO_INTENT].includes(intent === null || intent === void 0 ? void 0 : intent.type);
8069
8077
  return (React__default["default"].createElement(SubotInlineIntentFirstTextContainer, null,
8070
8078
  React__default["default"].createElement(SubotInlineIntentFirstTextWrapper, null,
8071
8079
  indexNumber && (React__default["default"].createElement("div", { className: "number" },
@@ -8073,9 +8081,9 @@ const SubotInlineIntentBotTitle = ({ intent, indexNumber, }) => {
8073
8081
  ".")),
8074
8082
  isShowLabel &&
8075
8083
  intent &&
8076
- [index$2.NodeIntentType.BOT_TEXT, index$2.NodeIntentType.BOT_BUTTON].includes(intent === null || intent === void 0 ? void 0 : intent.type) && React__default["default"].createElement(Markdown, { className: "title" }, intent.label)),
8084
+ [index$3.NodeIntentType.BOT_TEXT, index$3.NodeIntentType.BOT_BUTTON].includes(intent === null || intent === void 0 ? void 0 : intent.type) && React__default["default"].createElement(Markdown, { className: "title" }, intent.label)),
8077
8085
  intent &&
8078
- [index$2.NodeIntentType.BOT_IMAGE].includes(intent === null || intent === void 0 ? void 0 : intent.type) && (React__default["default"].createElement(SubotInlineIntentFirstImageWrapper, null,
8086
+ [index$3.NodeIntentType.BOT_IMAGE].includes(intent === null || intent === void 0 ? void 0 : intent.type) && (React__default["default"].createElement(SubotInlineIntentFirstImageWrapper, null,
8079
8087
  React__default["default"].createElement(SubotInlineIntentBotImage, { intent: intent })))));
8080
8088
  };
8081
8089
  //#endregion
@@ -8268,26 +8276,26 @@ const SubotInlineIntentThankYouBody = ({ intent, }) => {
8268
8276
  /*************************** END - NodeIntentType: 'thank-you-body' ************/
8269
8277
  /*******************************************************************************/
8270
8278
  const SubotInlineIntentBase = {
8271
- [index$2.NodeIntentType.BOT_TEXT]: SubotInlineIntentBotText,
8272
- [index$2.NodeIntentType.BOT_IMAGE]: SubotInlineIntentBotImage,
8273
- [index$2.NodeIntentType.BOT_BUTTON]: SubotInlineIntentBotButton,
8274
- [index$2.NodeIntentType.BOT_URL]: SubotInlineIntentUrl,
8275
- [index$2.NodeIntentType.BOT_RECALCULATE]: SubotInlineIntentBotRecalculate,
8276
- [index$2.NodeIntentType.BOT_MAIN_TITLE]: SubotInlineIntentBotMainTitle,
8277
- [index$2.NodeIntentType.BOT_MAIN_IMAGE]: SubotInlineIntentBotMainImage,
8278
- [index$2.NodeIntentType.BOT_MAIN_BODY]: SubotInlineIntentBotMainBody,
8279
- [index$2.NodeIntentType.BOT_MAIN_BUTTON]: SubotInlineIntentBotMainButton,
8280
- [index$2.NodeIntentType.BOT_SUB_TITLE]: SubotInlineIntentBotMainTitle,
8281
- [index$2.NodeIntentType.BOT_SUB_BODY]: SubotInlineIntentBotMainBody,
8282
- [index$2.NodeIntentType.BOT_LANDING_PAGE_URL]: SubotInlineIntentBotText,
8283
- [index$2.NodeIntentType.BOT_LANDING_PAGE_BUTTON]: SubotInlineIntentBotText,
8284
- [index$2.NodeIntentType.BOT_RISK_SCREEN]: SubotInlineIntentBotRiskScreener,
8285
- [index$2.NodeIntentType.BOT_RELATED_ARTICLE]: SubotInlineIntentBotRelatedArticle,
8286
- [index$2.NodeIntentType.THANK_YOU_IMAGE]: SubotInlineIntentThankYouImage,
8287
- [index$2.NodeIntentType.THANK_YOU_TITLE]: SubotInlineIntentThankYouTitle,
8288
- [index$2.NodeIntentType.THANK_YOU_BODY]: SubotInlineIntentThankYouBody,
8279
+ [index$3.NodeIntentType.BOT_TEXT]: SubotInlineIntentBotText,
8280
+ [index$3.NodeIntentType.BOT_IMAGE]: SubotInlineIntentBotImage,
8281
+ [index$3.NodeIntentType.BOT_BUTTON]: SubotInlineIntentBotButton,
8282
+ [index$3.NodeIntentType.BOT_URL]: SubotInlineIntentUrl,
8283
+ [index$3.NodeIntentType.BOT_RECALCULATE]: SubotInlineIntentBotRecalculate,
8284
+ [index$3.NodeIntentType.BOT_MAIN_TITLE]: SubotInlineIntentBotMainTitle,
8285
+ [index$3.NodeIntentType.BOT_MAIN_IMAGE]: SubotInlineIntentBotMainImage,
8286
+ [index$3.NodeIntentType.BOT_MAIN_BODY]: SubotInlineIntentBotMainBody,
8287
+ [index$3.NodeIntentType.BOT_MAIN_BUTTON]: SubotInlineIntentBotMainButton,
8288
+ [index$3.NodeIntentType.BOT_SUB_TITLE]: SubotInlineIntentBotMainTitle,
8289
+ [index$3.NodeIntentType.BOT_SUB_BODY]: SubotInlineIntentBotMainBody,
8290
+ [index$3.NodeIntentType.BOT_LANDING_PAGE_URL]: SubotInlineIntentBotText,
8291
+ [index$3.NodeIntentType.BOT_LANDING_PAGE_BUTTON]: SubotInlineIntentBotText,
8292
+ [index$3.NodeIntentType.BOT_RISK_SCREEN]: SubotInlineIntentBotRiskScreener,
8293
+ [index$3.NodeIntentType.BOT_RELATED_ARTICLE]: SubotInlineIntentBotRelatedArticle,
8294
+ [index$3.NodeIntentType.THANK_YOU_IMAGE]: SubotInlineIntentThankYouImage,
8295
+ [index$3.NodeIntentType.THANK_YOU_TITLE]: SubotInlineIntentThankYouTitle,
8296
+ [index$3.NodeIntentType.THANK_YOU_BODY]: SubotInlineIntentThankYouBody,
8289
8297
  /** intents fake for sso block */
8290
- [index$2.NodeIntentType.SSO_INTENT]: SubotInlineIntentSSO,
8298
+ [index$3.NodeIntentType.SSO_INTENT]: SubotInlineIntentSSO,
8291
8299
  };
8292
8300
 
8293
8301
  /***************** type: TEXT, IMAGE ***************/
@@ -8309,8 +8317,8 @@ const SubotInlineNode = ({ node, indexNumber, }) => {
8309
8317
  const handleOnChange = (action, formSubmitMeta) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
8310
8318
  if (!action)
8311
8319
  return;
8312
- const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
8313
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
8320
+ const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
8321
+ (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
8314
8322
  const newValue = Object.assign(Object.assign({}, value), { action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key, form_submit_meta: formSubmitMeta });
8315
8323
  if (actionWithOther) {
8316
8324
  setValue(newValue);
@@ -8403,7 +8411,7 @@ const SubotInlineNodeFinal = ({ node, }) => {
8403
8411
  const botType = (_a = botItem === null || botItem === void 0 ? void 0 : botItem.extra_settings) === null || _a === void 0 ? void 0 : _a.subot_type;
8404
8412
  const suggestedServiceIntents = React.useMemo(() => {
8405
8413
  var _a;
8406
- return (((_a = node === null || node === void 0 ? void 0 : node.intents) === null || _a === void 0 ? void 0 : _a.filter((i) => i.type === index$2.NodeIntentType.BOT_SUGGESTED_SERVICE)) || []);
8414
+ return (((_a = node === null || node === void 0 ? void 0 : node.intents) === null || _a === void 0 ? void 0 : _a.filter((i) => i.type === index$3.NodeIntentType.BOT_SUGGESTED_SERVICE)) || []);
8407
8415
  }, []);
8408
8416
  return (React__default["default"].createElement(SubotInlineFinalContainer, null,
8409
8417
  React__default["default"].createElement("div", { ref: flag, className: "hhg-flag", style: {
@@ -8425,7 +8433,7 @@ const SubotInlineNodeFinal = ({ node, }) => {
8425
8433
  React__default["default"].createElement(ArrowDown, { style: { marginLeft: 10 } }))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
8426
8434
  f({ id: 'subotInline.showLess', defaultMessage: 'Show less' }),
8427
8435
  React__default["default"].createElement(ArrowUp, { style: { marginLeft: 10 } })))))),
8428
- botType === index$2.SubotType.voucherAcuvue && (React__default["default"].createElement(SubotInlineVoucherLeftUI, { clientId: (_b = botItem.extra_settings) === null || _b === void 0 ? void 0 : _b.client_id, voucherAnswers: extractVoucherAnswers(nodes, botItem) }))));
8436
+ botType === index$3.SubotType.voucherAcuvue && (React__default["default"].createElement(SubotInlineVoucherLeftUI, { clientId: (_b = botItem.extra_settings) === null || _b === void 0 ? void 0 : _b.client_id, voucherAnswers: extractVoucherAnswers(nodes, botItem) }))));
8429
8437
  };
8430
8438
 
8431
8439
  const SubotInlineResultButton = styled__default["default"].span `
@@ -8468,7 +8476,7 @@ const SubotInlineNodeFinalThankYou = ({ node, }) => {
8468
8476
  const { params, onNext } = React.useContext(SubotInlineContext);
8469
8477
  const resultButton = React.useMemo(() => {
8470
8478
  var _a;
8471
- const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$2.NodeActionType.RESULT_BUTTON);
8479
+ const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$3.NodeActionType.RESULT_BUTTON);
8472
8480
  if (_resultButton)
8473
8481
  return _resultButton;
8474
8482
  return null;
@@ -8488,10 +8496,18 @@ const SubotInlineNodeFinalThankYou = ({ node, }) => {
8488
8496
 
8489
8497
  const SubotInlineNodeForm = ({ node, indexNumber, }) => {
8490
8498
  var _a;
8491
- const { data: { locale }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
8499
+ const { data: { locale }, formatMessage: f, action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
8492
8500
  const { params, onPrev, onSubmit, trackingCommonInline, nodes, activeId } = React.useContext(SubotInlineContext);
8493
8501
  const handleSubmit = (data) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
8494
8502
  const res = yield subotInlineMessage(Object.assign(Object.assign(Object.assign(Object.assign({}, params), node._message), data), getCurrentTotalDynamicScore(nodes, activeId, data.action_id, data.form_submit_meta)));
8503
+ if (index$2.isSubotCaptchaForbidden(res)) {
8504
+ pushNotifications({
8505
+ title: '',
8506
+ message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
8507
+ type: 'warning',
8508
+ });
8509
+ return;
8510
+ }
8495
8511
  if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
8496
8512
  const _b = res === null || res === void 0 ? void 0 : res._data, { node: _node } = _b, restData = tslib_es6.__rest(_b, ["node"]);
8497
8513
  const _nextNode = Object.assign(Object.assign({}, _node), { _message: Object.assign(Object.assign({}, restData), { node_id: _node.id }) });
@@ -8556,7 +8572,7 @@ const SubotInlineNodeMultiple = ({ node, indexNumber, }) => {
8556
8572
  const [value, setValue] = React.useState((node === null || node === void 0 ? void 0 : node._message) || {});
8557
8573
  const submitButton = React.useMemo(() => {
8558
8574
  var _a;
8559
- const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$2.NodeActionType.ACTION_MULTIPLE_BUTTON);
8575
+ const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
8560
8576
  if (_submitButton)
8561
8577
  return _submitButton;
8562
8578
  return null;
@@ -8580,7 +8596,7 @@ const SubotInlineNodeMultiple = ({ node, indexNumber, }) => {
8580
8596
  });
8581
8597
  return;
8582
8598
  }
8583
- else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$2.NodeMultipleOptions.RANGE &&
8599
+ else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.RANGE &&
8584
8600
  activeActions.length < (node === null || node === void 0 ? void 0 : node.from)) {
8585
8601
  pushNotifications({
8586
8602
  title: '',
@@ -8595,7 +8611,7 @@ const SubotInlineNodeMultiple = ({ node, indexNumber, }) => {
8595
8611
  });
8596
8612
  return;
8597
8613
  }
8598
- else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$2.NodeMultipleOptions.EXACT_NUMBER &&
8614
+ else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.EXACT_NUMBER &&
8599
8615
  activeActions.length !== (node === null || node === void 0 ? void 0 : node.from)) {
8600
8616
  pushNotifications({
8601
8617
  message: f({
@@ -8616,8 +8632,8 @@ const SubotInlineNodeMultiple = ({ node, indexNumber, }) => {
8616
8632
  var _a, _b;
8617
8633
  if (action) {
8618
8634
  const _value = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, selected_actions: Object.assign({}, value === null || value === void 0 ? void 0 : value.selected_actions) })));
8619
- if ((action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
8620
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
8635
+ if ((action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
8636
+ (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
8621
8637
  const isExistedPoll = (_value === null || _value === void 0 ? void 0 : _value.selected_actions) && action.id in _value.selected_actions;
8622
8638
  if (isExistedPoll) {
8623
8639
  if (formSubmitMeta) {
@@ -8716,13 +8732,22 @@ callBack, }) => {
8716
8732
  }
8717
8733
  setIsLoading(true);
8718
8734
  try {
8719
- const result = yield togetherComponentGlobalContext.callApi(getSubotApiPath(PATHS$1.POST_SEND_OTP), 'POST', {
8720
- data: {
8721
- phone_number: parsedPhone.nationalNumber,
8722
- area_code: `+${parsedPhone.countryCallingCode}`,
8723
- },
8735
+ const result = yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.POST_SEND_OTP), 'sms_otp', {
8736
+ phone_number: parsedPhone.nationalNumber,
8737
+ area_code: `+${parsedPhone.countryCallingCode}`,
8724
8738
  });
8725
8739
  setIsLoading(false);
8740
+ if (index$2.isSubotCaptchaForbidden(result)) {
8741
+ if (countRef.current) {
8742
+ countRef.current.cancel();
8743
+ }
8744
+ pushNotifications({
8745
+ title: '',
8746
+ message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
8747
+ type: 'warning',
8748
+ });
8749
+ return;
8750
+ }
8726
8751
  if ((result === null || result === void 0 ? void 0 : result._status) === 1) {
8727
8752
  if (sentOTP) {
8728
8753
  setIsFinishedCountDown(false);
@@ -8749,7 +8774,7 @@ callBack, }) => {
8749
8774
  message: 'Số điện thoại này đã được xác minh.',
8750
8775
  type: 'success',
8751
8776
  });
8752
- const action = actions.find((action) => action.type === index$2.NodeActionType.USER_SUBMIT_SEND);
8777
+ const action = actions.find((action) => action.type === index$3.NodeActionType.USER_SUBMIT_SEND);
8753
8778
  action && callBack(action, data.phone);
8754
8779
  return;
8755
8780
  }
@@ -8775,14 +8800,20 @@ callBack, }) => {
8775
8800
  return;
8776
8801
  }
8777
8802
  try {
8778
- const result = yield togetherComponentGlobalContext.callApi(getSubotApiPath(PATHS$1.POST_VERIFY_OTP), 'POST', {
8779
- data: {
8780
- phone_number: parsedPhone.nationalNumber,
8781
- area_code: `+${parsedPhone.countryCallingCode}`,
8782
- code: number,
8783
- },
8803
+ const result = yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.POST_VERIFY_OTP), 'sms_verify', {
8804
+ phone_number: parsedPhone.nationalNumber,
8805
+ area_code: `+${parsedPhone.countryCallingCode}`,
8806
+ code: number,
8784
8807
  });
8785
8808
  setIsLoadingVerify(false);
8809
+ if (index$2.isSubotCaptchaForbidden(result)) {
8810
+ pushNotifications({
8811
+ title: '',
8812
+ message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
8813
+ type: 'warning',
8814
+ });
8815
+ return;
8816
+ }
8786
8817
  if ((result === null || result === void 0 ? void 0 : result._status) === 1) {
8787
8818
  pushNotifications({
8788
8819
  title: '',
@@ -8819,7 +8850,7 @@ callBack, }) => {
8819
8850
  return null;
8820
8851
  }
8821
8852
  switch (action.type) {
8822
- case index$2.NodeActionType.USER_SUBMIT_PHONE:
8853
+ case index$3.NodeActionType.USER_SUBMIT_PHONE:
8823
8854
  return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
8824
8855
  React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
8825
8856
  React__default["default"].createElement(reactHookForm.Controller, { name: action.key, control: control, rules: {
@@ -8841,12 +8872,12 @@ callBack, }) => {
8841
8872
  defaultMessage: 'Please enter a valid number.',
8842
8873
  }))),
8843
8874
  React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
8844
- React__default["default"].createElement(index$8.Button, { className: "submit-btn", size: "lg", onClick: handleSendOTP, isDisabled: (!isFinishedCountDown && sentOTP) || isLoading, isLoading: isLoading }, sentOTP ? (React__default["default"].createElement(CountDown$1, { ref: countRef, isFinished: isFinishedCountDown, onFinish: setIsFinishedCountDown })) : (React__default["default"].createElement("span", null, f({
8875
+ React__default["default"].createElement(index$9.Button, { className: "submit-btn", size: "lg", onClick: handleSendOTP, isDisabled: (!isFinishedCountDown && sentOTP) || isLoading, isLoading: isLoading }, sentOTP ? (React__default["default"].createElement(CountDown$1, { ref: countRef, isFinished: isFinishedCountDown, onFinish: setIsFinishedCountDown })) : (React__default["default"].createElement("span", null, f({
8845
8876
  id: 'subot.sendOTP.button',
8846
8877
  defaultMessage: 'Send OTP',
8847
8878
  })))))));
8848
8879
  } })));
8849
- case index$2.NodeActionType.USER_SUBMIT_NUMBER:
8880
+ case index$3.NodeActionType.USER_SUBMIT_NUMBER:
8850
8881
  if (!sentOTP) {
8851
8882
  return '';
8852
8883
  }
@@ -8866,18 +8897,18 @@ callBack, }) => {
8866
8897
  };
8867
8898
  const renderFormSubmitAndTerms = (action) => {
8868
8899
  switch (action.type) {
8869
- case index$2.NodeActionType.USER_SUBMIT_SEND:
8900
+ case index$3.NodeActionType.USER_SUBMIT_SEND:
8870
8901
  if (!sentOTP)
8871
8902
  return '';
8872
8903
  return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
8873
- React__default["default"].createElement(index$8.Button, { className: "submit-btn", size: "lg", isDisabled: isLoadingVerify, isLoading: isLoadingVerify, onClick: (event) => handleOnVerify(event, action) }, action.label)));
8904
+ React__default["default"].createElement(index$9.Button, { className: "submit-btn", size: "lg", isDisabled: isLoadingVerify, isLoading: isLoadingVerify, onClick: (event) => handleOnVerify(event, action) }, action.label)));
8874
8905
  default:
8875
8906
  return '';
8876
8907
  }
8877
8908
  };
8878
8909
  React.useEffect(() => {
8879
8910
  if (phoneNumber) {
8880
- const action = actions.find((action) => action.type === index$2.NodeActionType.USER_SUBMIT_PHONE);
8911
+ const action = actions.find((action) => action.type === index$3.NodeActionType.USER_SUBMIT_PHONE);
8881
8912
  if (action && action.key) {
8882
8913
  setValue(action.key, `+${areaCode}${phoneNumber}`);
8883
8914
  }
@@ -8910,14 +8941,14 @@ const SubotInlineNodeOTP = ({ node, indexNumber, }) => {
8910
8941
  const verifiedPhone = useVerifyPhoneNumber();
8911
8942
  const handleOnVerify = (action, phoneNumber) => {
8912
8943
  var _a;
8913
- const actionPhone = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$2.NodeActionType.USER_SUBMIT_PHONE);
8944
+ const actionPhone = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_PHONE);
8914
8945
  if (!action || !actionPhone) {
8915
8946
  return;
8916
8947
  }
8917
8948
  const form_submit_meta = [
8918
8949
  {
8919
8950
  key: String(actionPhone.key),
8920
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[index$2.NodeActionType.USER_SUBMIT_PHONE],
8951
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_PHONE],
8921
8952
  value: phoneNumber,
8922
8953
  },
8923
8954
  ];
@@ -8954,7 +8985,7 @@ const SubotInlineNodePoll = ({ node, indexNumber, }) => {
8954
8985
  const descriptionNode = useDescriptionPollNode({ node });
8955
8986
  const submitButton = React.useMemo(() => {
8956
8987
  var _a;
8957
- const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$2.NodeActionType.POLL_BUTTON);
8988
+ const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.POLL_BUTTON);
8958
8989
  if (_submitButton)
8959
8990
  return _submitButton;
8960
8991
  return null;
@@ -8962,8 +8993,8 @@ const SubotInlineNodePoll = ({ node, indexNumber, }) => {
8962
8993
  const handleOnChange = (action, formSubmitMeta) => {
8963
8994
  var _a, _b, _c, _d, _e, _f, _g;
8964
8995
  const newValue = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { node_id: node.id, action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, form_submit_meta: [...((value === null || value === void 0 ? void 0 : value.form_submit_meta) || [])] })));
8965
- if ((action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
8966
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
8996
+ if ((action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
8997
+ (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
8967
8998
  const isExistedPoll = (_a = newValue.form_submit_meta) === null || _a === void 0 ? void 0 : _a.some(({ action_id }) => action_id === action.id);
8968
8999
  if (isExistedPoll) {
8969
9000
  newValue.form_submit_meta =
@@ -8975,7 +9006,7 @@ const SubotInlineNodePoll = ({ node, indexNumber, }) => {
8975
9006
  newValue.form_submit_meta = (_d = newValue.form_submit_meta) === null || _d === void 0 ? void 0 : _d.concat([
8976
9007
  {
8977
9008
  key: action === null || action === void 0 ? void 0 : action.key,
8978
- control: index$2.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
9009
+ control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
8979
9010
  value: '',
8980
9011
  action_id: action === null || action === void 0 ? void 0 : action.id,
8981
9012
  },
@@ -9017,7 +9048,7 @@ const SubotInlineNodePoll = ({ node, indexNumber, }) => {
9017
9048
  React__default["default"].createElement(SubotInlineIntentContainer, null,
9018
9049
  React__default["default"].createElement(SubotInlineIntent, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [], indexNumber: indexNumber })),
9019
9050
  React__default["default"].createElement(SubotInlineDescription$1, null, descriptionNode),
9020
- React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$2.NodeActionType.POLL_BUTTON)) === null || _b === void 0 ? void 0 : _b.map((action) => {
9051
+ React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$3.NodeActionType.POLL_BUTTON)) === null || _b === void 0 ? void 0 : _b.map((action) => {
9021
9052
  const NodeAction = SubotInlineActionBase[action === null || action === void 0 ? void 0 : action.type];
9022
9053
  return (NodeAction && (React__default["default"].createElement(NodeAction, { key: action.id, active: activeActions.includes(action.id), action: action, onChange: handleOnChange, htmlType: "checkbox", formSubmitMeta: value === null || value === void 0 ? void 0 : value.form_submit_meta })));
9023
9054
  }))))),
@@ -9041,7 +9072,7 @@ const SubotInlineNodeRating = ({ node, indexNumber, }) => {
9041
9072
  const [isSubmit, setIsSubmit] = React.useState(false);
9042
9073
  const ratingStarValue = React.useMemo(() => {
9043
9074
  var _a;
9044
- const _ratingStar = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$2.NodeActionType.RATING_STAR);
9075
+ const _ratingStar = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$3.NodeActionType.RATING_STAR);
9045
9076
  if (value.form_submit_meta && _ratingStar) {
9046
9077
  const formIndex = value === null || value === void 0 ? void 0 : value.form_submit_meta.findIndex(({ action_id }) => action_id === (_ratingStar === null || _ratingStar === void 0 ? void 0 : _ratingStar.id));
9047
9078
  if (formIndex !== -1)
@@ -9051,7 +9082,7 @@ const SubotInlineNodeRating = ({ node, indexNumber, }) => {
9051
9082
  }, [value === null || value === void 0 ? void 0 : value.form_submit_meta]);
9052
9083
  const submitButton = React.useMemo(() => {
9053
9084
  var _a;
9054
- const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$2.NodeActionType.RATING_BUTTON);
9085
+ const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.RATING_BUTTON);
9055
9086
  if (_submitButton)
9056
9087
  return _submitButton;
9057
9088
  return null;
@@ -9105,7 +9136,7 @@ const SubotInlineNodeRating = ({ node, indexNumber, }) => {
9105
9136
  React__default["default"].createElement(SubotInlineWrapper$1, null,
9106
9137
  React__default["default"].createElement(SubotInlineIntentContainer, null,
9107
9138
  React__default["default"].createElement(SubotInlineIntent, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [], indexNumber: indexNumber })),
9108
- React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$2.NodeActionType.RATING_BUTTON)) === null || _b === void 0 ? void 0 : _b.map((action) => {
9139
+ React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$3.NodeActionType.RATING_BUTTON)) === null || _b === void 0 ? void 0 : _b.map((action) => {
9109
9140
  var _a;
9110
9141
  const NodeAction = SubotInlineActionBase[action === null || action === void 0 ? void 0 : action.type];
9111
9142
  return (NodeAction && (React__default["default"].createElement(NodeAction, { key: action.id, action: action, onChange: handleOnChange, value: (value &&
@@ -9164,7 +9195,7 @@ const SubotInlineNodeResultPoll = ({ node, }) => {
9164
9195
  React__default["default"].createElement(SubotInlineWrapper$1, null,
9165
9196
  React__default["default"].createElement(SubotInlineIntentContainer, null,
9166
9197
  React__default["default"].createElement(SubotInlineIntent, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [] })),
9167
- React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$2.NodeActionType.POLL_BUTTON)) === null || _b === void 0 ? void 0 : _b.map((action) => {
9198
+ React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$3.NodeActionType.POLL_BUTTON)) === null || _b === void 0 ? void 0 : _b.map((action) => {
9168
9199
  const NodeAction = SubotInlineActionBase[action === null || action === void 0 ? void 0 : action.type];
9169
9200
  return (NodeAction && (React__default["default"].createElement(NodeAction, { key: action.id, action: action, htmlType: "checkbox", node_type: node === null || node === void 0 ? void 0 : node.type })));
9170
9201
  })))))));
@@ -9190,15 +9221,15 @@ const SubotInlineNodeReview = ({ node, indexNumber, }) => {
9190
9221
  const [isSubmit, setIsSubmit] = React.useState(false);
9191
9222
  const reviewChoices = React.useMemo(() => {
9192
9223
  var _a;
9193
- return ((_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter(({ type }) => type === index$2.NodeActionType.REVIEW_CHOICE)) || [];
9224
+ return ((_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter(({ type }) => type === index$3.NodeActionType.REVIEW_CHOICE)) || [];
9194
9225
  }, [node === null || node === void 0 ? void 0 : node.actions]);
9195
9226
  const reviewDescriptions = React.useMemo(() => {
9196
9227
  var _a;
9197
- return ((_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter(({ type }) => type === index$2.NodeActionType.REVIEW_DESCRIPTION)) || [];
9228
+ return ((_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter(({ type }) => type === index$3.NodeActionType.REVIEW_DESCRIPTION)) || [];
9198
9229
  }, [node === null || node === void 0 ? void 0 : node.actions]);
9199
9230
  const submitButton = React.useMemo(() => {
9200
9231
  var _a;
9201
- const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$2.NodeActionType.REVIEW_BUTTON);
9232
+ const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.REVIEW_BUTTON);
9202
9233
  if (_submitButton)
9203
9234
  return _submitButton;
9204
9235
  return null;
@@ -9305,7 +9336,7 @@ const SubotInlineNodeSSO = ({ node, indexNumber, }) => {
9305
9336
  const { params, onPrev, nodes, activeId } = React.useContext(SubotInlineContext);
9306
9337
  const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
9307
9338
  const handleOnChange = (action) => {
9308
- if (action && action.type === index$2.NodeActionType.ACTION_SSO_REDIRECT) {
9339
+ if (action && action.type === index$3.NodeActionType.ACTION_SSO_REDIRECT) {
9309
9340
  const currentState = {
9310
9341
  params: Object.assign(Object.assign(Object.assign({}, params), node === null || node === void 0 ? void 0 : node._message), { action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key, mode: 'inline' }),
9311
9342
  listNodes: nodes,
@@ -9328,7 +9359,7 @@ const SubotInlineNodeSSO = ({ node, indexNumber, }) => {
9328
9359
  urlObj.searchParams.set('mode', 'inline');
9329
9360
  urlObj.searchParams.set('source', 'subot-inline');
9330
9361
  const returnUrl = urlObj.href;
9331
- window.location.href = `${index$3.SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
9362
+ window.location.href = `${index$4.SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
9332
9363
  }
9333
9364
  }
9334
9365
  };
@@ -9362,8 +9393,8 @@ const SubotInlineNodeText = ({ node, indexNumber, }) => {
9362
9393
  const handleOnChange = (action, formSubmitMeta) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
9363
9394
  if (!action)
9364
9395
  return;
9365
- const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
9366
- (action === null || action === void 0 ? void 0 : action.type) === index$2.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
9396
+ const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
9397
+ (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
9367
9398
  const newValue = Object.assign(Object.assign({}, value), { action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key, form_submit_meta: formSubmitMeta });
9368
9399
  if (actionWithOther) {
9369
9400
  setValue(newValue);
@@ -9426,7 +9457,7 @@ const SubotInlineNodeBase = {
9426
9457
  // RESULT_REACTION = 13,
9427
9458
  };
9428
9459
 
9429
- const SubotInlineButton = styled__default["default"](index$8.Button) `
9460
+ const SubotInlineButton = styled__default["default"](index$9.Button) `
9430
9461
  margin-top: 24px;
9431
9462
  ${utils.MediaQueries.mbUp} {
9432
9463
  margin-top: 16px;
@@ -9435,13 +9466,13 @@ const SubotInlineButton = styled__default["default"](index$8.Button) `
9435
9466
  const SubotInlineDescription = styled__default["default"].div `
9436
9467
  margin-top: 24px;
9437
9468
  `;
9438
- const SubotInlineReview = styled__default["default"](index$d.Text) `
9469
+ const SubotInlineReview = styled__default["default"](index$e.Text) `
9439
9470
  text-align: center;
9440
9471
  ${utils.MediaQueries.mbUp} {
9441
9472
  text-align: left;
9442
9473
  }
9443
9474
  `;
9444
- const SubotInlineTitle = styled__default["default"](index$e.Heading) `
9475
+ const SubotInlineTitle = styled__default["default"](index$f.Heading) `
9445
9476
  text-align: center;
9446
9477
  margin-bottom: 8px;
9447
9478
 
@@ -9663,7 +9694,7 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
9663
9694
  const getParams = React.useCallback(() => {
9664
9695
  var _a, _b, _c, _d;
9665
9696
  const gaData = window.gaData;
9666
- const _url = (customUrl || window.location.origin + index$3.basePath) +
9697
+ const _url = (customUrl || window.location.origin + index$4.basePath) +
9667
9698
  (togetherComponentGlobalContext.GlobalData.locale === 'tl-PH'
9668
9699
  ? articleLink.replace('fil/', '')
9669
9700
  : articleLink);
@@ -9868,9 +9899,9 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
9868
9899
  if (subotLogs) {
9869
9900
  const lastNode = subotLogs.nodes[subotLogs.nodes.length - 1];
9870
9901
  const isComplete = [
9871
- index$2.NodeType.FINAL,
9872
- index$2.NodeType.FINAL_THANK_YOU,
9873
- index$2.NodeType.FINAL_STANDARD,
9902
+ index$3.NodeType.FINAL,
9903
+ index$3.NodeType.FINAL_THANK_YOU,
9904
+ index$3.NodeType.FINAL_STANDARD,
9874
9905
  ].includes(lastNode.type);
9875
9906
  if (!isComplete) {
9876
9907
  nodes = subotLogs.nodes;
@@ -9907,9 +9938,9 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
9907
9938
  console.log('Subot Already Loaded');
9908
9939
  return () => undefined;
9909
9940
  }
9910
- if (!Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE)) {
9941
+ if (!Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)) {
9911
9942
  index$1.checkUntilFinished({
9912
- condition: () => Boolean(Cookies__default["default"].get(index$3.GA_TOKEN_COOKIE)),
9943
+ condition: () => Boolean(Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)),
9913
9944
  finished: () => {
9914
9945
  const params = getParams();
9915
9946
  getFirstAPI(params);
@@ -9975,23 +10006,23 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
9975
10006
  pointerEvents: 'none',
9976
10007
  } }),
9977
10008
  React__default["default"].createElement(SubotInlineLoading, { isLoading: !!loading },
9978
- React__default["default"].createElement(index$a.Loading, null),
10009
+ React__default["default"].createElement(index$b.Loading, null),
9979
10010
  "Verifying..."),
9980
10011
  state.nodes.map((node, index) => {
9981
10012
  if (node.id.toString() === (state === null || state === void 0 ? void 0 : state.activeId)) {
9982
10013
  if (node.hasOwnProperty('type')) {
9983
10014
  let NodeComponent;
9984
10015
  switch (node === null || node === void 0 ? void 0 : node.position) {
9985
- case index$2.NodePosition.SSO:
10016
+ case index$3.NodePosition.SSO:
9986
10017
  NodeComponent =
9987
- SubotInlineNodeBase[index$2.NodePosition[node === null || node === void 0 ? void 0 : node.position].valueOf()];
10018
+ SubotInlineNodeBase[index$3.NodePosition[node === null || node === void 0 ? void 0 : node.position].valueOf()];
9988
10019
  break;
9989
10020
  default:
9990
10021
  NodeComponent =
9991
- SubotInlineNodeBase[index$2.NodeType[node === null || node === void 0 ? void 0 : node.type].valueOf()];
10022
+ SubotInlineNodeBase[index$3.NodeType[node === null || node === void 0 ? void 0 : node.type].valueOf()];
9992
10023
  }
9993
10024
  if (node.is_multi_select &&
9994
- node.type !== index$2.NodeType.POLL)
10025
+ node.type !== index$3.NodeType.POLL)
9995
10026
  NodeComponent = SubotInlineNodeBase['MULTIPLE'];
9996
10027
  return (NodeComponent && (React__default["default"].createElement(NodeComponent, { key: index.toString(), indexNumber: index, node: node })));
9997
10028
  }
@@ -10008,6 +10039,7 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
10008
10039
  // subot.verifyOTP.button
10009
10040
  // subot.verifyOTP.success.message
10010
10041
  // notification.comment.somethingWrong
10042
+ // subot.captcha.failed
10011
10043
  // validation.error.validNumber
10012
10044
  // validation.error.validOTP
10013
10045
  // validation.error.requiredField
@@ -10064,6 +10096,11 @@ var index = /*#__PURE__*/Object.freeze({
10064
10096
  subotInlineClick: subotInlineClick$1,
10065
10097
  subotInlineImpression: subotInlineImpression$1,
10066
10098
  PATHS: PATHS$1,
10099
+ SUBOT_CAPTCHA_FIELD: index$2.SUBOT_CAPTCHA_FIELD,
10100
+ SUBOT_CAPTCHA_FAILED_MESSAGE: index$2.SUBOT_CAPTCHA_FAILED_MESSAGE,
10101
+ withSubotCaptcha: index$2.withSubotCaptcha,
10102
+ callSubotProtectedApi: index$2.callSubotProtectedApi,
10103
+ isSubotCaptchaForbidden: index$2.isSubotCaptchaForbidden,
10067
10104
  SUBOT_INLINE_SSO_QUERY_KEYS: SUBOT_INLINE_SSO_QUERY_KEYS,
10068
10105
  stripSubotInlineSsoQueryFromUrl: stripSubotInlineSsoQueryFromUrl,
10069
10106
  buildSubotInlineSsoReturnUrl: buildSubotInlineSsoReturnUrl,
@@ -10087,6 +10124,11 @@ var index = /*#__PURE__*/Object.freeze({
10087
10124
  replaceTextWithVariables: replaceTextWithVariables
10088
10125
  });
10089
10126
 
10127
+ exports.SUBOT_CAPTCHA_FAILED_MESSAGE = index$2.SUBOT_CAPTCHA_FAILED_MESSAGE;
10128
+ exports.SUBOT_CAPTCHA_FIELD = index$2.SUBOT_CAPTCHA_FIELD;
10129
+ exports.callSubotProtectedApi = index$2.callSubotProtectedApi;
10130
+ exports.isSubotCaptchaForbidden = index$2.isSubotCaptchaForbidden;
10131
+ exports.withSubotCaptcha = index$2.withSubotCaptcha;
10090
10132
  exports.TIME_RESET_RESEND_OTP = index$1.TIME_RESET_RESEND_OTP;
10091
10133
  exports.checkMobile = index$1.checkMobile;
10092
10134
  exports.checkUntilFinished = index$1.checkUntilFinished;