@erikey/react 0.1.6 → 0.2.0
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/index.d.mts +2518 -54
- package/dist/index.d.ts +2518 -54
- package/dist/index.js +163 -341
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +161 -340
- package/dist/index.mjs.map +1 -1
- package/dist/ui/index.js +208 -38
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +208 -38
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +1 -3
package/dist/ui/index.mjs
CHANGED
|
@@ -2391,12 +2391,12 @@ function clsx() {
|
|
|
2391
2391
|
|
|
2392
2392
|
// ../../../node_modules/.pnpm/tailwind-merge@2.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
2393
2393
|
var CLASS_PART_SEPARATOR = "-";
|
|
2394
|
-
var createClassGroupUtils = (
|
|
2395
|
-
const classMap = createClassMap(
|
|
2394
|
+
var createClassGroupUtils = (config3) => {
|
|
2395
|
+
const classMap = createClassMap(config3);
|
|
2396
2396
|
const {
|
|
2397
2397
|
conflictingClassGroups,
|
|
2398
2398
|
conflictingClassGroupModifiers
|
|
2399
|
-
} =
|
|
2399
|
+
} = config3;
|
|
2400
2400
|
const getClassGroupId = (className) => {
|
|
2401
2401
|
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
2402
2402
|
if (classParts[0] === "" && classParts.length !== 1) {
|
|
@@ -2444,16 +2444,16 @@ var getGroupIdForArbitraryProperty = (className) => {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
}
|
|
2446
2446
|
};
|
|
2447
|
-
var createClassMap = (
|
|
2447
|
+
var createClassMap = (config3) => {
|
|
2448
2448
|
const {
|
|
2449
2449
|
theme,
|
|
2450
2450
|
prefix
|
|
2451
|
-
} =
|
|
2451
|
+
} = config3;
|
|
2452
2452
|
const classMap = {
|
|
2453
2453
|
nextPart: /* @__PURE__ */ new Map(),
|
|
2454
2454
|
validators: []
|
|
2455
2455
|
};
|
|
2456
|
-
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(
|
|
2456
|
+
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config3.classGroups), prefix);
|
|
2457
2457
|
prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
|
|
2458
2458
|
processClassesRecursively(classGroup, classMap, classGroupId, theme);
|
|
2459
2459
|
});
|
|
@@ -2554,11 +2554,11 @@ var createLruCache = (maxCacheSize) => {
|
|
|
2554
2554
|
};
|
|
2555
2555
|
};
|
|
2556
2556
|
var IMPORTANT_MODIFIER = "!";
|
|
2557
|
-
var createParseClassName = (
|
|
2557
|
+
var createParseClassName = (config3) => {
|
|
2558
2558
|
const {
|
|
2559
2559
|
separator,
|
|
2560
2560
|
experimentalParseClassName
|
|
2561
|
-
} =
|
|
2561
|
+
} = config3;
|
|
2562
2562
|
const isSeparatorSingleCharacter = separator.length === 1;
|
|
2563
2563
|
const firstSeparatorCharacter = separator[0];
|
|
2564
2564
|
const separatorLength = separator.length;
|
|
@@ -2623,10 +2623,10 @@ var sortModifiers = (modifiers) => {
|
|
|
2623
2623
|
sortedModifiers.push(...unsortedModifiers.sort());
|
|
2624
2624
|
return sortedModifiers;
|
|
2625
2625
|
};
|
|
2626
|
-
var createConfigUtils = (
|
|
2627
|
-
cache: createLruCache(
|
|
2628
|
-
parseClassName: createParseClassName(
|
|
2629
|
-
...createClassGroupUtils(
|
|
2626
|
+
var createConfigUtils = (config3) => ({
|
|
2627
|
+
cache: createLruCache(config3.cacheSize),
|
|
2628
|
+
parseClassName: createParseClassName(config3),
|
|
2629
|
+
...createClassGroupUtils(config3)
|
|
2630
2630
|
});
|
|
2631
2631
|
var SPLIT_CLASSES_REGEX = /\s+/;
|
|
2632
2632
|
var mergeClassList = (classList, configUtils) => {
|
|
@@ -2713,8 +2713,8 @@ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
|
2713
2713
|
let cacheSet;
|
|
2714
2714
|
let functionToCall = initTailwindMerge;
|
|
2715
2715
|
function initTailwindMerge(classList) {
|
|
2716
|
-
const
|
|
2717
|
-
configUtils = createConfigUtils(
|
|
2716
|
+
const config3 = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
|
|
2717
|
+
configUtils = createConfigUtils(config3);
|
|
2718
2718
|
cacheGet = configUtils.cache.get;
|
|
2719
2719
|
cacheSet = configUtils.cache.set;
|
|
2720
2720
|
functionToCall = tailwindMerge;
|
|
@@ -4854,7 +4854,7 @@ var NEVER = Object.freeze({
|
|
|
4854
4854
|
status: "aborted"
|
|
4855
4855
|
});
|
|
4856
4856
|
// @__NO_SIDE_EFFECTS__
|
|
4857
|
-
function $constructor(name,
|
|
4857
|
+
function $constructor(name, initializer4, params) {
|
|
4858
4858
|
function init(inst, def) {
|
|
4859
4859
|
var _a;
|
|
4860
4860
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -4863,7 +4863,7 @@ function $constructor(name, initializer3, params) {
|
|
|
4863
4863
|
});
|
|
4864
4864
|
(_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
|
|
4865
4865
|
inst._zod.traits.add(name);
|
|
4866
|
-
|
|
4866
|
+
initializer4(inst, def);
|
|
4867
4867
|
for (const k2 in _3.prototype) {
|
|
4868
4868
|
if (!(k2 in inst))
|
|
4869
4869
|
Object.defineProperty(inst, k2, { value: _3.prototype[k2].bind(inst) });
|
|
@@ -5461,10 +5461,10 @@ function prefixIssues(path, issues) {
|
|
|
5461
5461
|
function unwrapMessage(message) {
|
|
5462
5462
|
return typeof message === "string" ? message : message?.message;
|
|
5463
5463
|
}
|
|
5464
|
-
function finalizeIssue(iss, ctx,
|
|
5464
|
+
function finalizeIssue(iss, ctx, config3) {
|
|
5465
5465
|
const full = { ...iss, path: iss.path ?? [] };
|
|
5466
5466
|
if (!iss.message) {
|
|
5467
|
-
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(
|
|
5467
|
+
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config3.customError?.(iss)) ?? unwrapMessage(config3.localeError?.(iss)) ?? "Invalid input";
|
|
5468
5468
|
full.message = message;
|
|
5469
5469
|
}
|
|
5470
5470
|
delete full.inst;
|
|
@@ -5629,7 +5629,6 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
5629
5629
|
}
|
|
5630
5630
|
return result.value;
|
|
5631
5631
|
};
|
|
5632
|
-
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
5633
5632
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
5634
5633
|
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
5635
5634
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -5642,7 +5641,6 @@ var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
5642
5641
|
}
|
|
5643
5642
|
return result.value;
|
|
5644
5643
|
};
|
|
5645
|
-
var parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
|
|
5646
5644
|
var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
5647
5645
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
5648
5646
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -6913,8 +6911,8 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
6913
6911
|
let fastpass;
|
|
6914
6912
|
const isObject3 = isObject;
|
|
6915
6913
|
const jit = !globalConfig.jitless;
|
|
6916
|
-
const
|
|
6917
|
-
const fastEnabled = jit &&
|
|
6914
|
+
const allowsEval3 = allowsEval;
|
|
6915
|
+
const fastEnabled = jit && allowsEval3.value;
|
|
6918
6916
|
const catchall = def.catchall;
|
|
6919
6917
|
let value;
|
|
6920
6918
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -10466,10 +10464,10 @@ function getElementRef(element) {
|
|
|
10466
10464
|
// ../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
10467
10465
|
var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
10468
10466
|
var cx = clsx;
|
|
10469
|
-
var cva = (base,
|
|
10467
|
+
var cva = (base, config3) => (props) => {
|
|
10470
10468
|
var _config_compoundVariants;
|
|
10471
|
-
if ((
|
|
10472
|
-
const { variants, defaultVariants } =
|
|
10469
|
+
if ((config3 === null || config3 === void 0 ? void 0 : config3.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
10470
|
+
const { variants, defaultVariants } = config3;
|
|
10473
10471
|
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
10474
10472
|
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
10475
10473
|
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
@@ -10485,7 +10483,7 @@ var cva = (base, config2) => (props) => {
|
|
|
10485
10483
|
acc[key] = value;
|
|
10486
10484
|
return acc;
|
|
10487
10485
|
}, {});
|
|
10488
|
-
const getCompoundVariantClassNames =
|
|
10486
|
+
const getCompoundVariantClassNames = config3 === null || config3 === void 0 ? void 0 : (_config_compoundVariants = config3.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
10489
10487
|
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
10490
10488
|
return Object.entries(compoundVariantOptions).every((param2) => {
|
|
10491
10489
|
let [key, value] = param2;
|
|
@@ -11551,13 +11549,13 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
11551
11549
|
}
|
|
11552
11550
|
return coords;
|
|
11553
11551
|
}
|
|
11554
|
-
var computePosition = async (reference, floating,
|
|
11552
|
+
var computePosition = async (reference, floating, config3) => {
|
|
11555
11553
|
const {
|
|
11556
11554
|
placement = "bottom",
|
|
11557
11555
|
strategy = "absolute",
|
|
11558
11556
|
middleware = [],
|
|
11559
11557
|
platform: platform2
|
|
11560
|
-
} =
|
|
11558
|
+
} = config3;
|
|
11561
11559
|
const validMiddleware = middleware.filter(Boolean);
|
|
11562
11560
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
|
|
11563
11561
|
let rects = await platform2.getElementRects({
|
|
@@ -13098,15 +13096,15 @@ function useFloating(options) {
|
|
|
13098
13096
|
if (!referenceRef.current || !floatingRef.current) {
|
|
13099
13097
|
return;
|
|
13100
13098
|
}
|
|
13101
|
-
const
|
|
13099
|
+
const config3 = {
|
|
13102
13100
|
placement,
|
|
13103
13101
|
strategy,
|
|
13104
13102
|
middleware: latestMiddleware
|
|
13105
13103
|
};
|
|
13106
13104
|
if (platformRef.current) {
|
|
13107
|
-
|
|
13105
|
+
config3.platform = platformRef.current;
|
|
13108
13106
|
}
|
|
13109
|
-
computePosition2(referenceRef.current, floatingRef.current,
|
|
13107
|
+
computePosition2(referenceRef.current, floatingRef.current, config3).then((data2) => {
|
|
13110
13108
|
const fullData = {
|
|
13111
13109
|
...data2,
|
|
13112
13110
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -17327,12 +17325,12 @@ function createFormControl(props = {}) {
|
|
|
17327
17325
|
options.shouldFocus && !validationResult && iterateFieldsByAction(_fields, _focusInput, name ? fieldNames : _names.mount);
|
|
17328
17326
|
return validationResult;
|
|
17329
17327
|
};
|
|
17330
|
-
const getValues = (fieldNames,
|
|
17328
|
+
const getValues = (fieldNames, config3) => {
|
|
17331
17329
|
let values = {
|
|
17332
17330
|
..._state.mount ? _formValues : _defaultValues
|
|
17333
17331
|
};
|
|
17334
|
-
if (
|
|
17335
|
-
values = extractFormValues(
|
|
17332
|
+
if (config3) {
|
|
17333
|
+
values = extractFormValues(config3.dirtyFields ? _formState.dirtyFields : _formState.touchedFields, values);
|
|
17336
17334
|
}
|
|
17337
17335
|
return isUndefined(fieldNames) ? values : isString(fieldNames) ? get(values, fieldNames) : fieldNames.map((name) => get(values, name));
|
|
17338
17336
|
};
|
|
@@ -18218,6 +18216,178 @@ function n(e) {
|
|
|
18218
18216
|
return e.replace(/\]|\[/g, "");
|
|
18219
18217
|
}
|
|
18220
18218
|
|
|
18219
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.js
|
|
18220
|
+
var NEVER2 = Object.freeze({
|
|
18221
|
+
status: "aborted"
|
|
18222
|
+
});
|
|
18223
|
+
// @__NO_SIDE_EFFECTS__
|
|
18224
|
+
function $constructor2(name, initializer4, params) {
|
|
18225
|
+
function init(inst, def) {
|
|
18226
|
+
var _a;
|
|
18227
|
+
Object.defineProperty(inst, "_zod", {
|
|
18228
|
+
value: inst._zod ?? {},
|
|
18229
|
+
enumerable: false
|
|
18230
|
+
});
|
|
18231
|
+
(_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
|
|
18232
|
+
inst._zod.traits.add(name);
|
|
18233
|
+
initializer4(inst, def);
|
|
18234
|
+
for (const k2 in _3.prototype) {
|
|
18235
|
+
if (!(k2 in inst))
|
|
18236
|
+
Object.defineProperty(inst, k2, { value: _3.prototype[k2].bind(inst) });
|
|
18237
|
+
}
|
|
18238
|
+
inst._zod.constr = _3;
|
|
18239
|
+
inst._zod.def = def;
|
|
18240
|
+
}
|
|
18241
|
+
const Parent = params?.Parent ?? Object;
|
|
18242
|
+
class Definition extends Parent {
|
|
18243
|
+
}
|
|
18244
|
+
Object.defineProperty(Definition, "name", { value: name });
|
|
18245
|
+
function _3(def) {
|
|
18246
|
+
var _a;
|
|
18247
|
+
const inst = params?.Parent ? new Definition() : this;
|
|
18248
|
+
init(inst, def);
|
|
18249
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
18250
|
+
for (const fn of inst._zod.deferred) {
|
|
18251
|
+
fn();
|
|
18252
|
+
}
|
|
18253
|
+
return inst;
|
|
18254
|
+
}
|
|
18255
|
+
Object.defineProperty(_3, "init", { value: init });
|
|
18256
|
+
Object.defineProperty(_3, Symbol.hasInstance, {
|
|
18257
|
+
value: (inst) => {
|
|
18258
|
+
if (params?.Parent && inst instanceof params.Parent)
|
|
18259
|
+
return true;
|
|
18260
|
+
return inst?._zod?.traits?.has(name);
|
|
18261
|
+
}
|
|
18262
|
+
});
|
|
18263
|
+
Object.defineProperty(_3, "name", { value: name });
|
|
18264
|
+
return _3;
|
|
18265
|
+
}
|
|
18266
|
+
var $brand2 = Symbol("zod_brand");
|
|
18267
|
+
var $ZodAsyncError2 = class extends Error {
|
|
18268
|
+
constructor() {
|
|
18269
|
+
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
18270
|
+
}
|
|
18271
|
+
};
|
|
18272
|
+
var globalConfig2 = {};
|
|
18273
|
+
function config2(newConfig) {
|
|
18274
|
+
if (newConfig)
|
|
18275
|
+
Object.assign(globalConfig2, newConfig);
|
|
18276
|
+
return globalConfig2;
|
|
18277
|
+
}
|
|
18278
|
+
|
|
18279
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.js
|
|
18280
|
+
function jsonStringifyReplacer2(_3, value) {
|
|
18281
|
+
if (typeof value === "bigint")
|
|
18282
|
+
return value.toString();
|
|
18283
|
+
return value;
|
|
18284
|
+
}
|
|
18285
|
+
function cached2(getter) {
|
|
18286
|
+
const set2 = false;
|
|
18287
|
+
return {
|
|
18288
|
+
get value() {
|
|
18289
|
+
if (!set2) {
|
|
18290
|
+
const value = getter();
|
|
18291
|
+
Object.defineProperty(this, "value", { value });
|
|
18292
|
+
return value;
|
|
18293
|
+
}
|
|
18294
|
+
throw new Error("cached value already set");
|
|
18295
|
+
}
|
|
18296
|
+
};
|
|
18297
|
+
}
|
|
18298
|
+
var captureStackTrace2 = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {
|
|
18299
|
+
};
|
|
18300
|
+
var allowsEval2 = cached2(() => {
|
|
18301
|
+
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
18302
|
+
return false;
|
|
18303
|
+
}
|
|
18304
|
+
try {
|
|
18305
|
+
const F2 = Function;
|
|
18306
|
+
new F2("");
|
|
18307
|
+
return true;
|
|
18308
|
+
} catch (_3) {
|
|
18309
|
+
return false;
|
|
18310
|
+
}
|
|
18311
|
+
});
|
|
18312
|
+
var NUMBER_FORMAT_RANGES2 = {
|
|
18313
|
+
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
18314
|
+
int32: [-2147483648, 2147483647],
|
|
18315
|
+
uint32: [0, 4294967295],
|
|
18316
|
+
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
18317
|
+
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
18318
|
+
};
|
|
18319
|
+
function unwrapMessage2(message) {
|
|
18320
|
+
return typeof message === "string" ? message : message?.message;
|
|
18321
|
+
}
|
|
18322
|
+
function finalizeIssue2(iss, ctx, config3) {
|
|
18323
|
+
const full = { ...iss, path: iss.path ?? [] };
|
|
18324
|
+
if (!iss.message) {
|
|
18325
|
+
const message = unwrapMessage2(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage2(ctx?.error?.(iss)) ?? unwrapMessage2(config3.customError?.(iss)) ?? unwrapMessage2(config3.localeError?.(iss)) ?? "Invalid input";
|
|
18326
|
+
full.message = message;
|
|
18327
|
+
}
|
|
18328
|
+
delete full.inst;
|
|
18329
|
+
delete full.continue;
|
|
18330
|
+
if (!ctx?.reportInput) {
|
|
18331
|
+
delete full.input;
|
|
18332
|
+
}
|
|
18333
|
+
return full;
|
|
18334
|
+
}
|
|
18335
|
+
|
|
18336
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.js
|
|
18337
|
+
var initializer3 = (inst, def) => {
|
|
18338
|
+
inst.name = "$ZodError";
|
|
18339
|
+
Object.defineProperty(inst, "_zod", {
|
|
18340
|
+
value: inst._zod,
|
|
18341
|
+
enumerable: false
|
|
18342
|
+
});
|
|
18343
|
+
Object.defineProperty(inst, "issues", {
|
|
18344
|
+
value: def,
|
|
18345
|
+
enumerable: false
|
|
18346
|
+
});
|
|
18347
|
+
Object.defineProperty(inst, "message", {
|
|
18348
|
+
get() {
|
|
18349
|
+
return JSON.stringify(def, jsonStringifyReplacer2, 2);
|
|
18350
|
+
},
|
|
18351
|
+
enumerable: true
|
|
18352
|
+
// configurable: false,
|
|
18353
|
+
});
|
|
18354
|
+
Object.defineProperty(inst, "toString", {
|
|
18355
|
+
value: () => inst.message,
|
|
18356
|
+
enumerable: false
|
|
18357
|
+
});
|
|
18358
|
+
};
|
|
18359
|
+
var $ZodError2 = $constructor2("$ZodError", initializer3);
|
|
18360
|
+
var $ZodRealError2 = $constructor2("$ZodError", initializer3, { Parent: Error });
|
|
18361
|
+
|
|
18362
|
+
// ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/parse.js
|
|
18363
|
+
var _parse2 = (_Err) => (schema, value, _ctx, _params) => {
|
|
18364
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
18365
|
+
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
18366
|
+
if (result instanceof Promise) {
|
|
18367
|
+
throw new $ZodAsyncError2();
|
|
18368
|
+
}
|
|
18369
|
+
if (result.issues.length) {
|
|
18370
|
+
const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue2(iss, ctx, config2())));
|
|
18371
|
+
captureStackTrace2(e, _params?.callee);
|
|
18372
|
+
throw e;
|
|
18373
|
+
}
|
|
18374
|
+
return result.value;
|
|
18375
|
+
};
|
|
18376
|
+
var parse4 = /* @__PURE__ */ _parse2($ZodRealError2);
|
|
18377
|
+
var _parseAsync2 = (_Err) => async (schema, value, _ctx, params) => {
|
|
18378
|
+
const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
|
|
18379
|
+
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
18380
|
+
if (result instanceof Promise)
|
|
18381
|
+
result = await result;
|
|
18382
|
+
if (result.issues.length) {
|
|
18383
|
+
const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue2(iss, ctx, config2())));
|
|
18384
|
+
captureStackTrace2(e, params?.callee);
|
|
18385
|
+
throw e;
|
|
18386
|
+
}
|
|
18387
|
+
return result.value;
|
|
18388
|
+
};
|
|
18389
|
+
var parseAsync3 = /* @__PURE__ */ _parseAsync2($ZodRealError2);
|
|
18390
|
+
|
|
18221
18391
|
// ../../../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
|
|
18222
18392
|
function t(r3, e) {
|
|
18223
18393
|
try {
|
|
@@ -18289,12 +18459,12 @@ function a(o2, a2, u) {
|
|
|
18289
18459
|
})(o2)) return function(s3, c, f2) {
|
|
18290
18460
|
try {
|
|
18291
18461
|
return Promise.resolve(t(function() {
|
|
18292
|
-
return Promise.resolve(("sync" === u.mode ?
|
|
18462
|
+
return Promise.resolve(("sync" === u.mode ? parse4 : parseAsync3)(o2, s3, a2)).then(function(e) {
|
|
18293
18463
|
return f2.shouldUseNativeValidation && o({}, f2), { errors: {}, values: u.raw ? Object.assign({}, s3) : e };
|
|
18294
18464
|
});
|
|
18295
18465
|
}, function(r3) {
|
|
18296
18466
|
if ((function(r4) {
|
|
18297
|
-
return r4 instanceof $
|
|
18467
|
+
return r4 instanceof $ZodError2;
|
|
18298
18468
|
})(r3)) return { values: {}, errors: s(i2(r3.issues, !f2.shouldUseNativeValidation && "all" === f2.criteriaMode), f2) };
|
|
18299
18469
|
throw r3;
|
|
18300
18470
|
}));
|
|
@@ -21290,10 +21460,10 @@ function UAItem(itemType, ua, rgxMap, uaCH) {
|
|
|
21290
21460
|
break;
|
|
21291
21461
|
case RESULT:
|
|
21292
21462
|
var data = this.data;
|
|
21293
|
-
var
|
|
21463
|
+
var parse5 = function(itemType2) {
|
|
21294
21464
|
return data[itemType2].getItem().setCH(uaCH2).parseCH().get();
|
|
21295
21465
|
};
|
|
21296
|
-
this.set(BROWSER,
|
|
21466
|
+
this.set(BROWSER, parse5(BROWSER)).set(CPU, parse5(CPU)).set(DEVICE, parse5(DEVICE)).set(ENGINE, parse5(ENGINE)).set(OS, parse5(OS));
|
|
21297
21467
|
}
|
|
21298
21468
|
return this;
|
|
21299
21469
|
};
|