@frollo/frollo-web-ui 0.0.16 → 0.0.17

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.
@@ -0,0 +1,565 @@
1
+ import { b as functionUncurryThis, c as aCallable$1, e as functionBindNative, w as wellKnownSymbol$3, g as global$5, i as isCallable$4, f as fails$2, h as getBuiltIn$1, j as isObject$2, t as toObject$1, k as anObject$1, r as requireObjectCoercible$1, a as descriptors, l as hasOwnProperty_1, o as objectIsPrototypeOf, m as isSymbol$1, n as toPrimitive$1, p as objectDefineProperty } from './function-name-a620492a.js';
2
+ import { b as classofRaw$1, i as inspectSource$1, d as indexedObject, l as lengthOfArrayLike$1, e as isForced_1, r as redefine$1, f as objectGetOwnPropertyNames, g as objectGetOwnPropertyDescriptor, _ as _export, h as addToUnscopables$1 } from './add-to-unscopables-874257d1.js';
3
+ import { defineComponent, computed, ref, provide, openBlock, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, renderSlot, getCurrentInstance, inject, watchEffect } from 'vue';
4
+
5
+ var uncurryThis$6 = functionUncurryThis;
6
+ var aCallable = aCallable$1;
7
+ var NATIVE_BIND = functionBindNative;
8
+
9
+ var bind$1 = uncurryThis$6(uncurryThis$6.bind);
10
+
11
+ // optional / simple context binding
12
+ var functionBindContext = function (fn, that) {
13
+ aCallable(fn);
14
+ return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
15
+ return fn.apply(that, arguments);
16
+ };
17
+ };
18
+
19
+ var classof$3 = classofRaw$1;
20
+
21
+ // `IsArray` abstract operation
22
+ // https://tc39.es/ecma262/#sec-isarray
23
+ // eslint-disable-next-line es/no-array-isarray -- safe
24
+ var isArray$1 = Array.isArray || function isArray(argument) {
25
+ return classof$3(argument) == 'Array';
26
+ };
27
+
28
+ var wellKnownSymbol$2 = wellKnownSymbol$3;
29
+
30
+ var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
31
+ var test = {};
32
+
33
+ test[TO_STRING_TAG$1] = 'z';
34
+
35
+ var toStringTagSupport = String(test) === '[object z]';
36
+
37
+ var global$4 = global$5;
38
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
39
+ var isCallable$3 = isCallable$4;
40
+ var classofRaw = classofRaw$1;
41
+ var wellKnownSymbol$1 = wellKnownSymbol$3;
42
+
43
+ var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
44
+ var Object$1 = global$4.Object;
45
+
46
+ // ES3 wrong here
47
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
48
+
49
+ // fallback for IE11 Script Access Denied error
50
+ var tryGet = function (it, key) {
51
+ try {
52
+ return it[key];
53
+ } catch (error) { /* empty */ }
54
+ };
55
+
56
+ // getting tag from ES6+ `Object.prototype.toString`
57
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
58
+ var O, tag, result;
59
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
60
+ // @@toStringTag case
61
+ : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
62
+ // builtinTag case
63
+ : CORRECT_ARGUMENTS ? classofRaw(O)
64
+ // ES3 arguments fallback
65
+ : (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
66
+ };
67
+
68
+ var uncurryThis$5 = functionUncurryThis;
69
+ var fails$1 = fails$2;
70
+ var isCallable$2 = isCallable$4;
71
+ var classof$1 = classof$2;
72
+ var getBuiltIn = getBuiltIn$1;
73
+ var inspectSource = inspectSource$1;
74
+
75
+ var noop = function () { /* empty */ };
76
+ var empty = [];
77
+ var construct = getBuiltIn('Reflect', 'construct');
78
+ var constructorRegExp = /^\s*(?:class|function)\b/;
79
+ var exec = uncurryThis$5(constructorRegExp.exec);
80
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
81
+
82
+ var isConstructorModern = function isConstructor(argument) {
83
+ if (!isCallable$2(argument)) return false;
84
+ try {
85
+ construct(noop, empty, argument);
86
+ return true;
87
+ } catch (error) {
88
+ return false;
89
+ }
90
+ };
91
+
92
+ var isConstructorLegacy = function isConstructor(argument) {
93
+ if (!isCallable$2(argument)) return false;
94
+ switch (classof$1(argument)) {
95
+ case 'AsyncFunction':
96
+ case 'GeneratorFunction':
97
+ case 'AsyncGeneratorFunction': return false;
98
+ }
99
+ try {
100
+ // we can't check .prototype since constructors produced by .bind haven't it
101
+ // `Function#toString` throws on some built-it function in some legacy engines
102
+ // (for example, `DOMQuad` and similar in FF41-)
103
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
104
+ } catch (error) {
105
+ return true;
106
+ }
107
+ };
108
+
109
+ isConstructorLegacy.sham = true;
110
+
111
+ // `IsConstructor` abstract operation
112
+ // https://tc39.es/ecma262/#sec-isconstructor
113
+ var isConstructor$1 = !construct || fails$1(function () {
114
+ var called;
115
+ return isConstructorModern(isConstructorModern.call)
116
+ || !isConstructorModern(Object)
117
+ || !isConstructorModern(function () { called = true; })
118
+ || called;
119
+ }) ? isConstructorLegacy : isConstructorModern;
120
+
121
+ var global$3 = global$5;
122
+ var isArray = isArray$1;
123
+ var isConstructor = isConstructor$1;
124
+ var isObject$1 = isObject$2;
125
+ var wellKnownSymbol = wellKnownSymbol$3;
126
+
127
+ var SPECIES = wellKnownSymbol('species');
128
+ var Array$1 = global$3.Array;
129
+
130
+ // a part of `ArraySpeciesCreate` abstract operation
131
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
132
+ var arraySpeciesConstructor$1 = function (originalArray) {
133
+ var C;
134
+ if (isArray(originalArray)) {
135
+ C = originalArray.constructor;
136
+ // cross-realm fallback
137
+ if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
138
+ else if (isObject$1(C)) {
139
+ C = C[SPECIES];
140
+ if (C === null) C = undefined;
141
+ }
142
+ } return C === undefined ? Array$1 : C;
143
+ };
144
+
145
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
146
+
147
+ // `ArraySpeciesCreate` abstract operation
148
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
149
+ var arraySpeciesCreate$1 = function (originalArray, length) {
150
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
151
+ };
152
+
153
+ var bind = functionBindContext;
154
+ var uncurryThis$4 = functionUncurryThis;
155
+ var IndexedObject = indexedObject;
156
+ var toObject = toObject$1;
157
+ var lengthOfArrayLike = lengthOfArrayLike$1;
158
+ var arraySpeciesCreate = arraySpeciesCreate$1;
159
+
160
+ var push = uncurryThis$4([].push);
161
+
162
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
163
+ var createMethod$1 = function (TYPE) {
164
+ var IS_MAP = TYPE == 1;
165
+ var IS_FILTER = TYPE == 2;
166
+ var IS_SOME = TYPE == 3;
167
+ var IS_EVERY = TYPE == 4;
168
+ var IS_FIND_INDEX = TYPE == 6;
169
+ var IS_FILTER_REJECT = TYPE == 7;
170
+ var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
171
+ return function ($this, callbackfn, that, specificCreate) {
172
+ var O = toObject($this);
173
+ var self = IndexedObject(O);
174
+ var boundFunction = bind(callbackfn, that);
175
+ var length = lengthOfArrayLike(self);
176
+ var index = 0;
177
+ var create = specificCreate || arraySpeciesCreate;
178
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
179
+ var value, result;
180
+ for (;length > index; index++) if (NO_HOLES || index in self) {
181
+ value = self[index];
182
+ result = boundFunction(value, index, O);
183
+ if (TYPE) {
184
+ if (IS_MAP) target[index] = result; // map
185
+ else if (result) switch (TYPE) {
186
+ case 3: return true; // some
187
+ case 5: return value; // find
188
+ case 6: return index; // findIndex
189
+ case 2: push(target, value); // filter
190
+ } else switch (TYPE) {
191
+ case 4: return false; // every
192
+ case 7: push(target, value); // filterReject
193
+ }
194
+ }
195
+ }
196
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
197
+ };
198
+ };
199
+
200
+ var arrayIteration = {
201
+ // `Array.prototype.forEach` method
202
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
203
+ forEach: createMethod$1(0),
204
+ // `Array.prototype.map` method
205
+ // https://tc39.es/ecma262/#sec-array.prototype.map
206
+ map: createMethod$1(1),
207
+ // `Array.prototype.filter` method
208
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
209
+ filter: createMethod$1(2),
210
+ // `Array.prototype.some` method
211
+ // https://tc39.es/ecma262/#sec-array.prototype.some
212
+ some: createMethod$1(3),
213
+ // `Array.prototype.every` method
214
+ // https://tc39.es/ecma262/#sec-array.prototype.every
215
+ every: createMethod$1(4),
216
+ // `Array.prototype.find` method
217
+ // https://tc39.es/ecma262/#sec-array.prototype.find
218
+ find: createMethod$1(5),
219
+ // `Array.prototype.findIndex` method
220
+ // https://tc39.es/ecma262/#sec-array.prototype.findIndex
221
+ findIndex: createMethod$1(6),
222
+ // `Array.prototype.filterReject` method
223
+ // https://github.com/tc39/proposal-array-filtering
224
+ filterReject: createMethod$1(7)
225
+ };
226
+
227
+ var es_number_constructor = {};
228
+
229
+ var global$2 = global$5;
230
+ var isCallable$1 = isCallable$4;
231
+
232
+ var String$2 = global$2.String;
233
+ var TypeError$2 = global$2.TypeError;
234
+
235
+ var aPossiblePrototype$1 = function (argument) {
236
+ if (typeof argument == 'object' || isCallable$1(argument)) return argument;
237
+ throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
238
+ };
239
+
240
+ /* eslint-disable no-proto -- safe */
241
+
242
+ var uncurryThis$3 = functionUncurryThis;
243
+ var anObject = anObject$1;
244
+ var aPossiblePrototype = aPossiblePrototype$1;
245
+
246
+ // `Object.setPrototypeOf` method
247
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
248
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
249
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
250
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
251
+ var CORRECT_SETTER = false;
252
+ var test = {};
253
+ var setter;
254
+ try {
255
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
256
+ setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
257
+ setter(test, []);
258
+ CORRECT_SETTER = test instanceof Array;
259
+ } catch (error) { /* empty */ }
260
+ return function setPrototypeOf(O, proto) {
261
+ anObject(O);
262
+ aPossiblePrototype(proto);
263
+ if (CORRECT_SETTER) setter(O, proto);
264
+ else O.__proto__ = proto;
265
+ return O;
266
+ };
267
+ }() : undefined);
268
+
269
+ var isCallable = isCallable$4;
270
+ var isObject = isObject$2;
271
+ var setPrototypeOf = objectSetPrototypeOf;
272
+
273
+ // makes subclassing work correct for wrapped built-ins
274
+ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
275
+ var NewTarget, NewTargetPrototype;
276
+ if (
277
+ // it can work only with native `setPrototypeOf`
278
+ setPrototypeOf &&
279
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
280
+ isCallable(NewTarget = dummy.constructor) &&
281
+ NewTarget !== Wrapper &&
282
+ isObject(NewTargetPrototype = NewTarget.prototype) &&
283
+ NewTargetPrototype !== Wrapper.prototype
284
+ ) setPrototypeOf($this, NewTargetPrototype);
285
+ return $this;
286
+ };
287
+
288
+ var uncurryThis$2 = functionUncurryThis;
289
+
290
+ // `thisNumberValue` abstract operation
291
+ // https://tc39.es/ecma262/#sec-thisnumbervalue
292
+ var thisNumberValue$1 = uncurryThis$2(1.0.valueOf);
293
+
294
+ var global$1 = global$5;
295
+ var classof = classof$2;
296
+
297
+ var String$1 = global$1.String;
298
+
299
+ var toString$1 = function (argument) {
300
+ if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
301
+ return String$1(argument);
302
+ };
303
+
304
+ // a string of all valid unicode whitespaces
305
+ var whitespaces$1 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
306
+ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
307
+
308
+ var uncurryThis$1 = functionUncurryThis;
309
+ var requireObjectCoercible = requireObjectCoercible$1;
310
+ var toString = toString$1;
311
+ var whitespaces = whitespaces$1;
312
+
313
+ var replace = uncurryThis$1(''.replace);
314
+ var whitespace = '[' + whitespaces + ']';
315
+ var ltrim = RegExp('^' + whitespace + whitespace + '*');
316
+ var rtrim = RegExp(whitespace + whitespace + '*$');
317
+
318
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
319
+ var createMethod = function (TYPE) {
320
+ return function ($this) {
321
+ var string = toString(requireObjectCoercible($this));
322
+ if (TYPE & 1) string = replace(string, ltrim, '');
323
+ if (TYPE & 2) string = replace(string, rtrim, '');
324
+ return string;
325
+ };
326
+ };
327
+
328
+ var stringTrim = {
329
+ // `String.prototype.{ trimLeft, trimStart }` methods
330
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
331
+ start: createMethod(1),
332
+ // `String.prototype.{ trimRight, trimEnd }` methods
333
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
334
+ end: createMethod(2),
335
+ // `String.prototype.trim` method
336
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
337
+ trim: createMethod(3)
338
+ };
339
+
340
+ 'use strict';
341
+ var DESCRIPTORS = descriptors;
342
+ var global = global$5;
343
+ var uncurryThis = functionUncurryThis;
344
+ var isForced = isForced_1;
345
+ var redefine = redefine$1.exports;
346
+ var hasOwn = hasOwnProperty_1;
347
+ var inheritIfRequired = inheritIfRequired$1;
348
+ var isPrototypeOf = objectIsPrototypeOf;
349
+ var isSymbol = isSymbol$1;
350
+ var toPrimitive = toPrimitive$1;
351
+ var fails = fails$2;
352
+ var getOwnPropertyNames = objectGetOwnPropertyNames.f;
353
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
354
+ var defineProperty = objectDefineProperty.f;
355
+ var thisNumberValue = thisNumberValue$1;
356
+ var trim = stringTrim.trim;
357
+
358
+ var NUMBER = 'Number';
359
+ var NativeNumber = global[NUMBER];
360
+ var NumberPrototype = NativeNumber.prototype;
361
+ var TypeError$1 = global.TypeError;
362
+ var arraySlice = uncurryThis(''.slice);
363
+ var charCodeAt = uncurryThis(''.charCodeAt);
364
+
365
+ // `ToNumeric` abstract operation
366
+ // https://tc39.es/ecma262/#sec-tonumeric
367
+ var toNumeric = function (value) {
368
+ var primValue = toPrimitive(value, 'number');
369
+ return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
370
+ };
371
+
372
+ // `ToNumber` abstract operation
373
+ // https://tc39.es/ecma262/#sec-tonumber
374
+ var toNumber = function (argument) {
375
+ var it = toPrimitive(argument, 'number');
376
+ var first, third, radix, maxCode, digits, length, index, code;
377
+ if (isSymbol(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
378
+ if (typeof it == 'string' && it.length > 2) {
379
+ it = trim(it);
380
+ first = charCodeAt(it, 0);
381
+ if (first === 43 || first === 45) {
382
+ third = charCodeAt(it, 2);
383
+ if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
384
+ } else if (first === 48) {
385
+ switch (charCodeAt(it, 1)) {
386
+ case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
387
+ case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
388
+ default: return +it;
389
+ }
390
+ digits = arraySlice(it, 2);
391
+ length = digits.length;
392
+ for (index = 0; index < length; index++) {
393
+ code = charCodeAt(digits, index);
394
+ // parseInt parses a string to a first unavailable symbol
395
+ // but ToNumber should return NaN if a string contains unavailable symbols
396
+ if (code < 48 || code > maxCode) return NaN;
397
+ } return parseInt(digits, radix);
398
+ }
399
+ } return +it;
400
+ };
401
+
402
+ // `Number` constructor
403
+ // https://tc39.es/ecma262/#sec-number-constructor
404
+ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
405
+ var NumberWrapper = function Number(value) {
406
+ var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
407
+ var dummy = this;
408
+ // check on 1..constructor(foo) case
409
+ return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
410
+ ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
411
+ };
412
+ for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
413
+ // ES3:
414
+ 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
415
+ // ES2015 (in case, if modules with ES2015 Number statics required before):
416
+ 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
417
+ // ESNext
418
+ 'fromString,range'
419
+ ).split(','), j = 0, key; keys.length > j; j++) {
420
+ if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
421
+ defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
422
+ }
423
+ }
424
+ NumberWrapper.prototype = NumberPrototype;
425
+ NumberPrototype.constructor = NumberWrapper;
426
+ redefine(global, NUMBER, NumberWrapper);
427
+ }
428
+
429
+ var script$1 = defineComponent({
430
+ name: 'FwTabs',
431
+ emits: ['update:modelValue'],
432
+ props: {
433
+ /**
434
+ * The active tab v-model
435
+ */
436
+ modelValue: {
437
+ type: Number,
438
+ required: true
439
+ }
440
+ },
441
+ setup: function setup(props, ctx) {
442
+ var active = computed(function () {
443
+ return props.modelValue;
444
+ });
445
+ var tabs = ref([]);
446
+
447
+ var selectTab = function selectTab(tab) {
448
+ ctx.emit('update:modelValue', tab);
449
+ };
450
+
451
+ provide('tabsState', {
452
+ active: active,
453
+ tabs: tabs
454
+ });
455
+ return {
456
+ active: active,
457
+ tabs: tabs,
458
+ selectTab: selectTab
459
+ };
460
+ }
461
+ });
462
+
463
+ var _hoisted_1$1 = {
464
+ "class": "fw-tabs"
465
+ };
466
+ var _hoisted_2 = {
467
+ key: 0,
468
+ "class": "flex flex-wrap -mb-px border-b border-grey-light dark:text-grey-base dark:border-grey-base"
469
+ };
470
+ var _hoisted_3 = ["onClick"];
471
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
472
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [_ctx.tabs ? (openBlock(), createElementBlock("ul", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, function (tab, i) {
473
+ return openBlock(), createElementBlock("li", {
474
+ "class": "mr-2",
475
+ key: i
476
+ }, [createElementVNode("button", {
477
+ type: "button",
478
+ onClick: function onClick($event) {
479
+ return _ctx.selectTab(i);
480
+ },
481
+ "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'])
482
+ }, toDisplayString(tab.props.label), 11, _hoisted_3)]);
483
+ }), 128))])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")]);
484
+ }
485
+
486
+ script$1.render = render$1;
487
+
488
+ var es_array_findIndex = {};
489
+
490
+ 'use strict';
491
+ var $ = _export;
492
+ var $findIndex = arrayIteration.findIndex;
493
+ var addToUnscopables = addToUnscopables$1;
494
+
495
+ var FIND_INDEX = 'findIndex';
496
+ var SKIPS_HOLES = true;
497
+
498
+ // Shouldn't skip holes
499
+ if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });
500
+
501
+ // `Array.prototype.findIndex` method
502
+ // https://tc39.es/ecma262/#sec-array.prototype.findindex
503
+ $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
504
+ findIndex: function findIndex(callbackfn /* , that = undefined */) {
505
+ return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
506
+ }
507
+ });
508
+
509
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
510
+ addToUnscopables(FIND_INDEX);
511
+
512
+ var script = defineComponent({
513
+ name: 'FwTab',
514
+ props: {
515
+ /**
516
+ * The label of the tab component used as the button panel label
517
+ */
518
+ label: {
519
+ type: String,
520
+ required: true
521
+ }
522
+ },
523
+ setup: function setup() {
524
+ var instance = getCurrentInstance();
525
+
526
+ var _ref = inject('tabsState') || {
527
+ tabs: [],
528
+ active: 0
529
+ },
530
+ tabs = _ref.tabs,
531
+ active = _ref.active;
532
+
533
+ var index = computed(function () {
534
+ var _tabs$value;
535
+
536
+ return (_tabs$value = tabs.value) === null || _tabs$value === void 0 ? void 0 : _tabs$value.findIndex(function (target) {
537
+ return target.uid === (instance === null || instance === void 0 ? void 0 : instance.uid);
538
+ });
539
+ });
540
+ var isActive = computed(function () {
541
+ return index.value === active.value;
542
+ });
543
+ watchEffect(function () {
544
+ if (index.value === -1) {
545
+ tabs.value.push(instance);
546
+ }
547
+ });
548
+ return {
549
+ isActive: isActive,
550
+ index: index
551
+ };
552
+ }
553
+ });
554
+
555
+ var _hoisted_1 = {
556
+ key: 0,
557
+ "class": "fw-tab w-full"
558
+ };
559
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
560
+ return _ctx.isActive ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")])) : createCommentVNode("", true);
561
+ }
562
+
563
+ script.render = render;
564
+
565
+ export { arrayIteration as a, script as b, classof$2 as c, script$1 as s, toStringTagSupport as t };