vue-element-ui-x 0.1.8-beta → 0.1.10-beta

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 (97) hide show
  1. package/lib/components/Attachments/index.js +229 -237
  2. package/lib/components/Bubble/index.js +47 -34
  3. package/lib/components/BubbleList/index.js +57 -49
  4. package/lib/components/Conversations/index.js +32 -69
  5. package/lib/components/FilesCard/index.js +207 -211
  6. package/lib/components/Prompts/index.js +21 -21
  7. package/lib/components/Sender/index.js +18 -18
  8. package/lib/components/Think/index.js +1 -1
  9. package/lib/components/Thinking/index.js +1 -1
  10. package/lib/components/ThoughtChain/index.js +60 -47
  11. package/lib/components/Typewriter/index.js +46 -33
  12. package/lib/components/Welcome/index.js +1 -1
  13. package/lib/index.common.js +1 -1
  14. package/lib/index.esm.js +1 -1
  15. package/lib/index.js +479 -427
  16. package/lib/index.umd.js +1 -1
  17. package/lib/mixins/index.js +105 -16
  18. package/package.json +1 -1
  19. package/src/components/Attachments/index.js +8 -8
  20. package/src/components/Attachments/src/main.vue +10 -10
  21. package/src/components/Bubble/index.js +6 -6
  22. package/src/components/Bubble/src/main.vue +299 -299
  23. package/src/components/BubbleList/index.js +8 -8
  24. package/src/components/BubbleList/src/loading.vue +75 -75
  25. package/src/components/BubbleList/src/main.vue +461 -466
  26. package/src/components/Conversations/index.js +8 -8
  27. package/src/components/Conversations/src/components/item.vue +13 -34
  28. package/src/components/Conversations/src/main.vue +622 -635
  29. package/src/components/FilesCard/index.js +8 -8
  30. package/src/components/FilesCard/src/fileSvg/audio.vue +38 -38
  31. package/src/components/FilesCard/src/fileSvg/code.vue +35 -35
  32. package/src/components/FilesCard/src/fileSvg/database.vue +94 -94
  33. package/src/components/FilesCard/src/fileSvg/excel.vue +38 -38
  34. package/src/components/FilesCard/src/fileSvg/file.vue +40 -40
  35. package/src/components/FilesCard/src/fileSvg/image.vue +40 -40
  36. package/src/components/FilesCard/src/fileSvg/index.js +46 -46
  37. package/src/components/FilesCard/src/fileSvg/link.vue +54 -54
  38. package/src/components/FilesCard/src/fileSvg/mark.vue +38 -38
  39. package/src/components/FilesCard/src/fileSvg/pdf.vue +38 -38
  40. package/src/components/FilesCard/src/fileSvg/ppt.vue +38 -38
  41. package/src/components/FilesCard/src/fileSvg/three.vue +38 -38
  42. package/src/components/FilesCard/src/fileSvg/txt.vue +38 -38
  43. package/src/components/FilesCard/src/fileSvg/unknown.vue +54 -54
  44. package/src/components/FilesCard/src/fileSvg/video.vue +38 -38
  45. package/src/components/FilesCard/src/fileSvg/word.vue +38 -38
  46. package/src/components/FilesCard/src/fileSvg/zip.vue +38 -38
  47. package/src/components/FilesCard/src/main.vue +4 -8
  48. package/src/components/FilesCard/src/options.js +18 -18
  49. package/src/components/Prompts/index.js +8 -8
  50. package/src/components/Prompts/src/main.vue +248 -248
  51. package/src/components/Sender/index.js +8 -8
  52. package/src/components/Sender/src/components/ClearButton.vue +28 -28
  53. package/src/components/Sender/src/components/Loading.vue +53 -53
  54. package/src/components/Sender/src/components/LoadingButton.vue +39 -39
  55. package/src/components/Sender/src/components/SendButton.vue +26 -26
  56. package/src/components/Sender/src/components/SpeechButton.vue +24 -24
  57. package/src/components/Sender/src/components/SpeechLoading.vue +87 -87
  58. package/src/components/Sender/src/components/SpeechLoadingButton.vue +43 -43
  59. package/src/components/Sender/src/main.vue +4 -3
  60. package/src/components/Think/index.js +8 -8
  61. package/src/components/Think/src/main.vue +190 -190
  62. package/src/components/Thinking/index.js +8 -8
  63. package/src/components/ThoughtChain/index.js +8 -8
  64. package/src/components/ThoughtChain/src/main.vue +293 -293
  65. package/src/components/Typewriter/index.js +8 -8
  66. package/src/components/Typewriter/src/main.vue +10 -2
  67. package/src/components/Welcome/index.js +8 -8
  68. package/src/components/Welcome/src/main.vue +151 -151
  69. package/src/mixins/recordMixin.js +0 -1
  70. package/src/mixins/sendMixin.js +104 -11
  71. package/src/mixins/streamMixin.js +3 -5
  72. package/src/styles/Attachments.scss +236 -236
  73. package/src/styles/Bubble.scss +157 -157
  74. package/src/styles/BubbleList.scss +148 -148
  75. package/src/styles/Conversations.scss +260 -260
  76. package/src/styles/FilesCard.scss +221 -221
  77. package/src/styles/Prompts.scss +195 -195
  78. package/src/styles/Sender.scss +199 -199
  79. package/src/styles/Think.scss +134 -134
  80. package/src/styles/ThoughtChain.scss +113 -113
  81. package/src/styles/Typewriter.scss +66 -66
  82. package/src/theme/var.scss +72 -72
  83. package/lib/attachments.js +0 -3082
  84. package/lib/bubble-list.js +0 -13840
  85. package/lib/bubble.js +0 -13125
  86. package/lib/conversations.js +0 -18825
  87. package/lib/files-card.js +0 -2471
  88. package/lib/mixins.js +0 -1016
  89. package/lib/prompts.js +0 -832
  90. package/lib/sender.js +0 -1911
  91. package/lib/think.js +0 -799
  92. package/lib/thinking.js +0 -809
  93. package/lib/thought-chain.js +0 -30391
  94. package/lib/typewriter.js +0 -12788
  95. package/lib/welcome.js +0 -755
  96. package/src/styles/button.scss +0 -302
  97. package/src/styles/var.scss +0 -1052
package/lib/thinking.js DELETED
@@ -1,809 +0,0 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 104);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
96
-
97
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
- // This module is a runtime utility for cleaner component module output and will
99
- // be included in the final webpack user bundle.
100
-
101
- function normalizeComponent(
102
- scriptExports,
103
- render,
104
- staticRenderFns,
105
- functionalTemplate,
106
- injectStyles,
107
- scopeId,
108
- moduleIdentifier /* server only */,
109
- shadowMode /* vue-cli only */
110
- ) {
111
- // Vue.extend constructor export interop
112
- var options =
113
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
-
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
121
-
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
126
-
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
131
-
132
- var hook
133
- if (moduleIdentifier) {
134
- // server build
135
- hook = function (context) {
136
- // 2.3 injection
137
- context =
138
- context || // cached call
139
- (this.$vnode && this.$vnode.ssrContext) || // stateful
140
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
- // 2.2 with runInNewContext: true
142
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
- context = __VUE_SSR_CONTEXT__
144
- }
145
- // inject component styles
146
- if (injectStyles) {
147
- injectStyles.call(this, context)
148
- }
149
- // register component module identifier for async chunk inferrence
150
- if (context && context._registeredComponents) {
151
- context._registeredComponents.add(moduleIdentifier)
152
- }
153
- }
154
- // used by ssr in case component is cached and beforeCreate
155
- // never gets called
156
- options._ssrRegister = hook
157
- } else if (injectStyles) {
158
- hook = shadowMode
159
- ? function () {
160
- injectStyles.call(
161
- this,
162
- (options.functional ? this.parent : this).$root.$options.shadowRoot
163
- )
164
- }
165
- : injectStyles
166
- }
167
-
168
- if (hook) {
169
- if (options.functional) {
170
- // for template-only hot-reload because in that case the render fn doesn't
171
- // go through the normalizer
172
- options._injectStyles = hook
173
- // register for functional component in vue file
174
- var originalRender = options.render
175
- options.render = function renderWithStyleInjection(h, context) {
176
- hook.call(context)
177
- return originalRender(h, context)
178
- }
179
- } else {
180
- // inject component registration as beforeCreate hook
181
- var existing = options.beforeCreate
182
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
- }
184
- }
185
-
186
- return {
187
- exports: scriptExports,
188
- options: options
189
- }
190
- }
191
-
192
-
193
- /***/ }),
194
-
195
- /***/ 104:
196
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
-
198
- "use strict";
199
- // ESM COMPAT FLAG
200
- __webpack_require__.r(__webpack_exports__);
201
-
202
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Thinking/src/main.vue?vue&type=template&id=6fb5dcd7&scoped=true
203
- var render = function render() {
204
- var _vm = this,
205
- _c = _vm._self._c;
206
- return _c("div", {
207
- staticClass: "el-x-thinking",
208
- style: {
209
- "--el-x-thinking-button-width": _vm.buttonWidth,
210
- "--el-x-thinking-animation-duration": _vm.duration,
211
- "--el-x-thinking-content-wrapper-width": _vm.maxWidth,
212
- "--el-x-thinking-content-wrapper-background-color": _vm.backgroundColor,
213
- "--el-x-thinking-content-wrapper-color": _vm.color
214
- }
215
- }, [_c("button", {
216
- staticClass: "trigger",
217
- class: [_vm.localStatus, {
218
- disabled: !_vm.disabled
219
- }],
220
- attrs: {
221
- disabled: _vm.disabled
222
- },
223
- on: {
224
- click: _vm.changeExpand
225
- }
226
- }, [_c("span", {
227
- staticClass: "status-icon"
228
- }, [_vm._t("status-icon", function () {
229
- return [_vm.localStatus === "thinking" ? _c("i", {
230
- staticClass: "is-loading el-icon-center el-icon-loading"
231
- }) : _vm._e(), _vm._v(" "), _vm.localStatus === "start" ? _c("i", {
232
- staticClass: "el-icon-center start-color el-icon-opportunity"
233
- }) : _vm._e(), _vm._v(" "), _vm.localStatus === "end" ? _c("i", {
234
- staticClass: "el-icon-center end-color el-icon-success"
235
- }) : _vm._e(), _vm._v(" "), _vm.localStatus === "error" ? _c("i", {
236
- staticClass: "el-icon-center error-color el-icon-circle-close"
237
- }) : _vm._e()];
238
- }, {
239
- status: _vm.localStatus
240
- })], 2), _vm._v(" "), _c("span", {
241
- staticClass: "label"
242
- }, [_vm._t("label", function () {
243
- return [_vm._v("\n " + _vm._s(_vm.localStatus === "thinking" ? "思考中..." : _vm.localStatus === "error" ? "思考遇到问题" : _vm.localStatus === "end" ? "思考完成" : "开始思考") + "\n ")];
244
- }, {
245
- status: _vm.localStatus
246
- })], 2), _vm._v(" "), _c("transition", {
247
- attrs: {
248
- name: "rotate"
249
- }
250
- }, [!_vm.disabled ? _c("span", {
251
- staticClass: "arrow el-icon-center",
252
- class: {
253
- expanded: _vm.isExpanded
254
- }
255
- }, [_vm._t("arrow", function () {
256
- return [_c("i", {
257
- staticClass: "el-icon-center el-icon-arrow-up"
258
- })];
259
- })], 2) : _vm._e()])], 1), _vm._v(" "), _c("Transition", {
260
- attrs: {
261
- name: "slide"
262
- }
263
- }, [_vm.displayedContent ? _c("div", {
264
- directives: [{
265
- name: "show",
266
- rawName: "v-show",
267
- value: _vm.isExpanded,
268
- expression: "isExpanded"
269
- }],
270
- staticClass: "content-wrapper",
271
- class: {
272
- "error-state": _vm.localStatus === "error"
273
- }
274
- }, [_c("div", {
275
- staticClass: "content"
276
- }, [_vm.localStatus !== "error" ? _vm._t("content", function () {
277
- return [_c("pre", [_vm._v(_vm._s(_vm.displayedContent))])];
278
- }, {
279
- content: _vm.displayedContent
280
- }) : _vm._t("error", function () {
281
- return [_c("div", {
282
- staticClass: "error-message"
283
- }, [_vm._v(_vm._s(_vm.displayedContent))])];
284
- }, {
285
- errorContent: _vm.displayedContent
286
- })], 2)]) : _vm._e()])], 1);
287
- };
288
- var staticRenderFns = [];
289
- render._withStripped = true;
290
-
291
- // CONCATENATED MODULE: ./src/components/Thinking/src/main.vue?vue&type=template&id=6fb5dcd7&scoped=true
292
-
293
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Thinking/src/main.vue?vue&type=script&lang=js
294
- /* harmony default export */ var mainvue_type_script_lang_js = ({
295
- name: 'ElXThinking',
296
- props: {
297
- content: {
298
- type: String,
299
- default: ''
300
- },
301
- modelValue: {
302
- type: Boolean,
303
- default: true
304
- },
305
- status: {
306
- type: String,
307
- default: 'start',
308
- validator: function (value) {
309
- return ['start', 'thinking', 'end', 'error'].indexOf(value) !== -1;
310
- }
311
- },
312
- disabled: {
313
- type: Boolean,
314
- default: false
315
- },
316
- autoCollapse: {
317
- type: Boolean,
318
- default: false
319
- },
320
- buttonWidth: {
321
- type: String,
322
- default: '160px'
323
- },
324
- duration: {
325
- type: String,
326
- default: '0.2s'
327
- },
328
- maxWidth: {
329
- type: String,
330
- default: '500px'
331
- },
332
- backgroundColor: {
333
- type: String,
334
- default: '#fcfcfc'
335
- },
336
- color: {
337
- type: String,
338
- default: '#909399'
339
- }
340
- },
341
- data() {
342
- return {
343
- isExpanded: this.modelValue,
344
- localStatus: this.status
345
- };
346
- },
347
- computed: {
348
- displayedContent() {
349
- return this.localStatus === 'error' ? '思考过程中出现错误' : this.content;
350
- }
351
- },
352
- watch: {
353
- modelValue(newVal) {
354
- this.isExpanded = newVal;
355
- },
356
- status(newVal) {
357
- this.localStatus = newVal;
358
- if (newVal === 'end' && this.autoCollapse) {
359
- this.isExpanded = false;
360
- }
361
- },
362
- $attrs: {
363
- handler(newVal) {
364
- if (newVal['onUpdate:status']) {
365
- this.$emit('update:status', this.localStatus);
366
- }
367
- },
368
- immediate: true
369
- }
370
- },
371
- methods: {
372
- changeExpand() {
373
- if (this.disabled) return;
374
- this.isExpanded = !this.isExpanded;
375
- this.$emit('change', {
376
- value: this.isExpanded,
377
- status: this.localStatus
378
- });
379
- this.$emit('update:expanded', this.isExpanded);
380
- }
381
- }
382
- });
383
- // CONCATENATED MODULE: ./src/components/Thinking/src/main.vue?vue&type=script&lang=js
384
- /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
385
- // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
386
- var injectStylesIntoStyleTag = __webpack_require__(3);
387
- var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
388
-
389
- // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Thinking/src/main.vue?vue&type=style&index=0&id=6fb5dcd7&prod&lang=scss&scoped=true
390
- var mainvue_type_style_index_0_id_6fb5dcd7_prod_lang_scss_scoped_true = __webpack_require__(94);
391
-
392
- // CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Thinking/src/main.vue?vue&type=style&index=0&id=6fb5dcd7&prod&lang=scss&scoped=true
393
-
394
-
395
-
396
- var options = {};
397
-
398
- options.insert = "head";
399
- options.singleton = false;
400
-
401
- var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_6fb5dcd7_prod_lang_scss_scoped_true["a" /* default */], options);
402
-
403
-
404
-
405
- /* harmony default export */ var src_mainvue_type_style_index_0_id_6fb5dcd7_prod_lang_scss_scoped_true = (mainvue_type_style_index_0_id_6fb5dcd7_prod_lang_scss_scoped_true["a" /* default */].locals || {});
406
- // CONCATENATED MODULE: ./src/components/Thinking/src/main.vue?vue&type=style&index=0&id=6fb5dcd7&prod&lang=scss&scoped=true
407
-
408
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
409
- var componentNormalizer = __webpack_require__(0);
410
-
411
- // CONCATENATED MODULE: ./src/components/Thinking/src/main.vue
412
-
413
-
414
-
415
-
416
-
417
-
418
- /* normalize component */
419
-
420
- var component = Object(componentNormalizer["a" /* default */])(
421
- src_mainvue_type_script_lang_js,
422
- render,
423
- staticRenderFns,
424
- false,
425
- null,
426
- "6fb5dcd7",
427
- null
428
-
429
- )
430
-
431
- /* harmony default export */ var main = (component.exports);
432
- // CONCATENATED MODULE: ./src/components/Thinking/index.js
433
-
434
-
435
- /* istanbul ignore next */
436
- main.install = function (Vue) {
437
- Vue.component(main.name, main);
438
- };
439
- /* harmony default export */ var Thinking = __webpack_exports__["default"] = (main);
440
-
441
- /***/ }),
442
-
443
- /***/ 2:
444
- /***/ (function(module, exports, __webpack_require__) {
445
-
446
- "use strict";
447
-
448
-
449
- /*
450
- MIT License http://www.opensource.org/licenses/mit-license.php
451
- Author Tobias Koppers @sokra
452
- */
453
- // css base code, injected by the css-loader
454
- // eslint-disable-next-line func-names
455
- module.exports = function (cssWithMappingToString) {
456
- var list = []; // return the list of modules as css string
457
-
458
- list.toString = function toString() {
459
- return this.map(function (item) {
460
- var content = cssWithMappingToString(item);
461
-
462
- if (item[2]) {
463
- return "@media ".concat(item[2], " {").concat(content, "}");
464
- }
465
-
466
- return content;
467
- }).join("");
468
- }; // import a list of modules into the list
469
- // eslint-disable-next-line func-names
470
-
471
-
472
- list.i = function (modules, mediaQuery, dedupe) {
473
- if (typeof modules === "string") {
474
- // eslint-disable-next-line no-param-reassign
475
- modules = [[null, modules, ""]];
476
- }
477
-
478
- var alreadyImportedModules = {};
479
-
480
- if (dedupe) {
481
- for (var i = 0; i < this.length; i++) {
482
- // eslint-disable-next-line prefer-destructuring
483
- var id = this[i][0];
484
-
485
- if (id != null) {
486
- alreadyImportedModules[id] = true;
487
- }
488
- }
489
- }
490
-
491
- for (var _i = 0; _i < modules.length; _i++) {
492
- var item = [].concat(modules[_i]);
493
-
494
- if (dedupe && alreadyImportedModules[item[0]]) {
495
- // eslint-disable-next-line no-continue
496
- continue;
497
- }
498
-
499
- if (mediaQuery) {
500
- if (!item[2]) {
501
- item[2] = mediaQuery;
502
- } else {
503
- item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
504
- }
505
- }
506
-
507
- list.push(item);
508
- }
509
- };
510
-
511
- return list;
512
- };
513
-
514
- /***/ }),
515
-
516
- /***/ 3:
517
- /***/ (function(module, exports, __webpack_require__) {
518
-
519
- "use strict";
520
-
521
-
522
- var isOldIE = function isOldIE() {
523
- var memo;
524
- return function memorize() {
525
- if (typeof memo === 'undefined') {
526
- // Test for IE <= 9 as proposed by Browserhacks
527
- // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
528
- // Tests for existence of standard globals is to allow style-loader
529
- // to operate correctly into non-standard environments
530
- // @see https://github.com/webpack-contrib/style-loader/issues/177
531
- memo = Boolean(window && document && document.all && !window.atob);
532
- }
533
-
534
- return memo;
535
- };
536
- }();
537
-
538
- var getTarget = function getTarget() {
539
- var memo = {};
540
- return function memorize(target) {
541
- if (typeof memo[target] === 'undefined') {
542
- var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
543
-
544
- if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
545
- try {
546
- // This will throw an exception if access to iframe is blocked
547
- // due to cross-origin restrictions
548
- styleTarget = styleTarget.contentDocument.head;
549
- } catch (e) {
550
- // istanbul ignore next
551
- styleTarget = null;
552
- }
553
- }
554
-
555
- memo[target] = styleTarget;
556
- }
557
-
558
- return memo[target];
559
- };
560
- }();
561
-
562
- var stylesInDom = [];
563
-
564
- function getIndexByIdentifier(identifier) {
565
- var result = -1;
566
-
567
- for (var i = 0; i < stylesInDom.length; i++) {
568
- if (stylesInDom[i].identifier === identifier) {
569
- result = i;
570
- break;
571
- }
572
- }
573
-
574
- return result;
575
- }
576
-
577
- function modulesToDom(list, options) {
578
- var idCountMap = {};
579
- var identifiers = [];
580
-
581
- for (var i = 0; i < list.length; i++) {
582
- var item = list[i];
583
- var id = options.base ? item[0] + options.base : item[0];
584
- var count = idCountMap[id] || 0;
585
- var identifier = "".concat(id, " ").concat(count);
586
- idCountMap[id] = count + 1;
587
- var index = getIndexByIdentifier(identifier);
588
- var obj = {
589
- css: item[1],
590
- media: item[2],
591
- sourceMap: item[3]
592
- };
593
-
594
- if (index !== -1) {
595
- stylesInDom[index].references++;
596
- stylesInDom[index].updater(obj);
597
- } else {
598
- stylesInDom.push({
599
- identifier: identifier,
600
- updater: addStyle(obj, options),
601
- references: 1
602
- });
603
- }
604
-
605
- identifiers.push(identifier);
606
- }
607
-
608
- return identifiers;
609
- }
610
-
611
- function insertStyleElement(options) {
612
- var style = document.createElement('style');
613
- var attributes = options.attributes || {};
614
-
615
- if (typeof attributes.nonce === 'undefined') {
616
- var nonce = true ? __webpack_require__.nc : undefined;
617
-
618
- if (nonce) {
619
- attributes.nonce = nonce;
620
- }
621
- }
622
-
623
- Object.keys(attributes).forEach(function (key) {
624
- style.setAttribute(key, attributes[key]);
625
- });
626
-
627
- if (typeof options.insert === 'function') {
628
- options.insert(style);
629
- } else {
630
- var target = getTarget(options.insert || 'head');
631
-
632
- if (!target) {
633
- throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
634
- }
635
-
636
- target.appendChild(style);
637
- }
638
-
639
- return style;
640
- }
641
-
642
- function removeStyleElement(style) {
643
- // istanbul ignore if
644
- if (style.parentNode === null) {
645
- return false;
646
- }
647
-
648
- style.parentNode.removeChild(style);
649
- }
650
- /* istanbul ignore next */
651
-
652
-
653
- var replaceText = function replaceText() {
654
- var textStore = [];
655
- return function replace(index, replacement) {
656
- textStore[index] = replacement;
657
- return textStore.filter(Boolean).join('\n');
658
- };
659
- }();
660
-
661
- function applyToSingletonTag(style, index, remove, obj) {
662
- var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
663
-
664
- /* istanbul ignore if */
665
-
666
- if (style.styleSheet) {
667
- style.styleSheet.cssText = replaceText(index, css);
668
- } else {
669
- var cssNode = document.createTextNode(css);
670
- var childNodes = style.childNodes;
671
-
672
- if (childNodes[index]) {
673
- style.removeChild(childNodes[index]);
674
- }
675
-
676
- if (childNodes.length) {
677
- style.insertBefore(cssNode, childNodes[index]);
678
- } else {
679
- style.appendChild(cssNode);
680
- }
681
- }
682
- }
683
-
684
- function applyToTag(style, options, obj) {
685
- var css = obj.css;
686
- var media = obj.media;
687
- var sourceMap = obj.sourceMap;
688
-
689
- if (media) {
690
- style.setAttribute('media', media);
691
- } else {
692
- style.removeAttribute('media');
693
- }
694
-
695
- if (sourceMap && typeof btoa !== 'undefined') {
696
- css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
697
- } // For old IE
698
-
699
- /* istanbul ignore if */
700
-
701
-
702
- if (style.styleSheet) {
703
- style.styleSheet.cssText = css;
704
- } else {
705
- while (style.firstChild) {
706
- style.removeChild(style.firstChild);
707
- }
708
-
709
- style.appendChild(document.createTextNode(css));
710
- }
711
- }
712
-
713
- var singleton = null;
714
- var singletonCounter = 0;
715
-
716
- function addStyle(obj, options) {
717
- var style;
718
- var update;
719
- var remove;
720
-
721
- if (options.singleton) {
722
- var styleIndex = singletonCounter++;
723
- style = singleton || (singleton = insertStyleElement(options));
724
- update = applyToSingletonTag.bind(null, style, styleIndex, false);
725
- remove = applyToSingletonTag.bind(null, style, styleIndex, true);
726
- } else {
727
- style = insertStyleElement(options);
728
- update = applyToTag.bind(null, style, options);
729
-
730
- remove = function remove() {
731
- removeStyleElement(style);
732
- };
733
- }
734
-
735
- update(obj);
736
- return function updateStyle(newObj) {
737
- if (newObj) {
738
- if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
739
- return;
740
- }
741
-
742
- update(obj = newObj);
743
- } else {
744
- remove();
745
- }
746
- };
747
- }
748
-
749
- module.exports = function (list, options) {
750
- options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
751
- // tags it will allow on a page
752
-
753
- if (!options.singleton && typeof options.singleton !== 'boolean') {
754
- options.singleton = isOldIE();
755
- }
756
-
757
- list = list || [];
758
- var lastIdentifiers = modulesToDom(list, options);
759
- return function update(newList) {
760
- newList = newList || [];
761
-
762
- if (Object.prototype.toString.call(newList) !== '[object Array]') {
763
- return;
764
- }
765
-
766
- for (var i = 0; i < lastIdentifiers.length; i++) {
767
- var identifier = lastIdentifiers[i];
768
- var index = getIndexByIdentifier(identifier);
769
- stylesInDom[index].references--;
770
- }
771
-
772
- var newLastIdentifiers = modulesToDom(newList, options);
773
-
774
- for (var _i = 0; _i < lastIdentifiers.length; _i++) {
775
- var _identifier = lastIdentifiers[_i];
776
-
777
- var _index = getIndexByIdentifier(_identifier);
778
-
779
- if (stylesInDom[_index].references === 0) {
780
- stylesInDom[_index].updater();
781
-
782
- stylesInDom.splice(_index, 1);
783
- }
784
- }
785
-
786
- lastIdentifiers = newLastIdentifiers;
787
- };
788
- };
789
-
790
- /***/ }),
791
-
792
- /***/ 94:
793
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
794
-
795
- "use strict";
796
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
797
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
798
- // Imports
799
-
800
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
801
- // Module
802
- ___CSS_LOADER_EXPORT___.push([module.i, "[data-v-6fb5dcd7]:root{--color-primary: #409EFF;--color-success: #67C23A;--color-warning: #E6A23C;--color-danger: #F56C6C;--color-info: #909399}.el-x-thinking[data-v-6fb5dcd7]{margin:0 auto}.trigger[data-v-6fb5dcd7]{display:flex;align-items:center;height:100%;width:var(--el-x-thinking-button-width);gap:4px;padding:8px 12px;border:1px solid #dcdfe6;border-radius:8px;background:#fff;cursor:pointer;margin-bottom:4px}.trigger .el-icon-center[data-v-6fb5dcd7]{height:100%;display:flex;align-items:center}.trigger .start-color[data-v-6fb5dcd7]{color:#e6a23c}.trigger .end-color[data-v-6fb5dcd7]{color:#67c23a}.trigger .is-loading[data-v-6fb5dcd7]{color:#409eff}.trigger .error-color[data-v-6fb5dcd7]{color:#f56c6c}.trigger[data-v-6fb5dcd7]:hover{background:#f5f7fa}.trigger.disabled[data-v-6fb5dcd7]{cursor:pointer}.trigger[data-v-6fb5dcd7]:disabled{cursor:not-allowed;opacity:.7}.status-icon[data-v-6fb5dcd7]{font-size:16px}.arrow[data-v-6fb5dcd7]{margin-left:auto;transition:transform var(--el-x-thinking-animation-duration)}.arrow.expanded[data-v-6fb5dcd7]{transform:rotate(180deg)}.slide-enter-active[data-v-6fb5dcd7],.slide-leave-active[data-v-6fb5dcd7]{height:max-content;transition:height var(--el-x-thinking-animation-duration) ease-in-out,opacity var(--el-x-thinking-animation-duration) ease-in-out;overflow:hidden}.slide-enter-from[data-v-6fb5dcd7],.slide-leave-to[data-v-6fb5dcd7]{height:0 !important;opacity:0}.content-wrapper[data-v-6fb5dcd7]{box-sizing:border-box;min-width:0}.content pre[data-v-6fb5dcd7]{border:1px solid #dcdfe6;background:var(--el-x-thinking-content-wrapper-background-color);padding:8px 12px;border-radius:8px;max-width:var(--el-x-thinking-content-wrapper-width);font-size:14px;color:var(--el-x-thinking-content-wrapper-color);white-space:pre-wrap;margin:0;line-height:24px}.error-state[data-v-6fb5dcd7]{border-color:rgb(254,240.3,240.3);background:rgb(254,240.3,240.3)}.error-message[data-v-6fb5dcd7]{color:#f56c6c;height:fit-content;padding:4px;background:rgb(254,240.3,240.3);border-radius:8px}", ""]);
803
- // Exports
804
- /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
805
-
806
-
807
- /***/ })
808
-
809
- /******/ });