strapi-plugin-firebase-authentication 1.2.0 → 1.2.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.
@@ -1,815 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import "@strapi/strapi/admin";
3
- import "@strapi/design-system";
4
- import { Plant } from "@strapi/icons";
5
- import "react-router-dom";
6
- import { useRef, useEffect } from "react";
7
- const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
8
- const v = glob[path];
9
- if (v) {
10
- return typeof v === "function" ? v() : Promise.resolve(v);
11
- }
12
- return new Promise((_, reject) => {
13
- (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
14
- reject.bind(
15
- null,
16
- new Error(
17
- "Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
18
- )
19
- )
20
- );
21
- });
22
- };
23
- const PLUGIN_ID = "firebase-authentication";
24
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
25
- function getDefaultExportFromCjs(x) {
26
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
27
- }
28
- function getAugmentedNamespace(n) {
29
- if (n.__esModule) return n;
30
- var f = n.default;
31
- if (typeof f == "function") {
32
- var a = function a2() {
33
- if (this instanceof a2) {
34
- return Reflect.construct(f, arguments, this.constructor);
35
- }
36
- return f.apply(this, arguments);
37
- };
38
- a.prototype = f.prototype;
39
- } else a = {};
40
- Object.defineProperty(a, "__esModule", { value: true });
41
- Object.keys(n).forEach(function(k) {
42
- var d = Object.getOwnPropertyDescriptor(n, k);
43
- Object.defineProperty(a, k, d.get ? d : {
44
- enumerable: true,
45
- get: function() {
46
- return n[k];
47
- }
48
- });
49
- });
50
- return a;
51
- }
52
- function listCacheClear$1() {
53
- this.__data__ = [];
54
- this.size = 0;
55
- }
56
- var _listCacheClear = listCacheClear$1;
57
- function eq$2(value, other) {
58
- return value === other || value !== value && other !== other;
59
- }
60
- var eq_1 = eq$2;
61
- var eq$1 = eq_1;
62
- function assocIndexOf$4(array, key) {
63
- var length = array.length;
64
- while (length--) {
65
- if (eq$1(array[length][0], key)) {
66
- return length;
67
- }
68
- }
69
- return -1;
70
- }
71
- var _assocIndexOf = assocIndexOf$4;
72
- var assocIndexOf$3 = _assocIndexOf;
73
- var arrayProto = Array.prototype;
74
- var splice = arrayProto.splice;
75
- function listCacheDelete$1(key) {
76
- var data = this.__data__, index2 = assocIndexOf$3(data, key);
77
- if (index2 < 0) {
78
- return false;
79
- }
80
- var lastIndex = data.length - 1;
81
- if (index2 == lastIndex) {
82
- data.pop();
83
- } else {
84
- splice.call(data, index2, 1);
85
- }
86
- --this.size;
87
- return true;
88
- }
89
- var _listCacheDelete = listCacheDelete$1;
90
- var assocIndexOf$2 = _assocIndexOf;
91
- function listCacheGet$1(key) {
92
- var data = this.__data__, index2 = assocIndexOf$2(data, key);
93
- return index2 < 0 ? void 0 : data[index2][1];
94
- }
95
- var _listCacheGet = listCacheGet$1;
96
- var assocIndexOf$1 = _assocIndexOf;
97
- function listCacheHas$1(key) {
98
- return assocIndexOf$1(this.__data__, key) > -1;
99
- }
100
- var _listCacheHas = listCacheHas$1;
101
- var assocIndexOf = _assocIndexOf;
102
- function listCacheSet$1(key, value) {
103
- var data = this.__data__, index2 = assocIndexOf(data, key);
104
- if (index2 < 0) {
105
- ++this.size;
106
- data.push([key, value]);
107
- } else {
108
- data[index2][1] = value;
109
- }
110
- return this;
111
- }
112
- var _listCacheSet = listCacheSet$1;
113
- var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
114
- function ListCache$4(entries) {
115
- var index2 = -1, length = entries == null ? 0 : entries.length;
116
- this.clear();
117
- while (++index2 < length) {
118
- var entry = entries[index2];
119
- this.set(entry[0], entry[1]);
120
- }
121
- }
122
- ListCache$4.prototype.clear = listCacheClear;
123
- ListCache$4.prototype["delete"] = listCacheDelete;
124
- ListCache$4.prototype.get = listCacheGet;
125
- ListCache$4.prototype.has = listCacheHas;
126
- ListCache$4.prototype.set = listCacheSet;
127
- var _ListCache = ListCache$4;
128
- var ListCache$3 = _ListCache;
129
- function stackClear$1() {
130
- this.__data__ = new ListCache$3();
131
- this.size = 0;
132
- }
133
- var _stackClear = stackClear$1;
134
- function stackDelete$1(key) {
135
- var data = this.__data__, result = data["delete"](key);
136
- this.size = data.size;
137
- return result;
138
- }
139
- var _stackDelete = stackDelete$1;
140
- function stackGet$1(key) {
141
- return this.__data__.get(key);
142
- }
143
- var _stackGet = stackGet$1;
144
- function stackHas$1(key) {
145
- return this.__data__.has(key);
146
- }
147
- var _stackHas = stackHas$1;
148
- var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
149
- var _freeGlobal = freeGlobal$1;
150
- var freeGlobal = _freeGlobal;
151
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
152
- var root$8 = freeGlobal || freeSelf || Function("return this")();
153
- var _root = root$8;
154
- var root$7 = _root;
155
- var Symbol$4 = root$7.Symbol;
156
- var _Symbol = Symbol$4;
157
- var Symbol$3 = _Symbol;
158
- var objectProto$5 = Object.prototype;
159
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
160
- var nativeObjectToString$1 = objectProto$5.toString;
161
- var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
162
- function getRawTag$1(value) {
163
- var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), tag = value[symToStringTag$1];
164
- try {
165
- value[symToStringTag$1] = void 0;
166
- var unmasked = true;
167
- } catch (e) {
168
- }
169
- var result = nativeObjectToString$1.call(value);
170
- if (unmasked) {
171
- if (isOwn) {
172
- value[symToStringTag$1] = tag;
173
- } else {
174
- delete value[symToStringTag$1];
175
- }
176
- }
177
- return result;
178
- }
179
- var _getRawTag = getRawTag$1;
180
- var objectProto$4 = Object.prototype;
181
- var nativeObjectToString = objectProto$4.toString;
182
- function objectToString$1(value) {
183
- return nativeObjectToString.call(value);
184
- }
185
- var _objectToString = objectToString$1;
186
- var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
187
- var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
188
- var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
189
- function baseGetTag$4(value) {
190
- if (value == null) {
191
- return value === void 0 ? undefinedTag : nullTag;
192
- }
193
- return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
194
- }
195
- var _baseGetTag = baseGetTag$4;
196
- function isObject$2(value) {
197
- var type = typeof value;
198
- return value != null && (type == "object" || type == "function");
199
- }
200
- var isObject_1 = isObject$2;
201
- var baseGetTag$3 = _baseGetTag, isObject$1 = isObject_1;
202
- var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
203
- function isFunction$1(value) {
204
- if (!isObject$1(value)) {
205
- return false;
206
- }
207
- var tag = baseGetTag$3(value);
208
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
209
- }
210
- var isFunction_1 = isFunction$1;
211
- var root$6 = _root;
212
- var coreJsData$1 = root$6["__core-js_shared__"];
213
- var _coreJsData = coreJsData$1;
214
- var coreJsData = _coreJsData;
215
- var maskSrcKey = function() {
216
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
217
- return uid ? "Symbol(src)_1." + uid : "";
218
- }();
219
- function isMasked$1(func) {
220
- return !!maskSrcKey && maskSrcKey in func;
221
- }
222
- var _isMasked = isMasked$1;
223
- var funcProto$1 = Function.prototype;
224
- var funcToString$1 = funcProto$1.toString;
225
- function toSource$2(func) {
226
- if (func != null) {
227
- try {
228
- return funcToString$1.call(func);
229
- } catch (e) {
230
- }
231
- try {
232
- return func + "";
233
- } catch (e) {
234
- }
235
- }
236
- return "";
237
- }
238
- var _toSource = toSource$2;
239
- var isFunction = isFunction_1, isMasked = _isMasked, isObject = isObject_1, toSource$1 = _toSource;
240
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
241
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
242
- var funcProto = Function.prototype, objectProto$3 = Object.prototype;
243
- var funcToString = funcProto.toString;
244
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
245
- var reIsNative = RegExp(
246
- "^" + funcToString.call(hasOwnProperty$3).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
247
- );
248
- function baseIsNative$1(value) {
249
- if (!isObject(value) || isMasked(value)) {
250
- return false;
251
- }
252
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
253
- return pattern.test(toSource$1(value));
254
- }
255
- var _baseIsNative = baseIsNative$1;
256
- function getValue$1(object, key) {
257
- return object == null ? void 0 : object[key];
258
- }
259
- var _getValue = getValue$1;
260
- var baseIsNative = _baseIsNative, getValue = _getValue;
261
- function getNative$6(object, key) {
262
- var value = getValue(object, key);
263
- return baseIsNative(value) ? value : void 0;
264
- }
265
- var _getNative = getNative$6;
266
- var getNative$5 = _getNative, root$5 = _root;
267
- var Map$3 = getNative$5(root$5, "Map");
268
- var _Map = Map$3;
269
- var getNative$4 = _getNative;
270
- var nativeCreate$4 = getNative$4(Object, "create");
271
- var _nativeCreate = nativeCreate$4;
272
- var nativeCreate$3 = _nativeCreate;
273
- function hashClear$1() {
274
- this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
275
- this.size = 0;
276
- }
277
- var _hashClear = hashClear$1;
278
- function hashDelete$1(key) {
279
- var result = this.has(key) && delete this.__data__[key];
280
- this.size -= result ? 1 : 0;
281
- return result;
282
- }
283
- var _hashDelete = hashDelete$1;
284
- var nativeCreate$2 = _nativeCreate;
285
- var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
286
- var objectProto$2 = Object.prototype;
287
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
288
- function hashGet$1(key) {
289
- var data = this.__data__;
290
- if (nativeCreate$2) {
291
- var result = data[key];
292
- return result === HASH_UNDEFINED$2 ? void 0 : result;
293
- }
294
- return hasOwnProperty$2.call(data, key) ? data[key] : void 0;
295
- }
296
- var _hashGet = hashGet$1;
297
- var nativeCreate$1 = _nativeCreate;
298
- var objectProto$1 = Object.prototype;
299
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
300
- function hashHas$1(key) {
301
- var data = this.__data__;
302
- return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
303
- }
304
- var _hashHas = hashHas$1;
305
- var nativeCreate = _nativeCreate;
306
- var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
307
- function hashSet$1(key, value) {
308
- var data = this.__data__;
309
- this.size += this.has(key) ? 0 : 1;
310
- data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
311
- return this;
312
- }
313
- var _hashSet = hashSet$1;
314
- var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
315
- function Hash$1(entries) {
316
- var index2 = -1, length = entries == null ? 0 : entries.length;
317
- this.clear();
318
- while (++index2 < length) {
319
- var entry = entries[index2];
320
- this.set(entry[0], entry[1]);
321
- }
322
- }
323
- Hash$1.prototype.clear = hashClear;
324
- Hash$1.prototype["delete"] = hashDelete;
325
- Hash$1.prototype.get = hashGet;
326
- Hash$1.prototype.has = hashHas;
327
- Hash$1.prototype.set = hashSet;
328
- var _Hash = Hash$1;
329
- var Hash = _Hash, ListCache$2 = _ListCache, Map$2 = _Map;
330
- function mapCacheClear$1() {
331
- this.size = 0;
332
- this.__data__ = {
333
- "hash": new Hash(),
334
- "map": new (Map$2 || ListCache$2)(),
335
- "string": new Hash()
336
- };
337
- }
338
- var _mapCacheClear = mapCacheClear$1;
339
- function isKeyable$1(value) {
340
- var type = typeof value;
341
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
342
- }
343
- var _isKeyable = isKeyable$1;
344
- var isKeyable = _isKeyable;
345
- function getMapData$4(map, key) {
346
- var data = map.__data__;
347
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
348
- }
349
- var _getMapData = getMapData$4;
350
- var getMapData$3 = _getMapData;
351
- function mapCacheDelete$1(key) {
352
- var result = getMapData$3(this, key)["delete"](key);
353
- this.size -= result ? 1 : 0;
354
- return result;
355
- }
356
- var _mapCacheDelete = mapCacheDelete$1;
357
- var getMapData$2 = _getMapData;
358
- function mapCacheGet$1(key) {
359
- return getMapData$2(this, key).get(key);
360
- }
361
- var _mapCacheGet = mapCacheGet$1;
362
- var getMapData$1 = _getMapData;
363
- function mapCacheHas$1(key) {
364
- return getMapData$1(this, key).has(key);
365
- }
366
- var _mapCacheHas = mapCacheHas$1;
367
- var getMapData = _getMapData;
368
- function mapCacheSet$1(key, value) {
369
- var data = getMapData(this, key), size = data.size;
370
- data.set(key, value);
371
- this.size += data.size == size ? 0 : 1;
372
- return this;
373
- }
374
- var _mapCacheSet = mapCacheSet$1;
375
- var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
376
- function MapCache$2(entries) {
377
- var index2 = -1, length = entries == null ? 0 : entries.length;
378
- this.clear();
379
- while (++index2 < length) {
380
- var entry = entries[index2];
381
- this.set(entry[0], entry[1]);
382
- }
383
- }
384
- MapCache$2.prototype.clear = mapCacheClear;
385
- MapCache$2.prototype["delete"] = mapCacheDelete;
386
- MapCache$2.prototype.get = mapCacheGet;
387
- MapCache$2.prototype.has = mapCacheHas;
388
- MapCache$2.prototype.set = mapCacheSet;
389
- var _MapCache = MapCache$2;
390
- var ListCache$1 = _ListCache, Map$1 = _Map, MapCache$1 = _MapCache;
391
- var LARGE_ARRAY_SIZE = 200;
392
- function stackSet$1(key, value) {
393
- var data = this.__data__;
394
- if (data instanceof ListCache$1) {
395
- var pairs = data.__data__;
396
- if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
397
- pairs.push([key, value]);
398
- this.size = ++data.size;
399
- return this;
400
- }
401
- data = this.__data__ = new MapCache$1(pairs);
402
- }
403
- data.set(key, value);
404
- this.size = data.size;
405
- return this;
406
- }
407
- var _stackSet = stackSet$1;
408
- var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
409
- function Stack(entries) {
410
- var data = this.__data__ = new ListCache(entries);
411
- this.size = data.size;
412
- }
413
- Stack.prototype.clear = stackClear;
414
- Stack.prototype["delete"] = stackDelete;
415
- Stack.prototype.get = stackGet;
416
- Stack.prototype.has = stackHas;
417
- Stack.prototype.set = stackSet;
418
- var _Stack = Stack;
419
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
420
- function setCacheAdd$1(value) {
421
- this.__data__.set(value, HASH_UNDEFINED);
422
- return this;
423
- }
424
- var _setCacheAdd = setCacheAdd$1;
425
- function setCacheHas$1(value) {
426
- return this.__data__.has(value);
427
- }
428
- var _setCacheHas = setCacheHas$1;
429
- var MapCache = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;
430
- function SetCache$1(values) {
431
- var index2 = -1, length = values == null ? 0 : values.length;
432
- this.__data__ = new MapCache();
433
- while (++index2 < length) {
434
- this.add(values[index2]);
435
- }
436
- }
437
- SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
438
- SetCache$1.prototype.has = setCacheHas;
439
- var _SetCache = SetCache$1;
440
- function arraySome$1(array, predicate) {
441
- var index2 = -1, length = array == null ? 0 : array.length;
442
- while (++index2 < length) {
443
- if (predicate(array[index2], index2, array)) {
444
- return true;
445
- }
446
- }
447
- return false;
448
- }
449
- var _arraySome = arraySome$1;
450
- function cacheHas$1(cache, key) {
451
- return cache.has(key);
452
- }
453
- var _cacheHas = cacheHas$1;
454
- var SetCache = _SetCache, arraySome = _arraySome, cacheHas = _cacheHas;
455
- var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
456
- function equalArrays$1(array, other, bitmask, customizer, equalFunc, stack) {
457
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, arrLength = array.length, othLength = other.length;
458
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
459
- return false;
460
- }
461
- var arrStacked = stack.get(array);
462
- var othStacked = stack.get(other);
463
- if (arrStacked && othStacked) {
464
- return arrStacked == other && othStacked == array;
465
- }
466
- var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
467
- stack.set(array, other);
468
- stack.set(other, array);
469
- while (++index2 < arrLength) {
470
- var arrValue = array[index2], othValue = other[index2];
471
- if (customizer) {
472
- var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
473
- }
474
- if (compared !== void 0) {
475
- if (compared) {
476
- continue;
477
- }
478
- result = false;
479
- break;
480
- }
481
- if (seen) {
482
- if (!arraySome(other, function(othValue2, othIndex) {
483
- if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
484
- return seen.push(othIndex);
485
- }
486
- })) {
487
- result = false;
488
- break;
489
- }
490
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
491
- result = false;
492
- break;
493
- }
494
- }
495
- stack["delete"](array);
496
- stack["delete"](other);
497
- return result;
498
- }
499
- var _equalArrays = equalArrays$1;
500
- var root$4 = _root;
501
- var Uint8Array$1 = root$4.Uint8Array;
502
- var _Uint8Array = Uint8Array$1;
503
- function mapToArray$1(map) {
504
- var index2 = -1, result = Array(map.size);
505
- map.forEach(function(value, key) {
506
- result[++index2] = [key, value];
507
- });
508
- return result;
509
- }
510
- var _mapToArray = mapToArray$1;
511
- function setToArray$1(set) {
512
- var index2 = -1, result = Array(set.size);
513
- set.forEach(function(value) {
514
- result[++index2] = value;
515
- });
516
- return result;
517
- }
518
- var _setToArray = setToArray$1;
519
- var Symbol$1 = _Symbol, Uint8Array = _Uint8Array, eq = eq_1, equalArrays = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
520
- var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
521
- var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]";
522
- var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]";
523
- var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
524
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
525
- switch (tag) {
526
- case dataViewTag$2:
527
- if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
528
- return false;
529
- }
530
- object = object.buffer;
531
- other = other.buffer;
532
- case arrayBufferTag$1:
533
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
534
- return false;
535
- }
536
- return true;
537
- case boolTag$1:
538
- case dateTag$1:
539
- case numberTag$1:
540
- return eq(+object, +other);
541
- case errorTag$1:
542
- return object.name == other.name && object.message == other.message;
543
- case regexpTag$1:
544
- case stringTag$1:
545
- return object == other + "";
546
- case mapTag$2:
547
- var convert = mapToArray;
548
- case setTag$2:
549
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
550
- convert || (convert = setToArray);
551
- if (object.size != other.size && !isPartial) {
552
- return false;
553
- }
554
- var stacked = stack.get(object);
555
- if (stacked) {
556
- return stacked == other;
557
- }
558
- bitmask |= COMPARE_UNORDERED_FLAG;
559
- stack.set(object, other);
560
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
561
- stack["delete"](object);
562
- return result;
563
- case symbolTag:
564
- if (symbolValueOf) {
565
- return symbolValueOf.call(object) == symbolValueOf.call(other);
566
- }
567
- }
568
- return false;
569
- }
570
- var _equalByTag = equalByTag;
571
- function isObjectLike$3(value) {
572
- return value != null && typeof value == "object";
573
- }
574
- var isObjectLike_1 = isObjectLike$3;
575
- var baseGetTag$2 = _baseGetTag, isObjectLike$2 = isObjectLike_1;
576
- var argsTag$1 = "[object Arguments]";
577
- function baseIsArguments$1(value) {
578
- return isObjectLike$2(value) && baseGetTag$2(value) == argsTag$1;
579
- }
580
- var _baseIsArguments = baseIsArguments$1;
581
- var baseIsArguments = _baseIsArguments, isObjectLike$1 = isObjectLike_1;
582
- var objectProto = Object.prototype;
583
- var hasOwnProperty = objectProto.hasOwnProperty;
584
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
585
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
586
- return arguments;
587
- }()) ? baseIsArguments : function(value) {
588
- return isObjectLike$1(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
589
- };
590
- var isArguments_1 = isArguments;
591
- var isBuffer = { exports: {} };
592
- function stubFalse() {
593
- return false;
594
- }
595
- var stubFalse_1 = stubFalse;
596
- isBuffer.exports;
597
- (function(module, exports) {
598
- var root2 = _root, stubFalse2 = stubFalse_1;
599
- var freeExports = exports && !exports.nodeType && exports;
600
- var freeModule = freeExports && true && module && !module.nodeType && module;
601
- var moduleExports = freeModule && freeModule.exports === freeExports;
602
- var Buffer = moduleExports ? root2.Buffer : void 0;
603
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
604
- var isBuffer2 = nativeIsBuffer || stubFalse2;
605
- module.exports = isBuffer2;
606
- })(isBuffer, isBuffer.exports);
607
- var isBufferExports = isBuffer.exports;
608
- var MAX_SAFE_INTEGER = 9007199254740991;
609
- function isLength$1(value) {
610
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
611
- }
612
- var isLength_1 = isLength$1;
613
- var baseGetTag$1 = _baseGetTag, isLength = isLength_1, isObjectLike = isObjectLike_1;
614
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag$1 = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", weakMapTag$1 = "[object WeakMap]";
615
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
616
- var typedArrayTags = {};
617
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
618
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$1] = typedArrayTags[numberTag] = typedArrayTags[objectTag$1] = typedArrayTags[regexpTag] = typedArrayTags[setTag$1] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;
619
- function baseIsTypedArray$1(value) {
620
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag$1(value)];
621
- }
622
- var _baseIsTypedArray = baseIsTypedArray$1;
623
- function baseUnary$1(func) {
624
- return function(value) {
625
- return func(value);
626
- };
627
- }
628
- var _baseUnary = baseUnary$1;
629
- var _nodeUtil = { exports: {} };
630
- _nodeUtil.exports;
631
- (function(module, exports) {
632
- var freeGlobal2 = _freeGlobal;
633
- var freeExports = exports && !exports.nodeType && exports;
634
- var freeModule = freeExports && true && module && !module.nodeType && module;
635
- var moduleExports = freeModule && freeModule.exports === freeExports;
636
- var freeProcess = moduleExports && freeGlobal2.process;
637
- var nodeUtil2 = function() {
638
- try {
639
- var types = freeModule && freeModule.require && freeModule.require("util").types;
640
- if (types) {
641
- return types;
642
- }
643
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
644
- } catch (e) {
645
- }
646
- }();
647
- module.exports = nodeUtil2;
648
- })(_nodeUtil, _nodeUtil.exports);
649
- var _nodeUtilExports = _nodeUtil.exports;
650
- var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
651
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
652
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
653
- var isTypedArray_1 = isTypedArray;
654
- var getNative$3 = _getNative, root$3 = _root;
655
- var DataView$1 = getNative$3(root$3, "DataView");
656
- var _DataView = DataView$1;
657
- var getNative$2 = _getNative, root$2 = _root;
658
- var Promise$2 = getNative$2(root$2, "Promise");
659
- var _Promise = Promise$2;
660
- var getNative$1 = _getNative, root$1 = _root;
661
- var Set$1 = getNative$1(root$1, "Set");
662
- var _Set = Set$1;
663
- var getNative = _getNative, root = _root;
664
- var WeakMap$1 = getNative(root, "WeakMap");
665
- var _WeakMap = WeakMap$1;
666
- var DataView = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag = _baseGetTag, toSource = _toSource;
667
- var mapTag = "[object Map]", objectTag = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
668
- var dataViewTag = "[object DataView]";
669
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
670
- var getTag = baseGetTag;
671
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
672
- getTag = function(value) {
673
- var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
674
- if (ctorString) {
675
- switch (ctorString) {
676
- case dataViewCtorString:
677
- return dataViewTag;
678
- case mapCtorString:
679
- return mapTag;
680
- case promiseCtorString:
681
- return promiseTag;
682
- case setCtorString:
683
- return setTag;
684
- case weakMapCtorString:
685
- return weakMapTag;
686
- }
687
- }
688
- return result;
689
- };
690
- }
691
- var _getTag = getTag;
692
- const Initializer = ({ setPlugin }) => {
693
- const ref = useRef(setPlugin);
694
- useEffect(() => {
695
- ref.current(PLUGIN_ID);
696
- }, []);
697
- return null;
698
- };
699
- const PluginIcon = () => /* @__PURE__ */ jsx(Plant, {});
700
- const prefixPluginTranslations = (trad, pluginId) => {
701
- return Object.keys(trad).reduce((acc, current) => {
702
- acc[`${pluginId}.${current}`] = trad[current];
703
- return acc;
704
- }, {});
705
- };
706
- const PERMISSIONS = {
707
- // This permission regards the main component (App) and is used to tell
708
- // If the plugin link should be displayed in the menu
709
- // And also if the plugin is accessible. This use case is found when a user types the url of the
710
- // plugin directly in the browser
711
- "menu-link": [{ action: "plugin::firebase-authentication.menu-link", subject: null }]
712
- };
713
- const getTranslation = (id) => `${PLUGIN_ID}.${id}`;
714
- if (typeof document !== "undefined") {
715
- const style = document.createElement("style");
716
- style.textContent = `
717
- html, body {
718
- overflow-x: hidden !important;
719
- overflow-y: hidden !important;
720
- max-width: 100vw !important;
721
- height: 100vh !important;
722
- }
723
- #strapi {
724
- overflow-x: hidden !important;
725
- overflow-y: auto !important;
726
- max-width: 100vw !important;
727
- height: 100vh !important;
728
- }
729
- `;
730
- document.head.appendChild(style);
731
- }
732
- const index = {
733
- register(app) {
734
- app.addMenuLink({
735
- to: `plugins/${PLUGIN_ID}`,
736
- icon: PluginIcon,
737
- intlLabel: {
738
- id: `${PLUGIN_ID}.page.title`,
739
- defaultMessage: PLUGIN_ID
740
- },
741
- Component: () => import("./App-CQ9ehArz.mjs").then((mod) => ({
742
- default: mod.App
743
- })),
744
- permissions: PERMISSIONS["menu-link"]
745
- });
746
- app.createSettingSection(
747
- {
748
- id: PLUGIN_ID,
749
- intlLabel: {
750
- id: getTranslation("SettingsNav.section-label"),
751
- defaultMessage: "Firebase-Authentication Plugin"
752
- }
753
- },
754
- [
755
- {
756
- intlLabel: {
757
- id: getTranslation("Settings.firebase-authentication.plugin.title"),
758
- defaultMessage: "Settings"
759
- },
760
- id: "settings",
761
- to: `/settings/${PLUGIN_ID}`,
762
- async Component() {
763
- const component = await import("./index-0tTyhxbb.mjs");
764
- return component.default;
765
- },
766
- permissions: PERMISSIONS["menu-link"]
767
- }
768
- ]
769
- );
770
- app.registerPlugin({
771
- id: PLUGIN_ID,
772
- initializer: Initializer,
773
- isReady: false,
774
- name: PLUGIN_ID
775
- });
776
- },
777
- async registerTrads({ locales }) {
778
- const importedTrads = await Promise.all(
779
- locales.map((locale) => {
780
- return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-D32b9qK-.mjs") }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
781
- return {
782
- data: prefixPluginTranslations(data, PLUGIN_ID),
783
- locale
784
- };
785
- }).catch(() => {
786
- return {
787
- data: {},
788
- locale
789
- };
790
- });
791
- })
792
- );
793
- return Promise.resolve(importedTrads);
794
- }
795
- };
796
- export {
797
- PLUGIN_ID as P,
798
- _getTag as _,
799
- isBufferExports as a,
800
- isTypedArray_1 as b,
801
- isLength_1 as c,
802
- isFunction_1 as d,
803
- _Stack as e,
804
- _equalArrays as f,
805
- _equalByTag as g,
806
- isObjectLike_1 as h,
807
- isArguments_1 as i,
808
- getDefaultExportFromCjs as j,
809
- _baseGetTag as k,
810
- _MapCache as l,
811
- _Symbol as m,
812
- getAugmentedNamespace as n,
813
- commonjsGlobal as o,
814
- index as p
815
- };