strapi-plugin-firebase-authentication 1.1.7 → 1.1.8
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.
- package/dist/_chunks/{App-CtjmoTFU.js → App-C_pWLYYH.js} +146 -189
- package/dist/_chunks/{App-C49N6om4.mjs → App-Dt8F60Rl.mjs} +146 -189
- package/dist/_chunks/{api-Bw_7tM52.js → api-CxfueBVM.js} +1 -1
- package/dist/_chunks/{api-DrAXGM3H.mjs → api-T8QRCile.mjs} +1 -1
- package/dist/_chunks/{index-yE1zATuU.js → index-BIHS9XB4.js} +2 -2
- package/dist/_chunks/{index-C9AUBuP7.mjs → index-BzSU0Li9.mjs} +1 -1
- package/dist/_chunks/{index-BkQ4pF_p.js → index-C87l6qcA.js} +1 -1
- package/dist/_chunks/{index-FAW4iPgh.mjs → index-Do9Y0scX.mjs} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/forms/index.d.ts +2 -4
- package/package.json +1 -1
|
@@ -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-
|
|
10
|
+
const index = require("./index-BIHS9XB4.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-
|
|
16
|
+
const api = require("./api-CxfueBVM.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");
|
|
@@ -2990,7 +2990,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
2990
2990
|
var ys = arrObjKeys(obj, inspect2);
|
|
2991
2991
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
2992
2992
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
2993
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr
|
|
2993
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
2994
2994
|
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
2995
2995
|
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
2996
2996
|
if (ys.length === 0) {
|
|
@@ -3015,25 +3015,25 @@ function canTrustToString(obj) {
|
|
|
3015
3015
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
3016
3016
|
}
|
|
3017
3017
|
function isArray$3(obj) {
|
|
3018
|
-
return toStr
|
|
3018
|
+
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
3019
3019
|
}
|
|
3020
3020
|
function isDate(obj) {
|
|
3021
|
-
return toStr
|
|
3021
|
+
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
3022
3022
|
}
|
|
3023
3023
|
function isRegExp$1(obj) {
|
|
3024
|
-
return toStr
|
|
3024
|
+
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
3025
3025
|
}
|
|
3026
3026
|
function isError(obj) {
|
|
3027
|
-
return toStr
|
|
3027
|
+
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
3028
3028
|
}
|
|
3029
3029
|
function isString(obj) {
|
|
3030
|
-
return toStr
|
|
3030
|
+
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
3031
3031
|
}
|
|
3032
3032
|
function isNumber(obj) {
|
|
3033
|
-
return toStr
|
|
3033
|
+
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
3034
3034
|
}
|
|
3035
3035
|
function isBoolean(obj) {
|
|
3036
|
-
return toStr
|
|
3036
|
+
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
3037
3037
|
}
|
|
3038
3038
|
function isSymbol(obj) {
|
|
3039
3039
|
if (hasShammedSymbols) {
|
|
@@ -3069,7 +3069,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
3069
3069
|
function has$3(obj, key) {
|
|
3070
3070
|
return hasOwn$1.call(obj, key);
|
|
3071
3071
|
}
|
|
3072
|
-
function toStr
|
|
3072
|
+
function toStr(obj) {
|
|
3073
3073
|
return objectToString.call(obj);
|
|
3074
3074
|
}
|
|
3075
3075
|
function nameOf(f) {
|
|
@@ -3378,7 +3378,7 @@ var syntax = SyntaxError;
|
|
|
3378
3378
|
var uri = URIError;
|
|
3379
3379
|
var abs$1 = Math.abs;
|
|
3380
3380
|
var floor$1 = Math.floor;
|
|
3381
|
-
var max$
|
|
3381
|
+
var max$1 = Math.max;
|
|
3382
3382
|
var min$1 = Math.min;
|
|
3383
3383
|
var pow$1 = Math.pow;
|
|
3384
3384
|
var round$1 = Math.round;
|
|
@@ -3507,78 +3507,99 @@ function requireObject_getPrototypeOf() {
|
|
|
3507
3507
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
3508
3508
|
return Object_getPrototypeOf;
|
|
3509
3509
|
}
|
|
3510
|
-
var
|
|
3511
|
-
var
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
var
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
arr
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
}
|
|
3524
|
-
var
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
arr
|
|
3528
|
-
}
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
var
|
|
3532
|
-
|
|
3533
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
3534
|
-
str += arr[i2];
|
|
3535
|
-
if (i2 + 1 < arr.length) {
|
|
3536
|
-
str += joiner;
|
|
3510
|
+
var implementation;
|
|
3511
|
+
var hasRequiredImplementation;
|
|
3512
|
+
function requireImplementation() {
|
|
3513
|
+
if (hasRequiredImplementation) return implementation;
|
|
3514
|
+
hasRequiredImplementation = 1;
|
|
3515
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
3516
|
+
var toStr2 = Object.prototype.toString;
|
|
3517
|
+
var max2 = Math.max;
|
|
3518
|
+
var funcType = "[object Function]";
|
|
3519
|
+
var concatty = function concatty2(a3, b2) {
|
|
3520
|
+
var arr = [];
|
|
3521
|
+
for (var i2 = 0; i2 < a3.length; i2 += 1) {
|
|
3522
|
+
arr[i2] = a3[i2];
|
|
3523
|
+
}
|
|
3524
|
+
for (var j = 0; j < b2.length; j += 1) {
|
|
3525
|
+
arr[j + a3.length] = b2[j];
|
|
3526
|
+
}
|
|
3527
|
+
return arr;
|
|
3528
|
+
};
|
|
3529
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
3530
|
+
var arr = [];
|
|
3531
|
+
for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
3532
|
+
arr[j] = arrLike[i2];
|
|
3537
3533
|
}
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
var
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
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;
|
|
3534
|
+
return arr;
|
|
3535
|
+
};
|
|
3536
|
+
var joiny = function(arr, joiner) {
|
|
3537
|
+
var str = "";
|
|
3538
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
3539
|
+
str += arr[i2];
|
|
3540
|
+
if (i2 + 1 < arr.length) {
|
|
3541
|
+
str += joiner;
|
|
3556
3542
|
}
|
|
3557
|
-
return this;
|
|
3558
3543
|
}
|
|
3559
|
-
return
|
|
3560
|
-
that,
|
|
3561
|
-
concatty(args, arguments)
|
|
3562
|
-
);
|
|
3544
|
+
return str;
|
|
3563
3545
|
};
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
var
|
|
3546
|
+
implementation = function bind2(that) {
|
|
3547
|
+
var target = this;
|
|
3548
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
3549
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
3550
|
+
}
|
|
3551
|
+
var args = slicy(arguments, 1);
|
|
3552
|
+
var bound;
|
|
3553
|
+
var binder = function() {
|
|
3554
|
+
if (this instanceof bound) {
|
|
3555
|
+
var result = target.apply(
|
|
3556
|
+
this,
|
|
3557
|
+
concatty(args, arguments)
|
|
3558
|
+
);
|
|
3559
|
+
if (Object(result) === result) {
|
|
3560
|
+
return result;
|
|
3561
|
+
}
|
|
3562
|
+
return this;
|
|
3563
|
+
}
|
|
3564
|
+
return target.apply(
|
|
3565
|
+
that,
|
|
3566
|
+
concatty(args, arguments)
|
|
3567
|
+
);
|
|
3572
3568
|
};
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
};
|
|
3579
|
-
|
|
3580
|
-
var
|
|
3581
|
-
|
|
3569
|
+
var boundLength = max2(0, target.length - args.length);
|
|
3570
|
+
var boundArgs = [];
|
|
3571
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
3572
|
+
boundArgs[i2] = "$" + i2;
|
|
3573
|
+
}
|
|
3574
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
3575
|
+
if (target.prototype) {
|
|
3576
|
+
var Empty = function Empty2() {
|
|
3577
|
+
};
|
|
3578
|
+
Empty.prototype = target.prototype;
|
|
3579
|
+
bound.prototype = new Empty();
|
|
3580
|
+
Empty.prototype = null;
|
|
3581
|
+
}
|
|
3582
|
+
return bound;
|
|
3583
|
+
};
|
|
3584
|
+
return implementation;
|
|
3585
|
+
}
|
|
3586
|
+
var functionBind;
|
|
3587
|
+
var hasRequiredFunctionBind;
|
|
3588
|
+
function requireFunctionBind() {
|
|
3589
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
3590
|
+
hasRequiredFunctionBind = 1;
|
|
3591
|
+
var implementation2 = requireImplementation();
|
|
3592
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
3593
|
+
return functionBind;
|
|
3594
|
+
}
|
|
3595
|
+
var functionCall;
|
|
3596
|
+
var hasRequiredFunctionCall;
|
|
3597
|
+
function requireFunctionCall() {
|
|
3598
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
3599
|
+
hasRequiredFunctionCall = 1;
|
|
3600
|
+
functionCall = Function.prototype.call;
|
|
3601
|
+
return functionCall;
|
|
3602
|
+
}
|
|
3582
3603
|
var functionApply;
|
|
3583
3604
|
var hasRequiredFunctionApply;
|
|
3584
3605
|
function requireFunctionApply() {
|
|
@@ -3588,14 +3609,14 @@ function requireFunctionApply() {
|
|
|
3588
3609
|
return functionApply;
|
|
3589
3610
|
}
|
|
3590
3611
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
3591
|
-
var bind$2 =
|
|
3612
|
+
var bind$2 = requireFunctionBind();
|
|
3592
3613
|
var $apply$1 = requireFunctionApply();
|
|
3593
|
-
var $call$2 =
|
|
3614
|
+
var $call$2 = requireFunctionCall();
|
|
3594
3615
|
var $reflectApply = reflectApply;
|
|
3595
3616
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
3596
|
-
var bind$1 =
|
|
3617
|
+
var bind$1 = requireFunctionBind();
|
|
3597
3618
|
var $TypeError$4 = type;
|
|
3598
|
-
var $call$1 =
|
|
3619
|
+
var $call$1 = requireFunctionCall();
|
|
3599
3620
|
var $actualApply = actualApply;
|
|
3600
3621
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
3601
3622
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -3661,8 +3682,8 @@ function requireHasown() {
|
|
|
3661
3682
|
hasRequiredHasown = 1;
|
|
3662
3683
|
var call = Function.prototype.call;
|
|
3663
3684
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
3664
|
-
var
|
|
3665
|
-
hasown =
|
|
3685
|
+
var bind2 = requireFunctionBind();
|
|
3686
|
+
hasown = bind2.call(call, $hasOwn);
|
|
3666
3687
|
return hasown;
|
|
3667
3688
|
}
|
|
3668
3689
|
var undefined$1;
|
|
@@ -3676,7 +3697,7 @@ var $TypeError$3 = type;
|
|
|
3676
3697
|
var $URIError = uri;
|
|
3677
3698
|
var abs = abs$1;
|
|
3678
3699
|
var floor = floor$1;
|
|
3679
|
-
var max = max$
|
|
3700
|
+
var max = max$1;
|
|
3680
3701
|
var min = min$1;
|
|
3681
3702
|
var pow = pow$1;
|
|
3682
3703
|
var round = round$1;
|
|
@@ -3710,7 +3731,7 @@ var getProto = requireGetProto();
|
|
|
3710
3731
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
3711
3732
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
3712
3733
|
var $apply = requireFunctionApply();
|
|
3713
|
-
var $call =
|
|
3734
|
+
var $call = requireFunctionCall();
|
|
3714
3735
|
var needsEval = {};
|
|
3715
3736
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
3716
3737
|
var INTRINSICS = {
|
|
@@ -3881,13 +3902,13 @@ var LEGACY_ALIASES = {
|
|
|
3881
3902
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3882
3903
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3883
3904
|
};
|
|
3884
|
-
var
|
|
3905
|
+
var bind = requireFunctionBind();
|
|
3885
3906
|
var hasOwn = requireHasown();
|
|
3886
|
-
var $concat =
|
|
3887
|
-
var $spliceApply =
|
|
3888
|
-
var $replace =
|
|
3889
|
-
var $strSlice =
|
|
3890
|
-
var $exec =
|
|
3907
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
3908
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
3909
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
3910
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
3911
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
3891
3912
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
3892
3913
|
var reEscapeChar = /\\(\\)?/g;
|
|
3893
3914
|
var stringToPath = function stringToPath2(string) {
|
|
@@ -5385,60 +5406,27 @@ const HomePage = () => {
|
|
|
5385
5406
|
] })
|
|
5386
5407
|
] });
|
|
5387
5408
|
};
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
console.log(
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
console.log("
|
|
5397
|
-
console.log("
|
|
5398
|
-
console.log("
|
|
5399
|
-
console.log(" Field.Label type:", typeof designSystem.Field.Label);
|
|
5400
|
-
console.log(" Field.Label $$typeof:", designSystem.Field.Label?.$$typeof);
|
|
5401
|
-
console.log(" Field.Error:", designSystem.Field.Error);
|
|
5402
|
-
console.log(" Field.Error type:", typeof designSystem.Field.Error);
|
|
5403
|
-
console.log(" Field.Error $$typeof:", designSystem.Field.Error?.$$typeof);
|
|
5404
|
-
console.log(" Field.Hint:", designSystem.Field.Hint);
|
|
5405
|
-
console.log(" Field.Hint type:", typeof designSystem.Field.Hint);
|
|
5406
|
-
console.log(" TextInput:", designSystem.TextInput);
|
|
5407
|
-
console.log(" TextInput type:", typeof designSystem.TextInput);
|
|
5408
|
-
console.log(" TextInput $$typeof:", designSystem.TextInput?.$$typeof);
|
|
5409
|
-
console.log(" Toggle:", designSystem.Toggle);
|
|
5410
|
-
console.log(" Toggle type:", typeof designSystem.Toggle);
|
|
5411
|
-
console.log(" Toggle $$typeof:", designSystem.Toggle?.$$typeof);
|
|
5412
|
-
console.log(" PhoneInput:", PhoneInput);
|
|
5409
|
+
let PhoneInputTemp = PhoneInputModule__namespace;
|
|
5410
|
+
let unwrapCount = 0;
|
|
5411
|
+
while (PhoneInputTemp && typeof PhoneInputTemp === "object" && PhoneInputTemp.default && unwrapCount < 5) {
|
|
5412
|
+
console.log(`🔧 Unwrapping PhoneInput layer ${unwrapCount}:`, PhoneInputTemp);
|
|
5413
|
+
PhoneInputTemp = PhoneInputTemp.default;
|
|
5414
|
+
unwrapCount++;
|
|
5415
|
+
}
|
|
5416
|
+
const PhoneInput = PhoneInputTemp;
|
|
5417
|
+
console.log("🔍 ==================== PhoneInput Final Check ====================");
|
|
5418
|
+
console.log(" Unwrap iterations:", unwrapCount);
|
|
5419
|
+
console.log(" PhoneInput FINAL:", PhoneInput);
|
|
5413
5420
|
console.log(" PhoneInput type:", typeof PhoneInput);
|
|
5414
5421
|
console.log(" PhoneInput $$typeof:", PhoneInput?.$$typeof);
|
|
5422
|
+
console.log(" PhoneInput name:", PhoneInput?.name);
|
|
5415
5423
|
console.log(" PhoneInput displayName:", PhoneInput?.displayName);
|
|
5416
|
-
console.log("
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
}
|
|
5423
|
-
try {
|
|
5424
|
-
const testLabel = React__default.default.createElement(designSystem.Field.Label, { children: "test" });
|
|
5425
|
-
console.log(" ✅ Field.Label createElement succeeded:", testLabel);
|
|
5426
|
-
} catch (e2) {
|
|
5427
|
-
console.error(" ❌ Field.Label createElement FAILED:", e2);
|
|
5428
|
-
}
|
|
5429
|
-
try {
|
|
5430
|
-
const testInput = React__default.default.createElement(designSystem.TextInput, { value: "test" });
|
|
5431
|
-
console.log(" ✅ TextInput createElement succeeded:", testInput);
|
|
5432
|
-
} catch (e2) {
|
|
5433
|
-
console.error(" ❌ TextInput createElement FAILED:", e2);
|
|
5434
|
-
}
|
|
5435
|
-
try {
|
|
5436
|
-
const testToggle = React__default.default.createElement(designSystem.Toggle, { checked: false });
|
|
5437
|
-
console.log(" ✅ Toggle createElement succeeded:", testToggle);
|
|
5438
|
-
} catch (e2) {
|
|
5439
|
-
console.error(" ❌ Toggle createElement FAILED:", e2);
|
|
5440
|
-
}
|
|
5441
|
-
console.log("🔍 ==================== UserFormFields Debug End ====================");
|
|
5424
|
+
console.log(" Is function?:", typeof PhoneInput === "function");
|
|
5425
|
+
console.log(
|
|
5426
|
+
" Is valid React component?:",
|
|
5427
|
+
typeof PhoneInput === "function" || PhoneInput && PhoneInput.$$typeof
|
|
5428
|
+
);
|
|
5429
|
+
console.log("🔍 ================================================================");
|
|
5442
5430
|
const StyledPhoneInputWrapper = styled__default.default.div`
|
|
5443
5431
|
width: 100%;
|
|
5444
5432
|
|
|
@@ -5593,19 +5581,6 @@ const UserFormFields = ({
|
|
|
5593
5581
|
isPasswordRequired = false,
|
|
5594
5582
|
hasBeenTouched = false
|
|
5595
5583
|
}) => {
|
|
5596
|
-
console.log("🎨 UserFormFields RENDER START");
|
|
5597
|
-
console.log(" Props received:", {
|
|
5598
|
-
userData,
|
|
5599
|
-
emailError,
|
|
5600
|
-
phoneError,
|
|
5601
|
-
showPasswordHint,
|
|
5602
|
-
isPasswordRequired,
|
|
5603
|
-
hasBeenTouched
|
|
5604
|
-
});
|
|
5605
|
-
console.log(" About to render Field.Root, type:", typeof designSystem.Field.Root);
|
|
5606
|
-
console.log(" About to render TextInput, type:", typeof designSystem.TextInput);
|
|
5607
|
-
console.log(" About to render Toggle, type:", typeof designSystem.Toggle);
|
|
5608
|
-
console.log(" About to render PhoneInput, type:", typeof PhoneInput);
|
|
5609
5584
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5610
5585
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5611
5586
|
designSystem.Field.Root,
|
|
@@ -5835,14 +5810,7 @@ const useUserForm = (initialData = {}) => {
|
|
|
5835
5810
|
isSubmitDisabled
|
|
5836
5811
|
};
|
|
5837
5812
|
};
|
|
5838
|
-
console.log("🔷 CreateUserForm - Component Imports:");
|
|
5839
|
-
console.log(" UserFormFields:", UserFormFields);
|
|
5840
|
-
console.log(" UserFormFields type:", typeof UserFormFields);
|
|
5841
|
-
console.log(" UserFormFields $$typeof:", UserFormFields?.$$typeof);
|
|
5842
|
-
console.log(" UserFormLayout:", UserFormLayout);
|
|
5843
|
-
console.log(" UserFormLayout type:", typeof UserFormLayout);
|
|
5844
5813
|
const CreateUserForm = () => {
|
|
5845
|
-
console.log("🔷 CreateUserForm RENDERING");
|
|
5846
5814
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
5847
5815
|
const { toggleNotification } = admin.useNotification();
|
|
5848
5816
|
const navigate = reactRouterDom.useNavigate();
|
|
@@ -5886,25 +5854,20 @@ const CreateUserForm = () => {
|
|
|
5886
5854
|
isSubmitButtonDisabled: isSubmitDisabled
|
|
5887
5855
|
}
|
|
5888
5856
|
),
|
|
5889
|
-
/* @__PURE__ */ jsxRuntime.jsx(admin.Layouts.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(UserFormLayout, { children:
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
isPasswordRequired: true,
|
|
5904
|
-
hasBeenTouched
|
|
5905
|
-
}
|
|
5906
|
-
);
|
|
5907
|
-
})() }) })
|
|
5857
|
+
/* @__PURE__ */ jsxRuntime.jsx(admin.Layouts.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(UserFormLayout, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5858
|
+
UserFormFields,
|
|
5859
|
+
{
|
|
5860
|
+
userData,
|
|
5861
|
+
onTextInputChange: handlers.onTextInputChange,
|
|
5862
|
+
onPhoneChange: handlers.onPhoneChange,
|
|
5863
|
+
onToggleInputChange: handlers.onToggleInputChange,
|
|
5864
|
+
onEmailBlur: handlers.onEmailBlur,
|
|
5865
|
+
emailError,
|
|
5866
|
+
phoneError,
|
|
5867
|
+
isPasswordRequired: true,
|
|
5868
|
+
hasBeenTouched
|
|
5869
|
+
}
|
|
5870
|
+
) }) })
|
|
5908
5871
|
] });
|
|
5909
5872
|
};
|
|
5910
5873
|
const PasswordResetButton = ({
|
|
@@ -5938,7 +5901,6 @@ const PasswordResetButton = ({
|
|
|
5938
5901
|
}
|
|
5939
5902
|
return button;
|
|
5940
5903
|
};
|
|
5941
|
-
console.log("🔶 EditUserForm - UserFormFields import:", UserFormFields, "type:", typeof UserFormFields);
|
|
5942
5904
|
const MetaWrapper = styled__default.default(designSystem.Box)`
|
|
5943
5905
|
width: 100%;
|
|
5944
5906
|
display: flex;
|
|
@@ -6236,11 +6198,6 @@ const EditUserForm = ({ data }) => {
|
|
|
6236
6198
|
)
|
|
6237
6199
|
] });
|
|
6238
6200
|
};
|
|
6239
|
-
console.log("📤 forms/index.ts Re-export Debug:");
|
|
6240
|
-
console.log(" UserFormFields from import:", UserFormFields);
|
|
6241
|
-
console.log(" UserFormFields type:", typeof UserFormFields);
|
|
6242
|
-
console.log(" UserFormLayout from import:", UserFormLayout);
|
|
6243
|
-
console.log(" UserFormLayout type:", typeof UserFormLayout);
|
|
6244
6201
|
const EditView = () => {
|
|
6245
6202
|
const { id } = reactRouterDom.useParams();
|
|
6246
6203
|
const { toggleNotification } = admin.useNotification();
|
|
@@ -5,13 +5,13 @@ import { Provider } from "@radix-ui/react-tooltip";
|
|
|
5
5
|
import React, { useState, useCallback, useMemo, useEffect, useRef, useLayoutEffect } from "react";
|
|
6
6
|
import { Link, Flex, Box, Button, Tooltip, Tbody, Tr, Td, Checkbox, Typography, Modal, Table, Thead, Th, SingleSelect, SingleSelectOption, SearchForm, Searchbar, IconButton, Dialog, Tabs, TextInput, Alert, Field, Toggle, Divider } from "@strapi/design-system";
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
|
-
import { i as isArguments_1, a as isBufferExports, b as isTypedArray_1, c as isLength_1, d as isFunction_1, _ as _getTag, e as _Stack, f as _equalArrays, g as _equalByTag, h as isObjectLike_1, j as getDefaultExportFromCjs, k as _baseGetTag, l as _MapCache, m as _Symbol, P as PLUGIN_ID, n as getAugmentedNamespace, o as commonjsGlobal } from "./index-
|
|
8
|
+
import { i as isArguments_1, a as isBufferExports, b as isTypedArray_1, c as isLength_1, d as isFunction_1, _ as _getTag, e as _Stack, f as _equalArrays, g as _equalByTag, h as isObjectLike_1, j as getDefaultExportFromCjs, k as _baseGetTag, l as _MapCache, m as _Symbol, P as PLUGIN_ID, n as getAugmentedNamespace, o as commonjsGlobal } from "./index-Do9Y0scX.mjs";
|
|
9
9
|
import { ArrowLeft, Key, Trash, WarningCircle, CaretUp, CaretDown, Search, Plus, Pencil } from "@strapi/icons";
|
|
10
10
|
import styled from "styled-components";
|
|
11
11
|
import { RxCheck, RxCross2 } from "react-icons/rx";
|
|
12
12
|
import { AiOutlineUserAdd, AiFillPhone, AiFillMail, AiFillYahoo, AiFillGithub, AiFillTwitterCircle, AiFillFacebook, AiFillApple, AiFillGoogleCircle } from "react-icons/ai";
|
|
13
13
|
import { MdPassword } from "react-icons/md";
|
|
14
|
-
import { g as getFirebaseConfig$1 } from "./api-
|
|
14
|
+
import { g as getFirebaseConfig$1 } from "./api-T8QRCile.mjs";
|
|
15
15
|
import * as PhoneInputModule from "react-phone-input-2";
|
|
16
16
|
import "react-phone-input-2/lib/style.css";
|
|
17
17
|
import validator from "validator";
|
|
@@ -2966,7 +2966,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
2966
2966
|
var ys = arrObjKeys(obj, inspect2);
|
|
2967
2967
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
2968
2968
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
2969
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr
|
|
2969
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
2970
2970
|
var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
2971
2971
|
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
2972
2972
|
if (ys.length === 0) {
|
|
@@ -2991,25 +2991,25 @@ function canTrustToString(obj) {
|
|
|
2991
2991
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
2992
2992
|
}
|
|
2993
2993
|
function isArray$3(obj) {
|
|
2994
|
-
return toStr
|
|
2994
|
+
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
2995
2995
|
}
|
|
2996
2996
|
function isDate(obj) {
|
|
2997
|
-
return toStr
|
|
2997
|
+
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
2998
2998
|
}
|
|
2999
2999
|
function isRegExp$1(obj) {
|
|
3000
|
-
return toStr
|
|
3000
|
+
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
3001
3001
|
}
|
|
3002
3002
|
function isError(obj) {
|
|
3003
|
-
return toStr
|
|
3003
|
+
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
3004
3004
|
}
|
|
3005
3005
|
function isString(obj) {
|
|
3006
|
-
return toStr
|
|
3006
|
+
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
3007
3007
|
}
|
|
3008
3008
|
function isNumber(obj) {
|
|
3009
|
-
return toStr
|
|
3009
|
+
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
3010
3010
|
}
|
|
3011
3011
|
function isBoolean(obj) {
|
|
3012
|
-
return toStr
|
|
3012
|
+
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
3013
3013
|
}
|
|
3014
3014
|
function isSymbol(obj) {
|
|
3015
3015
|
if (hasShammedSymbols) {
|
|
@@ -3045,7 +3045,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
3045
3045
|
function has$3(obj, key) {
|
|
3046
3046
|
return hasOwn$1.call(obj, key);
|
|
3047
3047
|
}
|
|
3048
|
-
function toStr
|
|
3048
|
+
function toStr(obj) {
|
|
3049
3049
|
return objectToString.call(obj);
|
|
3050
3050
|
}
|
|
3051
3051
|
function nameOf(f) {
|
|
@@ -3354,7 +3354,7 @@ var syntax = SyntaxError;
|
|
|
3354
3354
|
var uri = URIError;
|
|
3355
3355
|
var abs$1 = Math.abs;
|
|
3356
3356
|
var floor$1 = Math.floor;
|
|
3357
|
-
var max$
|
|
3357
|
+
var max$1 = Math.max;
|
|
3358
3358
|
var min$1 = Math.min;
|
|
3359
3359
|
var pow$1 = Math.pow;
|
|
3360
3360
|
var round$1 = Math.round;
|
|
@@ -3483,78 +3483,99 @@ function requireObject_getPrototypeOf() {
|
|
|
3483
3483
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
3484
3484
|
return Object_getPrototypeOf;
|
|
3485
3485
|
}
|
|
3486
|
-
var
|
|
3487
|
-
var
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
var
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
arr
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
}
|
|
3500
|
-
var
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
arr
|
|
3504
|
-
}
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
var
|
|
3508
|
-
|
|
3509
|
-
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
3510
|
-
str += arr[i2];
|
|
3511
|
-
if (i2 + 1 < arr.length) {
|
|
3512
|
-
str += joiner;
|
|
3486
|
+
var implementation;
|
|
3487
|
+
var hasRequiredImplementation;
|
|
3488
|
+
function requireImplementation() {
|
|
3489
|
+
if (hasRequiredImplementation) return implementation;
|
|
3490
|
+
hasRequiredImplementation = 1;
|
|
3491
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
3492
|
+
var toStr2 = Object.prototype.toString;
|
|
3493
|
+
var max2 = Math.max;
|
|
3494
|
+
var funcType = "[object Function]";
|
|
3495
|
+
var concatty = function concatty2(a3, b2) {
|
|
3496
|
+
var arr = [];
|
|
3497
|
+
for (var i2 = 0; i2 < a3.length; i2 += 1) {
|
|
3498
|
+
arr[i2] = a3[i2];
|
|
3499
|
+
}
|
|
3500
|
+
for (var j = 0; j < b2.length; j += 1) {
|
|
3501
|
+
arr[j + a3.length] = b2[j];
|
|
3502
|
+
}
|
|
3503
|
+
return arr;
|
|
3504
|
+
};
|
|
3505
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
3506
|
+
var arr = [];
|
|
3507
|
+
for (var i2 = offset, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
|
|
3508
|
+
arr[j] = arrLike[i2];
|
|
3513
3509
|
}
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
var
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
var args = slicy(arguments, 1);
|
|
3523
|
-
var bound;
|
|
3524
|
-
var binder = function() {
|
|
3525
|
-
if (this instanceof bound) {
|
|
3526
|
-
var result = target.apply(
|
|
3527
|
-
this,
|
|
3528
|
-
concatty(args, arguments)
|
|
3529
|
-
);
|
|
3530
|
-
if (Object(result) === result) {
|
|
3531
|
-
return result;
|
|
3510
|
+
return arr;
|
|
3511
|
+
};
|
|
3512
|
+
var joiny = function(arr, joiner) {
|
|
3513
|
+
var str = "";
|
|
3514
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
3515
|
+
str += arr[i2];
|
|
3516
|
+
if (i2 + 1 < arr.length) {
|
|
3517
|
+
str += joiner;
|
|
3532
3518
|
}
|
|
3533
|
-
return this;
|
|
3534
3519
|
}
|
|
3535
|
-
return
|
|
3536
|
-
that,
|
|
3537
|
-
concatty(args, arguments)
|
|
3538
|
-
);
|
|
3520
|
+
return str;
|
|
3539
3521
|
};
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
var
|
|
3522
|
+
implementation = function bind2(that) {
|
|
3523
|
+
var target = this;
|
|
3524
|
+
if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
|
|
3525
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
3526
|
+
}
|
|
3527
|
+
var args = slicy(arguments, 1);
|
|
3528
|
+
var bound;
|
|
3529
|
+
var binder = function() {
|
|
3530
|
+
if (this instanceof bound) {
|
|
3531
|
+
var result = target.apply(
|
|
3532
|
+
this,
|
|
3533
|
+
concatty(args, arguments)
|
|
3534
|
+
);
|
|
3535
|
+
if (Object(result) === result) {
|
|
3536
|
+
return result;
|
|
3537
|
+
}
|
|
3538
|
+
return this;
|
|
3539
|
+
}
|
|
3540
|
+
return target.apply(
|
|
3541
|
+
that,
|
|
3542
|
+
concatty(args, arguments)
|
|
3543
|
+
);
|
|
3548
3544
|
};
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
};
|
|
3555
|
-
|
|
3556
|
-
var
|
|
3557
|
-
|
|
3545
|
+
var boundLength = max2(0, target.length - args.length);
|
|
3546
|
+
var boundArgs = [];
|
|
3547
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
3548
|
+
boundArgs[i2] = "$" + i2;
|
|
3549
|
+
}
|
|
3550
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
3551
|
+
if (target.prototype) {
|
|
3552
|
+
var Empty = function Empty2() {
|
|
3553
|
+
};
|
|
3554
|
+
Empty.prototype = target.prototype;
|
|
3555
|
+
bound.prototype = new Empty();
|
|
3556
|
+
Empty.prototype = null;
|
|
3557
|
+
}
|
|
3558
|
+
return bound;
|
|
3559
|
+
};
|
|
3560
|
+
return implementation;
|
|
3561
|
+
}
|
|
3562
|
+
var functionBind;
|
|
3563
|
+
var hasRequiredFunctionBind;
|
|
3564
|
+
function requireFunctionBind() {
|
|
3565
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
3566
|
+
hasRequiredFunctionBind = 1;
|
|
3567
|
+
var implementation2 = requireImplementation();
|
|
3568
|
+
functionBind = Function.prototype.bind || implementation2;
|
|
3569
|
+
return functionBind;
|
|
3570
|
+
}
|
|
3571
|
+
var functionCall;
|
|
3572
|
+
var hasRequiredFunctionCall;
|
|
3573
|
+
function requireFunctionCall() {
|
|
3574
|
+
if (hasRequiredFunctionCall) return functionCall;
|
|
3575
|
+
hasRequiredFunctionCall = 1;
|
|
3576
|
+
functionCall = Function.prototype.call;
|
|
3577
|
+
return functionCall;
|
|
3578
|
+
}
|
|
3558
3579
|
var functionApply;
|
|
3559
3580
|
var hasRequiredFunctionApply;
|
|
3560
3581
|
function requireFunctionApply() {
|
|
@@ -3564,14 +3585,14 @@ function requireFunctionApply() {
|
|
|
3564
3585
|
return functionApply;
|
|
3565
3586
|
}
|
|
3566
3587
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
3567
|
-
var bind$2 =
|
|
3588
|
+
var bind$2 = requireFunctionBind();
|
|
3568
3589
|
var $apply$1 = requireFunctionApply();
|
|
3569
|
-
var $call$2 =
|
|
3590
|
+
var $call$2 = requireFunctionCall();
|
|
3570
3591
|
var $reflectApply = reflectApply;
|
|
3571
3592
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
3572
|
-
var bind$1 =
|
|
3593
|
+
var bind$1 = requireFunctionBind();
|
|
3573
3594
|
var $TypeError$4 = type;
|
|
3574
|
-
var $call$1 =
|
|
3595
|
+
var $call$1 = requireFunctionCall();
|
|
3575
3596
|
var $actualApply = actualApply;
|
|
3576
3597
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
3577
3598
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -3637,8 +3658,8 @@ function requireHasown() {
|
|
|
3637
3658
|
hasRequiredHasown = 1;
|
|
3638
3659
|
var call = Function.prototype.call;
|
|
3639
3660
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
3640
|
-
var
|
|
3641
|
-
hasown =
|
|
3661
|
+
var bind2 = requireFunctionBind();
|
|
3662
|
+
hasown = bind2.call(call, $hasOwn);
|
|
3642
3663
|
return hasown;
|
|
3643
3664
|
}
|
|
3644
3665
|
var undefined$1;
|
|
@@ -3652,7 +3673,7 @@ var $TypeError$3 = type;
|
|
|
3652
3673
|
var $URIError = uri;
|
|
3653
3674
|
var abs = abs$1;
|
|
3654
3675
|
var floor = floor$1;
|
|
3655
|
-
var max = max$
|
|
3676
|
+
var max = max$1;
|
|
3656
3677
|
var min = min$1;
|
|
3657
3678
|
var pow = pow$1;
|
|
3658
3679
|
var round = round$1;
|
|
@@ -3686,7 +3707,7 @@ var getProto = requireGetProto();
|
|
|
3686
3707
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
3687
3708
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
3688
3709
|
var $apply = requireFunctionApply();
|
|
3689
|
-
var $call =
|
|
3710
|
+
var $call = requireFunctionCall();
|
|
3690
3711
|
var needsEval = {};
|
|
3691
3712
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
3692
3713
|
var INTRINSICS = {
|
|
@@ -3857,13 +3878,13 @@ var LEGACY_ALIASES = {
|
|
|
3857
3878
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3858
3879
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3859
3880
|
};
|
|
3860
|
-
var
|
|
3881
|
+
var bind = requireFunctionBind();
|
|
3861
3882
|
var hasOwn = requireHasown();
|
|
3862
|
-
var $concat =
|
|
3863
|
-
var $spliceApply =
|
|
3864
|
-
var $replace =
|
|
3865
|
-
var $strSlice =
|
|
3866
|
-
var $exec =
|
|
3883
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
3884
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
3885
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
3886
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
3887
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
3867
3888
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
3868
3889
|
var reEscapeChar = /\\(\\)?/g;
|
|
3869
3890
|
var stringToPath = function stringToPath2(string) {
|
|
@@ -5361,60 +5382,27 @@ const HomePage = () => {
|
|
|
5361
5382
|
] })
|
|
5362
5383
|
] });
|
|
5363
5384
|
};
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
console.log(
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
console.log("
|
|
5373
|
-
console.log("
|
|
5374
|
-
console.log("
|
|
5375
|
-
console.log(" Field.Label type:", typeof Field.Label);
|
|
5376
|
-
console.log(" Field.Label $$typeof:", Field.Label?.$$typeof);
|
|
5377
|
-
console.log(" Field.Error:", Field.Error);
|
|
5378
|
-
console.log(" Field.Error type:", typeof Field.Error);
|
|
5379
|
-
console.log(" Field.Error $$typeof:", Field.Error?.$$typeof);
|
|
5380
|
-
console.log(" Field.Hint:", Field.Hint);
|
|
5381
|
-
console.log(" Field.Hint type:", typeof Field.Hint);
|
|
5382
|
-
console.log(" TextInput:", TextInput);
|
|
5383
|
-
console.log(" TextInput type:", typeof TextInput);
|
|
5384
|
-
console.log(" TextInput $$typeof:", TextInput?.$$typeof);
|
|
5385
|
-
console.log(" Toggle:", Toggle);
|
|
5386
|
-
console.log(" Toggle type:", typeof Toggle);
|
|
5387
|
-
console.log(" Toggle $$typeof:", Toggle?.$$typeof);
|
|
5388
|
-
console.log(" PhoneInput:", PhoneInput);
|
|
5385
|
+
let PhoneInputTemp = PhoneInputModule;
|
|
5386
|
+
let unwrapCount = 0;
|
|
5387
|
+
while (PhoneInputTemp && typeof PhoneInputTemp === "object" && PhoneInputTemp.default && unwrapCount < 5) {
|
|
5388
|
+
console.log(`🔧 Unwrapping PhoneInput layer ${unwrapCount}:`, PhoneInputTemp);
|
|
5389
|
+
PhoneInputTemp = PhoneInputTemp.default;
|
|
5390
|
+
unwrapCount++;
|
|
5391
|
+
}
|
|
5392
|
+
const PhoneInput = PhoneInputTemp;
|
|
5393
|
+
console.log("🔍 ==================== PhoneInput Final Check ====================");
|
|
5394
|
+
console.log(" Unwrap iterations:", unwrapCount);
|
|
5395
|
+
console.log(" PhoneInput FINAL:", PhoneInput);
|
|
5389
5396
|
console.log(" PhoneInput type:", typeof PhoneInput);
|
|
5390
5397
|
console.log(" PhoneInput $$typeof:", PhoneInput?.$$typeof);
|
|
5398
|
+
console.log(" PhoneInput name:", PhoneInput?.name);
|
|
5391
5399
|
console.log(" PhoneInput displayName:", PhoneInput?.displayName);
|
|
5392
|
-
console.log("
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
}
|
|
5399
|
-
try {
|
|
5400
|
-
const testLabel = React.createElement(Field.Label, { children: "test" });
|
|
5401
|
-
console.log(" ✅ Field.Label createElement succeeded:", testLabel);
|
|
5402
|
-
} catch (e2) {
|
|
5403
|
-
console.error(" ❌ Field.Label createElement FAILED:", e2);
|
|
5404
|
-
}
|
|
5405
|
-
try {
|
|
5406
|
-
const testInput = React.createElement(TextInput, { value: "test" });
|
|
5407
|
-
console.log(" ✅ TextInput createElement succeeded:", testInput);
|
|
5408
|
-
} catch (e2) {
|
|
5409
|
-
console.error(" ❌ TextInput createElement FAILED:", e2);
|
|
5410
|
-
}
|
|
5411
|
-
try {
|
|
5412
|
-
const testToggle = React.createElement(Toggle, { checked: false });
|
|
5413
|
-
console.log(" ✅ Toggle createElement succeeded:", testToggle);
|
|
5414
|
-
} catch (e2) {
|
|
5415
|
-
console.error(" ❌ Toggle createElement FAILED:", e2);
|
|
5416
|
-
}
|
|
5417
|
-
console.log("🔍 ==================== UserFormFields Debug End ====================");
|
|
5400
|
+
console.log(" Is function?:", typeof PhoneInput === "function");
|
|
5401
|
+
console.log(
|
|
5402
|
+
" Is valid React component?:",
|
|
5403
|
+
typeof PhoneInput === "function" || PhoneInput && PhoneInput.$$typeof
|
|
5404
|
+
);
|
|
5405
|
+
console.log("🔍 ================================================================");
|
|
5418
5406
|
const StyledPhoneInputWrapper = styled.div`
|
|
5419
5407
|
width: 100%;
|
|
5420
5408
|
|
|
@@ -5569,19 +5557,6 @@ const UserFormFields = ({
|
|
|
5569
5557
|
isPasswordRequired = false,
|
|
5570
5558
|
hasBeenTouched = false
|
|
5571
5559
|
}) => {
|
|
5572
|
-
console.log("🎨 UserFormFields RENDER START");
|
|
5573
|
-
console.log(" Props received:", {
|
|
5574
|
-
userData,
|
|
5575
|
-
emailError,
|
|
5576
|
-
phoneError,
|
|
5577
|
-
showPasswordHint,
|
|
5578
|
-
isPasswordRequired,
|
|
5579
|
-
hasBeenTouched
|
|
5580
|
-
});
|
|
5581
|
-
console.log(" About to render Field.Root, type:", typeof Field.Root);
|
|
5582
|
-
console.log(" About to render TextInput, type:", typeof TextInput);
|
|
5583
|
-
console.log(" About to render Toggle, type:", typeof Toggle);
|
|
5584
|
-
console.log(" About to render PhoneInput, type:", typeof PhoneInput);
|
|
5585
5560
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5586
5561
|
/* @__PURE__ */ jsxs(
|
|
5587
5562
|
Field.Root,
|
|
@@ -5811,14 +5786,7 @@ const useUserForm = (initialData = {}) => {
|
|
|
5811
5786
|
isSubmitDisabled
|
|
5812
5787
|
};
|
|
5813
5788
|
};
|
|
5814
|
-
console.log("🔷 CreateUserForm - Component Imports:");
|
|
5815
|
-
console.log(" UserFormFields:", UserFormFields);
|
|
5816
|
-
console.log(" UserFormFields type:", typeof UserFormFields);
|
|
5817
|
-
console.log(" UserFormFields $$typeof:", UserFormFields?.$$typeof);
|
|
5818
|
-
console.log(" UserFormLayout:", UserFormLayout);
|
|
5819
|
-
console.log(" UserFormLayout type:", typeof UserFormLayout);
|
|
5820
5789
|
const CreateUserForm = () => {
|
|
5821
|
-
console.log("🔷 CreateUserForm RENDERING");
|
|
5822
5790
|
const [isLoading, setIsLoading] = useState(false);
|
|
5823
5791
|
const { toggleNotification } = useNotification();
|
|
5824
5792
|
const navigate = useNavigate();
|
|
@@ -5862,25 +5830,20 @@ const CreateUserForm = () => {
|
|
|
5862
5830
|
isSubmitButtonDisabled: isSubmitDisabled
|
|
5863
5831
|
}
|
|
5864
5832
|
),
|
|
5865
|
-
/* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsx(UserFormLayout, { children:
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
isPasswordRequired: true,
|
|
5880
|
-
hasBeenTouched
|
|
5881
|
-
}
|
|
5882
|
-
);
|
|
5883
|
-
})() }) })
|
|
5833
|
+
/* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsx(UserFormLayout, { children: /* @__PURE__ */ jsx(
|
|
5834
|
+
UserFormFields,
|
|
5835
|
+
{
|
|
5836
|
+
userData,
|
|
5837
|
+
onTextInputChange: handlers.onTextInputChange,
|
|
5838
|
+
onPhoneChange: handlers.onPhoneChange,
|
|
5839
|
+
onToggleInputChange: handlers.onToggleInputChange,
|
|
5840
|
+
onEmailBlur: handlers.onEmailBlur,
|
|
5841
|
+
emailError,
|
|
5842
|
+
phoneError,
|
|
5843
|
+
isPasswordRequired: true,
|
|
5844
|
+
hasBeenTouched
|
|
5845
|
+
}
|
|
5846
|
+
) }) })
|
|
5884
5847
|
] });
|
|
5885
5848
|
};
|
|
5886
5849
|
const PasswordResetButton = ({
|
|
@@ -5914,7 +5877,6 @@ const PasswordResetButton = ({
|
|
|
5914
5877
|
}
|
|
5915
5878
|
return button;
|
|
5916
5879
|
};
|
|
5917
|
-
console.log("🔶 EditUserForm - UserFormFields import:", UserFormFields, "type:", typeof UserFormFields);
|
|
5918
5880
|
const MetaWrapper = styled(Box)`
|
|
5919
5881
|
width: 100%;
|
|
5920
5882
|
display: flex;
|
|
@@ -6212,11 +6174,6 @@ const EditUserForm = ({ data }) => {
|
|
|
6212
6174
|
)
|
|
6213
6175
|
] });
|
|
6214
6176
|
};
|
|
6215
|
-
console.log("📤 forms/index.ts Re-export Debug:");
|
|
6216
|
-
console.log(" UserFormFields from import:", UserFormFields);
|
|
6217
|
-
console.log(" UserFormFields type:", typeof UserFormFields);
|
|
6218
|
-
console.log(" UserFormLayout from import:", UserFormLayout);
|
|
6219
|
-
console.log(" UserFormLayout type:", typeof UserFormLayout);
|
|
6220
6177
|
const EditView = () => {
|
|
6221
6178
|
const { id } = useParams();
|
|
6222
6179
|
const { toggleNotification } = useNotification();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const admin = require("@strapi/strapi/admin");
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-BIHS9XB4.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-
|
|
2
|
+
import { P as PLUGIN_ID } from "./index-Do9Y0scX.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-
|
|
742
|
+
Component: () => Promise.resolve().then(() => require("./App-C_pWLYYH.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-
|
|
764
|
+
const component = await Promise.resolve().then(() => require("./index-C87l6qcA.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-
|
|
5
|
+
import { g as getFirebaseConfig, s as saveFirebaseConfig, d as delFirebaseConfig, a as savePasswordSettings } from "./api-T8QRCile.mjs";
|
|
6
6
|
import { useNavigate } from "react-router-dom";
|
|
7
7
|
function SettingsPage() {
|
|
8
8
|
const { toggleNotification } = useNotification();
|
|
@@ -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-
|
|
7
|
+
const api = require("./api-CxfueBVM.js");
|
|
8
8
|
const reactRouterDom = require("react-router-dom");
|
|
9
9
|
function SettingsPage() {
|
|
10
10
|
const { toggleNotification } = admin.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-
|
|
741
|
+
Component: () => import("./App-Dt8F60Rl.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-
|
|
763
|
+
const component = await import("./index-BzSU0Li9.mjs");
|
|
764
764
|
return component.default;
|
|
765
765
|
},
|
|
766
766
|
permissions: PERMISSIONS["menu-link"]
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { UserFormFields as UserFormFieldsImport } from "./shared/UserFormFields/UserFormFields";
|
|
2
|
-
import { UserFormLayout as UserFormLayoutImport } from "./shared/UserFormLayout/UserFormLayout";
|
|
3
1
|
export { default as CreateUserForm } from "./CreateUserForm/CreateUserForm";
|
|
4
2
|
export { default as EditUserForm } from "./EditUserForm/EditUserForm";
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
3
|
+
export { UserFormFields } from "./shared/UserFormFields/UserFormFields";
|
|
4
|
+
export { UserFormLayout } from "./shared/UserFormLayout/UserFormLayout";
|
package/package.json
CHANGED