@frollo/frollo-web-ui 0.0.22 → 0.1.2
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.
- package/cjs/index.js +635 -421
- package/esm/{add-to-unscopables-c6a09beb.js → add-to-unscopables-81c17489.js} +139 -99
- package/esm/{es.array.includes-1b7043c3.js → es.array.includes-debcb50f.js} +9 -3
- package/esm/{es.function.name-f416c9da.js → es.function.name-e746680f.js} +1 -1
- package/esm/{function-name-982253be.js → function-name-f0c1223e.js} +52 -61
- package/esm/{fw-button-0826e6fc.js → fw-button-ab906734.js} +12 -4
- package/esm/fw-button.js +4 -4
- package/esm/fw-card.js +6 -3
- package/esm/fw-checkbox.js +13 -8
- package/esm/fw-form.js +1 -1
- package/esm/fw-input.js +21 -11
- package/esm/fw-modal.js +7 -475
- package/esm/fw-navigation-menu.js +80 -24
- package/esm/fw-tabs.js +4 -3
- package/esm/{index-9de6159f.js → index-5ee56f7d.js} +24 -75
- package/esm/index-963039a3.js +475 -0
- package/esm/index.js +128 -40
- package/esm/to-string-139f1ee8.js +52 -0
- package/esm/{vee-validate.esm-028c6424.js → vee-validate.esm-b64acab1.js} +62 -9
- package/frollo-web-ui.esm.js +669 -421
- package/index.d.ts +28 -11
- package/package.json +20 -17
- package/tailwind.config.js +8 -8
- package/types/components/fw-button/fw-button.vue.d.ts +1 -0
- package/types/components/fw-card/fw-card.vue.d.ts +1 -0
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +5 -4
- package/types/components/fw-checkbox/index.types.d.ts +1 -1
- package/types/components/fw-input/fw-input.vue.d.ts +17 -4
- package/types/components/fw-input/index.types.d.ts +1 -1
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +3 -0
- package/types/index.esm.d.ts +1 -1
- package/types/services/modal.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -83,41 +83,42 @@ function commonjsRequire (path) {
|
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
86
|
-
var global$
|
|
87
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
86
|
+
var global$f =
|
|
87
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
88
88
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
89
89
|
check(typeof window == 'object' && window) ||
|
|
90
90
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
91
91
|
check(typeof self == 'object' && self) ||
|
|
92
92
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
93
93
|
// eslint-disable-next-line no-new-func -- fallback
|
|
94
|
-
(function () { return this; })() || Function('return this')();var objectGetOwnPropertyDescriptor = {};var fails$
|
|
94
|
+
(function () { return this; })() || Function('return this')();var objectGetOwnPropertyDescriptor = {};var fails$d = function (exec) {
|
|
95
95
|
try {
|
|
96
96
|
return !!exec();
|
|
97
97
|
} catch (error) {
|
|
98
98
|
return true;
|
|
99
99
|
}
|
|
100
|
-
};var fails$
|
|
100
|
+
};var fails$c = fails$d;
|
|
101
101
|
|
|
102
102
|
// Detect IE8's incomplete defineProperty implementation
|
|
103
|
-
var descriptors = !fails$
|
|
104
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
103
|
+
var descriptors = !fails$c(function () {
|
|
104
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
105
105
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
106
|
-
});var fails$
|
|
106
|
+
});var fails$b = fails$d;
|
|
107
107
|
|
|
108
|
-
var functionBindNative = !fails$
|
|
108
|
+
var functionBindNative = !fails$b(function () {
|
|
109
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
109
110
|
var test = (function () { /* empty */ }).bind();
|
|
110
111
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
111
112
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
112
|
-
});var NATIVE_BIND$
|
|
113
|
+
});var NATIVE_BIND$3 = functionBindNative;
|
|
113
114
|
|
|
114
|
-
var call$
|
|
115
|
+
var call$5 = Function.prototype.call;
|
|
115
116
|
|
|
116
|
-
var functionCall = NATIVE_BIND$
|
|
117
|
-
return call$
|
|
117
|
+
var functionCall = NATIVE_BIND$3 ? call$5.bind(call$5) : function () {
|
|
118
|
+
return call$5.apply(call$5, arguments);
|
|
118
119
|
};var objectPropertyIsEnumerable = {};'use strict';
|
|
119
120
|
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
|
120
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
121
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
121
122
|
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
122
123
|
|
|
123
124
|
// Nashorn ~ JDK8 bug
|
|
@@ -135,82 +136,79 @@ var f$5 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumer
|
|
|
135
136
|
writable: !(bitmap & 4),
|
|
136
137
|
value: value
|
|
137
138
|
};
|
|
138
|
-
};var NATIVE_BIND$
|
|
139
|
+
};var NATIVE_BIND$2 = functionBindNative;
|
|
139
140
|
|
|
140
|
-
var FunctionPrototype$
|
|
141
|
-
var bind$2 = FunctionPrototype$
|
|
142
|
-
var call$
|
|
143
|
-
var uncurryThis$
|
|
141
|
+
var FunctionPrototype$3 = Function.prototype;
|
|
142
|
+
var bind$2 = FunctionPrototype$3.bind;
|
|
143
|
+
var call$4 = FunctionPrototype$3.call;
|
|
144
|
+
var uncurryThis$k = NATIVE_BIND$2 && bind$2.bind(call$4, call$4);
|
|
144
145
|
|
|
145
|
-
var functionUncurryThis = NATIVE_BIND$
|
|
146
|
-
return fn && uncurryThis$
|
|
146
|
+
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
|
147
|
+
return fn && uncurryThis$k(fn);
|
|
147
148
|
} : function (fn) {
|
|
148
149
|
return fn && function () {
|
|
149
|
-
return call$
|
|
150
|
+
return call$4.apply(fn, arguments);
|
|
150
151
|
};
|
|
151
|
-
};var uncurryThis$
|
|
152
|
+
};var uncurryThis$j = functionUncurryThis;
|
|
152
153
|
|
|
153
|
-
var toString$
|
|
154
|
-
var stringSlice = uncurryThis$
|
|
154
|
+
var toString$6 = uncurryThis$j({}.toString);
|
|
155
|
+
var stringSlice = uncurryThis$j(''.slice);
|
|
155
156
|
|
|
156
157
|
var classofRaw$1 = function (it) {
|
|
157
|
-
return stringSlice(toString$
|
|
158
|
-
};var
|
|
159
|
-
var
|
|
160
|
-
var fails$7 = fails$a;
|
|
158
|
+
return stringSlice(toString$6(it), 8, -1);
|
|
159
|
+
};var uncurryThis$i = functionUncurryThis;
|
|
160
|
+
var fails$a = fails$d;
|
|
161
161
|
var classof$5 = classofRaw$1;
|
|
162
162
|
|
|
163
|
-
var Object$
|
|
164
|
-
var split = uncurryThis$
|
|
163
|
+
var $Object$3 = Object;
|
|
164
|
+
var split = uncurryThis$i(''.split);
|
|
165
165
|
|
|
166
166
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
167
|
-
var indexedObject = fails$
|
|
167
|
+
var indexedObject = fails$a(function () {
|
|
168
168
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
169
169
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
170
|
-
return
|
|
170
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
171
171
|
}) ? function (it) {
|
|
172
|
-
return classof$5(it) == 'String' ? split(it, '') : Object$
|
|
173
|
-
} : Object$
|
|
174
|
-
|
|
175
|
-
var TypeError$9 = global$p.TypeError;
|
|
172
|
+
return classof$5(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
173
|
+
} : $Object$3;var $TypeError$7 = TypeError;
|
|
176
174
|
|
|
177
175
|
// `RequireObjectCoercible` abstract operation
|
|
178
176
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
179
|
-
var requireObjectCoercible$
|
|
180
|
-
if (it == undefined) throw TypeError$
|
|
177
|
+
var requireObjectCoercible$4 = function (it) {
|
|
178
|
+
if (it == undefined) throw $TypeError$7("Can't call method on " + it);
|
|
181
179
|
return it;
|
|
182
180
|
};// toObject with fallback for non-array-like ES3 strings
|
|
183
181
|
var IndexedObject$1 = indexedObject;
|
|
184
|
-
var requireObjectCoercible$
|
|
182
|
+
var requireObjectCoercible$3 = requireObjectCoercible$4;
|
|
185
183
|
|
|
186
184
|
var toIndexedObject$5 = function (it) {
|
|
187
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
185
|
+
return IndexedObject$1(requireObjectCoercible$3(it));
|
|
188
186
|
};// `IsCallable` abstract operation
|
|
189
187
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
190
|
-
var isCallable$
|
|
188
|
+
var isCallable$g = function (argument) {
|
|
191
189
|
return typeof argument == 'function';
|
|
192
|
-
};var isCallable$
|
|
190
|
+
};var isCallable$f = isCallable$g;
|
|
193
191
|
|
|
194
192
|
var isObject$8 = function (it) {
|
|
195
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
196
|
-
};var global$
|
|
197
|
-
var isCallable$
|
|
193
|
+
return typeof it == 'object' ? it !== null : isCallable$f(it);
|
|
194
|
+
};var global$e = global$f;
|
|
195
|
+
var isCallable$e = isCallable$g;
|
|
198
196
|
|
|
199
197
|
var aFunction = function (argument) {
|
|
200
|
-
return isCallable$
|
|
198
|
+
return isCallable$e(argument) ? argument : undefined;
|
|
201
199
|
};
|
|
202
200
|
|
|
203
201
|
var getBuiltIn$5 = function (namespace, method) {
|
|
204
|
-
return arguments.length < 2 ? aFunction(global$
|
|
205
|
-
};var uncurryThis$
|
|
202
|
+
return arguments.length < 2 ? aFunction(global$e[namespace]) : global$e[namespace] && global$e[namespace][method];
|
|
203
|
+
};var uncurryThis$h = functionUncurryThis;
|
|
206
204
|
|
|
207
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
205
|
+
var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);var getBuiltIn$4 = getBuiltIn$5;
|
|
208
206
|
|
|
209
|
-
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';var global$
|
|
210
|
-
var userAgent = engineUserAgent;
|
|
207
|
+
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';var global$d = global$f;
|
|
208
|
+
var userAgent$1 = engineUserAgent;
|
|
211
209
|
|
|
212
|
-
var process = global$
|
|
213
|
-
var Deno = global$
|
|
210
|
+
var process = global$d.process;
|
|
211
|
+
var Deno = global$d.Deno;
|
|
214
212
|
var versions = process && process.versions || Deno && Deno.version;
|
|
215
213
|
var v8 = versions && versions.v8;
|
|
216
214
|
var match, version;
|
|
@@ -224,66 +222,62 @@ if (v8) {
|
|
|
224
222
|
|
|
225
223
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
226
224
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
227
|
-
if (!version && userAgent) {
|
|
228
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
225
|
+
if (!version && userAgent$1) {
|
|
226
|
+
match = userAgent$1.match(/Edge\/(\d+)/);
|
|
229
227
|
if (!match || match[1] >= 74) {
|
|
230
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
228
|
+
match = userAgent$1.match(/Chrome\/(\d+)/);
|
|
231
229
|
if (match) version = +match[1];
|
|
232
230
|
}
|
|
233
231
|
}
|
|
234
232
|
|
|
235
|
-
var engineV8Version = version;/* eslint-disable es/no-symbol -- required for testing */
|
|
233
|
+
var engineV8Version = version;/* eslint-disable es-x/no-symbol -- required for testing */
|
|
236
234
|
|
|
237
235
|
var V8_VERSION = engineV8Version;
|
|
238
|
-
var fails$
|
|
236
|
+
var fails$9 = fails$d;
|
|
239
237
|
|
|
240
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
241
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
238
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
239
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$9(function () {
|
|
242
240
|
var symbol = Symbol();
|
|
243
241
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
244
242
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
245
243
|
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
246
244
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
247
245
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
248
|
-
});/* eslint-disable es/no-symbol -- required for testing */
|
|
246
|
+
});/* eslint-disable es-x/no-symbol -- required for testing */
|
|
249
247
|
|
|
250
248
|
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
251
249
|
|
|
252
250
|
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
253
251
|
&& !Symbol.sham
|
|
254
|
-
&& typeof Symbol.iterator == 'symbol';var
|
|
255
|
-
var
|
|
256
|
-
var isCallable$b = isCallable$e;
|
|
252
|
+
&& typeof Symbol.iterator == 'symbol';var getBuiltIn$3 = getBuiltIn$5;
|
|
253
|
+
var isCallable$d = isCallable$g;
|
|
257
254
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
258
255
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
259
256
|
|
|
260
|
-
var Object$
|
|
257
|
+
var $Object$2 = Object;
|
|
261
258
|
|
|
262
259
|
var isSymbol$4 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
263
260
|
return typeof it == 'symbol';
|
|
264
261
|
} : function (it) {
|
|
265
262
|
var $Symbol = getBuiltIn$3('Symbol');
|
|
266
|
-
return isCallable$
|
|
267
|
-
};var
|
|
268
|
-
|
|
269
|
-
var String$4 = global$l.String;
|
|
263
|
+
return isCallable$d($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
|
|
264
|
+
};var $String$3 = String;
|
|
270
265
|
|
|
271
266
|
var tryToString$1 = function (argument) {
|
|
272
267
|
try {
|
|
273
|
-
return String$
|
|
268
|
+
return $String$3(argument);
|
|
274
269
|
} catch (error) {
|
|
275
270
|
return 'Object';
|
|
276
271
|
}
|
|
277
|
-
};var
|
|
278
|
-
var isCallable$a = isCallable$e;
|
|
272
|
+
};var isCallable$c = isCallable$g;
|
|
279
273
|
var tryToString = tryToString$1;
|
|
280
274
|
|
|
281
|
-
var TypeError$
|
|
275
|
+
var $TypeError$6 = TypeError;
|
|
282
276
|
|
|
283
277
|
// `Assert: IsCallable(argument) is true`
|
|
284
278
|
var aCallable$2 = function (argument) {
|
|
285
|
-
if (isCallable$
|
|
286
|
-
throw TypeError$
|
|
279
|
+
if (isCallable$c(argument)) return argument;
|
|
280
|
+
throw $TypeError$6(tryToString(argument) + ' is not a function');
|
|
287
281
|
};var aCallable$1 = aCallable$2;
|
|
288
282
|
|
|
289
283
|
// `GetMethod` abstract operation
|
|
@@ -291,37 +285,36 @@ var aCallable$2 = function (argument) {
|
|
|
291
285
|
var getMethod$1 = function (V, P) {
|
|
292
286
|
var func = V[P];
|
|
293
287
|
return func == null ? undefined : aCallable$1(func);
|
|
294
|
-
};var
|
|
295
|
-
var
|
|
296
|
-
var isCallable$9 = isCallable$e;
|
|
288
|
+
};var call$3 = functionCall;
|
|
289
|
+
var isCallable$b = isCallable$g;
|
|
297
290
|
var isObject$7 = isObject$8;
|
|
298
291
|
|
|
299
|
-
var TypeError$
|
|
292
|
+
var $TypeError$5 = TypeError;
|
|
300
293
|
|
|
301
294
|
// `OrdinaryToPrimitive` abstract operation
|
|
302
295
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
303
296
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
304
297
|
var fn, val;
|
|
305
|
-
if (pref === 'string' && isCallable$
|
|
306
|
-
if (isCallable$
|
|
307
|
-
if (pref !== 'string' && isCallable$
|
|
308
|
-
throw TypeError$
|
|
309
|
-
};var shared$4 = {exports: {}};var isPure = false;var global$
|
|
298
|
+
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
|
|
299
|
+
if (isCallable$b(fn = input.valueOf) && !isObject$7(val = call$3(fn, input))) return val;
|
|
300
|
+
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
|
|
301
|
+
throw $TypeError$5("Can't convert object to primitive value");
|
|
302
|
+
};var shared$4 = {exports: {}};var isPure = false;var global$c = global$f;
|
|
310
303
|
|
|
311
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
312
|
-
var defineProperty$
|
|
304
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
305
|
+
var defineProperty$4 = Object.defineProperty;
|
|
313
306
|
|
|
314
|
-
var
|
|
307
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
315
308
|
try {
|
|
316
|
-
defineProperty$
|
|
309
|
+
defineProperty$4(global$c, key, { value: value, configurable: true, writable: true });
|
|
317
310
|
} catch (error) {
|
|
318
|
-
global$
|
|
311
|
+
global$c[key] = value;
|
|
319
312
|
} return value;
|
|
320
|
-
};var global$
|
|
321
|
-
var
|
|
313
|
+
};var global$b = global$f;
|
|
314
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
322
315
|
|
|
323
316
|
var SHARED = '__core-js_shared__';
|
|
324
|
-
var store$3 = global$
|
|
317
|
+
var store$3 = global$b[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
325
318
|
|
|
326
319
|
var sharedStore = store$3;var IS_PURE = isPure;
|
|
327
320
|
var store$2 = sharedStore;
|
|
@@ -329,40 +322,40 @@ var store$2 = sharedStore;
|
|
|
329
322
|
(shared$4.exports = function (key, value) {
|
|
330
323
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
331
324
|
})('versions', []).push({
|
|
332
|
-
version: '3.
|
|
325
|
+
version: '3.23.3',
|
|
333
326
|
mode: IS_PURE ? 'pure' : 'global',
|
|
334
327
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
335
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
328
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE',
|
|
336
329
|
source: 'https://github.com/zloirock/core-js'
|
|
337
330
|
});
|
|
338
331
|
|
|
339
|
-
var shared$3 = shared$4.exports;var
|
|
340
|
-
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
332
|
+
var shared$3 = shared$4.exports;var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
341
333
|
|
|
342
|
-
var Object$
|
|
334
|
+
var $Object$1 = Object;
|
|
343
335
|
|
|
344
336
|
// `ToObject` abstract operation
|
|
345
337
|
// https://tc39.es/ecma262/#sec-toobject
|
|
346
338
|
var toObject$2 = function (argument) {
|
|
347
|
-
return Object$
|
|
348
|
-
};var uncurryThis$
|
|
339
|
+
return $Object$1(requireObjectCoercible$2(argument));
|
|
340
|
+
};var uncurryThis$g = functionUncurryThis;
|
|
349
341
|
var toObject$1 = toObject$2;
|
|
350
342
|
|
|
351
|
-
var hasOwnProperty$1 = uncurryThis$
|
|
343
|
+
var hasOwnProperty$1 = uncurryThis$g({}.hasOwnProperty);
|
|
352
344
|
|
|
353
345
|
// `HasOwnProperty` abstract operation
|
|
354
346
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
347
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
355
348
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
356
349
|
return hasOwnProperty$1(toObject$1(it), key);
|
|
357
|
-
};var uncurryThis$
|
|
350
|
+
};var uncurryThis$f = functionUncurryThis;
|
|
358
351
|
|
|
359
352
|
var id = 0;
|
|
360
353
|
var postfix = Math.random();
|
|
361
|
-
var toString$
|
|
354
|
+
var toString$5 = uncurryThis$f(1.0.toString);
|
|
362
355
|
|
|
363
356
|
var uid$2 = function (key) {
|
|
364
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
365
|
-
};var global$
|
|
357
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
358
|
+
};var global$a = global$f;
|
|
366
359
|
var shared$2 = shared$4.exports;
|
|
367
360
|
var hasOwn$7 = hasOwnProperty_1;
|
|
368
361
|
var uid$1 = uid$2;
|
|
@@ -370,7 +363,7 @@ var NATIVE_SYMBOL = nativeSymbol;
|
|
|
370
363
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
371
364
|
|
|
372
365
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
373
|
-
var Symbol$2 = global$
|
|
366
|
+
var Symbol$2 = global$a.Symbol;
|
|
374
367
|
var symbolFor = Symbol$2 && Symbol$2['for'];
|
|
375
368
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
376
369
|
|
|
@@ -385,15 +378,14 @@ var wellKnownSymbol$5 = function (name) {
|
|
|
385
378
|
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
386
379
|
}
|
|
387
380
|
} return WellKnownSymbolsStore[name];
|
|
388
|
-
};var
|
|
389
|
-
var call$1 = functionCall;
|
|
381
|
+
};var call$2 = functionCall;
|
|
390
382
|
var isObject$6 = isObject$8;
|
|
391
383
|
var isSymbol$3 = isSymbol$4;
|
|
392
384
|
var getMethod = getMethod$1;
|
|
393
385
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
394
386
|
var wellKnownSymbol$4 = wellKnownSymbol$5;
|
|
395
387
|
|
|
396
|
-
var TypeError$
|
|
388
|
+
var $TypeError$4 = TypeError;
|
|
397
389
|
var TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');
|
|
398
390
|
|
|
399
391
|
// `ToPrimitive` abstract operation
|
|
@@ -404,9 +396,9 @@ var toPrimitive$2 = function (input, pref) {
|
|
|
404
396
|
var result;
|
|
405
397
|
if (exoticToPrim) {
|
|
406
398
|
if (pref === undefined) pref = 'default';
|
|
407
|
-
result = call$
|
|
399
|
+
result = call$2(exoticToPrim, input, pref);
|
|
408
400
|
if (!isObject$6(result) || isSymbol$3(result)) return result;
|
|
409
|
-
throw TypeError$
|
|
401
|
+
throw $TypeError$4("Can't convert object to primitive value");
|
|
410
402
|
}
|
|
411
403
|
if (pref === undefined) pref = 'number';
|
|
412
404
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -418,27 +410,27 @@ var isSymbol$2 = isSymbol$4;
|
|
|
418
410
|
var toPropertyKey$2 = function (argument) {
|
|
419
411
|
var key = toPrimitive$1(argument, 'string');
|
|
420
412
|
return isSymbol$2(key) ? key : key + '';
|
|
421
|
-
};var global$
|
|
413
|
+
};var global$9 = global$f;
|
|
422
414
|
var isObject$5 = isObject$8;
|
|
423
415
|
|
|
424
|
-
var document$1 = global$
|
|
416
|
+
var document$1 = global$9.document;
|
|
425
417
|
// typeof document.createElement is 'object' in old IE
|
|
426
418
|
var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
|
|
427
419
|
|
|
428
420
|
var documentCreateElement$2 = function (it) {
|
|
429
421
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
430
|
-
};var DESCRIPTORS$
|
|
431
|
-
var fails$
|
|
422
|
+
};var DESCRIPTORS$a = descriptors;
|
|
423
|
+
var fails$8 = fails$d;
|
|
432
424
|
var createElement = documentCreateElement$2;
|
|
433
425
|
|
|
434
426
|
// Thanks to IE8 for its funny defineProperty
|
|
435
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
436
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
427
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$8(function () {
|
|
428
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
437
429
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
438
430
|
get: function () { return 7; }
|
|
439
431
|
}).a != 7;
|
|
440
|
-
});var DESCRIPTORS$
|
|
441
|
-
var call = functionCall;
|
|
432
|
+
});var DESCRIPTORS$9 = descriptors;
|
|
433
|
+
var call$1 = functionCall;
|
|
442
434
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
443
435
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
444
436
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -446,50 +438,48 @@ var toPropertyKey$1 = toPropertyKey$2;
|
|
|
446
438
|
var hasOwn$6 = hasOwnProperty_1;
|
|
447
439
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
448
440
|
|
|
449
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
441
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
450
442
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
451
443
|
|
|
452
444
|
// `Object.getOwnPropertyDescriptor` method
|
|
453
445
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
454
|
-
var f$4 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
446
|
+
var f$4 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
455
447
|
O = toIndexedObject$4(O);
|
|
456
448
|
P = toPropertyKey$1(P);
|
|
457
449
|
if (IE8_DOM_DEFINE$1) try {
|
|
458
450
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
459
451
|
} catch (error) { /* empty */ }
|
|
460
|
-
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
461
|
-
};var objectDefineProperty = {};var DESCRIPTORS$
|
|
462
|
-
var fails$
|
|
452
|
+
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
453
|
+
};var objectDefineProperty = {};var DESCRIPTORS$8 = descriptors;
|
|
454
|
+
var fails$7 = fails$d;
|
|
463
455
|
|
|
464
456
|
// V8 ~ Chrome 36-
|
|
465
457
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
466
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
467
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
458
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$7(function () {
|
|
459
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
468
460
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
469
461
|
value: 42,
|
|
470
462
|
writable: false
|
|
471
463
|
}).prototype != 42;
|
|
472
|
-
});var
|
|
473
|
-
var isObject$4 = isObject$8;
|
|
464
|
+
});var isObject$4 = isObject$8;
|
|
474
465
|
|
|
475
|
-
var String$
|
|
476
|
-
var TypeError$
|
|
466
|
+
var $String$2 = String;
|
|
467
|
+
var $TypeError$3 = TypeError;
|
|
477
468
|
|
|
478
469
|
// `Assert: Type(argument) is Object`
|
|
479
470
|
var anObject$5 = function (argument) {
|
|
480
471
|
if (isObject$4(argument)) return argument;
|
|
481
|
-
throw TypeError$
|
|
482
|
-
};var
|
|
483
|
-
var DESCRIPTORS$6 = descriptors;
|
|
472
|
+
throw $TypeError$3($String$2(argument) + ' is not an object');
|
|
473
|
+
};var DESCRIPTORS$7 = descriptors;
|
|
484
474
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
485
475
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
486
476
|
var anObject$4 = anObject$5;
|
|
487
477
|
var toPropertyKey = toPropertyKey$2;
|
|
488
478
|
|
|
489
|
-
var TypeError$
|
|
490
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
479
|
+
var $TypeError$2 = TypeError;
|
|
480
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
491
481
|
var $defineProperty = Object.defineProperty;
|
|
492
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
482
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
493
483
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
494
484
|
var ENUMERABLE = 'enumerable';
|
|
495
485
|
var CONFIGURABLE$1 = 'configurable';
|
|
@@ -497,7 +487,7 @@ var WRITABLE = 'writable';
|
|
|
497
487
|
|
|
498
488
|
// `Object.defineProperty` method
|
|
499
489
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
500
|
-
var f$3 = objectDefineProperty.f = DESCRIPTORS$
|
|
490
|
+
var f$3 = objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
501
491
|
anObject$4(O);
|
|
502
492
|
P = toPropertyKey(P);
|
|
503
493
|
anObject$4(Attributes);
|
|
@@ -519,38 +509,54 @@ var f$3 = objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? f
|
|
|
519
509
|
if (IE8_DOM_DEFINE) try {
|
|
520
510
|
return $defineProperty(O, P, Attributes);
|
|
521
511
|
} catch (error) { /* empty */ }
|
|
522
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
512
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
|
|
523
513
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
524
514
|
return O;
|
|
525
|
-
};var DESCRIPTORS$
|
|
515
|
+
};var DESCRIPTORS$6 = descriptors;
|
|
526
516
|
var definePropertyModule$3 = objectDefineProperty;
|
|
527
517
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
528
518
|
|
|
529
|
-
var createNonEnumerableProperty$
|
|
519
|
+
var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value) {
|
|
530
520
|
return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
|
|
531
521
|
} : function (object, key, value) {
|
|
532
522
|
object[key] = value;
|
|
533
523
|
return object;
|
|
534
|
-
};var
|
|
535
|
-
var
|
|
524
|
+
};var makeBuiltIn$2 = {exports: {}};var DESCRIPTORS$5 = descriptors;
|
|
525
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
526
|
+
|
|
527
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
528
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
529
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
530
|
+
|
|
531
|
+
var EXISTS = hasOwn$5(FunctionPrototype$2, 'name');
|
|
532
|
+
// additional protection from minified / mangled / dropped function names
|
|
533
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
534
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$2, 'name').configurable));
|
|
535
|
+
|
|
536
|
+
var functionName = {
|
|
537
|
+
EXISTS: EXISTS,
|
|
538
|
+
PROPER: PROPER,
|
|
539
|
+
CONFIGURABLE: CONFIGURABLE
|
|
540
|
+
};var uncurryThis$e = functionUncurryThis;
|
|
541
|
+
var isCallable$a = isCallable$g;
|
|
536
542
|
var store$1 = sharedStore;
|
|
537
543
|
|
|
538
|
-
var functionToString$1 = uncurryThis$
|
|
544
|
+
var functionToString$1 = uncurryThis$e(Function.toString);
|
|
539
545
|
|
|
540
546
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
541
|
-
if (!isCallable$
|
|
547
|
+
if (!isCallable$a(store$1.inspectSource)) {
|
|
542
548
|
store$1.inspectSource = function (it) {
|
|
543
549
|
return functionToString$1(it);
|
|
544
550
|
};
|
|
545
551
|
}
|
|
546
552
|
|
|
547
|
-
var inspectSource$3 = store$1.inspectSource;var global$
|
|
548
|
-
var isCallable$
|
|
553
|
+
var inspectSource$3 = store$1.inspectSource;var global$8 = global$f;
|
|
554
|
+
var isCallable$9 = isCallable$g;
|
|
549
555
|
var inspectSource$2 = inspectSource$3;
|
|
550
556
|
|
|
551
|
-
var WeakMap$1 = global$
|
|
557
|
+
var WeakMap$1 = global$8.WeakMap;
|
|
552
558
|
|
|
553
|
-
var nativeWeakMap = isCallable$
|
|
559
|
+
var nativeWeakMap = isCallable$9(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));var shared$1 = shared$4.exports;
|
|
554
560
|
var uid = uid$2;
|
|
555
561
|
|
|
556
562
|
var keys$1 = shared$1('keys');
|
|
@@ -558,18 +564,18 @@ var keys$1 = shared$1('keys');
|
|
|
558
564
|
var sharedKey$2 = function (key) {
|
|
559
565
|
return keys$1[key] || (keys$1[key] = uid(key));
|
|
560
566
|
};var hiddenKeys$4 = {};var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
561
|
-
var global$
|
|
562
|
-
var uncurryThis$
|
|
567
|
+
var global$7 = global$f;
|
|
568
|
+
var uncurryThis$d = functionUncurryThis;
|
|
563
569
|
var isObject$3 = isObject$8;
|
|
564
|
-
var createNonEnumerableProperty$
|
|
565
|
-
var hasOwn$
|
|
570
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
571
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
566
572
|
var shared = sharedStore;
|
|
567
573
|
var sharedKey$1 = sharedKey$2;
|
|
568
574
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
569
575
|
|
|
570
576
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
571
|
-
var TypeError$
|
|
572
|
-
var WeakMap = global$
|
|
577
|
+
var TypeError$2 = global$7.TypeError;
|
|
578
|
+
var WeakMap = global$7.WeakMap;
|
|
573
579
|
var set$1, get, has;
|
|
574
580
|
|
|
575
581
|
var enforce = function (it) {
|
|
@@ -580,18 +586,18 @@ var getterFor = function (TYPE) {
|
|
|
580
586
|
return function (it) {
|
|
581
587
|
var state;
|
|
582
588
|
if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
|
|
583
|
-
throw TypeError$
|
|
589
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
584
590
|
} return state;
|
|
585
591
|
};
|
|
586
592
|
};
|
|
587
593
|
|
|
588
594
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
589
595
|
var store = shared.state || (shared.state = new WeakMap());
|
|
590
|
-
var wmget = uncurryThis$
|
|
591
|
-
var wmhas = uncurryThis$
|
|
592
|
-
var wmset = uncurryThis$
|
|
596
|
+
var wmget = uncurryThis$d(store.get);
|
|
597
|
+
var wmhas = uncurryThis$d(store.has);
|
|
598
|
+
var wmset = uncurryThis$d(store.set);
|
|
593
599
|
set$1 = function (it, metadata) {
|
|
594
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
600
|
+
if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
595
601
|
metadata.facade = it;
|
|
596
602
|
wmset(store, it, metadata);
|
|
597
603
|
return metadata;
|
|
@@ -606,16 +612,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
606
612
|
var STATE = sharedKey$1('state');
|
|
607
613
|
hiddenKeys$3[STATE] = true;
|
|
608
614
|
set$1 = function (it, metadata) {
|
|
609
|
-
if (hasOwn$
|
|
615
|
+
if (hasOwn$4(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
610
616
|
metadata.facade = it;
|
|
611
|
-
createNonEnumerableProperty$
|
|
617
|
+
createNonEnumerableProperty$2(it, STATE, metadata);
|
|
612
618
|
return metadata;
|
|
613
619
|
};
|
|
614
620
|
get = function (it) {
|
|
615
|
-
return hasOwn$
|
|
621
|
+
return hasOwn$4(it, STATE) ? it[STATE] : {};
|
|
616
622
|
};
|
|
617
623
|
has = function (it) {
|
|
618
|
-
return hasOwn$
|
|
624
|
+
return hasOwn$4(it, STATE);
|
|
619
625
|
};
|
|
620
626
|
}
|
|
621
627
|
|
|
@@ -625,78 +631,99 @@ var internalState = {
|
|
|
625
631
|
has: has,
|
|
626
632
|
enforce: enforce,
|
|
627
633
|
getterFor: getterFor
|
|
628
|
-
};var
|
|
629
|
-
var
|
|
630
|
-
|
|
631
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
632
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
633
|
-
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
634
|
-
|
|
635
|
-
var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
|
|
636
|
-
// additional protection from minified / mangled / dropped function names
|
|
637
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
638
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
639
|
-
|
|
640
|
-
var functionName = {
|
|
641
|
-
EXISTS: EXISTS,
|
|
642
|
-
PROPER: PROPER,
|
|
643
|
-
CONFIGURABLE: CONFIGURABLE
|
|
644
|
-
};var global$8 = global$r;
|
|
645
|
-
var isCallable$6 = isCallable$e;
|
|
634
|
+
};var fails$6 = fails$d;
|
|
635
|
+
var isCallable$8 = isCallable$g;
|
|
646
636
|
var hasOwn$3 = hasOwnProperty_1;
|
|
647
|
-
var
|
|
648
|
-
var
|
|
637
|
+
var DESCRIPTORS$4 = descriptors;
|
|
638
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
649
639
|
var inspectSource$1 = inspectSource$3;
|
|
650
640
|
var InternalStateModule = internalState;
|
|
651
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
652
641
|
|
|
653
|
-
var getInternalState = InternalStateModule.get;
|
|
654
642
|
var enforceInternalState = InternalStateModule.enforce;
|
|
643
|
+
var getInternalState = InternalStateModule.get;
|
|
644
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
645
|
+
var defineProperty$3 = Object.defineProperty;
|
|
646
|
+
|
|
647
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$6(function () {
|
|
648
|
+
return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
649
|
+
});
|
|
650
|
+
|
|
655
651
|
var TEMPLATE = String(String).split('String');
|
|
656
652
|
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
661
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
662
|
-
var state;
|
|
663
|
-
if (isCallable$6(value)) {
|
|
664
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
665
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
666
|
-
}
|
|
667
|
-
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
668
|
-
createNonEnumerableProperty$2(value, 'name', name);
|
|
669
|
-
}
|
|
670
|
-
state = enforceInternalState(value);
|
|
671
|
-
if (!state.source) {
|
|
672
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
673
|
-
}
|
|
653
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
654
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
655
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
674
656
|
}
|
|
675
|
-
if (
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
657
|
+
if (options && options.getter) name = 'get ' + name;
|
|
658
|
+
if (options && options.setter) name = 'set ' + name;
|
|
659
|
+
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
660
|
+
if (DESCRIPTORS$4) defineProperty$3(value, 'name', { value: name, configurable: true });
|
|
661
|
+
else value.name = name;
|
|
662
|
+
}
|
|
663
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
|
|
664
|
+
defineProperty$3(value, 'length', { value: options.arity });
|
|
683
665
|
}
|
|
684
|
-
|
|
685
|
-
|
|
666
|
+
try {
|
|
667
|
+
if (options && hasOwn$3(options, 'constructor') && options.constructor) {
|
|
668
|
+
if (DESCRIPTORS$4) defineProperty$3(value, 'prototype', { writable: false });
|
|
669
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
670
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
671
|
+
} catch (error) { /* empty */ }
|
|
672
|
+
var state = enforceInternalState(value);
|
|
673
|
+
if (!hasOwn$3(state, 'source')) {
|
|
674
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
675
|
+
} return value;
|
|
676
|
+
};
|
|
677
|
+
|
|
686
678
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
679
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
680
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
681
|
+
return isCallable$8(this) && getInternalState(this).source || inspectSource$1(this);
|
|
682
|
+
}, 'toString');
|
|
690
683
|
|
|
691
|
-
var
|
|
684
|
+
var makeBuiltIn_1 = makeBuiltIn$2.exports;var isCallable$7 = isCallable$g;
|
|
685
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
686
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
687
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
688
|
+
|
|
689
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
690
|
+
if (!options) options = {};
|
|
691
|
+
var simple = options.enumerable;
|
|
692
|
+
var name = options.name !== undefined ? options.name : key;
|
|
693
|
+
if (isCallable$7(value)) makeBuiltIn(value, name, options);
|
|
694
|
+
if (options.global) {
|
|
695
|
+
if (simple) O[key] = value;
|
|
696
|
+
else defineGlobalProperty$1(key, value);
|
|
697
|
+
} else {
|
|
698
|
+
try {
|
|
699
|
+
if (!options.unsafe) delete O[key];
|
|
700
|
+
else if (O[key]) simple = true;
|
|
701
|
+
} catch (error) { /* empty */ }
|
|
702
|
+
if (simple) O[key] = value;
|
|
703
|
+
else definePropertyModule$2.f(O, key, {
|
|
704
|
+
value: value,
|
|
705
|
+
enumerable: false,
|
|
706
|
+
configurable: !options.nonConfigurable,
|
|
707
|
+
writable: !options.nonWritable
|
|
708
|
+
});
|
|
709
|
+
} return O;
|
|
710
|
+
};var objectGetOwnPropertyNames = {};var ceil = Math.ceil;
|
|
692
711
|
var floor = Math.floor;
|
|
693
712
|
|
|
713
|
+
// `Math.trunc` method
|
|
714
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
715
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
716
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
717
|
+
var n = +x;
|
|
718
|
+
return (n > 0 ? floor : ceil)(n);
|
|
719
|
+
};var trunc = mathTrunc;
|
|
720
|
+
|
|
694
721
|
// `ToIntegerOrInfinity` abstract operation
|
|
695
722
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
696
723
|
var toIntegerOrInfinity$2 = function (argument) {
|
|
697
724
|
var number = +argument;
|
|
698
|
-
// eslint-disable-next-line no-self-compare --
|
|
699
|
-
return number !== number || number === 0 ? 0 : (number
|
|
725
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
726
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
700
727
|
};var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
701
728
|
|
|
702
729
|
var max = Math.max;
|
|
@@ -753,13 +780,13 @@ var arrayIncludes = {
|
|
|
753
780
|
// `Array.prototype.indexOf` method
|
|
754
781
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
755
782
|
indexOf: createMethod$3(false)
|
|
756
|
-
};var uncurryThis$
|
|
783
|
+
};var uncurryThis$c = functionUncurryThis;
|
|
757
784
|
var hasOwn$2 = hasOwnProperty_1;
|
|
758
785
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
759
786
|
var indexOf = arrayIncludes.indexOf;
|
|
760
787
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
761
788
|
|
|
762
|
-
var push$2 = uncurryThis$
|
|
789
|
+
var push$2 = uncurryThis$c([].push);
|
|
763
790
|
|
|
764
791
|
var objectKeysInternal = function (object, names) {
|
|
765
792
|
var O = toIndexedObject$2(object);
|
|
@@ -788,17 +815,17 @@ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
|
788
815
|
|
|
789
816
|
// `Object.getOwnPropertyNames` method
|
|
790
817
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
791
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
818
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
792
819
|
var f$2 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
793
820
|
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
794
|
-
};var objectGetOwnPropertySymbols = {};// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
821
|
+
};var objectGetOwnPropertySymbols = {};// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
795
822
|
var f$1 = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;var getBuiltIn$2 = getBuiltIn$5;
|
|
796
|
-
var uncurryThis$
|
|
823
|
+
var uncurryThis$b = functionUncurryThis;
|
|
797
824
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
798
825
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
799
826
|
var anObject$3 = anObject$5;
|
|
800
827
|
|
|
801
|
-
var concat = uncurryThis$
|
|
828
|
+
var concat = uncurryThis$b([].concat);
|
|
802
829
|
|
|
803
830
|
// all object keys, includes non-enumerable and symbols
|
|
804
831
|
var ownKeys$2 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -808,11 +835,11 @@ var ownKeys$2 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
808
835
|
};var hasOwn$1 = hasOwnProperty_1;
|
|
809
836
|
var ownKeys$1 = ownKeys$2;
|
|
810
837
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
811
|
-
var definePropertyModule$
|
|
838
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
812
839
|
|
|
813
840
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
814
841
|
var keys = ownKeys$1(source);
|
|
815
|
-
var defineProperty = definePropertyModule$
|
|
842
|
+
var defineProperty = definePropertyModule$1.f;
|
|
816
843
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
817
844
|
for (var i = 0; i < keys.length; i++) {
|
|
818
845
|
var key = keys[i];
|
|
@@ -820,8 +847,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
820
847
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
821
848
|
}
|
|
822
849
|
}
|
|
823
|
-
};var fails$
|
|
824
|
-
var isCallable$
|
|
850
|
+
};var fails$5 = fails$d;
|
|
851
|
+
var isCallable$6 = isCallable$g;
|
|
825
852
|
|
|
826
853
|
var replacement = /#|\.prototype\./;
|
|
827
854
|
|
|
@@ -829,7 +856,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
829
856
|
var value = data[normalize(feature)];
|
|
830
857
|
return value == POLYFILL ? true
|
|
831
858
|
: value == NATIVE ? false
|
|
832
|
-
: isCallable$
|
|
859
|
+
: isCallable$6(detection) ? fails$5(detection)
|
|
833
860
|
: !!detection;
|
|
834
861
|
};
|
|
835
862
|
|
|
@@ -841,28 +868,28 @@ var data = isForced$2.data = {};
|
|
|
841
868
|
var NATIVE = isForced$2.NATIVE = 'N';
|
|
842
869
|
var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
843
870
|
|
|
844
|
-
var isForced_1 = isForced$2;var global$
|
|
871
|
+
var isForced_1 = isForced$2;var global$6 = global$f;
|
|
845
872
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
846
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
847
|
-
var
|
|
848
|
-
var
|
|
873
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
874
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
875
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
849
876
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
850
877
|
var isForced$1 = isForced_1;
|
|
851
878
|
|
|
852
879
|
/*
|
|
853
|
-
options.target
|
|
854
|
-
options.global
|
|
855
|
-
options.stat
|
|
856
|
-
options.proto
|
|
857
|
-
options.real
|
|
858
|
-
options.forced
|
|
859
|
-
options.bind
|
|
860
|
-
options.wrap
|
|
861
|
-
options.unsafe
|
|
862
|
-
options.sham
|
|
863
|
-
options.enumerable
|
|
864
|
-
options.
|
|
865
|
-
options.name
|
|
880
|
+
options.target - name of the target object
|
|
881
|
+
options.global - target is the global object
|
|
882
|
+
options.stat - export as static methods of target
|
|
883
|
+
options.proto - export as prototype methods of target
|
|
884
|
+
options.real - real prototype method for the `pure` version
|
|
885
|
+
options.forced - export even if the native feature is available
|
|
886
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
887
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
888
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
889
|
+
options.sham - add a flag to not completely full polyfills
|
|
890
|
+
options.enumerable - export as enumerable property
|
|
891
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
892
|
+
options.name - the .name of the function if it does not match the key
|
|
866
893
|
*/
|
|
867
894
|
var _export = function (options, source) {
|
|
868
895
|
var TARGET = options.target;
|
|
@@ -870,15 +897,15 @@ var _export = function (options, source) {
|
|
|
870
897
|
var STATIC = options.stat;
|
|
871
898
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
872
899
|
if (GLOBAL) {
|
|
873
|
-
target = global$
|
|
900
|
+
target = global$6;
|
|
874
901
|
} else if (STATIC) {
|
|
875
|
-
target = global$
|
|
902
|
+
target = global$6[TARGET] || defineGlobalProperty(TARGET, {});
|
|
876
903
|
} else {
|
|
877
|
-
target = (global$
|
|
904
|
+
target = (global$6[TARGET] || {}).prototype;
|
|
878
905
|
}
|
|
879
906
|
if (target) for (key in source) {
|
|
880
907
|
sourceProperty = source[key];
|
|
881
|
-
if (options.
|
|
908
|
+
if (options.dontCallGetSet) {
|
|
882
909
|
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
883
910
|
targetProperty = descriptor && descriptor.value;
|
|
884
911
|
} else targetProperty = target[key];
|
|
@@ -892,26 +919,25 @@ var _export = function (options, source) {
|
|
|
892
919
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
893
920
|
createNonEnumerableProperty$1(sourceProperty, 'sham', true);
|
|
894
921
|
}
|
|
895
|
-
|
|
896
|
-
redefine$2(target, key, sourceProperty, options);
|
|
922
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
897
923
|
}
|
|
898
|
-
};var uncurryThis$
|
|
924
|
+
};var uncurryThis$a = functionUncurryThis;
|
|
899
925
|
var aCallable = aCallable$2;
|
|
900
|
-
var NATIVE_BIND = functionBindNative;
|
|
926
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
901
927
|
|
|
902
|
-
var bind$1 = uncurryThis$
|
|
928
|
+
var bind$1 = uncurryThis$a(uncurryThis$a.bind);
|
|
903
929
|
|
|
904
930
|
// optional / simple context binding
|
|
905
931
|
var functionBindContext = function (fn, that) {
|
|
906
932
|
aCallable(fn);
|
|
907
|
-
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
933
|
+
return that === undefined ? fn : NATIVE_BIND$1 ? bind$1(fn, that) : function (/* ...args */) {
|
|
908
934
|
return fn.apply(that, arguments);
|
|
909
935
|
};
|
|
910
936
|
};var classof$4 = classofRaw$1;
|
|
911
937
|
|
|
912
938
|
// `IsArray` abstract operation
|
|
913
939
|
// https://tc39.es/ecma262/#sec-isarray
|
|
914
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
940
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
915
941
|
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
916
942
|
return classof$4(argument) == 'Array';
|
|
917
943
|
};var wellKnownSymbol$3 = wellKnownSymbol$5;
|
|
@@ -921,14 +947,13 @@ var test = {};
|
|
|
921
947
|
|
|
922
948
|
test[TO_STRING_TAG$1] = 'z';
|
|
923
949
|
|
|
924
|
-
var toStringTagSupport = String(test) === '[object z]';var
|
|
925
|
-
var
|
|
926
|
-
var isCallable$4 = isCallable$e;
|
|
950
|
+
var toStringTagSupport = String(test) === '[object z]';var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
951
|
+
var isCallable$5 = isCallable$g;
|
|
927
952
|
var classofRaw = classofRaw$1;
|
|
928
953
|
var wellKnownSymbol$2 = wellKnownSymbol$5;
|
|
929
954
|
|
|
930
955
|
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
931
|
-
var Object
|
|
956
|
+
var $Object = Object;
|
|
932
957
|
|
|
933
958
|
// ES3 wrong here
|
|
934
959
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -945,14 +970,14 @@ var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
|
945
970
|
var O, tag, result;
|
|
946
971
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
947
972
|
// @@toStringTag case
|
|
948
|
-
: typeof (tag = tryGet(O = Object
|
|
973
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
949
974
|
// builtinTag case
|
|
950
975
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
951
976
|
// ES3 arguments fallback
|
|
952
|
-
: (result = classofRaw(O)) == 'Object' && isCallable$
|
|
953
|
-
};var uncurryThis$
|
|
954
|
-
var fails$
|
|
955
|
-
var isCallable$
|
|
977
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
978
|
+
};var uncurryThis$9 = functionUncurryThis;
|
|
979
|
+
var fails$4 = fails$d;
|
|
980
|
+
var isCallable$4 = isCallable$g;
|
|
956
981
|
var classof$2 = classof$3;
|
|
957
982
|
var getBuiltIn$1 = getBuiltIn$5;
|
|
958
983
|
var inspectSource = inspectSource$3;
|
|
@@ -961,11 +986,11 @@ var noop = function () { /* empty */ };
|
|
|
961
986
|
var empty = [];
|
|
962
987
|
var construct = getBuiltIn$1('Reflect', 'construct');
|
|
963
988
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
964
|
-
var exec = uncurryThis$
|
|
989
|
+
var exec = uncurryThis$9(constructorRegExp.exec);
|
|
965
990
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
966
991
|
|
|
967
992
|
var isConstructorModern = function isConstructor(argument) {
|
|
968
|
-
if (!isCallable$
|
|
993
|
+
if (!isCallable$4(argument)) return false;
|
|
969
994
|
try {
|
|
970
995
|
construct(noop, empty, argument);
|
|
971
996
|
return true;
|
|
@@ -975,7 +1000,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
975
1000
|
};
|
|
976
1001
|
|
|
977
1002
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
978
|
-
if (!isCallable$
|
|
1003
|
+
if (!isCallable$4(argument)) return false;
|
|
979
1004
|
switch (classof$2(argument)) {
|
|
980
1005
|
case 'AsyncFunction':
|
|
981
1006
|
case 'GeneratorFunction':
|
|
@@ -995,20 +1020,19 @@ isConstructorLegacy.sham = true;
|
|
|
995
1020
|
|
|
996
1021
|
// `IsConstructor` abstract operation
|
|
997
1022
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
998
|
-
var isConstructor$1 = !construct || fails$
|
|
1023
|
+
var isConstructor$1 = !construct || fails$4(function () {
|
|
999
1024
|
var called;
|
|
1000
1025
|
return isConstructorModern(isConstructorModern.call)
|
|
1001
1026
|
|| !isConstructorModern(Object)
|
|
1002
1027
|
|| !isConstructorModern(function () { called = true; })
|
|
1003
1028
|
|| called;
|
|
1004
|
-
}) ? isConstructorLegacy : isConstructorModern;var
|
|
1005
|
-
var isArray$1 = isArray$2;
|
|
1029
|
+
}) ? isConstructorLegacy : isConstructorModern;var isArray$1 = isArray$2;
|
|
1006
1030
|
var isConstructor = isConstructor$1;
|
|
1007
1031
|
var isObject$2 = isObject$8;
|
|
1008
1032
|
var wellKnownSymbol$1 = wellKnownSymbol$5;
|
|
1009
1033
|
|
|
1010
1034
|
var SPECIES = wellKnownSymbol$1('species');
|
|
1011
|
-
var Array
|
|
1035
|
+
var $Array = Array;
|
|
1012
1036
|
|
|
1013
1037
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
1014
1038
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
@@ -1017,12 +1041,12 @@ var arraySpeciesConstructor$1 = function (originalArray) {
|
|
|
1017
1041
|
if (isArray$1(originalArray)) {
|
|
1018
1042
|
C = originalArray.constructor;
|
|
1019
1043
|
// cross-realm fallback
|
|
1020
|
-
if (isConstructor(C) && (C === Array
|
|
1044
|
+
if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
|
|
1021
1045
|
else if (isObject$2(C)) {
|
|
1022
1046
|
C = C[SPECIES];
|
|
1023
1047
|
if (C === null) C = undefined;
|
|
1024
1048
|
}
|
|
1025
|
-
} return C === undefined ? Array
|
|
1049
|
+
} return C === undefined ? $Array : C;
|
|
1026
1050
|
};var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
1027
1051
|
|
|
1028
1052
|
// `ArraySpeciesCreate` abstract operation
|
|
@@ -1030,13 +1054,13 @@ var arraySpeciesConstructor$1 = function (originalArray) {
|
|
|
1030
1054
|
var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
1031
1055
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
1032
1056
|
};var bind = functionBindContext;
|
|
1033
|
-
var uncurryThis$
|
|
1057
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1034
1058
|
var IndexedObject = indexedObject;
|
|
1035
1059
|
var toObject = toObject$2;
|
|
1036
1060
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1037
1061
|
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
1038
1062
|
|
|
1039
|
-
var push$1 = uncurryThis$
|
|
1063
|
+
var push$1 = uncurryThis$8([].push);
|
|
1040
1064
|
|
|
1041
1065
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
1042
1066
|
var createMethod$2 = function (TYPE) {
|
|
@@ -1102,11 +1126,11 @@ var arrayIteration = {
|
|
|
1102
1126
|
// https://github.com/tc39/proposal-array-filtering
|
|
1103
1127
|
filterReject: createMethod$2(7)
|
|
1104
1128
|
};'use strict';
|
|
1105
|
-
var fails$
|
|
1129
|
+
var fails$3 = fails$d;
|
|
1106
1130
|
|
|
1107
1131
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
1108
1132
|
var method = [][METHOD_NAME];
|
|
1109
|
-
return !!method && fails$
|
|
1133
|
+
return !!method && fails$3(function () {
|
|
1110
1134
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1111
1135
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1112
1136
|
});
|
|
@@ -1120,15 +1144,15 @@ var STRICT_METHOD = arrayMethodIsStrict('forEach');
|
|
|
1120
1144
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1121
1145
|
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
1122
1146
|
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1123
|
-
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1147
|
+
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
|
1124
1148
|
} : [].forEach;'use strict';
|
|
1125
|
-
var $$
|
|
1149
|
+
var $$6 = _export;
|
|
1126
1150
|
var forEach$1 = arrayForEach;
|
|
1127
1151
|
|
|
1128
1152
|
// `Array.prototype.forEach` method
|
|
1129
1153
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1130
|
-
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1131
|
-
$$
|
|
1154
|
+
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
|
1155
|
+
$$6({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
|
|
1132
1156
|
forEach: forEach$1
|
|
1133
1157
|
});var es_object_toString = {};'use strict';
|
|
1134
1158
|
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
@@ -1139,13 +1163,13 @@ var classof$1 = classof$3;
|
|
|
1139
1163
|
var objectToString$1 = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
1140
1164
|
return '[object ' + classof$1(this) + ']';
|
|
1141
1165
|
};var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1142
|
-
var
|
|
1143
|
-
var toString$
|
|
1166
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1167
|
+
var toString$4 = objectToString$1;
|
|
1144
1168
|
|
|
1145
1169
|
// `Object.prototype.toString` method
|
|
1146
1170
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
1147
1171
|
if (!TO_STRING_TAG_SUPPORT) {
|
|
1148
|
-
|
|
1172
|
+
defineBuiltIn$1(Object.prototype, 'toString', toString$4, { unsafe: true });
|
|
1149
1173
|
}var web_domCollections_forEach = {};// iterable DOM collections
|
|
1150
1174
|
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1151
1175
|
var domIterables = {
|
|
@@ -1186,11 +1210,11 @@ var documentCreateElement$1 = documentCreateElement$2;
|
|
|
1186
1210
|
var classList = documentCreateElement$1('span').classList;
|
|
1187
1211
|
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1188
1212
|
|
|
1189
|
-
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;var global$
|
|
1213
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;var global$5 = global$f;
|
|
1190
1214
|
var DOMIterables = domIterables;
|
|
1191
1215
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1192
1216
|
var forEach = arrayForEach;
|
|
1193
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
1217
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
|
1194
1218
|
|
|
1195
1219
|
var handlePrototype = function (CollectionPrototype) {
|
|
1196
1220
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
@@ -1203,7 +1227,7 @@ var handlePrototype = function (CollectionPrototype) {
|
|
|
1203
1227
|
|
|
1204
1228
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1205
1229
|
if (DOMIterables[COLLECTION_NAME]) {
|
|
1206
|
-
handlePrototype(global$
|
|
1230
|
+
handlePrototype(global$5[COLLECTION_NAME] && global$5[COLLECTION_NAME].prototype);
|
|
1207
1231
|
}
|
|
1208
1232
|
}
|
|
1209
1233
|
|
|
@@ -1212,17 +1236,17 @@ var enumBugKeys$1 = enumBugKeys$3;
|
|
|
1212
1236
|
|
|
1213
1237
|
// `Object.keys` method
|
|
1214
1238
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1215
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1239
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
1216
1240
|
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1217
1241
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1218
1242
|
};var DESCRIPTORS$3 = descriptors;
|
|
1219
|
-
var uncurryThis$
|
|
1243
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1220
1244
|
var objectKeys$1 = objectKeys$2;
|
|
1221
1245
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1222
1246
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
1223
1247
|
|
|
1224
|
-
var propertyIsEnumerable = uncurryThis$
|
|
1225
|
-
var push = uncurryThis$
|
|
1248
|
+
var propertyIsEnumerable = uncurryThis$7($propertyIsEnumerable);
|
|
1249
|
+
var push = uncurryThis$7([].push);
|
|
1226
1250
|
|
|
1227
1251
|
// `Object.{ entries, values }` methods implementation
|
|
1228
1252
|
var createMethod$1 = function (TO_ENTRIES) {
|
|
@@ -1250,12 +1274,12 @@ var objectToArray = {
|
|
|
1250
1274
|
// `Object.values` method
|
|
1251
1275
|
// https://tc39.es/ecma262/#sec-object.values
|
|
1252
1276
|
values: createMethod$1(false)
|
|
1253
|
-
};var $$
|
|
1277
|
+
};var $$5 = _export;
|
|
1254
1278
|
var $entries = objectToArray.entries;
|
|
1255
1279
|
|
|
1256
1280
|
// `Object.entries` method
|
|
1257
1281
|
// https://tc39.es/ecma262/#sec-object.entries
|
|
1258
|
-
$$
|
|
1282
|
+
$$5({ target: 'Object', stat: true }, {
|
|
1259
1283
|
entries: function entries(O) {
|
|
1260
1284
|
return $entries(O);
|
|
1261
1285
|
}
|
|
@@ -1271,7 +1295,29 @@ function getTarget() {
|
|
|
1271
1295
|
: {};
|
|
1272
1296
|
}
|
|
1273
1297
|
const isProxyAvailable = typeof Proxy === 'function';const HOOK_SETUP = 'devtools-plugin:setup';
|
|
1274
|
-
const HOOK_PLUGIN_SETTINGS_SET = 'plugin:settings:set';
|
|
1298
|
+
const HOOK_PLUGIN_SETTINGS_SET = 'plugin:settings:set';let supported;
|
|
1299
|
+
let perf;
|
|
1300
|
+
function isPerformanceSupported() {
|
|
1301
|
+
var _a;
|
|
1302
|
+
if (supported !== undefined) {
|
|
1303
|
+
return supported;
|
|
1304
|
+
}
|
|
1305
|
+
if (typeof window !== 'undefined' && window.performance) {
|
|
1306
|
+
supported = true;
|
|
1307
|
+
perf = window.performance;
|
|
1308
|
+
}
|
|
1309
|
+
else if (typeof global !== 'undefined' && ((_a = global.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
|
|
1310
|
+
supported = true;
|
|
1311
|
+
perf = global.perf_hooks.performance;
|
|
1312
|
+
}
|
|
1313
|
+
else {
|
|
1314
|
+
supported = false;
|
|
1315
|
+
}
|
|
1316
|
+
return supported;
|
|
1317
|
+
}
|
|
1318
|
+
function now() {
|
|
1319
|
+
return isPerformanceSupported() ? perf.now() : Date.now();
|
|
1320
|
+
}class ApiProxy {
|
|
1275
1321
|
constructor(plugin, hook) {
|
|
1276
1322
|
this.target = null;
|
|
1277
1323
|
this.targetQueue = [];
|
|
@@ -1308,6 +1354,9 @@ const HOOK_PLUGIN_SETTINGS_SET = 'plugin:settings:set';class ApiProxy {
|
|
|
1308
1354
|
}
|
|
1309
1355
|
currentSettings = value;
|
|
1310
1356
|
},
|
|
1357
|
+
now() {
|
|
1358
|
+
return now();
|
|
1359
|
+
},
|
|
1311
1360
|
};
|
|
1312
1361
|
if (hook) {
|
|
1313
1362
|
hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
|
|
@@ -1392,12 +1441,12 @@ const HOOK_PLUGIN_SETTINGS_SET = 'plugin:settings:set';class ApiProxy {
|
|
|
1392
1441
|
setupFn(proxy.proxiedTarget);
|
|
1393
1442
|
}
|
|
1394
1443
|
}/**
|
|
1395
|
-
* vee-validate v4.5.
|
|
1444
|
+
* vee-validate v4.5.11
|
|
1396
1445
|
* (c) 2022 Abdelrahman Awad
|
|
1397
1446
|
* @license MIT
|
|
1398
1447
|
*/
|
|
1399
1448
|
|
|
1400
|
-
function isCallable$
|
|
1449
|
+
function isCallable$3(fn) {
|
|
1401
1450
|
return typeof fn === 'function';
|
|
1402
1451
|
}
|
|
1403
1452
|
function isNullOrUndefined(value) {
|
|
@@ -1431,7 +1480,7 @@ function resolveRule(id) {
|
|
|
1431
1480
|
* Guards from extension violations.
|
|
1432
1481
|
*/
|
|
1433
1482
|
function guardExtend(id, validator) {
|
|
1434
|
-
if (isCallable$
|
|
1483
|
+
if (isCallable$3(validator)) {
|
|
1435
1484
|
return;
|
|
1436
1485
|
}
|
|
1437
1486
|
throw new Error(`Extension Error: The validator '${id}' must be a function.`);
|
|
@@ -1442,7 +1491,7 @@ const FieldContextKey = Symbol('vee-validate-field-instance');
|
|
|
1442
1491
|
const IS_ABSENT = Symbol('Default empty value');
|
|
1443
1492
|
|
|
1444
1493
|
function isLocator(value) {
|
|
1445
|
-
return isCallable$
|
|
1494
|
+
return isCallable$3(value) && !!value.__locatorRef;
|
|
1446
1495
|
}
|
|
1447
1496
|
/**
|
|
1448
1497
|
* Checks if an tag name is a native HTML tag and not a Vue component
|
|
@@ -1457,7 +1506,7 @@ function isFileInputNode(tag, attrs) {
|
|
|
1457
1506
|
return isHTMLTag(tag) && attrs.type === 'file';
|
|
1458
1507
|
}
|
|
1459
1508
|
function isYupValidator(value) {
|
|
1460
|
-
return !!value && isCallable$
|
|
1509
|
+
return !!value && isCallable$3(value.validate);
|
|
1461
1510
|
}
|
|
1462
1511
|
function hasCheckedAttr(type) {
|
|
1463
1512
|
return type === 'checkbox' || type === 'radio';
|
|
@@ -1517,7 +1566,7 @@ function isEvent(evt) {
|
|
|
1517
1566
|
if (!evt) {
|
|
1518
1567
|
return false;
|
|
1519
1568
|
}
|
|
1520
|
-
if (typeof Event !== 'undefined' && isCallable$
|
|
1569
|
+
if (typeof Event !== 'undefined' && isCallable$3(Event) && evt instanceof Event) {
|
|
1521
1570
|
return true;
|
|
1522
1571
|
}
|
|
1523
1572
|
// this is for IE and Cypress #3161
|
|
@@ -1894,18 +1943,34 @@ async function _validate(field, value) {
|
|
|
1894
1943
|
if (isYupValidator(field.rules)) {
|
|
1895
1944
|
return validateFieldWithYup(value, field.rules, { bails: field.bails });
|
|
1896
1945
|
}
|
|
1897
|
-
// if a generic function
|
|
1898
|
-
if (isCallable$
|
|
1946
|
+
// if a generic function or chain of generic functions
|
|
1947
|
+
if (isCallable$3(field.rules) || Array.isArray(field.rules)) {
|
|
1899
1948
|
const ctx = {
|
|
1900
1949
|
field: field.name,
|
|
1901
1950
|
form: field.formData,
|
|
1902
1951
|
value: value,
|
|
1903
1952
|
};
|
|
1904
|
-
|
|
1905
|
-
const
|
|
1906
|
-
const
|
|
1953
|
+
// Normalize the pipeline
|
|
1954
|
+
const pipeline = Array.isArray(field.rules) ? field.rules : [field.rules];
|
|
1955
|
+
const length = pipeline.length;
|
|
1956
|
+
const errors = [];
|
|
1957
|
+
for (let i = 0; i < length; i++) {
|
|
1958
|
+
const rule = pipeline[i];
|
|
1959
|
+
const result = await rule(value, ctx);
|
|
1960
|
+
const isValid = typeof result !== 'string' && result;
|
|
1961
|
+
if (isValid) {
|
|
1962
|
+
continue;
|
|
1963
|
+
}
|
|
1964
|
+
const message = typeof result === 'string' ? result : _generateFieldError(ctx);
|
|
1965
|
+
errors.push(message);
|
|
1966
|
+
if (field.bails) {
|
|
1967
|
+
return {
|
|
1968
|
+
errors,
|
|
1969
|
+
};
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1907
1972
|
return {
|
|
1908
|
-
errors
|
|
1973
|
+
errors,
|
|
1909
1974
|
};
|
|
1910
1975
|
}
|
|
1911
1976
|
const normalizedContext = Object.assign(Object.assign({}, field), { rules: normalizeRules(field.rules) });
|
|
@@ -2690,6 +2755,8 @@ function useField(name, rules, opts) {
|
|
|
2690
2755
|
function _useField(name, rules, opts) {
|
|
2691
2756
|
const { initialValue: modelValue, validateOnMount, bails, type, checkedValue, label, validateOnValueUpdate, uncheckedValue, standalone, } = normalizeOptions(vue.unref(name), opts);
|
|
2692
2757
|
const form = !standalone ? injectWithSelf(FormContextKey) : undefined;
|
|
2758
|
+
// a flag indicating if the field is about to be removed/unmounted.
|
|
2759
|
+
let markedForRemoval = false;
|
|
2693
2760
|
const { id, value, initialValue, meta, setState, errors, errorMessage } = useFieldState(name, {
|
|
2694
2761
|
modelValue,
|
|
2695
2762
|
standalone,
|
|
@@ -2706,7 +2773,7 @@ function _useField(name, rules, opts) {
|
|
|
2706
2773
|
if (schema && !isYupValidator(schema)) {
|
|
2707
2774
|
rulesValue = extractRuleFromSchema(schema, vue.unref(name)) || rulesValue;
|
|
2708
2775
|
}
|
|
2709
|
-
if (isYupValidator(rulesValue) || isCallable$
|
|
2776
|
+
if (isYupValidator(rulesValue) || isCallable$3(rulesValue) || Array.isArray(rulesValue)) {
|
|
2710
2777
|
return rulesValue;
|
|
2711
2778
|
}
|
|
2712
2779
|
return normalizeRules(rulesValue);
|
|
@@ -2726,12 +2793,19 @@ function _useField(name, rules, opts) {
|
|
|
2726
2793
|
meta.pending = true;
|
|
2727
2794
|
meta.validated = true;
|
|
2728
2795
|
const result = await validateCurrentValue('validated-only');
|
|
2796
|
+
if (markedForRemoval) {
|
|
2797
|
+
result.valid = true;
|
|
2798
|
+
result.errors = [];
|
|
2799
|
+
}
|
|
2729
2800
|
setState({ errors: result.errors });
|
|
2730
2801
|
meta.pending = false;
|
|
2731
2802
|
return result;
|
|
2732
2803
|
}
|
|
2733
2804
|
async function validateValidStateOnly() {
|
|
2734
2805
|
const result = await validateCurrentValue('silent');
|
|
2806
|
+
if (markedForRemoval) {
|
|
2807
|
+
result.valid = true;
|
|
2808
|
+
}
|
|
2735
2809
|
meta.valid = result.valid;
|
|
2736
2810
|
return result;
|
|
2737
2811
|
}
|
|
@@ -2846,13 +2920,14 @@ function _useField(name, rules, opts) {
|
|
|
2846
2920
|
// associate the field with the given form
|
|
2847
2921
|
form.register(field);
|
|
2848
2922
|
vue.onBeforeUnmount(() => {
|
|
2923
|
+
markedForRemoval = true;
|
|
2849
2924
|
form.unregister(field);
|
|
2850
2925
|
});
|
|
2851
2926
|
// extract cross-field dependencies in a computed prop
|
|
2852
2927
|
const dependencies = vue.computed(() => {
|
|
2853
2928
|
const rulesVal = normalizedRules.value;
|
|
2854
2929
|
// is falsy, a function schema or a yup schema
|
|
2855
|
-
if (!rulesVal || isCallable$
|
|
2930
|
+
if (!rulesVal || isCallable$3(rulesVal) || isYupValidator(rulesVal) || Array.isArray(rulesVal)) {
|
|
2856
2931
|
return {};
|
|
2857
2932
|
}
|
|
2858
2933
|
return Object.keys(rulesVal).reduce((acc, rule) => {
|
|
@@ -4387,14 +4462,14 @@ function useSubmitForm(cb) {
|
|
|
4387
4462
|
};
|
|
4388
4463
|
}var es_array_includes = {};var objectDefineProperties = {};var DESCRIPTORS$2 = descriptors;
|
|
4389
4464
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
4390
|
-
var definePropertyModule
|
|
4465
|
+
var definePropertyModule = objectDefineProperty;
|
|
4391
4466
|
var anObject$2 = anObject$5;
|
|
4392
4467
|
var toIndexedObject = toIndexedObject$5;
|
|
4393
4468
|
var objectKeys = objectKeys$2;
|
|
4394
4469
|
|
|
4395
4470
|
// `Object.defineProperties` method
|
|
4396
4471
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
4397
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
4472
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
4398
4473
|
var f = objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
4399
4474
|
anObject$2(O);
|
|
4400
4475
|
var props = toIndexedObject(Properties);
|
|
@@ -4402,7 +4477,7 @@ var f = objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? O
|
|
|
4402
4477
|
var length = keys.length;
|
|
4403
4478
|
var index = 0;
|
|
4404
4479
|
var key;
|
|
4405
|
-
while (length > index) definePropertyModule
|
|
4480
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
4406
4481
|
return O;
|
|
4407
4482
|
};var getBuiltIn = getBuiltIn$5;
|
|
4408
4483
|
|
|
@@ -4478,6 +4553,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
4478
4553
|
|
|
4479
4554
|
// `Object.create` method
|
|
4480
4555
|
// https://tc39.es/ecma262/#sec-object.create
|
|
4556
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
4481
4557
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
4482
4558
|
var result;
|
|
4483
4559
|
if (O !== null) {
|
|
@@ -4490,7 +4566,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
4490
4566
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
4491
4567
|
};var wellKnownSymbol = wellKnownSymbol$5;
|
|
4492
4568
|
var create = objectCreate;
|
|
4493
|
-
var
|
|
4569
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
4494
4570
|
|
|
4495
4571
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
4496
4572
|
var ArrayPrototype = Array.prototype;
|
|
@@ -4498,7 +4574,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
4498
4574
|
// Array.prototype[@@unscopables]
|
|
4499
4575
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
4500
4576
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
4501
|
-
|
|
4577
|
+
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
4502
4578
|
configurable: true,
|
|
4503
4579
|
value: create(null)
|
|
4504
4580
|
});
|
|
@@ -4508,13 +4584,19 @@ if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
|
4508
4584
|
var addToUnscopables$2 = function (key) {
|
|
4509
4585
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
4510
4586
|
};'use strict';
|
|
4511
|
-
var $$
|
|
4587
|
+
var $$4 = _export;
|
|
4512
4588
|
var $includes = arrayIncludes.includes;
|
|
4589
|
+
var fails$2 = fails$d;
|
|
4513
4590
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
4514
4591
|
|
|
4592
|
+
// FF99+ bug
|
|
4593
|
+
var BROKEN_ON_SPARSE = fails$2(function () {
|
|
4594
|
+
return !Array(1).includes();
|
|
4595
|
+
});
|
|
4596
|
+
|
|
4515
4597
|
// `Array.prototype.includes` method
|
|
4516
4598
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4517
|
-
$$
|
|
4599
|
+
$$4({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
4518
4600
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
4519
4601
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
4520
4602
|
}
|
|
@@ -4571,10 +4653,10 @@ addToUnscopables$1('includes');var script$7 = vue.defineComponent({
|
|
|
4571
4653
|
},
|
|
4572
4654
|
|
|
4573
4655
|
/**
|
|
4574
|
-
* Validation rules. Accepts
|
|
4656
|
+
* Validation rules. Accepts an object, string schema or validation function.
|
|
4575
4657
|
*/
|
|
4576
4658
|
rules: {
|
|
4577
|
-
type: [
|
|
4659
|
+
type: [Object, String, Function]
|
|
4578
4660
|
},
|
|
4579
4661
|
|
|
4580
4662
|
/**
|
|
@@ -4590,9 +4672,17 @@ addToUnscopables$1('includes');var script$7 = vue.defineComponent({
|
|
|
4590
4672
|
*/
|
|
4591
4673
|
hint: {
|
|
4592
4674
|
type: String
|
|
4675
|
+
},
|
|
4676
|
+
|
|
4677
|
+
/**
|
|
4678
|
+
* The autocomplete input attribute
|
|
4679
|
+
*/
|
|
4680
|
+
autocomplete: {
|
|
4681
|
+
type: String
|
|
4593
4682
|
}
|
|
4594
4683
|
},
|
|
4595
4684
|
setup: function setup(props, ctx) {
|
|
4685
|
+
var inputBaseClass = vue.ref("border-2 border-grey-lightest rounded-lg focus:outline-none focus:ring-2 focus:ring-primary block w-full p-2.5");
|
|
4596
4686
|
var inputValue = vue.computed({
|
|
4597
4687
|
get: function get() {
|
|
4598
4688
|
return props.modelValue;
|
|
@@ -4602,24 +4692,25 @@ addToUnscopables$1('includes');var script$7 = vue.defineComponent({
|
|
|
4602
4692
|
}
|
|
4603
4693
|
});
|
|
4604
4694
|
return {
|
|
4695
|
+
inputBaseClass: inputBaseClass,
|
|
4605
4696
|
inputValue: inputValue
|
|
4606
4697
|
};
|
|
4607
4698
|
}
|
|
4608
4699
|
});var es_function_name = {};var DESCRIPTORS$1 = descriptors;
|
|
4609
4700
|
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
4610
|
-
var uncurryThis$
|
|
4701
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
4611
4702
|
var defineProperty$1 = objectDefineProperty.f;
|
|
4612
4703
|
|
|
4613
|
-
var FunctionPrototype = Function.prototype;
|
|
4614
|
-
var functionToString = uncurryThis$
|
|
4704
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
4705
|
+
var functionToString = uncurryThis$6(FunctionPrototype$1.toString);
|
|
4615
4706
|
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
4616
|
-
var regExpExec = uncurryThis$
|
|
4707
|
+
var regExpExec = uncurryThis$6(nameRE.exec);
|
|
4617
4708
|
var NAME = 'name';
|
|
4618
4709
|
|
|
4619
4710
|
// Function instances `.name` property
|
|
4620
4711
|
// https://tc39.es/ecma262/#sec-function-instances-name
|
|
4621
4712
|
if (DESCRIPTORS$1 && !FUNCTION_NAME_EXISTS) {
|
|
4622
|
-
defineProperty$1(FunctionPrototype, NAME, {
|
|
4713
|
+
defineProperty$1(FunctionPrototype$1, NAME, {
|
|
4623
4714
|
configurable: true,
|
|
4624
4715
|
get: function () {
|
|
4625
4716
|
try {
|
|
@@ -4649,7 +4740,7 @@ var _hoisted_7$3 = {
|
|
|
4649
4740
|
key: 0,
|
|
4650
4741
|
"class": "flex text-black absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none"
|
|
4651
4742
|
};
|
|
4652
|
-
var _hoisted_8$3 = ["placeholder", "type", "readonly", "disabled"];
|
|
4743
|
+
var _hoisted_8$3 = ["placeholder", "type", "readonly", "disabled", "autocomplete"];
|
|
4653
4744
|
|
|
4654
4745
|
var _hoisted_9$2 = /*#__PURE__*/vue.createElementVNode("svg", {
|
|
4655
4746
|
fill: "currentColor",
|
|
@@ -4667,7 +4758,7 @@ var _hoisted_11$2 = {
|
|
|
4667
4758
|
key: 1,
|
|
4668
4759
|
"class": "flex text-black absolute w-10 h-full inset-y-0 right-0 items-center pr-3"
|
|
4669
4760
|
};
|
|
4670
|
-
var _hoisted_12
|
|
4761
|
+
var _hoisted_12 = {
|
|
4671
4762
|
"class": "italic text-right text-sm font-medium mt-2 min-h-[21px]"
|
|
4672
4763
|
};
|
|
4673
4764
|
var _hoisted_13 = {
|
|
@@ -4702,10 +4793,11 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4702
4793
|
type: _ctx.type,
|
|
4703
4794
|
readonly: _ctx.readonly,
|
|
4704
4795
|
disabled: _ctx.readonly,
|
|
4705
|
-
|
|
4796
|
+
autocomplete: _ctx.autocomplete,
|
|
4797
|
+
"class": [{
|
|
4706
4798
|
'pl-10': !!_ctx.$slots.prefix,
|
|
4707
4799
|
'pr-20': !!_ctx.$slots.suffix
|
|
4708
|
-
}]
|
|
4800
|
+
}, _ctx.inputBaseClass]
|
|
4709
4801
|
}), null, 16, _hoisted_8$3), vue.createVNode(vue.Transition, {
|
|
4710
4802
|
name: "fwFadeIn"
|
|
4711
4803
|
}, {
|
|
@@ -4716,7 +4808,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4716
4808
|
}, _hoisted_10$2, 2)) : vue.createCommentVNode("", true)];
|
|
4717
4809
|
}),
|
|
4718
4810
|
_: 2
|
|
4719
|
-
}, 1024), _ctx.$slots.suffix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$2, [vue.renderSlot(_ctx.$slots, "suffix")])) : vue.createCommentVNode("", true)]), vue.createElementVNode("div", _hoisted_12
|
|
4811
|
+
}, 1024), _ctx.$slots.suffix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$2, [vue.renderSlot(_ctx.$slots, "suffix")])) : vue.createCommentVNode("", true)]), vue.createElementVNode("div", _hoisted_12, [vue.createVNode(vue.Transition, {
|
|
4720
4812
|
name: "fwFadeIn",
|
|
4721
4813
|
mode: "out-in"
|
|
4722
4814
|
}, {
|
|
@@ -4777,10 +4869,10 @@ styleInject(css_248z$4);script$7.render = render$7;var script$6 = vue.defineComp
|
|
|
4777
4869
|
},
|
|
4778
4870
|
|
|
4779
4871
|
/**
|
|
4780
|
-
* Validation rules. Accepts
|
|
4872
|
+
* Validation rules. Accepts an object, stringm schema or validation function.
|
|
4781
4873
|
*/
|
|
4782
4874
|
rules: {
|
|
4783
|
-
type: [
|
|
4875
|
+
type: [Object, String, Function]
|
|
4784
4876
|
},
|
|
4785
4877
|
|
|
4786
4878
|
/**
|
|
@@ -4790,7 +4882,11 @@ styleInject(css_248z$4);script$7.render = render$7;var script$6 = vue.defineComp
|
|
|
4790
4882
|
type: String
|
|
4791
4883
|
}
|
|
4792
4884
|
}
|
|
4793
|
-
});var
|
|
4885
|
+
});var _withScopeId$1 = function _withScopeId(n) {
|
|
4886
|
+
return vue.pushScopeId("data-v-7423717e"), n = n(), vue.popScopeId(), n;
|
|
4887
|
+
};
|
|
4888
|
+
|
|
4889
|
+
var _hoisted_1$5 = {
|
|
4794
4890
|
"class": "fw-checkbox w-full"
|
|
4795
4891
|
};
|
|
4796
4892
|
var _hoisted_2$4 = {
|
|
@@ -4847,9 +4943,10 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4847
4943
|
}),
|
|
4848
4944
|
_: 1
|
|
4849
4945
|
}, 8, ["name", "value", "rules"])]);
|
|
4850
|
-
}var css_248z$3 = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}.fw-checkbox input
|
|
4851
|
-
var stylesheet$3 = ".fwFadeIn-enter-active{-webkit-animation:fwFadeIn .35s;animation:fwFadeIn .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active{animation:fwFadeIn .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn{0%{opacity:0}to{opacity:1}}.fw-checkbox input
|
|
4852
|
-
styleInject(css_248z$3);script$6.render = render$6;
|
|
4946
|
+
}var css_248z$3 = ".fwFadeIn-enter-active[data-v-7423717e]{-webkit-animation:fwFadeIn-7423717e .35s;animation:fwFadeIn-7423717e .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-7423717e]{animation:fwFadeIn-7423717e .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-7423717e{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-7423717e{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-7423717e]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;flex-shrink:0;-webkit-transition:background .2s ease-in;-o-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input[data-v-7423717e]:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
|
|
4947
|
+
var stylesheet$3 = ".fwFadeIn-enter-active[data-v-7423717e]{-webkit-animation:fwFadeIn-7423717e .35s;animation:fwFadeIn-7423717e .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-7423717e]{animation:fwFadeIn-7423717e .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-7423717e{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-7423717e{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-7423717e]{-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;flex-shrink:0;-webkit-transition:background .2s ease-in;-o-transition:background .2s ease-in;transition:background .2s ease-in;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.fw-checkbox input[data-v-7423717e]:checked{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='3 3 10 10' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}";
|
|
4948
|
+
styleInject(css_248z$3);script$6.render = render$6;
|
|
4949
|
+
script$6.__scopeId = "data-v-7423717e";var script$5 = vue.defineComponent({
|
|
4853
4950
|
name: 'FwCard',
|
|
4854
4951
|
props: {
|
|
4855
4952
|
/**
|
|
@@ -4879,13 +4976,16 @@ styleInject(css_248z$3);script$6.render = render$6;var script$5 = vue.defineComp
|
|
|
4879
4976
|
href: String
|
|
4880
4977
|
},
|
|
4881
4978
|
setup: function setup(props) {
|
|
4979
|
+
var linkClass = vue.ref( // eslint-disable-next-line max-len
|
|
4980
|
+
"block cursor-pointer focus:outline-none ring-offset-3 focus:ring focus:ring-primary transform-none transition-transform hover:-translate-y-1");
|
|
4882
4981
|
var componentName = vue.computed(function () {
|
|
4883
4982
|
if (props.to) return 'router-link';
|
|
4884
4983
|
if (props.href) return 'a';
|
|
4885
4984
|
return 'div';
|
|
4886
4985
|
});
|
|
4887
4986
|
return {
|
|
4888
|
-
componentName: componentName
|
|
4987
|
+
componentName: componentName,
|
|
4988
|
+
linkClass: linkClass
|
|
4889
4989
|
};
|
|
4890
4990
|
}
|
|
4891
4991
|
});var _hoisted_1$4 = {
|
|
@@ -4908,7 +5008,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4908
5008
|
to: _ctx.to ? _ctx.to : null,
|
|
4909
5009
|
href: _ctx.href ? _ctx.href : null,
|
|
4910
5010
|
tabindex: _ctx.to ? 0 : null,
|
|
4911
|
-
"class": vue.normalizeClass(["fw-card shadow-card rounded-lg", _ctx.to || _ctx.href ?
|
|
5011
|
+
"class": vue.normalizeClass(["fw-card shadow-card rounded-lg", _ctx.to || _ctx.href ? _ctx.linkClass : ''])
|
|
4912
5012
|
}, {
|
|
4913
5013
|
"default": vue.withCtx(function () {
|
|
4914
5014
|
return [_ctx.title || _ctx.prefixTitle ? (vue.openBlock(), vue.createElementBlock("h4", _hoisted_1$4, [_ctx.prefixTitle ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$3, vue.toDisplayString(_ctx.prefixTitle), 1)) : vue.createCommentVNode("", true), _ctx.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$3, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true)])) : vue.createCommentVNode("", true), _ctx.$slots["default"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [vue.renderSlot(_ctx.$slots, "default")])) : vue.createCommentVNode("", true)];
|
|
@@ -4966,6 +5066,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4966
5066
|
}
|
|
4967
5067
|
},
|
|
4968
5068
|
setup: function setup(props, ctx) {
|
|
5069
|
+
var baseClass = vue.ref( // eslint-disable-next-line max-len
|
|
5070
|
+
"inline-block text-center cursor-pointer whitespace-nowrap border-2 focus:outline-0 focus-visible:outline-0 focus:ring-none ring-offset-2 focus-visible:ring");
|
|
4969
5071
|
var buttonClasses = vue.ref({
|
|
4970
5072
|
primary: {
|
|
4971
5073
|
text: 'text-tertiary hover:text-primary active:text-primary',
|
|
@@ -4998,7 +5100,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4998
5100
|
border: 'border-none focus-visible:ring-primary'
|
|
4999
5101
|
},
|
|
5000
5102
|
text: {
|
|
5001
|
-
text: 'text-body hover:text-white active:text-white',
|
|
5103
|
+
text: 'text-body font-medium hover:text-white active:text-white',
|
|
5002
5104
|
background: 'bg-white hover:bg-body active:bg-body',
|
|
5003
5105
|
border: 'border-transparent focus-visible:ring-body'
|
|
5004
5106
|
}
|
|
@@ -5025,6 +5127,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5025
5127
|
/**
|
|
5026
5128
|
* @event Click - Native click
|
|
5027
5129
|
*/
|
|
5130
|
+
// eslint-disable-next-line no-undef
|
|
5028
5131
|
|
|
5029
5132
|
var onClick = function onClick(e) {
|
|
5030
5133
|
return ctx.emit('click', e);
|
|
@@ -5032,6 +5135,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5032
5135
|
/**
|
|
5033
5136
|
* @event mouseover - Native hover
|
|
5034
5137
|
*/
|
|
5138
|
+
// eslint-disable-next-line no-undef
|
|
5035
5139
|
|
|
5036
5140
|
|
|
5037
5141
|
var onMouseover = function onMouseover(e) {
|
|
@@ -5040,6 +5144,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5040
5144
|
/**
|
|
5041
5145
|
* @event mouseout - Native hover out
|
|
5042
5146
|
*/
|
|
5147
|
+
// eslint-disable-next-line no-undef
|
|
5043
5148
|
|
|
5044
5149
|
|
|
5045
5150
|
var onMouseout = function onMouseout(e) {
|
|
@@ -5048,6 +5153,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5048
5153
|
/**
|
|
5049
5154
|
* @event focusin - Native focusin
|
|
5050
5155
|
*/
|
|
5156
|
+
// eslint-disable-next-line no-undef
|
|
5051
5157
|
|
|
5052
5158
|
|
|
5053
5159
|
var onFocusin = function onFocusin(e) {
|
|
@@ -5056,6 +5162,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5056
5162
|
/**
|
|
5057
5163
|
* @event focusout - Native focusout
|
|
5058
5164
|
*/
|
|
5165
|
+
// eslint-disable-next-line no-undef
|
|
5059
5166
|
|
|
5060
5167
|
|
|
5061
5168
|
var onFocusout = function onFocusout(e) {
|
|
@@ -5068,6 +5175,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5068
5175
|
return 'button';
|
|
5069
5176
|
});
|
|
5070
5177
|
return {
|
|
5178
|
+
baseClass: baseClass,
|
|
5071
5179
|
textColorClass: textColorClass,
|
|
5072
5180
|
bgColorClass: bgColorClass,
|
|
5073
5181
|
sizeClass: sizeClass,
|
|
@@ -5082,7 +5190,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5082
5190
|
}
|
|
5083
5191
|
});function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5084
5192
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tagName), {
|
|
5085
|
-
"class": vue.normalizeClass(["fw-button
|
|
5193
|
+
"class": vue.normalizeClass(["fw-button", [_ctx.baseClass, _ctx.textColorClass, _ctx.bgColorClass, _ctx.sizeClass, _ctx.borderClass, _ctx.variant === 'link' ? 'pl-0 pr-0 pt-0 pb-0 rounded-none font-normal' : 'font-bold rounded-full']]),
|
|
5086
5194
|
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
5087
5195
|
to: _ctx.to ? _ctx.to : null,
|
|
5088
5196
|
href: _ctx.href ? _ctx.href : null,
|
|
@@ -5097,10 +5205,61 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5097
5205
|
return [vue.renderSlot(_ctx.$slots, "default")];
|
|
5098
5206
|
}),
|
|
5099
5207
|
_: 3
|
|
5100
|
-
},
|
|
5208
|
+
}, 40, ["class", "type", "to", "href", "tabindex", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
5101
5209
|
}var css_248z$2 = ".fw-button{line-height:normal;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out}";
|
|
5102
5210
|
var stylesheet$2 = ".fw-button{line-height:normal;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out}";
|
|
5103
|
-
styleInject(css_248z$2);script$4.render = render$4;var
|
|
5211
|
+
styleInject(css_248z$2);script$4.render = render$4;var es_string_link = {};var classof = classof$3;
|
|
5212
|
+
|
|
5213
|
+
var $String$1 = String;
|
|
5214
|
+
|
|
5215
|
+
var toString$3 = function (argument) {
|
|
5216
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
5217
|
+
return $String$1(argument);
|
|
5218
|
+
};var uncurryThis$5 = functionUncurryThis;
|
|
5219
|
+
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
5220
|
+
var toString$2 = toString$3;
|
|
5221
|
+
|
|
5222
|
+
var quot = /"/g;
|
|
5223
|
+
var replace$1 = uncurryThis$5(''.replace);
|
|
5224
|
+
|
|
5225
|
+
// `CreateHTML` abstract operation
|
|
5226
|
+
// https://tc39.es/ecma262/#sec-createhtml
|
|
5227
|
+
var createHtml = function (string, tag, attribute, value) {
|
|
5228
|
+
var S = toString$2(requireObjectCoercible$1(string));
|
|
5229
|
+
var p1 = '<' + tag;
|
|
5230
|
+
if (attribute !== '') p1 += ' ' + attribute + '="' + replace$1(toString$2(value), quot, '"') + '"';
|
|
5231
|
+
return p1 + '>' + S + '</' + tag + '>';
|
|
5232
|
+
};var fails$1 = fails$d;
|
|
5233
|
+
|
|
5234
|
+
// check the existence of a method, lowercase
|
|
5235
|
+
// of a tag and escaping quotes in arguments
|
|
5236
|
+
var stringHtmlForced = function (METHOD_NAME) {
|
|
5237
|
+
return fails$1(function () {
|
|
5238
|
+
var test = ''[METHOD_NAME]('"');
|
|
5239
|
+
return test !== test.toLowerCase() || test.split('"').length > 3;
|
|
5240
|
+
});
|
|
5241
|
+
};'use strict';
|
|
5242
|
+
var $$3 = _export;
|
|
5243
|
+
var createHTML = createHtml;
|
|
5244
|
+
var forcedStringHTMLMethod = stringHtmlForced;
|
|
5245
|
+
|
|
5246
|
+
// `String.prototype.link` method
|
|
5247
|
+
// https://tc39.es/ecma262/#sec-string.prototype.link
|
|
5248
|
+
$$3({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {
|
|
5249
|
+
link: function link(url) {
|
|
5250
|
+
return createHTML(this, 'a', 'href', url);
|
|
5251
|
+
}
|
|
5252
|
+
});var ButtonVariantName;
|
|
5253
|
+
|
|
5254
|
+
(function (ButtonVariantName) {
|
|
5255
|
+
ButtonVariantName["primary"] = "primary";
|
|
5256
|
+
ButtonVariantName["secondary"] = "secondary";
|
|
5257
|
+
ButtonVariantName["tertiary"] = "tertiary";
|
|
5258
|
+
ButtonVariantName["error"] = "error";
|
|
5259
|
+
ButtonVariantName["success"] = "success";
|
|
5260
|
+
ButtonVariantName["text"] = "text";
|
|
5261
|
+
ButtonVariantName["link"] = "link";
|
|
5262
|
+
})(ButtonVariantName || (ButtonVariantName = {}));var script$3 = vue.defineComponent({
|
|
5104
5263
|
name: 'FwNavigationMenu',
|
|
5105
5264
|
emits: ['action'],
|
|
5106
5265
|
components: {
|
|
@@ -5124,6 +5283,8 @@ styleInject(css_248z$2);script$4.render = render$4;var script$3 = vue.defineComp
|
|
|
5124
5283
|
}
|
|
5125
5284
|
},
|
|
5126
5285
|
setup: function setup(_props, ctx) {
|
|
5286
|
+
var mobileMenuClass = vue.ref( // eslint-disable-next-line max-len
|
|
5287
|
+
"min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1");
|
|
5127
5288
|
var isMobileMenuOpen = vue.ref(false);
|
|
5128
5289
|
|
|
5129
5290
|
var toggleMobileMenu = function toggleMobileMenu() {
|
|
@@ -5135,16 +5296,18 @@ styleInject(css_248z$2);script$4.render = render$4;var script$3 = vue.defineComp
|
|
|
5135
5296
|
};
|
|
5136
5297
|
|
|
5137
5298
|
return {
|
|
5299
|
+
mobileMenuClass: mobileMenuClass,
|
|
5138
5300
|
isMobileMenuOpen: isMobileMenuOpen,
|
|
5139
5301
|
toggleMobileMenu: toggleMobileMenu,
|
|
5140
|
-
actionClicked: actionClicked
|
|
5302
|
+
actionClicked: actionClicked,
|
|
5303
|
+
ButtonVariantName: ButtonVariantName
|
|
5141
5304
|
};
|
|
5142
5305
|
}
|
|
5143
5306
|
});var _hoisted_1$3 = {
|
|
5144
5307
|
"class": "fw-nav-menu relative z-50 h-20 shadow-md"
|
|
5145
5308
|
};
|
|
5146
5309
|
var _hoisted_2$2 = {
|
|
5147
|
-
"class": "px-6 flex-1 h-full flex bg-white items-stretch justify-between"
|
|
5310
|
+
"class": "px-6 flex-1 h-full flex bg-white items-stretch justify-between max-w-6xl mx-auto"
|
|
5148
5311
|
};
|
|
5149
5312
|
var _hoisted_3$2 = {
|
|
5150
5313
|
key: 0,
|
|
@@ -5152,7 +5315,7 @@ var _hoisted_3$2 = {
|
|
|
5152
5315
|
};
|
|
5153
5316
|
var _hoisted_4$1 = {
|
|
5154
5317
|
key: 1,
|
|
5155
|
-
"class": "container hidden sm:flex items-center justify-start
|
|
5318
|
+
"class": "container hidden sm:flex items-center justify-start sm:ml-6"
|
|
5156
5319
|
};
|
|
5157
5320
|
var _hoisted_5$1 = {
|
|
5158
5321
|
"class": "flex space-x-2"
|
|
@@ -5179,10 +5342,6 @@ var _hoisted_9$1 = {
|
|
|
5179
5342
|
};
|
|
5180
5343
|
var _hoisted_10$1 = ["d"];
|
|
5181
5344
|
var _hoisted_11$1 = {
|
|
5182
|
-
key: 0,
|
|
5183
|
-
"class": "fw-nav-menu--mobile min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1"
|
|
5184
|
-
};
|
|
5185
|
-
var _hoisted_12 = {
|
|
5186
5345
|
"class": "w-full flex flex-col"
|
|
5187
5346
|
};
|
|
5188
5347
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -5190,10 +5349,10 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5190
5349
|
|
|
5191
5350
|
var _component_FwButton = vue.resolveComponent("FwButton");
|
|
5192
5351
|
|
|
5193
|
-
return vue.openBlock(), vue.createElementBlock("nav", _hoisted_1$3, [vue.createElementVNode("div", _hoisted_2$2, [_ctx.$slots.logo ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [vue.renderSlot(_ctx.$slots, "logo")])) : vue.createCommentVNode("", true), ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [vue.createElementVNode("div", _hoisted_5$1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, function (item, i) {
|
|
5352
|
+
return vue.openBlock(), vue.createElementBlock("nav", _hoisted_1$3, [vue.createElementVNode("div", _hoisted_2$2, [_ctx.$slots.logo ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2, [vue.renderSlot(_ctx.$slots, "logo")])) : vue.createCommentVNode("", true), _ctx.menuItems && ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [vue.createElementVNode("div", _hoisted_5$1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, function (item, i) {
|
|
5194
5353
|
return vue.openBlock(), vue.createBlock(_component_FwButton, {
|
|
5195
5354
|
key: i,
|
|
5196
|
-
variant:
|
|
5355
|
+
variant: _ctx.ButtonVariantName.text,
|
|
5197
5356
|
href: item.href,
|
|
5198
5357
|
to: item.to,
|
|
5199
5358
|
size: "md",
|
|
@@ -5203,7 +5362,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5203
5362
|
return [vue.createTextVNode(vue.toDisplayString(item.label), 1)];
|
|
5204
5363
|
}),
|
|
5205
5364
|
_: 2
|
|
5206
|
-
}, 1032, ["href", "to"]);
|
|
5365
|
+
}, 1032, ["variant", "href", "to"]);
|
|
5207
5366
|
}), 128))])])) : vue.createCommentVNode("", true), _ctx.actionLabel ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$1, [vue.createVNode(_component_FwButton, {
|
|
5208
5367
|
onClick: _ctx.actionClicked,
|
|
5209
5368
|
size: "md",
|
|
@@ -5214,7 +5373,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5214
5373
|
}),
|
|
5215
5374
|
_: 1
|
|
5216
5375
|
}, 8, ["onClick", "aria-label"])])) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_7$1, [vue.createVNode(_component_FwButton, {
|
|
5217
|
-
variant:
|
|
5376
|
+
variant: _ctx.ButtonVariantName.text,
|
|
5218
5377
|
size: "sm",
|
|
5219
5378
|
onClick: _ctx.toggleMobileMenu
|
|
5220
5379
|
}, {
|
|
@@ -5227,17 +5386,18 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5227
5386
|
}, null, 8, _hoisted_10$1)]))];
|
|
5228
5387
|
}),
|
|
5229
5388
|
_: 1
|
|
5230
|
-
}, 8, ["onClick"])])]), vue.createVNode(vue.Transition, {
|
|
5389
|
+
}, 8, ["variant", "onClick"])])]), vue.createVNode(vue.Transition, {
|
|
5231
5390
|
name: "slideInLeft"
|
|
5232
5391
|
}, {
|
|
5233
5392
|
"default": vue.withCtx(function () {
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5393
|
+
return [_ctx.menuItems && _ctx.menuItems.length > 0 && _ctx.isMobileMenuOpen ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
5394
|
+
key: 0,
|
|
5395
|
+
"class": vue.normalizeClass(["fw-nav-menu--mobile", _ctx.mobileMenuClass])
|
|
5396
|
+
}, [vue.createElementVNode("div", _hoisted_11$1, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, function (item, i) {
|
|
5237
5397
|
return vue.openBlock(), vue.createBlock(_component_FwButton, {
|
|
5238
5398
|
key: i,
|
|
5239
5399
|
"class": "w-full rounded-md",
|
|
5240
|
-
variant:
|
|
5400
|
+
variant: _ctx.ButtonVariantName.text,
|
|
5241
5401
|
href: item.href,
|
|
5242
5402
|
to: item.to,
|
|
5243
5403
|
size: "md",
|
|
@@ -5247,48 +5407,47 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5247
5407
|
return [vue.createTextVNode(vue.toDisplayString(item.label), 1)];
|
|
5248
5408
|
}),
|
|
5249
5409
|
_: 2
|
|
5250
|
-
}, 1032, ["href", "to"]);
|
|
5410
|
+
}, 1032, ["variant", "href", "to"]);
|
|
5251
5411
|
}), 128))]), _ctx.actionLabel ? (vue.openBlock(), vue.createBlock(_component_FwButton, {
|
|
5252
5412
|
key: 0,
|
|
5253
|
-
"class": "w-full rounded-md
|
|
5413
|
+
"class": "w-full rounded-md",
|
|
5254
5414
|
onClick: _ctx.actionClicked
|
|
5255
5415
|
}, {
|
|
5256
5416
|
"default": vue.withCtx(function () {
|
|
5257
5417
|
return [vue.createTextVNode(vue.toDisplayString(_ctx.actionLabel), 1)];
|
|
5258
5418
|
}),
|
|
5259
5419
|
_: 1
|
|
5260
|
-
}, 8, ["onClick"])) : vue.createCommentVNode("", true)])) : vue.createCommentVNode("", true)];
|
|
5420
|
+
}, 8, ["onClick"])) : vue.createCommentVNode("", true)], 2)) : vue.createCommentVNode("", true)];
|
|
5261
5421
|
}),
|
|
5262
5422
|
_: 1
|
|
5263
5423
|
})]);
|
|
5264
5424
|
}var css_248z$1 = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInLeft-enter-active{-webkit-transition:left .35s ease-in;-o-transition:left .35s ease-in;transition:left .35s ease-in}.slideInLeft-enter-active{-webkit-animation:slideInLeft .35s;animation:slideInLeft .35s}.slideInLeft-leave-active{animation:slideInLeft .35s reverse;-webkit-transition:left .35s ease-in-out;-o-transition:left .35s ease-in-out;transition:left .35s ease-in-out}@-webkit-keyframes slideInLeft{0%{left:100%}to{left:0}}@keyframes slideInLeft{0%{left:100%}to{left:0}}";
|
|
5265
5425
|
var stylesheet$1 = ".fw-nav-menu--mobile{z-index:-1}.fw-nav-menu--mobile,.slideInLeft-enter-active{-webkit-transition:left .35s ease-in;-o-transition:left .35s ease-in;transition:left .35s ease-in}.slideInLeft-enter-active{-webkit-animation:slideInLeft .35s;animation:slideInLeft .35s}.slideInLeft-leave-active{animation:slideInLeft .35s reverse;-webkit-transition:left .35s ease-in-out;-o-transition:left .35s ease-in-out;transition:left .35s ease-in-out}@-webkit-keyframes slideInLeft{0%{left:100%}to{left:0}}@keyframes slideInLeft{0%{left:100%}to{left:0}}";
|
|
5266
|
-
styleInject(css_248z$1);script$3.render = render$3;var es_number_constructor = {};var
|
|
5267
|
-
var isCallable$1 = isCallable$e;
|
|
5426
|
+
styleInject(css_248z$1);script$3.render = render$3;var es_number_constructor = {};var isCallable$2 = isCallable$g;
|
|
5268
5427
|
|
|
5269
|
-
var String
|
|
5270
|
-
var TypeError$
|
|
5428
|
+
var $String = String;
|
|
5429
|
+
var $TypeError$1 = TypeError;
|
|
5271
5430
|
|
|
5272
5431
|
var aPossiblePrototype$1 = function (argument) {
|
|
5273
|
-
if (typeof argument == 'object' || isCallable$
|
|
5274
|
-
throw TypeError$
|
|
5432
|
+
if (typeof argument == 'object' || isCallable$2(argument)) return argument;
|
|
5433
|
+
throw $TypeError$1("Can't set " + $String(argument) + ' as a prototype');
|
|
5275
5434
|
};/* eslint-disable no-proto -- safe */
|
|
5276
5435
|
|
|
5277
|
-
var uncurryThis$
|
|
5436
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
5278
5437
|
var anObject = anObject$5;
|
|
5279
5438
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
5280
5439
|
|
|
5281
5440
|
// `Object.setPrototypeOf` method
|
|
5282
5441
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
5283
5442
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
5284
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
5443
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
5285
5444
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
5286
5445
|
var CORRECT_SETTER = false;
|
|
5287
5446
|
var test = {};
|
|
5288
5447
|
var setter;
|
|
5289
5448
|
try {
|
|
5290
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5291
|
-
setter = uncurryThis$
|
|
5449
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
5450
|
+
setter = uncurryThis$4(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
5292
5451
|
setter(test, []);
|
|
5293
5452
|
CORRECT_SETTER = test instanceof Array;
|
|
5294
5453
|
} catch (error) { /* empty */ }
|
|
@@ -5299,7 +5458,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
5299
5458
|
else O.__proto__ = proto;
|
|
5300
5459
|
return O;
|
|
5301
5460
|
};
|
|
5302
|
-
}() : undefined);var isCallable = isCallable$
|
|
5461
|
+
}() : undefined);var isCallable$1 = isCallable$g;
|
|
5303
5462
|
var isObject = isObject$8;
|
|
5304
5463
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
5305
5464
|
|
|
@@ -5310,32 +5469,24 @@ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
|
5310
5469
|
// it can work only with native `setPrototypeOf`
|
|
5311
5470
|
setPrototypeOf &&
|
|
5312
5471
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
5313
|
-
isCallable(NewTarget = dummy.constructor) &&
|
|
5472
|
+
isCallable$1(NewTarget = dummy.constructor) &&
|
|
5314
5473
|
NewTarget !== Wrapper &&
|
|
5315
5474
|
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
5316
5475
|
NewTargetPrototype !== Wrapper.prototype
|
|
5317
5476
|
) setPrototypeOf($this, NewTargetPrototype);
|
|
5318
5477
|
return $this;
|
|
5319
|
-
};var uncurryThis$
|
|
5478
|
+
};var uncurryThis$3 = functionUncurryThis;
|
|
5320
5479
|
|
|
5321
5480
|
// `thisNumberValue` abstract operation
|
|
5322
5481
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
5323
|
-
var thisNumberValue$1 = uncurryThis$
|
|
5324
|
-
var classof = classof$3;
|
|
5325
|
-
|
|
5326
|
-
var String$1 = global$2.String;
|
|
5327
|
-
|
|
5328
|
-
var toString$2 = function (argument) {
|
|
5329
|
-
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
5330
|
-
return String$1(argument);
|
|
5331
|
-
};// a string of all valid unicode whitespaces
|
|
5482
|
+
var thisNumberValue$1 = uncurryThis$3(1.0.valueOf);// a string of all valid unicode whitespaces
|
|
5332
5483
|
var whitespaces$1 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
5333
|
-
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';var uncurryThis$
|
|
5334
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
5335
|
-
var toString$1 = toString$
|
|
5484
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';var uncurryThis$2 = functionUncurryThis;
|
|
5485
|
+
var requireObjectCoercible = requireObjectCoercible$4;
|
|
5486
|
+
var toString$1 = toString$3;
|
|
5336
5487
|
var whitespaces = whitespaces$1;
|
|
5337
5488
|
|
|
5338
|
-
var replace = uncurryThis$
|
|
5489
|
+
var replace = uncurryThis$2(''.replace);
|
|
5339
5490
|
var whitespace = '[' + whitespaces + ']';
|
|
5340
5491
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
5341
5492
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -5362,16 +5513,16 @@ var stringTrim = {
|
|
|
5362
5513
|
trim: createMethod(3)
|
|
5363
5514
|
};'use strict';
|
|
5364
5515
|
var DESCRIPTORS = descriptors;
|
|
5365
|
-
var global$
|
|
5366
|
-
var uncurryThis = functionUncurryThis;
|
|
5516
|
+
var global$4 = global$f;
|
|
5517
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
5367
5518
|
var isForced = isForced_1;
|
|
5368
|
-
var
|
|
5519
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
5369
5520
|
var hasOwn = hasOwnProperty_1;
|
|
5370
5521
|
var inheritIfRequired = inheritIfRequired$1;
|
|
5371
5522
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
5372
5523
|
var isSymbol$1 = isSymbol$4;
|
|
5373
5524
|
var toPrimitive = toPrimitive$2;
|
|
5374
|
-
var fails = fails$
|
|
5525
|
+
var fails = fails$d;
|
|
5375
5526
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
5376
5527
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
5377
5528
|
var defineProperty = objectDefineProperty.f;
|
|
@@ -5379,11 +5530,11 @@ var thisNumberValue = thisNumberValue$1;
|
|
|
5379
5530
|
var trim = stringTrim.trim;
|
|
5380
5531
|
|
|
5381
5532
|
var NUMBER = 'Number';
|
|
5382
|
-
var NativeNumber = global$
|
|
5533
|
+
var NativeNumber = global$4[NUMBER];
|
|
5383
5534
|
var NumberPrototype = NativeNumber.prototype;
|
|
5384
|
-
var TypeError$1 = global$
|
|
5385
|
-
var arraySlice = uncurryThis(''.slice);
|
|
5386
|
-
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
5535
|
+
var TypeError$1 = global$4.TypeError;
|
|
5536
|
+
var arraySlice$2 = uncurryThis$1(''.slice);
|
|
5537
|
+
var charCodeAt = uncurryThis$1(''.charCodeAt);
|
|
5387
5538
|
|
|
5388
5539
|
// `ToNumeric` abstract operation
|
|
5389
5540
|
// https://tc39.es/ecma262/#sec-tonumeric
|
|
@@ -5410,7 +5561,7 @@ var toNumber = function (argument) {
|
|
|
5410
5561
|
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
|
|
5411
5562
|
default: return +it;
|
|
5412
5563
|
}
|
|
5413
|
-
digits = arraySlice(it, 2);
|
|
5564
|
+
digits = arraySlice$2(it, 2);
|
|
5414
5565
|
length = digits.length;
|
|
5415
5566
|
for (index = 0; index < length; index++) {
|
|
5416
5567
|
code = charCodeAt(digits, index);
|
|
@@ -5446,7 +5597,7 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
|
|
|
5446
5597
|
}
|
|
5447
5598
|
NumberWrapper.prototype = NumberPrototype;
|
|
5448
5599
|
NumberPrototype.constructor = NumberWrapper;
|
|
5449
|
-
|
|
5600
|
+
defineBuiltIn(global$4, NUMBER, NumberWrapper, { constructor: true });
|
|
5450
5601
|
}var script$2 = vue.defineComponent({
|
|
5451
5602
|
name: 'FwTabs',
|
|
5452
5603
|
emits: ['update:modelValue'],
|
|
@@ -5501,7 +5652,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5501
5652
|
}, vue.toDisplayString(tab.props.label), 11, _hoisted_3$1)]);
|
|
5502
5653
|
}), 128))])) : vue.createCommentVNode("", true), vue.renderSlot(_ctx.$slots, "default")]);
|
|
5503
5654
|
}script$2.render = render$2;var es_array_findIndex = {};'use strict';
|
|
5504
|
-
var
|
|
5655
|
+
var $$2 = _export;
|
|
5505
5656
|
var $findIndex = arrayIteration.findIndex;
|
|
5506
5657
|
var addToUnscopables = addToUnscopables$2;
|
|
5507
5658
|
|
|
@@ -5513,7 +5664,7 @@ if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; })
|
|
|
5513
5664
|
|
|
5514
5665
|
// `Array.prototype.findIndex` method
|
|
5515
5666
|
// https://tc39.es/ecma262/#sec-array.prototype.findindex
|
|
5516
|
-
|
|
5667
|
+
$$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
5517
5668
|
findIndex: function findIndex(callbackfn /* , that = undefined */) {
|
|
5518
5669
|
return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
5519
5670
|
}
|
|
@@ -5909,7 +6060,7 @@ function uniqueId(prefix) {
|
|
|
5909
6060
|
};
|
|
5910
6061
|
}
|
|
5911
6062
|
});var _withScopeId = function _withScopeId(n) {
|
|
5912
|
-
return vue.pushScopeId("data-v-
|
|
6063
|
+
return vue.pushScopeId("data-v-003a6fba"), n = n(), vue.popScopeId(), n;
|
|
5913
6064
|
};
|
|
5914
6065
|
|
|
5915
6066
|
var _hoisted_1 = {
|
|
@@ -5943,14 +6094,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5943
6094
|
var _component_FwButton = vue.resolveComponent("FwButton");
|
|
5944
6095
|
|
|
5945
6096
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
5946
|
-
name: "modalFadeIn"
|
|
6097
|
+
name: "modalFadeIn",
|
|
6098
|
+
appear: ""
|
|
5947
6099
|
}, {
|
|
5948
6100
|
"default": vue.withCtx(function () {
|
|
5949
6101
|
return [vue.createElementVNode("div", _hoisted_1, [vue.createElementVNode("div", _hoisted_2, [vue.createElementVNode("div", _hoisted_3, [vue.createElementVNode("div", {
|
|
5950
6102
|
role: _ctx.role,
|
|
6103
|
+
"aria-modal": "true",
|
|
5951
6104
|
"class": "fw-modal--container p-12 m-8 inline-block w-full max-w-[540px] bg-white rounded-2xl shadow",
|
|
5952
|
-
"aria-labelledby": _ctx.$slots.header || _ctx.header ? "modal_".concat(_ctx.uuid, "_header") :
|
|
5953
|
-
"aria-describedby": _ctx.$slots.body ? "modal_".concat(_ctx.uuid, "_body") :
|
|
6105
|
+
"aria-labelledby": _ctx.$slots.header || _ctx.header ? "modal_".concat(_ctx.uuid, "_header") : undefined,
|
|
6106
|
+
"aria-describedby": _ctx.$slots.body ? "modal_".concat(_ctx.uuid, "_body") : undefined
|
|
5954
6107
|
}, [_ctx.$slots.icon || _ctx.$slots.header || _ctx.header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [_ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [vue.renderSlot(_ctx.$slots, "icon")])) : vue.createCommentVNode("", true), _ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("h2", {
|
|
5955
6108
|
key: 1,
|
|
5956
6109
|
id: "modal_".concat(_ctx.uuid, "_header")
|
|
@@ -5997,10 +6150,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5997
6150
|
}),
|
|
5998
6151
|
_: 3
|
|
5999
6152
|
});
|
|
6000
|
-
}var css_248z = ".modalFadeIn-enter-active[data-v-
|
|
6001
|
-
var stylesheet = ".modalFadeIn-enter-active[data-v-
|
|
6153
|
+
}var css_248z = ".modalFadeIn-enter-active[data-v-003a6fba]{-webkit-animation:modalFadeIn-003a6fba .4s;animation:modalFadeIn-003a6fba .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-003a6fba]{animation:modalFadeIn-003a6fba .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-003a6fba{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-003a6fba{0%{opacity:0}to{opacity:1}}";
|
|
6154
|
+
var stylesheet = ".modalFadeIn-enter-active[data-v-003a6fba]{-webkit-animation:modalFadeIn-003a6fba .4s;animation:modalFadeIn-003a6fba .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-003a6fba]{animation:modalFadeIn-003a6fba .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-003a6fba{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-003a6fba{0%{opacity:0}to{opacity:1}}";
|
|
6002
6155
|
styleInject(css_248z);script.render = render;
|
|
6003
|
-
script.__scopeId = "data-v-
|
|
6156
|
+
script.__scopeId = "data-v-003a6fba";// Form components
|
|
6004
6157
|
var Components=/*#__PURE__*/Object.freeze({__proto__:null,FwForm:Form,FwInput:script$7,FwCheckbox:script$6,FwCard:script$5,FwButton:script$4,FwNavigationMenu:script$3,FwTabs:script$2,FwTab:script$1,FwModal:script});function _defineProperty(obj, key, value) {
|
|
6005
6158
|
if (key in obj) {
|
|
6006
6159
|
Object.defineProperty(obj, key, {
|
|
@@ -6038,36 +6191,97 @@ function _objectSpread2(target) {
|
|
|
6038
6191
|
}
|
|
6039
6192
|
|
|
6040
6193
|
return target;
|
|
6041
|
-
}var
|
|
6042
|
-
|
|
6194
|
+
}var web_timers = {};var web_setInterval = {};var NATIVE_BIND = functionBindNative;
|
|
6195
|
+
|
|
6196
|
+
var FunctionPrototype = Function.prototype;
|
|
6197
|
+
var apply$1 = FunctionPrototype.apply;
|
|
6198
|
+
var call = FunctionPrototype.call;
|
|
6199
|
+
|
|
6200
|
+
// eslint-disable-next-line es-x/no-reflect -- safe
|
|
6201
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply$1) : function () {
|
|
6202
|
+
return call.apply(apply$1, arguments);
|
|
6203
|
+
});var uncurryThis = functionUncurryThis;
|
|
6204
|
+
|
|
6205
|
+
var arraySlice$1 = uncurryThis([].slice);var $TypeError = TypeError;
|
|
6206
|
+
|
|
6207
|
+
var validateArgumentsLength$1 = function (passed, required) {
|
|
6208
|
+
if (passed < required) throw $TypeError('Not enough arguments');
|
|
6209
|
+
return passed;
|
|
6210
|
+
};var global$3 = global$f;
|
|
6211
|
+
var apply = functionApply;
|
|
6212
|
+
var isCallable = isCallable$g;
|
|
6213
|
+
var userAgent = engineUserAgent;
|
|
6214
|
+
var arraySlice = arraySlice$1;
|
|
6215
|
+
var validateArgumentsLength = validateArgumentsLength$1;
|
|
6216
|
+
|
|
6217
|
+
var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
|
|
6218
|
+
var Function$1 = global$3.Function;
|
|
6219
|
+
|
|
6220
|
+
var wrap = function (scheduler) {
|
|
6221
|
+
return MSIE ? function (handler, timeout /* , ...arguments */) {
|
|
6222
|
+
var boundArgs = validateArgumentsLength(arguments.length, 1) > 2;
|
|
6223
|
+
var fn = isCallable(handler) ? handler : Function$1(handler);
|
|
6224
|
+
var args = boundArgs ? arraySlice(arguments, 2) : undefined;
|
|
6225
|
+
return scheduler(boundArgs ? function () {
|
|
6226
|
+
apply(fn, this, args);
|
|
6227
|
+
} : fn, timeout);
|
|
6228
|
+
} : scheduler;
|
|
6229
|
+
};
|
|
6043
6230
|
|
|
6231
|
+
// ie9- setTimeout & setInterval additional parameters fix
|
|
6232
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
|
|
6233
|
+
var schedulersFix = {
|
|
6234
|
+
// `setTimeout` method
|
|
6235
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
|
|
6236
|
+
setTimeout: wrap(global$3.setTimeout),
|
|
6237
|
+
// `setInterval` method
|
|
6238
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
|
|
6239
|
+
setInterval: wrap(global$3.setInterval)
|
|
6240
|
+
};var $$1 = _export;
|
|
6241
|
+
var global$2 = global$f;
|
|
6242
|
+
var setInterval = schedulersFix.setInterval;
|
|
6243
|
+
|
|
6244
|
+
// ie9- setInterval additional parameters fix
|
|
6245
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
|
|
6246
|
+
$$1({ global: true, bind: true, forced: global$2.setInterval !== setInterval }, {
|
|
6247
|
+
setInterval: setInterval
|
|
6248
|
+
});var web_setTimeout = {};var $ = _export;
|
|
6249
|
+
var global$1 = global$f;
|
|
6250
|
+
var setTimeout$1 = schedulersFix.setTimeout;
|
|
6251
|
+
|
|
6252
|
+
// ie9- setTimeout additional parameters fix
|
|
6253
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
|
|
6254
|
+
$({ global: true, bind: true, forced: global$1.setTimeout !== setTimeout$1 }, {
|
|
6255
|
+
setTimeout: setTimeout$1
|
|
6256
|
+
});var modalService = function modalService(options, element) {
|
|
6044
6257
|
var elementToMount = document.createElement('div');
|
|
6045
|
-
|
|
6046
|
-
var appContext = (_getCurrentInstance = vue.getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.appContext;
|
|
6258
|
+
elementToMount.id = uniqueId('fw-modal-app-');
|
|
6047
6259
|
var elAppend = element || document.body;
|
|
6260
|
+
var modalVNode = undefined;
|
|
6048
6261
|
|
|
6049
6262
|
var open = function open() {
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
}));
|
|
6053
|
-
modalVNode.appContext = appContext ? appContext : null;
|
|
6054
|
-
vue.render(modalVNode, elementToMount);
|
|
6263
|
+
var _modalVNode;
|
|
6264
|
+
|
|
6265
|
+
modalVNode = vue.createApp(script, _objectSpread2({}, options));
|
|
6055
6266
|
elAppend.appendChild(elementToMount);
|
|
6267
|
+
(_modalVNode = modalVNode) === null || _modalVNode === void 0 ? void 0 : _modalVNode.mount(elementToMount);
|
|
6056
6268
|
};
|
|
6057
6269
|
|
|
6058
6270
|
var close = function close() {
|
|
6059
|
-
vue.render(null, elementToMount);
|
|
6060
|
-
|
|
6061
6271
|
if (elementToMount) {
|
|
6062
|
-
|
|
6063
|
-
|
|
6272
|
+
var _elementToMount$query;
|
|
6273
|
+
|
|
6274
|
+
(_elementToMount$query = elementToMount.querySelector('.fw-modal')) === null || _elementToMount$query === void 0 ? void 0 : _elementToMount$query.classList.add('modalFadeIn-leave-active');
|
|
6275
|
+
setTimeout(function () {
|
|
6276
|
+
var _modalVNode2;
|
|
6064
6277
|
|
|
6065
|
-
|
|
6278
|
+
(_modalVNode2 = modalVNode) === null || _modalVNode2 === void 0 ? void 0 : _modalVNode2.unmount();
|
|
6279
|
+
modalVNode = undefined;
|
|
6280
|
+
elementToMount.remove();
|
|
6281
|
+
}, 400);
|
|
6282
|
+
}
|
|
6066
6283
|
};
|
|
6067
6284
|
|
|
6068
|
-
vue.onUnmounted(function () {
|
|
6069
|
-
close();
|
|
6070
|
-
});
|
|
6071
6285
|
return {
|
|
6072
6286
|
open: open,
|
|
6073
6287
|
close: close
|