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/welcome.js DELETED
@@ -1,755 +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 = 106);
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
- /***/ 106:
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/Welcome/src/main.vue?vue&type=template&id=68cfb339&scoped=true
203
- var render = function render() {
204
- var _vm = this,
205
- _c = _vm._self._c;
206
- return _c("div", {
207
- staticClass: "el-x-welcome",
208
- class: _vm.containerClass,
209
- style: _vm.styleConfig
210
- }, [_vm._t("image", function () {
211
- return [_vm.hasIcon ? _c("div", {
212
- staticClass: "el-x-welcome-icon",
213
- class: _vm.iconClass,
214
- style: _vm.styles && _vm.styles.icon
215
- }, [_c("el-image", {
216
- staticClass: "icon-image",
217
- attrs: {
218
- src: _vm.icon
219
- }
220
- })], 1) : _vm._e()];
221
- }), _vm._v(" "), _c("div", {
222
- staticClass: "content-wrapper"
223
- }, [_vm.hasTitleOrExtra ? _c("div", {
224
- staticClass: "title-wrapper"
225
- }, [_vm.title ? _c("div", {
226
- staticClass: "el-x-welcome-title",
227
- class: _vm.titleClass,
228
- style: _vm.styles && _vm.styles.title
229
- }, [_vm._v("\n " + _vm._s(_vm.title) + "\n ")]) : _vm._e(), _vm._v(" "), _vm.hasExtraOrSlot ? _c("div", {
230
- staticClass: "el-x-welcome-extra",
231
- class: _vm.extraClass,
232
- style: _vm.styles && _vm.styles.extra
233
- }, [_vm._t("extra", function () {
234
- return [_vm._v(_vm._s(_vm.extra))];
235
- })], 2) : _vm._e()]) : _vm._e(), _vm._v(" "), _vm.hasDescription ? _c("div", {
236
- staticClass: "el-x-welcome-description",
237
- class: _vm.descriptionClass,
238
- style: _vm.styles && _vm.styles.description
239
- }, [_vm._v("\n " + _vm._s(_vm.description) + "\n ")]) : _vm._e()])], 2);
240
- };
241
- var staticRenderFns = [];
242
- render._withStripped = true;
243
-
244
- // CONCATENATED MODULE: ./src/components/Welcome/src/main.vue?vue&type=template&id=68cfb339&scoped=true
245
-
246
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Welcome/src/main.vue?vue&type=script&lang=js
247
- /* harmony default export */ var mainvue_type_script_lang_js = ({
248
- name: 'ElXWelcome',
249
- props: {
250
- className: {
251
- type: String,
252
- default: ''
253
- },
254
- rootClassName: {
255
- type: String,
256
- default: ''
257
- },
258
- variant: {
259
- type: String,
260
- default: 'filled',
261
- validator: value => ['filled', 'borderless'].includes(value)
262
- },
263
- direction: {
264
- type: String,
265
- default: 'ltr',
266
- validator: value => ['ltr', 'rtl'].includes(value)
267
- },
268
- classNames: {
269
- type: Object,
270
- default: () => ({})
271
- },
272
- icon: {
273
- type: String,
274
- default: ''
275
- },
276
- title: {
277
- type: String,
278
- default: ''
279
- },
280
- extra: {
281
- type: [String, Object],
282
- default: ''
283
- },
284
- description: {
285
- type: String,
286
- default: ''
287
- },
288
- styleConfig: {
289
- type: Object,
290
- default: () => ({})
291
- },
292
- styles: {
293
- type: Object,
294
- default: () => ({})
295
- }
296
- },
297
- computed: {
298
- hasIcon() {
299
- return !!this.icon;
300
- },
301
- hasTitleOrExtra() {
302
- return !!this.title || !!this.extra;
303
- },
304
- hasExtraOrSlot() {
305
- return !!this.extra || !!this.$slots.extra;
306
- },
307
- hasDescription() {
308
- return !!this.description;
309
- },
310
- containerClass() {
311
- return [this.className, this.rootClassName, `el-x-welcome-${this.variant}`, {
312
- 'el-x-welcome-rtl': this.direction === 'rtl'
313
- }];
314
- },
315
- iconClass() {
316
- return this.classNames && this.classNames.icon;
317
- },
318
- titleClass() {
319
- return this.classNames && this.classNames.title;
320
- },
321
- extraClass() {
322
- return this.classNames && this.classNames.extra;
323
- },
324
- descriptionClass() {
325
- return this.classNames && this.classNames.description;
326
- }
327
- }
328
- });
329
- // CONCATENATED MODULE: ./src/components/Welcome/src/main.vue?vue&type=script&lang=js
330
- /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
331
- // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
332
- var injectStylesIntoStyleTag = __webpack_require__(3);
333
- var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
334
-
335
- // 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/Welcome/src/main.vue?vue&type=style&index=0&id=68cfb339&prod&lang=scss&scoped=true
336
- var mainvue_type_style_index_0_id_68cfb339_prod_lang_scss_scoped_true = __webpack_require__(96);
337
-
338
- // 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/Welcome/src/main.vue?vue&type=style&index=0&id=68cfb339&prod&lang=scss&scoped=true
339
-
340
-
341
-
342
- var options = {};
343
-
344
- options.insert = "head";
345
- options.singleton = false;
346
-
347
- var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_68cfb339_prod_lang_scss_scoped_true["a" /* default */], options);
348
-
349
-
350
-
351
- /* harmony default export */ var src_mainvue_type_style_index_0_id_68cfb339_prod_lang_scss_scoped_true = (mainvue_type_style_index_0_id_68cfb339_prod_lang_scss_scoped_true["a" /* default */].locals || {});
352
- // CONCATENATED MODULE: ./src/components/Welcome/src/main.vue?vue&type=style&index=0&id=68cfb339&prod&lang=scss&scoped=true
353
-
354
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
355
- var componentNormalizer = __webpack_require__(0);
356
-
357
- // CONCATENATED MODULE: ./src/components/Welcome/src/main.vue
358
-
359
-
360
-
361
-
362
-
363
-
364
- /* normalize component */
365
-
366
- var component = Object(componentNormalizer["a" /* default */])(
367
- src_mainvue_type_script_lang_js,
368
- render,
369
- staticRenderFns,
370
- false,
371
- null,
372
- "68cfb339",
373
- null
374
-
375
- )
376
-
377
- /* harmony default export */ var main = (component.exports);
378
- // CONCATENATED MODULE: ./src/components/Welcome/index.js
379
-
380
-
381
- /* istanbul ignore next */
382
- main.install = function (Vue) {
383
- Vue.component(main.name, main);
384
- };
385
- /* harmony default export */ var Welcome = __webpack_exports__["default"] = (main);
386
-
387
- /***/ }),
388
-
389
- /***/ 2:
390
- /***/ (function(module, exports, __webpack_require__) {
391
-
392
- "use strict";
393
-
394
-
395
- /*
396
- MIT License http://www.opensource.org/licenses/mit-license.php
397
- Author Tobias Koppers @sokra
398
- */
399
- // css base code, injected by the css-loader
400
- // eslint-disable-next-line func-names
401
- module.exports = function (cssWithMappingToString) {
402
- var list = []; // return the list of modules as css string
403
-
404
- list.toString = function toString() {
405
- return this.map(function (item) {
406
- var content = cssWithMappingToString(item);
407
-
408
- if (item[2]) {
409
- return "@media ".concat(item[2], " {").concat(content, "}");
410
- }
411
-
412
- return content;
413
- }).join("");
414
- }; // import a list of modules into the list
415
- // eslint-disable-next-line func-names
416
-
417
-
418
- list.i = function (modules, mediaQuery, dedupe) {
419
- if (typeof modules === "string") {
420
- // eslint-disable-next-line no-param-reassign
421
- modules = [[null, modules, ""]];
422
- }
423
-
424
- var alreadyImportedModules = {};
425
-
426
- if (dedupe) {
427
- for (var i = 0; i < this.length; i++) {
428
- // eslint-disable-next-line prefer-destructuring
429
- var id = this[i][0];
430
-
431
- if (id != null) {
432
- alreadyImportedModules[id] = true;
433
- }
434
- }
435
- }
436
-
437
- for (var _i = 0; _i < modules.length; _i++) {
438
- var item = [].concat(modules[_i]);
439
-
440
- if (dedupe && alreadyImportedModules[item[0]]) {
441
- // eslint-disable-next-line no-continue
442
- continue;
443
- }
444
-
445
- if (mediaQuery) {
446
- if (!item[2]) {
447
- item[2] = mediaQuery;
448
- } else {
449
- item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
450
- }
451
- }
452
-
453
- list.push(item);
454
- }
455
- };
456
-
457
- return list;
458
- };
459
-
460
- /***/ }),
461
-
462
- /***/ 3:
463
- /***/ (function(module, exports, __webpack_require__) {
464
-
465
- "use strict";
466
-
467
-
468
- var isOldIE = function isOldIE() {
469
- var memo;
470
- return function memorize() {
471
- if (typeof memo === 'undefined') {
472
- // Test for IE <= 9 as proposed by Browserhacks
473
- // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
474
- // Tests for existence of standard globals is to allow style-loader
475
- // to operate correctly into non-standard environments
476
- // @see https://github.com/webpack-contrib/style-loader/issues/177
477
- memo = Boolean(window && document && document.all && !window.atob);
478
- }
479
-
480
- return memo;
481
- };
482
- }();
483
-
484
- var getTarget = function getTarget() {
485
- var memo = {};
486
- return function memorize(target) {
487
- if (typeof memo[target] === 'undefined') {
488
- var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
489
-
490
- if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
491
- try {
492
- // This will throw an exception if access to iframe is blocked
493
- // due to cross-origin restrictions
494
- styleTarget = styleTarget.contentDocument.head;
495
- } catch (e) {
496
- // istanbul ignore next
497
- styleTarget = null;
498
- }
499
- }
500
-
501
- memo[target] = styleTarget;
502
- }
503
-
504
- return memo[target];
505
- };
506
- }();
507
-
508
- var stylesInDom = [];
509
-
510
- function getIndexByIdentifier(identifier) {
511
- var result = -1;
512
-
513
- for (var i = 0; i < stylesInDom.length; i++) {
514
- if (stylesInDom[i].identifier === identifier) {
515
- result = i;
516
- break;
517
- }
518
- }
519
-
520
- return result;
521
- }
522
-
523
- function modulesToDom(list, options) {
524
- var idCountMap = {};
525
- var identifiers = [];
526
-
527
- for (var i = 0; i < list.length; i++) {
528
- var item = list[i];
529
- var id = options.base ? item[0] + options.base : item[0];
530
- var count = idCountMap[id] || 0;
531
- var identifier = "".concat(id, " ").concat(count);
532
- idCountMap[id] = count + 1;
533
- var index = getIndexByIdentifier(identifier);
534
- var obj = {
535
- css: item[1],
536
- media: item[2],
537
- sourceMap: item[3]
538
- };
539
-
540
- if (index !== -1) {
541
- stylesInDom[index].references++;
542
- stylesInDom[index].updater(obj);
543
- } else {
544
- stylesInDom.push({
545
- identifier: identifier,
546
- updater: addStyle(obj, options),
547
- references: 1
548
- });
549
- }
550
-
551
- identifiers.push(identifier);
552
- }
553
-
554
- return identifiers;
555
- }
556
-
557
- function insertStyleElement(options) {
558
- var style = document.createElement('style');
559
- var attributes = options.attributes || {};
560
-
561
- if (typeof attributes.nonce === 'undefined') {
562
- var nonce = true ? __webpack_require__.nc : undefined;
563
-
564
- if (nonce) {
565
- attributes.nonce = nonce;
566
- }
567
- }
568
-
569
- Object.keys(attributes).forEach(function (key) {
570
- style.setAttribute(key, attributes[key]);
571
- });
572
-
573
- if (typeof options.insert === 'function') {
574
- options.insert(style);
575
- } else {
576
- var target = getTarget(options.insert || 'head');
577
-
578
- if (!target) {
579
- throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
580
- }
581
-
582
- target.appendChild(style);
583
- }
584
-
585
- return style;
586
- }
587
-
588
- function removeStyleElement(style) {
589
- // istanbul ignore if
590
- if (style.parentNode === null) {
591
- return false;
592
- }
593
-
594
- style.parentNode.removeChild(style);
595
- }
596
- /* istanbul ignore next */
597
-
598
-
599
- var replaceText = function replaceText() {
600
- var textStore = [];
601
- return function replace(index, replacement) {
602
- textStore[index] = replacement;
603
- return textStore.filter(Boolean).join('\n');
604
- };
605
- }();
606
-
607
- function applyToSingletonTag(style, index, remove, obj) {
608
- var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
609
-
610
- /* istanbul ignore if */
611
-
612
- if (style.styleSheet) {
613
- style.styleSheet.cssText = replaceText(index, css);
614
- } else {
615
- var cssNode = document.createTextNode(css);
616
- var childNodes = style.childNodes;
617
-
618
- if (childNodes[index]) {
619
- style.removeChild(childNodes[index]);
620
- }
621
-
622
- if (childNodes.length) {
623
- style.insertBefore(cssNode, childNodes[index]);
624
- } else {
625
- style.appendChild(cssNode);
626
- }
627
- }
628
- }
629
-
630
- function applyToTag(style, options, obj) {
631
- var css = obj.css;
632
- var media = obj.media;
633
- var sourceMap = obj.sourceMap;
634
-
635
- if (media) {
636
- style.setAttribute('media', media);
637
- } else {
638
- style.removeAttribute('media');
639
- }
640
-
641
- if (sourceMap && typeof btoa !== 'undefined') {
642
- css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
643
- } // For old IE
644
-
645
- /* istanbul ignore if */
646
-
647
-
648
- if (style.styleSheet) {
649
- style.styleSheet.cssText = css;
650
- } else {
651
- while (style.firstChild) {
652
- style.removeChild(style.firstChild);
653
- }
654
-
655
- style.appendChild(document.createTextNode(css));
656
- }
657
- }
658
-
659
- var singleton = null;
660
- var singletonCounter = 0;
661
-
662
- function addStyle(obj, options) {
663
- var style;
664
- var update;
665
- var remove;
666
-
667
- if (options.singleton) {
668
- var styleIndex = singletonCounter++;
669
- style = singleton || (singleton = insertStyleElement(options));
670
- update = applyToSingletonTag.bind(null, style, styleIndex, false);
671
- remove = applyToSingletonTag.bind(null, style, styleIndex, true);
672
- } else {
673
- style = insertStyleElement(options);
674
- update = applyToTag.bind(null, style, options);
675
-
676
- remove = function remove() {
677
- removeStyleElement(style);
678
- };
679
- }
680
-
681
- update(obj);
682
- return function updateStyle(newObj) {
683
- if (newObj) {
684
- if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
685
- return;
686
- }
687
-
688
- update(obj = newObj);
689
- } else {
690
- remove();
691
- }
692
- };
693
- }
694
-
695
- module.exports = function (list, options) {
696
- options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
697
- // tags it will allow on a page
698
-
699
- if (!options.singleton && typeof options.singleton !== 'boolean') {
700
- options.singleton = isOldIE();
701
- }
702
-
703
- list = list || [];
704
- var lastIdentifiers = modulesToDom(list, options);
705
- return function update(newList) {
706
- newList = newList || [];
707
-
708
- if (Object.prototype.toString.call(newList) !== '[object Array]') {
709
- return;
710
- }
711
-
712
- for (var i = 0; i < lastIdentifiers.length; i++) {
713
- var identifier = lastIdentifiers[i];
714
- var index = getIndexByIdentifier(identifier);
715
- stylesInDom[index].references--;
716
- }
717
-
718
- var newLastIdentifiers = modulesToDom(newList, options);
719
-
720
- for (var _i = 0; _i < lastIdentifiers.length; _i++) {
721
- var _identifier = lastIdentifiers[_i];
722
-
723
- var _index = getIndexByIdentifier(_identifier);
724
-
725
- if (stylesInDom[_index].references === 0) {
726
- stylesInDom[_index].updater();
727
-
728
- stylesInDom.splice(_index, 1);
729
- }
730
- }
731
-
732
- lastIdentifiers = newLastIdentifiers;
733
- };
734
- };
735
-
736
- /***/ }),
737
-
738
- /***/ 96:
739
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
740
-
741
- "use strict";
742
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
743
- /* 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__);
744
- // Imports
745
-
746
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
747
- // Module
748
- ___CSS_LOADER_EXPORT___.push([module.i, "[data-v-68cfb339]:root{--color-primary: #409EFF;--color-success: #67C23A;--color-warning: #E6A23C;--color-danger: #F56C6C;--color-info: #909399}.el-x-welcome[data-v-68cfb339]{--border-radius: 4px;--icon-size: 64px;--icon-size-small: 48px;--icon-size-mobile: 40px;--gap: 16px;--gap-small: 8px;--gap-mobile: 12px;--gap-small-mobile: 6px;--padding: 24px;--padding-mobile: 16px;--title-font-size: 16px;--title-font-size-mobile: 14px;--description-font-size: 14px;--description-font-size-mobile: 13px;--color-filled-bg: #e6f4ff;--color-filled-border: #91caff;--color-title: #303133;--color-description: #606266;display:flex;gap:var(--gap);padding:var(--padding);border-radius:var(--border-radius)}.el-x-welcome.el-x-welcome-filled[data-v-68cfb339]{background-color:var(--color-filled-bg);border:1px solid var(--color-filled-border)}.el-x-welcome.el-x-welcome-borderless[data-v-68cfb339]{border:none}.el-x-welcome.el-x-welcome-rtl[data-v-68cfb339]{direction:rtl}@media(max-width: 768px){.el-x-welcome[data-v-68cfb339]{--gap: var(--gap-mobile);--gap-small: var(--gap-small-mobile);--padding: var(--padding-mobile);--title-font-size: var(--title-font-size-mobile);--description-font-size: var(--description-font-size-mobile);gap:var(--gap-mobile);padding:var(--padding-mobile)}}@media(max-width: 480px){.el-x-welcome[data-v-68cfb339]{--icon-size: var(--icon-size-mobile);--padding: 12px;--gap: 8px;--gap-small: 4px;flex-direction:column;align-items:center;text-align:center;padding:12px;gap:8px}.el-x-welcome.el-x-welcome-rtl[data-v-68cfb339]{direction:ltr}}@media(max-width: 320px){.el-x-welcome[data-v-68cfb339]{--padding: 8px;--gap: 6px;--icon-size: 32px;padding:8px;gap:6px}}.el-x-welcome-icon[data-v-68cfb339]{flex:0 0 auto;width:var(--icon-size);height:var(--icon-size);display:flex;align-items:center;justify-content:center;border-radius:calc(var(--border-radius)/2);overflow:hidden;font-size:24px}.el-x-welcome-icon .icon-image[data-v-68cfb339]{width:100%;height:100%;object-fit:contain;padding:4px}@media(max-width: 768px){.el-x-welcome-icon[data-v-68cfb339]{width:var(--icon-size-small);height:var(--icon-size-small);font-size:20px}}@media(max-width: 480px){.el-x-welcome-icon[data-v-68cfb339]{width:var(--icon-size-mobile);height:var(--icon-size-mobile);font-size:16px;margin-bottom:4px}.el-x-welcome-icon .icon-image[data-v-68cfb339]{padding:2px}}@media(max-width: 320px){.el-x-welcome-icon[data-v-68cfb339]{width:32px;height:32px;font-size:14px}}.content-wrapper[data-v-68cfb339]{flex:1;display:flex;flex-direction:column;gap:var(--gap-small)}@media(max-width: 480px){.content-wrapper[data-v-68cfb339]{align-items:center;text-align:center;width:100%;gap:var(--gap-small-mobile)}}.title-wrapper[data-v-68cfb339]{display:flex;justify-content:space-between;align-items:center;gap:var(--gap-small)}@media(max-width: 768px){.title-wrapper[data-v-68cfb339]{gap:var(--gap-small-mobile)}}@media(max-width: 480px){.title-wrapper[data-v-68cfb339]{flex-direction:column;align-items:center;gap:4px;width:100%}}@media(max-width: 320px){.title-wrapper[data-v-68cfb339]{gap:2px}}.el-x-welcome-title[data-v-68cfb339]{margin:0;font-size:var(--title-font-size);font-weight:600;color:var(--color-title);word-break:break-word}@media(max-width: 768px){.el-x-welcome-title[data-v-68cfb339]{font-size:var(--title-font-size-mobile)}}@media(max-width: 480px){.el-x-welcome-title[data-v-68cfb339]{font-size:14px;text-align:center;line-height:1.4}}@media(max-width: 320px){.el-x-welcome-title[data-v-68cfb339]{font-size:13px}}.el-x-welcome-extra[data-v-68cfb339]{flex-shrink:0;display:flex;align-items:center;gap:var(--gap-small)}.el-x-welcome-extra .el-dropdown[data-v-68cfb339],.el-x-welcome-extra .el-button[data-v-68cfb339],.el-x-welcome-extra .el-link[data-v-68cfb339]{flex-shrink:0}@media(max-width: 768px){.el-x-welcome-extra[data-v-68cfb339]{gap:var(--gap-small-mobile)}.el-x-welcome-extra .el-button[data-v-68cfb339]{font-size:12px;padding:6px 12px}}@media(max-width: 480px){.el-x-welcome-extra[data-v-68cfb339]{justify-content:center;flex-wrap:wrap;gap:4px}.el-x-welcome-extra .el-button[data-v-68cfb339]{font-size:12px;padding:4px 8px;min-height:28px}.el-x-welcome-extra .el-dropdown .el-button[data-v-68cfb339]{font-size:12px;padding:4px 8px}.el-x-welcome-extra .el-link[data-v-68cfb339]{font-size:12px}}@media(max-width: 320px){.el-x-welcome-extra .el-button[data-v-68cfb339]{font-size:11px;padding:3px 6px;min-height:24px}}.el-x-welcome-description[data-v-68cfb339]{margin:0;font-size:var(--description-font-size);color:var(--color-description);line-height:1.5;word-break:break-word}@media(max-width: 768px){.el-x-welcome-description[data-v-68cfb339]{font-size:var(--description-font-size-mobile);line-height:1.4}}@media(max-width: 480px){.el-x-welcome-description[data-v-68cfb339]{font-size:13px;line-height:1.4;text-align:center}}@media(max-width: 320px){.el-x-welcome-description[data-v-68cfb339]{font-size:12px;line-height:1.3}}", ""]);
749
- // Exports
750
- /* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
751
-
752
-
753
- /***/ })
754
-
755
- /******/ });