@erikey/react 0.4.12 → 0.4.14
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/ui/index.mjs +150 -147
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/ui/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6
6
|
import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
|
|
7
7
|
|
|
8
8
|
// ../../../node_modules/.pnpm/lucide-react@0.462.0_react@19.0.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
9
|
-
var toKebabCase = (
|
|
9
|
+
var toKebabCase = (string2) => string2.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
10
10
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
11
11
|
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
12
12
|
}).join(" ").trim();
|
|
@@ -1224,32 +1224,32 @@ function twJoin() {
|
|
|
1224
1224
|
let index = 0;
|
|
1225
1225
|
let argument;
|
|
1226
1226
|
let resolvedValue;
|
|
1227
|
-
let
|
|
1227
|
+
let string2 = "";
|
|
1228
1228
|
while (index < arguments.length) {
|
|
1229
1229
|
if (argument = arguments[index++]) {
|
|
1230
1230
|
if (resolvedValue = toValue(argument)) {
|
|
1231
|
-
|
|
1232
|
-
|
|
1231
|
+
string2 && (string2 += " ");
|
|
1232
|
+
string2 += resolvedValue;
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
|
-
return
|
|
1236
|
+
return string2;
|
|
1237
1237
|
}
|
|
1238
1238
|
var toValue = (mix) => {
|
|
1239
1239
|
if (typeof mix === "string") {
|
|
1240
1240
|
return mix;
|
|
1241
1241
|
}
|
|
1242
1242
|
let resolvedValue;
|
|
1243
|
-
let
|
|
1243
|
+
let string2 = "";
|
|
1244
1244
|
for (let k = 0; k < mix.length; k++) {
|
|
1245
1245
|
if (mix[k]) {
|
|
1246
1246
|
if (resolvedValue = toValue(mix[k])) {
|
|
1247
|
-
|
|
1248
|
-
|
|
1247
|
+
string2 && (string2 += " ");
|
|
1248
|
+
string2 += resolvedValue;
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
|
-
return
|
|
1252
|
+
return string2;
|
|
1253
1253
|
};
|
|
1254
1254
|
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
1255
1255
|
let configUtils;
|
|
@@ -3442,10 +3442,10 @@ var util;
|
|
|
3442
3442
|
return void 0;
|
|
3443
3443
|
};
|
|
3444
3444
|
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
3445
|
-
function
|
|
3445
|
+
function joinValues2(array, separator = " | ") {
|
|
3446
3446
|
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
3447
3447
|
}
|
|
3448
|
-
util2.joinValues =
|
|
3448
|
+
util2.joinValues = joinValues2;
|
|
3449
3449
|
util2.jsonStringifyReplacer = (_, value) => {
|
|
3450
3450
|
if (typeof value === "bigint") {
|
|
3451
3451
|
return value.toString();
|
|
@@ -3569,31 +3569,31 @@ var ZodError = class _ZodError extends Error {
|
|
|
3569
3569
|
this.issues = issues;
|
|
3570
3570
|
}
|
|
3571
3571
|
format(_mapper) {
|
|
3572
|
-
const mapper = _mapper || function(
|
|
3573
|
-
return
|
|
3572
|
+
const mapper = _mapper || function(issue2) {
|
|
3573
|
+
return issue2.message;
|
|
3574
3574
|
};
|
|
3575
3575
|
const fieldErrors = { _errors: [] };
|
|
3576
3576
|
const processError = (error) => {
|
|
3577
|
-
for (const
|
|
3578
|
-
if (
|
|
3579
|
-
|
|
3580
|
-
} else if (
|
|
3581
|
-
processError(
|
|
3582
|
-
} else if (
|
|
3583
|
-
processError(
|
|
3584
|
-
} else if (
|
|
3585
|
-
fieldErrors._errors.push(mapper(
|
|
3577
|
+
for (const issue2 of error.issues) {
|
|
3578
|
+
if (issue2.code === "invalid_union") {
|
|
3579
|
+
issue2.unionErrors.map(processError);
|
|
3580
|
+
} else if (issue2.code === "invalid_return_type") {
|
|
3581
|
+
processError(issue2.returnTypeError);
|
|
3582
|
+
} else if (issue2.code === "invalid_arguments") {
|
|
3583
|
+
processError(issue2.argumentsError);
|
|
3584
|
+
} else if (issue2.path.length === 0) {
|
|
3585
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
3586
3586
|
} else {
|
|
3587
3587
|
let curr = fieldErrors;
|
|
3588
3588
|
let i3 = 0;
|
|
3589
|
-
while (i3 <
|
|
3590
|
-
const el =
|
|
3591
|
-
const terminal = i3 ===
|
|
3589
|
+
while (i3 < issue2.path.length) {
|
|
3590
|
+
const el = issue2.path[i3];
|
|
3591
|
+
const terminal = i3 === issue2.path.length - 1;
|
|
3592
3592
|
if (!terminal) {
|
|
3593
3593
|
curr[el] = curr[el] || { _errors: [] };
|
|
3594
3594
|
} else {
|
|
3595
3595
|
curr[el] = curr[el] || { _errors: [] };
|
|
3596
|
-
curr[el]._errors.push(mapper(
|
|
3596
|
+
curr[el]._errors.push(mapper(issue2));
|
|
3597
3597
|
}
|
|
3598
3598
|
curr = curr[el];
|
|
3599
3599
|
i3++;
|
|
@@ -3618,7 +3618,7 @@ var ZodError = class _ZodError extends Error {
|
|
|
3618
3618
|
get isEmpty() {
|
|
3619
3619
|
return this.issues.length === 0;
|
|
3620
3620
|
}
|
|
3621
|
-
flatten(mapper = (
|
|
3621
|
+
flatten(mapper = (issue2) => issue2.message) {
|
|
3622
3622
|
const fieldErrors = {};
|
|
3623
3623
|
const formErrors = [];
|
|
3624
3624
|
for (const sub of this.issues) {
|
|
@@ -3642,30 +3642,30 @@ ZodError.create = (issues) => {
|
|
|
3642
3642
|
};
|
|
3643
3643
|
|
|
3644
3644
|
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
3645
|
-
var errorMap = (
|
|
3645
|
+
var errorMap = (issue2, _ctx) => {
|
|
3646
3646
|
let message;
|
|
3647
|
-
switch (
|
|
3647
|
+
switch (issue2.code) {
|
|
3648
3648
|
case ZodIssueCode.invalid_type:
|
|
3649
|
-
if (
|
|
3649
|
+
if (issue2.received === ZodParsedType.undefined) {
|
|
3650
3650
|
message = "Required";
|
|
3651
3651
|
} else {
|
|
3652
|
-
message = `Expected ${
|
|
3652
|
+
message = `Expected ${issue2.expected}, received ${issue2.received}`;
|
|
3653
3653
|
}
|
|
3654
3654
|
break;
|
|
3655
3655
|
case ZodIssueCode.invalid_literal:
|
|
3656
|
-
message = `Invalid literal value, expected ${JSON.stringify(
|
|
3656
|
+
message = `Invalid literal value, expected ${JSON.stringify(issue2.expected, util.jsonStringifyReplacer)}`;
|
|
3657
3657
|
break;
|
|
3658
3658
|
case ZodIssueCode.unrecognized_keys:
|
|
3659
|
-
message = `Unrecognized key(s) in object: ${util.joinValues(
|
|
3659
|
+
message = `Unrecognized key(s) in object: ${util.joinValues(issue2.keys, ", ")}`;
|
|
3660
3660
|
break;
|
|
3661
3661
|
case ZodIssueCode.invalid_union:
|
|
3662
3662
|
message = `Invalid input`;
|
|
3663
3663
|
break;
|
|
3664
3664
|
case ZodIssueCode.invalid_union_discriminator:
|
|
3665
|
-
message = `Invalid discriminator value. Expected ${util.joinValues(
|
|
3665
|
+
message = `Invalid discriminator value. Expected ${util.joinValues(issue2.options)}`;
|
|
3666
3666
|
break;
|
|
3667
3667
|
case ZodIssueCode.invalid_enum_value:
|
|
3668
|
-
message = `Invalid enum value. Expected ${util.joinValues(
|
|
3668
|
+
message = `Invalid enum value. Expected ${util.joinValues(issue2.options)}, received '${issue2.received}'`;
|
|
3669
3669
|
break;
|
|
3670
3670
|
case ZodIssueCode.invalid_arguments:
|
|
3671
3671
|
message = `Invalid function arguments`;
|
|
@@ -3677,50 +3677,50 @@ var errorMap = (issue, _ctx) => {
|
|
|
3677
3677
|
message = `Invalid date`;
|
|
3678
3678
|
break;
|
|
3679
3679
|
case ZodIssueCode.invalid_string:
|
|
3680
|
-
if (typeof
|
|
3681
|
-
if ("includes" in
|
|
3682
|
-
message = `Invalid input: must include "${
|
|
3683
|
-
if (typeof
|
|
3684
|
-
message = `${message} at one or more positions greater than or equal to ${
|
|
3680
|
+
if (typeof issue2.validation === "object") {
|
|
3681
|
+
if ("includes" in issue2.validation) {
|
|
3682
|
+
message = `Invalid input: must include "${issue2.validation.includes}"`;
|
|
3683
|
+
if (typeof issue2.validation.position === "number") {
|
|
3684
|
+
message = `${message} at one or more positions greater than or equal to ${issue2.validation.position}`;
|
|
3685
3685
|
}
|
|
3686
|
-
} else if ("startsWith" in
|
|
3687
|
-
message = `Invalid input: must start with "${
|
|
3688
|
-
} else if ("endsWith" in
|
|
3689
|
-
message = `Invalid input: must end with "${
|
|
3686
|
+
} else if ("startsWith" in issue2.validation) {
|
|
3687
|
+
message = `Invalid input: must start with "${issue2.validation.startsWith}"`;
|
|
3688
|
+
} else if ("endsWith" in issue2.validation) {
|
|
3689
|
+
message = `Invalid input: must end with "${issue2.validation.endsWith}"`;
|
|
3690
3690
|
} else {
|
|
3691
|
-
util.assertNever(
|
|
3691
|
+
util.assertNever(issue2.validation);
|
|
3692
3692
|
}
|
|
3693
|
-
} else if (
|
|
3694
|
-
message = `Invalid ${
|
|
3693
|
+
} else if (issue2.validation !== "regex") {
|
|
3694
|
+
message = `Invalid ${issue2.validation}`;
|
|
3695
3695
|
} else {
|
|
3696
3696
|
message = "Invalid";
|
|
3697
3697
|
}
|
|
3698
3698
|
break;
|
|
3699
3699
|
case ZodIssueCode.too_small:
|
|
3700
|
-
if (
|
|
3701
|
-
message = `Array must contain ${
|
|
3702
|
-
else if (
|
|
3703
|
-
message = `String must contain ${
|
|
3704
|
-
else if (
|
|
3705
|
-
message = `Number must be ${
|
|
3706
|
-
else if (
|
|
3707
|
-
message = `Number must be ${
|
|
3708
|
-
else if (
|
|
3709
|
-
message = `Date must be ${
|
|
3700
|
+
if (issue2.type === "array")
|
|
3701
|
+
message = `Array must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `more than`} ${issue2.minimum} element(s)`;
|
|
3702
|
+
else if (issue2.type === "string")
|
|
3703
|
+
message = `String must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `over`} ${issue2.minimum} character(s)`;
|
|
3704
|
+
else if (issue2.type === "number")
|
|
3705
|
+
message = `Number must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${issue2.minimum}`;
|
|
3706
|
+
else if (issue2.type === "bigint")
|
|
3707
|
+
message = `Number must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${issue2.minimum}`;
|
|
3708
|
+
else if (issue2.type === "date")
|
|
3709
|
+
message = `Date must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue2.minimum))}`;
|
|
3710
3710
|
else
|
|
3711
3711
|
message = "Invalid input";
|
|
3712
3712
|
break;
|
|
3713
3713
|
case ZodIssueCode.too_big:
|
|
3714
|
-
if (
|
|
3715
|
-
message = `Array must contain ${
|
|
3716
|
-
else if (
|
|
3717
|
-
message = `String must contain ${
|
|
3718
|
-
else if (
|
|
3719
|
-
message = `Number must be ${
|
|
3720
|
-
else if (
|
|
3721
|
-
message = `BigInt must be ${
|
|
3722
|
-
else if (
|
|
3723
|
-
message = `Date must be ${
|
|
3714
|
+
if (issue2.type === "array")
|
|
3715
|
+
message = `Array must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `less than`} ${issue2.maximum} element(s)`;
|
|
3716
|
+
else if (issue2.type === "string")
|
|
3717
|
+
message = `String must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `under`} ${issue2.maximum} character(s)`;
|
|
3718
|
+
else if (issue2.type === "number")
|
|
3719
|
+
message = `Number must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`;
|
|
3720
|
+
else if (issue2.type === "bigint")
|
|
3721
|
+
message = `BigInt must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`;
|
|
3722
|
+
else if (issue2.type === "date")
|
|
3723
|
+
message = `Date must be ${issue2.exact ? `exactly` : issue2.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue2.maximum))}`;
|
|
3724
3724
|
else
|
|
3725
3725
|
message = "Invalid input";
|
|
3726
3726
|
break;
|
|
@@ -3731,14 +3731,14 @@ var errorMap = (issue, _ctx) => {
|
|
|
3731
3731
|
message = `Intersection results could not be merged`;
|
|
3732
3732
|
break;
|
|
3733
3733
|
case ZodIssueCode.not_multiple_of:
|
|
3734
|
-
message = `Number must be a multiple of ${
|
|
3734
|
+
message = `Number must be a multiple of ${issue2.multipleOf}`;
|
|
3735
3735
|
break;
|
|
3736
3736
|
case ZodIssueCode.not_finite:
|
|
3737
3737
|
message = "Number must be finite";
|
|
3738
3738
|
break;
|
|
3739
3739
|
default:
|
|
3740
3740
|
message = _ctx.defaultError;
|
|
3741
|
-
util.assertNever(
|
|
3741
|
+
util.assertNever(issue2);
|
|
3742
3742
|
}
|
|
3743
3743
|
return { message };
|
|
3744
3744
|
};
|
|
@@ -3778,7 +3778,7 @@ var makeIssue = (params) => {
|
|
|
3778
3778
|
};
|
|
3779
3779
|
function addIssueToContext(ctx, issueData) {
|
|
3780
3780
|
const overrideMap = getErrorMap();
|
|
3781
|
-
const
|
|
3781
|
+
const issue2 = makeIssue({
|
|
3782
3782
|
issueData,
|
|
3783
3783
|
data: ctx.data,
|
|
3784
3784
|
path: ctx.path,
|
|
@@ -3793,7 +3793,7 @@ function addIssueToContext(ctx, issueData) {
|
|
|
3793
3793
|
// then global default map
|
|
3794
3794
|
].filter((x) => !!x)
|
|
3795
3795
|
});
|
|
3796
|
-
ctx.common.issues.push(
|
|
3796
|
+
ctx.common.issues.push(issue2);
|
|
3797
3797
|
}
|
|
3798
3798
|
var ParseStatus = class _ParseStatus {
|
|
3799
3799
|
constructor() {
|
|
@@ -4251,11 +4251,11 @@ function datetimeRegex(args) {
|
|
|
4251
4251
|
regex = `${regex}(${opts.join("|")})`;
|
|
4252
4252
|
return new RegExp(`^${regex}$`);
|
|
4253
4253
|
}
|
|
4254
|
-
function isValidIP(ip,
|
|
4255
|
-
if ((
|
|
4254
|
+
function isValidIP(ip, version2) {
|
|
4255
|
+
if ((version2 === "v4" || !version2) && ipv4Regex.test(ip)) {
|
|
4256
4256
|
return true;
|
|
4257
4257
|
}
|
|
4258
|
-
if ((
|
|
4258
|
+
if ((version2 === "v6" || !version2) && ipv6Regex.test(ip)) {
|
|
4259
4259
|
return true;
|
|
4260
4260
|
}
|
|
4261
4261
|
return false;
|
|
@@ -4267,8 +4267,8 @@ function isValidJWT(jwt, alg) {
|
|
|
4267
4267
|
const [header] = jwt.split(".");
|
|
4268
4268
|
if (!header)
|
|
4269
4269
|
return false;
|
|
4270
|
-
const
|
|
4271
|
-
const decoded = JSON.parse(atob(
|
|
4270
|
+
const base642 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
|
|
4271
|
+
const decoded = JSON.parse(atob(base642));
|
|
4272
4272
|
if (typeof decoded !== "object" || decoded === null)
|
|
4273
4273
|
return false;
|
|
4274
4274
|
if ("typ" in decoded && decoded?.typ !== "JWT")
|
|
@@ -4282,11 +4282,11 @@ function isValidJWT(jwt, alg) {
|
|
|
4282
4282
|
return false;
|
|
4283
4283
|
}
|
|
4284
4284
|
}
|
|
4285
|
-
function isValidCidr(ip,
|
|
4286
|
-
if ((
|
|
4285
|
+
function isValidCidr(ip, version2) {
|
|
4286
|
+
if ((version2 === "v4" || !version2) && ipv4CidrRegex.test(ip)) {
|
|
4287
4287
|
return true;
|
|
4288
4288
|
}
|
|
4289
|
-
if ((
|
|
4289
|
+
if ((version2 === "v6" || !version2) && ipv6CidrRegex.test(ip)) {
|
|
4290
4290
|
return true;
|
|
4291
4291
|
}
|
|
4292
4292
|
return false;
|
|
@@ -5751,9 +5751,9 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
5751
5751
|
...this._def,
|
|
5752
5752
|
unknownKeys: "strict",
|
|
5753
5753
|
...message !== void 0 ? {
|
|
5754
|
-
errorMap: (
|
|
5755
|
-
const defaultError = this._def.errorMap?.(
|
|
5756
|
-
if (
|
|
5754
|
+
errorMap: (issue2, ctx) => {
|
|
5755
|
+
const defaultError = this._def.errorMap?.(issue2, ctx).message ?? ctx.defaultError;
|
|
5756
|
+
if (issue2.code === "unrecognized_keys")
|
|
5757
5757
|
return {
|
|
5758
5758
|
message: errorUtil.errToObj(message).message ?? defaultError
|
|
5759
5759
|
};
|
|
@@ -7284,9 +7284,9 @@ var coerce = {
|
|
|
7284
7284
|
function cn(...inputs) {
|
|
7285
7285
|
return twMerge(clsx(inputs));
|
|
7286
7286
|
}
|
|
7287
|
-
function isValidEmail(
|
|
7287
|
+
function isValidEmail(email2) {
|
|
7288
7288
|
const emailRegex2 = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
7289
|
-
return emailRegex2.test(
|
|
7289
|
+
return emailRegex2.test(email2);
|
|
7290
7290
|
}
|
|
7291
7291
|
function getLocalizedError({
|
|
7292
7292
|
error,
|
|
@@ -9606,7 +9606,7 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
|
|
|
9606
9606
|
}
|
|
9607
9607
|
} else {
|
|
9608
9608
|
const valueDate = ref.valueAsDate || new Date(inputValue);
|
|
9609
|
-
const convertTimeToDate = (
|
|
9609
|
+
const convertTimeToDate = (time2) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + time2);
|
|
9610
9610
|
const isTime = ref.type == "time";
|
|
9611
9611
|
const isWeek = ref.type == "week";
|
|
9612
9612
|
if (isString(maxOutput.value) && inputValue) {
|
|
@@ -11047,7 +11047,7 @@ function n(e) {
|
|
|
11047
11047
|
return e.replace(/\]|\[/g, "");
|
|
11048
11048
|
}
|
|
11049
11049
|
|
|
11050
|
-
// ../../../node_modules/.pnpm/zod@
|
|
11050
|
+
// ../../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.js
|
|
11051
11051
|
var NEVER = Object.freeze({
|
|
11052
11052
|
status: "aborted"
|
|
11053
11053
|
});
|
|
@@ -11107,7 +11107,7 @@ function config(newConfig) {
|
|
|
11107
11107
|
return globalConfig;
|
|
11108
11108
|
}
|
|
11109
11109
|
|
|
11110
|
-
// ../../../node_modules/.pnpm/zod@
|
|
11110
|
+
// ../../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js
|
|
11111
11111
|
function jsonStringifyReplacer(_, value) {
|
|
11112
11112
|
if (typeof value === "bigint")
|
|
11113
11113
|
return value.toString();
|
|
@@ -11126,7 +11126,8 @@ function cached(getter) {
|
|
|
11126
11126
|
}
|
|
11127
11127
|
};
|
|
11128
11128
|
}
|
|
11129
|
-
var
|
|
11129
|
+
var EVALUATING = Symbol("evaluating");
|
|
11130
|
+
var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
11130
11131
|
};
|
|
11131
11132
|
var allowsEval = cached(() => {
|
|
11132
11133
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
@@ -11164,7 +11165,7 @@ function finalizeIssue(iss, ctx, config2) {
|
|
|
11164
11165
|
return full;
|
|
11165
11166
|
}
|
|
11166
11167
|
|
|
11167
|
-
// ../../../node_modules/.pnpm/zod@
|
|
11168
|
+
// ../../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js
|
|
11168
11169
|
var initializer = (inst, def) => {
|
|
11169
11170
|
inst.name = "$ZodError";
|
|
11170
11171
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -11175,13 +11176,7 @@ var initializer = (inst, def) => {
|
|
|
11175
11176
|
value: def,
|
|
11176
11177
|
enumerable: false
|
|
11177
11178
|
});
|
|
11178
|
-
|
|
11179
|
-
get() {
|
|
11180
|
-
return JSON.stringify(def, jsonStringifyReplacer, 2);
|
|
11181
|
-
},
|
|
11182
|
-
enumerable: true
|
|
11183
|
-
// configurable: false,
|
|
11184
|
-
});
|
|
11179
|
+
inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
|
|
11185
11180
|
Object.defineProperty(inst, "toString", {
|
|
11186
11181
|
value: () => inst.message,
|
|
11187
11182
|
enumerable: false
|
|
@@ -11190,7 +11185,7 @@ var initializer = (inst, def) => {
|
|
|
11190
11185
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
11191
11186
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
11192
11187
|
|
|
11193
|
-
// ../../../node_modules/.pnpm/zod@
|
|
11188
|
+
// ../../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js
|
|
11194
11189
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
11195
11190
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
11196
11191
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -11219,6 +11214,14 @@ var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
11219
11214
|
};
|
|
11220
11215
|
var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
|
|
11221
11216
|
|
|
11217
|
+
// ../../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.js
|
|
11218
|
+
var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
11219
|
+
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
11220
|
+
|
|
11221
|
+
// ../../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.js
|
|
11222
|
+
var $output = Symbol("ZodOutput");
|
|
11223
|
+
var $input = Symbol("ZodInput");
|
|
11224
|
+
|
|
11222
11225
|
// ../../../node_modules/.pnpm/@hookform+resolvers@5.2.2_react-hook-form@7.66.1_react@19.0.0_/node_modules/@hookform/resolvers/zod/dist/zod.mjs
|
|
11223
11226
|
function t(r3, e) {
|
|
11224
11227
|
try {
|
|
@@ -12540,10 +12543,10 @@ var sha256 = () => new Uint8Array(32);
|
|
|
12540
12543
|
var bytesToHex = (_bytes) => "";
|
|
12541
12544
|
|
|
12542
12545
|
// src/ui/lib/gravatar-utils.ts
|
|
12543
|
-
function getGravatarUrl(
|
|
12544
|
-
if (!
|
|
12546
|
+
function getGravatarUrl(email2, options) {
|
|
12547
|
+
if (!email2) return null;
|
|
12545
12548
|
try {
|
|
12546
|
-
const normalizedEmail =
|
|
12549
|
+
const normalizedEmail = email2.trim().toLowerCase();
|
|
12547
12550
|
const encoder = new TextEncoder();
|
|
12548
12551
|
const emailBytes = encoder.encode(normalizedEmail);
|
|
12549
12552
|
const hash = bytesToHex(sha256(emailBytes));
|
|
@@ -13644,8 +13647,8 @@ function ChangeEmailCard({
|
|
|
13644
13647
|
});
|
|
13645
13648
|
const resendForm = useForm();
|
|
13646
13649
|
const { isSubmitting } = form.formState;
|
|
13647
|
-
const changeEmail = async ({ email }) => {
|
|
13648
|
-
if (
|
|
13650
|
+
const changeEmail = async ({ email: email2 }) => {
|
|
13651
|
+
if (email2 === sessionData?.user.email) {
|
|
13649
13652
|
await new Promise((resolve) => setTimeout(resolve));
|
|
13650
13653
|
toast({
|
|
13651
13654
|
variant: "error",
|
|
@@ -13655,7 +13658,7 @@ function ChangeEmailCard({
|
|
|
13655
13658
|
}
|
|
13656
13659
|
try {
|
|
13657
13660
|
await authClient2.changeEmail({
|
|
13658
|
-
newEmail:
|
|
13661
|
+
newEmail: email2,
|
|
13659
13662
|
callbackURL: window.location.pathname,
|
|
13660
13663
|
fetchOptions: { throw: true }
|
|
13661
13664
|
});
|
|
@@ -13684,11 +13687,11 @@ function ChangeEmailCard({
|
|
|
13684
13687
|
};
|
|
13685
13688
|
const resendVerification = async () => {
|
|
13686
13689
|
if (!sessionData) return;
|
|
13687
|
-
const
|
|
13690
|
+
const email2 = sessionData.user.email;
|
|
13688
13691
|
setResendDisabled(true);
|
|
13689
13692
|
try {
|
|
13690
13693
|
await authClient2.sendVerificationEmail({
|
|
13691
|
-
email,
|
|
13694
|
+
email: email2,
|
|
13692
13695
|
fetchOptions: { throw: true }
|
|
13693
13696
|
});
|
|
13694
13697
|
toast({
|
|
@@ -16265,10 +16268,10 @@ function ChangePasswordCard({
|
|
|
16265
16268
|
const { isSubmitting } = form.formState;
|
|
16266
16269
|
const setPassword = async () => {
|
|
16267
16270
|
if (!sessionData) return;
|
|
16268
|
-
const
|
|
16271
|
+
const email2 = sessionData?.user.email;
|
|
16269
16272
|
try {
|
|
16270
16273
|
await authClient2.requestPasswordReset({
|
|
16271
|
-
email,
|
|
16274
|
+
email: email2,
|
|
16272
16275
|
redirectTo: `${baseURL}${basePath}/${viewPaths.RESET_PASSWORD}`,
|
|
16273
16276
|
fetchOptions: { throw: true }
|
|
16274
16277
|
});
|
|
@@ -16604,8 +16607,8 @@ var itemListToArray = function(header) {
|
|
|
16604
16607
|
var lowerize = function(str) {
|
|
16605
16608
|
return isString2(str) ? str.toLowerCase() : str;
|
|
16606
16609
|
};
|
|
16607
|
-
var majorize = function(
|
|
16608
|
-
return isString2(
|
|
16610
|
+
var majorize = function(version2) {
|
|
16611
|
+
return isString2(version2) ? strip(/[^\d\.]/g, version2).split(".")[0] : void 0;
|
|
16609
16612
|
};
|
|
16610
16613
|
var setProps = function(arr) {
|
|
16611
16614
|
for (var i3 in arr) {
|
|
@@ -20028,19 +20031,19 @@ var SPECIAL_VALUES = {
|
|
|
20028
20031
|
"-infinity": Number.NEGATIVE_INFINITY
|
|
20029
20032
|
};
|
|
20030
20033
|
var ISO_DATE_REGEX = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;
|
|
20031
|
-
function isValidDate(
|
|
20032
|
-
return
|
|
20034
|
+
function isValidDate(date2) {
|
|
20035
|
+
return date2 instanceof Date && !isNaN(date2.getTime());
|
|
20033
20036
|
}
|
|
20034
20037
|
function parseISODate(value) {
|
|
20035
20038
|
const match = ISO_DATE_REGEX.exec(value);
|
|
20036
20039
|
if (!match) return null;
|
|
20037
20040
|
const [, year, month, day, hour, minute, second, ms, offsetSign, offsetHour, offsetMinute] = match;
|
|
20038
|
-
let
|
|
20041
|
+
let date2 = new Date(Date.UTC(parseInt(year, 10), parseInt(month, 10) - 1, parseInt(day, 10), parseInt(hour, 10), parseInt(minute, 10), parseInt(second, 10), ms ? parseInt(ms.padEnd(3, "0"), 10) : 0));
|
|
20039
20042
|
if (offsetSign) {
|
|
20040
20043
|
const offset = (parseInt(offsetHour, 10) * 60 + parseInt(offsetMinute, 10)) * (offsetSign === "+" ? -1 : 1);
|
|
20041
|
-
|
|
20044
|
+
date2.setUTCMinutes(date2.getUTCMinutes() + offset);
|
|
20042
20045
|
}
|
|
20043
|
-
return isValidDate(
|
|
20046
|
+
return isValidDate(date2) ? date2 : null;
|
|
20044
20047
|
}
|
|
20045
20048
|
function betterJSONParse(value, options = {}) {
|
|
20046
20049
|
const { strict = false, warnings = false, reviver, parseDates = true } = options;
|
|
@@ -20065,8 +20068,8 @@ function betterJSONParse(value, options = {}) {
|
|
|
20065
20068
|
return;
|
|
20066
20069
|
}
|
|
20067
20070
|
if (parseDates && typeof value$1 === "string") {
|
|
20068
|
-
const
|
|
20069
|
-
if (
|
|
20071
|
+
const date2 = parseISODate(value$1);
|
|
20072
|
+
if (date2) return date2;
|
|
20070
20073
|
}
|
|
20071
20074
|
return reviver ? reviver(key, value$1) : value$1;
|
|
20072
20075
|
};
|
|
@@ -22099,7 +22102,7 @@ function Root8({ open: openProp, onOpenChange, children, onDrag: onDragProp, onR
|
|
|
22099
22102
|
let element = el;
|
|
22100
22103
|
const highlightedText = (_window_getSelection = window.getSelection()) == null ? void 0 : _window_getSelection.toString();
|
|
22101
22104
|
const swipeAmount = drawerRef.current ? getTranslate(drawerRef.current, direction) : null;
|
|
22102
|
-
const
|
|
22105
|
+
const date2 = /* @__PURE__ */ new Date();
|
|
22103
22106
|
if (element.tagName === "SELECT") {
|
|
22104
22107
|
return false;
|
|
22105
22108
|
}
|
|
@@ -22109,7 +22112,7 @@ function Root8({ open: openProp, onOpenChange, children, onDrag: onDragProp, onR
|
|
|
22109
22112
|
if (direction === "right" || direction === "left") {
|
|
22110
22113
|
return true;
|
|
22111
22114
|
}
|
|
22112
|
-
if (openTime.current &&
|
|
22115
|
+
if (openTime.current && date2.getTime() - openTime.current.getTime() < 500) {
|
|
22113
22116
|
return false;
|
|
22114
22117
|
}
|
|
22115
22118
|
if (swipeAmount !== null) {
|
|
@@ -22120,12 +22123,12 @@ function Root8({ open: openProp, onOpenChange, children, onDrag: onDragProp, onR
|
|
|
22120
22123
|
if (highlightedText && highlightedText.length > 0) {
|
|
22121
22124
|
return false;
|
|
22122
22125
|
}
|
|
22123
|
-
if (lastTimeDragPrevented.current &&
|
|
22124
|
-
lastTimeDragPrevented.current =
|
|
22126
|
+
if (lastTimeDragPrevented.current && date2.getTime() - lastTimeDragPrevented.current.getTime() < scrollLockTimeout && swipeAmount === 0) {
|
|
22127
|
+
lastTimeDragPrevented.current = date2;
|
|
22125
22128
|
return false;
|
|
22126
22129
|
}
|
|
22127
22130
|
if (isDraggingInDirection) {
|
|
22128
|
-
lastTimeDragPrevented.current =
|
|
22131
|
+
lastTimeDragPrevented.current = date2;
|
|
22129
22132
|
return false;
|
|
22130
22133
|
}
|
|
22131
22134
|
while (element) {
|
|
@@ -23642,11 +23645,11 @@ function OTPInputGroup({
|
|
|
23642
23645
|
// src/ui/components/auth/forms/email-otp-form.tsx
|
|
23643
23646
|
import { jsx as jsx70, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
23644
23647
|
function EmailOTPForm(props) {
|
|
23645
|
-
const [
|
|
23646
|
-
if (!
|
|
23648
|
+
const [email2, setEmail] = useState29();
|
|
23649
|
+
if (!email2) {
|
|
23647
23650
|
return /* @__PURE__ */ jsx70(EmailForm, { ...props, setEmail });
|
|
23648
23651
|
}
|
|
23649
|
-
return /* @__PURE__ */ jsx70(OTPForm, { ...props, email });
|
|
23652
|
+
return /* @__PURE__ */ jsx70(OTPForm, { ...props, email: email2 });
|
|
23650
23653
|
}
|
|
23651
23654
|
function EmailForm({
|
|
23652
23655
|
className,
|
|
@@ -23680,14 +23683,14 @@ function EmailForm({
|
|
|
23680
23683
|
useEffect13(() => {
|
|
23681
23684
|
setIsSubmitting?.(form.formState.isSubmitting);
|
|
23682
23685
|
}, [form.formState.isSubmitting, setIsSubmitting]);
|
|
23683
|
-
async function sendEmailOTP({ email }) {
|
|
23686
|
+
async function sendEmailOTP({ email: email2 }) {
|
|
23684
23687
|
const fetchOptions = {
|
|
23685
23688
|
throw: true,
|
|
23686
23689
|
headers: await getCaptchaHeaders("/email-otp/send-verification-otp")
|
|
23687
23690
|
};
|
|
23688
23691
|
try {
|
|
23689
23692
|
await authClient2.emailOtp.sendVerificationOtp({
|
|
23690
|
-
email,
|
|
23693
|
+
email: email2,
|
|
23691
23694
|
type: "sign-in",
|
|
23692
23695
|
fetchOptions
|
|
23693
23696
|
});
|
|
@@ -23695,7 +23698,7 @@ function EmailForm({
|
|
|
23695
23698
|
variant: "success",
|
|
23696
23699
|
message: localization.EMAIL_OTP_VERIFICATION_SENT
|
|
23697
23700
|
});
|
|
23698
|
-
setEmail(
|
|
23701
|
+
setEmail(email2);
|
|
23699
23702
|
} catch (error) {
|
|
23700
23703
|
toast({
|
|
23701
23704
|
variant: "error",
|
|
@@ -23768,7 +23771,7 @@ function OTPForm({
|
|
|
23768
23771
|
otpSeparators = 0,
|
|
23769
23772
|
redirectTo,
|
|
23770
23773
|
setIsSubmitting,
|
|
23771
|
-
email
|
|
23774
|
+
email: email2
|
|
23772
23775
|
}) {
|
|
23773
23776
|
const {
|
|
23774
23777
|
authClient: authClient2,
|
|
@@ -23800,7 +23803,7 @@ function OTPForm({
|
|
|
23800
23803
|
async function verifyCode({ code }) {
|
|
23801
23804
|
try {
|
|
23802
23805
|
await authClient2.signIn.emailOtp({
|
|
23803
|
-
email,
|
|
23806
|
+
email: email2,
|
|
23804
23807
|
otp: code,
|
|
23805
23808
|
fetchOptions: { throw: true }
|
|
23806
23809
|
});
|
|
@@ -23902,7 +23905,7 @@ function EmailVerificationForm({
|
|
|
23902
23905
|
viewPaths
|
|
23903
23906
|
} = useContext55(AuthUIContext);
|
|
23904
23907
|
localization = { ...contextLocalization, ...localization };
|
|
23905
|
-
const
|
|
23908
|
+
const email2 = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("email") || "" : "";
|
|
23906
23909
|
const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({
|
|
23907
23910
|
redirectTo
|
|
23908
23911
|
});
|
|
@@ -23934,7 +23937,7 @@ function EmailVerificationForm({
|
|
|
23934
23937
|
async function verifyCode({ code }) {
|
|
23935
23938
|
try {
|
|
23936
23939
|
const data = await authClient2.emailOtp.verifyEmail({
|
|
23937
|
-
email,
|
|
23940
|
+
email: email2,
|
|
23938
23941
|
otp: code,
|
|
23939
23942
|
fetchOptions: { throw: true }
|
|
23940
23943
|
});
|
|
@@ -23967,7 +23970,7 @@ function EmailVerificationForm({
|
|
|
23967
23970
|
setCountdown(30);
|
|
23968
23971
|
try {
|
|
23969
23972
|
await authClient2.emailOtp.sendVerificationOtp({
|
|
23970
|
-
email,
|
|
23973
|
+
email: email2,
|
|
23971
23974
|
type: "email-verification",
|
|
23972
23975
|
fetchOptions: { throw: true }
|
|
23973
23976
|
});
|
|
@@ -23988,7 +23991,7 @@ function EmailVerificationForm({
|
|
|
23988
23991
|
setCountdown(0);
|
|
23989
23992
|
}
|
|
23990
23993
|
}
|
|
23991
|
-
if (!
|
|
23994
|
+
if (!email2) {
|
|
23992
23995
|
return /* @__PURE__ */ jsx71("div", { className: cn("grid w-full gap-6", className), children: /* @__PURE__ */ jsxs57("div", { className: "text-center", children: [
|
|
23993
23996
|
/* @__PURE__ */ jsx71("h2", { className: "font-semibold text-destructive text-lg", children: "Invalid Request" }),
|
|
23994
23997
|
/* @__PURE__ */ jsx71("p", { className: "text-muted-foreground text-sm", children: localization.EMAIL_REQUIRED || "Email address is required" })
|
|
@@ -24119,14 +24122,14 @@ function ForgotPasswordForm({
|
|
|
24119
24122
|
useEffect15(() => {
|
|
24120
24123
|
setIsSubmitting?.(form.formState.isSubmitting);
|
|
24121
24124
|
}, [form.formState.isSubmitting, setIsSubmitting]);
|
|
24122
|
-
async function forgotPassword({ email }) {
|
|
24125
|
+
async function forgotPassword({ email: email2 }) {
|
|
24123
24126
|
try {
|
|
24124
24127
|
const fetchOptions = {
|
|
24125
24128
|
throw: true,
|
|
24126
24129
|
headers: await getCaptchaHeaders("/forget-password")
|
|
24127
24130
|
};
|
|
24128
24131
|
await authClient2.requestPasswordReset({
|
|
24129
|
-
email,
|
|
24132
|
+
email: email2,
|
|
24130
24133
|
redirectTo: `${baseURL}${basePath}/${viewPaths.RESET_PASSWORD}`,
|
|
24131
24134
|
fetchOptions
|
|
24132
24135
|
});
|
|
@@ -24261,14 +24264,14 @@ function MagicLinkForm({
|
|
|
24261
24264
|
useEffect16(() => {
|
|
24262
24265
|
setIsSubmitting?.(form.formState.isSubmitting);
|
|
24263
24266
|
}, [form.formState.isSubmitting, setIsSubmitting]);
|
|
24264
|
-
async function sendMagicLink({ email }) {
|
|
24267
|
+
async function sendMagicLink({ email: email2 }) {
|
|
24265
24268
|
try {
|
|
24266
24269
|
const fetchOptions = {
|
|
24267
24270
|
throw: true,
|
|
24268
24271
|
headers: await getCaptchaHeaders("/sign-in/magic-link")
|
|
24269
24272
|
};
|
|
24270
24273
|
await authClient2.signIn.magicLink({
|
|
24271
|
-
email,
|
|
24274
|
+
email: email2,
|
|
24272
24275
|
callbackURL: getCallbackURL(),
|
|
24273
24276
|
fetchOptions
|
|
24274
24277
|
});
|
|
@@ -24656,19 +24659,19 @@ function SignInForm({
|
|
|
24656
24659
|
setIsSubmitting?.(form.formState.isSubmitting || transitionPending);
|
|
24657
24660
|
}, [form.formState.isSubmitting, transitionPending, setIsSubmitting]);
|
|
24658
24661
|
async function signIn({
|
|
24659
|
-
email,
|
|
24662
|
+
email: email2,
|
|
24660
24663
|
password,
|
|
24661
24664
|
rememberMe
|
|
24662
24665
|
}) {
|
|
24663
24666
|
try {
|
|
24664
24667
|
let response = {};
|
|
24665
|
-
if (usernameEnabled && !isValidEmail(
|
|
24668
|
+
if (usernameEnabled && !isValidEmail(email2)) {
|
|
24666
24669
|
const fetchOptions = {
|
|
24667
24670
|
throw: true,
|
|
24668
24671
|
headers: await getCaptchaHeaders("/sign-in/username")
|
|
24669
24672
|
};
|
|
24670
24673
|
response = await authClient2.signIn.username({
|
|
24671
|
-
username:
|
|
24674
|
+
username: email2,
|
|
24672
24675
|
password,
|
|
24673
24676
|
rememberMe,
|
|
24674
24677
|
fetchOptions
|
|
@@ -24679,7 +24682,7 @@ function SignInForm({
|
|
|
24679
24682
|
headers: await getCaptchaHeaders("/sign-in/email")
|
|
24680
24683
|
};
|
|
24681
24684
|
response = await authClient2.signIn.email({
|
|
24682
|
-
email,
|
|
24685
|
+
email: email2,
|
|
24683
24686
|
password,
|
|
24684
24687
|
rememberMe,
|
|
24685
24688
|
fetchOptions
|
|
@@ -24705,7 +24708,7 @@ function SignInForm({
|
|
|
24705
24708
|
});
|
|
24706
24709
|
if (emailVerification?.otp && error?.error?.code === "EMAIL_NOT_VERIFIED") {
|
|
24707
24710
|
navigate(
|
|
24708
|
-
`${basePath}/${viewPaths.EMAIL_VERIFICATION}?email=${encodeURIComponent(
|
|
24711
|
+
`${basePath}/${viewPaths.EMAIL_VERIFICATION}?email=${encodeURIComponent(email2)}`
|
|
24709
24712
|
);
|
|
24710
24713
|
}
|
|
24711
24714
|
}
|
|
@@ -25010,7 +25013,7 @@ function SignUpForm({
|
|
|
25010
25013
|
};
|
|
25011
25014
|
const openFileDialog = () => fileInputRef.current?.click();
|
|
25012
25015
|
async function signUp({
|
|
25013
|
-
email,
|
|
25016
|
+
email: email2,
|
|
25014
25017
|
password,
|
|
25015
25018
|
name,
|
|
25016
25019
|
username,
|
|
@@ -25046,7 +25049,7 @@ function SignUpForm({
|
|
|
25046
25049
|
additionalParams.image = image;
|
|
25047
25050
|
}
|
|
25048
25051
|
const data = await authClient2.signUp.email({
|
|
25049
|
-
email,
|
|
25052
|
+
email: email2,
|
|
25050
25053
|
password,
|
|
25051
25054
|
name: name || "",
|
|
25052
25055
|
...additionalParams,
|
|
@@ -25058,7 +25061,7 @@ function SignUpForm({
|
|
|
25058
25061
|
await onSuccess();
|
|
25059
25062
|
} else if (emailVerification?.otp) {
|
|
25060
25063
|
navigate(
|
|
25061
|
-
`${basePath}/${viewPaths.EMAIL_VERIFICATION}?email=${encodeURIComponent(
|
|
25064
|
+
`${basePath}/${viewPaths.EMAIL_VERIFICATION}?email=${encodeURIComponent(email2)}`
|
|
25062
25065
|
);
|
|
25063
25066
|
} else {
|
|
25064
25067
|
navigate(
|
|
@@ -27988,10 +27991,10 @@ function InviteMemberDialog({
|
|
|
27988
27991
|
}
|
|
27989
27992
|
});
|
|
27990
27993
|
const isSubmitting = form.formState.isSubmitting;
|
|
27991
|
-
async function onSubmit({ email, role: role2 }) {
|
|
27994
|
+
async function onSubmit({ email: email2, role: role2 }) {
|
|
27992
27995
|
try {
|
|
27993
27996
|
await authClient2.organization.inviteMember({
|
|
27994
|
-
email,
|
|
27997
|
+
email: email2,
|
|
27995
27998
|
role: role2,
|
|
27996
27999
|
organizationId: organization.id,
|
|
27997
28000
|
fetchOptions: { throw: true }
|