strapi-plugin-firebase-authentication 1.1.9 → 1.1.11

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-DHMYqfl3.js");
10
+ const index = require("./index-BnT1fFPr.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-DzbiYzK4.js");
16
+ const api = require("./api-DR4wmAFN.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");
@@ -2405,31 +2405,32 @@ const DeleteAccount = ({
2405
2405
  /* @__PURE__ */ jsxRuntime.jsx(icons.WarningCircle, { fill: "danger700", width: "20px", height: "20px" }),
2406
2406
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "danger700", children: "After you delete an account, it's permanently deleted. Accounts cannot be undeleted." })
2407
2407
  ] }),
2408
- isSingleRecord && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2409
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2410
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", children: "User account" }),
2411
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: email })
2412
- ] }),
2413
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2414
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: "Delete user from:" }),
2415
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "row", alignItems: "center", gap: 4, children: [
2416
- /* @__PURE__ */ jsxRuntime.jsx(
2417
- designSystem.Checkbox,
2418
- {
2419
- onCheckedChange: (checked) => setIsStrapiIncluded(checked === true),
2420
- checked: isStrapiIncluded,
2421
- children: "Strapi"
2422
- }
2423
- ),
2424
- /* @__PURE__ */ jsxRuntime.jsx(
2425
- designSystem.Checkbox,
2426
- {
2427
- onCheckedChange: (checked) => setIsFirebaseIncluded(checked === true),
2428
- checked: isFirebaseIncluded,
2429
- children: "Firebase"
2430
- }
2431
- )
2432
- ] })
2408
+ isSingleRecord ? /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2409
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", children: "User account" }),
2410
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: email })
2411
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2412
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "sigma", children: "Bulk delete operation" }),
2413
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: "You are about to delete multiple user accounts" })
2414
+ ] }),
2415
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
2416
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: "Delete user from:" }),
2417
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "row", alignItems: "center", gap: 4, children: [
2418
+ /* @__PURE__ */ jsxRuntime.jsx(
2419
+ designSystem.Checkbox,
2420
+ {
2421
+ onCheckedChange: (checked) => setIsStrapiIncluded(checked === true),
2422
+ checked: isStrapiIncluded,
2423
+ children: "Strapi"
2424
+ }
2425
+ ),
2426
+ /* @__PURE__ */ jsxRuntime.jsx(
2427
+ designSystem.Checkbox,
2428
+ {
2429
+ onCheckedChange: (checked) => setIsFirebaseIncluded(checked === true),
2430
+ checked: isFirebaseIncluded,
2431
+ children: "Firebase"
2432
+ }
2433
+ )
2433
2434
  ] })
2434
2435
  ] })
2435
2436
  ] }) }),
@@ -2531,7 +2532,15 @@ const FirebaseTable = ({
2531
2532
  const sort = query?.sort ?? "";
2532
2533
  const [sortBy, sortOrder] = sort.split(":");
2533
2534
  const handleBulkDelete = async (isStrapiIncluded, isFirebaseIncluded) => {
2534
- await onConfirmDeleteAll(selectedArray);
2535
+ let destination = null;
2536
+ if (isStrapiIncluded && isFirebaseIncluded) {
2537
+ destination = null;
2538
+ } else if (isStrapiIncluded) {
2539
+ destination = "strapi";
2540
+ } else if (isFirebaseIncluded) {
2541
+ destination = "firebase";
2542
+ }
2543
+ await onConfirmDeleteAll(selectedArray, destination);
2535
2544
  clearSelection();
2536
2545
  setShowBulkDeleteDialog(false);
2537
2546
  };
@@ -2655,7 +2664,7 @@ const fetchUsers = async (query = {}) => {
2655
2664
  return users;
2656
2665
  };
2657
2666
  const createUser = async (userPayload) => {
2658
- const url = `${index.PLUGIN_ID}/users`;
2667
+ const url = `/${index.PLUGIN_ID}/users`;
2659
2668
  try {
2660
2669
  const { post } = admin.getFetchClient();
2661
2670
  const { data: user } = await post(url, userPayload);
@@ -2665,7 +2674,7 @@ const createUser = async (userPayload) => {
2665
2674
  }
2666
2675
  };
2667
2676
  const fetchUserByID = async (userID) => {
2668
- const url = `${index.PLUGIN_ID}/users/${userID}`;
2677
+ const url = `/${index.PLUGIN_ID}/users/${userID}`;
2669
2678
  try {
2670
2679
  const { get: get2 } = admin.getFetchClient();
2671
2680
  const { data: user } = await get2(url);
@@ -2675,7 +2684,7 @@ const fetchUserByID = async (userID) => {
2675
2684
  }
2676
2685
  };
2677
2686
  const deleteUser = async (idToDelete, destination) => {
2678
- const url = `${index.PLUGIN_ID}/users/${idToDelete}${destination ? `?destination=${destination}` : ""}`;
2687
+ const url = `/${index.PLUGIN_ID}/users/${idToDelete}${destination ? `?destination=${destination}` : ""}`;
2679
2688
  try {
2680
2689
  const { del } = admin.getFetchClient();
2681
2690
  const { data: users } = await del(url);
@@ -2685,19 +2694,19 @@ const deleteUser = async (idToDelete, destination) => {
2685
2694
  }
2686
2695
  };
2687
2696
  const updateUser = async (idToUpdate, payload) => {
2688
- const url = `${index.PLUGIN_ID}/users/${idToUpdate}`;
2697
+ const url = `/${index.PLUGIN_ID}/users/${idToUpdate}`;
2689
2698
  const { put } = admin.getFetchClient();
2690
2699
  const { data: user } = await put(url, payload);
2691
2700
  return user;
2692
2701
  };
2693
2702
  const resetUserPassword = async (idToUpdate, payload) => {
2694
- const url = `${index.PLUGIN_ID}/users/resetPassword/${idToUpdate}`;
2703
+ const url = `/${index.PLUGIN_ID}/users/resetPassword/${idToUpdate}`;
2695
2704
  const { put } = admin.getFetchClient();
2696
2705
  const { data: user } = await put(url, payload);
2697
2706
  return user;
2698
2707
  };
2699
2708
  const sendResetEmail = async (userId) => {
2700
- const url = `${index.PLUGIN_ID}/users/sendResetEmail/${userId}`;
2709
+ const url = `/${index.PLUGIN_ID}/users/sendResetEmail/${userId}`;
2701
2710
  const { put } = admin.getFetchClient();
2702
2711
  const { data: result } = await put(url, {});
2703
2712
  return result;
@@ -2990,7 +2999,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2990
2999
  var ys = arrObjKeys(obj, inspect2);
2991
3000
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2992
3001
  var protoTag = obj instanceof Object ? "" : "null prototype";
2993
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
3002
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
2994
3003
  var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
2995
3004
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
2996
3005
  if (ys.length === 0) {
@@ -3015,25 +3024,25 @@ function canTrustToString(obj) {
3015
3024
  return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
3016
3025
  }
3017
3026
  function isArray$3(obj) {
3018
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
3027
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
3019
3028
  }
3020
3029
  function isDate(obj) {
3021
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
3030
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
3022
3031
  }
3023
3032
  function isRegExp$1(obj) {
3024
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
3033
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
3025
3034
  }
3026
3035
  function isError(obj) {
3027
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
3036
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
3028
3037
  }
3029
3038
  function isString(obj) {
3030
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
3039
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
3031
3040
  }
3032
3041
  function isNumber(obj) {
3033
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
3042
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
3034
3043
  }
3035
3044
  function isBoolean(obj) {
3036
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
3045
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
3037
3046
  }
3038
3047
  function isSymbol(obj) {
3039
3048
  if (hasShammedSymbols) {
@@ -3069,7 +3078,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
3069
3078
  function has$3(obj, key) {
3070
3079
  return hasOwn$1.call(obj, key);
3071
3080
  }
3072
- function toStr$1(obj) {
3081
+ function toStr(obj) {
3073
3082
  return objectToString.call(obj);
3074
3083
  }
3075
3084
  function nameOf(f) {
@@ -3378,7 +3387,7 @@ var syntax = SyntaxError;
3378
3387
  var uri = URIError;
3379
3388
  var abs$1 = Math.abs;
3380
3389
  var floor$1 = Math.floor;
3381
- var max$2 = Math.max;
3390
+ var max$1 = Math.max;
3382
3391
  var min$1 = Math.min;
3383
3392
  var pow$1 = Math.pow;
3384
3393
  var round$1 = Math.round;
@@ -3507,78 +3516,99 @@ function requireObject_getPrototypeOf() {
3507
3516
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
3508
3517
  return Object_getPrototypeOf;
3509
3518
  }
3510
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3511
- var toStr = Object.prototype.toString;
3512
- var max$1 = Math.max;
3513
- var funcType = "[object Function]";
3514
- var concatty = function concatty2(a3, b2) {
3515
- var arr = [];
3516
- for (var i2 = 0; i2 < a3.length; i2 += 1) {
3517
- arr[i2] = a3[i2];
3518
- }
3519
- for (var j = 0; j < b2.length; j += 1) {
3520
- arr[j + a3.length] = b2[j];
3521
- }
3522
- return arr;
3523
- };
3524
- var slicy = function slicy2(arrLike, offset) {
3525
- var arr = [];
3526
- for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
3527
- arr[j] = arrLike[i2];
3528
- }
3529
- return arr;
3530
- };
3531
- var joiny = function(arr, joiner) {
3532
- var str = "";
3533
- for (var i2 = 0; i2 < arr.length; i2 += 1) {
3534
- str += arr[i2];
3535
- if (i2 + 1 < arr.length) {
3536
- str += joiner;
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];
3537
3542
  }
3538
- }
3539
- return str;
3540
- };
3541
- var implementation$1 = function bind(that) {
3542
- var target = this;
3543
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
3544
- throw new TypeError(ERROR_MESSAGE + target);
3545
- }
3546
- var args = slicy(arguments, 1);
3547
- var bound;
3548
- var binder = function() {
3549
- if (this instanceof bound) {
3550
- var result = target.apply(
3551
- this,
3552
- concatty(args, arguments)
3553
- );
3554
- if (Object(result) === result) {
3555
- return result;
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;
3556
3551
  }
3557
- return this;
3558
3552
  }
3559
- return target.apply(
3560
- that,
3561
- concatty(args, arguments)
3562
- );
3553
+ return str;
3563
3554
  };
3564
- var boundLength = max$1(0, target.length - args.length);
3565
- var boundArgs = [];
3566
- for (var i2 = 0; i2 < boundLength; i2++) {
3567
- boundArgs[i2] = "$" + i2;
3568
- }
3569
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3570
- if (target.prototype) {
3571
- var Empty = function Empty2() {
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,
3575
+ concatty(args, arguments)
3576
+ );
3572
3577
  };
3573
- Empty.prototype = target.prototype;
3574
- bound.prototype = new Empty();
3575
- Empty.prototype = null;
3576
- }
3577
- return bound;
3578
- };
3579
- var implementation = implementation$1;
3580
- var functionBind = Function.prototype.bind || implementation;
3581
- var functionCall = Function.prototype.call;
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;
3590
+ }
3591
+ return bound;
3592
+ };
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
+ }
3582
3612
  var functionApply;
3583
3613
  var hasRequiredFunctionApply;
3584
3614
  function requireFunctionApply() {
@@ -3588,14 +3618,14 @@ function requireFunctionApply() {
3588
3618
  return functionApply;
3589
3619
  }
3590
3620
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
3591
- var bind$2 = functionBind;
3621
+ var bind$2 = requireFunctionBind();
3592
3622
  var $apply$1 = requireFunctionApply();
3593
- var $call$2 = functionCall;
3623
+ var $call$2 = requireFunctionCall();
3594
3624
  var $reflectApply = reflectApply;
3595
3625
  var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
3596
- var bind$1 = functionBind;
3626
+ var bind$1 = requireFunctionBind();
3597
3627
  var $TypeError$4 = type;
3598
- var $call$1 = functionCall;
3628
+ var $call$1 = requireFunctionCall();
3599
3629
  var $actualApply = actualApply;
3600
3630
  var callBindApplyHelpers = function callBindBasic(args) {
3601
3631
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -3661,8 +3691,8 @@ function requireHasown() {
3661
3691
  hasRequiredHasown = 1;
3662
3692
  var call = Function.prototype.call;
3663
3693
  var $hasOwn = Object.prototype.hasOwnProperty;
3664
- var bind3 = functionBind;
3665
- hasown = bind3.call(call, $hasOwn);
3694
+ var bind2 = requireFunctionBind();
3695
+ hasown = bind2.call(call, $hasOwn);
3666
3696
  return hasown;
3667
3697
  }
3668
3698
  var undefined$1;
@@ -3676,7 +3706,7 @@ var $TypeError$3 = type;
3676
3706
  var $URIError = uri;
3677
3707
  var abs = abs$1;
3678
3708
  var floor = floor$1;
3679
- var max = max$2;
3709
+ var max = max$1;
3680
3710
  var min = min$1;
3681
3711
  var pow = pow$1;
3682
3712
  var round = round$1;
@@ -3710,7 +3740,7 @@ var getProto = requireGetProto();
3710
3740
  var $ObjectGPO = requireObject_getPrototypeOf();
3711
3741
  var $ReflectGPO = requireReflect_getPrototypeOf();
3712
3742
  var $apply = requireFunctionApply();
3713
- var $call = functionCall;
3743
+ var $call = requireFunctionCall();
3714
3744
  var needsEval = {};
3715
3745
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
3716
3746
  var INTRINSICS = {
@@ -3881,13 +3911,13 @@ var LEGACY_ALIASES = {
3881
3911
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3882
3912
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3883
3913
  };
3884
- var bind2 = functionBind;
3914
+ var bind = requireFunctionBind();
3885
3915
  var hasOwn = requireHasown();
3886
- var $concat = bind2.call($call, Array.prototype.concat);
3887
- var $spliceApply = bind2.call($apply, Array.prototype.splice);
3888
- var $replace = bind2.call($call, String.prototype.replace);
3889
- var $strSlice = bind2.call($call, String.prototype.slice);
3890
- var $exec = bind2.call($call, RegExp.prototype.exec);
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);
3891
3921
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
3892
3922
  var reEscapeChar = /\\(\\)?/g;
3893
3923
  var stringToPath = function stringToPath2(string) {
@@ -5159,8 +5189,8 @@ function ListView({ data, meta }) {
5159
5189
  }
5160
5190
  }, [fetchPaginatedUsers, toggleNotification, formatMessage]);
5161
5191
  const handleDeleteAll = React.useCallback(
5162
- async (idsToDelete) => {
5163
- await Promise.all(idsToDelete.map((id) => deleteUser(id, null)));
5192
+ async (idsToDelete, destination = null) => {
5193
+ await Promise.all(idsToDelete.map((id) => deleteUser(id, destination)));
5164
5194
  await fetchData();
5165
5195
  },
5166
5196
  [fetchData]
@@ -5445,16 +5475,17 @@ const StyledPhoneInputWrapper = styled__default.default.div`
5445
5475
 
5446
5476
  /* Flag dropdown button styles */
5447
5477
  .flag-dropdown {
5448
- background: transparent;
5478
+ background: transparent !important;
5449
5479
  border: none;
5450
5480
  border-right: none;
5451
5481
 
5452
5482
  &.open {
5483
+ background: transparent !important;
5453
5484
  z-index: 1001;
5454
5485
  }
5455
5486
 
5456
5487
  .selected-flag {
5457
- padding: 0 0 0 0.75rem;
5488
+ padding: 0 0.5rem 0 1rem;
5458
5489
  height: 40px;
5459
5490
  display: flex;
5460
5491
  align-items: center;
@@ -5468,8 +5499,26 @@ const StyledPhoneInputWrapper = styled__default.default.div`
5468
5499
  margin-left: 8px;
5469
5500
  }
5470
5501
 
5471
- &.open .arrow {
5472
- border-top-color: ${({ theme }) => theme.colors.neutral800};
5502
+ /* Fix flag background in all interactive states */
5503
+ &:hover,
5504
+ &:focus,
5505
+ &:active,
5506
+ &.open {
5507
+ background: transparent;
5508
+ background-color: transparent;
5509
+
5510
+ .arrow {
5511
+ border-top-color: ${({ theme }) => theme.colors.neutral800};
5512
+ }
5513
+
5514
+ .flag {
5515
+ background-color: transparent;
5516
+ }
5517
+ }
5518
+
5519
+ /* Fix flag background flash on initial load */
5520
+ .flag {
5521
+ background-color: transparent;
5473
5522
  }
5474
5523
  }
5475
5524
  }
@@ -5923,10 +5972,13 @@ const EditUserForm = ({ data }) => {
5923
5972
  setIsLoading(true);
5924
5973
  try {
5925
5974
  const updatedUser = await updateUser(userData.uid, userData);
5926
- if (updatedUser[0]?.status === "rejected") {
5927
- throw new Error("Error updating user");
5975
+ const result = updatedUser[0];
5976
+ if (result?.status === "rejected") {
5977
+ const errorReason = result.reason;
5978
+ const errorMessage = errorReason?.message || (errorReason?.code ? `Firebase error: ${errorReason.code}` : null) || "Error updating user";
5979
+ throw new Error(errorMessage);
5928
5980
  }
5929
- setUserData(updatedUser[0].value);
5981
+ setUserData(result.value);
5930
5982
  setIsLoading(false);
5931
5983
  toggleNotification({
5932
5984
  type: "success",
@@ -5934,9 +5986,10 @@ const EditUserForm = ({ data }) => {
5934
5986
  });
5935
5987
  } catch (error) {
5936
5988
  console.error("Error updating user:", error);
5989
+ const errorMessage = error instanceof Error ? error.message : "An error occurred while updating the user";
5937
5990
  toggleNotification({
5938
5991
  type: "danger",
5939
- message: "An error occurred while updating the user"
5992
+ message: errorMessage
5940
5993
  });
5941
5994
  setIsLoading(false);
5942
5995
  setUserData(data);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const admin = require("@strapi/strapi/admin");
3
- const index = require("./index-DHMYqfl3.js");
3
+ const index = require("./index-BnT1fFPr.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();
@@ -1,5 +1,5 @@
1
1
  import { getFetchClient } from "@strapi/strapi/admin";
2
- import { P as PLUGIN_ID } from "./index-4s0RQKAx.mjs";
2
+ import { P as PLUGIN_ID } from "./index-DtGfwf9S.mjs";
3
3
  const saveFirebaseConfig = async (json, firebaseWebApiKey, passwordConfig) => {
4
4
  const url = `/${PLUGIN_ID}/settings/firebase-config`;
5
5
  const { post } = getFetchClient();
@@ -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-COMAshYj.js")).then((mod) => ({
742
+ Component: () => Promise.resolve().then(() => require("./App-DZQe17x8.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-DyXjIUy8.js"));
764
+ const component = await Promise.resolve().then(() => require("./index-dVTLVmwU.js"));
765
765
  return component.default;
766
766
  },
767
767
  permissions: PERMISSIONS["menu-link"]
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { Flex, Box, Typography, JSONInput, Button, TextInput, Badge, Textarea, Toggle, NumberInput, Modal } from "@strapi/design-system";
4
4
  import { useNotification, Page } from "@strapi/strapi/admin";
5
- import { g as getFirebaseConfig, s as saveFirebaseConfig, d as delFirebaseConfig, a as savePasswordSettings } from "./api-CM79I13t.mjs";
5
+ import { g as getFirebaseConfig, s as saveFirebaseConfig, d as delFirebaseConfig, a as savePasswordSettings } from "./api-D_4cdJU5.mjs";
6
6
  import { useNavigate } from "react-router-dom";
7
7
  function SettingsPage() {
8
8
  const { toggleNotification } = useNotification();
@@ -738,7 +738,7 @@ const index = {
738
738
  id: `${PLUGIN_ID}.page.title`,
739
739
  defaultMessage: PLUGIN_ID
740
740
  },
741
- Component: () => import("./App-C0XJYDQh.mjs").then((mod) => ({
741
+ Component: () => import("./App-BY1gNGKH.mjs").then((mod) => ({
742
742
  default: mod.App
743
743
  })),
744
744
  permissions: PERMISSIONS["menu-link"]
@@ -760,7 +760,7 @@ const index = {
760
760
  id: "settings",
761
761
  to: `/settings/${PLUGIN_ID}`,
762
762
  async Component() {
763
- const component = await import("./index-B8sQntQh.mjs");
763
+ const component = await import("./index-D8pv1Q6h.mjs");
764
764
  return component.default;
765
765
  },
766
766
  permissions: PERMISSIONS["menu-link"]
@@ -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-DzbiYzK4.js");
7
+ const api = require("./api-DR4wmAFN.js");
8
8
  const reactRouterDom = require("react-router-dom");
9
9
  function SettingsPage() {
10
10
  const { toggleNotification } = admin.useNotification();
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-DHMYqfl3.js");
2
+ const index = require("../_chunks/index-BnT1fFPr.js");
3
3
  require("react/jsx-runtime");
4
4
  require("@strapi/strapi/admin");
5
5
  require("@strapi/design-system");
@@ -1,4 +1,4 @@
1
- import { p } from "../_chunks/index-4s0RQKAx.mjs";
1
+ import { p } from "../_chunks/index-DtGfwf9S.mjs";
2
2
  import "react/jsx-runtime";
3
3
  import "@strapi/strapi/admin";
4
4
  import "@strapi/design-system";
@@ -5,7 +5,7 @@ interface FirebaseTableProps {
5
5
  createAction?: React.ReactNode;
6
6
  isLoading: boolean;
7
7
  rows: User[];
8
- onConfirmDeleteAll: (idsToDelete: Array<string | number>) => Promise<void>;
8
+ onConfirmDeleteAll: (idsToDelete: Array<string | number>, destination: string | null) => Promise<void>;
9
9
  onResetPasswordClick: (data: User) => void;
10
10
  onDeleteAccountClick: (data: User) => void;
11
11
  }