@magmamath/students-features 0.2.22 → 0.3.0-rc.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.
- package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js +8 -10
- package/dist/commonjs/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js +6 -15
- package/dist/commonjs/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js +3 -4
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +3 -2
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +4 -5
- package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +14 -23
- package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/Chatbot.js +6 -9
- package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/commonjs/features/chatbot/index.js +2 -2
- package/dist/commonjs/features/chatbot/index.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/{model.js → ChatBotModel.js} +83 -117
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/t2s.js +7 -4
- package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/translation.js +15 -30
- package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
- package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
- package/dist/commonjs/features/feedback/model/model.js +1 -1
- package/dist/commonjs/features/feedback/model/model.js.map +1 -1
- package/dist/commonjs/lib/effector/createEntityFieldStore.js +8 -26
- package/dist/commonjs/lib/effector/createEntityFieldStore.js.map +1 -1
- package/dist/commonjs/shared/icons/ChatbotIcon.js +106 -613
- package/dist/commonjs/shared/icons/ChatbotIcon.js.map +1 -1
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.js +6 -8
- package/dist/module/features/chatbot/components/Alternatives/Alternatives.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js +6 -15
- package/dist/module/features/chatbot/components/ChatControls/ChatControls.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js +3 -4
- package/dist/module/features/chatbot/components/ChatMessage/MessageLoader.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +3 -2
- package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +4 -5
- package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +14 -23
- package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
- package/dist/module/features/chatbot/components/Chatbot.js +6 -9
- package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
- package/dist/module/features/chatbot/index.js +1 -1
- package/dist/module/features/chatbot/index.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotModel.js +208 -0
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -0
- package/dist/module/features/chatbot/model/t2s.js +8 -5
- package/dist/module/features/chatbot/model/t2s.js.map +1 -1
- package/dist/module/features/chatbot/model/translation.js +15 -30
- package/dist/module/features/chatbot/model/translation.js.map +1 -1
- package/dist/module/features/chatbot/types/model.types.js.map +1 -1
- package/dist/module/features/feedback/model/model.js +1 -1
- package/dist/module/features/feedback/model/model.js.map +1 -1
- package/dist/module/lib/effector/createEntityFieldStore.js +8 -26
- package/dist/module/lib/effector/createEntityFieldStore.js.map +1 -1
- package/dist/module/shared/icons/ChatbotIcon.js +107 -614
- package/dist/module/shared/icons/ChatbotIcon.js.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts +2 -6
- package/dist/typescript/commonjs/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts +2 -6
- package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/{model.d.ts → ChatBotModel.d.ts} +19 -35
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +8 -20
- package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts +1 -5
- package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts +4 -9
- package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/ChatbotIcon.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/components/Alternatives/Alternatives.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts +2 -6
- package/dist/typescript/module/features/chatbot/components/ChatControls/ChatControls.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts +2 -6
- package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/{model.d.ts → ChatBotModel.d.ts} +19 -35
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/model/t2s.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/translation.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts +8 -20
- package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/translation.types.d.ts +1 -5
- package/dist/typescript/module/features/chatbot/types/translation.types.d.ts.map +1 -1
- package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts +4 -9
- package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/ChatbotIcon.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/chatbot/components/Alternatives/Alternatives.tsx +7 -10
- package/src/features/chatbot/components/ChatControls/ChatControls.tsx +5 -10
- package/src/features/chatbot/components/ChatMessage/MessageLoader.tsx +2 -3
- package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +2 -1
- package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +3 -4
- package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +15 -24
- package/src/features/chatbot/components/Chatbot.tsx +6 -10
- package/src/features/chatbot/index.ts +1 -1
- package/src/features/chatbot/model/ChatBotModel.ts +222 -0
- package/src/features/chatbot/model/t2s.ts +8 -5
- package/src/features/chatbot/model/translation.ts +181 -201
- package/src/features/chatbot/types/model.types.ts +8 -14
- package/src/features/chatbot/types/translation.types.ts +10 -12
- package/src/features/feedback/model/model.ts +1 -1
- package/src/lib/effector/createEntityFieldStore.ts +9 -35
- package/src/shared/icons/ChatbotIcon.tsx +85 -500
- package/dist/commonjs/features/chatbot/model/model.js.map +0 -1
- package/dist/module/features/chatbot/model/model.js +0 -242
- package/dist/module/features/chatbot/model/model.js.map +0 -1
- package/dist/typescript/commonjs/features/chatbot/model/model.d.ts.map +0 -1
- package/dist/typescript/module/features/chatbot/model/model.d.ts.map +0 -1
- package/src/features/chatbot/model/model.ts +0 -268
|
@@ -4,37 +4,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Alternatives = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _effectorReact = require("effector-react");
|
|
10
10
|
var _HelpRequestOption = require("./HelpRequestOption.js");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
13
|
const Alternatives = ({
|
|
15
14
|
model,
|
|
16
15
|
onPressAlternative,
|
|
17
16
|
hasMessages,
|
|
18
17
|
isHintFeedback
|
|
19
18
|
}) => {
|
|
20
|
-
const
|
|
21
|
-
const exerciseId = (0, _effectorReact.useUnit)(model.credits.$exerciseId);
|
|
19
|
+
const key = (0, _effectorReact.useUnit)(model.$currentKey);
|
|
22
20
|
const isTranslated = (0, _effectorReact.useUnit)(model.translation.$isTranslated);
|
|
23
21
|
const alternatives = (0, _effectorReact.useUnit)(model.$alternatives);
|
|
24
22
|
const isTranslationPending = (0, _effectorReact.useUnit)(model.translation.translateBatchFx.pending);
|
|
25
23
|
const lastMessageOptions = (0, _effectorReact.useStoreMap)({
|
|
26
24
|
store: model.messages.$state,
|
|
27
|
-
keys: [
|
|
25
|
+
keys: [key],
|
|
28
26
|
fn: state => {
|
|
29
|
-
const lastMessage = state[
|
|
27
|
+
const lastMessage = state[key]?.at(-1);
|
|
30
28
|
return lastMessage ? lastMessage.options : [];
|
|
31
29
|
}
|
|
32
30
|
});
|
|
33
|
-
const options = (
|
|
34
|
-
if (hasMessages) return lastMessageOptions
|
|
31
|
+
const options = (() => {
|
|
32
|
+
if (hasMessages) return lastMessageOptions;
|
|
35
33
|
if (isHintFeedback) return alternatives?.options.hints ?? [];
|
|
36
34
|
return alternatives?.options.default ?? [];
|
|
37
|
-
}
|
|
35
|
+
})();
|
|
38
36
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
39
37
|
style: styles.container,
|
|
40
38
|
children: options.map(({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_effectorReact","_HelpRequestOption","_jsxRuntime","e","__esModule","default","Alternatives","model","onPressAlternative","hasMessages","isHintFeedback","key","useUnit","$currentKey","isTranslated","translation","$isTranslated","alternatives","$alternatives","isTranslationPending","translateBatchFx","pending","lastMessageOptions","useStoreMap","store","messages","$state","keys","fn","state","lastMessage","at","options","hints","jsx","View","style","styles","container","children","map","text","promptKey","translatedText","index","HelpRequestOption","onPress","message","disabled","exports","StyleSheet","create","flex","width","marginVertical","gap"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/Alternatives/Alternatives.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAGA,IAAAG,kBAAA,GAAAH,OAAA;AAAuD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAShD,MAAMG,YAAY,GAAGA,CAAC;EAC3BC,KAAK;EACLC,kBAAkB;EAClBC,WAAW;EACXC;AACiB,CAAC,KAAK;EACvB,MAAMC,GAAG,GAAG,IAAAC,sBAAO,EAACL,KAAK,CAACM,WAAW,CAAC;EACtC,MAAMC,YAAY,GAAG,IAAAF,sBAAO,EAACL,KAAK,CAACQ,WAAW,CAACC,aAAa,CAAC;EAC7D,MAAMC,YAAY,GAAG,IAAAL,sBAAO,EAACL,KAAK,CAACW,aAAa,CAAC;EACjD,MAAMC,oBAAoB,GAAG,IAAAP,sBAAO,EAACL,KAAK,CAACQ,WAAW,CAACK,gBAAgB,CAACC,OAAO,CAAC;EAChF,MAAMC,kBAAkB,GAAG,IAAAC,0BAAW,EAAC;IACrCC,KAAK,EAAEjB,KAAK,CAACkB,QAAQ,CAACC,MAAM;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[]}
|
|
@@ -19,20 +19,15 @@ const ChatControls = ({
|
|
|
19
19
|
onPressChatIcon,
|
|
20
20
|
onPressClose,
|
|
21
21
|
isTranslationEnabled,
|
|
22
|
-
ButtonWrapper
|
|
23
|
-
iconSize = {
|
|
24
|
-
width: 80,
|
|
25
|
-
height: 100
|
|
26
|
-
}
|
|
22
|
+
ButtonWrapper
|
|
27
23
|
}) => {
|
|
28
24
|
const isOpen = (0, _effectorReact.useUnit)(model.$isOpen);
|
|
29
25
|
const isTranslated = (0, _effectorReact.useUnit)(model.translation.$isTranslated);
|
|
30
26
|
const isTranslationPending = (0, _effectorReact.useUnit)(model.translation.translateBatchFx.pending);
|
|
31
27
|
const isHelpRequestPending = (0, _effectorReact.useUnit)(model.sendHelpRequestFx.pending);
|
|
32
28
|
if (isOpen) {
|
|
33
|
-
const backgroundColor = isTranslated ?
|
|
34
|
-
const
|
|
35
|
-
const fillColor = isHelpRequestPending ? _reactNativeUi.COLORS.NEUTRAL_5 : translatedFillColor;
|
|
29
|
+
const backgroundColor = isTranslated ? '#55ABE0' : '#FFF';
|
|
30
|
+
const fillColor = isTranslated ? '#FFF' : '#4D4D63';
|
|
36
31
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
37
32
|
style: styles.container,
|
|
38
33
|
children: [isTranslationEnabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
@@ -74,10 +69,7 @@ const ChatControls = ({
|
|
|
74
69
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonWrapper, {
|
|
75
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
76
71
|
onPress: onPressChatIcon,
|
|
77
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatbotIcon.ChatbotIcon, {
|
|
78
|
-
width: iconSize?.width,
|
|
79
|
-
height: iconSize?.height
|
|
80
|
-
})
|
|
72
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatbotIcon.ChatbotIcon, {})
|
|
81
73
|
})
|
|
82
74
|
})
|
|
83
75
|
});
|
|
@@ -88,9 +80,8 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
88
80
|
alignItems: 'center',
|
|
89
81
|
justifyContent: 'flex-end',
|
|
90
82
|
flexDirection: 'row',
|
|
91
|
-
|
|
92
|
-
gap: 8
|
|
93
|
-
paddingBottom: 5
|
|
83
|
+
height: 60,
|
|
84
|
+
gap: 8
|
|
94
85
|
},
|
|
95
86
|
buttonClose: {
|
|
96
87
|
width: 50,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_effectorReact","_ChatbotIcon","_GlobeIcon","_CloseIcon","_jsxRuntime","e","__esModule","default","ChatControls","model","onPressTranslate","onPressChatIcon","onPressClose","isTranslationEnabled","ButtonWrapper","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_effectorReact","_ChatbotIcon","_GlobeIcon","_CloseIcon","_jsxRuntime","e","__esModule","default","ChatControls","model","onPressTranslate","onPressChatIcon","onPressClose","isTranslationEnabled","ButtonWrapper","isOpen","useUnit","$isOpen","isTranslated","translation","$isTranslated","isTranslationPending","translateBatchFx","pending","isHelpRequestPending","sendHelpRequestFx","backgroundColor","fillColor","jsxs","View","style","styles","container","children","jsx","Pressable","onPress","disabled","buttonTranslate","ActivityIndicator","GlobeIcon","color","Button","button","buttonClose","variant","ButtonVariant","PRIMARY","size","ButtonSize","LARGE","colorScheme","ButtonColor","GRAY","raiseLevel","customColorScheme","ButtonStates","DEFAULT","borderColor","COLORS","NEUTRAL_5","raiseColor","PRESSED","NEUTRAL_4","CloseIcon","ChatbotIcon","exports","StyleSheet","create","alignItems","justifyContent","flexDirection","height","gap","width","borderRadius","paddingHorizontal","borderWidth","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../../../src","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URE__*/(0, _jsxRuntime.jsxs)(_reactNative.View
|
|
|
15
15
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
16
16
|
style: styles.icon,
|
|
17
17
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatbotIcon.ChatbotIcon, {
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
18
|
+
width: 38,
|
|
19
|
+
height: 38
|
|
20
20
|
})
|
|
21
21
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
22
22
|
style: styles.loader,
|
|
@@ -27,8 +27,7 @@ exports.MessageLoader = MessageLoader;
|
|
|
27
27
|
const styles = _reactNative.StyleSheet.create({
|
|
28
28
|
container: {
|
|
29
29
|
flexDirection: 'row',
|
|
30
|
-
width:
|
|
31
|
-
alignItems: 'flex-end'
|
|
30
|
+
width: 305
|
|
32
31
|
},
|
|
33
32
|
icon: {
|
|
34
33
|
alignSelf: 'flex-end',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ChatbotIcon","_ThreeDotsLoader","_jsxRuntime","e","__esModule","default","MessageLoader","jsxs","View","style","styles","container","children","jsx","icon","ChatbotIcon","width","height","loader","ThreeDotsLoader","exports","StyleSheet","create","flexDirection","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ChatbotIcon","_ThreeDotsLoader","_jsxRuntime","e","__esModule","default","MessageLoader","jsxs","View","style","styles","container","children","jsx","icon","ChatbotIcon","width","height","loader","ThreeDotsLoader","exports","StyleSheet","create","flexDirection","alignSelf","marginRight","flex","alignItems","maxWidth","padding","paddingTop","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageLoader.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,O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E,EAAE;IACdC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE;MAAEhB,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCgB,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -59,9 +59,10 @@ const MessageTextToSpeech = ({
|
|
|
59
59
|
exports.MessageTextToSpeech = MessageTextToSpeech;
|
|
60
60
|
const styles = _reactNative.StyleSheet.create({
|
|
61
61
|
container: {
|
|
62
|
-
alignSelf: '
|
|
62
|
+
alignSelf: 'flex-end',
|
|
63
63
|
justifyContent: 'flex-end',
|
|
64
|
-
width: 45
|
|
64
|
+
width: 45,
|
|
65
|
+
height: '100%'
|
|
65
66
|
},
|
|
66
67
|
button: {
|
|
67
68
|
alignItems: 'center',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_SpeakerIcon","_PlayIcon","_PauseIcon","_jsxRuntime","e","__esModule","default","TextToSpeechIcon","status","isActive","isLoading","jsx","ActivityIndicator","SpeakerIcon","color","undefined","PauseIcon","PlayIcon","MessageTextToSpeech","disabled","onPress","TouchableOpacity","style","styles","container","children","Pressable","button","backgroundColor","exports","StyleSheet","create","alignSelf","justifyContent","width","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_SpeakerIcon","_PlayIcon","_PauseIcon","_jsxRuntime","e","__esModule","default","TextToSpeechIcon","status","isActive","isLoading","jsx","ActivityIndicator","SpeakerIcon","color","undefined","PauseIcon","PlayIcon","MessageTextToSpeech","disabled","onPress","TouchableOpacity","style","styles","container","children","Pressable","button","backgroundColor","exports","StyleSheet","create","alignSelf","justifyContent","width","height","alignItems","padding","marginLeft","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderColor","borderWidth"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAA8D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAS9D,MAAMG,gBAAgB,GAAGA,CAAC;EAAEC,MAAM;EAAEC,QAAQ;EAAEC;AAAiC,CAAC,KAAK;EACnF,IAAIA,SAAS,IAAID,QAAQ,EAAE;IACzB,oBAAO,IAAAN,WAAA,CAAAQ,GAAA,EAACZ,YAAA,CAAAa,iBAAiB,IAAE,CAAC;EAC9B;EAEA,IAAI,CAACH,QAAQ,EAAE;IACb,oBAAO,IAAAN,WAAA,CAAAQ,GAAA,EAACX,YAAA,CAAAa,WAAW;MAACC,KAAK,EAAEL,QAAQ,GAAG,SAAS,GAAGM;IAAU,CAAE,CAAC;EACjE;EAEA,IAAIP,MAAM,KAAK,SAAS,EAAE,oBAAO,IAAAL,WAAA,CAAAQ,GAAA,EAACT,UAAA,CAAAc,SAAS;IAACF,KAAK,EAAC;EAAM,CAAE,CAAC;EAC3D,IAAIN,MAAM,KAAK,QAAQ,EAAE,oBAAO,IAAAL,WAAA,CAAAQ,GAAA,EAACV,SAAA,CAAAgB,QAAQ;IAACH,KAAK,EAAC;EAAM,CAAE,CAAC;EACzD,oBAAO,IAAAX,WAAA,CAAAQ,GAAA,EAACX,YAAA,CAAAa,WAAW;IAACC,KAAK,EAAEL,QAAQ,GAAG,SAAS,GAAGM;EAAU,CAAE,CAAC;AACjE,CAAC;AAUM,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;IACZC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,GAAG;IAChBlB,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -24,8 +24,8 @@ const ReceivedMessage = ({
|
|
|
24
24
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
25
25
|
style: styles.icon,
|
|
26
26
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChatbotIcon.ChatbotIcon, {
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
27
|
+
width: 38,
|
|
28
|
+
height: 38
|
|
29
29
|
})
|
|
30
30
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
31
31
|
style: styles.message,
|
|
@@ -52,9 +52,8 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
52
52
|
container: {
|
|
53
53
|
flex: 1,
|
|
54
54
|
flexDirection: 'row',
|
|
55
|
-
maxWidth:
|
|
56
|
-
width:
|
|
57
|
-
alignItems: 'flex-end'
|
|
55
|
+
maxWidth: 350,
|
|
56
|
+
width: 350
|
|
58
57
|
},
|
|
59
58
|
icon: {
|
|
60
59
|
alignSelf: 'flex-end',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ChatbotIcon","_MessageTextToSpeech","_modelTypes","_jsxRuntime","e","__esModule","default","ReceivedMessage","message","onPressTextToSpeech","isTextToSpeechPending","isActive","audioStatus","renderer","withTextToSpeech","jsxs","View","style","styles","container","children","jsx","icon","ChatbotIcon","width","height","Text","messageText","variant","MessageVariant","RECEIVED","MessageTextToSpeech","isLoading","onPress","disabled","status","exports","StyleSheet","create","flex","flexDirection","maxWidth","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ChatbotIcon","_MessageTextToSpeech","_modelTypes","_jsxRuntime","e","__esModule","default","ReceivedMessage","message","onPressTextToSpeech","isTextToSpeechPending","isActive","audioStatus","renderer","withTextToSpeech","jsxs","View","style","styles","container","children","jsx","icon","ChatbotIcon","width","height","Text","messageText","variant","MessageVariant","RECEIVED","MessageTextToSpeech","isLoading","onPress","disabled","status","exports","StyleSheet","create","flex","flexDirection","maxWidth","alignSelf","marginRight","padding","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","borderRadius","borderBottomLeftRadius","backgroundColor","fontSize","fontWeight","fontFamily","color"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessage/ReceivedMessage.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAwD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEjD,MAAMG,eAAe,GAAGA,CAAC;EAC9BC,OAAO;EACPC,mBAAmB;EACnBC,qBAAqB;EACrBC,QAAQ;EACRC,WAAW;EACXC,QAAQ;EACRC,gBAAgB,GAAG;AACP,CAAC,kBACb,IAAAX,WAAA,CAAAY,IAAA,EAAChB,YAAA,CAAAiB,IAAI;EAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;EAAAC,QAAA,gBAC5B,IAAAjB,WAAA,CAAAkB,GAAA,EAACtB,YAAA,CAAAiB,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACI,IAAK;IAAAF,QAAA,eACvB,IAAAjB,WAAA,CAAAkB,GAAA,EAACrB,YAAA,CAAAuB,WAAW;MAACC,KAAK,EAAE,EAAG;MAACC,MAAM,EAAE;IAAG,CAAE;EAAC,CAClC,CAAC,eAEP,IAAAtB,WAAA,CAAAY,IAAA,EAAChB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,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,sBAAsB,EAAE,CAAC;IACzBC,eAAe,EAAE;EACnB,CAAC;EACDzB,WAAW,EAAE;IACXY,IAAI,EAAE,CAAC;IACPc,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,cAAc;IAC1BC,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -17,8 +17,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
const TOOLBAR_HEIGHT = 140;
|
|
19
19
|
const BOTTOM_OFFSET = _reactNative.Platform.select({
|
|
20
|
-
web:
|
|
21
|
-
default:
|
|
20
|
+
web: 250,
|
|
21
|
+
default: 284
|
|
22
22
|
});
|
|
23
23
|
const ChatbotMessages = ({
|
|
24
24
|
model,
|
|
@@ -32,8 +32,7 @@ const ChatbotMessages = ({
|
|
|
32
32
|
}) => {
|
|
33
33
|
const dimensions = (0, _reactNative.useWindowDimensions)();
|
|
34
34
|
const ref = (0, _react.useRef)(null);
|
|
35
|
-
const
|
|
36
|
-
const exerciseId = (0, _effectorReact.useUnit)(model.credits.$exerciseId);
|
|
35
|
+
const currentKey = (0, _effectorReact.useUnit)(model.$currentKey);
|
|
37
36
|
const isOpen = (0, _effectorReact.useUnit)(model.$isOpen);
|
|
38
37
|
const isHelpRequestPending = (0, _effectorReact.useUnit)(model.sendHelpRequestFx.pending);
|
|
39
38
|
const isTextToSpeechPending = (0, _effectorReact.useUnit)(model.api.textToSpeechTextFx.pending);
|
|
@@ -43,28 +42,20 @@ const ChatbotMessages = ({
|
|
|
43
42
|
const MAX_HEIGHT = dimensions.height - TOOLBAR_HEIGHT - BOTTOM_OFFSET;
|
|
44
43
|
const messages = (0, _effectorReact.useStoreMap)({
|
|
45
44
|
store: model.messages.$state,
|
|
46
|
-
keys: [
|
|
47
|
-
fn: state => state[
|
|
45
|
+
keys: [currentKey],
|
|
46
|
+
fn: state => state[currentKey] ?? []
|
|
48
47
|
});
|
|
49
48
|
const playTextToSpeech = (id, message, translatedMessage) => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} else {
|
|
58
|
-
model.t2s.play({
|
|
59
|
-
text: sanitizeSpeechInput(message),
|
|
60
|
-
messageId: id,
|
|
61
|
-
isTranslated: false,
|
|
62
|
-
config: textToSpeechConfig ?? _constants.TEXT_TO_SPEECH_CONFIG
|
|
63
|
-
});
|
|
64
|
-
}
|
|
49
|
+
const text = isTranslated ? translatedMessage : message;
|
|
50
|
+
void model.t2s.play({
|
|
51
|
+
text: sanitizeSpeechInput(text),
|
|
52
|
+
messageId: id,
|
|
53
|
+
isTranslated,
|
|
54
|
+
config: textToSpeechConfig ?? _constants.TEXT_TO_SPEECH_CONFIG
|
|
55
|
+
});
|
|
65
56
|
};
|
|
66
57
|
const askChatForHelp = (message, promptKey, translatedMessage) => {
|
|
67
|
-
model.sendHelpRequestFx({
|
|
58
|
+
void model.sendHelpRequestFx({
|
|
68
59
|
payload: {
|
|
69
60
|
...sendHelpRequestPayload,
|
|
70
61
|
type: promptKey
|
|
@@ -118,7 +109,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
118
109
|
container: {
|
|
119
110
|
flex: 1,
|
|
120
111
|
alignItems: 'flex-end',
|
|
121
|
-
width:
|
|
112
|
+
width: 350,
|
|
122
113
|
height: '100%'
|
|
123
114
|
},
|
|
124
115
|
list: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_effectorReact","_ChatMessage","_MessageLoader","_Alternatives","_constants","_modelTypes","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","TOOLBAR_HEIGHT","BOTTOM_OFFSET","Platform","select","web","ChatbotMessages","model","isHintFeedback","sendHelpRequestPayload","translationTargetLanguage","sanitizeSpeechInput","isTextToSpeechEnabled","textToSpeechConfig","renderer","dimensions","useWindowDimensions","ref","useRef","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_effectorReact","_ChatMessage","_MessageLoader","_Alternatives","_constants","_modelTypes","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","TOOLBAR_HEIGHT","BOTTOM_OFFSET","Platform","select","web","ChatbotMessages","model","isHintFeedback","sendHelpRequestPayload","translationTargetLanguage","sanitizeSpeechInput","isTextToSpeechEnabled","textToSpeechConfig","renderer","dimensions","useWindowDimensions","ref","useRef","currentKey","useUnit","$currentKey","isOpen","$isOpen","isHelpRequestPending","sendHelpRequestFx","pending","isTextToSpeechPending","api","textToSpeechTextFx","currentPlayingId","t2s","$currentPlayingId","isTranslated","translation","$isTranslated","audioStatus","$status","MAX_HEIGHT","height","messages","useStoreMap","store","$state","keys","fn","state","playTextToSpeech","id","message","translatedMessage","text","play","messageId","config","TEXT_TO_SPEECH_CONFIG","askChatForHelp","promptKey","payload","type","jsx","View","style","styles","container","maxHeight","children","jsxs","ScrollView","contentContainerStyle","list","onContentSizeChange","_","current","scrollToEnd","setScrollActive","gap","map","isOwnMessage","ChatMessage","onPressTextToSpeech","isActive","variant","MessageVariant","SENT","RECEIVED","withTextToSpeech","MessageLoader","Alternatives","onPressAlternative","hasMessages","length","exports","StyleSheet","create","flex","alignItems","width","paddingVertical"],"sourceRoot":"../../../../../../src","sources":["features/chatbot/components/ChatMessages/ChatbotMessages.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAEA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAAyE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAA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AC9B,IAAA1C,WAAA,CAAAgF,GAAA,EAACnF,aAAA,CAAA+G,YAAY;QACXjF,KAAK,EAAEA,KAAM;QACbkF,kBAAkB,EAAEjC,cAAe;QACnCkC,WAAW,EAAElD,QAAQ,CAACmD,MAAM,GAAG,CAAE;QACjCnF,cAAc,EAAEA;MAAe,CAChC,CACF;IAAA,CACS;EAAC,CACT,CAAC;AAEX,CAAC;AAAAoF,OAAA,CAAAtF,eAAA,GAAAA,eAAA;AAED,MAAMyD,MAAM,GAAG8B,uBAAU,CAACC,MAAM,CAAC;EAC/B9B,SAAS,EAAE;IACT+B,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,UAAU;IACtBC,KAAK,EAAE,GAAG;IACV1D,MAAM,EAAE;EACV,CAAC;EACD+B,IAAI,EAAE;IACJ0B,UAAU,EAAE,UAAU;IACtBE,eAAe,EAAE;EACnB,CAAC;EACDtB,GAAG,EAAE;IACHmB,IAAI,EAAE,CAAC;IACPnB,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -20,19 +20,17 @@ const Chatbot = ({
|
|
|
20
20
|
textToSpeechConfig,
|
|
21
21
|
isTranslationEnabled,
|
|
22
22
|
renderer,
|
|
23
|
-
ButtonWrapper
|
|
24
|
-
iconSize
|
|
23
|
+
ButtonWrapper
|
|
25
24
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
const exerciseId = (0, _effectorReact.useUnit)(model.credits.$exerciseId);
|
|
25
|
+
const currentKey = (0, _effectorReact.useUnit)(model.$currentKey);
|
|
28
26
|
const alternatives = (0, _effectorReact.useUnit)(model.$alternatives);
|
|
29
27
|
const isAvailable = (0, _effectorReact.useStoreMap)({
|
|
30
28
|
store: model.availableChats.$state,
|
|
31
|
-
keys: [
|
|
32
|
-
fn: state => !!state[
|
|
29
|
+
keys: [currentKey],
|
|
30
|
+
fn: state => !!state[currentKey]
|
|
33
31
|
});
|
|
34
32
|
const translateMessages = () => {
|
|
35
|
-
model.translation.translateBatchFx({
|
|
33
|
+
void model.translation.translateBatchFx({
|
|
36
34
|
targetLanguage: translationTargetLanguage
|
|
37
35
|
});
|
|
38
36
|
};
|
|
@@ -57,8 +55,7 @@ const Chatbot = ({
|
|
|
57
55
|
onPressChatIcon: openChat,
|
|
58
56
|
onPressClose: closeChat,
|
|
59
57
|
isTranslationEnabled: isTranslationEnabled,
|
|
60
|
-
ButtonWrapper: ButtonWrapper
|
|
61
|
-
iconSize: iconSize
|
|
58
|
+
ButtonWrapper: ButtonWrapper
|
|
62
59
|
})]
|
|
63
60
|
});
|
|
64
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_effectorReact","require","_ChatbotMessages","_ChatControls","_react","_interopRequireDefault","_jsxRuntime","e","__esModule","default","Chatbot","model","translationTargetLanguage","isHintFeedback","sendHelpRequestPayload","sanitizeSpeechInput","isTextToSpeechEnabled","textToSpeechConfig","isTranslationEnabled","renderer","ButtonWrapper","
|
|
1
|
+
{"version":3,"names":["_effectorReact","require","_ChatbotMessages","_ChatControls","_react","_interopRequireDefault","_jsxRuntime","e","__esModule","default","Chatbot","model","translationTargetLanguage","isHintFeedback","sendHelpRequestPayload","sanitizeSpeechInput","isTextToSpeechEnabled","textToSpeechConfig","isTranslationEnabled","renderer","ButtonWrapper","currentKey","useUnit","$currentKey","alternatives","$alternatives","isAvailable","useStoreMap","store","availableChats","$state","keys","fn","state","translateMessages","translation","translateBatchFx","targetLanguage","openChat","setIsOpen","closeChat","chatAccess","jsxs","Fragment","children","jsx","ChatbotMessages","ChatControls","onPressTranslate","onPressChatIcon","onPressClose","exports"],"sourceRoot":"../../../../../src","sources":["features/chatbot/components/Chatbot.tsx"],"mappings":";;;;;;AACA,IAAAA,cAAA,GAAAC,OAAA;AAEA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AAIA,IAAAG,MAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAAyB,IAAAK,WAAA,GAAA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dnC,KAAK,EAAEA,KAAM;MACbQ,QAAQ,EAAEA,QAAS;MACnBL,sBAAsB,EAAEA,sBAAuB;MAC/CF,yBAAyB,EAAEA,yBAA0B;MACrDC,cAAc,EAAEA,cAAe;MAC/BE,mBAAmB,EAAEA,mBAAoB;MACzCC,qBAAqB,EAAEA,qBAAsB;MAC7CC,kBAAkB,EAAEA;IAAmB,CACxC,CAAC,eAEF,IAAAX,WAAA,CAAAuC,GAAA,EAAC1C,aAAA,CAAA4C,YAAY;MACXpC,KAAK,EAAEA,KAAM;MACbqC,gBAAgB,EAAEd,iBAAkB;MACpCe,eAAe,EAAEX,QAAS;MAC1BY,YAAY,EAAEV,SAAU;MACxBtB,oBAAoB,EAAEA,oBAAqB;MAC3CE,aAAa,EAAEA;IAAc,CAC9B,CAAC;EAAA,CACF,CAAC;AAEP,CAAC;AAAA+B,OAAA,CAAAzC,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "Chatbot", {
|
|
|
18
18
|
Object.defineProperty(exports, "ChatbotModel", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _ChatBotModel.ChatbotModel;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "MessageVariant", {
|
|
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "MessageVariant", {
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
var _Chatbot = require("./components/Chatbot.js");
|
|
31
|
-
var
|
|
31
|
+
var _ChatBotModel = require("./model/ChatBotModel.js");
|
|
32
32
|
var _t2sTypes = require("./types/t2s.types.js");
|
|
33
33
|
var _modelTypes = require("./types/model.types.js");
|
|
34
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_Chatbot","require","
|
|
1
|
+
{"version":3,"names":["_Chatbot","require","_ChatBotModel","_t2sTypes","_modelTypes"],"sourceRoot":"../../../../src","sources":["features/chatbot/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA","ignoreList":[]}
|