strapi-plugin-firebase-authentication 1.1.11 → 1.1.12

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.
@@ -7,13 +7,13 @@ const reactTooltip = require("@radix-ui/react-tooltip");
7
7
  const React = require("react");
8
8
  const designSystem = require("@strapi/design-system");
9
9
  const reactIntl = require("react-intl");
10
- const index = require("./index-BnT1fFPr.js");
10
+ const index = require("./index-DlPxMuSK.js");
11
11
  const icons = require("@strapi/icons");
12
12
  const styled = require("styled-components");
13
13
  const rx = require("react-icons/rx");
14
14
  const ai = require("react-icons/ai");
15
15
  const md = require("react-icons/md");
16
- const api = require("./api-DR4wmAFN.js");
16
+ const api = require("./api-DQCdqlCd.js");
17
17
  const PhoneInputModule = require("react-phone-input-2");
18
18
  require("react-phone-input-2/lib/style.css");
19
19
  const validator = require("validator");
@@ -2999,7 +2999,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2999
2999
  var ys = arrObjKeys(obj, inspect2);
3000
3000
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
3001
3001
  var protoTag = obj instanceof Object ? "" : "null prototype";
3002
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
3002
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
3003
3003
  var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
3004
3004
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
3005
3005
  if (ys.length === 0) {
@@ -3024,25 +3024,25 @@ function canTrustToString(obj) {
3024
3024
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
3025
3025
  }
3026
3026
  function isArray$3(obj) {
3027
- return toStr(obj) === "[object Array]" && canTrustToString(obj);
3027
+ return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
3028
3028
  }
3029
3029
  function isDate(obj) {
3030
- return toStr(obj) === "[object Date]" && canTrustToString(obj);
3030
+ return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
3031
3031
  }
3032
3032
  function isRegExp$1(obj) {
3033
- return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
3033
+ return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
3034
3034
  }
3035
3035
  function isError(obj) {
3036
- return toStr(obj) === "[object Error]" && canTrustToString(obj);
3036
+ return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
3037
3037
  }
3038
3038
  function isString(obj) {
3039
- return toStr(obj) === "[object String]" && canTrustToString(obj);
3039
+ return toStr$1(obj) === "[object String]" && canTrustToString(obj);
3040
3040
  }
3041
3041
  function isNumber(obj) {
3042
- return toStr(obj) === "[object Number]" && canTrustToString(obj);
3042
+ return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
3043
3043
  }
3044
3044
  function isBoolean(obj) {
3045
- return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
3045
+ return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
3046
3046
  }
3047
3047
  function isSymbol(obj) {
3048
3048
  if (hasShammedSymbols) {
@@ -3078,7 +3078,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
3078
3078
  function has$3(obj, key) {
3079
3079
  return hasOwn$1.call(obj, key);
3080
3080
  }
3081
- function toStr(obj) {
3081
+ function toStr$1(obj) {
3082
3082
  return objectToString.call(obj);
3083
3083
  }
3084
3084
  function nameOf(f) {
@@ -3387,7 +3387,7 @@ var syntax = SyntaxError;
3387
3387
  var uri = URIError;
3388
3388
  var abs$1 = Math.abs;
3389
3389
  var floor$1 = Math.floor;
3390
- var max$1 = Math.max;
3390
+ var max$2 = Math.max;
3391
3391
  var min$1 = Math.min;
3392
3392
  var pow$1 = Math.pow;
3393
3393
  var round$1 = Math.round;
@@ -3516,99 +3516,78 @@ function requireObject_getPrototypeOf() {
3516
3516
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
3517
3517
  return Object_getPrototypeOf;
3518
3518
  }
3519
- var implementation;
3520
- var hasRequiredImplementation;
3521
- function requireImplementation() {
3522
- if (hasRequiredImplementation) return implementation;
3523
- hasRequiredImplementation = 1;
3524
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3525
- var toStr2 = Object.prototype.toString;
3526
- var max2 = Math.max;
3527
- var funcType = "[object Function]";
3528
- var concatty = function concatty2(a3, b2) {
3529
- var arr = [];
3530
- for (var i2 = 0; i2 < a3.length; i2 += 1) {
3531
- arr[i2] = a3[i2];
3532
- }
3533
- for (var j = 0; j < b2.length; j += 1) {
3534
- arr[j + a3.length] = b2[j];
3535
- }
3536
- return arr;
3537
- };
3538
- var slicy = function slicy2(arrLike, offset) {
3539
- var arr = [];
3540
- for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
3541
- arr[j] = arrLike[i2];
3542
- }
3543
- return arr;
3544
- };
3545
- var joiny = function(arr, joiner) {
3546
- var str = "";
3547
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
3548
- str += arr[i2];
3549
- if (i2 + 1 < arr.length) {
3550
- str += joiner;
3551
- }
3519
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3520
+ var toStr = Object.prototype.toString;
3521
+ var max$1 = Math.max;
3522
+ var funcType = "[object Function]";
3523
+ var concatty = function concatty2(a3, b2) {
3524
+ var arr = [];
3525
+ for (var i2 = 0; i2 < a3.length; i2 += 1) {
3526
+ arr[i2] = a3[i2];
3527
+ }
3528
+ for (var j = 0; j < b2.length; j += 1) {
3529
+ arr[j + a3.length] = b2[j];
3530
+ }
3531
+ return arr;
3532
+ };
3533
+ var slicy = function slicy2(arrLike, offset) {
3534
+ var arr = [];
3535
+ for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
3536
+ arr[j] = arrLike[i2];
3537
+ }
3538
+ return arr;
3539
+ };
3540
+ var joiny = function(arr, joiner) {
3541
+ var str = "";
3542
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
3543
+ str += arr[i2];
3544
+ if (i2 + 1 < arr.length) {
3545
+ str += joiner;
3552
3546
  }
3553
- return str;
3554
- };
3555
- implementation = function bind2(that) {
3556
- var target = this;
3557
- if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
3558
- throw new TypeError(ERROR_MESSAGE + target);
3559
- }
3560
- var args = slicy(arguments, 1);
3561
- var bound;
3562
- var binder = function() {
3563
- if (this instanceof bound) {
3564
- var result = target.apply(
3565
- this,
3566
- concatty(args, arguments)
3567
- );
3568
- if (Object(result) === result) {
3569
- return result;
3570
- }
3571
- return this;
3572
- }
3573
- return target.apply(
3574
- that,
3547
+ }
3548
+ return str;
3549
+ };
3550
+ var implementation$1 = function bind(that) {
3551
+ var target = this;
3552
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
3553
+ throw new TypeError(ERROR_MESSAGE + target);
3554
+ }
3555
+ var args = slicy(arguments, 1);
3556
+ var bound;
3557
+ var binder = function() {
3558
+ if (this instanceof bound) {
3559
+ var result = target.apply(
3560
+ this,
3575
3561
  concatty(args, arguments)
3576
3562
  );
3577
- };
3578
- var boundLength = max2(0, target.length - args.length);
3579
- var boundArgs = [];
3580
- for (var i2 = 0; i2 < boundLength; i2++) {
3581
- boundArgs[i2] = "$" + i2;
3582
- }
3583
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3584
- if (target.prototype) {
3585
- var Empty = function Empty2() {
3586
- };
3587
- Empty.prototype = target.prototype;
3588
- bound.prototype = new Empty();
3589
- Empty.prototype = null;
3563
+ if (Object(result) === result) {
3564
+ return result;
3565
+ }
3566
+ return this;
3590
3567
  }
3591
- return bound;
3568
+ return target.apply(
3569
+ that,
3570
+ concatty(args, arguments)
3571
+ );
3592
3572
  };
3593
- return implementation;
3594
- }
3595
- var functionBind;
3596
- var hasRequiredFunctionBind;
3597
- function requireFunctionBind() {
3598
- if (hasRequiredFunctionBind) return functionBind;
3599
- hasRequiredFunctionBind = 1;
3600
- var implementation2 = requireImplementation();
3601
- functionBind = Function.prototype.bind || implementation2;
3602
- return functionBind;
3603
- }
3604
- var functionCall;
3605
- var hasRequiredFunctionCall;
3606
- function requireFunctionCall() {
3607
- if (hasRequiredFunctionCall) return functionCall;
3608
- hasRequiredFunctionCall = 1;
3609
- functionCall = Function.prototype.call;
3610
- return functionCall;
3611
- }
3573
+ var boundLength = max$1(0, target.length - args.length);
3574
+ var boundArgs = [];
3575
+ for (var i2 = 0; i2 < boundLength; i2++) {
3576
+ boundArgs[i2] = "$" + i2;
3577
+ }
3578
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3579
+ if (target.prototype) {
3580
+ var Empty = function Empty2() {
3581
+ };
3582
+ Empty.prototype = target.prototype;
3583
+ bound.prototype = new Empty();
3584
+ Empty.prototype = null;
3585
+ }
3586
+ return bound;
3587
+ };
3588
+ var implementation = implementation$1;
3589
+ var functionBind = Function.prototype.bind || implementation;
3590
+ var functionCall = Function.prototype.call;
3612
3591
  var functionApply;
3613
3592
  var hasRequiredFunctionApply;
3614
3593
  function requireFunctionApply() {
@@ -3618,14 +3597,14 @@ function requireFunctionApply() {
3618
3597
  return functionApply;
3619
3598
  }
3620
3599
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
3621
- var bind$2 = requireFunctionBind();
3600
+ var bind$2 = functionBind;
3622
3601
  var $apply$1 = requireFunctionApply();
3623
- var $call$2 = requireFunctionCall();
3602
+ var $call$2 = functionCall;
3624
3603
  var $reflectApply = reflectApply;
3625
3604
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
3626
- var bind$1 = requireFunctionBind();
3605
+ var bind$1 = functionBind;
3627
3606
  var $TypeError$4 = type;
3628
- var $call$1 = requireFunctionCall();
3607
+ var $call$1 = functionCall;
3629
3608
  var $actualApply = actualApply;
3630
3609
  var callBindApplyHelpers = function callBindBasic(args) {
3631
3610
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -3691,8 +3670,8 @@ function requireHasown() {
3691
3670
  hasRequiredHasown = 1;
3692
3671
  var call = Function.prototype.call;
3693
3672
  var $hasOwn = Object.prototype.hasOwnProperty;
3694
- var bind2 = requireFunctionBind();
3695
- hasown = bind2.call(call, $hasOwn);
3673
+ var bind3 = functionBind;
3674
+ hasown = bind3.call(call, $hasOwn);
3696
3675
  return hasown;
3697
3676
  }
3698
3677
  var undefined$1;
@@ -3706,7 +3685,7 @@ var $TypeError$3 = type;
3706
3685
  var $URIError = uri;
3707
3686
  var abs = abs$1;
3708
3687
  var floor = floor$1;
3709
- var max = max$1;
3688
+ var max = max$2;
3710
3689
  var min = min$1;
3711
3690
  var pow = pow$1;
3712
3691
  var round = round$1;
@@ -3740,7 +3719,7 @@ var getProto = requireGetProto();
3740
3719
  var $ObjectGPO = requireObject_getPrototypeOf();
3741
3720
  var $ReflectGPO = requireReflect_getPrototypeOf();
3742
3721
  var $apply = requireFunctionApply();
3743
- var $call = requireFunctionCall();
3722
+ var $call = functionCall;
3744
3723
  var needsEval = {};
3745
3724
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
3746
3725
  var INTRINSICS = {
@@ -3911,13 +3890,13 @@ var LEGACY_ALIASES = {
3911
3890
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3912
3891
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3913
3892
  };
3914
- var bind = requireFunctionBind();
3893
+ var bind2 = functionBind;
3915
3894
  var hasOwn = requireHasown();
3916
- var $concat = bind.call($call, Array.prototype.concat);
3917
- var $spliceApply = bind.call($apply, Array.prototype.splice);
3918
- var $replace = bind.call($call, String.prototype.replace);
3919
- var $strSlice = bind.call($call, String.prototype.slice);
3920
- var $exec = bind.call($call, RegExp.prototype.exec);
3895
+ var $concat = bind2.call($call, Array.prototype.concat);
3896
+ var $spliceApply = bind2.call($apply, Array.prototype.splice);
3897
+ var $replace = bind2.call($call, String.prototype.replace);
3898
+ var $strSlice = bind2.call($call, String.prototype.slice);
3899
+ var $exec = bind2.call($call, RegExp.prototype.exec);
3921
3900
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
3922
3901
  var reEscapeChar = /\\(\\)?/g;
3923
3902
  var stringToPath = function stringToPath2(string) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const admin = require("@strapi/strapi/admin");
3
- const index = require("./index-BnT1fFPr.js");
3
+ const index = require("./index-DlPxMuSK.js");
4
4
  const saveFirebaseConfig = async (json, firebaseWebApiKey, passwordConfig) => {
5
5
  const url = `/${index.PLUGIN_ID}/settings/firebase-config`;
6
6
  const { post } = admin.getFetchClient();
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const designSystem = require("@strapi/design-system");
6
6
  const admin = require("@strapi/strapi/admin");
7
- const api = require("./api-DR4wmAFN.js");
7
+ const api = require("./api-DQCdqlCd.js");
8
8
  const reactRouterDom = require("react-router-dom");
9
9
  function SettingsPage() {
10
10
  const { toggleNotification } = admin.useNotification();
@@ -739,7 +739,7 @@ const index = {
739
739
  id: `${PLUGIN_ID}.page.title`,
740
740
  defaultMessage: PLUGIN_ID
741
741
  },
742
- Component: () => Promise.resolve().then(() => require("./App-DZQe17x8.js")).then((mod) => ({
742
+ Component: () => Promise.resolve().then(() => require("./App-BqjE8BHb.js")).then((mod) => ({
743
743
  default: mod.App
744
744
  })),
745
745
  permissions: PERMISSIONS["menu-link"]
@@ -761,7 +761,7 @@ const index = {
761
761
  id: "settings",
762
762
  to: `/settings/${PLUGIN_ID}`,
763
763
  async Component() {
764
- const component = await Promise.resolve().then(() => require("./index-dVTLVmwU.js"));
764
+ const component = await Promise.resolve().then(() => require("./index-C4t4JZZ_.js"));
765
765
  return component.default;
766
766
  },
767
767
  permissions: PERMISSIONS["menu-link"]
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-BnT1fFPr.js");
2
+ const index = require("../_chunks/index-DlPxMuSK.js");
3
3
  require("react/jsx-runtime");
4
4
  require("@strapi/strapi/admin");
5
5
  require("@strapi/design-system");