bkui-vue 0.0.1-beta.393 → 0.0.1-beta.395

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 (175) hide show
  1. package/dist/index.cjs.js +36 -36
  2. package/dist/index.esm.js +93 -49
  3. package/dist/index.umd.js +36 -36
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +1 -353
  7. package/lib/alert/index.js +1 -251
  8. package/lib/animate-number/index.js +1 -226
  9. package/lib/backtop/index.js +1 -260
  10. package/lib/badge/badge.css +0 -2
  11. package/lib/badge/badge.less +2 -2
  12. package/lib/badge/badge.variable.css +0 -2
  13. package/lib/badge/index.js +1 -274
  14. package/lib/breadcrumb/index.js +1 -329
  15. package/lib/button/index.js +1 -371
  16. package/lib/card/index.js +1 -326
  17. package/lib/cascader/index.js +1 -2168
  18. package/lib/checkbox/index.js +1 -571
  19. package/lib/code-diff/index.js +1 -5520
  20. package/lib/collapse/collapse-panel.d.ts +11 -0
  21. package/lib/collapse/index.d.ts +20 -5
  22. package/lib/collapse/index.js +1 -698
  23. package/lib/collapse/props.d.ts +5 -0
  24. package/lib/color-picker/index.js +1 -2816
  25. package/lib/components.d.ts +2 -0
  26. package/lib/components.js +1 -759
  27. package/lib/container/index.js +1 -369
  28. package/lib/date-picker/index.js +1 -5601
  29. package/lib/dialog/index.js +1 -545
  30. package/lib/directives/index.js +2 -1427
  31. package/lib/directives/index.js.LICENSE.txt +14 -0
  32. package/lib/dist.index.js +1 -166
  33. package/lib/divider/index.js +1 -512
  34. package/lib/dropdown/index.js +1 -414
  35. package/lib/exception/exception.d.ts +13 -0
  36. package/lib/exception/index.d.ts +2 -0
  37. package/lib/exception/index.js +1 -405
  38. package/lib/fixed-navbar/index.js +1 -214
  39. package/lib/form/index.js +1 -986
  40. package/lib/icon/angle-double-down-line.js +1 -426
  41. package/lib/icon/angle-double-left-line.js +1 -426
  42. package/lib/icon/angle-double-left.js +1 -426
  43. package/lib/icon/angle-double-right-line.js +1 -426
  44. package/lib/icon/angle-double-right.js +1 -426
  45. package/lib/icon/angle-double-up-line.js +1 -426
  46. package/lib/icon/angle-down-fill.js +1 -426
  47. package/lib/icon/angle-down-line.js +1 -426
  48. package/lib/icon/angle-down.js +1 -426
  49. package/lib/icon/angle-left.js +1 -426
  50. package/lib/icon/angle-right.js +1 -426
  51. package/lib/icon/angle-up-fill.js +1 -426
  52. package/lib/icon/angle-up.js +1 -426
  53. package/lib/icon/archive-fill.js +1 -426
  54. package/lib/icon/arrows-left.js +1 -426
  55. package/lib/icon/arrows-right.js +1 -426
  56. package/lib/icon/audio-fill.js +1 -426
  57. package/lib/icon/bk.js +1 -426
  58. package/lib/icon/circle.js +1 -426
  59. package/lib/icon/close-line.js +1 -426
  60. package/lib/icon/close.js +1 -426
  61. package/lib/icon/code.js +1 -426
  62. package/lib/icon/cog-shape.js +1 -426
  63. package/lib/icon/collapse-left.js +1 -426
  64. package/lib/icon/copy.js +1 -426
  65. package/lib/icon/data-shape.js +1 -426
  66. package/lib/icon/del.js +1 -426
  67. package/lib/icon/doc-fill.js +1 -426
  68. package/lib/icon/done.js +1 -426
  69. package/lib/icon/down-shape.js +1 -426
  70. package/lib/icon/down-small.js +1 -426
  71. package/lib/icon/edit-line.js +1 -426
  72. package/lib/icon/ellipsis.js +1 -426
  73. package/lib/icon/enlarge-line.js +1 -426
  74. package/lib/icon/error.js +1 -426
  75. package/lib/icon/excel-fill.js +1 -426
  76. package/lib/icon/exclamation-circle-shape.js +1 -426
  77. package/lib/icon/eye.js +1 -426
  78. package/lib/icon/filliscreen-line.js +1 -426
  79. package/lib/icon/folder-open.js +1 -426
  80. package/lib/icon/folder-shape-open.js +1 -426
  81. package/lib/icon/folder-shape.js +1 -426
  82. package/lib/icon/folder.js +1 -426
  83. package/lib/icon/funnel.js +1 -426
  84. package/lib/icon/help-document-fill.js +1 -426
  85. package/lib/icon/help-fill.js +1 -426
  86. package/lib/icon/help.js +1 -426
  87. package/lib/icon/image-fill.js +1 -426
  88. package/lib/icon/img-placehoulder.js +1 -448
  89. package/lib/icon/index.js +1 -2275
  90. package/lib/icon/info-line.js +1 -448
  91. package/lib/icon/info.js +1 -448
  92. package/lib/icon/left-shape.js +1 -448
  93. package/lib/icon/left-turn-line.js +1 -448
  94. package/lib/icon/narrow-line.js +1 -448
  95. package/lib/icon/original.js +1 -448
  96. package/lib/icon/pdf-fill.js +1 -448
  97. package/lib/icon/play-shape.js +1 -448
  98. package/lib/icon/plus.js +1 -448
  99. package/lib/icon/ppt-fill.js +1 -448
  100. package/lib/icon/qq.js +1 -448
  101. package/lib/icon/right-shape.js +1 -448
  102. package/lib/icon/right-turn-line.js +1 -448
  103. package/lib/icon/search.js +1 -448
  104. package/lib/icon/share.js +1 -448
  105. package/lib/icon/spinner.js +1 -448
  106. package/lib/icon/success.js +1 -448
  107. package/lib/icon/switcher-loading.js +1 -448
  108. package/lib/icon/text-file.js +1 -448
  109. package/lib/icon/text-fill.js +1 -448
  110. package/lib/icon/transfer.js +1 -448
  111. package/lib/icon/tree-application-shape.js +1 -448
  112. package/lib/icon/unfull-screen.js +1 -448
  113. package/lib/icon/unvisible.js +1 -448
  114. package/lib/icon/up-shape.js +1 -448
  115. package/lib/icon/upload.js +1 -448
  116. package/lib/icon/video-fill.js +1 -448
  117. package/lib/icon/warn.js +1 -448
  118. package/lib/icon/weixin.js +1 -448
  119. package/lib/image/index.js +1 -873
  120. package/lib/index.js +1 -169
  121. package/lib/info-box/index.js +1 -1784
  122. package/lib/input/index.d.ts +4 -4
  123. package/lib/input/index.js +1 -846
  124. package/lib/input/input.d.ts +1 -1
  125. package/lib/link/index.js +1 -226
  126. package/lib/loading/index.js +1 -309
  127. package/lib/menu/index.js +1 -796
  128. package/lib/message/index.js +1 -401
  129. package/lib/modal/index.js +1 -395
  130. package/lib/navigation/index.js +1 -431
  131. package/lib/notify/index.js +1 -430
  132. package/lib/overflow-title/index.js +1 -512
  133. package/lib/pagination/index.js +1 -1026
  134. package/lib/plugin-popover/index.js +1 -2581
  135. package/lib/plugins/index.js +1 -130
  136. package/lib/popover/index.js +1 -2587
  137. package/lib/popover2/index.js +1 -172
  138. package/lib/preset.js +1 -129
  139. package/lib/process/index.js +1 -1417
  140. package/lib/progress/index.js +1 -479
  141. package/lib/radio/index.js +1 -649
  142. package/lib/rate/index.js +1 -358
  143. package/lib/resize-layout/index.js +1 -495
  144. package/lib/search-select/index.js +1 -3388
  145. package/lib/search-select/search-select.css +1 -1
  146. package/lib/search-select/search-select.less +1 -1
  147. package/lib/search-select/search-select.variable.css +1 -1
  148. package/lib/select/index.d.ts +9 -9
  149. package/lib/select/index.js +1 -2819
  150. package/lib/select/select.css +0 -1
  151. package/lib/select/select.d.ts +3 -3
  152. package/lib/select/select.less +0 -1
  153. package/lib/select/select.variable.css +0 -1
  154. package/lib/select/selectTagInput.d.ts +1 -1
  155. package/lib/shared/index.js +1 -2813
  156. package/lib/shared/vue-types.d.ts +1 -1
  157. package/lib/sideslider/index.js +1 -1362
  158. package/lib/slider/index.js +1 -2060
  159. package/lib/steps/index.js +1 -1504
  160. package/lib/swiper/index.js +1 -374
  161. package/lib/switcher/index.js +1 -308
  162. package/lib/tab/index.d.ts +10 -6
  163. package/lib/tab/index.js +1 -919
  164. package/lib/tab/props.d.ts +6 -0
  165. package/lib/table/index.js +1 -6635
  166. package/lib/table-column/index.js +1 -737
  167. package/lib/tag/index.js +1 -278
  168. package/lib/tag-input/index.js +1 -1897
  169. package/lib/time-picker/index.js +1 -142
  170. package/lib/timeline/index.js +1 -315
  171. package/lib/transfer/index.js +1 -658
  172. package/lib/tree/index.js +1 -2917
  173. package/lib/upload/index.js +1 -3735
  174. package/lib/virtual-render/index.js +1 -825
  175. package/package.json +2 -1
@@ -1,1362 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("../shared"), require("vue"), require("../button"), require("../modal"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["../shared", "vue", "../button", "../modal"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../button"), require("../modal")) : factory(root["../shared"], root["vue"], root["../button"], root["../modal"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__4976__, __WEBPACK_EXTERNAL_MODULE__8014__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ({
13
-
14
- /***/ 7162:
15
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
16
-
17
- module.exports = __webpack_require__(5047);
18
-
19
-
20
- /***/ }),
21
-
22
- /***/ 5047:
23
- /***/ ((module) => {
24
-
25
- /**
26
- * Copyright (c) 2014-present, Facebook, Inc.
27
- *
28
- * This source code is licensed under the MIT license found in the
29
- * LICENSE file in the root directory of this source tree.
30
- */
31
-
32
- var runtime = (function (exports) {
33
- "use strict";
34
-
35
- var Op = Object.prototype;
36
- var hasOwn = Op.hasOwnProperty;
37
- var undefined; // More compressible than void 0.
38
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
39
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
40
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
41
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
42
-
43
- function define(obj, key, value) {
44
- Object.defineProperty(obj, key, {
45
- value: value,
46
- enumerable: true,
47
- configurable: true,
48
- writable: true
49
- });
50
- return obj[key];
51
- }
52
- try {
53
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
54
- define({}, "");
55
- } catch (err) {
56
- define = function(obj, key, value) {
57
- return obj[key] = value;
58
- };
59
- }
60
-
61
- function wrap(innerFn, outerFn, self, tryLocsList) {
62
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
63
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
64
- var generator = Object.create(protoGenerator.prototype);
65
- var context = new Context(tryLocsList || []);
66
-
67
- // The ._invoke method unifies the implementations of the .next,
68
- // .throw, and .return methods.
69
- generator._invoke = makeInvokeMethod(innerFn, self, context);
70
-
71
- return generator;
72
- }
73
- exports.wrap = wrap;
74
-
75
- // Try/catch helper to minimize deoptimizations. Returns a completion
76
- // record like context.tryEntries[i].completion. This interface could
77
- // have been (and was previously) designed to take a closure to be
78
- // invoked without arguments, but in all the cases we care about we
79
- // already have an existing method we want to call, so there's no need
80
- // to create a new function object. We can even get away with assuming
81
- // the method takes exactly one argument, since that happens to be true
82
- // in every case, so we don't have to touch the arguments object. The
83
- // only additional allocation required is the completion record, which
84
- // has a stable shape and so hopefully should be cheap to allocate.
85
- function tryCatch(fn, obj, arg) {
86
- try {
87
- return { type: "normal", arg: fn.call(obj, arg) };
88
- } catch (err) {
89
- return { type: "throw", arg: err };
90
- }
91
- }
92
-
93
- var GenStateSuspendedStart = "suspendedStart";
94
- var GenStateSuspendedYield = "suspendedYield";
95
- var GenStateExecuting = "executing";
96
- var GenStateCompleted = "completed";
97
-
98
- // Returning this object from the innerFn has the same effect as
99
- // breaking out of the dispatch switch statement.
100
- var ContinueSentinel = {};
101
-
102
- // Dummy constructor functions that we use as the .constructor and
103
- // .constructor.prototype properties for functions that return Generator
104
- // objects. For full spec compliance, you may wish to configure your
105
- // minifier not to mangle the names of these two functions.
106
- function Generator() {}
107
- function GeneratorFunction() {}
108
- function GeneratorFunctionPrototype() {}
109
-
110
- // This is a polyfill for %IteratorPrototype% for environments that
111
- // don't natively support it.
112
- var IteratorPrototype = {};
113
- define(IteratorPrototype, iteratorSymbol, function () {
114
- return this;
115
- });
116
-
117
- var getProto = Object.getPrototypeOf;
118
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
119
- if (NativeIteratorPrototype &&
120
- NativeIteratorPrototype !== Op &&
121
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
122
- // This environment has a native %IteratorPrototype%; use it instead
123
- // of the polyfill.
124
- IteratorPrototype = NativeIteratorPrototype;
125
- }
126
-
127
- var Gp = GeneratorFunctionPrototype.prototype =
128
- Generator.prototype = Object.create(IteratorPrototype);
129
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
130
- define(Gp, "constructor", GeneratorFunctionPrototype);
131
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
132
- GeneratorFunction.displayName = define(
133
- GeneratorFunctionPrototype,
134
- toStringTagSymbol,
135
- "GeneratorFunction"
136
- );
137
-
138
- // Helper for defining the .next, .throw, and .return methods of the
139
- // Iterator interface in terms of a single ._invoke method.
140
- function defineIteratorMethods(prototype) {
141
- ["next", "throw", "return"].forEach(function(method) {
142
- define(prototype, method, function(arg) {
143
- return this._invoke(method, arg);
144
- });
145
- });
146
- }
147
-
148
- exports.isGeneratorFunction = function(genFun) {
149
- var ctor = typeof genFun === "function" && genFun.constructor;
150
- return ctor
151
- ? ctor === GeneratorFunction ||
152
- // For the native GeneratorFunction constructor, the best we can
153
- // do is to check its .name property.
154
- (ctor.displayName || ctor.name) === "GeneratorFunction"
155
- : false;
156
- };
157
-
158
- exports.mark = function(genFun) {
159
- if (Object.setPrototypeOf) {
160
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
161
- } else {
162
- genFun.__proto__ = GeneratorFunctionPrototype;
163
- define(genFun, toStringTagSymbol, "GeneratorFunction");
164
- }
165
- genFun.prototype = Object.create(Gp);
166
- return genFun;
167
- };
168
-
169
- // Within the body of any async function, `await x` is transformed to
170
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
171
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
172
- // meant to be awaited.
173
- exports.awrap = function(arg) {
174
- return { __await: arg };
175
- };
176
-
177
- function AsyncIterator(generator, PromiseImpl) {
178
- function invoke(method, arg, resolve, reject) {
179
- var record = tryCatch(generator[method], generator, arg);
180
- if (record.type === "throw") {
181
- reject(record.arg);
182
- } else {
183
- var result = record.arg;
184
- var value = result.value;
185
- if (value &&
186
- typeof value === "object" &&
187
- hasOwn.call(value, "__await")) {
188
- return PromiseImpl.resolve(value.__await).then(function(value) {
189
- invoke("next", value, resolve, reject);
190
- }, function(err) {
191
- invoke("throw", err, resolve, reject);
192
- });
193
- }
194
-
195
- return PromiseImpl.resolve(value).then(function(unwrapped) {
196
- // When a yielded Promise is resolved, its final value becomes
197
- // the .value of the Promise<{value,done}> result for the
198
- // current iteration.
199
- result.value = unwrapped;
200
- resolve(result);
201
- }, function(error) {
202
- // If a rejected Promise was yielded, throw the rejection back
203
- // into the async generator function so it can be handled there.
204
- return invoke("throw", error, resolve, reject);
205
- });
206
- }
207
- }
208
-
209
- var previousPromise;
210
-
211
- function enqueue(method, arg) {
212
- function callInvokeWithMethodAndArg() {
213
- return new PromiseImpl(function(resolve, reject) {
214
- invoke(method, arg, resolve, reject);
215
- });
216
- }
217
-
218
- return previousPromise =
219
- // If enqueue has been called before, then we want to wait until
220
- // all previous Promises have been resolved before calling invoke,
221
- // so that results are always delivered in the correct order. If
222
- // enqueue has not been called before, then it is important to
223
- // call invoke immediately, without waiting on a callback to fire,
224
- // so that the async generator function has the opportunity to do
225
- // any necessary setup in a predictable way. This predictability
226
- // is why the Promise constructor synchronously invokes its
227
- // executor callback, and why async functions synchronously
228
- // execute code before the first await. Since we implement simple
229
- // async functions in terms of async generators, it is especially
230
- // important to get this right, even though it requires care.
231
- previousPromise ? previousPromise.then(
232
- callInvokeWithMethodAndArg,
233
- // Avoid propagating failures to Promises returned by later
234
- // invocations of the iterator.
235
- callInvokeWithMethodAndArg
236
- ) : callInvokeWithMethodAndArg();
237
- }
238
-
239
- // Define the unified helper method that is used to implement .next,
240
- // .throw, and .return (see defineIteratorMethods).
241
- this._invoke = enqueue;
242
- }
243
-
244
- defineIteratorMethods(AsyncIterator.prototype);
245
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
246
- return this;
247
- });
248
- exports.AsyncIterator = AsyncIterator;
249
-
250
- // Note that simple async functions are implemented on top of
251
- // AsyncIterator objects; they just return a Promise for the value of
252
- // the final result produced by the iterator.
253
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
254
- if (PromiseImpl === void 0) PromiseImpl = Promise;
255
-
256
- var iter = new AsyncIterator(
257
- wrap(innerFn, outerFn, self, tryLocsList),
258
- PromiseImpl
259
- );
260
-
261
- return exports.isGeneratorFunction(outerFn)
262
- ? iter // If outerFn is a generator, return the full iterator.
263
- : iter.next().then(function(result) {
264
- return result.done ? result.value : iter.next();
265
- });
266
- };
267
-
268
- function makeInvokeMethod(innerFn, self, context) {
269
- var state = GenStateSuspendedStart;
270
-
271
- return function invoke(method, arg) {
272
- if (state === GenStateExecuting) {
273
- throw new Error("Generator is already running");
274
- }
275
-
276
- if (state === GenStateCompleted) {
277
- if (method === "throw") {
278
- throw arg;
279
- }
280
-
281
- // Be forgiving, per 25.3.3.3.3 of the spec:
282
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
283
- return doneResult();
284
- }
285
-
286
- context.method = method;
287
- context.arg = arg;
288
-
289
- while (true) {
290
- var delegate = context.delegate;
291
- if (delegate) {
292
- var delegateResult = maybeInvokeDelegate(delegate, context);
293
- if (delegateResult) {
294
- if (delegateResult === ContinueSentinel) continue;
295
- return delegateResult;
296
- }
297
- }
298
-
299
- if (context.method === "next") {
300
- // Setting context._sent for legacy support of Babel's
301
- // function.sent implementation.
302
- context.sent = context._sent = context.arg;
303
-
304
- } else if (context.method === "throw") {
305
- if (state === GenStateSuspendedStart) {
306
- state = GenStateCompleted;
307
- throw context.arg;
308
- }
309
-
310
- context.dispatchException(context.arg);
311
-
312
- } else if (context.method === "return") {
313
- context.abrupt("return", context.arg);
314
- }
315
-
316
- state = GenStateExecuting;
317
-
318
- var record = tryCatch(innerFn, self, context);
319
- if (record.type === "normal") {
320
- // If an exception is thrown from innerFn, we leave state ===
321
- // GenStateExecuting and loop back for another invocation.
322
- state = context.done
323
- ? GenStateCompleted
324
- : GenStateSuspendedYield;
325
-
326
- if (record.arg === ContinueSentinel) {
327
- continue;
328
- }
329
-
330
- return {
331
- value: record.arg,
332
- done: context.done
333
- };
334
-
335
- } else if (record.type === "throw") {
336
- state = GenStateCompleted;
337
- // Dispatch the exception by looping back around to the
338
- // context.dispatchException(context.arg) call above.
339
- context.method = "throw";
340
- context.arg = record.arg;
341
- }
342
- }
343
- };
344
- }
345
-
346
- // Call delegate.iterator[context.method](context.arg) and handle the
347
- // result, either by returning a { value, done } result from the
348
- // delegate iterator, or by modifying context.method and context.arg,
349
- // setting context.delegate to null, and returning the ContinueSentinel.
350
- function maybeInvokeDelegate(delegate, context) {
351
- var method = delegate.iterator[context.method];
352
- if (method === undefined) {
353
- // A .throw or .return when the delegate iterator has no .throw
354
- // method always terminates the yield* loop.
355
- context.delegate = null;
356
-
357
- if (context.method === "throw") {
358
- // Note: ["return"] must be used for ES3 parsing compatibility.
359
- if (delegate.iterator["return"]) {
360
- // If the delegate iterator has a return method, give it a
361
- // chance to clean up.
362
- context.method = "return";
363
- context.arg = undefined;
364
- maybeInvokeDelegate(delegate, context);
365
-
366
- if (context.method === "throw") {
367
- // If maybeInvokeDelegate(context) changed context.method from
368
- // "return" to "throw", let that override the TypeError below.
369
- return ContinueSentinel;
370
- }
371
- }
372
-
373
- context.method = "throw";
374
- context.arg = new TypeError(
375
- "The iterator does not provide a 'throw' method");
376
- }
377
-
378
- return ContinueSentinel;
379
- }
380
-
381
- var record = tryCatch(method, delegate.iterator, context.arg);
382
-
383
- if (record.type === "throw") {
384
- context.method = "throw";
385
- context.arg = record.arg;
386
- context.delegate = null;
387
- return ContinueSentinel;
388
- }
389
-
390
- var info = record.arg;
391
-
392
- if (! info) {
393
- context.method = "throw";
394
- context.arg = new TypeError("iterator result is not an object");
395
- context.delegate = null;
396
- return ContinueSentinel;
397
- }
398
-
399
- if (info.done) {
400
- // Assign the result of the finished delegate to the temporary
401
- // variable specified by delegate.resultName (see delegateYield).
402
- context[delegate.resultName] = info.value;
403
-
404
- // Resume execution at the desired location (see delegateYield).
405
- context.next = delegate.nextLoc;
406
-
407
- // If context.method was "throw" but the delegate handled the
408
- // exception, let the outer generator proceed normally. If
409
- // context.method was "next", forget context.arg since it has been
410
- // "consumed" by the delegate iterator. If context.method was
411
- // "return", allow the original .return call to continue in the
412
- // outer generator.
413
- if (context.method !== "return") {
414
- context.method = "next";
415
- context.arg = undefined;
416
- }
417
-
418
- } else {
419
- // Re-yield the result returned by the delegate method.
420
- return info;
421
- }
422
-
423
- // The delegate iterator is finished, so forget it and continue with
424
- // the outer generator.
425
- context.delegate = null;
426
- return ContinueSentinel;
427
- }
428
-
429
- // Define Generator.prototype.{next,throw,return} in terms of the
430
- // unified ._invoke helper method.
431
- defineIteratorMethods(Gp);
432
-
433
- define(Gp, toStringTagSymbol, "Generator");
434
-
435
- // A Generator should always return itself as the iterator object when the
436
- // @@iterator function is called on it. Some browsers' implementations of the
437
- // iterator prototype chain incorrectly implement this, causing the Generator
438
- // object to not be returned from this call. This ensures that doesn't happen.
439
- // See https://github.com/facebook/regenerator/issues/274 for more details.
440
- define(Gp, iteratorSymbol, function() {
441
- return this;
442
- });
443
-
444
- define(Gp, "toString", function() {
445
- return "[object Generator]";
446
- });
447
-
448
- function pushTryEntry(locs) {
449
- var entry = { tryLoc: locs[0] };
450
-
451
- if (1 in locs) {
452
- entry.catchLoc = locs[1];
453
- }
454
-
455
- if (2 in locs) {
456
- entry.finallyLoc = locs[2];
457
- entry.afterLoc = locs[3];
458
- }
459
-
460
- this.tryEntries.push(entry);
461
- }
462
-
463
- function resetTryEntry(entry) {
464
- var record = entry.completion || {};
465
- record.type = "normal";
466
- delete record.arg;
467
- entry.completion = record;
468
- }
469
-
470
- function Context(tryLocsList) {
471
- // The root entry object (effectively a try statement without a catch
472
- // or a finally block) gives us a place to store values thrown from
473
- // locations where there is no enclosing try statement.
474
- this.tryEntries = [{ tryLoc: "root" }];
475
- tryLocsList.forEach(pushTryEntry, this);
476
- this.reset(true);
477
- }
478
-
479
- exports.keys = function(object) {
480
- var keys = [];
481
- for (var key in object) {
482
- keys.push(key);
483
- }
484
- keys.reverse();
485
-
486
- // Rather than returning an object with a next method, we keep
487
- // things simple and return the next function itself.
488
- return function next() {
489
- while (keys.length) {
490
- var key = keys.pop();
491
- if (key in object) {
492
- next.value = key;
493
- next.done = false;
494
- return next;
495
- }
496
- }
497
-
498
- // To avoid creating an additional object, we just hang the .value
499
- // and .done properties off the next function object itself. This
500
- // also ensures that the minifier will not anonymize the function.
501
- next.done = true;
502
- return next;
503
- };
504
- };
505
-
506
- function values(iterable) {
507
- if (iterable) {
508
- var iteratorMethod = iterable[iteratorSymbol];
509
- if (iteratorMethod) {
510
- return iteratorMethod.call(iterable);
511
- }
512
-
513
- if (typeof iterable.next === "function") {
514
- return iterable;
515
- }
516
-
517
- if (!isNaN(iterable.length)) {
518
- var i = -1, next = function next() {
519
- while (++i < iterable.length) {
520
- if (hasOwn.call(iterable, i)) {
521
- next.value = iterable[i];
522
- next.done = false;
523
- return next;
524
- }
525
- }
526
-
527
- next.value = undefined;
528
- next.done = true;
529
-
530
- return next;
531
- };
532
-
533
- return next.next = next;
534
- }
535
- }
536
-
537
- // Return an iterator with no values.
538
- return { next: doneResult };
539
- }
540
- exports.values = values;
541
-
542
- function doneResult() {
543
- return { value: undefined, done: true };
544
- }
545
-
546
- Context.prototype = {
547
- constructor: Context,
548
-
549
- reset: function(skipTempReset) {
550
- this.prev = 0;
551
- this.next = 0;
552
- // Resetting context._sent for legacy support of Babel's
553
- // function.sent implementation.
554
- this.sent = this._sent = undefined;
555
- this.done = false;
556
- this.delegate = null;
557
-
558
- this.method = "next";
559
- this.arg = undefined;
560
-
561
- this.tryEntries.forEach(resetTryEntry);
562
-
563
- if (!skipTempReset) {
564
- for (var name in this) {
565
- // Not sure about the optimal order of these conditions:
566
- if (name.charAt(0) === "t" &&
567
- hasOwn.call(this, name) &&
568
- !isNaN(+name.slice(1))) {
569
- this[name] = undefined;
570
- }
571
- }
572
- }
573
- },
574
-
575
- stop: function() {
576
- this.done = true;
577
-
578
- var rootEntry = this.tryEntries[0];
579
- var rootRecord = rootEntry.completion;
580
- if (rootRecord.type === "throw") {
581
- throw rootRecord.arg;
582
- }
583
-
584
- return this.rval;
585
- },
586
-
587
- dispatchException: function(exception) {
588
- if (this.done) {
589
- throw exception;
590
- }
591
-
592
- var context = this;
593
- function handle(loc, caught) {
594
- record.type = "throw";
595
- record.arg = exception;
596
- context.next = loc;
597
-
598
- if (caught) {
599
- // If the dispatched exception was caught by a catch block,
600
- // then let that catch block handle the exception normally.
601
- context.method = "next";
602
- context.arg = undefined;
603
- }
604
-
605
- return !! caught;
606
- }
607
-
608
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
609
- var entry = this.tryEntries[i];
610
- var record = entry.completion;
611
-
612
- if (entry.tryLoc === "root") {
613
- // Exception thrown outside of any try block that could handle
614
- // it, so set the completion value of the entire function to
615
- // throw the exception.
616
- return handle("end");
617
- }
618
-
619
- if (entry.tryLoc <= this.prev) {
620
- var hasCatch = hasOwn.call(entry, "catchLoc");
621
- var hasFinally = hasOwn.call(entry, "finallyLoc");
622
-
623
- if (hasCatch && hasFinally) {
624
- if (this.prev < entry.catchLoc) {
625
- return handle(entry.catchLoc, true);
626
- } else if (this.prev < entry.finallyLoc) {
627
- return handle(entry.finallyLoc);
628
- }
629
-
630
- } else if (hasCatch) {
631
- if (this.prev < entry.catchLoc) {
632
- return handle(entry.catchLoc, true);
633
- }
634
-
635
- } else if (hasFinally) {
636
- if (this.prev < entry.finallyLoc) {
637
- return handle(entry.finallyLoc);
638
- }
639
-
640
- } else {
641
- throw new Error("try statement without catch or finally");
642
- }
643
- }
644
- }
645
- },
646
-
647
- abrupt: function(type, arg) {
648
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
649
- var entry = this.tryEntries[i];
650
- if (entry.tryLoc <= this.prev &&
651
- hasOwn.call(entry, "finallyLoc") &&
652
- this.prev < entry.finallyLoc) {
653
- var finallyEntry = entry;
654
- break;
655
- }
656
- }
657
-
658
- if (finallyEntry &&
659
- (type === "break" ||
660
- type === "continue") &&
661
- finallyEntry.tryLoc <= arg &&
662
- arg <= finallyEntry.finallyLoc) {
663
- // Ignore the finally entry if control is not jumping to a
664
- // location outside the try/catch block.
665
- finallyEntry = null;
666
- }
667
-
668
- var record = finallyEntry ? finallyEntry.completion : {};
669
- record.type = type;
670
- record.arg = arg;
671
-
672
- if (finallyEntry) {
673
- this.method = "next";
674
- this.next = finallyEntry.finallyLoc;
675
- return ContinueSentinel;
676
- }
677
-
678
- return this.complete(record);
679
- },
680
-
681
- complete: function(record, afterLoc) {
682
- if (record.type === "throw") {
683
- throw record.arg;
684
- }
685
-
686
- if (record.type === "break" ||
687
- record.type === "continue") {
688
- this.next = record.arg;
689
- } else if (record.type === "return") {
690
- this.rval = this.arg = record.arg;
691
- this.method = "return";
692
- this.next = "end";
693
- } else if (record.type === "normal" && afterLoc) {
694
- this.next = afterLoc;
695
- }
696
-
697
- return ContinueSentinel;
698
- },
699
-
700
- finish: function(finallyLoc) {
701
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
702
- var entry = this.tryEntries[i];
703
- if (entry.finallyLoc === finallyLoc) {
704
- this.complete(entry.completion, entry.afterLoc);
705
- resetTryEntry(entry);
706
- return ContinueSentinel;
707
- }
708
- }
709
- },
710
-
711
- "catch": function(tryLoc) {
712
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
713
- var entry = this.tryEntries[i];
714
- if (entry.tryLoc === tryLoc) {
715
- var record = entry.completion;
716
- if (record.type === "throw") {
717
- var thrown = record.arg;
718
- resetTryEntry(entry);
719
- }
720
- return thrown;
721
- }
722
- }
723
-
724
- // The context.catch method must only be called with a location
725
- // argument that corresponds to a known catch block.
726
- throw new Error("illegal catch attempt");
727
- },
728
-
729
- delegateYield: function(iterable, resultName, nextLoc) {
730
- this.delegate = {
731
- iterator: values(iterable),
732
- resultName: resultName,
733
- nextLoc: nextLoc
734
- };
735
-
736
- if (this.method === "next") {
737
- // Deliberately forget the last sent value so that we don't
738
- // accidentally pass it on to the delegate.
739
- this.arg = undefined;
740
- }
741
-
742
- return ContinueSentinel;
743
- }
744
- };
745
-
746
- // Regardless of whether this script is executing as a CommonJS module
747
- // or not, return the runtime object so that we can declare the variable
748
- // regeneratorRuntime in the outer scope, which allows this module to be
749
- // injected easily by `bin/regenerator --include-runtime script.js`.
750
- return exports;
751
-
752
- }(
753
- // If this script is executing as a CommonJS module, use module.exports
754
- // as the regeneratorRuntime namespace. Otherwise create a new empty
755
- // object. Either way, the resulting object will be used to initialize
756
- // the regeneratorRuntime variable at the top of this file.
757
- true ? module.exports : 0
758
- ));
759
-
760
- try {
761
- regeneratorRuntime = runtime;
762
- } catch (accidentalStrictMode) {
763
- // This module should not be running in strict mode, so the above
764
- // assignment should always work unless something is misconfigured. Just
765
- // in case runtime.js accidentally runs in strict mode, in modern engines
766
- // we can explicitly access globalThis. In older engines we can escape
767
- // strict mode using a global Function call. This could conceivably fail
768
- // if a Content Security Policy forbids using Function, but in that case
769
- // the proper solution is to fix the accidental strict mode problem. If
770
- // you've misconfigured your bundler to force strict mode and applied a
771
- // CSP to forbid Function, and you're not willing to fix either of those
772
- // problems, please detail your unique predicament in a GitHub issue.
773
- if (typeof globalThis === "object") {
774
- globalThis.regeneratorRuntime = runtime;
775
- } else {
776
- Function("r", "regeneratorRuntime = r")(runtime);
777
- }
778
- }
779
-
780
-
781
- /***/ }),
782
-
783
- /***/ 4976:
784
- /***/ ((module) => {
785
-
786
- "use strict";
787
- module.exports = __WEBPACK_EXTERNAL_MODULE__4976__;
788
-
789
- /***/ }),
790
-
791
- /***/ 8014:
792
- /***/ ((module) => {
793
-
794
- "use strict";
795
- module.exports = __WEBPACK_EXTERNAL_MODULE__8014__;
796
-
797
- /***/ }),
798
-
799
- /***/ 4212:
800
- /***/ ((module) => {
801
-
802
- "use strict";
803
- module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
804
-
805
- /***/ }),
806
-
807
- /***/ 748:
808
- /***/ ((module) => {
809
-
810
- "use strict";
811
- module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
812
-
813
- /***/ })
814
-
815
- /******/ });
816
- /************************************************************************/
817
- /******/ // The module cache
818
- /******/ var __webpack_module_cache__ = {};
819
- /******/
820
- /******/ // The require function
821
- /******/ function __webpack_require__(moduleId) {
822
- /******/ // Check if module is in cache
823
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
824
- /******/ if (cachedModule !== undefined) {
825
- /******/ return cachedModule.exports;
826
- /******/ }
827
- /******/ // Create a new module (and put it into the cache)
828
- /******/ var module = __webpack_module_cache__[moduleId] = {
829
- /******/ // no module.id needed
830
- /******/ // no module.loaded needed
831
- /******/ exports: {}
832
- /******/ };
833
- /******/
834
- /******/ // Execute the module function
835
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
836
- /******/
837
- /******/ // Return the exports of the module
838
- /******/ return module.exports;
839
- /******/ }
840
- /******/
841
- /************************************************************************/
842
- /******/ /* webpack/runtime/compat get default export */
843
- /******/ (() => {
844
- /******/ // getDefaultExport function for compatibility with non-harmony modules
845
- /******/ __webpack_require__.n = (module) => {
846
- /******/ var getter = module && module.__esModule ?
847
- /******/ () => (module['default']) :
848
- /******/ () => (module);
849
- /******/ __webpack_require__.d(getter, { a: getter });
850
- /******/ return getter;
851
- /******/ };
852
- /******/ })();
853
- /******/
854
- /******/ /* webpack/runtime/define property getters */
855
- /******/ (() => {
856
- /******/ // define getter functions for harmony exports
857
- /******/ __webpack_require__.d = (exports, definition) => {
858
- /******/ for(var key in definition) {
859
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
860
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
861
- /******/ }
862
- /******/ }
863
- /******/ };
864
- /******/ })();
865
- /******/
866
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
867
- /******/ (() => {
868
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
869
- /******/ })();
870
- /******/
871
- /******/ /* webpack/runtime/make namespace object */
872
- /******/ (() => {
873
- /******/ // define __esModule on exports
874
- /******/ __webpack_require__.r = (exports) => {
875
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
876
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
877
- /******/ }
878
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
879
- /******/ };
880
- /******/ })();
881
- /******/
882
- /************************************************************************/
883
- var __webpack_exports__ = {};
884
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
885
- (() => {
886
- "use strict";
887
- // ESM COMPAT FLAG
888
- __webpack_require__.r(__webpack_exports__);
889
-
890
- // EXPORTS
891
- __webpack_require__.d(__webpack_exports__, {
892
- "default": () => (/* binding */ src)
893
- });
894
-
895
- // EXTERNAL MODULE: external "../shared"
896
- var external_shared_ = __webpack_require__(4212);
897
- // EXTERNAL MODULE: external "vue"
898
- var external_vue_ = __webpack_require__(748);
899
- // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
900
- var regenerator = __webpack_require__(7162);
901
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
902
- ;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.js
903
- /******************************************************************************
904
- Copyright (c) Microsoft Corporation.
905
-
906
- Permission to use, copy, modify, and/or distribute this software for any
907
- purpose with or without fee is hereby granted.
908
-
909
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
910
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
911
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
912
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
913
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
914
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
915
- PERFORMANCE OF THIS SOFTWARE.
916
- ***************************************************************************** */
917
- /* global Reflect, Promise */
918
-
919
- var extendStatics = function(d, b) {
920
- extendStatics = Object.setPrototypeOf ||
921
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
922
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
923
- return extendStatics(d, b);
924
- };
925
-
926
- function __extends(d, b) {
927
- if (typeof b !== "function" && b !== null)
928
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
929
- extendStatics(d, b);
930
- function __() { this.constructor = d; }
931
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
932
- }
933
-
934
- var __assign = function() {
935
- __assign = Object.assign || function __assign(t) {
936
- for (var s, i = 1, n = arguments.length; i < n; i++) {
937
- s = arguments[i];
938
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
939
- }
940
- return t;
941
- }
942
- return __assign.apply(this, arguments);
943
- }
944
-
945
- function __rest(s, e) {
946
- var t = {};
947
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
948
- t[p] = s[p];
949
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
950
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
951
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
952
- t[p[i]] = s[p[i]];
953
- }
954
- return t;
955
- }
956
-
957
- function __decorate(decorators, target, key, desc) {
958
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
959
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
960
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
961
- return c > 3 && r && Object.defineProperty(target, key, r), r;
962
- }
963
-
964
- function __param(paramIndex, decorator) {
965
- return function (target, key) { decorator(target, key, paramIndex); }
966
- }
967
-
968
- function __metadata(metadataKey, metadataValue) {
969
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
970
- }
971
-
972
- function __awaiter(thisArg, _arguments, P, generator) {
973
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
974
- return new (P || (P = Promise))(function (resolve, reject) {
975
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
976
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
977
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
978
- step((generator = generator.apply(thisArg, _arguments || [])).next());
979
- });
980
- }
981
-
982
- function __generator(thisArg, body) {
983
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
984
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
985
- function verb(n) { return function (v) { return step([n, v]); }; }
986
- function step(op) {
987
- if (f) throw new TypeError("Generator is already executing.");
988
- while (_) try {
989
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
990
- if (y = 0, t) op = [op[0] & 2, t.value];
991
- switch (op[0]) {
992
- case 0: case 1: t = op; break;
993
- case 4: _.label++; return { value: op[1], done: false };
994
- case 5: _.label++; y = op[1]; op = [0]; continue;
995
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
996
- default:
997
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
998
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
999
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1000
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1001
- if (t[2]) _.ops.pop();
1002
- _.trys.pop(); continue;
1003
- }
1004
- op = body.call(thisArg, _);
1005
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1006
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1007
- }
1008
- }
1009
-
1010
- var __createBinding = Object.create ? (function(o, m, k, k2) {
1011
- if (k2 === undefined) k2 = k;
1012
- var desc = Object.getOwnPropertyDescriptor(m, k);
1013
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1014
- desc = { enumerable: true, get: function() { return m[k]; } };
1015
- }
1016
- Object.defineProperty(o, k2, desc);
1017
- }) : (function(o, m, k, k2) {
1018
- if (k2 === undefined) k2 = k;
1019
- o[k2] = m[k];
1020
- });
1021
-
1022
- function __exportStar(m, o) {
1023
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
1024
- }
1025
-
1026
- function __values(o) {
1027
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
1028
- if (m) return m.call(o);
1029
- if (o && typeof o.length === "number") return {
1030
- next: function () {
1031
- if (o && i >= o.length) o = void 0;
1032
- return { value: o && o[i++], done: !o };
1033
- }
1034
- };
1035
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
1036
- }
1037
-
1038
- function __read(o, n) {
1039
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1040
- if (!m) return o;
1041
- var i = m.call(o), r, ar = [], e;
1042
- try {
1043
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1044
- }
1045
- catch (error) { e = { error: error }; }
1046
- finally {
1047
- try {
1048
- if (r && !r.done && (m = i["return"])) m.call(i);
1049
- }
1050
- finally { if (e) throw e.error; }
1051
- }
1052
- return ar;
1053
- }
1054
-
1055
- /** @deprecated */
1056
- function __spread() {
1057
- for (var ar = [], i = 0; i < arguments.length; i++)
1058
- ar = ar.concat(__read(arguments[i]));
1059
- return ar;
1060
- }
1061
-
1062
- /** @deprecated */
1063
- function __spreadArrays() {
1064
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
1065
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
1066
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
1067
- r[k] = a[j];
1068
- return r;
1069
- }
1070
-
1071
- function __spreadArray(to, from, pack) {
1072
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1073
- if (ar || !(i in from)) {
1074
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1075
- ar[i] = from[i];
1076
- }
1077
- }
1078
- return to.concat(ar || Array.prototype.slice.call(from));
1079
- }
1080
-
1081
- function __await(v) {
1082
- return this instanceof __await ? (this.v = v, this) : new __await(v);
1083
- }
1084
-
1085
- function __asyncGenerator(thisArg, _arguments, generator) {
1086
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1087
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
1088
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
1089
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
1090
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
1091
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
1092
- function fulfill(value) { resume("next", value); }
1093
- function reject(value) { resume("throw", value); }
1094
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
1095
- }
1096
-
1097
- function __asyncDelegator(o) {
1098
- var i, p;
1099
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
1100
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
1101
- }
1102
-
1103
- function __asyncValues(o) {
1104
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1105
- var m = o[Symbol.asyncIterator], i;
1106
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
1107
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
1108
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
1109
- }
1110
-
1111
- function __makeTemplateObject(cooked, raw) {
1112
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
1113
- return cooked;
1114
- };
1115
-
1116
- var __setModuleDefault = Object.create ? (function(o, v) {
1117
- Object.defineProperty(o, "default", { enumerable: true, value: v });
1118
- }) : function(o, v) {
1119
- o["default"] = v;
1120
- };
1121
-
1122
- function __importStar(mod) {
1123
- if (mod && mod.__esModule) return mod;
1124
- var result = {};
1125
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1126
- __setModuleDefault(result, mod);
1127
- return result;
1128
- }
1129
-
1130
- function __importDefault(mod) {
1131
- return (mod && mod.__esModule) ? mod : { default: mod };
1132
- }
1133
-
1134
- function __classPrivateFieldGet(receiver, state, kind, f) {
1135
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1136
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1137
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1138
- }
1139
-
1140
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
1141
- if (kind === "m") throw new TypeError("Private method is not writable");
1142
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
1143
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1144
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
1145
- }
1146
-
1147
- function __classPrivateFieldIn(state, receiver) {
1148
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
1149
- return typeof state === "function" ? receiver === state : state.has(receiver);
1150
- }
1151
-
1152
- // EXTERNAL MODULE: external "../button"
1153
- var external_button_ = __webpack_require__(4976);
1154
- var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
1155
- // EXTERNAL MODULE: external "../modal"
1156
- var external_modal_ = __webpack_require__(8014);
1157
- var external_modal_default = /*#__PURE__*/__webpack_require__.n(external_modal_);
1158
- ;// CONCATENATED MODULE: ../../packages/sideslider/src/sideslider.tsx
1159
-
1160
-
1161
-
1162
- /*
1163
- * Tencent is pleased to support the open source community by making
1164
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1165
- *
1166
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1167
- *
1168
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1169
- *
1170
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1171
- *
1172
- * ---------------------------------------------------
1173
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1174
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1175
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1176
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1177
- *
1178
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1179
- * the Software.
1180
- *
1181
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1182
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1183
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1184
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1185
- * IN THE SOFTWARE.
1186
- */
1187
-
1188
-
1189
-
1190
-
1191
-
1192
- function _isSlot(s) {
1193
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_.isVNode)(s);
1194
- }
1195
-
1196
- var propsMixin = (external_modal_default()).propsMixin;
1197
- var sliderPops = Object.assign({}, propsMixin);
1198
- sliderPops.width["default"] = '400';
1199
- sliderPops.height["default"] = '100%';
1200
- /* harmony default export */ const sideslider = ((0,external_vue_.defineComponent)({
1201
- name: 'Sideslider',
1202
- components: {
1203
- BkModal: (external_modal_default()),
1204
- BkButton: (external_button_default())
1205
- },
1206
- props: Object.assign(Object.assign({}, sliderPops), {
1207
- direction: {
1208
- type: String,
1209
- "default": 'right',
1210
- validator: function validator(value) {
1211
- var textAlign = ['left', 'right'];
1212
-
1213
- if (textAlign.indexOf(value) < 0) {
1214
- console.error("direction property is not valid: '".concat(value, "',\u3010").concat(textAlign.join(' | '), "\u3011"));
1215
- return false;
1216
- }
1217
-
1218
- return true;
1219
- }
1220
- }
1221
- }),
1222
- emits: ['closed', 'update:isShow', 'shown', 'hidden', 'animation-end'],
1223
- setup: function setup(props, _ref) {
1224
- var _this = this;
1225
-
1226
- var slots = _ref.slots,
1227
- emit = _ref.emit;
1228
-
1229
- var handleClose = function handleClose() {
1230
- return __awaiter(_this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
1231
- var shouldClose;
1232
- return regenerator_default().wrap(function _callee$(_context) {
1233
- while (1) {
1234
- switch (_context.prev = _context.next) {
1235
- case 0:
1236
- shouldClose = true;
1237
-
1238
- if (!(typeof props.beforeClose === 'function')) {
1239
- _context.next = 5;
1240
- break;
1241
- }
1242
-
1243
- _context.next = 4;
1244
- return props.beforeClose();
1245
-
1246
- case 4:
1247
- shouldClose = _context.sent;
1248
-
1249
- case 5:
1250
- if (shouldClose) {
1251
- emit('update:isShow', false);
1252
- emit('closed');
1253
- setTimeout(function () {
1254
- emit('animation-end');
1255
- }, 250);
1256
- }
1257
-
1258
- case 6:
1259
- case "end":
1260
- return _context.stop();
1261
- }
1262
- }
1263
- }, _callee);
1264
- }));
1265
- };
1266
-
1267
- var handleShown = function handleShown() {
1268
- setTimeout(function () {
1269
- emit('shown');
1270
- }, 200);
1271
- };
1272
-
1273
- var handleHidden = function handleHidden() {
1274
- setTimeout(function () {
1275
- emit('hidden');
1276
- }, 200);
1277
- };
1278
-
1279
- return function () {
1280
- var dialogSlot = {
1281
- header: function header() {
1282
- var _a, _b;
1283
-
1284
- return (0,external_vue_.createVNode)(external_vue_.Fragment, null, [(0,external_vue_.createVNode)("div", {
1285
- "class": "bk-sideslider-header"
1286
- }, [(0,external_vue_.createVNode)("div", {
1287
- "class": "bk-sideslider-close ".concat(props.direction),
1288
- "onClick": function onClick() {
1289
- handleClose();
1290
- }
1291
- }, null), (0,external_vue_.createVNode)("div", {
1292
- "class": "bk-sideslider-title ".concat(props.direction)
1293
- }, [(_b = (_a = slots.header) === null || _a === void 0 ? void 0 : _a.call(slots)) !== null && _b !== void 0 ? _b : props.title])])]);
1294
- },
1295
- "default": function _default() {
1296
- var _a, _b;
1297
-
1298
- return (_b = (_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots)) !== null && _b !== void 0 ? _b : 'Content';
1299
- },
1300
- footer: function footer() {
1301
- if (slots.footer) {
1302
- return (0,external_vue_.createVNode)("div", {
1303
- "class": "bk-sideslider-footer"
1304
- }, [slots.footer()]);
1305
- }
1306
-
1307
- return null;
1308
- }
1309
- };
1310
- var className = "bk-sideslider-wrapper ".concat(props.scrollable ? 'scroll-able' : '', " ").concat(props.extCls);
1311
- var maxHeight = slots.footer ? 'calc(100vh - 106px)' : 'calc(100vh - 52px)';
1312
- return (0,external_vue_.createVNode)((external_modal_default()), (0,external_vue_.mergeProps)(props, {
1313
- "maxHeight": maxHeight,
1314
- "class": className,
1315
- "style": "".concat(props.direction, ": 0;"),
1316
- "onHidden": handleHidden,
1317
- "onShown": handleShown,
1318
- "onClose": handleClose
1319
- }), _isSlot(dialogSlot) ? dialogSlot : {
1320
- "default": function _default() {
1321
- return [dialogSlot];
1322
- }
1323
- });
1324
- };
1325
- }
1326
- }));
1327
- ;// CONCATENATED MODULE: ../../packages/sideslider/src/index.ts
1328
- /*
1329
- * Tencent is pleased to support the open source community by making
1330
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
1331
- *
1332
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
1333
- *
1334
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
1335
- *
1336
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
1337
- *
1338
- * ---------------------------------------------------
1339
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
1340
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
1341
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
1342
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1343
- *
1344
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
1345
- * the Software.
1346
- *
1347
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
1348
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1349
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
1350
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
1351
- * IN THE SOFTWARE.
1352
- */
1353
-
1354
-
1355
- var BkSideslider = (0,external_shared_.withInstall)(sideslider);
1356
- /* harmony default export */ const src = (BkSideslider);
1357
- })();
1358
-
1359
- /******/ return __webpack_exports__;
1360
- /******/ })()
1361
- ;
1362
- });
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],e);else{var r="object"==typeof exports?e(require("../shared"),require("vue"),require("../button"),require("../modal")):e(t["../shared"],t.vue,t["../button"],t["../modal"]);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(self,((t,e,r,n)=>(()=>{var o={7162:(t,e,r)=>{t.exports=r(5047)},5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?p:h,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function y(){}function g(){}function m(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=m.prototype=y.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=m,u(j,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},L(O.prototype),u(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(j),u(j,c,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},4976:t=>{"use strict";t.exports=r},8014:t=>{"use strict";t.exports=n},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return o[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{"use strict";a.r(c),a.d(c,{default:()=>d});var t=a(4212),e=a(748),r=a(7162),n=a.n(r);Object.create,Object.create;var o=a(4976),i=a.n(o),u=a(8014),s=a.n(u),l=s().propsMixin,f=Object.assign({},l);f.width.default="400",f.height.default="100%";const h=(0,e.defineComponent)({name:"Sideslider",components:{BkModal:s(),BkButton:i()},props:Object.assign(Object.assign({},f),{direction:{type:String,default:"right",validator:function(t){var e=["left","right"];return!(e.indexOf(t)<0&&(console.error("direction property is not valid: '".concat(t,"',【").concat(e.join(" | "),"】")),1))}}}),emits:["closed","update:isShow","shown","hidden","animation-end"],setup:function(t,r){var o=this,i=r.slots,a=r.emit,c=function(){return e=o,r=void 0,i=void 0,c=n().mark((function e(){var r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!0,"function"!=typeof t.beforeClose){e.next=5;break}return e.next=4,t.beforeClose();case 4:r=e.sent;case 5:r&&(a("update:isShow",!1),a("closed"),setTimeout((function(){a("animation-end")}),250));case 6:case"end":return e.stop()}}),e)})),new(i||(i=Promise))((function(t,n){function o(t){try{u(c.next(t))}catch(t){n(t)}}function a(t){try{u(c.throw(t))}catch(t){n(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i((function(t){t(r)}))).then(o,a)}u((c=c.apply(e,r||[])).next())}));var e,r,i,c},u=function(){setTimeout((function(){a("shown")}),200)},l=function(){setTimeout((function(){a("hidden")}),200)};return function(){var r,n={header:function(){var r,n;return(0,e.createVNode)(e.Fragment,null,[(0,e.createVNode)("div",{class:"bk-sideslider-header"},[(0,e.createVNode)("div",{class:"bk-sideslider-close ".concat(t.direction),onClick:function(){c()}},null),(0,e.createVNode)("div",{class:"bk-sideslider-title ".concat(t.direction)},[null!==(n=null===(r=i.header)||void 0===r?void 0:r.call(i))&&void 0!==n?n:t.title])])])},default:function(){var t,e;return null!==(e=null===(t=i.default)||void 0===t?void 0:t.call(i))&&void 0!==e?e:"Content"},footer:function(){return i.footer?(0,e.createVNode)("div",{class:"bk-sideslider-footer"},[i.footer()]):null}},o="bk-sideslider-wrapper ".concat(t.scrollable?"scroll-able":""," ").concat(t.extCls),a=i.footer?"calc(100vh - 106px)":"calc(100vh - 52px)";return(0,e.createVNode)(s(),(0,e.mergeProps)(t,{maxHeight:a,class:o,style:"".concat(t.direction,": 0;"),onHidden:l,onShown:u,onClose:c}),"function"==typeof(r=n)||"[object Object]"===Object.prototype.toString.call(r)&&!(0,e.isVNode)(r)?n:{default:function(){return[n]}})}}}),d=(0,t.withInstall)(h)})(),c})()));