vue-element-ui-x 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/lib/components/Attachments/index.js +2 -2
  2. package/lib/components/Bubble/index.js +23 -28
  3. package/lib/components/BubbleList/index.js +24 -29
  4. package/lib/components/Conversations/index.js +1 -1
  5. package/lib/components/FilesCard/index.js +1 -1
  6. package/lib/components/Prompts/index.js +21 -21
  7. package/lib/components/Sender/index.js +4 -4
  8. package/lib/components/Thinking/index.js +1 -1
  9. package/lib/components/ThoughtChain/index.js +23 -28
  10. package/lib/components/Typewriter/index.js +22 -27
  11. package/lib/components/Welcome/index.js +1 -1
  12. package/lib/index.common.js +1 -1
  13. package/lib/index.esm.js +1 -1
  14. package/lib/index.js +56 -61
  15. package/lib/index.umd.js +1 -1
  16. package/package.json +1 -1
  17. package/src/components/Attachments/index.js +8 -8
  18. package/src/components/Bubble/index.js +6 -6
  19. package/src/components/Bubble/src/main.vue +299 -299
  20. package/src/components/BubbleList/index.js +8 -8
  21. package/src/components/BubbleList/src/loading.vue +75 -75
  22. package/src/components/Conversations/index.js +8 -8
  23. package/src/components/FilesCard/index.js +8 -8
  24. package/src/components/FilesCard/src/fileSvg/audio.vue +38 -38
  25. package/src/components/FilesCard/src/fileSvg/code.vue +35 -35
  26. package/src/components/FilesCard/src/fileSvg/database.vue +94 -94
  27. package/src/components/FilesCard/src/fileSvg/excel.vue +38 -38
  28. package/src/components/FilesCard/src/fileSvg/file.vue +40 -40
  29. package/src/components/FilesCard/src/fileSvg/image.vue +40 -40
  30. package/src/components/FilesCard/src/fileSvg/index.js +46 -46
  31. package/src/components/FilesCard/src/fileSvg/link.vue +54 -54
  32. package/src/components/FilesCard/src/fileSvg/mark.vue +38 -38
  33. package/src/components/FilesCard/src/fileSvg/pdf.vue +38 -38
  34. package/src/components/FilesCard/src/fileSvg/ppt.vue +38 -38
  35. package/src/components/FilesCard/src/fileSvg/three.vue +38 -38
  36. package/src/components/FilesCard/src/fileSvg/txt.vue +38 -38
  37. package/src/components/FilesCard/src/fileSvg/unknown.vue +54 -54
  38. package/src/components/FilesCard/src/fileSvg/video.vue +38 -38
  39. package/src/components/FilesCard/src/fileSvg/word.vue +38 -38
  40. package/src/components/FilesCard/src/fileSvg/zip.vue +38 -38
  41. package/src/components/FilesCard/src/options.js +18 -18
  42. package/src/components/Prompts/index.js +8 -8
  43. package/src/components/Prompts/src/main.vue +248 -248
  44. package/src/components/Sender/index.js +8 -8
  45. package/src/components/Sender/src/components/ClearButton.vue +28 -28
  46. package/src/components/Sender/src/components/Loading.vue +53 -53
  47. package/src/components/Sender/src/components/LoadingButton.vue +39 -39
  48. package/src/components/Sender/src/components/SendButton.vue +26 -26
  49. package/src/components/Sender/src/components/SpeechButton.vue +24 -24
  50. package/src/components/Sender/src/components/SpeechLoading.vue +87 -87
  51. package/src/components/Sender/src/components/SpeechLoadingButton.vue +43 -43
  52. package/src/components/Thinking/index.js +8 -8
  53. package/src/components/ThoughtChain/index.js +8 -8
  54. package/src/components/Typewriter/index.js +8 -8
  55. package/src/components/Welcome/index.js +8 -8
  56. package/src/components/Welcome/src/main.vue +151 -151
  57. package/src/index.js +0 -1
  58. package/src/styles/Attachments.scss +236 -236
  59. package/src/styles/Bubble.scss +157 -157
  60. package/src/styles/BubbleList.scss +148 -148
  61. package/src/styles/Conversations.scss +260 -260
  62. package/src/styles/FilesCard.scss +221 -221
  63. package/src/styles/Prompts.scss +195 -195
  64. package/src/styles/Sender.scss +199 -199
  65. package/src/styles/ThoughtChain.scss +113 -113
  66. package/src/styles/Typewriter.scss +66 -66
  67. package/src/styles/button.scss +302 -0
  68. package/src/styles/var.scss +1052 -0
  69. package/src/theme/var.scss +72 -72
  70. package/lib/components/Think/index.js +0 -799
@@ -1,799 +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 = 103);
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
- /***/ 103:
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/Think/src/main.vue?vue&type=template&id=5dd59d08
203
- var render = function render() {
204
- var _vm = this,
205
- _c = _vm._self._c;
206
- return _c("div", {
207
- staticClass: "el-x-think",
208
- style: {
209
- "--el-x-think-button-width": _vm.buttonWidth,
210
- "--el-x-think-animation-duration": _vm.duration,
211
- "--el-x-think-content-wrapper-width": _vm.maxWidth,
212
- "--el-x-think-content-wrapper-background-color": _vm.backgroundColor,
213
- "--el-x-think-content-wrapper-color": _vm.color
214
- }
215
- }, [_c("button", {
216
- staticClass: "trigger",
217
- class: [_vm.status, {
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.status === "thinking" ? _c("i", {
230
- staticClass: "is-loading el-icon-center el-icon-loading"
231
- }) : _vm._e(), _vm._v(" "), _vm.status === "start" ? _c("i", {
232
- staticClass: "el-icon-center start-color el-icon-opportunity"
233
- }) : _vm._e(), _vm._v(" "), _vm.status === "end" ? _c("i", {
234
- staticClass: "el-icon-center end-color el-icon-success"
235
- }) : _vm._e(), _vm._v(" "), _vm.status === "error" ? _c("i", {
236
- staticClass: "el-icon-center error-color el-icon-circle-close"
237
- }) : _vm._e()];
238
- }, {
239
- status: _vm.status
240
- })], 2), _vm._v(" "), _c("span", {
241
- staticClass: "label"
242
- }, [_vm._t("label", function () {
243
- return [_vm._v("\n " + _vm._s(_vm.status === "thinking" ? "思考中..." : _vm.status === "error" ? "思考遇到问题" : _vm.status === "end" ? "思考完成" : "开始思考") + "\n ")];
244
- }, {
245
- status: _vm.status
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.status === "error"
273
- }
274
- }, [_c("div", {
275
- staticClass: "content"
276
- }, [_vm.status !== "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/Think/src/main.vue?vue&type=template&id=5dd59d08
292
-
293
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Think/src/main.vue?vue&type=script&lang=js
294
- /* harmony default export */ var mainvue_type_script_lang_js = ({
295
- name: 'ElXThink',
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: 'var(--el-color-info)'
339
- }
340
- },
341
- data() {
342
- return {
343
- isExpanded: this.modelValue
344
- };
345
- },
346
- computed: {
347
- displayedContent() {
348
- return this.status === 'error' ? '思考过程中出现错误' : this.content;
349
- }
350
- },
351
- watch: {
352
- modelValue(newVal) {
353
- this.isExpanded = newVal;
354
- },
355
- status(newVal) {
356
- if (newVal === 'end' && this.autoCollapse) {
357
- this.isExpanded = false;
358
- }
359
- }
360
- },
361
- methods: {
362
- changeExpand() {
363
- if (this.disabled) return;
364
- this.isExpanded = !this.isExpanded;
365
- this.$emit('change', {
366
- value: this.isExpanded,
367
- status: this.status
368
- });
369
- this.$emit('update:expanded', this.isExpanded);
370
- }
371
- }
372
- });
373
- // CONCATENATED MODULE: ./src/components/Think/src/main.vue?vue&type=script&lang=js
374
- /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
375
- // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
376
- var injectStylesIntoStyleTag = __webpack_require__(3);
377
- var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
378
-
379
- // 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/Think/src/main.vue?vue&type=style&index=0&id=5dd59d08&prod&lang=scss
380
- var mainvue_type_style_index_0_id_5dd59d08_prod_lang_scss = __webpack_require__(93);
381
-
382
- // 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/Think/src/main.vue?vue&type=style&index=0&id=5dd59d08&prod&lang=scss
383
-
384
-
385
-
386
- var options = {};
387
-
388
- options.insert = "head";
389
- options.singleton = false;
390
-
391
- var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_5dd59d08_prod_lang_scss["a" /* default */], options);
392
-
393
-
394
-
395
- /* harmony default export */ var src_mainvue_type_style_index_0_id_5dd59d08_prod_lang_scss = (mainvue_type_style_index_0_id_5dd59d08_prod_lang_scss["a" /* default */].locals || {});
396
- // CONCATENATED MODULE: ./src/components/Think/src/main.vue?vue&type=style&index=0&id=5dd59d08&prod&lang=scss
397
-
398
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
399
- var componentNormalizer = __webpack_require__(0);
400
-
401
- // CONCATENATED MODULE: ./src/components/Think/src/main.vue
402
-
403
-
404
-
405
-
406
-
407
-
408
- /* normalize component */
409
-
410
- var component = Object(componentNormalizer["a" /* default */])(
411
- src_mainvue_type_script_lang_js,
412
- render,
413
- staticRenderFns,
414
- false,
415
- null,
416
- null,
417
- null
418
-
419
- )
420
-
421
- /* harmony default export */ var main = (component.exports);
422
- // CONCATENATED MODULE: ./src/components/Think/index.js
423
-
424
-
425
- /* istanbul ignore next */
426
- main.install = function (Vue) {
427
- Vue.component(main.name, main);
428
- };
429
- /* harmony default export */ var Think = __webpack_exports__["default"] = (main);
430
-
431
- /***/ }),
432
-
433
- /***/ 2:
434
- /***/ (function(module, exports, __webpack_require__) {
435
-
436
- "use strict";
437
-
438
-
439
- /*
440
- MIT License http://www.opensource.org/licenses/mit-license.php
441
- Author Tobias Koppers @sokra
442
- */
443
- // css base code, injected by the css-loader
444
- // eslint-disable-next-line func-names
445
- module.exports = function (cssWithMappingToString) {
446
- var list = []; // return the list of modules as css string
447
-
448
- list.toString = function toString() {
449
- return this.map(function (item) {
450
- var content = cssWithMappingToString(item);
451
-
452
- if (item[2]) {
453
- return "@media ".concat(item[2], " {").concat(content, "}");
454
- }
455
-
456
- return content;
457
- }).join("");
458
- }; // import a list of modules into the list
459
- // eslint-disable-next-line func-names
460
-
461
-
462
- list.i = function (modules, mediaQuery, dedupe) {
463
- if (typeof modules === "string") {
464
- // eslint-disable-next-line no-param-reassign
465
- modules = [[null, modules, ""]];
466
- }
467
-
468
- var alreadyImportedModules = {};
469
-
470
- if (dedupe) {
471
- for (var i = 0; i < this.length; i++) {
472
- // eslint-disable-next-line prefer-destructuring
473
- var id = this[i][0];
474
-
475
- if (id != null) {
476
- alreadyImportedModules[id] = true;
477
- }
478
- }
479
- }
480
-
481
- for (var _i = 0; _i < modules.length; _i++) {
482
- var item = [].concat(modules[_i]);
483
-
484
- if (dedupe && alreadyImportedModules[item[0]]) {
485
- // eslint-disable-next-line no-continue
486
- continue;
487
- }
488
-
489
- if (mediaQuery) {
490
- if (!item[2]) {
491
- item[2] = mediaQuery;
492
- } else {
493
- item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
494
- }
495
- }
496
-
497
- list.push(item);
498
- }
499
- };
500
-
501
- return list;
502
- };
503
-
504
- /***/ }),
505
-
506
- /***/ 3:
507
- /***/ (function(module, exports, __webpack_require__) {
508
-
509
- "use strict";
510
-
511
-
512
- var isOldIE = function isOldIE() {
513
- var memo;
514
- return function memorize() {
515
- if (typeof memo === 'undefined') {
516
- // Test for IE <= 9 as proposed by Browserhacks
517
- // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
518
- // Tests for existence of standard globals is to allow style-loader
519
- // to operate correctly into non-standard environments
520
- // @see https://github.com/webpack-contrib/style-loader/issues/177
521
- memo = Boolean(window && document && document.all && !window.atob);
522
- }
523
-
524
- return memo;
525
- };
526
- }();
527
-
528
- var getTarget = function getTarget() {
529
- var memo = {};
530
- return function memorize(target) {
531
- if (typeof memo[target] === 'undefined') {
532
- var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
533
-
534
- if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
535
- try {
536
- // This will throw an exception if access to iframe is blocked
537
- // due to cross-origin restrictions
538
- styleTarget = styleTarget.contentDocument.head;
539
- } catch (e) {
540
- // istanbul ignore next
541
- styleTarget = null;
542
- }
543
- }
544
-
545
- memo[target] = styleTarget;
546
- }
547
-
548
- return memo[target];
549
- };
550
- }();
551
-
552
- var stylesInDom = [];
553
-
554
- function getIndexByIdentifier(identifier) {
555
- var result = -1;
556
-
557
- for (var i = 0; i < stylesInDom.length; i++) {
558
- if (stylesInDom[i].identifier === identifier) {
559
- result = i;
560
- break;
561
- }
562
- }
563
-
564
- return result;
565
- }
566
-
567
- function modulesToDom(list, options) {
568
- var idCountMap = {};
569
- var identifiers = [];
570
-
571
- for (var i = 0; i < list.length; i++) {
572
- var item = list[i];
573
- var id = options.base ? item[0] + options.base : item[0];
574
- var count = idCountMap[id] || 0;
575
- var identifier = "".concat(id, " ").concat(count);
576
- idCountMap[id] = count + 1;
577
- var index = getIndexByIdentifier(identifier);
578
- var obj = {
579
- css: item[1],
580
- media: item[2],
581
- sourceMap: item[3]
582
- };
583
-
584
- if (index !== -1) {
585
- stylesInDom[index].references++;
586
- stylesInDom[index].updater(obj);
587
- } else {
588
- stylesInDom.push({
589
- identifier: identifier,
590
- updater: addStyle(obj, options),
591
- references: 1
592
- });
593
- }
594
-
595
- identifiers.push(identifier);
596
- }
597
-
598
- return identifiers;
599
- }
600
-
601
- function insertStyleElement(options) {
602
- var style = document.createElement('style');
603
- var attributes = options.attributes || {};
604
-
605
- if (typeof attributes.nonce === 'undefined') {
606
- var nonce = true ? __webpack_require__.nc : undefined;
607
-
608
- if (nonce) {
609
- attributes.nonce = nonce;
610
- }
611
- }
612
-
613
- Object.keys(attributes).forEach(function (key) {
614
- style.setAttribute(key, attributes[key]);
615
- });
616
-
617
- if (typeof options.insert === 'function') {
618
- options.insert(style);
619
- } else {
620
- var target = getTarget(options.insert || 'head');
621
-
622
- if (!target) {
623
- throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
624
- }
625
-
626
- target.appendChild(style);
627
- }
628
-
629
- return style;
630
- }
631
-
632
- function removeStyleElement(style) {
633
- // istanbul ignore if
634
- if (style.parentNode === null) {
635
- return false;
636
- }
637
-
638
- style.parentNode.removeChild(style);
639
- }
640
- /* istanbul ignore next */
641
-
642
-
643
- var replaceText = function replaceText() {
644
- var textStore = [];
645
- return function replace(index, replacement) {
646
- textStore[index] = replacement;
647
- return textStore.filter(Boolean).join('\n');
648
- };
649
- }();
650
-
651
- function applyToSingletonTag(style, index, remove, obj) {
652
- var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
653
-
654
- /* istanbul ignore if */
655
-
656
- if (style.styleSheet) {
657
- style.styleSheet.cssText = replaceText(index, css);
658
- } else {
659
- var cssNode = document.createTextNode(css);
660
- var childNodes = style.childNodes;
661
-
662
- if (childNodes[index]) {
663
- style.removeChild(childNodes[index]);
664
- }
665
-
666
- if (childNodes.length) {
667
- style.insertBefore(cssNode, childNodes[index]);
668
- } else {
669
- style.appendChild(cssNode);
670
- }
671
- }
672
- }
673
-
674
- function applyToTag(style, options, obj) {
675
- var css = obj.css;
676
- var media = obj.media;
677
- var sourceMap = obj.sourceMap;
678
-
679
- if (media) {
680
- style.setAttribute('media', media);
681
- } else {
682
- style.removeAttribute('media');
683
- }
684
-
685
- if (sourceMap && typeof btoa !== 'undefined') {
686
- css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
687
- } // For old IE
688
-
689
- /* istanbul ignore if */
690
-
691
-
692
- if (style.styleSheet) {
693
- style.styleSheet.cssText = css;
694
- } else {
695
- while (style.firstChild) {
696
- style.removeChild(style.firstChild);
697
- }
698
-
699
- style.appendChild(document.createTextNode(css));
700
- }
701
- }
702
-
703
- var singleton = null;
704
- var singletonCounter = 0;
705
-
706
- function addStyle(obj, options) {
707
- var style;
708
- var update;
709
- var remove;
710
-
711
- if (options.singleton) {
712
- var styleIndex = singletonCounter++;
713
- style = singleton || (singleton = insertStyleElement(options));
714
- update = applyToSingletonTag.bind(null, style, styleIndex, false);
715
- remove = applyToSingletonTag.bind(null, style, styleIndex, true);
716
- } else {
717
- style = insertStyleElement(options);
718
- update = applyToTag.bind(null, style, options);
719
-
720
- remove = function remove() {
721
- removeStyleElement(style);
722
- };
723
- }
724
-
725
- update(obj);
726
- return function updateStyle(newObj) {
727
- if (newObj) {
728
- if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
729
- return;
730
- }
731
-
732
- update(obj = newObj);
733
- } else {
734
- remove();
735
- }
736
- };
737
- }
738
-
739
- module.exports = function (list, options) {
740
- options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
741
- // tags it will allow on a page
742
-
743
- if (!options.singleton && typeof options.singleton !== 'boolean') {
744
- options.singleton = isOldIE();
745
- }
746
-
747
- list = list || [];
748
- var lastIdentifiers = modulesToDom(list, options);
749
- return function update(newList) {
750
- newList = newList || [];
751
-
752
- if (Object.prototype.toString.call(newList) !== '[object Array]') {
753
- return;
754
- }
755
-
756
- for (var i = 0; i < lastIdentifiers.length; i++) {
757
- var identifier = lastIdentifiers[i];
758
- var index = getIndexByIdentifier(identifier);
759
- stylesInDom[index].references--;
760
- }
761
-
762
- var newLastIdentifiers = modulesToDom(newList, options);
763
-
764
- for (var _i = 0; _i < lastIdentifiers.length; _i++) {
765
- var _identifier = lastIdentifiers[_i];
766
-
767
- var _index = getIndexByIdentifier(_identifier);
768
-
769
- if (stylesInDom[_index].references === 0) {
770
- stylesInDom[_index].updater();
771
-
772
- stylesInDom.splice(_index, 1);
773
- }
774
- }
775
-
776
- lastIdentifiers = newLastIdentifiers;
777
- };
778
- };
779
-
780
- /***/ }),
781
-
782
- /***/ 93:
783
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
784
-
785
- "use strict";
786
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
787
- /* 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__);
788
- // Imports
789
-
790
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
791
- // Module
792
- ___CSS_LOADER_EXPORT___.push([module.i, ":root{--color-primary: #409EFF;--color-success: #67C23A;--color-warning: #E6A23C;--color-danger: #F56C6C;--color-info: #909399}.el-x-think{font-family:system-ui, sans-serif;margin:0 auto}.el-x-think .trigger{display:flex;align-items:center;height:100%;width:var(--el-x-think-button-width);gap:8px;padding:8px 12px;border:1px solid #DCDFE6;border-radius:8px;background:#fff;cursor:pointer;margin-bottom:8px}.el-x-think .trigger .el-icon-center{height:100%;display:flex;align-items:center}.el-x-think .trigger .start-color{color:#E6A23C}.el-x-think .trigger .end-color{color:#67C23A}.el-x-think .trigger .is-loading{color:#409EFF}.el-x-think .trigger .error-color{color:#F56C6C}.el-x-think .trigger:hover{background:#f8f8f8}.el-x-think .trigger.disabled{cursor:pointer}.el-x-think .trigger:disabled{cursor:not-allowed;opacity:0.7}.el-x-think .status-icon{font-size:1.2em}.el-x-think .arrow{margin-left:auto;transition:transform var(--el-x-think-animation-duration)}.el-x-think .arrow.expanded{transform:rotate(180deg)}.el-x-think .slide-enter-active,.el-x-think .slide-leave-active{transition:height var(--el-x-think-animation-duration) ease-in-out,opacity var(--el-x-think-animation-duration) ease-in-out;overflow:hidden}.el-x-think .slide-enter,.el-x-think .slide-leave-to{height:0 !important;opacity:0}.el-x-think .content-wrapper{box-sizing:border-box;min-width:0}.el-x-think .content-wrapper.error-state{border-color:#ffd0d0;background:#fff0f0}.el-x-think .content pre{border:1px solid #DCDFE6;background:var(--el-x-think-content-wrapper-background-color);padding:8px 12px;border-radius:8px;max-width:var(--el-x-think-content-wrapper-width);font-size:14px;color:var(--el-x-think-content-wrapper-color);white-space:pre-wrap;font-family:system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,\r sans-serif;margin:0;line-height:24px}.el-x-think .error-message{color:#F56C6C;height:fit-content;padding:8px;background:#ffeef0;border-radius:4px}.el-x-think .rotate-enter-active,.el-x-think .rotate-leave-active{transition:transform var(--el-x-think-animation-duration)}.el-x-think .rotate-enter,.el-x-think .rotate-leave-to{transform:rotate(0deg)}\n", ""]);
793
- // Exports
794
- /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
795
-
796
-
797
- /***/ })
798
-
799
- /******/ });