@frollo/frollo-web-ui 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/cjs/index.js +18838 -3083
  2. package/esm/add-to-unscopables-2400f45b.js +25 -0
  3. package/esm/{array-iteration-98e2cf9a.js → array-iteration-107f927f.js} +2 -3
  4. package/esm/array-method-has-species-support-3d413468.js +23 -0
  5. package/esm/{array-method-is-strict-544b103f.js → array-method-is-strict-055b1830.js} +1 -1
  6. package/esm/{array-species-create-5fc23c89.js → array-species-create-a5f5503b.js} +3 -4
  7. package/esm/{classof-a45668b6.js → classof-39c30bd5.js} +1 -2
  8. package/esm/{create-property-558a3c24.js → create-property-534611fd.js} +1 -2
  9. package/esm/delete-property-or-throw-8032646c.js +31 -0
  10. package/esm/does-not-exceed-safe-integer-31d08811.js +11 -0
  11. package/esm/es.array.concat-987938be.js +69 -0
  12. package/esm/{es.array.find-36d8f2f0.js → es.array.find-dfa1f42f.js} +5 -6
  13. package/esm/{es.array.includes-df8e6e35.js → es.array.includes-91be7771.js} +3 -4
  14. package/esm/{es.function.name-b642b74f.js → es.function.name-557cb1f9.js} +1 -1
  15. package/esm/{es.number.constructor-f279ce82.js → es.number.constructor-1249bd78.js} +2 -3
  16. package/esm/{fw-image-ec7b02c5.js → es.string.iterator-284b31d4.js} +11 -311
  17. package/esm/{object-keys-6a890c6f.js → export-a37ba078.js} +2 -13
  18. package/esm/function-apply-ce251590.js +14 -0
  19. package/esm/fw-accordion.js +2 -8
  20. package/esm/fw-animations.js +6 -20
  21. package/esm/fw-bar-chart.js +19 -0
  22. package/esm/{fw-button-df5c923f.js → fw-button-0401f207.js} +12 -27
  23. package/esm/fw-button.js +9 -8
  24. package/esm/{fw-card-8d3f4ab5.js → fw-card-1b6a67fe.js} +0 -5
  25. package/esm/fw-card.js +1 -1
  26. package/esm/fw-checkbox.js +27 -17
  27. package/esm/fw-dropdown.js +17 -34
  28. package/esm/fw-image-03f85465.js +289 -0
  29. package/esm/fw-image.js +20 -17
  30. package/esm/fw-input.js +24 -25
  31. package/esm/fw-loading-bar-f5ca605c.js +22 -0
  32. package/esm/{fw-loading-spinner-9b7c6855.js → fw-loading-spinner-164d8df0.js} +1 -2
  33. package/esm/fw-loading.js +6 -9
  34. package/esm/fw-modal.js +11 -21
  35. package/esm/fw-navigation-menu.js +11 -19
  36. package/esm/fw-progress-bar.js +4 -11
  37. package/esm/fw-sidebar-menu.js +131 -0
  38. package/esm/fw-table.js +12 -57
  39. package/esm/fw-tabs.js +60 -21
  40. package/esm/fw-tag.js +8 -8
  41. package/esm/fw-toast.js +29 -125
  42. package/esm/fw-transactions-card.js +21 -24
  43. package/esm/index-1a41e7bf.js +15838 -0
  44. package/esm/{index-4605e00e.js → index-692e4d19.js} +83 -55
  45. package/esm/index.js +43 -57
  46. package/esm/is-forced-752b5893.js +927 -0
  47. package/esm/{add-to-unscopables-3f461c07.js → object-create-f6f3a673.js} +3 -25
  48. package/esm/object-keys-4f5bf4e7.js +13 -0
  49. package/esm/{to-string-685748aa.js → to-string-12728fd2.js} +2 -2
  50. package/esm/{web.timers-4a6aaab8.js → web.timers-0f117224.js} +5 -15
  51. package/frollo-web-ui.esm.js +19112 -3282
  52. package/icons/chevron-left.svg +3 -0
  53. package/icons/chevron-right.svg +3 -0
  54. package/icons/index.ts +4 -0
  55. package/index.d.ts +200 -26
  56. package/package.json +4 -1
  57. package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +83 -0
  58. package/types/components/fw-bar-chart/index.d.ts +2 -0
  59. package/types/components/fw-bar-chart/index.types.d.ts +11 -0
  60. package/types/components/fw-button/fw-button.vue.d.ts +2 -2
  61. package/types/components/fw-button/index.types.d.ts +1 -1
  62. package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +3 -1
  63. package/types/components/fw-input/fw-input.vue.d.ts +1 -0
  64. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +71 -0
  65. package/types/components/fw-sidebar-menu/index.d.ts +2 -0
  66. package/types/components/fw-sidebar-menu/index.types.d.ts +6 -0
  67. package/types/components/index.d.ts +2 -0
  68. package/types/components/index.types.d.ts +2 -0
  69. package/types/icons/index.d.ts +3 -1
  70. package/web-components/index.js +24066 -8740
  71. package/esm/function-name-e2f6ea36.js +0 -492
  72. package/esm/fw-loading-bar-da7d53fb.js +0 -22
  73. package/esm/is-forced-ddf227e6.js +0 -438
@@ -0,0 +1,25 @@
1
+ import { w as wellKnownSymbol$1, F as objectDefineProperty } from './is-forced-752b5893.js';
2
+ import { o as objectCreate } from './object-create-f6f3a673.js';
3
+
4
+ var wellKnownSymbol = wellKnownSymbol$1;
5
+ var create = objectCreate;
6
+ var defineProperty = objectDefineProperty.f;
7
+
8
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
9
+ var ArrayPrototype = Array.prototype;
10
+
11
+ // Array.prototype[@@unscopables]
12
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
13
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
14
+ defineProperty(ArrayPrototype, UNSCOPABLES, {
15
+ configurable: true,
16
+ value: create(null)
17
+ });
18
+ }
19
+
20
+ // add a key to Array.prototype[@@unscopables]
21
+ var addToUnscopables = function (key) {
22
+ ArrayPrototype[UNSCOPABLES][key] = true;
23
+ };
24
+
25
+ export { addToUnscopables as a };
@@ -1,6 +1,5 @@
1
- import { f as functionUncurryThis, h as aCallable$1, F as functionBindNative, i as toObject$1 } from './function-name-e2f6ea36.js';
2
- import { p as indexedObject, l as lengthOfArrayLike$1 } from './is-forced-ddf227e6.js';
3
- import { b as arraySpeciesCreate$1 } from './array-species-create-5fc23c89.js';
1
+ import { f as functionUncurryThis, k as aCallable$1, R as functionBindNative, S as indexedObject, e as toObject$1, l as lengthOfArrayLike$1 } from './is-forced-752b5893.js';
2
+ import { a as arraySpeciesCreate$1 } from './array-species-create-a5f5503b.js';
4
3
 
5
4
  var uncurryThis$1 = functionUncurryThis;
6
5
  var aCallable = aCallable$1;
@@ -0,0 +1,23 @@
1
+ import { h as fails$1, w as wellKnownSymbol$1, m as engineV8Version } from './is-forced-752b5893.js';
2
+
3
+ var fails = fails$1;
4
+ var wellKnownSymbol = wellKnownSymbol$1;
5
+ var V8_VERSION = engineV8Version;
6
+
7
+ var SPECIES = wellKnownSymbol('species');
8
+
9
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
10
+ // We can't use this feature detection in V8 since it causes
11
+ // deoptimization and serious performance degradation
12
+ // https://github.com/zloirock/core-js/issues/677
13
+ return V8_VERSION >= 51 || !fails(function () {
14
+ var array = [];
15
+ var constructor = array.constructor = {};
16
+ constructor[SPECIES] = function () {
17
+ return { foo: 1 };
18
+ };
19
+ return array[METHOD_NAME](Boolean).foo !== 1;
20
+ });
21
+ };
22
+
23
+ export { arrayMethodHasSpeciesSupport as a };
@@ -1,4 +1,4 @@
1
- import { j as fails$1 } from './function-name-e2f6ea36.js';
1
+ import { h as fails$1 } from './is-forced-752b5893.js';
2
2
 
3
3
  'use strict';
4
4
  var fails = fails$1;
@@ -1,6 +1,5 @@
1
- import { f as functionUncurryThis, j as fails$1, l as isCallable$1, u as getBuiltIn$1, s as isObject$1, w as wellKnownSymbol$1 } from './function-name-e2f6ea36.js';
2
- import { f as classofRaw, r as inspectSource$1 } from './is-forced-ddf227e6.js';
3
- import { c as classof$2 } from './classof-a45668b6.js';
1
+ import { p as classofRaw, f as functionUncurryThis, h as fails$1, x as isCallable$1, B as getBuiltIn$1, V as inspectSource$1, n as isObject$1, w as wellKnownSymbol$1 } from './is-forced-752b5893.js';
2
+ import { c as classof$2 } from './classof-39c30bd5.js';
4
3
 
5
4
  var classof$1 = classofRaw;
6
5
 
@@ -95,4 +94,4 @@ var arraySpeciesCreate = function (originalArray, length) {
95
94
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
96
95
  };
97
96
 
98
- export { isArray$1 as a, arraySpeciesCreate as b, isConstructor$1 as i };
97
+ export { arraySpeciesCreate as a, isConstructor$1 as b, isArray$1 as i };
@@ -1,5 +1,4 @@
1
- import { w as wellKnownSymbol$2, l as isCallable$1 } from './function-name-e2f6ea36.js';
2
- import { f as classofRaw$1 } from './is-forced-ddf227e6.js';
1
+ import { w as wellKnownSymbol$2, x as isCallable$1, p as classofRaw$1 } from './is-forced-752b5893.js';
3
2
 
4
3
  var wellKnownSymbol$1 = wellKnownSymbol$2;
5
4
 
@@ -1,5 +1,4 @@
1
- import { x as toPropertyKey$1, o as objectDefineProperty } from './function-name-e2f6ea36.js';
2
- import { b as createPropertyDescriptor$1 } from './is-forced-ddf227e6.js';
1
+ import { W as toPropertyKey$1, F as objectDefineProperty, Q as createPropertyDescriptor$1 } from './is-forced-752b5893.js';
3
2
 
4
3
  'use strict';
5
4
  var toPropertyKey = toPropertyKey$1;
@@ -0,0 +1,31 @@
1
+ import { e as toObject$1, h as fails$1, M as tryToString$1 } from './is-forced-752b5893.js';
2
+ import { _ as _export } from './export-a37ba078.js';
3
+ import { o as objectKeys } from './object-keys-4f5bf4e7.js';
4
+
5
+ var es_object_keys = {};
6
+
7
+ var $ = _export;
8
+ var toObject = toObject$1;
9
+ var nativeKeys = objectKeys;
10
+ var fails = fails$1;
11
+
12
+ var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
13
+
14
+ // `Object.keys` method
15
+ // https://tc39.es/ecma262/#sec-object.keys
16
+ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
17
+ keys: function keys(it) {
18
+ return nativeKeys(toObject(it));
19
+ }
20
+ });
21
+
22
+ 'use strict';
23
+ var tryToString = tryToString$1;
24
+
25
+ var $TypeError = TypeError;
26
+
27
+ var deletePropertyOrThrow = function (O, P) {
28
+ if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
29
+ };
30
+
31
+ export { deletePropertyOrThrow as d };
@@ -0,0 +1,11 @@
1
+ import './is-forced-752b5893.js';
2
+
3
+ var $TypeError = TypeError;
4
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
5
+
6
+ var doesNotExceedSafeInteger = function (it) {
7
+ if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
8
+ return it;
9
+ };
10
+
11
+ export { doesNotExceedSafeInteger as d };
@@ -0,0 +1,69 @@
1
+ import { h as fails$1, n as isObject$1, e as toObject$1, l as lengthOfArrayLike$1, w as wellKnownSymbol$1, m as engineV8Version } from './is-forced-752b5893.js';
2
+ import { _ as _export } from './export-a37ba078.js';
3
+ import { i as isArray$1, a as arraySpeciesCreate$1 } from './array-species-create-a5f5503b.js';
4
+ import { d as doesNotExceedSafeInteger$1 } from './does-not-exceed-safe-integer-31d08811.js';
5
+ import { c as createProperty$1 } from './create-property-534611fd.js';
6
+ import { a as arrayMethodHasSpeciesSupport$1 } from './array-method-has-species-support-3d413468.js';
7
+
8
+ var es_array_concat = {};
9
+
10
+ 'use strict';
11
+ var $ = _export;
12
+ var fails = fails$1;
13
+ var isArray = isArray$1;
14
+ var isObject = isObject$1;
15
+ var toObject = toObject$1;
16
+ var lengthOfArrayLike = lengthOfArrayLike$1;
17
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
18
+ var createProperty = createProperty$1;
19
+ var arraySpeciesCreate = arraySpeciesCreate$1;
20
+ var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
21
+ var wellKnownSymbol = wellKnownSymbol$1;
22
+ var V8_VERSION = engineV8Version;
23
+
24
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
25
+
26
+ // We can't use this feature detection in V8 since it causes
27
+ // deoptimization and serious performance degradation
28
+ // https://github.com/zloirock/core-js/issues/679
29
+ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
30
+ var array = [];
31
+ array[IS_CONCAT_SPREADABLE] = false;
32
+ return array.concat()[0] !== array;
33
+ });
34
+
35
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
36
+
37
+ var isConcatSpreadable = function (O) {
38
+ if (!isObject(O)) return false;
39
+ var spreadable = O[IS_CONCAT_SPREADABLE];
40
+ return spreadable !== undefined ? !!spreadable : isArray(O);
41
+ };
42
+
43
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
44
+
45
+ // `Array.prototype.concat` method
46
+ // https://tc39.es/ecma262/#sec-array.prototype.concat
47
+ // with adding support of @@isConcatSpreadable and @@species
48
+ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
49
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
50
+ concat: function concat(arg) {
51
+ var O = toObject(this);
52
+ var A = arraySpeciesCreate(O, 0);
53
+ var n = 0;
54
+ var i, k, length, len, E;
55
+ for (i = -1, length = arguments.length; i < length; i++) {
56
+ E = i === -1 ? O : arguments[i];
57
+ if (isConcatSpreadable(E)) {
58
+ len = lengthOfArrayLike(E);
59
+ doesNotExceedSafeInteger(n + len);
60
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
61
+ } else {
62
+ doesNotExceedSafeInteger(n + 1);
63
+ createProperty(A, n++, E);
64
+ }
65
+ }
66
+ A.length = n;
67
+ return A;
68
+ }
69
+ });
@@ -1,9 +1,8 @@
1
- import './function-name-e2f6ea36.js';
2
- import { t as toStringTagSupport, c as classof$1 } from './classof-a45668b6.js';
3
- import { d as defineBuiltIn$1 } from './is-forced-ddf227e6.js';
4
- import { _ as _export } from './object-keys-6a890c6f.js';
5
- import { a as arrayIteration } from './array-iteration-98e2cf9a.js';
6
- import { a as addToUnscopables$1 } from './add-to-unscopables-3f461c07.js';
1
+ import { b as defineBuiltIn$1 } from './is-forced-752b5893.js';
2
+ import { t as toStringTagSupport, c as classof$1 } from './classof-39c30bd5.js';
3
+ import { _ as _export } from './export-a37ba078.js';
4
+ import { a as arrayIteration } from './array-iteration-107f927f.js';
5
+ import { a as addToUnscopables$1 } from './add-to-unscopables-2400f45b.js';
7
6
 
8
7
  var es_object_toString = {};
9
8
 
@@ -1,7 +1,6 @@
1
- import { j as fails$1 } from './function-name-e2f6ea36.js';
2
- import { _ as _export } from './object-keys-6a890c6f.js';
3
- import { n as arrayIncludes } from './is-forced-ddf227e6.js';
4
- import { a as addToUnscopables$1 } from './add-to-unscopables-3f461c07.js';
1
+ import { I as arrayIncludes, h as fails$1 } from './is-forced-752b5893.js';
2
+ import { _ as _export } from './export-a37ba078.js';
3
+ import { a as addToUnscopables$1 } from './add-to-unscopables-2400f45b.js';
5
4
 
6
5
  var es_array_includes = {};
7
6
 
@@ -1,4 +1,4 @@
1
- import { d as descriptors, n as functionName, f as functionUncurryThis, o as objectDefineProperty } from './function-name-e2f6ea36.js';
1
+ import { d as descriptors, N as functionName, f as functionUncurryThis, F as objectDefineProperty } from './is-forced-752b5893.js';
2
2
 
3
3
  var es_function_name = {};
4
4
 
@@ -1,6 +1,5 @@
1
- import { l as isCallable$2, f as functionUncurryThis, c as anObject$1, s as isObject$1, r as requireObjectCoercible$1, d as descriptors, g as global$1, k as hasOwnProperty_1, C as objectIsPrototypeOf, D as isSymbol$1, E as toPrimitive$1, j as fails$1, o as objectDefineProperty } from './function-name-e2f6ea36.js';
2
- import { j as isForced_1, d as defineBuiltIn$1, g as objectGetOwnPropertyNames, h as objectGetOwnPropertyDescriptor } from './is-forced-ddf227e6.js';
3
- import { t as toString$1 } from './to-string-685748aa.js';
1
+ import { x as isCallable$2, f as functionUncurryThis, q as anObject$1, n as isObject$1, r as requireObjectCoercible$1, d as descriptors, g as global$1, H as isForced_1, b as defineBuiltIn$1, D as hasOwnProperty_1, J as objectIsPrototypeOf, K as isSymbol$1, L as toPrimitive$1, h as fails$1, C as objectGetOwnPropertyNames, E as objectGetOwnPropertyDescriptor, F as objectDefineProperty } from './is-forced-752b5893.js';
2
+ import { t as toString$1 } from './to-string-12728fd2.js';
4
3
 
5
4
  var es_number_constructor = {};
6
5
 
@@ -1,116 +1,12 @@
1
- import './es.array.includes-df8e6e35.js';
2
- import { o as objectSetPrototypeOf } from './es.number.constructor-f279ce82.js';
3
- import { defineComponent, computed, ref, resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, withKeys, createElementVNode, createVNode, renderSlot } from 'vue';
4
- import './es.array.find-36d8f2f0.js';
5
- import { a as documentCreateElement$1, g as global$1, b as functionCall, c as anObject$3, e as getMethod$2, w as wellKnownSymbol$6, h as aCallable$1, t as tryToString$1, i as toObject$2, f as functionUncurryThis, r as requireObjectCoercible$1, j as fails$2, k as hasOwnProperty_1, l as isCallable$3, m as isPure, o as objectDefineProperty, n as functionName } from './function-name-e2f6ea36.js';
6
- import { _ as _export } from './object-keys-6a890c6f.js';
7
- import { a as arrayIteration, f as functionBindContext } from './array-iteration-98e2cf9a.js';
8
- import { i as isConstructor$1 } from './array-species-create-5fc23c89.js';
9
- import { c as createNonEnumerableProperty$2, l as lengthOfArrayLike$1, a as toIntegerOrInfinity$1, s as sharedKey$1, d as defineBuiltIn$2, b as createPropertyDescriptor$1, i as internalState } from './is-forced-ddf227e6.js';
10
- import { c as createProperty$1 } from './create-property-558a3c24.js';
11
- import { c as classof$1 } from './classof-a45668b6.js';
12
- import { t as toString$2 } from './to-string-685748aa.js';
13
- import { o as objectCreate } from './add-to-unscopables-3f461c07.js';
14
- import './web.timers-4a6aaab8.js';
15
- import { a as arrayMethodIsStrict$1 } from './array-method-is-strict-544b103f.js';
16
- import { s as script$1 } from './fw-loading-bar-da7d53fb.js';
17
- import { r as render$1 } from './index-4605e00e.js';
18
- import { s as styleInject } from './style-inject.es-1f59c1d0.js';
19
-
20
- var es_array_forEach = {};
21
-
22
- 'use strict';
23
- var $forEach = arrayIteration.forEach;
24
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
25
-
26
- var STRICT_METHOD = arrayMethodIsStrict('forEach');
27
-
28
- // `Array.prototype.forEach` method implementation
29
- // https://tc39.es/ecma262/#sec-array.prototype.foreach
30
- var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
31
- return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
32
- // eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
33
- } : [].forEach;
34
-
35
- 'use strict';
36
- var $$2 = _export;
37
- var forEach$1 = arrayForEach;
38
-
39
- // `Array.prototype.forEach` method
40
- // https://tc39.es/ecma262/#sec-array.prototype.foreach
41
- // eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
42
- $$2({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
43
- forEach: forEach$1
44
- });
45
-
46
- var web_domCollections_forEach = {};
47
-
48
- // iterable DOM collections
49
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
50
- var domIterables = {
51
- CSSRuleList: 0,
52
- CSSStyleDeclaration: 0,
53
- CSSValueList: 0,
54
- ClientRectList: 0,
55
- DOMRectList: 0,
56
- DOMStringList: 0,
57
- DOMTokenList: 1,
58
- DataTransferItemList: 0,
59
- FileList: 0,
60
- HTMLAllCollection: 0,
61
- HTMLCollection: 0,
62
- HTMLFormElement: 0,
63
- HTMLSelectElement: 0,
64
- MediaList: 0,
65
- MimeTypeArray: 0,
66
- NamedNodeMap: 0,
67
- NodeList: 1,
68
- PaintRequestList: 0,
69
- Plugin: 0,
70
- PluginArray: 0,
71
- SVGLengthList: 0,
72
- SVGNumberList: 0,
73
- SVGPathSegList: 0,
74
- SVGPointList: 0,
75
- SVGStringList: 0,
76
- SVGTransformList: 0,
77
- SourceBufferList: 0,
78
- StyleSheetList: 0,
79
- TextTrackCueList: 0,
80
- TextTrackList: 0,
81
- TouchList: 0
82
- };
83
-
84
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
85
- var documentCreateElement = documentCreateElement$1;
86
-
87
- var classList = documentCreateElement('span').classList;
88
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
89
-
90
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
91
-
92
- var global = global$1;
93
- var DOMIterables = domIterables;
94
- var DOMTokenListPrototype = domTokenListPrototype;
95
- var forEach = arrayForEach;
96
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
97
-
98
- var handlePrototype = function (CollectionPrototype) {
99
- // some Chrome versions have non-configurable methods on DOMTokenList
100
- if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
101
- createNonEnumerableProperty$1(CollectionPrototype, 'forEach', forEach);
102
- } catch (error) {
103
- CollectionPrototype.forEach = forEach;
104
- }
105
- };
106
-
107
- for (var COLLECTION_NAME in DOMIterables) {
108
- if (DOMIterables[COLLECTION_NAME]) {
109
- handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);
110
- }
111
- }
112
-
113
- handlePrototype(DOMTokenListPrototype);
1
+ import { s as functionCall, q as anObject$3, A as getMethod$2, w as wellKnownSymbol$6, k as aCallable$1, M as tryToString$1, e as toObject$2, l as lengthOfArrayLike$1, f as functionUncurryThis, y as toIntegerOrInfinity$1, r as requireObjectCoercible$1, h as fails$2, D as hasOwnProperty_1, x as isCallable$3, O as sharedKey$1, b as defineBuiltIn$2, P as isPure, F as objectDefineProperty, Q as createPropertyDescriptor$1, N as functionName, c as createNonEnumerableProperty$1, v as internalState } from './is-forced-752b5893.js';
2
+ import { _ as _export } from './export-a37ba078.js';
3
+ import { f as functionBindContext } from './array-iteration-107f927f.js';
4
+ import { b as isConstructor$1 } from './array-species-create-a5f5503b.js';
5
+ import { c as createProperty$1 } from './create-property-534611fd.js';
6
+ import { c as classof$1 } from './classof-39c30bd5.js';
7
+ import { t as toString$2 } from './to-string-12728fd2.js';
8
+ import { o as objectCreate } from './object-create-f6f3a673.js';
9
+ import { o as objectSetPrototypeOf } from './es.number.constructor-1249bd78.js';
114
10
 
115
11
  var es_array_from = {};
116
12
 
@@ -450,7 +346,7 @@ var createIteratorConstructor = createIteratorConstructor$1;
450
346
  var getPrototypeOf = objectGetPrototypeOf;
451
347
  var setPrototypeOf = objectSetPrototypeOf;
452
348
  var setToStringTag = setToStringTag$2;
453
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
349
+ var createNonEnumerableProperty = createNonEnumerableProperty$1;
454
350
  var defineBuiltIn = defineBuiltIn$2;
455
351
  var wellKnownSymbol = wellKnownSymbol$6;
456
352
  var Iterators = iterators;
@@ -571,200 +467,4 @@ defineIterator(String, 'String', function (iterated) {
571
467
  return { value: point, done: false };
572
468
  });
573
469
 
574
- var lazyLoadDirective = {
575
- mounted: function mounted(el) {
576
- var loadImage = function loadImage() {
577
- var imageElement = Array.from(el.children).find(function (element) {
578
- return element.nodeName === 'IMG';
579
- });
580
-
581
- if (imageElement) {
582
- var type = el.getAttribute('type');
583
- var url = imageElement.dataset.url;
584
- imageElement.addEventListener('load', function () {
585
- setTimeout(function () {
586
- return el.classList.add('fw-image--loaded');
587
- }, 100);
588
- setTimeout(function () {
589
- var _el$querySelector;
590
-
591
- return (_el$querySelector = el.querySelector('.fw-image--loading')) === null || _el$querySelector === void 0 ? void 0 : _el$querySelector.remove();
592
- }, 600);
593
- });
594
-
595
- if (url) {
596
- imageElement.src = url;
597
- }
598
-
599
- if (type === 'background') {
600
- el.style.backgroundImage = "url('".concat(url, "')");
601
- imageElement.remove();
602
- }
603
-
604
- imageElement.addEventListener('error', function () {
605
- setTimeout(function () {
606
- return el.classList.add('fw-image--loaded-error');
607
- }, 100);
608
- setTimeout(function () {
609
- var _el$querySelector2;
610
-
611
- return (_el$querySelector2 = el.querySelector('.fw-image--loading')) === null || _el$querySelector2 === void 0 ? void 0 : _el$querySelector2.remove();
612
- }, 600);
613
- });
614
- }
615
- };
616
-
617
- var handleIntersect = function handleIntersect(entries, observer) {
618
- entries.forEach(function (entry) {
619
- if (entry.isIntersecting) {
620
- loadImage();
621
- observer.unobserve(el);
622
- }
623
- });
624
- };
625
-
626
- var createObserver = function createObserver() {
627
- var options = {
628
- root: null,
629
- threshold: Number(el.getAttribute('threshold')) || 0
630
- };
631
- var observer = new IntersectionObserver(handleIntersect, options);
632
- observer.observe(el);
633
- };
634
-
635
- if (window.IntersectionObserver) {
636
- createObserver();
637
- } else {
638
- loadImage();
639
- }
640
- }
641
- };
642
-
643
- var script = defineComponent({
644
- name: 'FwImage',
645
- directives: {
646
- lazyload: lazyLoadDirective
647
- },
648
- components: {
649
- FwLoadingBar: script$1,
650
- FileExclamationSvg: render$1
651
- },
652
- props: {
653
- /**
654
- * The src attribute of the image
655
- */
656
- src: String,
657
-
658
- /**
659
- * The alt attribute of the image
660
- */
661
- alt: String,
662
-
663
- /**
664
- * The type of component. Accepts 'background' and defaults to the native html5 element.
665
- */
666
- type: {
667
- type: String,
668
- "default": 'native',
669
- validator: function validator(value) {
670
- return ['native', 'background'].includes(value);
671
- }
672
- },
673
-
674
- /**
675
- * Whether the loading bar and error state are rounded.
676
- */
677
- rounded: {
678
- type: Boolean,
679
- "default": false
680
- },
681
-
682
- /**
683
- * The class for the native image element
684
- */
685
- imageClass: {
686
- type: String
687
- },
688
-
689
- /**
690
- * Controls the threshold before the component triggers the src url.
691
- */
692
- threshold: {
693
- type: Number,
694
- "default": 0
695
- }
696
- },
697
- setup: function setup(props) {
698
- var isBackground = computed(function () {
699
- return props.type === 'background';
700
- });
701
- var fwImageRef = ref(null);
702
- return {
703
- fwImageRef: fwImageRef,
704
- isBackground: isBackground
705
- };
706
- }
707
- });
708
-
709
- var _hoisted_1 = ["type", "threshold"];
710
- var _hoisted_2 = ["data-url", "alt"];
711
- var _hoisted_3 = {
712
- "class": "fw-image--error-wrapper flex flex-col items-center justify-center"
713
- };
714
- function render(_ctx, _cache, $props, $setup, $data, $options) {
715
- var _component_FwLoadingBar = resolveComponent("FwLoadingBar");
716
-
717
- var _component_FileExclamationSvg = resolveComponent("FileExclamationSvg");
718
-
719
- var _directive_lazyload = resolveDirective("lazyload");
720
-
721
- return withDirectives((openBlock(), createElementBlock("div", {
722
- ref: "fwImageRef",
723
- type: _ctx.type,
724
- threshold: _ctx.threshold,
725
- "class": normalizeClass(["fw-image", {
726
- 'fw-image--background': _ctx.isBackground,
727
- 'rounded-full': _ctx.rounded
728
- }]),
729
- onClick: _cache[0] || (_cache[0] = function ($event) {
730
- return _ctx.$emit('click', $event);
731
- }),
732
- onKeyup: _cache[1] || (_cache[1] = withKeys(function ($event) {
733
- return _ctx.$emit('click', $event);
734
- }, ["enter"])),
735
- onMouseover: _cache[2] || (_cache[2] = function ($event) {
736
- return _ctx.$emit('mouseover');
737
- }),
738
- onMouseout: _cache[3] || (_cache[3] = function ($event) {
739
- return _ctx.$emit('mouseout');
740
- }),
741
- onFocusin: _cache[4] || (_cache[4] = function ($event) {
742
- return _ctx.$emit('mouseover');
743
- }),
744
- onFocusout: _cache[5] || (_cache[5] = function ($event) {
745
- return _ctx.$emit('mouseout');
746
- })
747
- }, [createElementVNode("img", {
748
- "data-url": _ctx.src,
749
- alt: _ctx.alt,
750
- "class": normalizeClass(_ctx.imageClass)
751
- }, null, 10, _hoisted_2), createVNode(_component_FwLoadingBar, {
752
- "class": normalizeClass(["fw-image--loading w-full h-full", {
753
- 'rounded-full': _ctx.rounded
754
- }])
755
- }, null, 8, ["class"]), createElementVNode("div", {
756
- "class": normalizeClass(["fw-image--error bg-grey-20", {
757
- 'rounded-full': _ctx.rounded
758
- }])
759
- }, [createElementVNode("div", _hoisted_3, [createVNode(_component_FileExclamationSvg, {
760
- "class": "w-full h-full scale-[0.3] opacity-80 text-alert max-w-[150px]"
761
- })])], 2), renderSlot(_ctx.$slots, "default")], 42, _hoisted_1)), [[_directive_lazyload]]);
762
- }
763
-
764
- var css_248z = ".fw-image{position:relative}.fw-image img{-webkit-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.fw-image img,.fw-image--error{opacity:0;visibility:hidden;width:100%}.fw-image--error{height:100%;left:0;position:relative;position:absolute;top:0;-webkit-transition:all .5s ease-in;-o-transition:all .5s ease-in;transition:all .5s ease-in}.fw-image--error-wrapper{font-size:inherit;left:50%;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%}.fw-image--loading{height:100%;left:0;position:absolute!important;top:0;-webkit-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;width:100%}.fw-image--loaded img,.fw-image--loading{opacity:1;visibility:visible}.fw-image--loaded .fw-image--loading{opacity:0;visibility:hidden;width:100%}.fw-image--loaded-error img{display:none}.fw-image--loaded-error .fw-image--error{opacity:1;visibility:visible}.fw-image--background{background-position:50%;background-repeat:no-repeat;background-size:cover}";
765
- var stylesheet = ".fw-image{position:relative}.fw-image img{-webkit-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.fw-image img,.fw-image--error{opacity:0;visibility:hidden;width:100%}.fw-image--error{height:100%;left:0;position:relative;position:absolute;top:0;-webkit-transition:all .5s ease-in;-o-transition:all .5s ease-in;transition:all .5s ease-in}.fw-image--error-wrapper{font-size:inherit;left:50%;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%}.fw-image--loading{height:100%;left:0;position:absolute!important;top:0;-webkit-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;width:100%}.fw-image--loaded img,.fw-image--loading{opacity:1;visibility:visible}.fw-image--loaded .fw-image--loading{opacity:0;visibility:hidden;width:100%}.fw-image--loaded-error img{display:none}.fw-image--loaded-error .fw-image--error{opacity:1;visibility:visible}.fw-image--background{background-position:50%;background-repeat:no-repeat;background-size:cover}";
766
- styleInject(css_248z);
767
-
768
- script.render = render;
769
-
770
- export { script as s };
470
+ export { stringMultibyte as s };
@@ -1,5 +1,4 @@
1
- import { u as getBuiltIn$1, f as functionUncurryThis, c as anObject$1, k as hasOwnProperty_1, o as objectDefineProperty, g as global$1, v as defineGlobalProperty$1 } from './function-name-e2f6ea36.js';
2
- import { g as objectGetOwnPropertyNames, h as objectGetOwnPropertyDescriptor, c as createNonEnumerableProperty$1, d as defineBuiltIn$1, j as isForced_1, k as objectKeysInternal, m as enumBugKeys$1 } from './is-forced-ddf227e6.js';
1
+ import { B as getBuiltIn$1, f as functionUncurryThis, C as objectGetOwnPropertyNames, q as anObject$1, D as hasOwnProperty_1, E as objectGetOwnPropertyDescriptor, F as objectDefineProperty, g as global$1, c as createNonEnumerableProperty$1, b as defineBuiltIn$1, G as defineGlobalProperty$1, H as isForced_1 } from './is-forced-752b5893.js';
3
2
 
4
3
  var objectGetOwnPropertySymbols = {};
5
4
 
@@ -93,14 +92,4 @@ var _export = function (options, source) {
93
92
  }
94
93
  };
95
94
 
96
- var internalObjectKeys = objectKeysInternal;
97
- var enumBugKeys = enumBugKeys$1;
98
-
99
- // `Object.keys` method
100
- // https://tc39.es/ecma262/#sec-object.keys
101
- // eslint-disable-next-line es-x/no-object-keys -- safe
102
- var objectKeys = Object.keys || function keys(O) {
103
- return internalObjectKeys(O, enumBugKeys);
104
- };
105
-
106
- export { _export as _, objectKeys as o };
95
+ export { _export as _ };
@@ -0,0 +1,14 @@
1
+ import { R as functionBindNative } from './is-forced-752b5893.js';
2
+
3
+ var NATIVE_BIND = functionBindNative;
4
+
5
+ var FunctionPrototype = Function.prototype;
6
+ var apply = FunctionPrototype.apply;
7
+ var call = FunctionPrototype.call;
8
+
9
+ // eslint-disable-next-line es-x/no-reflect -- safe
10
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
11
+ return call.apply(apply, arguments);
12
+ });
13
+
14
+ export { functionApply as f };