@tachybase/client 0.23.16 → 0.23.18

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.
@@ -1,330 +0,0 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
2
- import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
- import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons__ from "@ant-design/icons";
4
- import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
5
- import * as __WEBPACK_EXTERNAL_MODULE__icon_index_mjs__ from "../../../icon/index.mjs";
6
- import * as __WEBPACK_EXTERNAL_MODULE__index_module_mjs__ from "./index.module.mjs";
7
- function AIChatModal(param) {
8
- let { mRef, onGenerateLoad, onReloadWrite } = param;
9
- const [showModal, setShowModal] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
10
- const [message, setMessage] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
11
- const [requestMessage, setRequestMessage] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
12
- const [responseMessage, setResponseMessage] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
13
- const [sendAllow, setSendAllow] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
14
- const [showLoad, setShowLoad] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
15
- const [loading, setLoading] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
16
- const [loadingText, setLoadingText] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('');
17
- const [welcomeText, setWelcomeText] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)('TachyAI为您服务~');
18
- const [status, setStatus] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
19
- const [statusInfo, setStatusInfo] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)({
20
- type: 'success',
21
- msg: '生成完成',
22
- reload: false
23
- });
24
- const examples = [
25
- {
26
- id: "1",
27
- name: '信息表单',
28
- message: '实现表单组件,展示学生的姓名、年龄、班级和成绩'
29
- },
30
- {
31
- id: "2",
32
- name: '登录组件',
33
- message: '帮我实现一个登录组件,含有用户名和密码输入框,以及登录按钮'
34
- },
35
- {
36
- id: "3",
37
- name: '日期组件',
38
- message: '帮我实现一个日期组件,含有日期选择器和时间选择器,以及日期格式化功能'
39
- }
40
- ];
41
- const popTitle = '温馨提示';
42
- const popContent = "TachyAI 是你搭建应用过程的得力助手。";
43
- (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
44
- message ? setSendAllow(true) : setSendAllow(false);
45
- }, [
46
- message
47
- ]);
48
- const openModal = ()=>{
49
- setShowModal(true);
50
- };
51
- const handleClickExample = (item)=>{
52
- setMessage(item.message);
53
- };
54
- const handleHideModal = ()=>{
55
- setMessage('');
56
- setShowModal(false);
57
- };
58
- const reloadStatus = async ()=>{
59
- setStatus(false);
60
- setShowLoad(true);
61
- setLoading(true);
62
- setLoadingText('正在重新写入代码,请稍后');
63
- };
64
- const cancelLoad = ()=>{
65
- setShowLoad(false);
66
- setLoading(false);
67
- setStatus(true);
68
- setStatusInfo({
69
- type: 'info',
70
- msg: '取消写入',
71
- reload: true
72
- });
73
- };
74
- const writeCompleted = async ()=>{
75
- setShowLoad(false);
76
- setLoading(false);
77
- setStatus(true);
78
- setStatusInfo({
79
- type: 'success',
80
- msg: '生成完成',
81
- reload: false
82
- });
83
- };
84
- const writeError = async ()=>{
85
- setShowLoad(false);
86
- setLoading(false);
87
- setStatus(true);
88
- setStatusInfo({
89
- type: 'error',
90
- msg: '代码写入出错了',
91
- reload: false
92
- });
93
- };
94
- const requestError = async ()=>{
95
- setShowLoad(false);
96
- setLoading(false);
97
- setStatus(true);
98
- setStatusInfo({
99
- type: 'error',
100
- msg: '请求出错了',
101
- reload: false
102
- });
103
- };
104
- const changeLoadInfo = async (text)=>{
105
- setLoadingText(text);
106
- setShowLoad(true);
107
- setLoading(true);
108
- };
109
- (0, __WEBPACK_EXTERNAL_MODULE_react__.useImperativeHandle)(mRef, ()=>({
110
- openModal,
111
- handleHideModal,
112
- cancelLoad,
113
- reloadStatus,
114
- writeCompleted,
115
- writeError,
116
- changeLoadInfo,
117
- requestError
118
- }));
119
- const handleInputChange = (e)=>{
120
- setMessage(e.target.value);
121
- };
122
- const handleRequestMessage = async ()=>{
123
- setStatus(false);
124
- setRequestMessage(message);
125
- setResponseMessage('');
126
- setMessage('');
127
- setShowLoad(false);
128
- setLoading(false);
129
- setTimeout(async ()=>{
130
- setResponseMessage('好的,TachyAI为您服务~');
131
- await onGenerateLoad(message);
132
- }, 1000);
133
- };
134
- return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
135
- className: "".concat(__WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].AIChatModal, " ").concat(showModal ? __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].showModal : __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].hideModal),
136
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
137
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].modalContent,
138
- children: [
139
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
140
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].modalHeader,
141
- children: [
142
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
143
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].title,
144
- children: [
145
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("svg", {
146
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].marsailogo,
147
- viewBox: "0 0 1024 1024",
148
- version: "1.1",
149
- xmlns: "http://www.w3.org/2000/svg",
150
- children: [
151
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("path", {
152
- d: "M370.812121 400.290909c-21.721212 0-38.787879 17.066667-38.787879 38.787879V605.090909c0 21.721212 17.066667 38.787879 38.787879 38.787879s38.787879-17.066667 38.787879-38.787879V439.078788c0-21.721212-17.066667-38.787879-38.787879-38.787879zM712.145455 417.357576c-15.515152-15.515152-38.787879-15.515152-54.303031 0L589.575758 485.624242c-9.309091 9.309091-13.963636 21.721212-12.412122 34.133334-1.551515 12.412121 3.10303 24.824242 12.412122 32.581818l68.266666 68.266667c7.757576 7.757576 17.066667 10.860606 27.927273 10.860606s20.169697-4.654545 27.927273-10.860606 10.860606-17.066667 10.860606-27.927273-4.654545-20.169697-10.860606-27.927273l-46.545455-46.545454 46.545455-46.545455c13.963636-13.963636 13.963636-38.787879-1.551515-54.30303z",
153
- fill: "#7d33ff"
154
- }),
155
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("path", {
156
- d: "M788.169697 228.072727c-57.406061-27.927273-161.357576-48.09697-273.066667-49.648485-111.709091 1.551515-217.212121 20.169697-274.618182 49.648485-88.436364 41.890909-124.121212 128.775758-124.121212 297.890909 0 134.981818 37.236364 232.727273 100.848485 266.860606 82.230303 41.890909 156.70303 55.854545 296.339394 55.854546 141.187879 0 215.660606-13.963636 294.787879-54.30303 65.163636-35.684848 102.4-134.981818 102.4-268.412122 0-167.563636-37.236364-256-122.569697-297.890909z m44.993939 296.339394c0 114.812121-31.030303 183.078788-60.509091 200.145455-58.957576 29.478788-117.915152 44.993939-259.10303 44.993939-139.636364 0-200.145455-15.515152-260.654545-44.993939-29.478788-15.515152-58.957576-85.333333-58.957576-200.145455 0-134.981818 23.272727-200.145455 79.127273-229.624242 46.545455-23.272727 142.739394-40.339394 240.484848-40.339394 97.745455 1.551515 193.939394 18.618182 240.484849 40.339394 55.854545 29.478788 79.127273 94.642424 79.127272 229.624242z",
157
- fill: "#7d33ff"
158
- })
159
- ]
160
- }),
161
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("span", {
162
- children: "TachyAI"
163
- })
164
- ]
165
- }),
166
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("button", {
167
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].closeButton,
168
- onClick: handleHideModal,
169
- children: "\xd7"
170
- })
171
- ]
172
- }),
173
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
174
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].modalBody,
175
- children: [
176
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
177
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatContent,
178
- children: [
179
- !requestMessage && !responseMessage && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
180
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].welcomeText,
181
- children: welcomeText
182
- }),
183
- requestMessage && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
184
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatItem,
185
- children: [
186
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
187
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatInfo,
188
- children: [
189
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
190
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatName,
191
- children: "User"
192
- }),
193
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
194
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].avatar,
195
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__icon_index_mjs__.Icon, {
196
- type: "useroutlined"
197
- })
198
- })
199
- ]
200
- }),
201
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
202
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatText,
203
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
204
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatMessage,
205
- children: requestMessage
206
- })
207
- })
208
- ]
209
- }),
210
- responseMessage && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
211
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatResponce,
212
- children: [
213
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
214
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatInfo,
215
- children: [
216
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
217
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].avatar,
218
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__icon_index_mjs__.Icon, {
219
- type: "robotoutlined"
220
- })
221
- }),
222
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
223
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatName,
224
- children: "TachyAI"
225
- })
226
- ]
227
- }),
228
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
229
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatText,
230
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
231
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatMessage,
232
- children: responseMessage
233
- })
234
- })
235
- ]
236
- }),
237
- showLoad && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
238
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatLoad,
239
- children: [
240
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
241
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatText,
242
- children: loadingText
243
- }),
244
- loading && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
245
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].load,
246
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Spin, {
247
- size: "small"
248
- })
249
- })
250
- ]
251
- }),
252
- status && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
253
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatLoad,
254
- children: statusInfo.reload ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Alert, {
255
- type: statusInfo.type,
256
- showIcon: true,
257
- message: statusInfo.msg,
258
- action: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Popover, {
259
- placement: "top",
260
- content: "重新写入代码",
261
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
262
- style: {
263
- marginLeft: '5px'
264
- },
265
- type: "primary",
266
- size: "small",
267
- shape: "circle",
268
- icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.ReloadOutlined, {}),
269
- onClick: onReloadWrite
270
- })
271
- })
272
- }) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Alert, {
273
- type: statusInfo.type,
274
- showIcon: true,
275
- message: statusInfo.msg
276
- })
277
- })
278
- ]
279
- }),
280
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
281
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatExamples,
282
- children: examples.map((item)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("button", {
283
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatExampleItem,
284
- onClick: ()=>handleClickExample(item),
285
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("span", {
286
- children: item.name
287
- })
288
- }, item.id))
289
- }),
290
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
291
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatInput,
292
- children: [
293
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
294
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].chatOtherInfo,
295
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Popover, {
296
- placement: "top",
297
- title: popTitle,
298
- content: popContent,
299
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.BellOutlined, {})
300
- })
301
- }),
302
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
303
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].inputBox,
304
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("input", {
305
- maxLength: 80,
306
- type: "text",
307
- placeholder: "可以在这里描述你需要的内容",
308
- value: message,
309
- onChange: handleInputChange
310
- })
311
- }),
312
- /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
313
- className: __WEBPACK_EXTERNAL_MODULE__index_module_mjs__["default"].sendBtn,
314
- children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Button, {
315
- disabled: !sendAllow,
316
- shape: "circle",
317
- type: "primary",
318
- icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.ArrowUpOutlined, {}),
319
- onClick: handleRequestMessage
320
- })
321
- })
322
- ]
323
- })
324
- ]
325
- })
326
- ]
327
- })
328
- });
329
- }
330
- export { AIChatModal as default };
@@ -1,30 +0,0 @@
1
- import "./index_module.css";
2
- const index_module_rslib_entry_ = {
3
- AIChatModal: "AIChatModal-rzRCq4",
4
- aiChatModal: "AIChatModal-rzRCq4",
5
- showModal: "showModal-I_UWD3",
6
- hideModal: "hideModal-X40Vc3",
7
- modalContent: "modalContent-ezOZkD",
8
- modalHeader: "modalHeader-nOGcoS",
9
- closeButton: "closeButton-sQRFHO",
10
- title: "title-Y7yOZf",
11
- marsailogo: "marsailogo-uzJ6wj",
12
- modalBody: "modalBody-znsaSD",
13
- chatContent: "chatContent-pNV258",
14
- welcomeText: "welcomeText-rhomeV",
15
- chatItem: "chatItem-NWq8xW",
16
- chatInfo: "chatInfo-JXKVGs",
17
- avatar: "avatar-p1qeb8",
18
- chatName: "chatName-Snh5k_",
19
- chatText: "chatText-LyRqZ_",
20
- chatResponce: "chatResponce-HQaYAb",
21
- chatLoad: "chatLoad-GYl_Mi",
22
- load: "load-q1byGM",
23
- chatExamples: "chatExamples-lfggyG",
24
- chatExampleItem: "chatExampleItem-7D1scl",
25
- chatInput: "chatInput-OYNsM0",
26
- chatOtherInfo: "chatOtherInfo-sj2Wal",
27
- "ant-popover": "ant-popover-DNZLKL",
28
- antPopover: "ant-popover-DNZLKL"
29
- };
30
- export { index_module_rslib_entry_ as default };
@@ -1,257 +0,0 @@
1
- .AIChatModal-rzRCq4 {
2
- z-index: 1000;
3
- background-color: #fff;
4
- border-radius: 8px;
5
- width: 450px;
6
- min-height: 300px;
7
- position: fixed;
8
- bottom: 5%;
9
- right: 30px;
10
- box-shadow: 0 0 10px #00000080;
11
- }
12
-
13
- .showModal-I_UWD3 {
14
- display: block;
15
- }
16
-
17
- .hideModal-X40Vc3 {
18
- display: none;
19
- }
20
-
21
- .modalContent-ezOZkD {
22
- border-bottom: 4px solid #0000;
23
- padding: 0 20px 20px;
24
- }
25
-
26
- .modalHeader-nOGcoS {
27
- color: #7d33ff;
28
- border-bottom: 1px solid #e0e0e6;
29
- justify-content: space-between;
30
- align-items: center;
31
- padding: 10px;
32
- display: flex;
33
- }
34
-
35
- .modalHeader-nOGcoS .closeButton-sQRFHO {
36
- color: #9b9a9a;
37
- cursor: pointer;
38
- z-index: 2001;
39
- background-color: #0000;
40
- border: none;
41
- font-size: 40px;
42
- transition: transform .5s ease-in-out;
43
- }
44
-
45
- .modalHeader-nOGcoS .closeButton-sQRFHO:hover {
46
- transform: rotate(90deg)scale(1.2);
47
- }
48
-
49
- .modalHeader-nOGcoS .title-Y7yOZf {
50
- justify-content: center;
51
- align-items: center;
52
- display: flex;
53
- }
54
-
55
- .modalHeader-nOGcoS .marsailogo-uzJ6wj {
56
- width: 35px;
57
- height: 35px;
58
- margin-top: 4px;
59
- margin-right: 4px;
60
- }
61
-
62
- .modalHeader-nOGcoS span {
63
- font-size: 20px;
64
- font-weight: bold;
65
- }
66
-
67
- .modalBody-znsaSD {
68
- flex-direction: column;
69
- align-items: center;
70
- margin-top: 10px;
71
- display: flex;
72
- overflow: hidden;
73
- }
74
-
75
- .chatContent-pNV258 {
76
- scrollbar-width: none;
77
- border-radius: 5px;
78
- width: 100%;
79
- height: 300px;
80
- padding: 10px;
81
- overflow-y: auto;
82
- }
83
-
84
- .chatContent-pNV258 .welcomeText-rhomeV {
85
- text-align: center;
86
- margin: 120px 0;
87
- font-size: 16px;
88
- font-weight: bold;
89
- }
90
-
91
- .chatItem-NWq8xW {
92
- flex-direction: column;
93
- align-items: flex-end;
94
- margin-bottom: 20px;
95
- display: flex;
96
- }
97
-
98
- .chatItem-NWq8xW .chatInfo-JXKVGs {
99
- align-items: center;
100
- margin-bottom: 5px;
101
- display: flex;
102
- }
103
-
104
- .chatItem-NWq8xW .chatInfo-JXKVGs .avatar-p1qeb8 {
105
- border-radius: 50%;
106
- width: 30px;
107
- height: 30px;
108
- margin-left: 10px;
109
- }
110
-
111
- .chatItem-NWq8xW .chatInfo-JXKVGs .avatar-p1qeb8 img {
112
- border-radius: 50%;
113
- width: 100%;
114
- height: 100%;
115
- }
116
-
117
- .chatItem-NWq8xW .chatInfo-JXKVGs .chatName-Snh5k_ {
118
- font-size: 14px;
119
- font-weight: bold;
120
- }
121
-
122
- .chatItem-NWq8xW .chatText-LyRqZ_ {
123
- text-align: justify;
124
- background-color: #f0f0f0;
125
- border-radius: 5px;
126
- width: fit-content;
127
- margin: 0 30px;
128
- padding: 10px;
129
- font-size: 14px;
130
- line-height: 1.3;
131
- }
132
-
133
- .chatResponce-HQaYAb {
134
- flex-direction: column;
135
- align-items: flex-start;
136
- margin: 10px 0;
137
- display: flex;
138
- }
139
-
140
- .chatResponce-HQaYAb .chatInfo-JXKVGs {
141
- align-items: center;
142
- margin-bottom: 5px;
143
- display: flex;
144
- }
145
-
146
- .chatResponce-HQaYAb .chatInfo-JXKVGs .avatar-p1qeb8 {
147
- border-radius: 50%;
148
- width: 30px;
149
- height: 30px;
150
- margin-right: 10px;
151
- }
152
-
153
- .chatResponce-HQaYAb .chatInfo-JXKVGs .avatar-p1qeb8 img {
154
- border-radius: 50%;
155
- width: 100%;
156
- height: 100%;
157
- }
158
-
159
- .chatResponce-HQaYAb .chatInfo-JXKVGs .chatName-Snh5k_ {
160
- font-size: 14px;
161
- font-weight: bold;
162
- }
163
-
164
- .chatResponce-HQaYAb .chatText-LyRqZ_ {
165
- text-align: justify;
166
- background-color: #f0f0f0;
167
- border-radius: 5px;
168
- width: fit-content;
169
- margin: 0 30px;
170
- padding: 10px;
171
- font-size: 14px;
172
- line-height: 1.3;
173
- }
174
-
175
- .chatLoad-GYl_Mi {
176
- align-items: center;
177
- margin-left: 30px;
178
- display: flex;
179
- }
180
-
181
- .chatLoad-GYl_Mi .chatText-LyRqZ_ {
182
- font-size: 12px;
183
- }
184
-
185
- .chatLoad-GYl_Mi .load-q1byGM {
186
- margin-left: 10px;
187
- font-size: 12px;
188
- }
189
-
190
- .chatExamples-lfggyG {
191
- justify-content: flex-start;
192
- gap: 10px;
193
- width: 100%;
194
- margin-top: 10px;
195
- margin-left: 50px;
196
- display: flex;
197
- }
198
-
199
- .chatExamples-lfggyG .chatExampleItem-7D1scl {
200
- cursor: pointer;
201
- background-color: #0000;
202
- border: 1px solid #e0e0e6;
203
- border-radius: 8px;
204
- padding: 5px 10px;
205
- }
206
-
207
- .chatExamples-lfggyG .chatExampleItem-7D1scl span {
208
- font-size: 12px;
209
- }
210
-
211
- .chatExamples-lfggyG .chatExampleItem-7D1scl:hover {
212
- border: 1px solid #7d33ff;
213
- transition: all .5s;
214
- transform: scale(1.1);
215
- }
216
-
217
- .chatInput-OYNsM0 {
218
- justify-content: space-between;
219
- align-items: center;
220
- width: 100%;
221
- margin-top: 10px;
222
- padding: 0;
223
- display: flex;
224
- }
225
-
226
- .chatInput-OYNsM0 .chatOtherInfo-sj2Wal {
227
- color: #9b9a9a;
228
- cursor: pointer;
229
- margin-right: 5px;
230
- font-size: 20px;
231
- }
232
-
233
- .chatInput-OYNsM0 .chatOtherInfo-sj2Wal:hover {
234
- color: #7d33ff;
235
- }
236
-
237
- .chatInput-OYNsM0 input {
238
- border: 1.5px solid #e0e0e6;
239
- border-radius: 5px;
240
- outline: none;
241
- width: 330px;
242
- height: 30px;
243
- margin-right: 10px;
244
- padding: 0 10px;
245
- font-size: 14px;
246
- }
247
-
248
- .chatInput-OYNsM0 input:focus {
249
- border: 1.5px solid #7d33ff;
250
- }
251
-
252
- .ant-popover-DNZLKL {
253
- text-align: justify;
254
- word-break: break-all;
255
- max-width: 200px;
256
- }
257
-