@magmamath/students-features 0.1.0

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 (405) hide show
  1. package/README.md +33 -0
  2. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +60 -0
  3. package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -0
  4. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js +96 -0
  5. package/dist/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -0
  6. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +97 -0
  7. package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -0
  8. package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js +27 -0
  9. package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -0
  10. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +56 -0
  11. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -0
  12. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +88 -0
  13. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -0
  14. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +87 -0
  15. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -0
  16. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js +43 -0
  17. package/dist/commonjs/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -0
  18. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +130 -0
  19. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -0
  20. package/dist/commonjs/features/chatbot/components/Chatbot.js +69 -0
  21. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -0
  22. package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +65 -0
  23. package/dist/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -0
  24. package/dist/commonjs/features/chatbot/constants.js +31 -0
  25. package/dist/commonjs/features/chatbot/constants.js.map +1 -0
  26. package/dist/commonjs/features/chatbot/helpers.js +12 -0
  27. package/dist/commonjs/features/chatbot/helpers.js.map +1 -0
  28. package/dist/commonjs/features/chatbot/index.js +34 -0
  29. package/dist/commonjs/features/chatbot/index.js.map +1 -0
  30. package/dist/commonjs/features/chatbot/model/api.js +18 -0
  31. package/dist/commonjs/features/chatbot/model/api.js.map +1 -0
  32. package/dist/commonjs/features/chatbot/model/model.js +244 -0
  33. package/dist/commonjs/features/chatbot/model/model.js.map +1 -0
  34. package/dist/commonjs/features/chatbot/model/t2s.js +104 -0
  35. package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -0
  36. package/dist/commonjs/features/chatbot/model/translation.js +203 -0
  37. package/dist/commonjs/features/chatbot/model/translation.js.map +1 -0
  38. package/dist/commonjs/features/chatbot/types/api.types.js +2 -0
  39. package/dist/commonjs/features/chatbot/types/api.types.js.map +1 -0
  40. package/dist/commonjs/features/chatbot/types/model.types.js +12 -0
  41. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -0
  42. package/dist/commonjs/features/chatbot/types/t2s.types.js +13 -0
  43. package/dist/commonjs/features/chatbot/types/t2s.types.js.map +1 -0
  44. package/dist/commonjs/features/chatbot/types/translation.types.js +6 -0
  45. package/dist/commonjs/features/chatbot/types/translation.types.js.map +1 -0
  46. package/dist/commonjs/index.js +42 -0
  47. package/dist/commonjs/index.js.map +1 -0
  48. package/dist/commonjs/lib/createFeature/createFeature.js +28 -0
  49. package/dist/commonjs/lib/createFeature/createFeature.js.map +1 -0
  50. package/dist/commonjs/lib/effector/createControllerEffect.js +51 -0
  51. package/dist/commonjs/lib/effector/createControllerEffect.js.map +1 -0
  52. package/dist/commonjs/lib/effector/createEntityFieldStore.js +42 -0
  53. package/dist/commonjs/lib/effector/createEntityFieldStore.js.map +1 -0
  54. package/dist/commonjs/lib/effector/index.js +20 -0
  55. package/dist/commonjs/lib/effector/index.js.map +1 -0
  56. package/dist/commonjs/lib/helpers/helpers.js +9 -0
  57. package/dist/commonjs/lib/helpers/helpers.js.map +1 -0
  58. package/dist/commonjs/lib/localization/en.json +2 -0
  59. package/dist/commonjs/lib/localization/gb.json +2 -0
  60. package/dist/commonjs/lib/localization/sw.json +2 -0
  61. package/dist/commonjs/shared/hooks/useDebounce.js +21 -0
  62. package/dist/commonjs/shared/hooks/useDebounce.js.map +1 -0
  63. package/dist/commonjs/shared/icons/ArrowRightIcon.js +30 -0
  64. package/dist/commonjs/shared/icons/ArrowRightIcon.js.map +1 -0
  65. package/dist/commonjs/shared/icons/ChatbotIcon.js +148 -0
  66. package/dist/commonjs/shared/icons/ChatbotIcon.js.map +1 -0
  67. package/dist/commonjs/shared/icons/CloseIcon.js +28 -0
  68. package/dist/commonjs/shared/icons/CloseIcon.js.map +1 -0
  69. package/dist/commonjs/shared/icons/GlobeIcon.js +30 -0
  70. package/dist/commonjs/shared/icons/GlobeIcon.js.map +1 -0
  71. package/dist/commonjs/shared/icons/PauseIcon.js +32 -0
  72. package/dist/commonjs/shared/icons/PauseIcon.js.map +1 -0
  73. package/dist/commonjs/shared/icons/PlayIcon.js +32 -0
  74. package/dist/commonjs/shared/icons/PlayIcon.js.map +1 -0
  75. package/dist/commonjs/shared/icons/SpeakerIcon.js +37 -0
  76. package/dist/commonjs/shared/icons/SpeakerIcon.js.map +1 -0
  77. package/dist/commonjs/shared/icons/icon.types.js +2 -0
  78. package/dist/commonjs/shared/icons/icon.types.js.map +1 -0
  79. package/dist/commonjs/shared/translation/constants.js +17 -0
  80. package/dist/commonjs/shared/translation/constants.js.map +1 -0
  81. package/dist/commonjs/shared/translation/helpers.js +31 -0
  82. package/dist/commonjs/shared/translation/helpers.js.map +1 -0
  83. package/dist/commonjs/shared/translation/hooks.js +28 -0
  84. package/dist/commonjs/shared/translation/hooks.js.map +1 -0
  85. package/dist/commonjs/shared/translation/index.js +52 -0
  86. package/dist/commonjs/shared/translation/index.js.map +1 -0
  87. package/dist/commonjs/shared/translation/model.js +15 -0
  88. package/dist/commonjs/shared/translation/model.js.map +1 -0
  89. package/dist/commonjs/shared/translation/types.js +13 -0
  90. package/dist/commonjs/shared/translation/types.js.map +1 -0
  91. package/dist/commonjs/types/types.d.js +2 -0
  92. package/dist/commonjs/types/types.d.js.map +1 -0
  93. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +54 -0
  94. package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -0
  95. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js +90 -0
  96. package/dist/module/features/chatbot/components/Alternatives/HelpRequestOption.js.map +1 -0
  97. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +91 -0
  98. package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -0
  99. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js +21 -0
  100. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -0
  101. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +50 -0
  102. package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -0
  103. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +82 -0
  104. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -0
  105. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +81 -0
  106. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -0
  107. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js +37 -0
  108. package/dist/module/features/chatbot/components/ChatMessage/SentMessage.js.map +1 -0
  109. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +123 -0
  110. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -0
  111. package/dist/module/features/chatbot/components/Chatbot.js +63 -0
  112. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -0
  113. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js +59 -0
  114. package/dist/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.js.map +1 -0
  115. package/dist/module/features/chatbot/constants.js +27 -0
  116. package/dist/module/features/chatbot/constants.js.map +1 -0
  117. package/dist/module/features/chatbot/helpers.js +7 -0
  118. package/dist/module/features/chatbot/helpers.js.map +1 -0
  119. package/dist/module/features/chatbot/index.js +7 -0
  120. package/dist/module/features/chatbot/index.js.map +1 -0
  121. package/dist/module/features/chatbot/model/api.js +13 -0
  122. package/dist/module/features/chatbot/model/api.js.map +1 -0
  123. package/dist/module/features/chatbot/model/model.js +239 -0
  124. package/dist/module/features/chatbot/model/model.js.map +1 -0
  125. package/dist/module/features/chatbot/model/t2s.js +99 -0
  126. package/dist/module/features/chatbot/model/t2s.js.map +1 -0
  127. package/dist/module/features/chatbot/model/translation.js +198 -0
  128. package/dist/module/features/chatbot/model/translation.js.map +1 -0
  129. package/dist/module/features/chatbot/types/api.types.js +2 -0
  130. package/dist/module/features/chatbot/types/api.types.js.map +1 -0
  131. package/dist/module/features/chatbot/types/model.types.js +8 -0
  132. package/dist/module/features/chatbot/types/model.types.js.map +1 -0
  133. package/dist/module/features/chatbot/types/t2s.types.js +9 -0
  134. package/dist/module/features/chatbot/types/t2s.types.js.map +1 -0
  135. package/dist/module/features/chatbot/types/translation.types.js +4 -0
  136. package/dist/module/features/chatbot/types/translation.types.js.map +1 -0
  137. package/dist/module/index.js +5 -0
  138. package/dist/module/index.js.map +1 -0
  139. package/dist/module/lib/createFeature/createFeature.js +22 -0
  140. package/dist/module/lib/createFeature/createFeature.js.map +1 -0
  141. package/dist/module/lib/effector/createControllerEffect.js +45 -0
  142. package/dist/module/lib/effector/createControllerEffect.js.map +1 -0
  143. package/dist/module/lib/effector/createEntityFieldStore.js +38 -0
  144. package/dist/module/lib/effector/createEntityFieldStore.js.map +1 -0
  145. package/dist/module/lib/effector/index.js +5 -0
  146. package/dist/module/lib/effector/index.js.map +1 -0
  147. package/dist/module/lib/helpers/helpers.js +4 -0
  148. package/dist/module/lib/helpers/helpers.js.map +1 -0
  149. package/dist/module/lib/localization/en.json +2 -0
  150. package/dist/module/lib/localization/gb.json +2 -0
  151. package/dist/module/lib/localization/sw.json +2 -0
  152. package/dist/module/shared/hooks/useDebounce.js +16 -0
  153. package/dist/module/shared/hooks/useDebounce.js.map +1 -0
  154. package/dist/module/shared/icons/ArrowRightIcon.js +22 -0
  155. package/dist/module/shared/icons/ArrowRightIcon.js.map +1 -0
  156. package/dist/module/shared/icons/ChatbotIcon.js +140 -0
  157. package/dist/module/shared/icons/ChatbotIcon.js.map +1 -0
  158. package/dist/module/shared/icons/CloseIcon.js +20 -0
  159. package/dist/module/shared/icons/CloseIcon.js.map +1 -0
  160. package/dist/module/shared/icons/GlobeIcon.js +22 -0
  161. package/dist/module/shared/icons/GlobeIcon.js.map +1 -0
  162. package/dist/module/shared/icons/PauseIcon.js +24 -0
  163. package/dist/module/shared/icons/PauseIcon.js.map +1 -0
  164. package/dist/module/shared/icons/PlayIcon.js +24 -0
  165. package/dist/module/shared/icons/PlayIcon.js.map +1 -0
  166. package/dist/module/shared/icons/SpeakerIcon.js +29 -0
  167. package/dist/module/shared/icons/SpeakerIcon.js.map +1 -0
  168. package/dist/module/shared/icons/icon.types.js +2 -0
  169. package/dist/module/shared/icons/icon.types.js.map +1 -0
  170. package/dist/module/shared/translation/constants.js +12 -0
  171. package/dist/module/shared/translation/constants.js.map +1 -0
  172. package/dist/module/shared/translation/helpers.js +24 -0
  173. package/dist/module/shared/translation/helpers.js.map +1 -0
  174. package/dist/module/shared/translation/hooks.js +22 -0
  175. package/dist/module/shared/translation/hooks.js.map +1 -0
  176. package/dist/module/shared/translation/index.js +7 -0
  177. package/dist/module/shared/translation/index.js.map +1 -0
  178. package/dist/module/shared/translation/model.js +11 -0
  179. package/dist/module/shared/translation/model.js.map +1 -0
  180. package/dist/module/shared/translation/types.js +9 -0
  181. package/dist/module/shared/translation/types.js.map +1 -0
  182. package/dist/module/types/types.d.js +2 -0
  183. package/dist/module/types/types.d.js.map +1 -0
  184. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +11 -0
  185. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -0
  186. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +9 -0
  187. package/dist/typescript/commonjs/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -0
  188. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts +14 -0
  189. package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -0
  190. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +17 -0
  191. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -0
  192. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts +3 -0
  193. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -0
  194. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +12 -0
  195. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -0
  196. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +4 -0
  197. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -0
  198. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts +4 -0
  199. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -0
  200. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +21 -0
  201. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -0
  202. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +25 -0
  203. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -0
  204. package/dist/typescript/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts +9 -0
  205. package/dist/typescript/commonjs/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -0
  206. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +21 -0
  207. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -0
  208. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts +2 -0
  209. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -0
  210. package/dist/typescript/commonjs/features/chatbot/index.d.ts +5 -0
  211. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -0
  212. package/dist/typescript/commonjs/features/chatbot/model/api.d.ts +12 -0
  213. package/dist/typescript/commonjs/features/chatbot/model/api.d.ts.map +1 -0
  214. package/dist/typescript/commonjs/features/chatbot/model/model.d.ts +73 -0
  215. package/dist/typescript/commonjs/features/chatbot/model/model.d.ts.map +1 -0
  216. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts +18 -0
  217. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -0
  218. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts +22 -0
  219. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -0
  220. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +60 -0
  221. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -0
  222. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +64 -0
  223. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -0
  224. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts +22 -0
  225. package/dist/typescript/commonjs/features/chatbot/types/t2s.types.d.ts.map +1 -0
  226. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts +23 -0
  227. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts.map +1 -0
  228. package/dist/typescript/commonjs/index.d.ts +4 -0
  229. package/dist/typescript/commonjs/index.d.ts.map +1 -0
  230. package/dist/typescript/commonjs/lib/createFeature/createFeature.d.ts +7 -0
  231. package/dist/typescript/commonjs/lib/createFeature/createFeature.d.ts.map +1 -0
  232. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts +16 -0
  233. package/dist/typescript/commonjs/lib/effector/createControllerEffect.d.ts.map +1 -0
  234. package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts +16 -0
  235. package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts.map +1 -0
  236. package/dist/typescript/commonjs/lib/effector/index.d.ts +3 -0
  237. package/dist/typescript/commonjs/lib/effector/index.d.ts.map +1 -0
  238. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts +2 -0
  239. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -0
  240. package/dist/typescript/commonjs/package.json +1 -0
  241. package/dist/typescript/commonjs/shared/hooks/useDebounce.d.ts +2 -0
  242. package/dist/typescript/commonjs/shared/hooks/useDebounce.d.ts.map +1 -0
  243. package/dist/typescript/commonjs/shared/icons/ArrowRightIcon.d.ts +4 -0
  244. package/dist/typescript/commonjs/shared/icons/ArrowRightIcon.d.ts.map +1 -0
  245. package/dist/typescript/commonjs/shared/icons/ChatbotIcon.d.ts +4 -0
  246. package/dist/typescript/commonjs/shared/icons/ChatbotIcon.d.ts.map +1 -0
  247. package/dist/typescript/commonjs/shared/icons/CloseIcon.d.ts +4 -0
  248. package/dist/typescript/commonjs/shared/icons/CloseIcon.d.ts.map +1 -0
  249. package/dist/typescript/commonjs/shared/icons/GlobeIcon.d.ts +4 -0
  250. package/dist/typescript/commonjs/shared/icons/GlobeIcon.d.ts.map +1 -0
  251. package/dist/typescript/commonjs/shared/icons/PauseIcon.d.ts +4 -0
  252. package/dist/typescript/commonjs/shared/icons/PauseIcon.d.ts.map +1 -0
  253. package/dist/typescript/commonjs/shared/icons/PlayIcon.d.ts +4 -0
  254. package/dist/typescript/commonjs/shared/icons/PlayIcon.d.ts.map +1 -0
  255. package/dist/typescript/commonjs/shared/icons/SpeakerIcon.d.ts +4 -0
  256. package/dist/typescript/commonjs/shared/icons/SpeakerIcon.d.ts.map +1 -0
  257. package/dist/typescript/commonjs/shared/icons/icon.types.d.ts +9 -0
  258. package/dist/typescript/commonjs/shared/icons/icon.types.d.ts.map +1 -0
  259. package/dist/typescript/commonjs/shared/translation/constants.d.ts +6 -0
  260. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -0
  261. package/dist/typescript/commonjs/shared/translation/helpers.d.ts +6 -0
  262. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -0
  263. package/dist/typescript/commonjs/shared/translation/hooks.d.ts +5 -0
  264. package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -0
  265. package/dist/typescript/commonjs/shared/translation/index.d.ts +6 -0
  266. package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -0
  267. package/dist/typescript/commonjs/shared/translation/model.d.ts +5 -0
  268. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -0
  269. package/dist/typescript/commonjs/shared/translation/types.d.ts +8 -0
  270. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -0
  271. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +11 -0
  272. package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -0
  273. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts +9 -0
  274. package/dist/typescript/module/features/chatbot/components/Alternatives/HelpRequestOption.d.ts.map +1 -0
  275. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts +14 -0
  276. package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -0
  277. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +17 -0
  278. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -0
  279. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts +3 -0
  280. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageLoader.d.ts.map +1 -0
  281. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +12 -0
  282. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -0
  283. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +4 -0
  284. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -0
  285. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts +4 -0
  286. package/dist/typescript/module/features/chatbot/components/ChatMessage/SentMessage.d.ts.map +1 -0
  287. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +21 -0
  288. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -0
  289. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +25 -0
  290. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -0
  291. package/dist/typescript/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts +9 -0
  292. package/dist/typescript/module/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.d.ts.map +1 -0
  293. package/dist/typescript/module/features/chatbot/constants.d.ts +21 -0
  294. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -0
  295. package/dist/typescript/module/features/chatbot/helpers.d.ts +2 -0
  296. package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -0
  297. package/dist/typescript/module/features/chatbot/index.d.ts +5 -0
  298. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -0
  299. package/dist/typescript/module/features/chatbot/model/api.d.ts +12 -0
  300. package/dist/typescript/module/features/chatbot/model/api.d.ts.map +1 -0
  301. package/dist/typescript/module/features/chatbot/model/model.d.ts +73 -0
  302. package/dist/typescript/module/features/chatbot/model/model.d.ts.map +1 -0
  303. package/dist/typescript/module/features/chatbot/model/t2s.d.ts +18 -0
  304. package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -0
  305. package/dist/typescript/module/features/chatbot/model/translation.d.ts +22 -0
  306. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -0
  307. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +60 -0
  308. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -0
  309. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +64 -0
  310. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -0
  311. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts +22 -0
  312. package/dist/typescript/module/features/chatbot/types/t2s.types.d.ts.map +1 -0
  313. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts +23 -0
  314. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts.map +1 -0
  315. package/dist/typescript/module/index.d.ts +4 -0
  316. package/dist/typescript/module/index.d.ts.map +1 -0
  317. package/dist/typescript/module/lib/createFeature/createFeature.d.ts +7 -0
  318. package/dist/typescript/module/lib/createFeature/createFeature.d.ts.map +1 -0
  319. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts +16 -0
  320. package/dist/typescript/module/lib/effector/createControllerEffect.d.ts.map +1 -0
  321. package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts +16 -0
  322. package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts.map +1 -0
  323. package/dist/typescript/module/lib/effector/index.d.ts +3 -0
  324. package/dist/typescript/module/lib/effector/index.d.ts.map +1 -0
  325. package/dist/typescript/module/lib/helpers/helpers.d.ts +2 -0
  326. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -0
  327. package/dist/typescript/module/package.json +1 -0
  328. package/dist/typescript/module/shared/hooks/useDebounce.d.ts +2 -0
  329. package/dist/typescript/module/shared/hooks/useDebounce.d.ts.map +1 -0
  330. package/dist/typescript/module/shared/icons/ArrowRightIcon.d.ts +4 -0
  331. package/dist/typescript/module/shared/icons/ArrowRightIcon.d.ts.map +1 -0
  332. package/dist/typescript/module/shared/icons/ChatbotIcon.d.ts +4 -0
  333. package/dist/typescript/module/shared/icons/ChatbotIcon.d.ts.map +1 -0
  334. package/dist/typescript/module/shared/icons/CloseIcon.d.ts +4 -0
  335. package/dist/typescript/module/shared/icons/CloseIcon.d.ts.map +1 -0
  336. package/dist/typescript/module/shared/icons/GlobeIcon.d.ts +4 -0
  337. package/dist/typescript/module/shared/icons/GlobeIcon.d.ts.map +1 -0
  338. package/dist/typescript/module/shared/icons/PauseIcon.d.ts +4 -0
  339. package/dist/typescript/module/shared/icons/PauseIcon.d.ts.map +1 -0
  340. package/dist/typescript/module/shared/icons/PlayIcon.d.ts +4 -0
  341. package/dist/typescript/module/shared/icons/PlayIcon.d.ts.map +1 -0
  342. package/dist/typescript/module/shared/icons/SpeakerIcon.d.ts +4 -0
  343. package/dist/typescript/module/shared/icons/SpeakerIcon.d.ts.map +1 -0
  344. package/dist/typescript/module/shared/icons/icon.types.d.ts +9 -0
  345. package/dist/typescript/module/shared/icons/icon.types.d.ts.map +1 -0
  346. package/dist/typescript/module/shared/translation/constants.d.ts +6 -0
  347. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -0
  348. package/dist/typescript/module/shared/translation/helpers.d.ts +6 -0
  349. package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -0
  350. package/dist/typescript/module/shared/translation/hooks.d.ts +5 -0
  351. package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -0
  352. package/dist/typescript/module/shared/translation/index.d.ts +6 -0
  353. package/dist/typescript/module/shared/translation/index.d.ts.map +1 -0
  354. package/dist/typescript/module/shared/translation/model.d.ts +5 -0
  355. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -0
  356. package/dist/typescript/module/shared/translation/types.d.ts +8 -0
  357. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -0
  358. package/package.json +73 -0
  359. package/src/features/chatbot/components/Alternatives/Alternatives.tsx +64 -0
  360. package/src/features/chatbot/components/Alternatives/HelpRequestOption.tsx +92 -0
  361. package/src/features/chatbot/components/ChatControls/ChatControls.tsx +103 -0
  362. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +28 -0
  363. package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +42 -0
  364. package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +78 -0
  365. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +73 -0
  366. package/src/features/chatbot/components/ChatMessage/SentMessage.tsx +31 -0
  367. package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +148 -0
  368. package/src/features/chatbot/components/Chatbot.tsx +92 -0
  369. package/src/features/chatbot/components/ThreeDotsLoader/ThreeDotsLoader.tsx +77 -0
  370. package/src/features/chatbot/constants.ts +30 -0
  371. package/src/features/chatbot/helpers.ts +4 -0
  372. package/src/features/chatbot/index.ts +4 -0
  373. package/src/features/chatbot/model/api.ts +28 -0
  374. package/src/features/chatbot/model/model.ts +277 -0
  375. package/src/features/chatbot/model/t2s.ts +107 -0
  376. package/src/features/chatbot/model/translation.ts +231 -0
  377. package/src/features/chatbot/types/api.types.ts +59 -0
  378. package/src/features/chatbot/types/model.types.ts +73 -0
  379. package/src/features/chatbot/types/t2s.types.ts +24 -0
  380. package/src/features/chatbot/types/translation.types.ts +23 -0
  381. package/src/index.ts +3 -0
  382. package/src/lib/createFeature/createFeature.tsx +21 -0
  383. package/src/lib/effector/createControllerEffect.ts +66 -0
  384. package/src/lib/effector/createEntityFieldStore.ts +43 -0
  385. package/src/lib/effector/index.ts +2 -0
  386. package/src/lib/helpers/helpers.ts +2 -0
  387. package/src/lib/localization/en.json +2 -0
  388. package/src/lib/localization/gb.json +2 -0
  389. package/src/lib/localization/sw.json +2 -0
  390. package/src/shared/hooks/useDebounce.ts +17 -0
  391. package/src/shared/icons/ArrowRightIcon.tsx +14 -0
  392. package/src/shared/icons/ChatbotIcon.tsx +109 -0
  393. package/src/shared/icons/CloseIcon.tsx +12 -0
  394. package/src/shared/icons/GlobeIcon.tsx +14 -0
  395. package/src/shared/icons/PauseIcon.tsx +16 -0
  396. package/src/shared/icons/PlayIcon.tsx +16 -0
  397. package/src/shared/icons/SpeakerIcon.tsx +22 -0
  398. package/src/shared/icons/icon.types.ts +8 -0
  399. package/src/shared/translation/constants.ts +10 -0
  400. package/src/shared/translation/helpers.ts +34 -0
  401. package/src/shared/translation/hooks.ts +28 -0
  402. package/src/shared/translation/index.ts +5 -0
  403. package/src/shared/translation/model.ts +15 -0
  404. package/src/shared/translation/types.ts +9 -0
  405. package/src/types/types.d.ts +4 -0
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ import { createEffect } from 'effector';
4
+ export function controlledRequest(request) {
5
+ return async ({
6
+ data,
7
+ controller = new AbortController(),
8
+ abortAfter = 20000
9
+ }) => {
10
+ let timeout = null;
11
+ if (abortAfter) {
12
+ timeout = setTimeout(() => {
13
+ controller.abort('timeout');
14
+ }, abortAfter);
15
+ }
16
+ try {
17
+ const response = await request(data, {
18
+ signal: controller?.signal
19
+ });
20
+ if (timeout !== null) clearTimeout(timeout);
21
+ return response;
22
+ } catch (error) {
23
+ if (error.code === 'ERR_CANCELED') {
24
+ if (controller.signal.reason === 'timeout') {
25
+ throw new Error('Request timed out');
26
+ }
27
+ throw new Error('Request aborted manually');
28
+ }
29
+ throw error;
30
+ }
31
+ };
32
+ }
33
+ export const createControllerEffect = fn => {
34
+ const request = controlledRequest(fn);
35
+ const effect = createEffect(data => request({
36
+ data,
37
+ controller: effect.controller
38
+ }));
39
+ effect.controller = new AbortController();
40
+ effect.fail.watch(() => {
41
+ effect.controller = new AbortController();
42
+ });
43
+ return effect;
44
+ };
45
+ //# sourceMappingURL=createControllerEffect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEffect","controlledRequest","request","data","controller","AbortController","abortAfter","timeout","setTimeout","abort","response","signal","clearTimeout","error","code","reason","Error","createControllerEffect","fn","effect","fail","watch"],"sourceRoot":"../../../../src","sources":["lib/effector/createControllerEffect.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAqB,UAAU;AAkBpD,OAAO,SAASC,iBAAiBA,CAC7BC,OAAiE,EACnE;EACE,OAAO,OAAO;IACVC,IAAI;IACJC,UAAU,GAAG,IAAIC,eAAe,CAAC,CAAC;IAClCC,UAAU,GAAG;EACU,CAAC,KAAK;IAC7B,IAAIC,OAA6C,GAAG,IAAI;IAExD,IAAID,UAAU,EAAE;MACZC,OAAO,GAAGC,UAAU,CAAC,MAAM;QACvBJ,UAAU,CAACK,KAAK,CAAC,SAAS,CAAC;MAC/B,CAAC,EAAEH,UAAU,CAAC;IAClB;IAEA,IAAI;MACA,MAAMI,QAAQ,GAAG,MAAMR,OAAO,CAACC,IAAI,EAAE;QAAEQ,MAAM,EAAEP,UAAU,EAAEO;MAAO,CAAC,CAAC;MACpE,IAAIJ,OAAO,KAAK,IAAI,EAAEK,YAAY,CAACL,OAAO,CAAC;MAC3C,OAAOG,QAAQ;IACnB,CAAC,CAAC,OAAOG,KAAc,EAAE;MACrB,IAAKA,KAAK,CAAuBC,IAAI,KAAK,cAAc,EAAE;QACtD,IAAIV,UAAU,CAACO,MAAM,CAACI,MAAM,KAAK,SAAS,EAAE;UACxC,MAAM,IAAIC,KAAK,CAAC,mBAAmB,CAAC;QACxC;QACA,MAAM,IAAIA,KAAK,CAAC,0BAA0B,CAAC;MAC/C;MAEA,MAAMH,KAAK;IACf;EACJ,CAAC;AACL;AAEA,OAAO,MAAMI,sBAAsB,GAC/BC,EAA4D,IAC3D;EACD,MAAMhB,OAAO,GAAGD,iBAAiB,CAAOiB,EAAE,CAAC;EAC3C,MAAMC,MAAM,GAAGnB,YAAY,CAAEG,IAAO,IAChCD,OAAO,CAAC;IAAEC,IAAI;IAAEC,UAAU,EAAEe,MAAM,CAACf;EAAW,CAAC,CACnD,CAA2B;EAC3Be,MAAM,CAACf,UAAU,GAAG,IAAIC,eAAe,CAAC,CAAC;EAEzCc,MAAM,CAACC,IAAI,CAACC,KAAK,CAAC,MAAM;IACpBF,MAAM,CAACf,UAAU,GAAG,IAAIC,eAAe,CAAC,CAAC;EAC7C,CAAC,CAAC;EAEF,OAAOc,MAAM;AACjB,CAAC","ignoreList":[]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ import { createEvent, createStore } from 'effector';
4
+ export function createEntityFieldStore({
5
+ mapper = value => value
6
+ } = {}) {
7
+ const initialState = {};
8
+ const fieldAdded = createEvent();
9
+ const reset = createEvent();
10
+ const setField = value => {
11
+ fieldAdded(mapper(value));
12
+ };
13
+ const $state = createStore(initialState).on(fieldAdded, (state, {
14
+ entityId,
15
+ fieldId,
16
+ data
17
+ }) => {
18
+ if (!fieldId || !entityId) {
19
+ console.error('fieldId or entityId missing in createValuePersistorModel.ts');
20
+ return state;
21
+ }
22
+ const newState = {
23
+ ...state
24
+ };
25
+ if (!newState[entityId]) {
26
+ newState[entityId] = {};
27
+ }
28
+ newState[entityId][fieldId] = data;
29
+ return newState;
30
+ }).reset(reset);
31
+ return {
32
+ $state,
33
+ setField,
34
+ fieldAdded,
35
+ reset
36
+ };
37
+ }
38
+ //# sourceMappingURL=createEntityFieldStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEvent","createStore","createEntityFieldStore","mapper","value","initialState","fieldAdded","reset","setField","$state","on","state","entityId","fieldId","data","console","error","newState"],"sourceRoot":"../../../../src","sources":["lib/effector/createEntityFieldStore.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,UAAU;AAYnD,OAAO,SAASC,sBAAsBA,CAAwB;EAC1DC,MAAM,GAAIC,KAAU,IAAKA;AACS,CAAC,GAAG,CAAC,CAAC,EAAE;EAC1C,MAAMC,YAA+C,GAAG,CAAC,CAAC;EAC1D,MAAMC,UAAU,GAAGN,WAAW,CAAiB,CAAC;EAChD,MAAMO,KAAK,GAAGP,WAAW,CAAC,CAAC;EAE3B,MAAMQ,QAAQ,GAAIJ,KAAQ,IAAK;IAC3BE,UAAU,CAACH,MAAM,CAACC,KAAK,CAAC,CAAC;EAC7B,CAAC;EAED,MAAMK,MAAM,GAAGR,WAAW,CAACI,YAAY,CAAC,CACnCK,EAAE,CAACJ,UAAU,EAAE,CAACK,KAAK,EAAE;IAAEC,QAAQ;IAAEC,OAAO;IAAEC;EAAK,CAAC,KAAK;IACpD,IAAI,CAACD,OAAO,IAAI,CAACD,QAAQ,EAAE;MACvBG,OAAO,CAACC,KAAK,CAAC,6DAA6D,CAAC;MAC5E,OAAOL,KAAK;IAChB;IAEA,MAAMM,QAAQ,GAAG;MAAE,GAAGN;IAAM,CAAC;IAE7B,IAAI,CAACM,QAAQ,CAACL,QAAQ,CAAC,EAAE;MACrBK,QAAQ,CAACL,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC3B;IAEAK,QAAQ,CAACL,QAAQ,CAAC,CAACC,OAAO,CAAC,GAAGC,IAAI;IAClC,OAAOG,QAAQ;EACnB,CAAC,CAAC,CACDV,KAAK,CAACA,KAAK,CAAC;EAEjB,OAAO;IAAEE,MAAM;IAAED,QAAQ;IAAEF,UAAU;IAAEC;EAAM,CAAC;AAClD","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ export { createEntityFieldStore } from "./createEntityFieldStore.js";
4
+ export { createControllerEffect } from "./createControllerEffect.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEntityFieldStore","createControllerEffect"],"sourceRoot":"../../../../src","sources":["lib/effector/index.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,6BAA0B;AACjE,SAASC,sBAAsB,QAAQ,6BAA0B","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export const generateRandomId = () => Date.now().toString(36) + Math.random().toString(36).substring(2);
4
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["generateRandomId","Date","now","toString","Math","random","substring"],"sourceRoot":"../../../../src","sources":["lib/helpers/helpers.ts"],"mappings":";;AAAA,OAAO,MAAMA,gBAAgB,GAAGA,CAAA,KAC9BC,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,EAAE,CAAC,GAAGC,IAAI,CAACC,MAAM,CAAC,CAAC,CAACF,QAAQ,CAAC,EAAE,CAAC,CAACG,SAAS,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,2 @@
1
+ {
2
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ import { useEffect, useState } from 'react';
4
+ export const useDebounce = (value, delay) => {
5
+ const [debouncedValue, setDebouncedValue] = useState(value);
6
+ useEffect(() => {
7
+ const timer = setTimeout(() => {
8
+ setDebouncedValue(value);
9
+ }, delay || 300);
10
+ return () => {
11
+ clearTimeout(timer);
12
+ };
13
+ }, [value, delay]);
14
+ return debouncedValue;
15
+ };
16
+ //# sourceMappingURL=useDebounce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useEffect","useState","useDebounce","value","delay","debouncedValue","setDebouncedValue","timer","setTimeout","clearTimeout"],"sourceRoot":"../../../../src","sources":["shared/hooks/useDebounce.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAE3C,OAAO,MAAMC,WAAW,GAAGA,CAAIC,KAAQ,EAAEC,KAAc,KAAQ;EAC3D,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAGL,QAAQ,CAACE,KAAK,CAAC;EAE3DH,SAAS,CAAC,MAAM;IACZ,MAAMO,KAAK,GAAGC,UAAU,CAAC,MAAM;MAC3BF,iBAAiB,CAACH,KAAK,CAAC;IAC5B,CAAC,EAAEC,KAAK,IAAI,GAAG,CAAC;IAEhB,OAAO,MAAM;MACTK,YAAY,CAACF,KAAK,CAAC;IACvB,CAAC;EACL,CAAC,EAAE,CAACJ,KAAK,EAAEC,KAAK,CAAC,CAAC;EAElB,OAAOC,cAAc;AACzB,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import Svg, { Path } from 'react-native-svg';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const ArrowRightIcon = ({
7
+ width = 16,
8
+ height = 16,
9
+ color = '#33334D'
10
+ }) => /*#__PURE__*/_jsx(Svg, {
11
+ width: width,
12
+ height: height,
13
+ viewBox: "0 0 16 16",
14
+ fill: "none",
15
+ children: /*#__PURE__*/_jsx(Path, {
16
+ fillRule: "evenodd",
17
+ clipRule: "evenodd",
18
+ d: "M8.91 12.53a.75.75 0 010-1.06l2.72-2.72H2.56a.75.75 0 110-1.5h9.07L8.91 4.53a.75.75 0 011.06-1.06l4 4a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0z",
19
+ fill: color
20
+ })
21
+ });
22
+ //# sourceMappingURL=ArrowRightIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Svg","Path","jsx","_jsx","ArrowRightIcon","width","height","color","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../src","sources":["shared/icons/ArrowRightIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAG5C,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAqB,CAAC,kBACtFJ,IAAA,CAACH,GAAG;EAACK,KAAK,EAAEA,KAAM;EAACC,MAAM,EAAEA,MAAO;EAACE,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAChEP,IAAA,CAACF,IAAI;IACHU,QAAQ,EAAC,SAAS;IAClBC,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC,kJAAkJ;IACpJJ,IAAI,EAAEF;EAAM,CACb;AAAC,CACC,CACN","ignoreList":[]}
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import Svg, { Path, Defs, LinearGradient, Stop, Mask, G, Rect } from 'react-native-svg';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ export const ChatbotIcon = ({
7
+ width = 60,
8
+ height = 60
9
+ }) => /*#__PURE__*/_jsxs(Svg, {
10
+ width: width,
11
+ height: height,
12
+ viewBox: "0 0 60 60",
13
+ fill: "none",
14
+ children: [/*#__PURE__*/_jsxs(Mask, {
15
+ id: "a",
16
+ maskUnits: "userSpaceOnUse",
17
+ x: 0,
18
+ y: 0,
19
+ width: 60,
20
+ height: 60,
21
+ children: [/*#__PURE__*/_jsx(Rect, {
22
+ x: "0",
23
+ y: "0",
24
+ width: "60",
25
+ height: "60",
26
+ fill: "white"
27
+ }), /*#__PURE__*/_jsx(Rect, {
28
+ x: "10",
29
+ y: "10",
30
+ width: "40",
31
+ height: "40",
32
+ fill: "black"
33
+ }), /*#__PURE__*/_jsx(Path, {
34
+ d: "M60 0H0v60h60V0z",
35
+ fill: "#ffffff"
36
+ })]
37
+ }), /*#__PURE__*/_jsxs(G, {
38
+ mask: "url(#a)",
39
+ children: [/*#__PURE__*/_jsx(Path, {
40
+ d: "M53.869 8.767v14.384M6.448 8.767v14.384",
41
+ stroke: "#A83900",
42
+ strokeWidth: 1.0538,
43
+ strokeLinecap: "round"
44
+ }), /*#__PURE__*/_jsx(Path, {
45
+ d: "M1.705 25.206c1.897-3.92 6.06-3.53 7.904-2.845L5.025 33.426c-1.897-1.107-5.216-4.3-3.32-8.22z",
46
+ fill: "#FF7819"
47
+ }), /*#__PURE__*/_jsx(Path, {
48
+ d: "M58.295 25.206c-1.897-3.92-6.06-3.53-7.904-2.845l4.584 11.065c1.897-1.107 5.216-4.3 3.32-8.22z",
49
+ fill: "#FF275E"
50
+ }), /*#__PURE__*/_jsx(Path, {
51
+ d: "M5.025 44.594v-9.168c.474-6.112 3.952-18.673 25.133-18.81 21.182-.138 25.186 12.593 25.291 18.81v9.168c0 6.111-4.954 11.065-11.064 11.065H16.09c-6.111 0-11.065-4.954-11.065-11.065z",
52
+ fill: "#A83900"
53
+ }), /*#__PURE__*/_jsx(Path, {
54
+ d: "M5.025 42.594v-9.168c.474-6.112 3.952-18.673 25.133-18.81 21.182-.138 25.186 12.593 25.291 18.81v9.168c0 6.111-4.954 11.065-11.064 11.065H16.09c-6.111 0-11.065-4.954-11.065-11.065z",
55
+ fill: "url(#paint0_linear_722_2)"
56
+ }), /*#__PURE__*/_jsx(Mask, {
57
+ id: "b",
58
+ maskUnits: "userSpaceOnUse",
59
+ x: "10",
60
+ y: "22",
61
+ width: "40",
62
+ height: "26",
63
+ children: /*#__PURE__*/_jsx(Path, {
64
+ d: "M42.356 47.81H18.118c-4.001 0-7.244-3.244-7.244-7.244v-7.298c0-6.639 5.674-11.223 11.855-11.223 2.96 0 5.071 1.202 6.287 2.092.703.515 1.597.53 2.302.02 1.86-1.348 3.617-2.112 6.902-2.112 6.006 0 11.38 5.532 11.38 11.223v7.298c0 4-3.243 7.244-7.244 7.244z",
65
+ fill: "white"
66
+ })
67
+ }), /*#__PURE__*/_jsx(Rect, {
68
+ x: "0",
69
+ y: "0",
70
+ width: "60",
71
+ height: "60",
72
+ fill: "#ffffff",
73
+ mask: "url(#b)"
74
+ }), /*#__PURE__*/_jsxs(G, {
75
+ mask: "url(#b)",
76
+ children: [/*#__PURE__*/_jsx(Path, {
77
+ d: "M52.566 52.989L15.97 16.393c-.597-.598-.174-1.62.67-1.62h36.596c.524 0 .949.425.949.95v36.595c0 .845-1.022 1.268-1.62.67z",
78
+ fill: "#ffffff",
79
+ fillOpacity: 0.1
80
+ }), /*#__PURE__*/_jsx(G, {
81
+ filter: "url(#filter0_d_722_2)",
82
+ children: /*#__PURE__*/_jsx(Path, {
83
+ d: "M42.356 47.81H18.118c-4.001 0-7.244-3.244-7.244-7.244v-7.298c0-6.639 5.674-11.223 11.855-11.223 2.96 0 5.071 1.202 6.287 2.092.703.515 1.597.53 2.302.02 1.86-1.348 3.617-2.112 6.902-2.112 6.006 0 11.38 5.532 11.38 11.223v7.298c0 4-3.243 7.244-7.244 7.244z",
84
+ fill: "#F2F2F4"
85
+ })
86
+ }), /*#__PURE__*/_jsx(Path, {
87
+ d: "M42.357 47.544h-24.24a6.978 6.978 0 01-6.977-6.978v-7.298c0-6.466 5.528-10.956 11.589-10.956 2.883 0 4.94 1.17 6.13 2.04.793.581 1.813.602 2.615.021.917-.664 1.797-1.176 2.845-1.524 1.049-.349 2.28-.537 3.9-.537 2.922 0 5.702 1.346 7.755 3.399 2.054 2.054 3.36 4.795 3.36 7.557v7.298a6.978 6.978 0 01-6.977 6.978z",
88
+ stroke: "#811200",
89
+ strokeWidth: 0.355555
90
+ }), /*#__PURE__*/_jsx(Path, {
91
+ opacity: 0.33,
92
+ d: "M16.248 34.66c-.294-2.838-1.239-5.452-2.775-7.616-.445.65-1.4 2.215-1.667 3.282a12.456 12.456 0 00-.333 2.666v7.334c0 .666-.1 2.542 1.333 4.333 1.333 1.667 3 2.333 3.442 2.333V34.66zM25.972 34.982v12.344h9.56V34.91c-.133-3.61-1.922-7.251-4.726-9.893 0 0-.37.309-.667.309-.333 0-.666-.334-1.333-.667-2.333-1.666-4-2-6.333-2-1.067 0-2.607.295-3.243.443 3.132 2.174 5.912 6.727 6.742 11.88zM44.94 34.965c0 1.312.15 5.606.153 11.727.682-.344 2.18-1.3 2.713-2.366.666-1.334 1-2.334 1-3.334v-8.666c-.111-1.334-.933-4.534-3.334-6.667-3-2.667-5.333-3.136-8-3.068 3.49 1.794 6.829 6.264 7.469 12.373z",
93
+ fill: "#ffffff"
94
+ })]
95
+ }), /*#__PURE__*/_jsx(Path, {
96
+ d: "M6.448 9.4a2.53 2.53 0 100-5.059 2.53 2.53 0 000 5.059z",
97
+ fill: "#FD7E14"
98
+ }), /*#__PURE__*/_jsx(Path, {
99
+ d: "M53.868 9.4a2.53 2.53 0 100-5.059 2.53 2.53 0 000 5.059z",
100
+ fill: "#FF275E"
101
+ }), /*#__PURE__*/_jsx(Path, {
102
+ d: "M26.364 40.065c.747 1.71 2.087 2.621 3.952 2.687 1.969.07 3.48-.882 4.268-2.687",
103
+ stroke: "#FD7E14",
104
+ strokeWidth: 1.68609,
105
+ strokeLinecap: "round"
106
+ }), /*#__PURE__*/_jsx(Path, {
107
+ d: "M20.832 37.694a2.53 2.53 0 100-5.058 2.53 2.53 0 000 5.058z",
108
+ fill: "#FD7E14",
109
+ stroke: "#FD7E14",
110
+ strokeWidth: 0.210761
111
+ }), /*#__PURE__*/_jsx(Path, {
112
+ d: "M19.4 33.494l-.505.55a.729.729 0 101.081.977l.497-.559a.723.723 0 00-1.073-.968z",
113
+ fill: "#ffffff"
114
+ }), /*#__PURE__*/_jsx(Path, {
115
+ d: "M40.117 37.694a2.53 2.53 0 100-5.059 2.53 2.53 0 000 5.059z",
116
+ fill: "#FD7E14",
117
+ stroke: "#FD7E14",
118
+ strokeWidth: 0.210761
119
+ }), /*#__PURE__*/_jsx(Path, {
120
+ d: "M38.842 33.494l-.505.55a.728.728 0 101.082.977l.496-.559a.723.723 0 00-1.073-.968z",
121
+ fill: "#ffffff"
122
+ })]
123
+ }), /*#__PURE__*/_jsx(Defs, {
124
+ children: /*#__PURE__*/_jsxs(LinearGradient, {
125
+ id: "paint0_linear_722_2",
126
+ x1: 5.0249,
127
+ y1: 36.0572,
128
+ x2: 55.4494,
129
+ y2: 36.0572,
130
+ gradientUnits: "userSpaceOnUse",
131
+ children: [/*#__PURE__*/_jsx(Stop, {
132
+ stopColor: "#FF245F"
133
+ }), /*#__PURE__*/_jsx(Stop, {
134
+ offset: 1,
135
+ stopColor: "#FF7917"
136
+ })]
137
+ })
138
+ })]
139
+ });
140
+ //# sourceMappingURL=ChatbotIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Svg","Path","Defs","LinearGradient","Stop","Mask","G","Rect","jsx","_jsx","jsxs","_jsxs","ChatbotIcon","width","height","viewBox","fill","children","id","maskUnits","x","y","d","mask","stroke","strokeWidth","strokeLinecap","fillOpacity","filter","opacity","x1","y1","x2","y2","gradientUnits","stopColor","offset"],"sourceRoot":"../../../../src","sources":["shared/icons/ChatbotIcon.tsx"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import Svg, { Path } from 'react-native-svg';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const CloseIcon = ({
7
+ width = 22,
8
+ height = 22,
9
+ color = '#4D4D63'
10
+ }) => /*#__PURE__*/_jsx(Svg, {
11
+ width: width,
12
+ height: height,
13
+ viewBox: "0 0 22 23",
14
+ fill: "none",
15
+ children: /*#__PURE__*/_jsx(Path, {
16
+ d: "M2.384 1.116A1.25 1.25 0 10.616 2.884L9.232 11.5.616 20.116a1.25 1.25 0 001.768 1.768L11 13.268l8.616 8.616a1.25 1.25 0 001.768-1.768L12.768 11.5l8.616-8.616a1.25 1.25 0 00-1.768-1.768L11 9.732 2.384 1.116z",
17
+ fill: color
18
+ })
19
+ });
20
+ //# sourceMappingURL=CloseIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Svg","Path","jsx","_jsx","CloseIcon","width","height","color","viewBox","fill","children","d"],"sourceRoot":"../../../../src","sources":["shared/icons/CloseIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAG5C,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAqB,CAAC,kBACjFJ,IAAA,CAACH,GAAG;EAACK,KAAK,EAAEA,KAAM;EAACC,MAAM,EAAEA,MAAO;EAACE,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAChEP,IAAA,CAACF,IAAI;IACHU,CAAC,EAAC,gNAAgN;IAClNF,IAAI,EAAEF;EAAM,CACb;AAAC,CACC,CACN","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import Svg, { Path } from 'react-native-svg';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const GlobeIcon = ({
7
+ width = 20,
8
+ height = 20,
9
+ color = '#4D4D63'
10
+ }) => /*#__PURE__*/_jsx(Svg, {
11
+ width: width,
12
+ height: height,
13
+ viewBox: "0 0 20 21",
14
+ fill: "none",
15
+ children: /*#__PURE__*/_jsx(Path, {
16
+ fillRule: "evenodd",
17
+ clipRule: "evenodd",
18
+ d: "M4.397 4.365a8.312 8.312 0 003.4 14.148l-.405-2.503-2.298-1.213a1.26 1.26 0 01-.672-1.114v-2.949c0-.442.231-.851.61-1.08l2.23-1.344a1.26 1.26 0 01.651-.181h2.653V6.006H9.348l-.352.557a1.26 1.26 0 01-1.065.587H5.677a1.26 1.26 0 01-1.26-1.244l-.02-1.54zM7.903.72C3.387 1.684 0 5.696 0 10.5c0 5.523 4.477 10 10 10s10-4.477 10-10c0-.997-.146-1.959-.417-2.867a1.333 1.333 0 00-.03-.126c-.184-.654-.528-1.444-1.04-2.255a10.052 10.052 0 00-1.985-2.327 9.681 9.681 0 00-5.808-2.4A10.145 10.145 0 009.966.5C9.2.5 8.512.585 7.903.72zm8.895 5.002c.358.509.66 1.06.899 1.644h-3.34a1.26 1.26 0 00-1.26 1.26v4.465l-.306 1.61-3.27 3.884-.494-3.057a1.26 1.26 0 00-.656-.914l-2.258-1.191v-2.445l1.92-1.158h2.965a1.26 1.26 0 001.26-1.26V5.575a1.26 1.26 0 00-1.26-1.26H9.11a1.26 1.26 0 00-1.066.586l-.352.558h-1.59l-.028-2.135c.38-.282 1.105-.707 2.176-.948a8.34 8.34 0 012.531-.148 8.272 8.272 0 014.565 1.912 8.832 8.832 0 011.451 1.582zm-5.109 12.915a8.311 8.311 0 006.495-9.58h-3.396v4.074c0 .079-.007.157-.022.235l-.334 1.762a1.26 1.26 0 01-.274.577l-2.469 2.932z",
19
+ fill: color
20
+ })
21
+ });
22
+ //# sourceMappingURL=GlobeIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Svg","Path","jsx","_jsx","GlobeIcon","width","height","color","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../src","sources":["shared/icons/GlobeIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAG5C,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAqB,CAAC,kBACjFJ,IAAA,CAACH,GAAG;EAACK,KAAK,EAAEA,KAAM;EAACC,MAAM,EAAEA,MAAO;EAACE,OAAO,EAAC,WAAW;EAACC,IAAI,EAAC,MAAM;EAAAC,QAAA,eAChEP,IAAA,CAACF,IAAI;IACHU,QAAQ,EAAC,SAAS;IAClBC,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC,2hCAA2hC;IAC7hCJ,IAAI,EAAEF;EAAM,CACb;AAAC,CACC,CACN","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import Svg, { Path } from 'react-native-svg';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const PauseIcon = ({
7
+ color = '#4D4D63',
8
+ height = 16,
9
+ width = 16
10
+ }) => {
11
+ return /*#__PURE__*/_jsx(Svg, {
12
+ width: width,
13
+ height: height,
14
+ viewBox: "0 0 16 16",
15
+ fill: "none",
16
+ children: /*#__PURE__*/_jsx(Path, {
17
+ fillRule: "evenodd",
18
+ clipRule: "evenodd",
19
+ d: "M1 2.476C1 1.661 1.66 1 2.476 1h2.762c.815 0 1.476.66 1.476 1.476v11.048c0 .815-.66 1.476-1.476 1.476H2.476C1.661 15 1 14.34 1 13.524V2.476zM9.286 2.476c0-.815.66-1.476 1.476-1.476h2.762C14.339 1 15 1.66 15 2.476v11.048c0 .815-.66 1.476-1.476 1.476h-2.762c-.815 0-1.476-.66-1.476-1.476V2.476z",
20
+ fill: color
21
+ })
22
+ });
23
+ };
24
+ //# sourceMappingURL=PauseIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Svg","Path","jsx","_jsx","PauseIcon","color","height","width","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../src","sources":["shared/icons/PauseIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAG5C,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEC,KAAK,GAAG,SAAS;EAAEC,MAAM,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAc,CAAC,KAAK;EACtF,oBACEJ,IAAA,CAACH,GAAG;IAACO,KAAK,EAAEA,KAAM;IAACD,MAAM,EAAEA,MAAO;IAACE,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,eAChEP,IAAA,CAACF,IAAI;MACHU,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC,sSAAsS;MACxSJ,IAAI,EAAEJ;IAAM,CACb;EAAC,CACC,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import Svg, { Path } from 'react-native-svg';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const PlayIcon = ({
7
+ color = '#4D4D63',
8
+ height = 16,
9
+ width = 16
10
+ }) => {
11
+ return /*#__PURE__*/_jsx(Svg, {
12
+ width: width,
13
+ height: height,
14
+ viewBox: "0 0 16 16",
15
+ fill: "none",
16
+ children: /*#__PURE__*/_jsx(Path, {
17
+ fillRule: "evenodd",
18
+ clipRule: "evenodd",
19
+ d: "M1.5 2.806C1.5 1.438 2.945.568 4.131 1.22l9.439 5.195c1.24.682 1.24 2.486 0 3.168L4.13 14.78c-1.186.653-2.631-.217-2.631-1.585V2.806z",
20
+ fill: color
21
+ })
22
+ });
23
+ };
24
+ //# sourceMappingURL=PlayIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Svg","Path","jsx","_jsx","PlayIcon","color","height","width","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../src","sources":["shared/icons/PlayIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAG5C,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,KAAK,GAAG,SAAS;EAAEC,MAAM,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAc,CAAC,KAAK;EACrF,oBACEJ,IAAA,CAACH,GAAG;IAACO,KAAK,EAAEA,KAAM;IAACD,MAAM,EAAEA,MAAO;IAACE,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,eAChEP,IAAA,CAACF,IAAI;MACHU,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC,uIAAuI;MACzIJ,IAAI,EAAEJ;IAAM,CACb;EAAC,CACC,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import Svg, { Path } from 'react-native-svg';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ export const SpeakerIcon = ({
7
+ width = 17,
8
+ height = 17,
9
+ color = '#4D4D63'
10
+ }) => {
11
+ return /*#__PURE__*/_jsxs(Svg, {
12
+ width: width,
13
+ height: height,
14
+ viewBox: "0 0 17 17",
15
+ fill: "none",
16
+ children: [/*#__PURE__*/_jsx(Path, {
17
+ fillRule: "evenodd",
18
+ clipRule: "evenodd",
19
+ d: "M6.743 3.016c1.09-.94 2.735-.128 2.735 1.349v8.27c0 1.478-1.644 2.289-2.735 1.35L3.92 11.556H2.172C1.25 11.556.5 10.774.5 9.808V7.192c0-.966.749-1.748 1.672-1.748h1.75l2.82-2.428zM8.01 4.365c0-.182-.202-.281-.336-.166L4.824 6.653c-.243.21-.549.324-.864.324H2.172a.21.21 0 00-.205.215v2.616a.21.21 0 00.205.215H3.96c.315 0 .62.115.864.324l2.851 2.454c.134.115.336.016.336-.165V4.364zM11.18 4.36c.286-.3.75-.3 1.037 0 1.041 1.089 1.78 2.582 1.78 4.14 0 1.558-.739 3.051-1.78 4.14-.287.3-.751.3-1.038 0a.791.791 0 010-1.084c.836-.874 1.35-1.997 1.35-3.056s-.514-2.182-1.35-3.056a.791.791 0 010-1.084z",
20
+ fill: color
21
+ }), /*#__PURE__*/_jsx(Path, {
22
+ fillRule: "evenodd",
23
+ clipRule: "evenodd",
24
+ d: "M13.057 2.725c.287-.3.75-.3 1.037 0C15.788 4.495 16.5 6.32 16.5 8.5c0 2.18-.713 4.006-2.406 5.775-.286.3-.75.3-1.037 0a.791.791 0 010-1.084c1.437-1.501 1.976-2.945 1.976-4.691s-.54-3.19-1.976-4.691a.791.791 0 010-1.084z",
25
+ fill: color
26
+ })]
27
+ });
28
+ };
29
+ //# sourceMappingURL=SpeakerIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Svg","Path","jsx","_jsx","jsxs","_jsxs","SpeakerIcon","width","height","color","viewBox","fill","children","fillRule","clipRule","d"],"sourceRoot":"../../../../src","sources":["shared/icons/SpeakerIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAG5C,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAqB,CAAC,KAAK;EACxF,oBACEJ,KAAA,CAACL,GAAG;IAACO,KAAK,EAAEA,KAAM;IAACC,MAAM,EAAEA,MAAO;IAACE,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,gBAChET,IAAA,CAACF,IAAI;MACHY,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC,ulBAAulB;MACzlBJ,IAAI,EAAEF;IAAM,CACb,CAAC,eACFN,IAAA,CAACF,IAAI;MACHY,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC,6NAA6N;MAC/NJ,IAAI,EAAEF;IAAM,CACb,CAAC;EAAA,CACC,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=icon.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["shared/icons/icon.types.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ import { Locale } from "./types.js";
4
+ import EN from '../../lib/localization/en.json';
5
+ import GB from '../../lib/localization/gb.json';
6
+ import SW from '../../lib/localization/sw.json';
7
+ export const LOCALIZATION_CONFIGS = {
8
+ [Locale.EN]: EN,
9
+ [Locale.GB]: GB,
10
+ [Locale.SW]: SW
11
+ };
12
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Locale","EN","GB","SW","LOCALIZATION_CONFIGS"],"sourceRoot":"../../../../src","sources":["shared/translation/constants.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,YAAS;AAChC,OAAOC,EAAE,MAAM,gCAAgC;AAC/C,OAAOC,EAAE,MAAM,gCAAgC;AAC/C,OAAOC,EAAE,MAAM,gCAAgC;AAE/C,OAAO,MAAMC,oBAAoB,GAAG;EAChC,CAACJ,MAAM,CAACC,EAAE,GAAGA,EAAE;EACf,CAACD,MAAM,CAACE,EAAE,GAAGA,EAAE;EACf,CAACF,MAAM,CAACG,EAAE,GAAGA;AACjB,CAAC","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ import { $localization, setLocalization } from "./model.js";
4
+ export const getSubstitutedString = (str, substitutions = {}) => {
5
+ const substitutionsArray = Object.entries(substitutions);
6
+ let result = str;
7
+ if (!substitutionsArray.length) return result;
8
+ substitutionsArray.forEach(([key, value]) => {
9
+ result = result.replace(`{{${key}}}`, value);
10
+ });
11
+ return result;
12
+ };
13
+ export const getText = (key, args = null) => {
14
+ const config = $localization.getState();
15
+ const translation = config?.[key];
16
+ if (translation && args) {
17
+ return getSubstitutedString(translation, args);
18
+ }
19
+ return translation ?? key;
20
+ };
21
+ export const setFeaturesLocalization = generator => {
22
+ setLocalization(generator);
23
+ };
24
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["$localization","setLocalization","getSubstitutedString","str","substitutions","substitutionsArray","Object","entries","result","length","forEach","key","value","replace","getText","args","config","getState","translation","setFeaturesLocalization","generator"],"sourceRoot":"../../../../src","sources":["shared/translation/helpers.ts"],"mappings":";;AACA,SAASA,aAAa,EAAEC,eAAe,QAAQ,YAAS;AAGxD,OAAO,MAAMC,oBAAoB,GAAGA,CAACC,GAAW,EAAEC,aAAqC,GAAG,CAAC,CAAC,KAAK;EAC7F,MAAMC,kBAAkB,GAAGC,MAAM,CAACC,OAAO,CAACH,aAAa,CAAC;EACxD,IAAII,MAAM,GAAGL,GAAG;EAEhB,IAAI,CAACE,kBAAkB,CAACI,MAAM,EAAE,OAAOD,MAAM;EAE7CH,kBAAkB,CAACK,OAAO,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;IACzCJ,MAAM,GAAGA,MAAM,CAACK,OAAO,CAAC,KAAKF,GAAG,IAAI,EAAEC,KAAK,CAAC;EAChD,CAAC,CAAC;EAEF,OAAOJ,MAAM;AACjB,CAAC;AAED,OAAO,MAAMM,OAAgB,GAAGA,CAACH,GAAG,EAAEI,IAAI,GAAG,IAAI,KAAK;EAClD,MAAMC,MAAM,GAAGhB,aAAa,CAACiB,QAAQ,CAAC,CAAC;EAEvC,MAAMC,WAAW,GAAGF,MAAM,GAAGL,GAAG,CAAC;EAEjC,IAAIO,WAAW,IAAIH,IAAI,EAAE;IACrB,OAAOb,oBAAoB,CAACgB,WAAW,EAAEH,IAAI,CAAC;EAClD;EAEA,OAAOG,WAAW,IAAIP,GAAG;AAC7B,CAAC;AAED,OAAO,MAAMQ,uBAAuB,GAChCC,SAA6F,IAC5F;EACDnB,eAAe,CAACmB,SAAS,CAAC;AAC9B,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ import { useUnit } from 'effector-react';
4
+ import { $localization, setLocalization } from "./model.js";
5
+ import { useEffect } from 'react';
6
+ import { getSubstitutedString } from "./helpers.js";
7
+ export const useText = () => {
8
+ const config = useUnit($localization);
9
+ return (key, args = null) => {
10
+ const translation = config?.[key];
11
+ if (translation && args) {
12
+ return getSubstitutedString(translation, args);
13
+ }
14
+ return translation ?? key;
15
+ };
16
+ };
17
+ export const useFeaturesLocalization = generator => {
18
+ useEffect(() => {
19
+ setLocalization(generator);
20
+ }, [generator]);
21
+ };
22
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useUnit","$localization","setLocalization","useEffect","getSubstitutedString","useText","config","key","args","translation","useFeaturesLocalization","generator"],"sourceRoot":"../../../../src","sources":["shared/translation/hooks.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,gBAAgB;AACxC,SAASC,aAAa,EAAEC,eAAe,QAAQ,YAAS;AAExD,SAASC,SAAS,QAAQ,OAAO;AAEjC,SAASC,oBAAoB,QAAQ,cAAW;AAEhD,OAAO,MAAMC,OAAO,GAAGA,CAAA,KAAe;EAClC,MAAMC,MAAM,GAAGN,OAAO,CAACC,aAAa,CAAuB;EAE3D,OAAO,CAACM,GAAG,EAAEC,IAAI,GAAG,IAAI,KAAK;IACzB,MAAMC,WAAW,GAAGH,MAAM,GAAGC,GAAG,CAAC;IAEjC,IAAIE,WAAW,IAAID,IAAI,EAAE;MACrB,OAAOJ,oBAAoB,CAACK,WAAW,EAAED,IAAI,CAAC;IAClD;IAEA,OAAOC,WAAW,IAAIF,GAAG;EAC7B,CAAC;AACL,CAAC;AAED,OAAO,MAAMG,uBAAuB,GAChCC,SAA6F,IAC5F;EACDR,SAAS,CAAC,MAAM;IACZD,eAAe,CAACS,SAAS,CAAC;EAC9B,CAAC,EAAE,CAACA,SAAS,CAAC,CAAC;AACnB,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ export { useFeaturesLocalization, useText } from "./hooks.js";
4
+ export { setFeaturesLocalization, getText as t } from "./helpers.js";
5
+ export { $localization, setLocalization } from "./model.js";
6
+ export { Locale } from "./types.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useFeaturesLocalization","useText","setFeaturesLocalization","getText","t","$localization","setLocalization","Locale"],"sourceRoot":"../../../../src","sources":["shared/translation/index.ts"],"mappings":";;AAAA,SAASA,uBAAuB,EAAEC,OAAO,QAAQ,YAAS;AAC1D,SAASC,uBAAuB,EAAEC,OAAO,IAAIC,CAAC,QAAQ,cAAW;AACjE,SAASC,aAAa,EAAEC,eAAe,QAAQ,YAAS;AACxD,SAASC,MAAM,QAAQ,YAAS","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ import { createEvent, createStore } from 'effector';
4
+ import { Locale } from "./types.js";
5
+ import { LOCALIZATION_CONFIGS } from "./constants.js";
6
+ export const setLocalization = createEvent();
7
+ export const $localization = createStore(LOCALIZATION_CONFIGS[Locale.EN]).on(setLocalization, (state, payload) => {
8
+ if (typeof payload === 'function') return payload(LOCALIZATION_CONFIGS);
9
+ if (state.locale !== payload.locale) return payload;
10
+ });
11
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEvent","createStore","Locale","LOCALIZATION_CONFIGS","setLocalization","$localization","EN","on","state","payload","locale"],"sourceRoot":"../../../../src","sources":["shared/translation/model.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,UAAU;AACnD,SAASC,MAAM,QAA4B,YAAS;AACpD,SAASC,oBAAoB,QAAQ,gBAAa;AAElD,OAAO,MAAMC,eAAe,GAAGJ,WAAW,CAExC,CAAC;AAEH,OAAO,MAAMK,aAAa,GAAGJ,WAAW,CAAqBE,oBAAoB,CAACD,MAAM,CAACI,EAAE,CAAC,CAAC,CAACC,EAAE,CAC5FH,eAAe,EACf,CAACI,KAAK,EAAEC,OAAO,KAAK;EAChB,IAAI,OAAOA,OAAO,KAAK,UAAU,EAAE,OAAOA,OAAO,CAACN,oBAAoB,CAAC;EACvE,IAAIK,KAAK,CAACE,MAAM,KAAKD,OAAO,CAACC,MAAM,EAAE,OAAOD,OAAO;AACvD,CACJ,CAAC","ignoreList":[]}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ export let Locale = /*#__PURE__*/function (Locale) {
4
+ Locale["EN"] = "en-SE";
5
+ Locale["SW"] = "sv-SE";
6
+ Locale["GB"] = "en-GB";
7
+ return Locale;
8
+ }({});
9
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Locale"],"sourceRoot":"../../../../src","sources":["shared/translation/types.ts"],"mappings":";;AAEA,WAAYA,MAAM,0BAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAAA,OAANA,MAAM;AAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/types.d.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ChatbotModel } from '../../model/model';
3
+ type AlternativesProps = {
4
+ model: ChatbotModel;
5
+ onPressAlternative: (message: string, promptKey: string, translatedMessage?: string) => void;
6
+ hasMessages: boolean;
7
+ isHintFeedback: boolean;
8
+ };
9
+ export declare const Alternatives: ({ model, onPressAlternative, hasMessages, isHintFeedback, }: AlternativesProps) => React.JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=Alternatives.d.ts.map