@frollo/frollo-web-ui 0.0.21 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +1141 -476
- package/esm/{add-to-unscopables-874257d1.js → add-to-unscopables-81c17489.js} +139 -99
- package/esm/{es.array.includes-ef2f18f4.js → es.array.includes-debcb50f.js} +9 -3
- package/esm/{es.function.name-43e1ffbd.js → es.function.name-e746680f.js} +1 -1
- package/esm/{function-name-a620492a.js → function-name-f0c1223e.js} +52 -61
- package/esm/{fw-button-fee2541f.js → fw-button-bba6ac88.js} +14 -6
- package/esm/fw-button.js +4 -4
- package/esm/fw-card.js +7 -4
- package/esm/fw-checkbox.js +11 -6
- package/esm/fw-form.js +1 -1
- package/esm/fw-input.js +10 -8
- package/esm/fw-modal.js +7 -0
- package/esm/fw-navigation-menu.js +16 -15
- package/esm/fw-tabs.js +3 -3
- package/esm/{index-5430e7a3.js → index-0e14da44.js} +18 -22
- package/esm/index-1813012f.js +474 -0
- package/esm/index.js +185 -26
- package/esm/{vee-validate.esm-028c6424.js → vee-validate.esm-b64acab1.js} +62 -9
- package/frollo-web-ui.esm.js +1218 -488
- package/index.d.ts +217 -27
- package/package.json +22 -17
- package/styles/tailwind.scss +58 -0
- package/styles/transitions.scss +20 -0
- package/styles/typography.scss +38 -0
- package/tailwind.config.js +10 -10
- package/types/components/fw-button/fw-button.vue.d.ts +2 -21
- package/types/components/fw-button/index.types.d.ts +29 -0
- package/types/components/fw-card/fw-card.vue.d.ts +1 -0
- package/types/components/fw-card/index.types.d.ts +6 -0
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +0 -6
- package/types/components/fw-checkbox/index.types.d.ts +6 -0
- package/types/components/fw-input/fw-input.vue.d.ts +5 -14
- package/types/components/fw-input/index.types.d.ts +14 -0
- package/types/components/fw-modal/fw-modal.vue.d.ts +145 -0
- package/types/components/fw-modal/index.d.ts +2 -0
- package/types/components/fw-modal/index.types.d.ts +12 -0
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +2 -5
- package/types/components/fw-navigation-menu/index.types.d.ts +5 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/index.types.d.ts +6 -0
- package/types/index-types.esm.d.ts +2 -7
- package/types/index.d.ts +1 -0
- package/types/index.esm.d.ts +1 -0
- package/types/services/index.d.ts +1 -0
- package/types/services/modal.d.ts +9 -0
package/frollo-web-ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance, inject, warn as warn$1, ref, unref, computed, reactive, watch, nextTick, onUnmounted, onMounted, provide, isRef, onBeforeUnmount, defineComponent, toRef, resolveDynamicComponent, h, markRaw, watchEffect, readonly, createElementVNode, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, toDisplayString, createCommentVNode, renderSlot, mergeProps, Transition, normalizeClass, createBlock, Fragment, renderList, createTextVNode } from 'vue';
|
|
1
|
+
import { getCurrentInstance, inject, warn as warn$1, ref, unref, computed, reactive, watch, nextTick, onUnmounted, onMounted, provide, isRef, onBeforeUnmount, defineComponent, toRef, resolveDynamicComponent, h, markRaw, watchEffect, readonly, createElementVNode, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, toDisplayString, createCommentVNode, renderSlot, mergeProps, Transition, normalizeClass, pushScopeId, popScopeId, createBlock, Fragment, renderList, createTextVNode, createApp } from 'vue';
|
|
2
2
|
|
|
3
3
|
function _arrayWithHoles(arr) {
|
|
4
4
|
if (Array.isArray(arr)) return arr;
|
|
@@ -101,8 +101,8 @@ var check = function (it) {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
104
|
-
var global$
|
|
105
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
104
|
+
var global$f =
|
|
105
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
106
106
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
107
107
|
check(typeof window == 'object' && window) ||
|
|
108
108
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -113,7 +113,7 @@ var global$r =
|
|
|
113
113
|
|
|
114
114
|
var objectGetOwnPropertyDescriptor = {};
|
|
115
115
|
|
|
116
|
-
var fails$
|
|
116
|
+
var fails$c = function (exec) {
|
|
117
117
|
try {
|
|
118
118
|
return !!exec();
|
|
119
119
|
} catch (error) {
|
|
@@ -121,35 +121,36 @@ var fails$a = function (exec) {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
var fails$
|
|
124
|
+
var fails$b = fails$c;
|
|
125
125
|
|
|
126
126
|
// Detect IE8's incomplete defineProperty implementation
|
|
127
|
-
var descriptors = !fails$
|
|
128
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
127
|
+
var descriptors = !fails$b(function () {
|
|
128
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
129
129
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
-
var fails$
|
|
132
|
+
var fails$a = fails$c;
|
|
133
133
|
|
|
134
|
-
var functionBindNative = !fails$
|
|
134
|
+
var functionBindNative = !fails$a(function () {
|
|
135
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
135
136
|
var test = (function () { /* empty */ }).bind();
|
|
136
137
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
137
138
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
138
139
|
});
|
|
139
140
|
|
|
140
|
-
var NATIVE_BIND$
|
|
141
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
141
142
|
|
|
142
|
-
var call$
|
|
143
|
+
var call$5 = Function.prototype.call;
|
|
143
144
|
|
|
144
|
-
var functionCall = NATIVE_BIND$
|
|
145
|
-
return call$
|
|
145
|
+
var functionCall = NATIVE_BIND$3 ? call$5.bind(call$5) : function () {
|
|
146
|
+
return call$5.apply(call$5, arguments);
|
|
146
147
|
};
|
|
147
148
|
|
|
148
149
|
var objectPropertyIsEnumerable = {};
|
|
149
150
|
|
|
150
151
|
'use strict';
|
|
151
152
|
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
|
152
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
153
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
153
154
|
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
154
155
|
|
|
155
156
|
// Nashorn ~ JDK8 bug
|
|
@@ -171,55 +172,52 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
|
171
172
|
};
|
|
172
173
|
};
|
|
173
174
|
|
|
174
|
-
var NATIVE_BIND$
|
|
175
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
175
176
|
|
|
176
|
-
var FunctionPrototype$
|
|
177
|
-
var bind$2 = FunctionPrototype$
|
|
178
|
-
var call$
|
|
179
|
-
var uncurryThis$
|
|
177
|
+
var FunctionPrototype$3 = Function.prototype;
|
|
178
|
+
var bind$2 = FunctionPrototype$3.bind;
|
|
179
|
+
var call$4 = FunctionPrototype$3.call;
|
|
180
|
+
var uncurryThis$j = NATIVE_BIND$2 && bind$2.bind(call$4, call$4);
|
|
180
181
|
|
|
181
|
-
var functionUncurryThis = NATIVE_BIND$
|
|
182
|
-
return fn && uncurryThis$
|
|
182
|
+
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
|
183
|
+
return fn && uncurryThis$j(fn);
|
|
183
184
|
} : function (fn) {
|
|
184
185
|
return fn && function () {
|
|
185
|
-
return call$
|
|
186
|
+
return call$4.apply(fn, arguments);
|
|
186
187
|
};
|
|
187
188
|
};
|
|
188
189
|
|
|
189
|
-
var uncurryThis$
|
|
190
|
+
var uncurryThis$i = functionUncurryThis;
|
|
190
191
|
|
|
191
|
-
var toString$
|
|
192
|
-
var stringSlice = uncurryThis$
|
|
192
|
+
var toString$5 = uncurryThis$i({}.toString);
|
|
193
|
+
var stringSlice = uncurryThis$i(''.slice);
|
|
193
194
|
|
|
194
195
|
var classofRaw$1 = function (it) {
|
|
195
|
-
return stringSlice(toString$
|
|
196
|
+
return stringSlice(toString$5(it), 8, -1);
|
|
196
197
|
};
|
|
197
198
|
|
|
198
|
-
var
|
|
199
|
-
var
|
|
200
|
-
var fails$7 = fails$a;
|
|
199
|
+
var uncurryThis$h = functionUncurryThis;
|
|
200
|
+
var fails$9 = fails$c;
|
|
201
201
|
var classof$5 = classofRaw$1;
|
|
202
202
|
|
|
203
|
-
var Object$
|
|
204
|
-
var split = uncurryThis$
|
|
203
|
+
var $Object$3 = Object;
|
|
204
|
+
var split = uncurryThis$h(''.split);
|
|
205
205
|
|
|
206
206
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
207
|
-
var indexedObject = fails$
|
|
207
|
+
var indexedObject = fails$9(function () {
|
|
208
208
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
209
209
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
210
|
-
return
|
|
210
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
211
211
|
}) ? function (it) {
|
|
212
|
-
return classof$5(it) == 'String' ? split(it, '') : Object$
|
|
213
|
-
} : Object$
|
|
214
|
-
|
|
215
|
-
var global$p = global$r;
|
|
212
|
+
return classof$5(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
213
|
+
} : $Object$3;
|
|
216
214
|
|
|
217
|
-
var TypeError$
|
|
215
|
+
var $TypeError$7 = TypeError;
|
|
218
216
|
|
|
219
217
|
// `RequireObjectCoercible` abstract operation
|
|
220
218
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
221
219
|
var requireObjectCoercible$3 = function (it) {
|
|
222
|
-
if (it == undefined) throw TypeError$
|
|
220
|
+
if (it == undefined) throw $TypeError$7("Can't call method on " + it);
|
|
223
221
|
return it;
|
|
224
222
|
};
|
|
225
223
|
|
|
@@ -233,40 +231,40 @@ var toIndexedObject$5 = function (it) {
|
|
|
233
231
|
|
|
234
232
|
// `IsCallable` abstract operation
|
|
235
233
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
236
|
-
var isCallable$
|
|
234
|
+
var isCallable$g = function (argument) {
|
|
237
235
|
return typeof argument == 'function';
|
|
238
236
|
};
|
|
239
237
|
|
|
240
|
-
var isCallable$
|
|
238
|
+
var isCallable$f = isCallable$g;
|
|
241
239
|
|
|
242
240
|
var isObject$8 = function (it) {
|
|
243
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
241
|
+
return typeof it == 'object' ? it !== null : isCallable$f(it);
|
|
244
242
|
};
|
|
245
243
|
|
|
246
|
-
var global$
|
|
247
|
-
var isCallable$
|
|
244
|
+
var global$e = global$f;
|
|
245
|
+
var isCallable$e = isCallable$g;
|
|
248
246
|
|
|
249
247
|
var aFunction = function (argument) {
|
|
250
|
-
return isCallable$
|
|
248
|
+
return isCallable$e(argument) ? argument : undefined;
|
|
251
249
|
};
|
|
252
250
|
|
|
253
251
|
var getBuiltIn$5 = function (namespace, method) {
|
|
254
|
-
return arguments.length < 2 ? aFunction(global$
|
|
252
|
+
return arguments.length < 2 ? aFunction(global$e[namespace]) : global$e[namespace] && global$e[namespace][method];
|
|
255
253
|
};
|
|
256
254
|
|
|
257
|
-
var uncurryThis$
|
|
255
|
+
var uncurryThis$g = functionUncurryThis;
|
|
258
256
|
|
|
259
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
257
|
+
var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
|
|
260
258
|
|
|
261
259
|
var getBuiltIn$4 = getBuiltIn$5;
|
|
262
260
|
|
|
263
261
|
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
|
|
264
262
|
|
|
265
|
-
var global$
|
|
266
|
-
var userAgent = engineUserAgent;
|
|
263
|
+
var global$d = global$f;
|
|
264
|
+
var userAgent$1 = engineUserAgent;
|
|
267
265
|
|
|
268
|
-
var process = global$
|
|
269
|
-
var Deno = global$
|
|
266
|
+
var process = global$d.process;
|
|
267
|
+
var Deno = global$d.Deno;
|
|
270
268
|
var versions = process && process.versions || Deno && Deno.version;
|
|
271
269
|
var v8 = versions && versions.v8;
|
|
272
270
|
var match, version;
|
|
@@ -280,23 +278,23 @@ if (v8) {
|
|
|
280
278
|
|
|
281
279
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
282
280
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
283
|
-
if (!version && userAgent) {
|
|
284
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
281
|
+
if (!version && userAgent$1) {
|
|
282
|
+
match = userAgent$1.match(/Edge\/(\d+)/);
|
|
285
283
|
if (!match || match[1] >= 74) {
|
|
286
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
284
|
+
match = userAgent$1.match(/Chrome\/(\d+)/);
|
|
287
285
|
if (match) version = +match[1];
|
|
288
286
|
}
|
|
289
287
|
}
|
|
290
288
|
|
|
291
289
|
var engineV8Version = version;
|
|
292
290
|
|
|
293
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
291
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
294
292
|
|
|
295
293
|
var V8_VERSION = engineV8Version;
|
|
296
|
-
var fails$
|
|
294
|
+
var fails$8 = fails$c;
|
|
297
295
|
|
|
298
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
299
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
296
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
297
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
300
298
|
var symbol = Symbol();
|
|
301
299
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
302
300
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -305,7 +303,7 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
|
|
|
305
303
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
306
304
|
});
|
|
307
305
|
|
|
308
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
306
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
309
307
|
|
|
310
308
|
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
311
309
|
|
|
@@ -313,43 +311,39 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
313
311
|
&& !Symbol.sham
|
|
314
312
|
&& typeof Symbol.iterator == 'symbol';
|
|
315
313
|
|
|
316
|
-
var global$m = global$r;
|
|
317
314
|
var getBuiltIn$3 = getBuiltIn$5;
|
|
318
|
-
var isCallable$
|
|
315
|
+
var isCallable$d = isCallable$g;
|
|
319
316
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
320
317
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
321
318
|
|
|
322
|
-
var Object$
|
|
319
|
+
var $Object$2 = Object;
|
|
323
320
|
|
|
324
|
-
var isSymbol$
|
|
321
|
+
var isSymbol$4 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
325
322
|
return typeof it == 'symbol';
|
|
326
323
|
} : function (it) {
|
|
327
324
|
var $Symbol = getBuiltIn$3('Symbol');
|
|
328
|
-
return isCallable$
|
|
325
|
+
return isCallable$d($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
|
|
329
326
|
};
|
|
330
327
|
|
|
331
|
-
var
|
|
332
|
-
|
|
333
|
-
var String$4 = global$l.String;
|
|
328
|
+
var $String$3 = String;
|
|
334
329
|
|
|
335
330
|
var tryToString$1 = function (argument) {
|
|
336
331
|
try {
|
|
337
|
-
return String$
|
|
332
|
+
return $String$3(argument);
|
|
338
333
|
} catch (error) {
|
|
339
334
|
return 'Object';
|
|
340
335
|
}
|
|
341
336
|
};
|
|
342
337
|
|
|
343
|
-
var
|
|
344
|
-
var isCallable$a = isCallable$e;
|
|
338
|
+
var isCallable$c = isCallable$g;
|
|
345
339
|
var tryToString = tryToString$1;
|
|
346
340
|
|
|
347
|
-
var TypeError$
|
|
341
|
+
var $TypeError$6 = TypeError;
|
|
348
342
|
|
|
349
343
|
// `Assert: IsCallable(argument) is true`
|
|
350
344
|
var aCallable$2 = function (argument) {
|
|
351
|
-
if (isCallable$
|
|
352
|
-
throw TypeError$
|
|
345
|
+
if (isCallable$c(argument)) return argument;
|
|
346
|
+
throw $TypeError$6(tryToString(argument) + ' is not a function');
|
|
353
347
|
};
|
|
354
348
|
|
|
355
349
|
var aCallable$1 = aCallable$2;
|
|
@@ -361,45 +355,44 @@ var getMethod$1 = function (V, P) {
|
|
|
361
355
|
return func == null ? undefined : aCallable$1(func);
|
|
362
356
|
};
|
|
363
357
|
|
|
364
|
-
var
|
|
365
|
-
var
|
|
366
|
-
var isCallable$9 = isCallable$e;
|
|
358
|
+
var call$3 = functionCall;
|
|
359
|
+
var isCallable$b = isCallable$g;
|
|
367
360
|
var isObject$7 = isObject$8;
|
|
368
361
|
|
|
369
|
-
var TypeError$
|
|
362
|
+
var $TypeError$5 = TypeError;
|
|
370
363
|
|
|
371
364
|
// `OrdinaryToPrimitive` abstract operation
|
|
372
365
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
373
366
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
374
367
|
var fn, val;
|
|
375
|
-
if (pref === 'string' && isCallable$
|
|
376
|
-
if (isCallable$
|
|
377
|
-
if (pref !== 'string' && isCallable$
|
|
378
|
-
throw TypeError$
|
|
368
|
+
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
|
|
369
|
+
if (isCallable$b(fn = input.valueOf) && !isObject$7(val = call$3(fn, input))) return val;
|
|
370
|
+
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
|
|
371
|
+
throw $TypeError$5("Can't convert object to primitive value");
|
|
379
372
|
};
|
|
380
373
|
|
|
381
374
|
var shared$4 = {exports: {}};
|
|
382
375
|
|
|
383
376
|
var isPure = false;
|
|
384
377
|
|
|
385
|
-
var global$
|
|
378
|
+
var global$c = global$f;
|
|
386
379
|
|
|
387
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
388
|
-
var defineProperty$
|
|
380
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
381
|
+
var defineProperty$4 = Object.defineProperty;
|
|
389
382
|
|
|
390
|
-
var
|
|
383
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
391
384
|
try {
|
|
392
|
-
defineProperty$
|
|
385
|
+
defineProperty$4(global$c, key, { value: value, configurable: true, writable: true });
|
|
393
386
|
} catch (error) {
|
|
394
|
-
global$
|
|
387
|
+
global$c[key] = value;
|
|
395
388
|
} return value;
|
|
396
389
|
};
|
|
397
390
|
|
|
398
|
-
var global$
|
|
399
|
-
var
|
|
391
|
+
var global$b = global$f;
|
|
392
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
400
393
|
|
|
401
394
|
var SHARED = '__core-js_shared__';
|
|
402
|
-
var store$3 = global$
|
|
395
|
+
var store$3 = global$b[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
403
396
|
|
|
404
397
|
var sharedStore = store$3;
|
|
405
398
|
|
|
@@ -409,48 +402,48 @@ var store$2 = sharedStore;
|
|
|
409
402
|
(shared$4.exports = function (key, value) {
|
|
410
403
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
411
404
|
})('versions', []).push({
|
|
412
|
-
version: '3.
|
|
405
|
+
version: '3.23.3',
|
|
413
406
|
mode: IS_PURE ? 'pure' : 'global',
|
|
414
407
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
415
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
408
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE',
|
|
416
409
|
source: 'https://github.com/zloirock/core-js'
|
|
417
410
|
});
|
|
418
411
|
|
|
419
412
|
var shared$3 = shared$4.exports;
|
|
420
413
|
|
|
421
|
-
var global$g = global$r;
|
|
422
414
|
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
423
415
|
|
|
424
|
-
var Object$
|
|
416
|
+
var $Object$1 = Object;
|
|
425
417
|
|
|
426
418
|
// `ToObject` abstract operation
|
|
427
419
|
// https://tc39.es/ecma262/#sec-toobject
|
|
428
420
|
var toObject$2 = function (argument) {
|
|
429
|
-
return Object$
|
|
421
|
+
return $Object$1(requireObjectCoercible$1(argument));
|
|
430
422
|
};
|
|
431
423
|
|
|
432
|
-
var uncurryThis$
|
|
424
|
+
var uncurryThis$f = functionUncurryThis;
|
|
433
425
|
var toObject$1 = toObject$2;
|
|
434
426
|
|
|
435
|
-
var hasOwnProperty = uncurryThis$
|
|
427
|
+
var hasOwnProperty$1 = uncurryThis$f({}.hasOwnProperty);
|
|
436
428
|
|
|
437
429
|
// `HasOwnProperty` abstract operation
|
|
438
430
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
431
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
439
432
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
440
|
-
return hasOwnProperty(toObject$1(it), key);
|
|
433
|
+
return hasOwnProperty$1(toObject$1(it), key);
|
|
441
434
|
};
|
|
442
435
|
|
|
443
|
-
var uncurryThis$
|
|
436
|
+
var uncurryThis$e = functionUncurryThis;
|
|
444
437
|
|
|
445
438
|
var id = 0;
|
|
446
439
|
var postfix = Math.random();
|
|
447
|
-
var toString$
|
|
440
|
+
var toString$4 = uncurryThis$e(1.0.toString);
|
|
448
441
|
|
|
449
442
|
var uid$2 = function (key) {
|
|
450
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
443
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
|
|
451
444
|
};
|
|
452
445
|
|
|
453
|
-
var global$
|
|
446
|
+
var global$a = global$f;
|
|
454
447
|
var shared$2 = shared$4.exports;
|
|
455
448
|
var hasOwn$7 = hasOwnProperty_1;
|
|
456
449
|
var uid$1 = uid$2;
|
|
@@ -458,15 +451,15 @@ var NATIVE_SYMBOL = nativeSymbol;
|
|
|
458
451
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
459
452
|
|
|
460
453
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
461
|
-
var Symbol$
|
|
462
|
-
var symbolFor = Symbol$
|
|
463
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$
|
|
454
|
+
var Symbol$2 = global$a.Symbol;
|
|
455
|
+
var symbolFor = Symbol$2 && Symbol$2['for'];
|
|
456
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
464
457
|
|
|
465
458
|
var wellKnownSymbol$5 = function (name) {
|
|
466
459
|
if (!hasOwn$7(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
467
460
|
var description = 'Symbol.' + name;
|
|
468
|
-
if (NATIVE_SYMBOL && hasOwn$7(Symbol$
|
|
469
|
-
WellKnownSymbolsStore[name] = Symbol$
|
|
461
|
+
if (NATIVE_SYMBOL && hasOwn$7(Symbol$2, name)) {
|
|
462
|
+
WellKnownSymbolsStore[name] = Symbol$2[name];
|
|
470
463
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
471
464
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
472
465
|
} else {
|
|
@@ -475,47 +468,46 @@ var wellKnownSymbol$5 = function (name) {
|
|
|
475
468
|
} return WellKnownSymbolsStore[name];
|
|
476
469
|
};
|
|
477
470
|
|
|
478
|
-
var
|
|
479
|
-
var call$1 = functionCall;
|
|
471
|
+
var call$2 = functionCall;
|
|
480
472
|
var isObject$6 = isObject$8;
|
|
481
|
-
var isSymbol$
|
|
473
|
+
var isSymbol$3 = isSymbol$4;
|
|
482
474
|
var getMethod = getMethod$1;
|
|
483
475
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
484
476
|
var wellKnownSymbol$4 = wellKnownSymbol$5;
|
|
485
477
|
|
|
486
|
-
var TypeError$
|
|
478
|
+
var $TypeError$4 = TypeError;
|
|
487
479
|
var TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');
|
|
488
480
|
|
|
489
481
|
// `ToPrimitive` abstract operation
|
|
490
482
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
491
483
|
var toPrimitive$2 = function (input, pref) {
|
|
492
|
-
if (!isObject$6(input) || isSymbol$
|
|
484
|
+
if (!isObject$6(input) || isSymbol$3(input)) return input;
|
|
493
485
|
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
494
486
|
var result;
|
|
495
487
|
if (exoticToPrim) {
|
|
496
488
|
if (pref === undefined) pref = 'default';
|
|
497
|
-
result = call$
|
|
498
|
-
if (!isObject$6(result) || isSymbol$
|
|
499
|
-
throw TypeError$
|
|
489
|
+
result = call$2(exoticToPrim, input, pref);
|
|
490
|
+
if (!isObject$6(result) || isSymbol$3(result)) return result;
|
|
491
|
+
throw $TypeError$4("Can't convert object to primitive value");
|
|
500
492
|
}
|
|
501
493
|
if (pref === undefined) pref = 'number';
|
|
502
494
|
return ordinaryToPrimitive(input, pref);
|
|
503
495
|
};
|
|
504
496
|
|
|
505
497
|
var toPrimitive$1 = toPrimitive$2;
|
|
506
|
-
var isSymbol$
|
|
498
|
+
var isSymbol$2 = isSymbol$4;
|
|
507
499
|
|
|
508
500
|
// `ToPropertyKey` abstract operation
|
|
509
501
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
510
502
|
var toPropertyKey$2 = function (argument) {
|
|
511
503
|
var key = toPrimitive$1(argument, 'string');
|
|
512
|
-
return isSymbol$
|
|
504
|
+
return isSymbol$2(key) ? key : key + '';
|
|
513
505
|
};
|
|
514
506
|
|
|
515
|
-
var global$
|
|
507
|
+
var global$9 = global$f;
|
|
516
508
|
var isObject$5 = isObject$8;
|
|
517
509
|
|
|
518
|
-
var document$1 = global$
|
|
510
|
+
var document$1 = global$9.document;
|
|
519
511
|
// typeof document.createElement is 'object' in old IE
|
|
520
512
|
var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
|
|
521
513
|
|
|
@@ -523,20 +515,20 @@ var documentCreateElement$2 = function (it) {
|
|
|
523
515
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
524
516
|
};
|
|
525
517
|
|
|
526
|
-
var DESCRIPTORS$
|
|
527
|
-
var fails$
|
|
518
|
+
var DESCRIPTORS$a = descriptors;
|
|
519
|
+
var fails$7 = fails$c;
|
|
528
520
|
var createElement = documentCreateElement$2;
|
|
529
521
|
|
|
530
522
|
// Thanks to IE8 for its funny defineProperty
|
|
531
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
532
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
523
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$7(function () {
|
|
524
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
533
525
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
534
526
|
get: function () { return 7; }
|
|
535
527
|
}).a != 7;
|
|
536
528
|
});
|
|
537
529
|
|
|
538
|
-
var DESCRIPTORS$
|
|
539
|
-
var call = functionCall;
|
|
530
|
+
var DESCRIPTORS$9 = descriptors;
|
|
531
|
+
var call$1 = functionCall;
|
|
540
532
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
541
533
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
542
534
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -544,58 +536,56 @@ var toPropertyKey$1 = toPropertyKey$2;
|
|
|
544
536
|
var hasOwn$6 = hasOwnProperty_1;
|
|
545
537
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
546
538
|
|
|
547
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
539
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
548
540
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
549
541
|
|
|
550
542
|
// `Object.getOwnPropertyDescriptor` method
|
|
551
543
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
552
|
-
var f$4 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
544
|
+
var f$4 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
553
545
|
O = toIndexedObject$4(O);
|
|
554
546
|
P = toPropertyKey$1(P);
|
|
555
547
|
if (IE8_DOM_DEFINE$1) try {
|
|
556
548
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
557
549
|
} catch (error) { /* empty */ }
|
|
558
|
-
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
550
|
+
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
559
551
|
};
|
|
560
552
|
|
|
561
553
|
var objectDefineProperty = {};
|
|
562
554
|
|
|
563
|
-
var DESCRIPTORS$
|
|
564
|
-
var fails$
|
|
555
|
+
var DESCRIPTORS$8 = descriptors;
|
|
556
|
+
var fails$6 = fails$c;
|
|
565
557
|
|
|
566
558
|
// V8 ~ Chrome 36-
|
|
567
559
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
568
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
569
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
560
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$6(function () {
|
|
561
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
570
562
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
571
563
|
value: 42,
|
|
572
564
|
writable: false
|
|
573
565
|
}).prototype != 42;
|
|
574
566
|
});
|
|
575
567
|
|
|
576
|
-
var global$c = global$r;
|
|
577
568
|
var isObject$4 = isObject$8;
|
|
578
569
|
|
|
579
|
-
var String$
|
|
580
|
-
var TypeError$
|
|
570
|
+
var $String$2 = String;
|
|
571
|
+
var $TypeError$3 = TypeError;
|
|
581
572
|
|
|
582
573
|
// `Assert: Type(argument) is Object`
|
|
583
574
|
var anObject$5 = function (argument) {
|
|
584
575
|
if (isObject$4(argument)) return argument;
|
|
585
|
-
throw TypeError$
|
|
576
|
+
throw $TypeError$3($String$2(argument) + ' is not an object');
|
|
586
577
|
};
|
|
587
578
|
|
|
588
|
-
var
|
|
589
|
-
var DESCRIPTORS$6 = descriptors;
|
|
579
|
+
var DESCRIPTORS$7 = descriptors;
|
|
590
580
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
591
581
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
592
582
|
var anObject$4 = anObject$5;
|
|
593
583
|
var toPropertyKey = toPropertyKey$2;
|
|
594
584
|
|
|
595
|
-
var TypeError$
|
|
596
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
585
|
+
var $TypeError$2 = TypeError;
|
|
586
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
597
587
|
var $defineProperty = Object.defineProperty;
|
|
598
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
588
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
599
589
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
600
590
|
var ENUMERABLE = 'enumerable';
|
|
601
591
|
var CONFIGURABLE$1 = 'configurable';
|
|
@@ -603,7 +593,7 @@ var WRITABLE = 'writable';
|
|
|
603
593
|
|
|
604
594
|
// `Object.defineProperty` method
|
|
605
595
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
606
|
-
var f$3 = objectDefineProperty.f = DESCRIPTORS$
|
|
596
|
+
var f$3 = objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
607
597
|
anObject$4(O);
|
|
608
598
|
P = toPropertyKey(P);
|
|
609
599
|
anObject$4(Attributes);
|
|
@@ -625,32 +615,50 @@ var f$3 = objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? f
|
|
|
625
615
|
if (IE8_DOM_DEFINE) try {
|
|
626
616
|
return $defineProperty(O, P, Attributes);
|
|
627
617
|
} catch (error) { /* empty */ }
|
|
628
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
618
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
|
|
629
619
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
630
620
|
return O;
|
|
631
621
|
};
|
|
632
622
|
|
|
633
|
-
var DESCRIPTORS$
|
|
623
|
+
var DESCRIPTORS$6 = descriptors;
|
|
634
624
|
var definePropertyModule$3 = objectDefineProperty;
|
|
635
625
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
636
626
|
|
|
637
|
-
var createNonEnumerableProperty$
|
|
627
|
+
var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value) {
|
|
638
628
|
return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
|
|
639
629
|
} : function (object, key, value) {
|
|
640
630
|
object[key] = value;
|
|
641
631
|
return object;
|
|
642
632
|
};
|
|
643
633
|
|
|
644
|
-
var
|
|
634
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
645
635
|
|
|
646
|
-
var
|
|
647
|
-
var
|
|
636
|
+
var DESCRIPTORS$5 = descriptors;
|
|
637
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
638
|
+
|
|
639
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
640
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
641
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
642
|
+
|
|
643
|
+
var EXISTS = hasOwn$5(FunctionPrototype$2, 'name');
|
|
644
|
+
// additional protection from minified / mangled / dropped function names
|
|
645
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
646
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$2, 'name').configurable));
|
|
647
|
+
|
|
648
|
+
var functionName = {
|
|
649
|
+
EXISTS: EXISTS,
|
|
650
|
+
PROPER: PROPER,
|
|
651
|
+
CONFIGURABLE: CONFIGURABLE
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
var uncurryThis$d = functionUncurryThis;
|
|
655
|
+
var isCallable$a = isCallable$g;
|
|
648
656
|
var store$1 = sharedStore;
|
|
649
657
|
|
|
650
|
-
var functionToString$1 = uncurryThis$
|
|
658
|
+
var functionToString$1 = uncurryThis$d(Function.toString);
|
|
651
659
|
|
|
652
660
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
653
|
-
if (!isCallable$
|
|
661
|
+
if (!isCallable$a(store$1.inspectSource)) {
|
|
654
662
|
store$1.inspectSource = function (it) {
|
|
655
663
|
return functionToString$1(it);
|
|
656
664
|
};
|
|
@@ -658,13 +666,13 @@ if (!isCallable$8(store$1.inspectSource)) {
|
|
|
658
666
|
|
|
659
667
|
var inspectSource$3 = store$1.inspectSource;
|
|
660
668
|
|
|
661
|
-
var global$
|
|
662
|
-
var isCallable$
|
|
669
|
+
var global$8 = global$f;
|
|
670
|
+
var isCallable$9 = isCallable$g;
|
|
663
671
|
var inspectSource$2 = inspectSource$3;
|
|
664
672
|
|
|
665
|
-
var WeakMap$1 = global$
|
|
673
|
+
var WeakMap$1 = global$8.WeakMap;
|
|
666
674
|
|
|
667
|
-
var nativeWeakMap = isCallable$
|
|
675
|
+
var nativeWeakMap = isCallable$9(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
|
|
668
676
|
|
|
669
677
|
var shared$1 = shared$4.exports;
|
|
670
678
|
var uid = uid$2;
|
|
@@ -678,18 +686,18 @@ var sharedKey$2 = function (key) {
|
|
|
678
686
|
var hiddenKeys$4 = {};
|
|
679
687
|
|
|
680
688
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
681
|
-
var global$
|
|
682
|
-
var uncurryThis$
|
|
689
|
+
var global$7 = global$f;
|
|
690
|
+
var uncurryThis$c = functionUncurryThis;
|
|
683
691
|
var isObject$3 = isObject$8;
|
|
684
|
-
var createNonEnumerableProperty$
|
|
685
|
-
var hasOwn$
|
|
692
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
693
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
686
694
|
var shared = sharedStore;
|
|
687
695
|
var sharedKey$1 = sharedKey$2;
|
|
688
696
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
689
697
|
|
|
690
698
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
691
|
-
var TypeError$
|
|
692
|
-
var WeakMap = global$
|
|
699
|
+
var TypeError$2 = global$7.TypeError;
|
|
700
|
+
var WeakMap = global$7.WeakMap;
|
|
693
701
|
var set$1, get, has;
|
|
694
702
|
|
|
695
703
|
var enforce = function (it) {
|
|
@@ -700,18 +708,18 @@ var getterFor = function (TYPE) {
|
|
|
700
708
|
return function (it) {
|
|
701
709
|
var state;
|
|
702
710
|
if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
|
|
703
|
-
throw TypeError$
|
|
711
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
704
712
|
} return state;
|
|
705
713
|
};
|
|
706
714
|
};
|
|
707
715
|
|
|
708
716
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
709
717
|
var store = shared.state || (shared.state = new WeakMap());
|
|
710
|
-
var wmget = uncurryThis$
|
|
711
|
-
var wmhas = uncurryThis$
|
|
712
|
-
var wmset = uncurryThis$
|
|
718
|
+
var wmget = uncurryThis$c(store.get);
|
|
719
|
+
var wmhas = uncurryThis$c(store.has);
|
|
720
|
+
var wmset = uncurryThis$c(store.set);
|
|
713
721
|
set$1 = function (it, metadata) {
|
|
714
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
722
|
+
if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
715
723
|
metadata.facade = it;
|
|
716
724
|
wmset(store, it, metadata);
|
|
717
725
|
return metadata;
|
|
@@ -726,16 +734,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
726
734
|
var STATE = sharedKey$1('state');
|
|
727
735
|
hiddenKeys$3[STATE] = true;
|
|
728
736
|
set$1 = function (it, metadata) {
|
|
729
|
-
if (hasOwn$
|
|
737
|
+
if (hasOwn$4(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
730
738
|
metadata.facade = it;
|
|
731
|
-
createNonEnumerableProperty$
|
|
739
|
+
createNonEnumerableProperty$2(it, STATE, metadata);
|
|
732
740
|
return metadata;
|
|
733
741
|
};
|
|
734
742
|
get = function (it) {
|
|
735
|
-
return hasOwn$
|
|
743
|
+
return hasOwn$4(it, STATE) ? it[STATE] : {};
|
|
736
744
|
};
|
|
737
745
|
has = function (it) {
|
|
738
|
-
return hasOwn$
|
|
746
|
+
return hasOwn$4(it, STATE);
|
|
739
747
|
};
|
|
740
748
|
}
|
|
741
749
|
|
|
@@ -747,84 +755,107 @@ var internalState = {
|
|
|
747
755
|
getterFor: getterFor
|
|
748
756
|
};
|
|
749
757
|
|
|
750
|
-
var
|
|
751
|
-
var
|
|
752
|
-
|
|
753
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
754
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
755
|
-
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
756
|
-
|
|
757
|
-
var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
|
|
758
|
-
// additional protection from minified / mangled / dropped function names
|
|
759
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
760
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
761
|
-
|
|
762
|
-
var functionName = {
|
|
763
|
-
EXISTS: EXISTS,
|
|
764
|
-
PROPER: PROPER,
|
|
765
|
-
CONFIGURABLE: CONFIGURABLE
|
|
766
|
-
};
|
|
767
|
-
|
|
768
|
-
var global$8 = global$r;
|
|
769
|
-
var isCallable$6 = isCallable$e;
|
|
758
|
+
var fails$5 = fails$c;
|
|
759
|
+
var isCallable$8 = isCallable$g;
|
|
770
760
|
var hasOwn$3 = hasOwnProperty_1;
|
|
771
|
-
var
|
|
772
|
-
var
|
|
761
|
+
var DESCRIPTORS$4 = descriptors;
|
|
762
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
773
763
|
var inspectSource$1 = inspectSource$3;
|
|
774
764
|
var InternalStateModule = internalState;
|
|
775
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
776
765
|
|
|
777
|
-
var getInternalState = InternalStateModule.get;
|
|
778
766
|
var enforceInternalState = InternalStateModule.enforce;
|
|
767
|
+
var getInternalState = InternalStateModule.get;
|
|
768
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
769
|
+
var defineProperty$3 = Object.defineProperty;
|
|
770
|
+
|
|
771
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$5(function () {
|
|
772
|
+
return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
773
|
+
});
|
|
774
|
+
|
|
779
775
|
var TEMPLATE = String(String).split('String');
|
|
780
776
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
785
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
786
|
-
var state;
|
|
787
|
-
if (isCallable$6(value)) {
|
|
788
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
789
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
790
|
-
}
|
|
791
|
-
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
792
|
-
createNonEnumerableProperty$2(value, 'name', name);
|
|
793
|
-
}
|
|
794
|
-
state = enforceInternalState(value);
|
|
795
|
-
if (!state.source) {
|
|
796
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
797
|
-
}
|
|
777
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
778
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
779
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
798
780
|
}
|
|
799
|
-
if (
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
781
|
+
if (options && options.getter) name = 'get ' + name;
|
|
782
|
+
if (options && options.setter) name = 'set ' + name;
|
|
783
|
+
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
784
|
+
if (DESCRIPTORS$4) defineProperty$3(value, 'name', { value: name, configurable: true });
|
|
785
|
+
else value.name = name;
|
|
786
|
+
}
|
|
787
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
|
|
788
|
+
defineProperty$3(value, 'length', { value: options.arity });
|
|
807
789
|
}
|
|
808
|
-
|
|
809
|
-
|
|
790
|
+
try {
|
|
791
|
+
if (options && hasOwn$3(options, 'constructor') && options.constructor) {
|
|
792
|
+
if (DESCRIPTORS$4) defineProperty$3(value, 'prototype', { writable: false });
|
|
793
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
794
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
795
|
+
} catch (error) { /* empty */ }
|
|
796
|
+
var state = enforceInternalState(value);
|
|
797
|
+
if (!hasOwn$3(state, 'source')) {
|
|
798
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
799
|
+
} return value;
|
|
800
|
+
};
|
|
801
|
+
|
|
810
802
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
803
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
804
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
805
|
+
return isCallable$8(this) && getInternalState(this).source || inspectSource$1(this);
|
|
806
|
+
}, 'toString');
|
|
814
807
|
|
|
815
|
-
var
|
|
808
|
+
var makeBuiltIn_1 = makeBuiltIn$2.exports;
|
|
809
|
+
|
|
810
|
+
var isCallable$7 = isCallable$g;
|
|
811
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
812
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
813
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
814
|
+
|
|
815
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
816
|
+
if (!options) options = {};
|
|
817
|
+
var simple = options.enumerable;
|
|
818
|
+
var name = options.name !== undefined ? options.name : key;
|
|
819
|
+
if (isCallable$7(value)) makeBuiltIn(value, name, options);
|
|
820
|
+
if (options.global) {
|
|
821
|
+
if (simple) O[key] = value;
|
|
822
|
+
else defineGlobalProperty$1(key, value);
|
|
823
|
+
} else {
|
|
824
|
+
try {
|
|
825
|
+
if (!options.unsafe) delete O[key];
|
|
826
|
+
else if (O[key]) simple = true;
|
|
827
|
+
} catch (error) { /* empty */ }
|
|
828
|
+
if (simple) O[key] = value;
|
|
829
|
+
else definePropertyModule$2.f(O, key, {
|
|
830
|
+
value: value,
|
|
831
|
+
enumerable: false,
|
|
832
|
+
configurable: !options.nonConfigurable,
|
|
833
|
+
writable: !options.nonWritable
|
|
834
|
+
});
|
|
835
|
+
} return O;
|
|
836
|
+
};
|
|
816
837
|
|
|
817
838
|
var objectGetOwnPropertyNames = {};
|
|
818
839
|
|
|
819
840
|
var ceil = Math.ceil;
|
|
820
841
|
var floor = Math.floor;
|
|
821
842
|
|
|
843
|
+
// `Math.trunc` method
|
|
844
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
845
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
846
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
847
|
+
var n = +x;
|
|
848
|
+
return (n > 0 ? floor : ceil)(n);
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
var trunc = mathTrunc;
|
|
852
|
+
|
|
822
853
|
// `ToIntegerOrInfinity` abstract operation
|
|
823
854
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
824
855
|
var toIntegerOrInfinity$2 = function (argument) {
|
|
825
856
|
var number = +argument;
|
|
826
|
-
// eslint-disable-next-line no-self-compare --
|
|
827
|
-
return number !== number || number === 0 ? 0 : (number
|
|
857
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
858
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
828
859
|
};
|
|
829
860
|
|
|
830
861
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
@@ -891,13 +922,13 @@ var arrayIncludes = {
|
|
|
891
922
|
indexOf: createMethod$3(false)
|
|
892
923
|
};
|
|
893
924
|
|
|
894
|
-
var uncurryThis$
|
|
925
|
+
var uncurryThis$b = functionUncurryThis;
|
|
895
926
|
var hasOwn$2 = hasOwnProperty_1;
|
|
896
927
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
897
928
|
var indexOf = arrayIncludes.indexOf;
|
|
898
929
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
899
930
|
|
|
900
|
-
var push$2 = uncurryThis$
|
|
931
|
+
var push$2 = uncurryThis$b([].push);
|
|
901
932
|
|
|
902
933
|
var objectKeysInternal = function (object, names) {
|
|
903
934
|
var O = toIndexedObject$2(object);
|
|
@@ -930,39 +961,39 @@ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
|
930
961
|
|
|
931
962
|
// `Object.getOwnPropertyNames` method
|
|
932
963
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
933
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
964
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
934
965
|
var f$2 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
935
966
|
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
936
967
|
};
|
|
937
968
|
|
|
938
969
|
var objectGetOwnPropertySymbols = {};
|
|
939
970
|
|
|
940
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
971
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
941
972
|
var f$1 = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
942
973
|
|
|
943
974
|
var getBuiltIn$2 = getBuiltIn$5;
|
|
944
|
-
var uncurryThis$
|
|
975
|
+
var uncurryThis$a = functionUncurryThis;
|
|
945
976
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
946
977
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
947
978
|
var anObject$3 = anObject$5;
|
|
948
979
|
|
|
949
|
-
var concat = uncurryThis$
|
|
980
|
+
var concat = uncurryThis$a([].concat);
|
|
950
981
|
|
|
951
982
|
// all object keys, includes non-enumerable and symbols
|
|
952
|
-
var ownKeys$
|
|
983
|
+
var ownKeys$2 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
953
984
|
var keys = getOwnPropertyNamesModule.f(anObject$3(it));
|
|
954
985
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
955
986
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
956
987
|
};
|
|
957
988
|
|
|
958
989
|
var hasOwn$1 = hasOwnProperty_1;
|
|
959
|
-
var ownKeys = ownKeys$
|
|
990
|
+
var ownKeys$1 = ownKeys$2;
|
|
960
991
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
961
|
-
var definePropertyModule$
|
|
992
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
962
993
|
|
|
963
994
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
964
|
-
var keys = ownKeys(source);
|
|
965
|
-
var defineProperty = definePropertyModule$
|
|
995
|
+
var keys = ownKeys$1(source);
|
|
996
|
+
var defineProperty = definePropertyModule$1.f;
|
|
966
997
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
967
998
|
for (var i = 0; i < keys.length; i++) {
|
|
968
999
|
var key = keys[i];
|
|
@@ -972,8 +1003,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
972
1003
|
}
|
|
973
1004
|
};
|
|
974
1005
|
|
|
975
|
-
var fails$
|
|
976
|
-
var isCallable$
|
|
1006
|
+
var fails$4 = fails$c;
|
|
1007
|
+
var isCallable$6 = isCallable$g;
|
|
977
1008
|
|
|
978
1009
|
var replacement = /#|\.prototype\./;
|
|
979
1010
|
|
|
@@ -981,7 +1012,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
981
1012
|
var value = data[normalize(feature)];
|
|
982
1013
|
return value == POLYFILL ? true
|
|
983
1014
|
: value == NATIVE ? false
|
|
984
|
-
: isCallable$
|
|
1015
|
+
: isCallable$6(detection) ? fails$4(detection)
|
|
985
1016
|
: !!detection;
|
|
986
1017
|
};
|
|
987
1018
|
|
|
@@ -995,28 +1026,28 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
995
1026
|
|
|
996
1027
|
var isForced_1 = isForced$2;
|
|
997
1028
|
|
|
998
|
-
var global$
|
|
1029
|
+
var global$6 = global$f;
|
|
999
1030
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1000
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
1001
|
-
var
|
|
1002
|
-
var
|
|
1031
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
1032
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
1033
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1003
1034
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1004
1035
|
var isForced$1 = isForced_1;
|
|
1005
1036
|
|
|
1006
1037
|
/*
|
|
1007
|
-
options.target
|
|
1008
|
-
options.global
|
|
1009
|
-
options.stat
|
|
1010
|
-
options.proto
|
|
1011
|
-
options.real
|
|
1012
|
-
options.forced
|
|
1013
|
-
options.bind
|
|
1014
|
-
options.wrap
|
|
1015
|
-
options.unsafe
|
|
1016
|
-
options.sham
|
|
1017
|
-
options.enumerable
|
|
1018
|
-
options.
|
|
1019
|
-
options.name
|
|
1038
|
+
options.target - name of the target object
|
|
1039
|
+
options.global - target is the global object
|
|
1040
|
+
options.stat - export as static methods of target
|
|
1041
|
+
options.proto - export as prototype methods of target
|
|
1042
|
+
options.real - real prototype method for the `pure` version
|
|
1043
|
+
options.forced - export even if the native feature is available
|
|
1044
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
1045
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1046
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1047
|
+
options.sham - add a flag to not completely full polyfills
|
|
1048
|
+
options.enumerable - export as enumerable property
|
|
1049
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
1050
|
+
options.name - the .name of the function if it does not match the key
|
|
1020
1051
|
*/
|
|
1021
1052
|
var _export = function (options, source) {
|
|
1022
1053
|
var TARGET = options.target;
|
|
@@ -1024,15 +1055,15 @@ var _export = function (options, source) {
|
|
|
1024
1055
|
var STATIC = options.stat;
|
|
1025
1056
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1026
1057
|
if (GLOBAL) {
|
|
1027
|
-
target = global$
|
|
1058
|
+
target = global$6;
|
|
1028
1059
|
} else if (STATIC) {
|
|
1029
|
-
target = global$
|
|
1060
|
+
target = global$6[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1030
1061
|
} else {
|
|
1031
|
-
target = (global$
|
|
1062
|
+
target = (global$6[TARGET] || {}).prototype;
|
|
1032
1063
|
}
|
|
1033
1064
|
if (target) for (key in source) {
|
|
1034
1065
|
sourceProperty = source[key];
|
|
1035
|
-
if (options.
|
|
1066
|
+
if (options.dontCallGetSet) {
|
|
1036
1067
|
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
1037
1068
|
targetProperty = descriptor && descriptor.value;
|
|
1038
1069
|
} else targetProperty = target[key];
|
|
@@ -1046,21 +1077,20 @@ var _export = function (options, source) {
|
|
|
1046
1077
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1047
1078
|
createNonEnumerableProperty$1(sourceProperty, 'sham', true);
|
|
1048
1079
|
}
|
|
1049
|
-
|
|
1050
|
-
redefine$2(target, key, sourceProperty, options);
|
|
1080
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1051
1081
|
}
|
|
1052
1082
|
};
|
|
1053
1083
|
|
|
1054
|
-
var uncurryThis$
|
|
1084
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1055
1085
|
var aCallable = aCallable$2;
|
|
1056
|
-
var NATIVE_BIND = functionBindNative;
|
|
1086
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
1057
1087
|
|
|
1058
|
-
var bind$1 = uncurryThis$
|
|
1088
|
+
var bind$1 = uncurryThis$9(uncurryThis$9.bind);
|
|
1059
1089
|
|
|
1060
1090
|
// optional / simple context binding
|
|
1061
1091
|
var functionBindContext = function (fn, that) {
|
|
1062
1092
|
aCallable(fn);
|
|
1063
|
-
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
1093
|
+
return that === undefined ? fn : NATIVE_BIND$1 ? bind$1(fn, that) : function (/* ...args */) {
|
|
1064
1094
|
return fn.apply(that, arguments);
|
|
1065
1095
|
};
|
|
1066
1096
|
};
|
|
@@ -1069,8 +1099,8 @@ var classof$4 = classofRaw$1;
|
|
|
1069
1099
|
|
|
1070
1100
|
// `IsArray` abstract operation
|
|
1071
1101
|
// https://tc39.es/ecma262/#sec-isarray
|
|
1072
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
1073
|
-
var isArray$
|
|
1102
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
1103
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
1074
1104
|
return classof$4(argument) == 'Array';
|
|
1075
1105
|
};
|
|
1076
1106
|
|
|
@@ -1083,14 +1113,13 @@ test[TO_STRING_TAG$1] = 'z';
|
|
|
1083
1113
|
|
|
1084
1114
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1085
1115
|
|
|
1086
|
-
var global$6 = global$r;
|
|
1087
1116
|
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
1088
|
-
var isCallable$
|
|
1117
|
+
var isCallable$5 = isCallable$g;
|
|
1089
1118
|
var classofRaw = classofRaw$1;
|
|
1090
1119
|
var wellKnownSymbol$2 = wellKnownSymbol$5;
|
|
1091
1120
|
|
|
1092
1121
|
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
1093
|
-
var Object
|
|
1122
|
+
var $Object = Object;
|
|
1094
1123
|
|
|
1095
1124
|
// ES3 wrong here
|
|
1096
1125
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1107,16 +1136,16 @@ var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
|
1107
1136
|
var O, tag, result;
|
|
1108
1137
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1109
1138
|
// @@toStringTag case
|
|
1110
|
-
: typeof (tag = tryGet(O = Object
|
|
1139
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1111
1140
|
// builtinTag case
|
|
1112
1141
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1113
1142
|
// ES3 arguments fallback
|
|
1114
|
-
: (result = classofRaw(O)) == 'Object' && isCallable$
|
|
1143
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1115
1144
|
};
|
|
1116
1145
|
|
|
1117
|
-
var uncurryThis$
|
|
1118
|
-
var fails$
|
|
1119
|
-
var isCallable$
|
|
1146
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1147
|
+
var fails$3 = fails$c;
|
|
1148
|
+
var isCallable$4 = isCallable$g;
|
|
1120
1149
|
var classof$2 = classof$3;
|
|
1121
1150
|
var getBuiltIn$1 = getBuiltIn$5;
|
|
1122
1151
|
var inspectSource = inspectSource$3;
|
|
@@ -1125,11 +1154,11 @@ var noop = function () { /* empty */ };
|
|
|
1125
1154
|
var empty = [];
|
|
1126
1155
|
var construct = getBuiltIn$1('Reflect', 'construct');
|
|
1127
1156
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1128
|
-
var exec = uncurryThis$
|
|
1157
|
+
var exec = uncurryThis$8(constructorRegExp.exec);
|
|
1129
1158
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1130
1159
|
|
|
1131
1160
|
var isConstructorModern = function isConstructor(argument) {
|
|
1132
|
-
if (!isCallable$
|
|
1161
|
+
if (!isCallable$4(argument)) return false;
|
|
1133
1162
|
try {
|
|
1134
1163
|
construct(noop, empty, argument);
|
|
1135
1164
|
return true;
|
|
@@ -1139,7 +1168,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1139
1168
|
};
|
|
1140
1169
|
|
|
1141
1170
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1142
|
-
if (!isCallable$
|
|
1171
|
+
if (!isCallable$4(argument)) return false;
|
|
1143
1172
|
switch (classof$2(argument)) {
|
|
1144
1173
|
case 'AsyncFunction':
|
|
1145
1174
|
case 'GeneratorFunction':
|
|
@@ -1159,7 +1188,7 @@ isConstructorLegacy.sham = true;
|
|
|
1159
1188
|
|
|
1160
1189
|
// `IsConstructor` abstract operation
|
|
1161
1190
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1162
|
-
var isConstructor$1 = !construct || fails$
|
|
1191
|
+
var isConstructor$1 = !construct || fails$3(function () {
|
|
1163
1192
|
var called;
|
|
1164
1193
|
return isConstructorModern(isConstructorModern.call)
|
|
1165
1194
|
|| !isConstructorModern(Object)
|
|
@@ -1167,28 +1196,27 @@ var isConstructor$1 = !construct || fails$2(function () {
|
|
|
1167
1196
|
|| called;
|
|
1168
1197
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1169
1198
|
|
|
1170
|
-
var
|
|
1171
|
-
var isArray = isArray$1;
|
|
1199
|
+
var isArray$1 = isArray$2;
|
|
1172
1200
|
var isConstructor = isConstructor$1;
|
|
1173
1201
|
var isObject$2 = isObject$8;
|
|
1174
1202
|
var wellKnownSymbol$1 = wellKnownSymbol$5;
|
|
1175
1203
|
|
|
1176
1204
|
var SPECIES = wellKnownSymbol$1('species');
|
|
1177
|
-
var Array
|
|
1205
|
+
var $Array = Array;
|
|
1178
1206
|
|
|
1179
1207
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
1180
1208
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
1181
1209
|
var arraySpeciesConstructor$1 = function (originalArray) {
|
|
1182
1210
|
var C;
|
|
1183
|
-
if (isArray(originalArray)) {
|
|
1211
|
+
if (isArray$1(originalArray)) {
|
|
1184
1212
|
C = originalArray.constructor;
|
|
1185
1213
|
// cross-realm fallback
|
|
1186
|
-
if (isConstructor(C) && (C === Array
|
|
1214
|
+
if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
|
|
1187
1215
|
else if (isObject$2(C)) {
|
|
1188
1216
|
C = C[SPECIES];
|
|
1189
1217
|
if (C === null) C = undefined;
|
|
1190
1218
|
}
|
|
1191
|
-
} return C === undefined ? Array
|
|
1219
|
+
} return C === undefined ? $Array : C;
|
|
1192
1220
|
};
|
|
1193
1221
|
|
|
1194
1222
|
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
@@ -1200,13 +1228,13 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
|
1200
1228
|
};
|
|
1201
1229
|
|
|
1202
1230
|
var bind = functionBindContext;
|
|
1203
|
-
var uncurryThis$
|
|
1231
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1204
1232
|
var IndexedObject = indexedObject;
|
|
1205
1233
|
var toObject = toObject$2;
|
|
1206
1234
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1207
1235
|
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
1208
1236
|
|
|
1209
|
-
var push$1 = uncurryThis$
|
|
1237
|
+
var push$1 = uncurryThis$7([].push);
|
|
1210
1238
|
|
|
1211
1239
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
1212
1240
|
var createMethod$2 = function (TYPE) {
|
|
@@ -1274,11 +1302,11 @@ var arrayIteration = {
|
|
|
1274
1302
|
};
|
|
1275
1303
|
|
|
1276
1304
|
'use strict';
|
|
1277
|
-
var fails$
|
|
1305
|
+
var fails$2 = fails$c;
|
|
1278
1306
|
|
|
1279
1307
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
1280
1308
|
var method = [][METHOD_NAME];
|
|
1281
|
-
return !!method && fails$
|
|
1309
|
+
return !!method && fails$2(function () {
|
|
1282
1310
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1283
1311
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1284
1312
|
});
|
|
@@ -1294,17 +1322,17 @@ var STRICT_METHOD = arrayMethodIsStrict('forEach');
|
|
|
1294
1322
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1295
1323
|
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
1296
1324
|
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1297
|
-
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1325
|
+
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
|
1298
1326
|
} : [].forEach;
|
|
1299
1327
|
|
|
1300
1328
|
'use strict';
|
|
1301
|
-
var $$
|
|
1329
|
+
var $$5 = _export;
|
|
1302
1330
|
var forEach$1 = arrayForEach;
|
|
1303
1331
|
|
|
1304
1332
|
// `Array.prototype.forEach` method
|
|
1305
1333
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1306
|
-
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1307
|
-
$$
|
|
1334
|
+
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
|
1335
|
+
$$5({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
|
|
1308
1336
|
forEach: forEach$1
|
|
1309
1337
|
});
|
|
1310
1338
|
|
|
@@ -1316,18 +1344,18 @@ var classof$1 = classof$3;
|
|
|
1316
1344
|
|
|
1317
1345
|
// `Object.prototype.toString` method implementation
|
|
1318
1346
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
1319
|
-
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
1347
|
+
var objectToString$1 = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
1320
1348
|
return '[object ' + classof$1(this) + ']';
|
|
1321
1349
|
};
|
|
1322
1350
|
|
|
1323
1351
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1324
|
-
var
|
|
1325
|
-
var toString$
|
|
1352
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1353
|
+
var toString$3 = objectToString$1;
|
|
1326
1354
|
|
|
1327
1355
|
// `Object.prototype.toString` method
|
|
1328
1356
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
1329
1357
|
if (!TO_STRING_TAG_SUPPORT) {
|
|
1330
|
-
|
|
1358
|
+
defineBuiltIn$1(Object.prototype, 'toString', toString$3, { unsafe: true });
|
|
1331
1359
|
}
|
|
1332
1360
|
|
|
1333
1361
|
var web_domCollections_forEach = {};
|
|
@@ -1376,11 +1404,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1376
1404
|
|
|
1377
1405
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1378
1406
|
|
|
1379
|
-
var global$
|
|
1407
|
+
var global$5 = global$f;
|
|
1380
1408
|
var DOMIterables = domIterables;
|
|
1381
1409
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1382
1410
|
var forEach = arrayForEach;
|
|
1383
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
1411
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
|
1384
1412
|
|
|
1385
1413
|
var handlePrototype = function (CollectionPrototype) {
|
|
1386
1414
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
@@ -1393,7 +1421,7 @@ var handlePrototype = function (CollectionPrototype) {
|
|
|
1393
1421
|
|
|
1394
1422
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1395
1423
|
if (DOMIterables[COLLECTION_NAME]) {
|
|
1396
|
-
handlePrototype(global$
|
|
1424
|
+
handlePrototype(global$5[COLLECTION_NAME] && global$5[COLLECTION_NAME].prototype);
|
|
1397
1425
|
}
|
|
1398
1426
|
}
|
|
1399
1427
|
|
|
@@ -1406,19 +1434,19 @@ var enumBugKeys$1 = enumBugKeys$3;
|
|
|
1406
1434
|
|
|
1407
1435
|
// `Object.keys` method
|
|
1408
1436
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1409
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1437
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
1410
1438
|
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1411
1439
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1412
1440
|
};
|
|
1413
1441
|
|
|
1414
1442
|
var DESCRIPTORS$3 = descriptors;
|
|
1415
|
-
var uncurryThis$
|
|
1443
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1416
1444
|
var objectKeys$1 = objectKeys$2;
|
|
1417
1445
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1418
1446
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
1419
1447
|
|
|
1420
|
-
var propertyIsEnumerable = uncurryThis$
|
|
1421
|
-
var push = uncurryThis$
|
|
1448
|
+
var propertyIsEnumerable = uncurryThis$6($propertyIsEnumerable);
|
|
1449
|
+
var push = uncurryThis$6([].push);
|
|
1422
1450
|
|
|
1423
1451
|
// `Object.{ entries, values }` methods implementation
|
|
1424
1452
|
var createMethod$1 = function (TO_ENTRIES) {
|
|
@@ -1448,12 +1476,12 @@ var objectToArray = {
|
|
|
1448
1476
|
values: createMethod$1(false)
|
|
1449
1477
|
};
|
|
1450
1478
|
|
|
1451
|
-
var $$
|
|
1479
|
+
var $$4 = _export;
|
|
1452
1480
|
var $entries = objectToArray.entries;
|
|
1453
1481
|
|
|
1454
1482
|
// `Object.entries` method
|
|
1455
1483
|
// https://tc39.es/ecma262/#sec-object.entries
|
|
1456
|
-
$$
|
|
1484
|
+
$$4({ target: 'Object', stat: true }, {
|
|
1457
1485
|
entries: function entries(O) {
|
|
1458
1486
|
return $entries(O);
|
|
1459
1487
|
}
|
|
@@ -1475,6 +1503,30 @@ const isProxyAvailable = typeof Proxy === 'function';
|
|
|
1475
1503
|
const HOOK_SETUP = 'devtools-plugin:setup';
|
|
1476
1504
|
const HOOK_PLUGIN_SETTINGS_SET = 'plugin:settings:set';
|
|
1477
1505
|
|
|
1506
|
+
let supported;
|
|
1507
|
+
let perf;
|
|
1508
|
+
function isPerformanceSupported() {
|
|
1509
|
+
var _a;
|
|
1510
|
+
if (supported !== undefined) {
|
|
1511
|
+
return supported;
|
|
1512
|
+
}
|
|
1513
|
+
if (typeof window !== 'undefined' && window.performance) {
|
|
1514
|
+
supported = true;
|
|
1515
|
+
perf = window.performance;
|
|
1516
|
+
}
|
|
1517
|
+
else if (typeof global !== 'undefined' && ((_a = global.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
|
|
1518
|
+
supported = true;
|
|
1519
|
+
perf = global.perf_hooks.performance;
|
|
1520
|
+
}
|
|
1521
|
+
else {
|
|
1522
|
+
supported = false;
|
|
1523
|
+
}
|
|
1524
|
+
return supported;
|
|
1525
|
+
}
|
|
1526
|
+
function now() {
|
|
1527
|
+
return isPerformanceSupported() ? perf.now() : Date.now();
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1478
1530
|
class ApiProxy {
|
|
1479
1531
|
constructor(plugin, hook) {
|
|
1480
1532
|
this.target = null;
|
|
@@ -1512,6 +1564,9 @@ class ApiProxy {
|
|
|
1512
1564
|
}
|
|
1513
1565
|
currentSettings = value;
|
|
1514
1566
|
},
|
|
1567
|
+
now() {
|
|
1568
|
+
return now();
|
|
1569
|
+
},
|
|
1515
1570
|
};
|
|
1516
1571
|
if (hook) {
|
|
1517
1572
|
hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
|
|
@@ -1600,12 +1655,12 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
|
1600
1655
|
}
|
|
1601
1656
|
|
|
1602
1657
|
/**
|
|
1603
|
-
* vee-validate v4.5.
|
|
1658
|
+
* vee-validate v4.5.11
|
|
1604
1659
|
* (c) 2022 Abdelrahman Awad
|
|
1605
1660
|
* @license MIT
|
|
1606
1661
|
*/
|
|
1607
1662
|
|
|
1608
|
-
function isCallable$
|
|
1663
|
+
function isCallable$3(fn) {
|
|
1609
1664
|
return typeof fn === 'function';
|
|
1610
1665
|
}
|
|
1611
1666
|
function isNullOrUndefined(value) {
|
|
@@ -1639,7 +1694,7 @@ function resolveRule(id) {
|
|
|
1639
1694
|
* Guards from extension violations.
|
|
1640
1695
|
*/
|
|
1641
1696
|
function guardExtend(id, validator) {
|
|
1642
|
-
if (isCallable$
|
|
1697
|
+
if (isCallable$3(validator)) {
|
|
1643
1698
|
return;
|
|
1644
1699
|
}
|
|
1645
1700
|
throw new Error(`Extension Error: The validator '${id}' must be a function.`);
|
|
@@ -1650,7 +1705,7 @@ const FieldContextKey = Symbol('vee-validate-field-instance');
|
|
|
1650
1705
|
const IS_ABSENT = Symbol('Default empty value');
|
|
1651
1706
|
|
|
1652
1707
|
function isLocator(value) {
|
|
1653
|
-
return isCallable$
|
|
1708
|
+
return isCallable$3(value) && !!value.__locatorRef;
|
|
1654
1709
|
}
|
|
1655
1710
|
/**
|
|
1656
1711
|
* Checks if an tag name is a native HTML tag and not a Vue component
|
|
@@ -1665,7 +1720,7 @@ function isFileInputNode(tag, attrs) {
|
|
|
1665
1720
|
return isHTMLTag(tag) && attrs.type === 'file';
|
|
1666
1721
|
}
|
|
1667
1722
|
function isYupValidator(value) {
|
|
1668
|
-
return !!value && isCallable$
|
|
1723
|
+
return !!value && isCallable$3(value.validate);
|
|
1669
1724
|
}
|
|
1670
1725
|
function hasCheckedAttr(type) {
|
|
1671
1726
|
return type === 'checkbox' || type === 'radio';
|
|
@@ -1725,7 +1780,7 @@ function isEvent(evt) {
|
|
|
1725
1780
|
if (!evt) {
|
|
1726
1781
|
return false;
|
|
1727
1782
|
}
|
|
1728
|
-
if (typeof Event !== 'undefined' && isCallable$
|
|
1783
|
+
if (typeof Event !== 'undefined' && isCallable$3(Event) && evt instanceof Event) {
|
|
1729
1784
|
return true;
|
|
1730
1785
|
}
|
|
1731
1786
|
// this is for IE and Cypress #3161
|
|
@@ -2102,18 +2157,34 @@ async function _validate(field, value) {
|
|
|
2102
2157
|
if (isYupValidator(field.rules)) {
|
|
2103
2158
|
return validateFieldWithYup(value, field.rules, { bails: field.bails });
|
|
2104
2159
|
}
|
|
2105
|
-
// if a generic function
|
|
2106
|
-
if (isCallable$
|
|
2160
|
+
// if a generic function or chain of generic functions
|
|
2161
|
+
if (isCallable$3(field.rules) || Array.isArray(field.rules)) {
|
|
2107
2162
|
const ctx = {
|
|
2108
2163
|
field: field.name,
|
|
2109
2164
|
form: field.formData,
|
|
2110
2165
|
value: value,
|
|
2111
2166
|
};
|
|
2112
|
-
|
|
2113
|
-
const
|
|
2114
|
-
const
|
|
2167
|
+
// Normalize the pipeline
|
|
2168
|
+
const pipeline = Array.isArray(field.rules) ? field.rules : [field.rules];
|
|
2169
|
+
const length = pipeline.length;
|
|
2170
|
+
const errors = [];
|
|
2171
|
+
for (let i = 0; i < length; i++) {
|
|
2172
|
+
const rule = pipeline[i];
|
|
2173
|
+
const result = await rule(value, ctx);
|
|
2174
|
+
const isValid = typeof result !== 'string' && result;
|
|
2175
|
+
if (isValid) {
|
|
2176
|
+
continue;
|
|
2177
|
+
}
|
|
2178
|
+
const message = typeof result === 'string' ? result : _generateFieldError(ctx);
|
|
2179
|
+
errors.push(message);
|
|
2180
|
+
if (field.bails) {
|
|
2181
|
+
return {
|
|
2182
|
+
errors,
|
|
2183
|
+
};
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2115
2186
|
return {
|
|
2116
|
-
errors
|
|
2187
|
+
errors,
|
|
2117
2188
|
};
|
|
2118
2189
|
}
|
|
2119
2190
|
const normalizedContext = Object.assign(Object.assign({}, field), { rules: normalizeRules(field.rules) });
|
|
@@ -2898,6 +2969,8 @@ function useField(name, rules, opts) {
|
|
|
2898
2969
|
function _useField(name, rules, opts) {
|
|
2899
2970
|
const { initialValue: modelValue, validateOnMount, bails, type, checkedValue, label, validateOnValueUpdate, uncheckedValue, standalone, } = normalizeOptions(unref(name), opts);
|
|
2900
2971
|
const form = !standalone ? injectWithSelf(FormContextKey) : undefined;
|
|
2972
|
+
// a flag indicating if the field is about to be removed/unmounted.
|
|
2973
|
+
let markedForRemoval = false;
|
|
2901
2974
|
const { id, value, initialValue, meta, setState, errors, errorMessage } = useFieldState(name, {
|
|
2902
2975
|
modelValue,
|
|
2903
2976
|
standalone,
|
|
@@ -2914,7 +2987,7 @@ function _useField(name, rules, opts) {
|
|
|
2914
2987
|
if (schema && !isYupValidator(schema)) {
|
|
2915
2988
|
rulesValue = extractRuleFromSchema(schema, unref(name)) || rulesValue;
|
|
2916
2989
|
}
|
|
2917
|
-
if (isYupValidator(rulesValue) || isCallable$
|
|
2990
|
+
if (isYupValidator(rulesValue) || isCallable$3(rulesValue) || Array.isArray(rulesValue)) {
|
|
2918
2991
|
return rulesValue;
|
|
2919
2992
|
}
|
|
2920
2993
|
return normalizeRules(rulesValue);
|
|
@@ -2934,12 +3007,19 @@ function _useField(name, rules, opts) {
|
|
|
2934
3007
|
meta.pending = true;
|
|
2935
3008
|
meta.validated = true;
|
|
2936
3009
|
const result = await validateCurrentValue('validated-only');
|
|
3010
|
+
if (markedForRemoval) {
|
|
3011
|
+
result.valid = true;
|
|
3012
|
+
result.errors = [];
|
|
3013
|
+
}
|
|
2937
3014
|
setState({ errors: result.errors });
|
|
2938
3015
|
meta.pending = false;
|
|
2939
3016
|
return result;
|
|
2940
3017
|
}
|
|
2941
3018
|
async function validateValidStateOnly() {
|
|
2942
3019
|
const result = await validateCurrentValue('silent');
|
|
3020
|
+
if (markedForRemoval) {
|
|
3021
|
+
result.valid = true;
|
|
3022
|
+
}
|
|
2943
3023
|
meta.valid = result.valid;
|
|
2944
3024
|
return result;
|
|
2945
3025
|
}
|
|
@@ -3054,13 +3134,14 @@ function _useField(name, rules, opts) {
|
|
|
3054
3134
|
// associate the field with the given form
|
|
3055
3135
|
form.register(field);
|
|
3056
3136
|
onBeforeUnmount(() => {
|
|
3137
|
+
markedForRemoval = true;
|
|
3057
3138
|
form.unregister(field);
|
|
3058
3139
|
});
|
|
3059
3140
|
// extract cross-field dependencies in a computed prop
|
|
3060
3141
|
const dependencies = computed(() => {
|
|
3061
3142
|
const rulesVal = normalizedRules.value;
|
|
3062
3143
|
// is falsy, a function schema or a yup schema
|
|
3063
|
-
if (!rulesVal || isCallable$
|
|
3144
|
+
if (!rulesVal || isCallable$3(rulesVal) || isYupValidator(rulesVal) || Array.isArray(rulesVal)) {
|
|
3064
3145
|
return {};
|
|
3065
3146
|
}
|
|
3066
3147
|
return Object.keys(rulesVal).reduce((acc, rule) => {
|
|
@@ -4601,14 +4682,14 @@ var objectDefineProperties = {};
|
|
|
4601
4682
|
|
|
4602
4683
|
var DESCRIPTORS$2 = descriptors;
|
|
4603
4684
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
4604
|
-
var definePropertyModule
|
|
4685
|
+
var definePropertyModule = objectDefineProperty;
|
|
4605
4686
|
var anObject$2 = anObject$5;
|
|
4606
4687
|
var toIndexedObject = toIndexedObject$5;
|
|
4607
4688
|
var objectKeys = objectKeys$2;
|
|
4608
4689
|
|
|
4609
4690
|
// `Object.defineProperties` method
|
|
4610
4691
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
4611
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
4692
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
4612
4693
|
var f = objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
4613
4694
|
anObject$2(O);
|
|
4614
4695
|
var props = toIndexedObject(Properties);
|
|
@@ -4616,7 +4697,7 @@ var f = objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? O
|
|
|
4616
4697
|
var length = keys.length;
|
|
4617
4698
|
var index = 0;
|
|
4618
4699
|
var key;
|
|
4619
|
-
while (length > index) definePropertyModule
|
|
4700
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
4620
4701
|
return O;
|
|
4621
4702
|
};
|
|
4622
4703
|
|
|
@@ -4696,6 +4777,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
4696
4777
|
|
|
4697
4778
|
// `Object.create` method
|
|
4698
4779
|
// https://tc39.es/ecma262/#sec-object.create
|
|
4780
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
4699
4781
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
4700
4782
|
var result;
|
|
4701
4783
|
if (O !== null) {
|
|
@@ -4710,7 +4792,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
4710
4792
|
|
|
4711
4793
|
var wellKnownSymbol = wellKnownSymbol$5;
|
|
4712
4794
|
var create = objectCreate;
|
|
4713
|
-
var
|
|
4795
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
4714
4796
|
|
|
4715
4797
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
4716
4798
|
var ArrayPrototype = Array.prototype;
|
|
@@ -4718,7 +4800,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
4718
4800
|
// Array.prototype[@@unscopables]
|
|
4719
4801
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
4720
4802
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
4721
|
-
|
|
4803
|
+
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
4722
4804
|
configurable: true,
|
|
4723
4805
|
value: create(null)
|
|
4724
4806
|
});
|
|
@@ -4730,13 +4812,19 @@ var addToUnscopables$2 = function (key) {
|
|
|
4730
4812
|
};
|
|
4731
4813
|
|
|
4732
4814
|
'use strict';
|
|
4733
|
-
var $$
|
|
4815
|
+
var $$3 = _export;
|
|
4734
4816
|
var $includes = arrayIncludes.includes;
|
|
4817
|
+
var fails$1 = fails$c;
|
|
4735
4818
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
4736
4819
|
|
|
4820
|
+
// FF99+ bug
|
|
4821
|
+
var BROKEN_ON_SPARSE = fails$1(function () {
|
|
4822
|
+
return !Array(1).includes();
|
|
4823
|
+
});
|
|
4824
|
+
|
|
4737
4825
|
// `Array.prototype.includes` method
|
|
4738
4826
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4739
|
-
$$
|
|
4827
|
+
$$3({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
4740
4828
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
4741
4829
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
4742
4830
|
}
|
|
@@ -4745,7 +4833,7 @@ $$1({ target: 'Array', proto: true }, {
|
|
|
4745
4833
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
4746
4834
|
addToUnscopables$1('includes');
|
|
4747
4835
|
|
|
4748
|
-
var script$
|
|
4836
|
+
var script$7 = defineComponent({
|
|
4749
4837
|
name: 'FwInput',
|
|
4750
4838
|
emits: ['update:modelValue'],
|
|
4751
4839
|
components: {
|
|
@@ -4817,6 +4905,7 @@ var script$6 = defineComponent({
|
|
|
4817
4905
|
}
|
|
4818
4906
|
},
|
|
4819
4907
|
setup: function setup(props, ctx) {
|
|
4908
|
+
var inputBaseClass = ref("border-2 border-grey-lightest rounded-lg focus:outline-none focus:ring-2 focus:ring-primary block w-full p-2.5");
|
|
4820
4909
|
var inputValue = computed({
|
|
4821
4910
|
get: function get() {
|
|
4822
4911
|
return props.modelValue;
|
|
@@ -4826,6 +4915,7 @@ var script$6 = defineComponent({
|
|
|
4826
4915
|
}
|
|
4827
4916
|
});
|
|
4828
4917
|
return {
|
|
4918
|
+
inputBaseClass: inputBaseClass,
|
|
4829
4919
|
inputValue: inputValue
|
|
4830
4920
|
};
|
|
4831
4921
|
}
|
|
@@ -4835,19 +4925,19 @@ var es_function_name = {};
|
|
|
4835
4925
|
|
|
4836
4926
|
var DESCRIPTORS$1 = descriptors;
|
|
4837
4927
|
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
4838
|
-
var uncurryThis$
|
|
4928
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
4839
4929
|
var defineProperty$1 = objectDefineProperty.f;
|
|
4840
4930
|
|
|
4841
|
-
var FunctionPrototype = Function.prototype;
|
|
4842
|
-
var functionToString = uncurryThis$
|
|
4931
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
4932
|
+
var functionToString = uncurryThis$5(FunctionPrototype$1.toString);
|
|
4843
4933
|
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
4844
|
-
var regExpExec = uncurryThis$
|
|
4934
|
+
var regExpExec = uncurryThis$5(nameRE.exec);
|
|
4845
4935
|
var NAME = 'name';
|
|
4846
4936
|
|
|
4847
4937
|
// Function instances `.name` property
|
|
4848
4938
|
// https://tc39.es/ecma262/#sec-function-instances-name
|
|
4849
4939
|
if (DESCRIPTORS$1 && !FUNCTION_NAME_EXISTS) {
|
|
4850
|
-
defineProperty$1(FunctionPrototype, NAME, {
|
|
4940
|
+
defineProperty$1(FunctionPrototype$1, NAME, {
|
|
4851
4941
|
configurable: true,
|
|
4852
4942
|
get: function () {
|
|
4853
4943
|
try {
|
|
@@ -4859,29 +4949,29 @@ if (DESCRIPTORS$1 && !FUNCTION_NAME_EXISTS) {
|
|
|
4859
4949
|
});
|
|
4860
4950
|
}
|
|
4861
4951
|
|
|
4862
|
-
var _hoisted_1$
|
|
4952
|
+
var _hoisted_1$6 = {
|
|
4863
4953
|
"class": "fw-input w-full"
|
|
4864
4954
|
};
|
|
4865
|
-
var _hoisted_2$
|
|
4955
|
+
var _hoisted_2$5 = {
|
|
4866
4956
|
"class": "flex flex-col"
|
|
4867
4957
|
};
|
|
4868
|
-
var _hoisted_3$
|
|
4958
|
+
var _hoisted_3$5 = {
|
|
4869
4959
|
"class": "flex flex-row justify-between"
|
|
4870
4960
|
};
|
|
4871
|
-
var _hoisted_4$
|
|
4872
|
-
var _hoisted_5$
|
|
4961
|
+
var _hoisted_4$4 = ["for"];
|
|
4962
|
+
var _hoisted_5$3 = {
|
|
4873
4963
|
key: 1
|
|
4874
4964
|
};
|
|
4875
|
-
var _hoisted_6$
|
|
4965
|
+
var _hoisted_6$3 = {
|
|
4876
4966
|
"class": "relative"
|
|
4877
4967
|
};
|
|
4878
|
-
var _hoisted_7$
|
|
4968
|
+
var _hoisted_7$3 = {
|
|
4879
4969
|
key: 0,
|
|
4880
4970
|
"class": "flex text-black absolute w-9 h-full inset-y-0 left-0 items-center pl-3 pointer-events-none"
|
|
4881
4971
|
};
|
|
4882
|
-
var _hoisted_8$
|
|
4972
|
+
var _hoisted_8$3 = ["placeholder", "type", "readonly", "disabled"];
|
|
4883
4973
|
|
|
4884
|
-
var _hoisted_9$
|
|
4974
|
+
var _hoisted_9$2 = /*#__PURE__*/createElementVNode("svg", {
|
|
4885
4975
|
fill: "currentColor",
|
|
4886
4976
|
"aria-hidden": "true",
|
|
4887
4977
|
focusable: "false",
|
|
@@ -4892,12 +4982,12 @@ var _hoisted_9$1 = /*#__PURE__*/createElementVNode("svg", {
|
|
|
4892
4982
|
d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8\n 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36\n 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4\n 400 256 400z"
|
|
4893
4983
|
})], -1);
|
|
4894
4984
|
|
|
4895
|
-
var _hoisted_10$
|
|
4896
|
-
var _hoisted_11$
|
|
4985
|
+
var _hoisted_10$2 = [_hoisted_9$2];
|
|
4986
|
+
var _hoisted_11$2 = {
|
|
4897
4987
|
key: 1,
|
|
4898
4988
|
"class": "flex text-black absolute w-10 h-full inset-y-0 right-0 items-center pr-3"
|
|
4899
4989
|
};
|
|
4900
|
-
var _hoisted_12
|
|
4990
|
+
var _hoisted_12 = {
|
|
4901
4991
|
"class": "italic text-right text-sm font-medium mt-2 min-h-[21px]"
|
|
4902
4992
|
};
|
|
4903
4993
|
var _hoisted_13 = {
|
|
@@ -4907,10 +4997,10 @@ var _hoisted_13 = {
|
|
|
4907
4997
|
var _hoisted_14 = {
|
|
4908
4998
|
key: 1
|
|
4909
4999
|
};
|
|
4910
|
-
function render$
|
|
5000
|
+
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4911
5001
|
var _component_InputField = resolveComponent("InputField");
|
|
4912
5002
|
|
|
4913
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5003
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [createVNode(_component_InputField, {
|
|
4914
5004
|
modelValue: _ctx.inputValue,
|
|
4915
5005
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) {
|
|
4916
5006
|
return _ctx.inputValue = $event;
|
|
@@ -4923,30 +5013,30 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4923
5013
|
errors = _ref.errors,
|
|
4924
5014
|
errorMessage = _ref.errorMessage,
|
|
4925
5015
|
meta = _ref.meta;
|
|
4926
|
-
return [createElementVNode("div", _hoisted_2$
|
|
5016
|
+
return [createElementVNode("div", _hoisted_2$5, [createElementVNode("div", _hoisted_3$5, [_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
4927
5017
|
key: 0,
|
|
4928
5018
|
"for": _ctx.name,
|
|
4929
5019
|
"class": "block mb-2"
|
|
4930
|
-
}, toDisplayString(_ctx.label), 9, _hoisted_4$
|
|
5020
|
+
}, toDisplayString(_ctx.label), 9, _hoisted_4$4)) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$3, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_6$3, [_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_7$3, [renderSlot(_ctx.$slots, "prefix")])) : createCommentVNode("", true), createElementVNode("input", mergeProps(field, {
|
|
4931
5021
|
placeholder: _ctx.placeholder,
|
|
4932
5022
|
type: _ctx.type,
|
|
4933
5023
|
readonly: _ctx.readonly,
|
|
4934
5024
|
disabled: _ctx.readonly,
|
|
4935
|
-
"class": [
|
|
5025
|
+
"class": [{
|
|
4936
5026
|
'pl-10': !!_ctx.$slots.prefix,
|
|
4937
5027
|
'pr-20': !!_ctx.$slots.suffix
|
|
4938
|
-
}]
|
|
4939
|
-
}), null, 16, _hoisted_8$
|
|
5028
|
+
}, _ctx.inputBaseClass]
|
|
5029
|
+
}), null, 16, _hoisted_8$3), createVNode(Transition, {
|
|
4940
5030
|
name: "fwFadeIn"
|
|
4941
5031
|
}, {
|
|
4942
5032
|
"default": withCtx(function () {
|
|
4943
5033
|
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("div", {
|
|
4944
5034
|
key: 0,
|
|
4945
5035
|
"class": normalizeClass(["flex text-error absolute w-9 h-full inset-y-0 right-0 items-center pr-3 pointer-events-none", _ctx.$slots.suffix ? 'mr-8' : ''])
|
|
4946
|
-
}, _hoisted_10$
|
|
5036
|
+
}, _hoisted_10$2, 2)) : createCommentVNode("", true)];
|
|
4947
5037
|
}),
|
|
4948
5038
|
_: 2
|
|
4949
|
-
}, 1024), _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_11$
|
|
5039
|
+
}, 1024), _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_11$2, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_12, [createVNode(Transition, {
|
|
4950
5040
|
name: "fwFadeIn",
|
|
4951
5041
|
mode: "out-in"
|
|
4952
5042
|
}, {
|
|
@@ -4987,13 +5077,13 @@ function styleInject(css, ref) {
|
|
|
4987
5077
|
}
|
|
4988
5078
|
}
|
|
4989
5079
|
|
|
4990
|
-
var css_248z$
|
|
4991
|
-
var stylesheet$
|
|
4992
|
-
styleInject(css_248z$
|
|
5080
|
+
var css_248z$4 = ".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}}";
|
|
5081
|
+
var stylesheet$4 = ".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}}";
|
|
5082
|
+
styleInject(css_248z$4);
|
|
4993
5083
|
|
|
4994
|
-
script$
|
|
5084
|
+
script$7.render = render$7;
|
|
4995
5085
|
|
|
4996
|
-
var script$
|
|
5086
|
+
var script$6 = defineComponent({
|
|
4997
5087
|
name: 'FwCheckbox',
|
|
4998
5088
|
components: {
|
|
4999
5089
|
InputField: Field
|
|
@@ -5030,29 +5120,33 @@ var script$5 = defineComponent({
|
|
|
5030
5120
|
}
|
|
5031
5121
|
});
|
|
5032
5122
|
|
|
5033
|
-
var
|
|
5123
|
+
var _withScopeId$1 = function _withScopeId(n) {
|
|
5124
|
+
return pushScopeId("data-v-7153bd02"), n = n(), popScopeId(), n;
|
|
5125
|
+
};
|
|
5126
|
+
|
|
5127
|
+
var _hoisted_1$5 = {
|
|
5034
5128
|
"class": "fw-checkbox w-full"
|
|
5035
5129
|
};
|
|
5036
|
-
var _hoisted_2$
|
|
5130
|
+
var _hoisted_2$4 = {
|
|
5037
5131
|
"class": "flex flex-col"
|
|
5038
5132
|
};
|
|
5039
|
-
var _hoisted_3$
|
|
5040
|
-
var _hoisted_4$
|
|
5041
|
-
var _hoisted_5$
|
|
5042
|
-
var _hoisted_6$
|
|
5133
|
+
var _hoisted_3$4 = ["for"];
|
|
5134
|
+
var _hoisted_4$3 = ["value", "name"];
|
|
5135
|
+
var _hoisted_5$2 = ["innerHTML"];
|
|
5136
|
+
var _hoisted_6$2 = {
|
|
5043
5137
|
"class": "italic text-sm font-medium min-h-[21px]"
|
|
5044
5138
|
};
|
|
5045
|
-
var _hoisted_7$
|
|
5139
|
+
var _hoisted_7$2 = {
|
|
5046
5140
|
key: 0,
|
|
5047
5141
|
"class": "text-error"
|
|
5048
5142
|
};
|
|
5049
|
-
var _hoisted_8$
|
|
5143
|
+
var _hoisted_8$2 = {
|
|
5050
5144
|
key: 1
|
|
5051
5145
|
};
|
|
5052
|
-
function render$
|
|
5146
|
+
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5053
5147
|
var _component_InputField = resolveComponent("InputField");
|
|
5054
5148
|
|
|
5055
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5149
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [createVNode(_component_InputField, {
|
|
5056
5150
|
name: _ctx.name,
|
|
5057
5151
|
value: _ctx.name,
|
|
5058
5152
|
type: "checkbox",
|
|
@@ -5063,7 +5157,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5063
5157
|
errors = _ref.errors,
|
|
5064
5158
|
errorMessage = _ref.errorMessage,
|
|
5065
5159
|
meta = _ref.meta;
|
|
5066
|
-
return [createElementVNode("div", _hoisted_2$
|
|
5160
|
+
return [createElementVNode("div", _hoisted_2$4, [_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
5067
5161
|
key: 0,
|
|
5068
5162
|
"for": _ctx.name,
|
|
5069
5163
|
"class": "inline-flex items-center mb-3"
|
|
@@ -5072,15 +5166,15 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5072
5166
|
name: _ctx.name,
|
|
5073
5167
|
type: "checkbox",
|
|
5074
5168
|
"class": "text-primary w-6 h-6 cursor-pointer bg-white border-grey-light border rounded"
|
|
5075
|
-
}), null, 16, _hoisted_4$
|
|
5169
|
+
}), null, 16, _hoisted_4$3), createElementVNode("span", {
|
|
5076
5170
|
"class": "ml-2",
|
|
5077
5171
|
innerHTML: _ctx.label
|
|
5078
|
-
}, null, 8, _hoisted_5$
|
|
5172
|
+
}, null, 8, _hoisted_5$2)], 8, _hoisted_3$4)) : createCommentVNode("", true), createElementVNode("div", _hoisted_6$2, [createVNode(Transition, {
|
|
5079
5173
|
name: "fwFadeIn",
|
|
5080
5174
|
mode: "out-in"
|
|
5081
5175
|
}, {
|
|
5082
5176
|
"default": withCtx(function () {
|
|
5083
|
-
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
5177
|
+
return [(errorMessage || errors[0]) && meta.touched ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(errorMessage || errors[0]), 1)) : _ctx.hint ? (openBlock(), createElementBlock("span", _hoisted_8$2, toDisplayString(_ctx.hint), 1)) : createCommentVNode("", true)];
|
|
5084
5178
|
}),
|
|
5085
5179
|
_: 2
|
|
5086
5180
|
}, 1024)])])];
|
|
@@ -5089,13 +5183,14 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5089
5183
|
}, 8, ["name", "value", "rules"])]);
|
|
5090
5184
|
}
|
|
5091
5185
|
|
|
5092
|
-
var css_248z$
|
|
5093
|
-
var stylesheet$
|
|
5094
|
-
styleInject(css_248z$
|
|
5186
|
+
var css_248z$3 = ".fwFadeIn-enter-active[data-v-7153bd02]{-webkit-animation:fwFadeIn-7153bd02 .35s;animation:fwFadeIn-7153bd02 .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-7153bd02]{animation:fwFadeIn-7153bd02 .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-7153bd02{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-7153bd02{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-7153bd02]{color-adjust:exact;-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;flex-shrink:0;-webkit-print-color-adjust:exact;-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-7153bd02]: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}";
|
|
5187
|
+
var stylesheet$3 = ".fwFadeIn-enter-active[data-v-7153bd02]{-webkit-animation:fwFadeIn-7153bd02 .35s;animation:fwFadeIn-7153bd02 .35s;-webkit-transition:opacity .35s ease-in;-o-transition:opacity .35s ease-in;transition:opacity .35s ease-in}.fwFadeIn-leave-active[data-v-7153bd02]{animation:fwFadeIn-7153bd02 .35s reverse;-webkit-transition:opacity .35s ease-out;-o-transition:opacity .35s ease-out;transition:opacity .35s ease-out}@-webkit-keyframes fwFadeIn-7153bd02{0%{opacity:0}to{opacity:1}}@keyframes fwFadeIn-7153bd02{0%{opacity:0}to{opacity:1}}.fw-checkbox input[data-v-7153bd02]{color-adjust:exact;-ms-flex-negative:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-origin:border-box;display:inline-block;flex-shrink:0;-webkit-print-color-adjust:exact;-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-7153bd02]: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}";
|
|
5188
|
+
styleInject(css_248z$3);
|
|
5095
5189
|
|
|
5096
|
-
script$
|
|
5190
|
+
script$6.render = render$6;
|
|
5191
|
+
script$6.__scopeId = "data-v-7153bd02";
|
|
5097
5192
|
|
|
5098
|
-
var script$
|
|
5193
|
+
var script$5 = defineComponent({
|
|
5099
5194
|
name: 'FwCard',
|
|
5100
5195
|
props: {
|
|
5101
5196
|
/**
|
|
@@ -5125,49 +5220,52 @@ var script$4 = defineComponent({
|
|
|
5125
5220
|
href: String
|
|
5126
5221
|
},
|
|
5127
5222
|
setup: function setup(props) {
|
|
5223
|
+
var linkClass = ref( // eslint-disable-next-line max-len
|
|
5224
|
+
"block cursor-pointer focus:outline-none ring-offset-3 focus:ring focus:ring-primary transform-none transition-transform hover:-translate-y-1");
|
|
5128
5225
|
var componentName = computed(function () {
|
|
5129
5226
|
if (props.to) return 'router-link';
|
|
5130
5227
|
if (props.href) return 'a';
|
|
5131
5228
|
return 'div';
|
|
5132
5229
|
});
|
|
5133
5230
|
return {
|
|
5134
|
-
componentName: componentName
|
|
5231
|
+
componentName: componentName,
|
|
5232
|
+
linkClass: linkClass
|
|
5135
5233
|
};
|
|
5136
5234
|
}
|
|
5137
5235
|
});
|
|
5138
5236
|
|
|
5139
|
-
var _hoisted_1$
|
|
5237
|
+
var _hoisted_1$4 = {
|
|
5140
5238
|
key: 0,
|
|
5141
|
-
"class": "fw-card--header
|
|
5239
|
+
"class": "fw-card--header px-8 py-4 bg-grey-lightest rounded-t-lg border-opacity-0"
|
|
5142
5240
|
};
|
|
5143
|
-
var _hoisted_2$
|
|
5241
|
+
var _hoisted_2$3 = {
|
|
5144
5242
|
key: 0,
|
|
5145
5243
|
"class": "fw-card--prefix-title text-primary"
|
|
5146
5244
|
};
|
|
5147
|
-
var _hoisted_3$
|
|
5245
|
+
var _hoisted_3$3 = {
|
|
5148
5246
|
key: 1
|
|
5149
5247
|
};
|
|
5150
|
-
var _hoisted_4$
|
|
5248
|
+
var _hoisted_4$2 = {
|
|
5151
5249
|
key: 1,
|
|
5152
5250
|
"class": "p-8"
|
|
5153
5251
|
};
|
|
5154
|
-
function render$
|
|
5252
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5155
5253
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.componentName), {
|
|
5156
5254
|
to: _ctx.to ? _ctx.to : null,
|
|
5157
5255
|
href: _ctx.href ? _ctx.href : null,
|
|
5158
5256
|
tabindex: _ctx.to ? 0 : null,
|
|
5159
|
-
"class": normalizeClass(["fw-card shadow-card rounded-lg", _ctx.to || _ctx.href ?
|
|
5257
|
+
"class": normalizeClass(["fw-card shadow-card rounded-lg", _ctx.to || _ctx.href ? _ctx.linkClass : ''])
|
|
5160
5258
|
}, {
|
|
5161
5259
|
"default": withCtx(function () {
|
|
5162
|
-
return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1$
|
|
5260
|
+
return [_ctx.title || _ctx.prefixTitle ? (openBlock(), createElementBlock("h4", _hoisted_1$4, [_ctx.prefixTitle ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(_ctx.prefixTitle), 1)) : createCommentVNode("", true), _ctx.title ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots["default"] ? (openBlock(), createElementBlock("div", _hoisted_4$2, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true)];
|
|
5163
5261
|
}),
|
|
5164
5262
|
_: 3
|
|
5165
5263
|
}, 8, ["to", "href", "tabindex", "class"]);
|
|
5166
5264
|
}
|
|
5167
5265
|
|
|
5168
|
-
script$
|
|
5266
|
+
script$5.render = render$5;
|
|
5169
5267
|
|
|
5170
|
-
var script$
|
|
5268
|
+
var script$4 = defineComponent({
|
|
5171
5269
|
name: 'FwButton',
|
|
5172
5270
|
emits: ['click', 'mouseover', 'mouseout', 'focusin', 'focusout'],
|
|
5173
5271
|
props: {
|
|
@@ -5218,6 +5316,8 @@ var script$3 = defineComponent({
|
|
|
5218
5316
|
}
|
|
5219
5317
|
},
|
|
5220
5318
|
setup: function setup(props, ctx) {
|
|
5319
|
+
var baseClass = ref( // eslint-disable-next-line max-len
|
|
5320
|
+
"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");
|
|
5221
5321
|
var buttonClasses = ref({
|
|
5222
5322
|
primary: {
|
|
5223
5323
|
text: 'text-tertiary hover:text-primary active:text-primary',
|
|
@@ -5250,7 +5350,7 @@ var script$3 = defineComponent({
|
|
|
5250
5350
|
border: 'border-none focus-visible:ring-primary'
|
|
5251
5351
|
},
|
|
5252
5352
|
text: {
|
|
5253
|
-
text: 'text-body
|
|
5353
|
+
text: 'text-body hover:text-white active:text-white',
|
|
5254
5354
|
background: 'bg-white hover:bg-body active:bg-body',
|
|
5255
5355
|
border: 'border-transparent focus-visible:ring-body'
|
|
5256
5356
|
}
|
|
@@ -5277,6 +5377,7 @@ var script$3 = defineComponent({
|
|
|
5277
5377
|
/**
|
|
5278
5378
|
* @event Click - Native click
|
|
5279
5379
|
*/
|
|
5380
|
+
// eslint-disable-next-line no-undef
|
|
5280
5381
|
|
|
5281
5382
|
var onClick = function onClick(e) {
|
|
5282
5383
|
return ctx.emit('click', e);
|
|
@@ -5284,6 +5385,7 @@ var script$3 = defineComponent({
|
|
|
5284
5385
|
/**
|
|
5285
5386
|
* @event mouseover - Native hover
|
|
5286
5387
|
*/
|
|
5388
|
+
// eslint-disable-next-line no-undef
|
|
5287
5389
|
|
|
5288
5390
|
|
|
5289
5391
|
var onMouseover = function onMouseover(e) {
|
|
@@ -5292,6 +5394,7 @@ var script$3 = defineComponent({
|
|
|
5292
5394
|
/**
|
|
5293
5395
|
* @event mouseout - Native hover out
|
|
5294
5396
|
*/
|
|
5397
|
+
// eslint-disable-next-line no-undef
|
|
5295
5398
|
|
|
5296
5399
|
|
|
5297
5400
|
var onMouseout = function onMouseout(e) {
|
|
@@ -5300,6 +5403,7 @@ var script$3 = defineComponent({
|
|
|
5300
5403
|
/**
|
|
5301
5404
|
* @event focusin - Native focusin
|
|
5302
5405
|
*/
|
|
5406
|
+
// eslint-disable-next-line no-undef
|
|
5303
5407
|
|
|
5304
5408
|
|
|
5305
5409
|
var onFocusin = function onFocusin(e) {
|
|
@@ -5308,6 +5412,7 @@ var script$3 = defineComponent({
|
|
|
5308
5412
|
/**
|
|
5309
5413
|
* @event focusout - Native focusout
|
|
5310
5414
|
*/
|
|
5415
|
+
// eslint-disable-next-line no-undef
|
|
5311
5416
|
|
|
5312
5417
|
|
|
5313
5418
|
var onFocusout = function onFocusout(e) {
|
|
@@ -5320,6 +5425,7 @@ var script$3 = defineComponent({
|
|
|
5320
5425
|
return 'button';
|
|
5321
5426
|
});
|
|
5322
5427
|
return {
|
|
5428
|
+
baseClass: baseClass,
|
|
5323
5429
|
textColorClass: textColorClass,
|
|
5324
5430
|
bgColorClass: bgColorClass,
|
|
5325
5431
|
sizeClass: sizeClass,
|
|
@@ -5334,9 +5440,9 @@ var script$3 = defineComponent({
|
|
|
5334
5440
|
}
|
|
5335
5441
|
});
|
|
5336
5442
|
|
|
5337
|
-
function render$
|
|
5443
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5338
5444
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tagName), {
|
|
5339
|
-
"class": normalizeClass(["fw-button
|
|
5445
|
+
"class": 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']]),
|
|
5340
5446
|
type: _ctx.tagName === 'button' ? _ctx.buttonType : null,
|
|
5341
5447
|
to: _ctx.to ? _ctx.to : null,
|
|
5342
5448
|
href: _ctx.href ? _ctx.href : null,
|
|
@@ -5351,20 +5457,20 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5351
5457
|
return [renderSlot(_ctx.$slots, "default")];
|
|
5352
5458
|
}),
|
|
5353
5459
|
_: 3
|
|
5354
|
-
},
|
|
5460
|
+
}, 40, ["class", "type", "to", "href", "tabindex", "onClick", "onFocusin", "onFocusout", "onMouseover", "onMouseout"]);
|
|
5355
5461
|
}
|
|
5356
5462
|
|
|
5357
|
-
var css_248z$
|
|
5358
|
-
var stylesheet$
|
|
5359
|
-
styleInject(css_248z$
|
|
5463
|
+
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}";
|
|
5464
|
+
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}";
|
|
5465
|
+
styleInject(css_248z$2);
|
|
5360
5466
|
|
|
5361
|
-
script$
|
|
5467
|
+
script$4.render = render$4;
|
|
5362
5468
|
|
|
5363
|
-
var script$
|
|
5469
|
+
var script$3 = defineComponent({
|
|
5364
5470
|
name: 'FwNavigationMenu',
|
|
5365
5471
|
emits: ['action'],
|
|
5366
5472
|
components: {
|
|
5367
|
-
FwButton: script$
|
|
5473
|
+
FwButton: script$4
|
|
5368
5474
|
},
|
|
5369
5475
|
props: {
|
|
5370
5476
|
/**
|
|
@@ -5384,6 +5490,8 @@ var script$2 = defineComponent({
|
|
|
5384
5490
|
}
|
|
5385
5491
|
},
|
|
5386
5492
|
setup: function setup(_props, ctx) {
|
|
5493
|
+
var mobileMenuClass = ref( // eslint-disable-next-line max-len
|
|
5494
|
+
"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");
|
|
5387
5495
|
var isMobileMenuOpen = ref(false);
|
|
5388
5496
|
|
|
5389
5497
|
var toggleMobileMenu = function toggleMobileMenu() {
|
|
@@ -5395,6 +5503,7 @@ var script$2 = defineComponent({
|
|
|
5395
5503
|
};
|
|
5396
5504
|
|
|
5397
5505
|
return {
|
|
5506
|
+
mobileMenuClass: mobileMenuClass,
|
|
5398
5507
|
isMobileMenuOpen: isMobileMenuOpen,
|
|
5399
5508
|
toggleMobileMenu: toggleMobileMenu,
|
|
5400
5509
|
actionClicked: actionClicked
|
|
@@ -5402,36 +5511,36 @@ var script$2 = defineComponent({
|
|
|
5402
5511
|
}
|
|
5403
5512
|
});
|
|
5404
5513
|
|
|
5405
|
-
var _hoisted_1$
|
|
5514
|
+
var _hoisted_1$3 = {
|
|
5406
5515
|
"class": "fw-nav-menu relative z-50 h-20 shadow-md"
|
|
5407
5516
|
};
|
|
5408
|
-
var _hoisted_2$
|
|
5517
|
+
var _hoisted_2$2 = {
|
|
5409
5518
|
"class": "px-6 flex-1 h-full flex bg-white items-stretch justify-between"
|
|
5410
5519
|
};
|
|
5411
|
-
var _hoisted_3$
|
|
5520
|
+
var _hoisted_3$2 = {
|
|
5412
5521
|
key: 0,
|
|
5413
5522
|
"class": "flex-shrink-0 flex items-center"
|
|
5414
5523
|
};
|
|
5415
|
-
var _hoisted_4 = {
|
|
5524
|
+
var _hoisted_4$1 = {
|
|
5416
5525
|
key: 1,
|
|
5417
|
-
"class": "container hidden sm:flex items-center justify-start sm:ml-6"
|
|
5526
|
+
"class": "container hidden sm:flex items-center justify-start max-w-[600px] sm:ml-6"
|
|
5418
5527
|
};
|
|
5419
|
-
var _hoisted_5 = {
|
|
5528
|
+
var _hoisted_5$1 = {
|
|
5420
5529
|
"class": "flex space-x-2"
|
|
5421
5530
|
};
|
|
5422
|
-
var _hoisted_6 = {
|
|
5531
|
+
var _hoisted_6$1 = {
|
|
5423
5532
|
key: 2,
|
|
5424
5533
|
"class": "hidden sm:flex items-center justify-start sm:ml-6"
|
|
5425
5534
|
};
|
|
5426
|
-
var _hoisted_7 = {
|
|
5535
|
+
var _hoisted_7$1 = {
|
|
5427
5536
|
"class": "flex items-center sm:hidden"
|
|
5428
5537
|
};
|
|
5429
5538
|
|
|
5430
|
-
var _hoisted_8 = /*#__PURE__*/createElementVNode("span", {
|
|
5539
|
+
var _hoisted_8$1 = /*#__PURE__*/createElementVNode("span", {
|
|
5431
5540
|
"class": "sr-only"
|
|
5432
5541
|
}, "Open main menu", -1);
|
|
5433
5542
|
|
|
5434
|
-
var _hoisted_9 = {
|
|
5543
|
+
var _hoisted_9$1 = {
|
|
5435
5544
|
"class": "block h-6 w-6",
|
|
5436
5545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5437
5546
|
fill: "none",
|
|
@@ -5439,20 +5548,16 @@ var _hoisted_9 = {
|
|
|
5439
5548
|
stroke: "currentColor",
|
|
5440
5549
|
"aria-hidden": "true"
|
|
5441
5550
|
};
|
|
5442
|
-
var _hoisted_10 = ["d"];
|
|
5443
|
-
var _hoisted_11 = {
|
|
5444
|
-
key: 0,
|
|
5445
|
-
"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"
|
|
5446
|
-
};
|
|
5447
|
-
var _hoisted_12 = {
|
|
5551
|
+
var _hoisted_10$1 = ["d"];
|
|
5552
|
+
var _hoisted_11$1 = {
|
|
5448
5553
|
"class": "w-full flex flex-col"
|
|
5449
5554
|
};
|
|
5450
|
-
function render$
|
|
5555
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5451
5556
|
var _ctx$menuItems;
|
|
5452
5557
|
|
|
5453
5558
|
var _component_FwButton = resolveComponent("FwButton");
|
|
5454
5559
|
|
|
5455
|
-
return openBlock(), createElementBlock("nav", _hoisted_1$
|
|
5560
|
+
return openBlock(), createElementBlock("nav", _hoisted_1$3, [createElementVNode("div", _hoisted_2$2, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_3$2, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("", true), ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$1, [createElementVNode("div", _hoisted_5$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
5456
5561
|
return openBlock(), createBlock(_component_FwButton, {
|
|
5457
5562
|
key: i,
|
|
5458
5563
|
variant: "text",
|
|
@@ -5466,7 +5571,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5466
5571
|
}),
|
|
5467
5572
|
_: 2
|
|
5468
5573
|
}, 1032, ["href", "to"]);
|
|
5469
|
-
}), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(_component_FwButton, {
|
|
5574
|
+
}), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div", _hoisted_6$1, [createVNode(_component_FwButton, {
|
|
5470
5575
|
onClick: _ctx.actionClicked,
|
|
5471
5576
|
size: "md",
|
|
5472
5577
|
"aria-label": _ctx.actionLabel
|
|
@@ -5475,18 +5580,18 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5475
5580
|
return [createTextVNode(toDisplayString(_ctx.actionLabel), 1)];
|
|
5476
5581
|
}),
|
|
5477
5582
|
_: 1
|
|
5478
|
-
}, 8, ["onClick", "aria-label"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7, [createVNode(_component_FwButton, {
|
|
5583
|
+
}, 8, ["onClick", "aria-label"])])) : createCommentVNode("", true), createElementVNode("div", _hoisted_7$1, [createVNode(_component_FwButton, {
|
|
5479
5584
|
variant: "text",
|
|
5480
5585
|
size: "sm",
|
|
5481
5586
|
onClick: _ctx.toggleMobileMenu
|
|
5482
5587
|
}, {
|
|
5483
5588
|
"default": withCtx(function () {
|
|
5484
|
-
return [_hoisted_8, (openBlock(), createElementBlock("svg", _hoisted_9, [createElementVNode("path", {
|
|
5589
|
+
return [_hoisted_8$1, (openBlock(), createElementBlock("svg", _hoisted_9$1, [createElementVNode("path", {
|
|
5485
5590
|
"stroke-linecap": "round",
|
|
5486
5591
|
"stroke-linejoin": "round",
|
|
5487
5592
|
"stroke-width": "2",
|
|
5488
5593
|
d: _ctx.isMobileMenuOpen ? 'M6 18L18 6M6 6l12 12' : 'M4 6h16M4 12h16M4 18h16'
|
|
5489
|
-
}, null, 8, _hoisted_10)]))];
|
|
5594
|
+
}, null, 8, _hoisted_10$1)]))];
|
|
5490
5595
|
}),
|
|
5491
5596
|
_: 1
|
|
5492
5597
|
}, 8, ["onClick"])])]), createVNode(Transition, {
|
|
@@ -5495,10 +5600,13 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5495
5600
|
"default": withCtx(function () {
|
|
5496
5601
|
var _ctx$menuItems2;
|
|
5497
5602
|
|
|
5498
|
-
return [((_ctx$menuItems2 = _ctx.menuItems) === null || _ctx$menuItems2 === void 0 ? void 0 : _ctx$menuItems2.length) > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div",
|
|
5603
|
+
return [((_ctx$menuItems2 = _ctx.menuItems) === null || _ctx$menuItems2 === void 0 ? void 0 : _ctx$menuItems2.length) > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div", {
|
|
5604
|
+
key: 0,
|
|
5605
|
+
"class": normalizeClass(["fw-nav-menu--mobile", _ctx.mobileMenuClass])
|
|
5606
|
+
}, [createElementVNode("div", _hoisted_11$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
5499
5607
|
return openBlock(), createBlock(_component_FwButton, {
|
|
5500
5608
|
key: i,
|
|
5501
|
-
"class": "w-full rounded-md
|
|
5609
|
+
"class": "w-full rounded-md",
|
|
5502
5610
|
variant: "text",
|
|
5503
5611
|
href: item.href,
|
|
5504
5612
|
to: item.to,
|
|
@@ -5513,55 +5621,53 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5513
5621
|
}), 128))]), _ctx.actionLabel ? (openBlock(), createBlock(_component_FwButton, {
|
|
5514
5622
|
key: 0,
|
|
5515
5623
|
"class": "w-full rounded-md px-2",
|
|
5516
|
-
onClick: _ctx.actionClicked
|
|
5517
|
-
size: "md"
|
|
5624
|
+
onClick: _ctx.actionClicked
|
|
5518
5625
|
}, {
|
|
5519
5626
|
"default": withCtx(function () {
|
|
5520
5627
|
return [createTextVNode(toDisplayString(_ctx.actionLabel), 1)];
|
|
5521
5628
|
}),
|
|
5522
5629
|
_: 1
|
|
5523
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)])) : createCommentVNode("", true)];
|
|
5630
|
+
}, 8, ["onClick"])) : createCommentVNode("", true)], 2)) : createCommentVNode("", true)];
|
|
5524
5631
|
}),
|
|
5525
5632
|
_: 1
|
|
5526
5633
|
})]);
|
|
5527
5634
|
}
|
|
5528
5635
|
|
|
5529
|
-
var css_248z = ".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}}";
|
|
5530
|
-
var stylesheet = ".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}}";
|
|
5531
|
-
styleInject(css_248z);
|
|
5636
|
+
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}}";
|
|
5637
|
+
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}}";
|
|
5638
|
+
styleInject(css_248z$1);
|
|
5532
5639
|
|
|
5533
|
-
script$
|
|
5640
|
+
script$3.render = render$3;
|
|
5534
5641
|
|
|
5535
5642
|
var es_number_constructor = {};
|
|
5536
5643
|
|
|
5537
|
-
var
|
|
5538
|
-
var isCallable$1 = isCallable$e;
|
|
5644
|
+
var isCallable$2 = isCallable$g;
|
|
5539
5645
|
|
|
5540
|
-
var String$
|
|
5541
|
-
var TypeError$
|
|
5646
|
+
var $String$1 = String;
|
|
5647
|
+
var $TypeError$1 = TypeError;
|
|
5542
5648
|
|
|
5543
5649
|
var aPossiblePrototype$1 = function (argument) {
|
|
5544
|
-
if (typeof argument == 'object' || isCallable$
|
|
5545
|
-
throw TypeError$
|
|
5650
|
+
if (typeof argument == 'object' || isCallable$2(argument)) return argument;
|
|
5651
|
+
throw $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
|
|
5546
5652
|
};
|
|
5547
5653
|
|
|
5548
5654
|
/* eslint-disable no-proto -- safe */
|
|
5549
5655
|
|
|
5550
|
-
var uncurryThis$
|
|
5656
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
5551
5657
|
var anObject = anObject$5;
|
|
5552
5658
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
5553
5659
|
|
|
5554
5660
|
// `Object.setPrototypeOf` method
|
|
5555
5661
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
5556
5662
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
5557
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
5663
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
5558
5664
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
5559
5665
|
var CORRECT_SETTER = false;
|
|
5560
5666
|
var test = {};
|
|
5561
5667
|
var setter;
|
|
5562
5668
|
try {
|
|
5563
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5564
|
-
setter = uncurryThis$
|
|
5669
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
5670
|
+
setter = uncurryThis$4(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
5565
5671
|
setter(test, []);
|
|
5566
5672
|
CORRECT_SETTER = test instanceof Array;
|
|
5567
5673
|
} catch (error) { /* empty */ }
|
|
@@ -5574,7 +5680,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
5574
5680
|
};
|
|
5575
5681
|
}() : undefined);
|
|
5576
5682
|
|
|
5577
|
-
var isCallable = isCallable$
|
|
5683
|
+
var isCallable$1 = isCallable$g;
|
|
5578
5684
|
var isObject = isObject$8;
|
|
5579
5685
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
5580
5686
|
|
|
@@ -5585,7 +5691,7 @@ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
|
5585
5691
|
// it can work only with native `setPrototypeOf`
|
|
5586
5692
|
setPrototypeOf &&
|
|
5587
5693
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
5588
|
-
isCallable(NewTarget = dummy.constructor) &&
|
|
5694
|
+
isCallable$1(NewTarget = dummy.constructor) &&
|
|
5589
5695
|
NewTarget !== Wrapper &&
|
|
5590
5696
|
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
5591
5697
|
NewTargetPrototype !== Wrapper.prototype
|
|
@@ -5593,32 +5699,31 @@ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
|
5593
5699
|
return $this;
|
|
5594
5700
|
};
|
|
5595
5701
|
|
|
5596
|
-
var uncurryThis$
|
|
5702
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
5597
5703
|
|
|
5598
5704
|
// `thisNumberValue` abstract operation
|
|
5599
5705
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
5600
|
-
var thisNumberValue$1 = uncurryThis$
|
|
5706
|
+
var thisNumberValue$1 = uncurryThis$3(1.0.valueOf);
|
|
5601
5707
|
|
|
5602
|
-
var global$2 = global$r;
|
|
5603
5708
|
var classof = classof$3;
|
|
5604
5709
|
|
|
5605
|
-
var String
|
|
5710
|
+
var $String = String;
|
|
5606
5711
|
|
|
5607
|
-
var toString$
|
|
5712
|
+
var toString$2 = function (argument) {
|
|
5608
5713
|
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
5609
|
-
return String
|
|
5714
|
+
return $String(argument);
|
|
5610
5715
|
};
|
|
5611
5716
|
|
|
5612
5717
|
// a string of all valid unicode whitespaces
|
|
5613
5718
|
var whitespaces$1 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
5614
5719
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
5615
5720
|
|
|
5616
|
-
var uncurryThis$
|
|
5721
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
5617
5722
|
var requireObjectCoercible = requireObjectCoercible$3;
|
|
5618
|
-
var toString = toString$
|
|
5723
|
+
var toString$1 = toString$2;
|
|
5619
5724
|
var whitespaces = whitespaces$1;
|
|
5620
5725
|
|
|
5621
|
-
var replace = uncurryThis$
|
|
5726
|
+
var replace = uncurryThis$2(''.replace);
|
|
5622
5727
|
var whitespace = '[' + whitespaces + ']';
|
|
5623
5728
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
5624
5729
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -5626,7 +5731,7 @@ var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
|
5626
5731
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
5627
5732
|
var createMethod = function (TYPE) {
|
|
5628
5733
|
return function ($this) {
|
|
5629
|
-
var string = toString(requireObjectCoercible($this));
|
|
5734
|
+
var string = toString$1(requireObjectCoercible($this));
|
|
5630
5735
|
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
5631
5736
|
if (TYPE & 2) string = replace(string, rtrim, '');
|
|
5632
5737
|
return string;
|
|
@@ -5647,16 +5752,16 @@ var stringTrim = {
|
|
|
5647
5752
|
|
|
5648
5753
|
'use strict';
|
|
5649
5754
|
var DESCRIPTORS = descriptors;
|
|
5650
|
-
var global$
|
|
5651
|
-
var uncurryThis = functionUncurryThis;
|
|
5755
|
+
var global$4 = global$f;
|
|
5756
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
5652
5757
|
var isForced = isForced_1;
|
|
5653
|
-
var
|
|
5758
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
5654
5759
|
var hasOwn = hasOwnProperty_1;
|
|
5655
5760
|
var inheritIfRequired = inheritIfRequired$1;
|
|
5656
5761
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
5657
|
-
var isSymbol = isSymbol$
|
|
5762
|
+
var isSymbol$1 = isSymbol$4;
|
|
5658
5763
|
var toPrimitive = toPrimitive$2;
|
|
5659
|
-
var fails = fails$
|
|
5764
|
+
var fails = fails$c;
|
|
5660
5765
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
5661
5766
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
5662
5767
|
var defineProperty = objectDefineProperty.f;
|
|
@@ -5664,11 +5769,11 @@ var thisNumberValue = thisNumberValue$1;
|
|
|
5664
5769
|
var trim = stringTrim.trim;
|
|
5665
5770
|
|
|
5666
5771
|
var NUMBER = 'Number';
|
|
5667
|
-
var NativeNumber = global$
|
|
5772
|
+
var NativeNumber = global$4[NUMBER];
|
|
5668
5773
|
var NumberPrototype = NativeNumber.prototype;
|
|
5669
|
-
var TypeError$1 = global$
|
|
5670
|
-
var arraySlice = uncurryThis(''.slice);
|
|
5671
|
-
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
5774
|
+
var TypeError$1 = global$4.TypeError;
|
|
5775
|
+
var arraySlice$2 = uncurryThis$1(''.slice);
|
|
5776
|
+
var charCodeAt = uncurryThis$1(''.charCodeAt);
|
|
5672
5777
|
|
|
5673
5778
|
// `ToNumeric` abstract operation
|
|
5674
5779
|
// https://tc39.es/ecma262/#sec-tonumeric
|
|
@@ -5682,7 +5787,7 @@ var toNumeric = function (value) {
|
|
|
5682
5787
|
var toNumber = function (argument) {
|
|
5683
5788
|
var it = toPrimitive(argument, 'number');
|
|
5684
5789
|
var first, third, radix, maxCode, digits, length, index, code;
|
|
5685
|
-
if (isSymbol(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
|
|
5790
|
+
if (isSymbol$1(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
|
|
5686
5791
|
if (typeof it == 'string' && it.length > 2) {
|
|
5687
5792
|
it = trim(it);
|
|
5688
5793
|
first = charCodeAt(it, 0);
|
|
@@ -5695,7 +5800,7 @@ var toNumber = function (argument) {
|
|
|
5695
5800
|
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
|
|
5696
5801
|
default: return +it;
|
|
5697
5802
|
}
|
|
5698
|
-
digits = arraySlice(it, 2);
|
|
5803
|
+
digits = arraySlice$2(it, 2);
|
|
5699
5804
|
length = digits.length;
|
|
5700
5805
|
for (index = 0; index < length; index++) {
|
|
5701
5806
|
code = charCodeAt(digits, index);
|
|
@@ -5731,10 +5836,10 @@ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumb
|
|
|
5731
5836
|
}
|
|
5732
5837
|
NumberWrapper.prototype = NumberPrototype;
|
|
5733
5838
|
NumberPrototype.constructor = NumberWrapper;
|
|
5734
|
-
|
|
5839
|
+
defineBuiltIn(global$4, NUMBER, NumberWrapper, { constructor: true });
|
|
5735
5840
|
}
|
|
5736
5841
|
|
|
5737
|
-
var script$
|
|
5842
|
+
var script$2 = defineComponent({
|
|
5738
5843
|
name: 'FwTabs',
|
|
5739
5844
|
emits: ['update:modelValue'],
|
|
5740
5845
|
props: {
|
|
@@ -5768,16 +5873,16 @@ var script$1 = defineComponent({
|
|
|
5768
5873
|
}
|
|
5769
5874
|
});
|
|
5770
5875
|
|
|
5771
|
-
var _hoisted_1$
|
|
5876
|
+
var _hoisted_1$2 = {
|
|
5772
5877
|
"class": "fw-tabs"
|
|
5773
5878
|
};
|
|
5774
|
-
var _hoisted_2 = {
|
|
5879
|
+
var _hoisted_2$1 = {
|
|
5775
5880
|
key: 0,
|
|
5776
5881
|
"class": "flex flex-wrap -mb-px border-b border-grey-light dark:text-grey-base dark:border-grey-base"
|
|
5777
5882
|
};
|
|
5778
|
-
var _hoisted_3 = ["onClick"];
|
|
5779
|
-
function render$
|
|
5780
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5883
|
+
var _hoisted_3$1 = ["onClick"];
|
|
5884
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5885
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [_ctx.tabs ? (openBlock(), createElementBlock("ul", _hoisted_2$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, function (tab, i) {
|
|
5781
5886
|
return openBlock(), createElementBlock("li", {
|
|
5782
5887
|
"class": "mr-2",
|
|
5783
5888
|
key: i
|
|
@@ -5787,16 +5892,16 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5787
5892
|
return _ctx.selectTab(i);
|
|
5788
5893
|
},
|
|
5789
5894
|
"class": normalizeClass(["inline-block p-4 outline-primary border-b-2 border-transparent transition ease-in", _ctx.active === i ? 'font-medium border-black' : 'hover:bg-grey-lightest'])
|
|
5790
|
-
}, toDisplayString(tab.props.label), 11, _hoisted_3)]);
|
|
5895
|
+
}, toDisplayString(tab.props.label), 11, _hoisted_3$1)]);
|
|
5791
5896
|
}), 128))])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")]);
|
|
5792
5897
|
}
|
|
5793
5898
|
|
|
5794
|
-
script$
|
|
5899
|
+
script$2.render = render$2;
|
|
5795
5900
|
|
|
5796
5901
|
var es_array_findIndex = {};
|
|
5797
5902
|
|
|
5798
5903
|
'use strict';
|
|
5799
|
-
var
|
|
5904
|
+
var $$2 = _export;
|
|
5800
5905
|
var $findIndex = arrayIteration.findIndex;
|
|
5801
5906
|
var addToUnscopables = addToUnscopables$2;
|
|
5802
5907
|
|
|
@@ -5808,7 +5913,7 @@ if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; })
|
|
|
5808
5913
|
|
|
5809
5914
|
// `Array.prototype.findIndex` method
|
|
5810
5915
|
// https://tc39.es/ecma262/#sec-array.prototype.findindex
|
|
5811
|
-
|
|
5916
|
+
$$2({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
5812
5917
|
findIndex: function findIndex(callbackfn /* , that = undefined */) {
|
|
5813
5918
|
return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
5814
5919
|
}
|
|
@@ -5817,7 +5922,7 @@ $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
|
5817
5922
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
5818
5923
|
addToUnscopables(FIND_INDEX);
|
|
5819
5924
|
|
|
5820
|
-
var script = defineComponent({
|
|
5925
|
+
var script$1 = defineComponent({
|
|
5821
5926
|
name: 'FwTab',
|
|
5822
5927
|
props: {
|
|
5823
5928
|
/**
|
|
@@ -5860,30 +5965,655 @@ var script = defineComponent({
|
|
|
5860
5965
|
}
|
|
5861
5966
|
});
|
|
5862
5967
|
|
|
5863
|
-
var _hoisted_1 = {
|
|
5968
|
+
var _hoisted_1$1 = {
|
|
5864
5969
|
key: 0,
|
|
5865
5970
|
"class": "fw-tab w-full"
|
|
5866
5971
|
};
|
|
5972
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5973
|
+
return _ctx.isActive ? (openBlock(), createElementBlock("div", _hoisted_1$1, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true);
|
|
5974
|
+
}
|
|
5975
|
+
|
|
5976
|
+
script$1.render = render$1;
|
|
5977
|
+
|
|
5978
|
+
/** Detect free variable `global` from Node.js. */
|
|
5979
|
+
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
5980
|
+
|
|
5981
|
+
/** Detect free variable `self`. */
|
|
5982
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
5983
|
+
|
|
5984
|
+
/** Used as a reference to the global object. */
|
|
5985
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
5986
|
+
|
|
5987
|
+
/** Built-in value references. */
|
|
5988
|
+
var Symbol$1 = root.Symbol;
|
|
5989
|
+
|
|
5990
|
+
/**
|
|
5991
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
5992
|
+
* shorthands.
|
|
5993
|
+
*
|
|
5994
|
+
* @private
|
|
5995
|
+
* @param {Array} [array] The array to iterate over.
|
|
5996
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
5997
|
+
* @returns {Array} Returns the new mapped array.
|
|
5998
|
+
*/
|
|
5999
|
+
function arrayMap(array, iteratee) {
|
|
6000
|
+
var index = -1,
|
|
6001
|
+
length = array == null ? 0 : array.length,
|
|
6002
|
+
result = Array(length);
|
|
6003
|
+
|
|
6004
|
+
while (++index < length) {
|
|
6005
|
+
result[index] = iteratee(array[index], index, array);
|
|
6006
|
+
}
|
|
6007
|
+
return result;
|
|
6008
|
+
}
|
|
6009
|
+
|
|
6010
|
+
/**
|
|
6011
|
+
* Checks if `value` is classified as an `Array` object.
|
|
6012
|
+
*
|
|
6013
|
+
* @static
|
|
6014
|
+
* @memberOf _
|
|
6015
|
+
* @since 0.1.0
|
|
6016
|
+
* @category Lang
|
|
6017
|
+
* @param {*} value The value to check.
|
|
6018
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
6019
|
+
* @example
|
|
6020
|
+
*
|
|
6021
|
+
* _.isArray([1, 2, 3]);
|
|
6022
|
+
* // => true
|
|
6023
|
+
*
|
|
6024
|
+
* _.isArray(document.body.children);
|
|
6025
|
+
* // => false
|
|
6026
|
+
*
|
|
6027
|
+
* _.isArray('abc');
|
|
6028
|
+
* // => false
|
|
6029
|
+
*
|
|
6030
|
+
* _.isArray(_.noop);
|
|
6031
|
+
* // => false
|
|
6032
|
+
*/
|
|
6033
|
+
var isArray = Array.isArray;
|
|
6034
|
+
|
|
6035
|
+
/** Used for built-in method references. */
|
|
6036
|
+
var objectProto$1 = Object.prototype;
|
|
6037
|
+
|
|
6038
|
+
/** Used to check objects for own properties. */
|
|
6039
|
+
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
6040
|
+
|
|
6041
|
+
/**
|
|
6042
|
+
* Used to resolve the
|
|
6043
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
6044
|
+
* of values.
|
|
6045
|
+
*/
|
|
6046
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
6047
|
+
|
|
6048
|
+
/** Built-in value references. */
|
|
6049
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
6050
|
+
|
|
6051
|
+
/**
|
|
6052
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
6053
|
+
*
|
|
6054
|
+
* @private
|
|
6055
|
+
* @param {*} value The value to query.
|
|
6056
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
6057
|
+
*/
|
|
6058
|
+
function getRawTag(value) {
|
|
6059
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
6060
|
+
tag = value[symToStringTag$1];
|
|
6061
|
+
|
|
6062
|
+
try {
|
|
6063
|
+
value[symToStringTag$1] = undefined;
|
|
6064
|
+
var unmasked = true;
|
|
6065
|
+
} catch (e) {}
|
|
6066
|
+
|
|
6067
|
+
var result = nativeObjectToString$1.call(value);
|
|
6068
|
+
if (unmasked) {
|
|
6069
|
+
if (isOwn) {
|
|
6070
|
+
value[symToStringTag$1] = tag;
|
|
6071
|
+
} else {
|
|
6072
|
+
delete value[symToStringTag$1];
|
|
6073
|
+
}
|
|
6074
|
+
}
|
|
6075
|
+
return result;
|
|
6076
|
+
}
|
|
6077
|
+
|
|
6078
|
+
/** Used for built-in method references. */
|
|
6079
|
+
var objectProto = Object.prototype;
|
|
6080
|
+
|
|
6081
|
+
/**
|
|
6082
|
+
* Used to resolve the
|
|
6083
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
6084
|
+
* of values.
|
|
6085
|
+
*/
|
|
6086
|
+
var nativeObjectToString = objectProto.toString;
|
|
6087
|
+
|
|
6088
|
+
/**
|
|
6089
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
6090
|
+
*
|
|
6091
|
+
* @private
|
|
6092
|
+
* @param {*} value The value to convert.
|
|
6093
|
+
* @returns {string} Returns the converted string.
|
|
6094
|
+
*/
|
|
6095
|
+
function objectToString(value) {
|
|
6096
|
+
return nativeObjectToString.call(value);
|
|
6097
|
+
}
|
|
6098
|
+
|
|
6099
|
+
/** `Object#toString` result references. */
|
|
6100
|
+
var nullTag = '[object Null]',
|
|
6101
|
+
undefinedTag = '[object Undefined]';
|
|
6102
|
+
|
|
6103
|
+
/** Built-in value references. */
|
|
6104
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
6105
|
+
|
|
6106
|
+
/**
|
|
6107
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
6108
|
+
*
|
|
6109
|
+
* @private
|
|
6110
|
+
* @param {*} value The value to query.
|
|
6111
|
+
* @returns {string} Returns the `toStringTag`.
|
|
6112
|
+
*/
|
|
6113
|
+
function baseGetTag(value) {
|
|
6114
|
+
if (value == null) {
|
|
6115
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
6116
|
+
}
|
|
6117
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
6118
|
+
? getRawTag(value)
|
|
6119
|
+
: objectToString(value);
|
|
6120
|
+
}
|
|
6121
|
+
|
|
6122
|
+
/**
|
|
6123
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
6124
|
+
* and has a `typeof` result of "object".
|
|
6125
|
+
*
|
|
6126
|
+
* @static
|
|
6127
|
+
* @memberOf _
|
|
6128
|
+
* @since 4.0.0
|
|
6129
|
+
* @category Lang
|
|
6130
|
+
* @param {*} value The value to check.
|
|
6131
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
6132
|
+
* @example
|
|
6133
|
+
*
|
|
6134
|
+
* _.isObjectLike({});
|
|
6135
|
+
* // => true
|
|
6136
|
+
*
|
|
6137
|
+
* _.isObjectLike([1, 2, 3]);
|
|
6138
|
+
* // => true
|
|
6139
|
+
*
|
|
6140
|
+
* _.isObjectLike(_.noop);
|
|
6141
|
+
* // => false
|
|
6142
|
+
*
|
|
6143
|
+
* _.isObjectLike(null);
|
|
6144
|
+
* // => false
|
|
6145
|
+
*/
|
|
6146
|
+
function isObjectLike(value) {
|
|
6147
|
+
return value != null && typeof value == 'object';
|
|
6148
|
+
}
|
|
6149
|
+
|
|
6150
|
+
/** `Object#toString` result references. */
|
|
6151
|
+
var symbolTag = '[object Symbol]';
|
|
6152
|
+
|
|
6153
|
+
/**
|
|
6154
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
6155
|
+
*
|
|
6156
|
+
* @static
|
|
6157
|
+
* @memberOf _
|
|
6158
|
+
* @since 4.0.0
|
|
6159
|
+
* @category Lang
|
|
6160
|
+
* @param {*} value The value to check.
|
|
6161
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
6162
|
+
* @example
|
|
6163
|
+
*
|
|
6164
|
+
* _.isSymbol(Symbol.iterator);
|
|
6165
|
+
* // => true
|
|
6166
|
+
*
|
|
6167
|
+
* _.isSymbol('abc');
|
|
6168
|
+
* // => false
|
|
6169
|
+
*/
|
|
6170
|
+
function isSymbol(value) {
|
|
6171
|
+
return typeof value == 'symbol' ||
|
|
6172
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
6173
|
+
}
|
|
6174
|
+
|
|
6175
|
+
/** Used as references for various `Number` constants. */
|
|
6176
|
+
var INFINITY = 1 / 0;
|
|
6177
|
+
|
|
6178
|
+
/** Used to convert symbols to primitives and strings. */
|
|
6179
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
6180
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
6181
|
+
|
|
6182
|
+
/**
|
|
6183
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
6184
|
+
* values to empty strings.
|
|
6185
|
+
*
|
|
6186
|
+
* @private
|
|
6187
|
+
* @param {*} value The value to process.
|
|
6188
|
+
* @returns {string} Returns the string.
|
|
6189
|
+
*/
|
|
6190
|
+
function baseToString(value) {
|
|
6191
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
6192
|
+
if (typeof value == 'string') {
|
|
6193
|
+
return value;
|
|
6194
|
+
}
|
|
6195
|
+
if (isArray(value)) {
|
|
6196
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
6197
|
+
return arrayMap(value, baseToString) + '';
|
|
6198
|
+
}
|
|
6199
|
+
if (isSymbol(value)) {
|
|
6200
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
6201
|
+
}
|
|
6202
|
+
var result = (value + '');
|
|
6203
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
6204
|
+
}
|
|
6205
|
+
|
|
6206
|
+
/**
|
|
6207
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
6208
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
6209
|
+
*
|
|
6210
|
+
* @static
|
|
6211
|
+
* @memberOf _
|
|
6212
|
+
* @since 4.0.0
|
|
6213
|
+
* @category Lang
|
|
6214
|
+
* @param {*} value The value to convert.
|
|
6215
|
+
* @returns {string} Returns the converted string.
|
|
6216
|
+
* @example
|
|
6217
|
+
*
|
|
6218
|
+
* _.toString(null);
|
|
6219
|
+
* // => ''
|
|
6220
|
+
*
|
|
6221
|
+
* _.toString(-0);
|
|
6222
|
+
* // => '-0'
|
|
6223
|
+
*
|
|
6224
|
+
* _.toString([1, 2, 3]);
|
|
6225
|
+
* // => '1,2,3'
|
|
6226
|
+
*/
|
|
6227
|
+
function toString(value) {
|
|
6228
|
+
return value == null ? '' : baseToString(value);
|
|
6229
|
+
}
|
|
6230
|
+
|
|
6231
|
+
/** Used to generate unique IDs. */
|
|
6232
|
+
var idCounter = 0;
|
|
6233
|
+
|
|
6234
|
+
/**
|
|
6235
|
+
* Generates a unique ID. If `prefix` is given, the ID is appended to it.
|
|
6236
|
+
*
|
|
6237
|
+
* @static
|
|
6238
|
+
* @since 0.1.0
|
|
6239
|
+
* @memberOf _
|
|
6240
|
+
* @category Util
|
|
6241
|
+
* @param {string} [prefix=''] The value to prefix the ID with.
|
|
6242
|
+
* @returns {string} Returns the unique ID.
|
|
6243
|
+
* @example
|
|
6244
|
+
*
|
|
6245
|
+
* _.uniqueId('contact_');
|
|
6246
|
+
* // => 'contact_104'
|
|
6247
|
+
*
|
|
6248
|
+
* _.uniqueId();
|
|
6249
|
+
* // => '105'
|
|
6250
|
+
*/
|
|
6251
|
+
function uniqueId(prefix) {
|
|
6252
|
+
var id = ++idCounter;
|
|
6253
|
+
return toString(prefix) + id;
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6256
|
+
var script = defineComponent({
|
|
6257
|
+
name: 'FwModal',
|
|
6258
|
+
components: {
|
|
6259
|
+
FwButton: script$4
|
|
6260
|
+
},
|
|
6261
|
+
emits: ['cancel', 'confirm'],
|
|
6262
|
+
props: {
|
|
6263
|
+
/**
|
|
6264
|
+
* The header title of the modal
|
|
6265
|
+
*/
|
|
6266
|
+
header: {
|
|
6267
|
+
type: String
|
|
6268
|
+
},
|
|
6269
|
+
|
|
6270
|
+
/**
|
|
6271
|
+
* The body description of the modal
|
|
6272
|
+
*/
|
|
6273
|
+
body: {
|
|
6274
|
+
type: String
|
|
6275
|
+
},
|
|
6276
|
+
|
|
6277
|
+
/**
|
|
6278
|
+
* The aria role of the modal container. Defaults to `dialog`
|
|
6279
|
+
*/
|
|
6280
|
+
role: {
|
|
6281
|
+
type: String,
|
|
6282
|
+
"default": 'dialog'
|
|
6283
|
+
},
|
|
6284
|
+
|
|
6285
|
+
/**
|
|
6286
|
+
* Whether to show the cancel button
|
|
6287
|
+
*/
|
|
6288
|
+
showCancel: {
|
|
6289
|
+
type: Boolean,
|
|
6290
|
+
"default": false
|
|
6291
|
+
},
|
|
6292
|
+
|
|
6293
|
+
/**
|
|
6294
|
+
* Whether to show the confirm button
|
|
6295
|
+
*/
|
|
6296
|
+
showConfirm: {
|
|
6297
|
+
type: Boolean,
|
|
6298
|
+
"default": true
|
|
6299
|
+
},
|
|
6300
|
+
|
|
6301
|
+
/**
|
|
6302
|
+
* Custom text for the cancel button
|
|
6303
|
+
*/
|
|
6304
|
+
cancelButtonText: {
|
|
6305
|
+
type: String,
|
|
6306
|
+
"default": 'Cancel'
|
|
6307
|
+
},
|
|
6308
|
+
|
|
6309
|
+
/**
|
|
6310
|
+
* Button variant for the cancel button
|
|
6311
|
+
*/
|
|
6312
|
+
cancelButtonType: {
|
|
6313
|
+
type: String,
|
|
6314
|
+
"default": 'secondary',
|
|
6315
|
+
validator: function validator(value) {
|
|
6316
|
+
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
|
|
6317
|
+
}
|
|
6318
|
+
},
|
|
6319
|
+
|
|
6320
|
+
/**
|
|
6321
|
+
* Custom text for the confirm button
|
|
6322
|
+
*/
|
|
6323
|
+
confirmButtonText: {
|
|
6324
|
+
type: String,
|
|
6325
|
+
"default": 'Confirm'
|
|
6326
|
+
},
|
|
6327
|
+
|
|
6328
|
+
/**
|
|
6329
|
+
* Button variant for the confirm button
|
|
6330
|
+
*/
|
|
6331
|
+
confirmButtonType: {
|
|
6332
|
+
type: String,
|
|
6333
|
+
"default": 'primary',
|
|
6334
|
+
validator: function validator(value) {
|
|
6335
|
+
return ['primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text'].includes(value);
|
|
6336
|
+
}
|
|
6337
|
+
}
|
|
6338
|
+
},
|
|
6339
|
+
setup: function setup() {
|
|
6340
|
+
var uuid = uniqueId();
|
|
6341
|
+
return {
|
|
6342
|
+
uuid: uuid
|
|
6343
|
+
};
|
|
6344
|
+
}
|
|
6345
|
+
});
|
|
6346
|
+
|
|
6347
|
+
var _withScopeId = function _withScopeId(n) {
|
|
6348
|
+
return pushScopeId("data-v-8c26adc4"), n = n(), popScopeId(), n;
|
|
6349
|
+
};
|
|
6350
|
+
|
|
6351
|
+
var _hoisted_1 = {
|
|
6352
|
+
"class": "fw-modal"
|
|
6353
|
+
};
|
|
6354
|
+
var _hoisted_2 = {
|
|
6355
|
+
"class": "fw-modal--mask fixed z-[9999] top-0 left-0 w-full h-full bg-black bg-opacity-50"
|
|
6356
|
+
};
|
|
6357
|
+
var _hoisted_3 = {
|
|
6358
|
+
"class": "fw-modal--wrapper text-center overflow-auto flex justify-center items-center h-full"
|
|
6359
|
+
};
|
|
6360
|
+
var _hoisted_4 = ["role", "aria-labelledby", "aria-describedby"];
|
|
6361
|
+
var _hoisted_5 = {
|
|
6362
|
+
key: 0,
|
|
6363
|
+
"class": "fw-modal--header text-center"
|
|
6364
|
+
};
|
|
6365
|
+
var _hoisted_6 = {
|
|
6366
|
+
key: 0,
|
|
6367
|
+
id: "modal-logo",
|
|
6368
|
+
"class": "flex justify-center"
|
|
6369
|
+
};
|
|
6370
|
+
var _hoisted_7 = ["id"];
|
|
6371
|
+
var _hoisted_8 = ["id", "innerHTML"];
|
|
6372
|
+
var _hoisted_9 = ["id"];
|
|
6373
|
+
var _hoisted_10 = ["innerHTML", "id"];
|
|
6374
|
+
var _hoisted_11 = {
|
|
6375
|
+
key: 3,
|
|
6376
|
+
"class": "modal-footer flex space-x-4 pt-4 justify-center"
|
|
6377
|
+
};
|
|
5867
6378
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5868
|
-
|
|
6379
|
+
var _component_FwButton = resolveComponent("FwButton");
|
|
6380
|
+
|
|
6381
|
+
return openBlock(), createBlock(Transition, {
|
|
6382
|
+
name: "modalFadeIn",
|
|
6383
|
+
appear: ""
|
|
6384
|
+
}, {
|
|
6385
|
+
"default": withCtx(function () {
|
|
6386
|
+
return [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", {
|
|
6387
|
+
role: _ctx.role,
|
|
6388
|
+
"class": "fw-modal--container p-12 m-8 inline-block w-full max-w-[540px] bg-white rounded-2xl shadow",
|
|
6389
|
+
"aria-labelledby": _ctx.$slots.header || _ctx.header ? "modal_".concat(_ctx.uuid, "_header") : null,
|
|
6390
|
+
"aria-describedby": _ctx.$slots.body ? "modal_".concat(_ctx.uuid, "_body") : null
|
|
6391
|
+
}, [_ctx.$slots.icon || _ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", _hoisted_5, [_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true), _ctx.$slots.header ? (openBlock(), createElementBlock("h2", {
|
|
6392
|
+
key: 1,
|
|
6393
|
+
id: "modal_".concat(_ctx.uuid, "_header")
|
|
6394
|
+
}, [renderSlot(_ctx.$slots, "header")], 8, _hoisted_7)) : _ctx.header ? (openBlock(), createElementBlock("h2", {
|
|
6395
|
+
key: 2,
|
|
6396
|
+
id: "modal_".concat(_ctx.uuid, "_header"),
|
|
6397
|
+
innerHTML: _ctx.header
|
|
6398
|
+
}, null, 8, _hoisted_8)) : createCommentVNode("", true)])) : createCommentVNode("", true), _ctx.$slots.body ? (openBlock(), createElementBlock("div", {
|
|
6399
|
+
key: 1,
|
|
6400
|
+
"class": "modal-body mt-4",
|
|
6401
|
+
id: "modal_".concat(_ctx.uuid, "_body")
|
|
6402
|
+
}, [renderSlot(_ctx.$slots, "body")], 8, _hoisted_9)) : _ctx.body ? (openBlock(), createElementBlock("div", {
|
|
6403
|
+
key: 2,
|
|
6404
|
+
innerHTML: _ctx.body,
|
|
6405
|
+
"class": "modal-body mt-4",
|
|
6406
|
+
id: "modal_".concat(_ctx.uuid, "_body")
|
|
6407
|
+
}, null, 8, _hoisted_10)) : createCommentVNode("", true), _ctx.showConfirm || _ctx.showCancel ? (openBlock(), createElementBlock("div", _hoisted_11, [_ctx.showCancel ? (openBlock(), createBlock(_component_FwButton, {
|
|
6408
|
+
key: 0,
|
|
6409
|
+
"class": "basis-1/2",
|
|
6410
|
+
variant: _ctx.cancelButtonType,
|
|
6411
|
+
"aria-label": _ctx.cancelButtonText,
|
|
6412
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
6413
|
+
return _ctx.$emit('cancel');
|
|
6414
|
+
})
|
|
6415
|
+
}, {
|
|
6416
|
+
"default": withCtx(function () {
|
|
6417
|
+
return [createTextVNode(toDisplayString(_ctx.cancelButtonText), 1)];
|
|
6418
|
+
}),
|
|
6419
|
+
_: 1
|
|
6420
|
+
}, 8, ["variant", "aria-label"])) : createCommentVNode("", true), _ctx.showConfirm ? (openBlock(), createBlock(_component_FwButton, {
|
|
6421
|
+
key: 1,
|
|
6422
|
+
"class": "basis-1/2",
|
|
6423
|
+
variant: _ctx.confirmButtonType,
|
|
6424
|
+
"aria-label": _ctx.confirmButtonText,
|
|
6425
|
+
onClick: _cache[1] || (_cache[1] = function ($event) {
|
|
6426
|
+
return _ctx.$emit('confirm');
|
|
6427
|
+
})
|
|
6428
|
+
}, {
|
|
6429
|
+
"default": withCtx(function () {
|
|
6430
|
+
return [createTextVNode(toDisplayString(_ctx.confirmButtonText), 1)];
|
|
6431
|
+
}),
|
|
6432
|
+
_: 1
|
|
6433
|
+
}, 8, ["variant", "aria-label"])) : createCommentVNode("", true)])) : createCommentVNode("", true)], 8, _hoisted_4)])])])];
|
|
6434
|
+
}),
|
|
6435
|
+
_: 3
|
|
6436
|
+
});
|
|
5869
6437
|
}
|
|
5870
6438
|
|
|
6439
|
+
var css_248z = ".modalFadeIn-enter-active[data-v-8c26adc4]{-webkit-animation:modalFadeIn-8c26adc4 .4s;animation:modalFadeIn-8c26adc4 .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-8c26adc4]{animation:modalFadeIn-8c26adc4 .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-8c26adc4{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-8c26adc4{0%{opacity:0}to{opacity:1}}";
|
|
6440
|
+
var stylesheet = ".modalFadeIn-enter-active[data-v-8c26adc4]{-webkit-animation:modalFadeIn-8c26adc4 .4s;animation:modalFadeIn-8c26adc4 .4s;-webkit-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.modalFadeIn-leave-active[data-v-8c26adc4]{animation:modalFadeIn-8c26adc4 .4s reverse;-webkit-transition:opacity .4s ease-out;-o-transition:opacity .4s ease-out;transition:opacity .4s ease-out}@-webkit-keyframes modalFadeIn-8c26adc4{0%{opacity:0}to{opacity:1}}@keyframes modalFadeIn-8c26adc4{0%{opacity:0}to{opacity:1}}";
|
|
6441
|
+
styleInject(css_248z);
|
|
6442
|
+
|
|
5871
6443
|
script.render = render;
|
|
6444
|
+
script.__scopeId = "data-v-8c26adc4";
|
|
5872
6445
|
|
|
5873
6446
|
// Form components
|
|
5874
6447
|
|
|
5875
6448
|
var components = /*#__PURE__*/Object.freeze({
|
|
5876
6449
|
__proto__: null,
|
|
5877
6450
|
FwForm: Form,
|
|
5878
|
-
FwInput: script$
|
|
5879
|
-
FwCheckbox: script$
|
|
5880
|
-
FwCard: script$
|
|
5881
|
-
FwButton: script$
|
|
5882
|
-
FwNavigationMenu: script$
|
|
5883
|
-
FwTabs: script$
|
|
5884
|
-
FwTab: script
|
|
6451
|
+
FwInput: script$7,
|
|
6452
|
+
FwCheckbox: script$6,
|
|
6453
|
+
FwCard: script$5,
|
|
6454
|
+
FwButton: script$4,
|
|
6455
|
+
FwNavigationMenu: script$3,
|
|
6456
|
+
FwTabs: script$2,
|
|
6457
|
+
FwTab: script$1,
|
|
6458
|
+
FwModal: script
|
|
5885
6459
|
});
|
|
5886
6460
|
|
|
6461
|
+
function _defineProperty(obj, key, value) {
|
|
6462
|
+
if (key in obj) {
|
|
6463
|
+
Object.defineProperty(obj, key, {
|
|
6464
|
+
value: value,
|
|
6465
|
+
enumerable: true,
|
|
6466
|
+
configurable: true,
|
|
6467
|
+
writable: true
|
|
6468
|
+
});
|
|
6469
|
+
} else {
|
|
6470
|
+
obj[key] = value;
|
|
6471
|
+
}
|
|
6472
|
+
|
|
6473
|
+
return obj;
|
|
6474
|
+
}
|
|
6475
|
+
|
|
6476
|
+
function ownKeys(object, enumerableOnly) {
|
|
6477
|
+
var keys = Object.keys(object);
|
|
6478
|
+
|
|
6479
|
+
if (Object.getOwnPropertySymbols) {
|
|
6480
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
6481
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
6482
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
6483
|
+
})), keys.push.apply(keys, symbols);
|
|
6484
|
+
}
|
|
6485
|
+
|
|
6486
|
+
return keys;
|
|
6487
|
+
}
|
|
6488
|
+
|
|
6489
|
+
function _objectSpread2(target) {
|
|
6490
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
6491
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
6492
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
6493
|
+
_defineProperty(target, key, source[key]);
|
|
6494
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
6495
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6496
|
+
});
|
|
6497
|
+
}
|
|
6498
|
+
|
|
6499
|
+
return target;
|
|
6500
|
+
}
|
|
6501
|
+
|
|
6502
|
+
var web_timers = {};
|
|
6503
|
+
|
|
6504
|
+
var web_setInterval = {};
|
|
6505
|
+
|
|
6506
|
+
var NATIVE_BIND = functionBindNative;
|
|
6507
|
+
|
|
6508
|
+
var FunctionPrototype = Function.prototype;
|
|
6509
|
+
var apply$1 = FunctionPrototype.apply;
|
|
6510
|
+
var call = FunctionPrototype.call;
|
|
6511
|
+
|
|
6512
|
+
// eslint-disable-next-line es-x/no-reflect -- safe
|
|
6513
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply$1) : function () {
|
|
6514
|
+
return call.apply(apply$1, arguments);
|
|
6515
|
+
});
|
|
6516
|
+
|
|
6517
|
+
var uncurryThis = functionUncurryThis;
|
|
6518
|
+
|
|
6519
|
+
var arraySlice$1 = uncurryThis([].slice);
|
|
6520
|
+
|
|
6521
|
+
var $TypeError = TypeError;
|
|
6522
|
+
|
|
6523
|
+
var validateArgumentsLength$1 = function (passed, required) {
|
|
6524
|
+
if (passed < required) throw $TypeError('Not enough arguments');
|
|
6525
|
+
return passed;
|
|
6526
|
+
};
|
|
6527
|
+
|
|
6528
|
+
var global$3 = global$f;
|
|
6529
|
+
var apply = functionApply;
|
|
6530
|
+
var isCallable = isCallable$g;
|
|
6531
|
+
var userAgent = engineUserAgent;
|
|
6532
|
+
var arraySlice = arraySlice$1;
|
|
6533
|
+
var validateArgumentsLength = validateArgumentsLength$1;
|
|
6534
|
+
|
|
6535
|
+
var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
|
|
6536
|
+
var Function$1 = global$3.Function;
|
|
6537
|
+
|
|
6538
|
+
var wrap = function (scheduler) {
|
|
6539
|
+
return MSIE ? function (handler, timeout /* , ...arguments */) {
|
|
6540
|
+
var boundArgs = validateArgumentsLength(arguments.length, 1) > 2;
|
|
6541
|
+
var fn = isCallable(handler) ? handler : Function$1(handler);
|
|
6542
|
+
var args = boundArgs ? arraySlice(arguments, 2) : undefined;
|
|
6543
|
+
return scheduler(boundArgs ? function () {
|
|
6544
|
+
apply(fn, this, args);
|
|
6545
|
+
} : fn, timeout);
|
|
6546
|
+
} : scheduler;
|
|
6547
|
+
};
|
|
6548
|
+
|
|
6549
|
+
// ie9- setTimeout & setInterval additional parameters fix
|
|
6550
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
|
|
6551
|
+
var schedulersFix = {
|
|
6552
|
+
// `setTimeout` method
|
|
6553
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
|
|
6554
|
+
setTimeout: wrap(global$3.setTimeout),
|
|
6555
|
+
// `setInterval` method
|
|
6556
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
|
|
6557
|
+
setInterval: wrap(global$3.setInterval)
|
|
6558
|
+
};
|
|
6559
|
+
|
|
6560
|
+
var $$1 = _export;
|
|
6561
|
+
var global$2 = global$f;
|
|
6562
|
+
var setInterval = schedulersFix.setInterval;
|
|
6563
|
+
|
|
6564
|
+
// ie9- setInterval additional parameters fix
|
|
6565
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
|
|
6566
|
+
$$1({ global: true, bind: true, forced: global$2.setInterval !== setInterval }, {
|
|
6567
|
+
setInterval: setInterval
|
|
6568
|
+
});
|
|
6569
|
+
|
|
6570
|
+
var web_setTimeout = {};
|
|
6571
|
+
|
|
6572
|
+
var $ = _export;
|
|
6573
|
+
var global$1 = global$f;
|
|
6574
|
+
var setTimeout$1 = schedulersFix.setTimeout;
|
|
6575
|
+
|
|
6576
|
+
// ie9- setTimeout additional parameters fix
|
|
6577
|
+
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
|
|
6578
|
+
$({ global: true, bind: true, forced: global$1.setTimeout !== setTimeout$1 }, {
|
|
6579
|
+
setTimeout: setTimeout$1
|
|
6580
|
+
});
|
|
6581
|
+
|
|
6582
|
+
var modalService = function modalService(options, element) {
|
|
6583
|
+
var elementToMount = document.createElement('div');
|
|
6584
|
+
elementToMount.id = uniqueId('fw-modal-app-');
|
|
6585
|
+
var elAppend = element || document.body;
|
|
6586
|
+
var modalVNode = undefined;
|
|
6587
|
+
|
|
6588
|
+
var open = function open() {
|
|
6589
|
+
var _modalVNode;
|
|
6590
|
+
|
|
6591
|
+
modalVNode = createApp(script, _objectSpread2({}, options));
|
|
6592
|
+
elAppend.appendChild(elementToMount);
|
|
6593
|
+
(_modalVNode = modalVNode) === null || _modalVNode === void 0 ? void 0 : _modalVNode.mount(elementToMount);
|
|
6594
|
+
};
|
|
6595
|
+
|
|
6596
|
+
var close = function close() {
|
|
6597
|
+
if (elementToMount) {
|
|
6598
|
+
var _elementToMount$query;
|
|
6599
|
+
|
|
6600
|
+
(_elementToMount$query = elementToMount.querySelector('.fw-modal')) === null || _elementToMount$query === void 0 ? void 0 : _elementToMount$query.classList.add('modalFadeIn-leave-active');
|
|
6601
|
+
setTimeout(function () {
|
|
6602
|
+
var _modalVNode2;
|
|
6603
|
+
|
|
6604
|
+
(_modalVNode2 = modalVNode) === null || _modalVNode2 === void 0 ? void 0 : _modalVNode2.unmount();
|
|
6605
|
+
modalVNode = undefined;
|
|
6606
|
+
elementToMount.remove();
|
|
6607
|
+
}, 400);
|
|
6608
|
+
}
|
|
6609
|
+
};
|
|
6610
|
+
|
|
6611
|
+
return {
|
|
6612
|
+
open: open,
|
|
6613
|
+
close: close
|
|
6614
|
+
};
|
|
6615
|
+
};
|
|
6616
|
+
|
|
5887
6617
|
var install = function install(app) {
|
|
5888
6618
|
Object.entries(components).forEach(function (_ref) {
|
|
5889
6619
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
@@ -5894,4 +6624,4 @@ var install = function install(app) {
|
|
|
5894
6624
|
});
|
|
5895
6625
|
};
|
|
5896
6626
|
|
|
5897
|
-
export { script$
|
|
6627
|
+
export { script$4 as FwButton, script$5 as FwCard, script$6 as FwCheckbox, Form as FwForm, script$7 as FwInput, script as FwModal, script$3 as FwNavigationMenu, script$1 as FwTab, script$2 as FwTabs, install as default, modalService };
|