@telicent-oss/ds 0.27.2-TELFE-644.0 → 0.27.2
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/ds.js +531 -560
- package/dist/ds.umd.cjs +530 -559
- package/dist/logout-syncer/sw.js +1 -1
- package/dist/src/v1/components/data-display/Chip/Chip.stories.d.ts +3 -3
- package/dist/src/v1/components/inputs/Button/Button.stories.d.ts +3 -3
- package/dist/style.css +2 -2
- package/package.json +3 -4
package/dist/ds.js
CHANGED
|
@@ -16,7 +16,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16
16
|
});
|
|
17
17
|
var _a, _b, _c, _focused, _cleanup, _setup, _d, _online, _cleanup2, _setup2, _e, _gcTimeout, _f, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _g, _queries, _h, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _i, _mutations, _scopes, _mutationId, _j, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _k, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _l;
|
|
18
18
|
import * as React$2 from "react";
|
|
19
|
-
import React__default, { forwardRef, useContext, isValidElement, cloneElement, Children, useState, useEffect, useRef, useCallback,
|
|
19
|
+
import React__default, { forwardRef, useContext, isValidElement, cloneElement, Children, useState, useEffect, useRef, useCallback, createElement as createElement$1, PureComponent, createContext, useLayoutEffect, useImperativeHandle, useMemo, memo, Component } from "react";
|
|
20
20
|
import * as ReactDOM from "react-dom";
|
|
21
21
|
import ReactDOM__default, { flushSync, createPortal } from "react-dom";
|
|
22
22
|
function _mergeNamespaces(n, m) {
|
|
@@ -2447,8 +2447,7 @@ const TeliHeader = ({
|
|
|
2447
2447
|
}) => /* @__PURE__ */ jsx$1("header", { ...headerProps, children: /* @__PURE__ */ jsx$1("nav", { ...navProps, children: children2 }) });
|
|
2448
2448
|
var util;
|
|
2449
2449
|
(function(util2) {
|
|
2450
|
-
util2.assertEqual = (
|
|
2451
|
-
};
|
|
2450
|
+
util2.assertEqual = (val) => val;
|
|
2452
2451
|
function assertIs(_arg) {
|
|
2453
2452
|
}
|
|
2454
2453
|
util2.assertIs = assertIs;
|
|
@@ -2492,7 +2491,7 @@ var util;
|
|
|
2492
2491
|
}
|
|
2493
2492
|
return void 0;
|
|
2494
2493
|
};
|
|
2495
|
-
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" &&
|
|
2494
|
+
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
|
2496
2495
|
function joinValues(array2, separator = " | ") {
|
|
2497
2496
|
return array2.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
2498
2497
|
}
|
|
@@ -2544,7 +2543,7 @@ const getParsedType = (data) => {
|
|
|
2544
2543
|
case "string":
|
|
2545
2544
|
return ZodParsedType.string;
|
|
2546
2545
|
case "number":
|
|
2547
|
-
return
|
|
2546
|
+
return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
2548
2547
|
case "boolean":
|
|
2549
2548
|
return ZodParsedType.boolean;
|
|
2550
2549
|
case "function":
|
|
@@ -2905,11 +2904,24 @@ const isAborted = (x2) => x2.status === "aborted";
|
|
|
2905
2904
|
const isDirty = (x2) => x2.status === "dirty";
|
|
2906
2905
|
const isValid = (x2) => x2.status === "valid";
|
|
2907
2906
|
const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
|
|
2907
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
2908
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2909
|
+
return state.get(receiver);
|
|
2910
|
+
}
|
|
2911
|
+
function __classPrivateFieldSet(receiver, state, value2, kind, f) {
|
|
2912
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2913
|
+
return state.set(receiver, value2), value2;
|
|
2914
|
+
}
|
|
2915
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
2916
|
+
var e = new Error(message);
|
|
2917
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2918
|
+
};
|
|
2908
2919
|
var errorUtil;
|
|
2909
2920
|
(function(errorUtil2) {
|
|
2910
2921
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
2911
|
-
errorUtil2.toString = (message) => typeof message === "string" ? message : message
|
|
2922
|
+
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
2912
2923
|
})(errorUtil || (errorUtil = {}));
|
|
2924
|
+
var _ZodEnum_cache, _ZodNativeEnum_cache;
|
|
2913
2925
|
class ParseInputLazyPath {
|
|
2914
2926
|
constructor(parent, value2, path, key) {
|
|
2915
2927
|
this._cachedPath = [];
|
|
@@ -2920,7 +2932,7 @@ class ParseInputLazyPath {
|
|
|
2920
2932
|
}
|
|
2921
2933
|
get path() {
|
|
2922
2934
|
if (!this._cachedPath.length) {
|
|
2923
|
-
if (
|
|
2935
|
+
if (this._key instanceof Array) {
|
|
2924
2936
|
this._cachedPath.push(...this._path, ...this._key);
|
|
2925
2937
|
} else {
|
|
2926
2938
|
this._cachedPath.push(...this._path, this._key);
|
|
@@ -2958,16 +2970,17 @@ function processCreateParams(params) {
|
|
|
2958
2970
|
if (errorMap2)
|
|
2959
2971
|
return { errorMap: errorMap2, description };
|
|
2960
2972
|
const customMap = (iss, ctx) => {
|
|
2973
|
+
var _a2, _b2;
|
|
2961
2974
|
const { message } = params;
|
|
2962
2975
|
if (iss.code === "invalid_enum_value") {
|
|
2963
|
-
return { message: message
|
|
2976
|
+
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
|
2964
2977
|
}
|
|
2965
2978
|
if (typeof ctx.data === "undefined") {
|
|
2966
|
-
return { message: message
|
|
2979
|
+
return { message: (_a2 = message !== null && message !== void 0 ? message : required_error) !== null && _a2 !== void 0 ? _a2 : ctx.defaultError };
|
|
2967
2980
|
}
|
|
2968
2981
|
if (iss.code !== "invalid_type")
|
|
2969
2982
|
return { message: ctx.defaultError };
|
|
2970
|
-
return { message: message
|
|
2983
|
+
return { message: (_b2 = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b2 !== void 0 ? _b2 : ctx.defaultError };
|
|
2971
2984
|
};
|
|
2972
2985
|
return { errorMap: customMap, description };
|
|
2973
2986
|
}
|
|
@@ -3019,13 +3032,14 @@ class ZodType {
|
|
|
3019
3032
|
throw result.error;
|
|
3020
3033
|
}
|
|
3021
3034
|
safeParse(data, params) {
|
|
3035
|
+
var _a2;
|
|
3022
3036
|
const ctx = {
|
|
3023
3037
|
common: {
|
|
3024
3038
|
issues: [],
|
|
3025
|
-
async: (params
|
|
3026
|
-
contextualErrorMap: params
|
|
3039
|
+
async: (_a2 = params === null || params === void 0 ? void 0 : params.async) !== null && _a2 !== void 0 ? _a2 : false,
|
|
3040
|
+
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
|
|
3027
3041
|
},
|
|
3028
|
-
path: (params
|
|
3042
|
+
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
|
3029
3043
|
schemaErrorMap: this._def.errorMap,
|
|
3030
3044
|
parent: null,
|
|
3031
3045
|
data,
|
|
@@ -3056,7 +3070,7 @@ class ZodType {
|
|
|
3056
3070
|
issues: ctx.common.issues
|
|
3057
3071
|
};
|
|
3058
3072
|
} catch (err) {
|
|
3059
|
-
if ((_b2 = (_a2 = err
|
|
3073
|
+
if ((_b2 = (_a2 = err === null || err === void 0 ? void 0 : err.message) === null || _a2 === void 0 ? void 0 : _a2.toLowerCase()) === null || _b2 === void 0 ? void 0 : _b2.includes("encountered")) {
|
|
3060
3074
|
this["~standard"].async = true;
|
|
3061
3075
|
}
|
|
3062
3076
|
ctx.common = {
|
|
@@ -3081,10 +3095,10 @@ class ZodType {
|
|
|
3081
3095
|
const ctx = {
|
|
3082
3096
|
common: {
|
|
3083
3097
|
issues: [],
|
|
3084
|
-
contextualErrorMap: params
|
|
3098
|
+
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
|
|
3085
3099
|
async: true
|
|
3086
3100
|
},
|
|
3087
|
-
path: (params
|
|
3101
|
+
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
|
3088
3102
|
schemaErrorMap: this._def.errorMap,
|
|
3089
3103
|
parent: null,
|
|
3090
3104
|
data,
|
|
@@ -3274,14 +3288,13 @@ const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z
|
|
|
3274
3288
|
const dateRegexSource = `((\\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])))`;
|
|
3275
3289
|
const dateRegex = new RegExp(`^${dateRegexSource}$`);
|
|
3276
3290
|
function timeRegexSource(args) {
|
|
3277
|
-
let
|
|
3291
|
+
let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
|
|
3278
3292
|
if (args.precision) {
|
|
3279
|
-
|
|
3293
|
+
regex = `${regex}\\.\\d{${args.precision}}`;
|
|
3280
3294
|
} else if (args.precision == null) {
|
|
3281
|
-
|
|
3295
|
+
regex = `${regex}(\\.\\d+)?`;
|
|
3282
3296
|
}
|
|
3283
|
-
|
|
3284
|
-
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
|
3297
|
+
return regex;
|
|
3285
3298
|
}
|
|
3286
3299
|
function timeRegex(args) {
|
|
3287
3300
|
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
@@ -3313,14 +3326,12 @@ function isValidJWT(jwt, alg) {
|
|
|
3313
3326
|
const decoded = JSON.parse(atob(base64));
|
|
3314
3327
|
if (typeof decoded !== "object" || decoded === null)
|
|
3315
3328
|
return false;
|
|
3316
|
-
if (
|
|
3317
|
-
return false;
|
|
3318
|
-
if (!decoded.alg)
|
|
3329
|
+
if (!decoded.typ || !decoded.alg)
|
|
3319
3330
|
return false;
|
|
3320
3331
|
if (alg && decoded.alg !== alg)
|
|
3321
3332
|
return false;
|
|
3322
3333
|
return true;
|
|
3323
|
-
} catch {
|
|
3334
|
+
} catch (_a2) {
|
|
3324
3335
|
return false;
|
|
3325
3336
|
}
|
|
3326
3337
|
}
|
|
@@ -3479,7 +3490,7 @@ class ZodString extends ZodType {
|
|
|
3479
3490
|
} else if (check.kind === "url") {
|
|
3480
3491
|
try {
|
|
3481
3492
|
new URL(input.data);
|
|
3482
|
-
} catch {
|
|
3493
|
+
} catch (_a2) {
|
|
3483
3494
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
3484
3495
|
addIssueToContext(ctx, {
|
|
3485
3496
|
validation: "url",
|
|
@@ -3691,6 +3702,7 @@ class ZodString extends ZodType {
|
|
|
3691
3702
|
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
3692
3703
|
}
|
|
3693
3704
|
datetime(options) {
|
|
3705
|
+
var _a2, _b2;
|
|
3694
3706
|
if (typeof options === "string") {
|
|
3695
3707
|
return this._addCheck({
|
|
3696
3708
|
kind: "datetime",
|
|
@@ -3702,10 +3714,10 @@ class ZodString extends ZodType {
|
|
|
3702
3714
|
}
|
|
3703
3715
|
return this._addCheck({
|
|
3704
3716
|
kind: "datetime",
|
|
3705
|
-
precision: typeof (options
|
|
3706
|
-
offset: (options
|
|
3707
|
-
local: (options
|
|
3708
|
-
...errorUtil.errToObj(options
|
|
3717
|
+
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
|
3718
|
+
offset: (_a2 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a2 !== void 0 ? _a2 : false,
|
|
3719
|
+
local: (_b2 = options === null || options === void 0 ? void 0 : options.local) !== null && _b2 !== void 0 ? _b2 : false,
|
|
3720
|
+
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
|
3709
3721
|
});
|
|
3710
3722
|
}
|
|
3711
3723
|
date(message) {
|
|
@@ -3721,8 +3733,8 @@ class ZodString extends ZodType {
|
|
|
3721
3733
|
}
|
|
3722
3734
|
return this._addCheck({
|
|
3723
3735
|
kind: "time",
|
|
3724
|
-
precision: typeof (options
|
|
3725
|
-
...errorUtil.errToObj(options
|
|
3736
|
+
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
|
3737
|
+
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
|
3726
3738
|
});
|
|
3727
3739
|
}
|
|
3728
3740
|
duration(message) {
|
|
@@ -3739,8 +3751,8 @@ class ZodString extends ZodType {
|
|
|
3739
3751
|
return this._addCheck({
|
|
3740
3752
|
kind: "includes",
|
|
3741
3753
|
value: value2,
|
|
3742
|
-
position: options
|
|
3743
|
-
...errorUtil.errToObj(options
|
|
3754
|
+
position: options === null || options === void 0 ? void 0 : options.position,
|
|
3755
|
+
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
|
3744
3756
|
});
|
|
3745
3757
|
}
|
|
3746
3758
|
startsWith(value2, message) {
|
|
@@ -3872,10 +3884,11 @@ class ZodString extends ZodType {
|
|
|
3872
3884
|
}
|
|
3873
3885
|
}
|
|
3874
3886
|
ZodString.create = (params) => {
|
|
3887
|
+
var _a2;
|
|
3875
3888
|
return new ZodString({
|
|
3876
3889
|
checks: [],
|
|
3877
3890
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
3878
|
-
coerce: (params
|
|
3891
|
+
coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
|
|
3879
3892
|
...processCreateParams(params)
|
|
3880
3893
|
});
|
|
3881
3894
|
};
|
|
@@ -3883,9 +3896,9 @@ function floatSafeRemainder(val, step) {
|
|
|
3883
3896
|
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
3884
3897
|
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
|
3885
3898
|
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
3886
|
-
const valInt =
|
|
3887
|
-
const stepInt =
|
|
3888
|
-
return valInt % stepInt / 10
|
|
3899
|
+
const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
|
|
3900
|
+
const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
|
|
3901
|
+
return valInt % stepInt / Math.pow(10, decCount);
|
|
3889
3902
|
}
|
|
3890
3903
|
class ZodNumber extends ZodType {
|
|
3891
3904
|
constructor() {
|
|
@@ -4095,8 +4108,7 @@ class ZodNumber extends ZodType {
|
|
|
4095
4108
|
return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
|
|
4096
4109
|
}
|
|
4097
4110
|
get isFinite() {
|
|
4098
|
-
let max2 = null;
|
|
4099
|
-
let min2 = null;
|
|
4111
|
+
let max2 = null, min2 = null;
|
|
4100
4112
|
for (const ch of this._def.checks) {
|
|
4101
4113
|
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
4102
4114
|
return true;
|
|
@@ -4115,7 +4127,7 @@ ZodNumber.create = (params) => {
|
|
|
4115
4127
|
return new ZodNumber({
|
|
4116
4128
|
checks: [],
|
|
4117
4129
|
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
4118
|
-
coerce: (params
|
|
4130
|
+
coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
|
|
4119
4131
|
...processCreateParams(params)
|
|
4120
4132
|
});
|
|
4121
4133
|
};
|
|
@@ -4129,7 +4141,7 @@ class ZodBigInt extends ZodType {
|
|
|
4129
4141
|
if (this._def.coerce) {
|
|
4130
4142
|
try {
|
|
4131
4143
|
input.data = BigInt(input.data);
|
|
4132
|
-
} catch {
|
|
4144
|
+
} catch (_a2) {
|
|
4133
4145
|
return this._getInvalidInput(input);
|
|
4134
4146
|
}
|
|
4135
4147
|
}
|
|
@@ -4284,10 +4296,11 @@ class ZodBigInt extends ZodType {
|
|
|
4284
4296
|
}
|
|
4285
4297
|
}
|
|
4286
4298
|
ZodBigInt.create = (params) => {
|
|
4299
|
+
var _a2;
|
|
4287
4300
|
return new ZodBigInt({
|
|
4288
4301
|
checks: [],
|
|
4289
4302
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
4290
|
-
coerce: (params
|
|
4303
|
+
coerce: (_a2 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a2 !== void 0 ? _a2 : false,
|
|
4291
4304
|
...processCreateParams(params)
|
|
4292
4305
|
});
|
|
4293
4306
|
};
|
|
@@ -4312,7 +4325,7 @@ class ZodBoolean extends ZodType {
|
|
|
4312
4325
|
ZodBoolean.create = (params) => {
|
|
4313
4326
|
return new ZodBoolean({
|
|
4314
4327
|
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
4315
|
-
coerce: (params
|
|
4328
|
+
coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
|
|
4316
4329
|
...processCreateParams(params)
|
|
4317
4330
|
});
|
|
4318
4331
|
};
|
|
@@ -4331,7 +4344,7 @@ class ZodDate extends ZodType {
|
|
|
4331
4344
|
});
|
|
4332
4345
|
return INVALID;
|
|
4333
4346
|
}
|
|
4334
|
-
if (
|
|
4347
|
+
if (isNaN(input.data.getTime())) {
|
|
4335
4348
|
const ctx2 = this._getOrReturnCtx(input);
|
|
4336
4349
|
addIssueToContext(ctx2, {
|
|
4337
4350
|
code: ZodIssueCode.invalid_date
|
|
@@ -4420,7 +4433,7 @@ class ZodDate extends ZodType {
|
|
|
4420
4433
|
ZodDate.create = (params) => {
|
|
4421
4434
|
return new ZodDate({
|
|
4422
4435
|
checks: [],
|
|
4423
|
-
coerce: (params
|
|
4436
|
+
coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
|
|
4424
4437
|
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
4425
4438
|
...processCreateParams(params)
|
|
4426
4439
|
});
|
|
@@ -4695,8 +4708,7 @@ class ZodObject extends ZodType {
|
|
|
4695
4708
|
return this._cached;
|
|
4696
4709
|
const shape2 = this._def.shape();
|
|
4697
4710
|
const keys = util.objectKeys(shape2);
|
|
4698
|
-
this._cached = { shape: shape2, keys };
|
|
4699
|
-
return this._cached;
|
|
4711
|
+
return this._cached = { shape: shape2, keys };
|
|
4700
4712
|
}
|
|
4701
4713
|
_parse(input) {
|
|
4702
4714
|
const parsedType = this._getType(input);
|
|
@@ -4794,11 +4806,11 @@ class ZodObject extends ZodType {
|
|
|
4794
4806
|
unknownKeys: "strict",
|
|
4795
4807
|
...message !== void 0 ? {
|
|
4796
4808
|
errorMap: (issue, ctx) => {
|
|
4797
|
-
var _a2, _b2;
|
|
4798
|
-
const defaultError = ((_b2 = (_a2 = this._def).errorMap)
|
|
4809
|
+
var _a2, _b2, _c2, _d2;
|
|
4810
|
+
const defaultError = (_c2 = (_b2 = (_a2 = this._def).errorMap) === null || _b2 === void 0 ? void 0 : _b2.call(_a2, issue, ctx).message) !== null && _c2 !== void 0 ? _c2 : ctx.defaultError;
|
|
4799
4811
|
if (issue.code === "unrecognized_keys")
|
|
4800
4812
|
return {
|
|
4801
|
-
message: errorUtil.errToObj(message).message
|
|
4813
|
+
message: (_d2 = errorUtil.errToObj(message).message) !== null && _d2 !== void 0 ? _d2 : defaultError
|
|
4802
4814
|
};
|
|
4803
4815
|
return {
|
|
4804
4816
|
message: defaultError
|
|
@@ -4929,11 +4941,11 @@ class ZodObject extends ZodType {
|
|
|
4929
4941
|
}
|
|
4930
4942
|
pick(mask) {
|
|
4931
4943
|
const shape2 = {};
|
|
4932
|
-
|
|
4944
|
+
util.objectKeys(mask).forEach((key) => {
|
|
4933
4945
|
if (mask[key] && this.shape[key]) {
|
|
4934
4946
|
shape2[key] = this.shape[key];
|
|
4935
4947
|
}
|
|
4936
|
-
}
|
|
4948
|
+
});
|
|
4937
4949
|
return new ZodObject({
|
|
4938
4950
|
...this._def,
|
|
4939
4951
|
shape: () => shape2
|
|
@@ -4941,11 +4953,11 @@ class ZodObject extends ZodType {
|
|
|
4941
4953
|
}
|
|
4942
4954
|
omit(mask) {
|
|
4943
4955
|
const shape2 = {};
|
|
4944
|
-
|
|
4956
|
+
util.objectKeys(this.shape).forEach((key) => {
|
|
4945
4957
|
if (!mask[key]) {
|
|
4946
4958
|
shape2[key] = this.shape[key];
|
|
4947
4959
|
}
|
|
4948
|
-
}
|
|
4960
|
+
});
|
|
4949
4961
|
return new ZodObject({
|
|
4950
4962
|
...this._def,
|
|
4951
4963
|
shape: () => shape2
|
|
@@ -4959,14 +4971,14 @@ class ZodObject extends ZodType {
|
|
|
4959
4971
|
}
|
|
4960
4972
|
partial(mask) {
|
|
4961
4973
|
const newShape = {};
|
|
4962
|
-
|
|
4974
|
+
util.objectKeys(this.shape).forEach((key) => {
|
|
4963
4975
|
const fieldSchema = this.shape[key];
|
|
4964
4976
|
if (mask && !mask[key]) {
|
|
4965
4977
|
newShape[key] = fieldSchema;
|
|
4966
4978
|
} else {
|
|
4967
4979
|
newShape[key] = fieldSchema.optional();
|
|
4968
4980
|
}
|
|
4969
|
-
}
|
|
4981
|
+
});
|
|
4970
4982
|
return new ZodObject({
|
|
4971
4983
|
...this._def,
|
|
4972
4984
|
shape: () => newShape
|
|
@@ -4974,7 +4986,7 @@ class ZodObject extends ZodType {
|
|
|
4974
4986
|
}
|
|
4975
4987
|
required(mask) {
|
|
4976
4988
|
const newShape = {};
|
|
4977
|
-
|
|
4989
|
+
util.objectKeys(this.shape).forEach((key) => {
|
|
4978
4990
|
if (mask && !mask[key]) {
|
|
4979
4991
|
newShape[key] = this.shape[key];
|
|
4980
4992
|
} else {
|
|
@@ -4985,7 +4997,7 @@ class ZodObject extends ZodType {
|
|
|
4985
4997
|
}
|
|
4986
4998
|
newShape[key] = newField;
|
|
4987
4999
|
}
|
|
4988
|
-
}
|
|
5000
|
+
});
|
|
4989
5001
|
return new ZodObject({
|
|
4990
5002
|
...this._def,
|
|
4991
5003
|
shape: () => newShape
|
|
@@ -5601,7 +5613,12 @@ class ZodFunction extends ZodType {
|
|
|
5601
5613
|
return makeIssue({
|
|
5602
5614
|
data: args,
|
|
5603
5615
|
path: ctx.path,
|
|
5604
|
-
errorMaps: [
|
|
5616
|
+
errorMaps: [
|
|
5617
|
+
ctx.common.contextualErrorMap,
|
|
5618
|
+
ctx.schemaErrorMap,
|
|
5619
|
+
getErrorMap(),
|
|
5620
|
+
errorMap
|
|
5621
|
+
].filter((x2) => !!x2),
|
|
5605
5622
|
issueData: {
|
|
5606
5623
|
code: ZodIssueCode.invalid_arguments,
|
|
5607
5624
|
argumentsError: error
|
|
@@ -5612,7 +5629,12 @@ class ZodFunction extends ZodType {
|
|
|
5612
5629
|
return makeIssue({
|
|
5613
5630
|
data: returns,
|
|
5614
5631
|
path: ctx.path,
|
|
5615
|
-
errorMaps: [
|
|
5632
|
+
errorMaps: [
|
|
5633
|
+
ctx.common.contextualErrorMap,
|
|
5634
|
+
ctx.schemaErrorMap,
|
|
5635
|
+
getErrorMap(),
|
|
5636
|
+
errorMap
|
|
5637
|
+
].filter((x2) => !!x2),
|
|
5616
5638
|
issueData: {
|
|
5617
5639
|
code: ZodIssueCode.invalid_return_type,
|
|
5618
5640
|
returnTypeError: error
|
|
@@ -5736,6 +5758,10 @@ function createZodEnum(values2, params) {
|
|
|
5736
5758
|
});
|
|
5737
5759
|
}
|
|
5738
5760
|
class ZodEnum extends ZodType {
|
|
5761
|
+
constructor() {
|
|
5762
|
+
super(...arguments);
|
|
5763
|
+
_ZodEnum_cache.set(this, void 0);
|
|
5764
|
+
}
|
|
5739
5765
|
_parse(input) {
|
|
5740
5766
|
if (typeof input.data !== "string") {
|
|
5741
5767
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -5747,10 +5773,10 @@ class ZodEnum extends ZodType {
|
|
|
5747
5773
|
});
|
|
5748
5774
|
return INVALID;
|
|
5749
5775
|
}
|
|
5750
|
-
if (!this
|
|
5751
|
-
this
|
|
5776
|
+
if (!__classPrivateFieldGet(this, _ZodEnum_cache)) {
|
|
5777
|
+
__classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
|
|
5752
5778
|
}
|
|
5753
|
-
if (!this.
|
|
5779
|
+
if (!__classPrivateFieldGet(this, _ZodEnum_cache).has(input.data)) {
|
|
5754
5780
|
const ctx = this._getOrReturnCtx(input);
|
|
5755
5781
|
const expectedValues = this._def.values;
|
|
5756
5782
|
addIssueToContext(ctx, {
|
|
@@ -5799,8 +5825,13 @@ class ZodEnum extends ZodType {
|
|
|
5799
5825
|
});
|
|
5800
5826
|
}
|
|
5801
5827
|
}
|
|
5828
|
+
_ZodEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
5802
5829
|
ZodEnum.create = createZodEnum;
|
|
5803
5830
|
class ZodNativeEnum extends ZodType {
|
|
5831
|
+
constructor() {
|
|
5832
|
+
super(...arguments);
|
|
5833
|
+
_ZodNativeEnum_cache.set(this, void 0);
|
|
5834
|
+
}
|
|
5804
5835
|
_parse(input) {
|
|
5805
5836
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
5806
5837
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -5813,10 +5844,10 @@ class ZodNativeEnum extends ZodType {
|
|
|
5813
5844
|
});
|
|
5814
5845
|
return INVALID;
|
|
5815
5846
|
}
|
|
5816
|
-
if (!this
|
|
5817
|
-
this
|
|
5847
|
+
if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache)) {
|
|
5848
|
+
__classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)));
|
|
5818
5849
|
}
|
|
5819
|
-
if (!this.
|
|
5850
|
+
if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache).has(input.data)) {
|
|
5820
5851
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
5821
5852
|
addIssueToContext(ctx, {
|
|
5822
5853
|
received: ctx.data,
|
|
@@ -5831,6 +5862,7 @@ class ZodNativeEnum extends ZodType {
|
|
|
5831
5862
|
return this._def.values;
|
|
5832
5863
|
}
|
|
5833
5864
|
}
|
|
5865
|
+
_ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
5834
5866
|
ZodNativeEnum.create = (values2, params) => {
|
|
5835
5867
|
return new ZodNativeEnum({
|
|
5836
5868
|
values: values2,
|
|
@@ -5971,7 +6003,7 @@ class ZodEffects extends ZodType {
|
|
|
5971
6003
|
parent: ctx
|
|
5972
6004
|
});
|
|
5973
6005
|
if (!isValid(base))
|
|
5974
|
-
return
|
|
6006
|
+
return base;
|
|
5975
6007
|
const result = effect2.transform(base.value, checkCtx);
|
|
5976
6008
|
if (result instanceof Promise) {
|
|
5977
6009
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -5980,11 +6012,8 @@ class ZodEffects extends ZodType {
|
|
|
5980
6012
|
} else {
|
|
5981
6013
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
5982
6014
|
if (!isValid(base))
|
|
5983
|
-
return
|
|
5984
|
-
return Promise.resolve(effect2.transform(base.value, checkCtx)).then((result) => ({
|
|
5985
|
-
status: status.value,
|
|
5986
|
-
value: result
|
|
5987
|
-
}));
|
|
6015
|
+
return base;
|
|
6016
|
+
return Promise.resolve(effect2.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
|
|
5988
6017
|
});
|
|
5989
6018
|
}
|
|
5990
6019
|
}
|
|
@@ -6244,19 +6273,21 @@ function cleanParams(params, data) {
|
|
|
6244
6273
|
function custom(check, _params = {}, fatal) {
|
|
6245
6274
|
if (check)
|
|
6246
6275
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
6276
|
+
var _a2, _b2;
|
|
6247
6277
|
const r2 = check(data);
|
|
6248
6278
|
if (r2 instanceof Promise) {
|
|
6249
6279
|
return r2.then((r3) => {
|
|
6280
|
+
var _a3, _b3;
|
|
6250
6281
|
if (!r3) {
|
|
6251
6282
|
const params = cleanParams(_params, data);
|
|
6252
|
-
const _fatal = params.fatal
|
|
6283
|
+
const _fatal = (_b3 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b3 !== void 0 ? _b3 : true;
|
|
6253
6284
|
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
6254
6285
|
}
|
|
6255
6286
|
});
|
|
6256
6287
|
}
|
|
6257
6288
|
if (!r2) {
|
|
6258
6289
|
const params = cleanParams(_params, data);
|
|
6259
|
-
const _fatal = params.fatal
|
|
6290
|
+
const _fatal = (_b2 = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
|
|
6260
6291
|
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
6261
6292
|
}
|
|
6262
6293
|
return;
|
|
@@ -6356,98 +6387,99 @@ const coerce$1 = {
|
|
|
6356
6387
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
6357
6388
|
};
|
|
6358
6389
|
const NEVER = INVALID;
|
|
6359
|
-
|
|
6390
|
+
var z = /* @__PURE__ */ Object.freeze({
|
|
6360
6391
|
__proto__: null,
|
|
6361
|
-
|
|
6362
|
-
|
|
6392
|
+
defaultErrorMap: errorMap,
|
|
6393
|
+
setErrorMap,
|
|
6394
|
+
getErrorMap,
|
|
6395
|
+
makeIssue,
|
|
6363
6396
|
EMPTY_PATH,
|
|
6397
|
+
addIssueToContext,
|
|
6398
|
+
ParseStatus,
|
|
6364
6399
|
INVALID,
|
|
6365
|
-
|
|
6400
|
+
DIRTY,
|
|
6366
6401
|
OK,
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6402
|
+
isAborted,
|
|
6403
|
+
isDirty,
|
|
6404
|
+
isValid,
|
|
6405
|
+
isAsync,
|
|
6406
|
+
get util() {
|
|
6407
|
+
return util;
|
|
6408
|
+
},
|
|
6409
|
+
get objectUtil() {
|
|
6410
|
+
return objectUtil;
|
|
6411
|
+
},
|
|
6412
|
+
ZodParsedType,
|
|
6413
|
+
getParsedType,
|
|
6414
|
+
ZodType,
|
|
6415
|
+
datetimeRegex,
|
|
6416
|
+
ZodString,
|
|
6417
|
+
ZodNumber,
|
|
6371
6418
|
ZodBigInt,
|
|
6372
6419
|
ZodBoolean,
|
|
6373
|
-
ZodBranded,
|
|
6374
|
-
ZodCatch,
|
|
6375
6420
|
ZodDate,
|
|
6376
|
-
|
|
6421
|
+
ZodSymbol,
|
|
6422
|
+
ZodUndefined,
|
|
6423
|
+
ZodNull,
|
|
6424
|
+
ZodAny,
|
|
6425
|
+
ZodUnknown,
|
|
6426
|
+
ZodNever,
|
|
6427
|
+
ZodVoid,
|
|
6428
|
+
ZodArray,
|
|
6429
|
+
ZodObject,
|
|
6430
|
+
ZodUnion,
|
|
6377
6431
|
ZodDiscriminatedUnion,
|
|
6378
|
-
ZodEffects,
|
|
6379
|
-
ZodEnum,
|
|
6380
|
-
ZodError,
|
|
6381
|
-
get ZodFirstPartyTypeKind() {
|
|
6382
|
-
return ZodFirstPartyTypeKind;
|
|
6383
|
-
},
|
|
6384
|
-
ZodFunction,
|
|
6385
6432
|
ZodIntersection,
|
|
6386
|
-
|
|
6433
|
+
ZodTuple,
|
|
6434
|
+
ZodRecord,
|
|
6435
|
+
ZodMap,
|
|
6436
|
+
ZodSet,
|
|
6437
|
+
ZodFunction,
|
|
6387
6438
|
ZodLazy,
|
|
6388
6439
|
ZodLiteral,
|
|
6389
|
-
|
|
6390
|
-
ZodNaN,
|
|
6440
|
+
ZodEnum,
|
|
6391
6441
|
ZodNativeEnum,
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
ZodNumber,
|
|
6396
|
-
ZodObject,
|
|
6442
|
+
ZodPromise,
|
|
6443
|
+
ZodEffects,
|
|
6444
|
+
ZodTransformer: ZodEffects,
|
|
6397
6445
|
ZodOptional,
|
|
6398
|
-
|
|
6446
|
+
ZodNullable,
|
|
6447
|
+
ZodDefault,
|
|
6448
|
+
ZodCatch,
|
|
6449
|
+
ZodNaN,
|
|
6450
|
+
BRAND,
|
|
6451
|
+
ZodBranded,
|
|
6399
6452
|
ZodPipeline,
|
|
6400
|
-
ZodPromise,
|
|
6401
6453
|
ZodReadonly,
|
|
6402
|
-
|
|
6454
|
+
custom,
|
|
6455
|
+
Schema: ZodType,
|
|
6403
6456
|
ZodSchema: ZodType,
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
ZodType,
|
|
6410
|
-
ZodUndefined,
|
|
6411
|
-
ZodUnion,
|
|
6412
|
-
ZodUnknown,
|
|
6413
|
-
ZodVoid,
|
|
6414
|
-
addIssueToContext,
|
|
6457
|
+
late,
|
|
6458
|
+
get ZodFirstPartyTypeKind() {
|
|
6459
|
+
return ZodFirstPartyTypeKind;
|
|
6460
|
+
},
|
|
6461
|
+
coerce: coerce$1,
|
|
6415
6462
|
any: anyType,
|
|
6416
6463
|
array: arrayType,
|
|
6417
6464
|
bigint: bigIntType,
|
|
6418
6465
|
boolean: booleanType,
|
|
6419
|
-
coerce: coerce$1,
|
|
6420
|
-
custom,
|
|
6421
6466
|
date: dateType,
|
|
6422
|
-
datetimeRegex,
|
|
6423
|
-
defaultErrorMap: errorMap,
|
|
6424
6467
|
discriminatedUnion: discriminatedUnionType,
|
|
6425
6468
|
effect: effectsType,
|
|
6426
|
-
enum: enumType,
|
|
6427
|
-
function: functionType,
|
|
6428
|
-
|
|
6429
|
-
getParsedType,
|
|
6430
|
-
instanceof: instanceOfType,
|
|
6469
|
+
"enum": enumType,
|
|
6470
|
+
"function": functionType,
|
|
6471
|
+
"instanceof": instanceOfType,
|
|
6431
6472
|
intersection: intersectionType,
|
|
6432
|
-
isAborted,
|
|
6433
|
-
isAsync,
|
|
6434
|
-
isDirty,
|
|
6435
|
-
isValid,
|
|
6436
|
-
late,
|
|
6437
6473
|
lazy: lazyType,
|
|
6438
6474
|
literal: literalType,
|
|
6439
|
-
makeIssue,
|
|
6440
6475
|
map: mapType,
|
|
6441
6476
|
nan: nanType,
|
|
6442
6477
|
nativeEnum: nativeEnumType,
|
|
6443
6478
|
never: neverType,
|
|
6444
|
-
null: nullType,
|
|
6479
|
+
"null": nullType,
|
|
6445
6480
|
nullable: nullableType,
|
|
6446
6481
|
number: numberType,
|
|
6447
6482
|
object: objectType,
|
|
6448
|
-
get objectUtil() {
|
|
6449
|
-
return objectUtil;
|
|
6450
|
-
},
|
|
6451
6483
|
oboolean,
|
|
6452
6484
|
onumber,
|
|
6453
6485
|
optional: optionalType,
|
|
@@ -6455,23 +6487,22 @@ const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6455
6487
|
pipeline: pipelineType,
|
|
6456
6488
|
preprocess: preprocessType,
|
|
6457
6489
|
promise: promiseType,
|
|
6458
|
-
quotelessJson,
|
|
6459
6490
|
record: recordType,
|
|
6460
6491
|
set: setType,
|
|
6461
|
-
setErrorMap,
|
|
6462
6492
|
strictObject: strictObjectType,
|
|
6463
6493
|
string: stringType,
|
|
6464
6494
|
symbol: symbolType,
|
|
6465
6495
|
transformer: effectsType,
|
|
6466
6496
|
tuple: tupleType,
|
|
6467
|
-
undefined: undefinedType,
|
|
6497
|
+
"undefined": undefinedType,
|
|
6468
6498
|
union: unionType,
|
|
6469
6499
|
unknown: unknownType,
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6500
|
+
"void": voidType,
|
|
6501
|
+
NEVER,
|
|
6502
|
+
ZodIssueCode,
|
|
6503
|
+
quotelessJson,
|
|
6504
|
+
ZodError
|
|
6505
|
+
});
|
|
6475
6506
|
const TeliBrand = ({
|
|
6476
6507
|
appName,
|
|
6477
6508
|
beta,
|
|
@@ -6481,7 +6512,7 @@ const TeliBrand = ({
|
|
|
6481
6512
|
}) => {
|
|
6482
6513
|
const isDefaultSize = size === "base";
|
|
6483
6514
|
const isJumboSize = size === "jumbo";
|
|
6484
|
-
const validateAppName =
|
|
6515
|
+
const validateAppName = z.string({
|
|
6485
6516
|
required_error: "Provide missing appName prop.",
|
|
6486
6517
|
invalid_type_error: "appName must be a string"
|
|
6487
6518
|
}).safeParse(appName);
|
|
@@ -6553,14 +6584,14 @@ function _toPropertyKey$1(t2) {
|
|
|
6553
6584
|
var i = _toPrimitive$1(t2, "string");
|
|
6554
6585
|
return "symbol" == typeof i ? i : i + "";
|
|
6555
6586
|
}
|
|
6556
|
-
const noop$
|
|
6587
|
+
const noop$5 = () => {
|
|
6557
6588
|
};
|
|
6558
6589
|
let _WINDOW = {};
|
|
6559
6590
|
let _DOCUMENT = {};
|
|
6560
6591
|
let _MUTATION_OBSERVER = null;
|
|
6561
6592
|
let _PERFORMANCE = {
|
|
6562
|
-
mark: noop$
|
|
6563
|
-
measure: noop$
|
|
6593
|
+
mark: noop$5,
|
|
6594
|
+
measure: noop$5
|
|
6564
6595
|
};
|
|
6565
6596
|
try {
|
|
6566
6597
|
if (typeof window !== "undefined") _WINDOW = window;
|
|
@@ -12304,12 +12335,12 @@ const createTheme$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
|
|
|
12304
12335
|
private_createBreakpoints: createBreakpoints,
|
|
12305
12336
|
unstable_applyStyles: applyStyles$2
|
|
12306
12337
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12307
|
-
function isObjectEmpty$
|
|
12338
|
+
function isObjectEmpty$1(obj) {
|
|
12308
12339
|
return Object.keys(obj).length === 0;
|
|
12309
12340
|
}
|
|
12310
12341
|
function useTheme$4(defaultTheme2 = null) {
|
|
12311
12342
|
const contextTheme = React$2.useContext(ThemeContext$1);
|
|
12312
|
-
return !contextTheme || isObjectEmpty$
|
|
12343
|
+
return !contextTheme || isObjectEmpty$1(contextTheme) ? defaultTheme2 : contextTheme;
|
|
12313
12344
|
}
|
|
12314
12345
|
const systemDefaultTheme$2 = createTheme$3();
|
|
12315
12346
|
function useTheme$3(defaultTheme2 = systemDefaultTheme$2) {
|
|
@@ -12490,7 +12521,7 @@ function requireReactIs_production() {
|
|
|
12490
12521
|
if (hasRequiredReactIs_production) return reactIs_production;
|
|
12491
12522
|
hasRequiredReactIs_production = 1;
|
|
12492
12523
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
12493
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
12524
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
12494
12525
|
function typeOf(object) {
|
|
12495
12526
|
if ("object" === typeof object && null !== object) {
|
|
12496
12527
|
var $$typeof = object.$$typeof;
|
|
@@ -12502,7 +12533,6 @@ function requireReactIs_production() {
|
|
|
12502
12533
|
case REACT_STRICT_MODE_TYPE:
|
|
12503
12534
|
case REACT_SUSPENSE_TYPE:
|
|
12504
12535
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
12505
|
-
case REACT_VIEW_TRANSITION_TYPE:
|
|
12506
12536
|
return object;
|
|
12507
12537
|
default:
|
|
12508
12538
|
switch (object = object && object.$$typeof, object) {
|
|
@@ -12571,7 +12601,7 @@ function requireReactIs_production() {
|
|
|
12571
12601
|
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
12572
12602
|
};
|
|
12573
12603
|
reactIs_production.isValidElementType = function(type) {
|
|
12574
|
-
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
12604
|
+
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
12575
12605
|
};
|
|
12576
12606
|
reactIs_production.typeOf = typeOf;
|
|
12577
12607
|
return reactIs_production;
|
|
@@ -12602,7 +12632,6 @@ function requireReactIs_development() {
|
|
|
12602
12632
|
case REACT_STRICT_MODE_TYPE:
|
|
12603
12633
|
case REACT_SUSPENSE_TYPE:
|
|
12604
12634
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
12605
|
-
case REACT_VIEW_TRANSITION_TYPE:
|
|
12606
12635
|
return object;
|
|
12607
12636
|
default:
|
|
12608
12637
|
switch (object = object && object.$$typeof, object) {
|
|
@@ -12623,7 +12652,7 @@ function requireReactIs_development() {
|
|
|
12623
12652
|
}
|
|
12624
12653
|
}
|
|
12625
12654
|
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
12626
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
12655
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
12627
12656
|
reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
12628
12657
|
reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
|
|
12629
12658
|
reactIs_development.Element = REACT_ELEMENT_TYPE;
|
|
@@ -12673,7 +12702,7 @@ function requireReactIs_development() {
|
|
|
12673
12702
|
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
12674
12703
|
};
|
|
12675
12704
|
reactIs_development.isValidElementType = function(type) {
|
|
12676
|
-
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
12705
|
+
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
12677
12706
|
};
|
|
12678
12707
|
reactIs_development.typeOf = typeOf;
|
|
12679
12708
|
}();
|
|
@@ -13237,7 +13266,7 @@ function requirePropFactory(componentNameInError, Component2) {
|
|
|
13237
13266
|
};
|
|
13238
13267
|
return requireProp;
|
|
13239
13268
|
}
|
|
13240
|
-
function setRef(ref, value2) {
|
|
13269
|
+
function setRef$1(ref, value2) {
|
|
13241
13270
|
if (typeof ref === "function") {
|
|
13242
13271
|
ref(value2);
|
|
13243
13272
|
} else if (ref) {
|
|
@@ -13324,7 +13353,7 @@ function useForkRef$1(...refs) {
|
|
|
13324
13353
|
}
|
|
13325
13354
|
return (instance) => {
|
|
13326
13355
|
refs.forEach((ref) => {
|
|
13327
|
-
setRef(ref, instance);
|
|
13356
|
+
setRef$1(ref, instance);
|
|
13328
13357
|
});
|
|
13329
13358
|
};
|
|
13330
13359
|
}, refs);
|
|
@@ -15342,9 +15371,7 @@ function createTheme$1(options = {}, ...args) {
|
|
|
15342
15371
|
transitions: transitionsInput = {},
|
|
15343
15372
|
typography: typographyInput = {}
|
|
15344
15373
|
} = options, other = _objectWithoutPropertiesLoose$1(options, _excluded$1g);
|
|
15345
|
-
if (options.vars
|
|
15346
|
-
// `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
15347
|
-
options.generateCssVars === void 0) {
|
|
15374
|
+
if (options.vars) {
|
|
15348
15375
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
|
15349
15376
|
Please use another name.` : formatMuiErrorMessage$1(18));
|
|
15350
15377
|
}
|
|
@@ -15704,21 +15731,9 @@ function ThemeProvider(_ref2) {
|
|
|
15704
15731
|
theme: themeInput
|
|
15705
15732
|
} = _ref2, props = _objectWithoutPropertiesLoose$1(_ref2, _excluded$1e);
|
|
15706
15733
|
const scopedTheme = themeInput[THEME_ID];
|
|
15707
|
-
let finalTheme = scopedTheme || themeInput;
|
|
15708
|
-
if (typeof themeInput !== "function") {
|
|
15709
|
-
if (scopedTheme && !scopedTheme.vars) {
|
|
15710
|
-
finalTheme = _extends$3({}, scopedTheme, {
|
|
15711
|
-
vars: null
|
|
15712
|
-
});
|
|
15713
|
-
} else if (themeInput && !themeInput.vars) {
|
|
15714
|
-
finalTheme = _extends$3({}, themeInput, {
|
|
15715
|
-
vars: null
|
|
15716
|
-
});
|
|
15717
|
-
}
|
|
15718
|
-
}
|
|
15719
15734
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider$1, _extends$3({}, props, {
|
|
15720
15735
|
themeId: scopedTheme ? THEME_ID : void 0,
|
|
15721
|
-
theme:
|
|
15736
|
+
theme: scopedTheme || themeInput
|
|
15722
15737
|
}));
|
|
15723
15738
|
}
|
|
15724
15739
|
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
|
|
@@ -16380,7 +16395,7 @@ Transition$1.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
16380
16395
|
*/
|
|
16381
16396
|
onExited: PropTypes.func
|
|
16382
16397
|
} : {};
|
|
16383
|
-
function noop$
|
|
16398
|
+
function noop$4() {
|
|
16384
16399
|
}
|
|
16385
16400
|
Transition$1.defaultProps = {
|
|
16386
16401
|
in: false,
|
|
@@ -16389,12 +16404,12 @@ Transition$1.defaultProps = {
|
|
|
16389
16404
|
appear: false,
|
|
16390
16405
|
enter: true,
|
|
16391
16406
|
exit: true,
|
|
16392
|
-
onEnter: noop$
|
|
16393
|
-
onEntering: noop$
|
|
16394
|
-
onEntered: noop$
|
|
16395
|
-
onExit: noop$
|
|
16396
|
-
onExiting: noop$
|
|
16397
|
-
onExited: noop$
|
|
16407
|
+
onEnter: noop$4,
|
|
16408
|
+
onEntering: noop$4,
|
|
16409
|
+
onEntered: noop$4,
|
|
16410
|
+
onExit: noop$4,
|
|
16411
|
+
onExiting: noop$4,
|
|
16412
|
+
onExited: noop$4
|
|
16398
16413
|
};
|
|
16399
16414
|
Transition$1.UNMOUNTED = UNMOUNTED;
|
|
16400
16415
|
Transition$1.EXITED = EXITED;
|
|
@@ -18930,7 +18945,7 @@ function useAutocomplete(props) {
|
|
|
18930
18945
|
multiple
|
|
18931
18946
|
]);
|
|
18932
18947
|
const handleListboxRef = useEventCallback((node2) => {
|
|
18933
|
-
setRef(listboxRef, node2);
|
|
18948
|
+
setRef$1(listboxRef, node2);
|
|
18934
18949
|
if (!node2) {
|
|
18935
18950
|
return;
|
|
18936
18951
|
}
|
|
@@ -19101,7 +19116,7 @@ function useAutocomplete(props) {
|
|
|
19101
19116
|
case "PageUp":
|
|
19102
19117
|
event.preventDefault();
|
|
19103
19118
|
changeHighlightedIndex({
|
|
19104
|
-
diff: -
|
|
19119
|
+
diff: -5,
|
|
19105
19120
|
direction: "previous",
|
|
19106
19121
|
reason: "keyboard",
|
|
19107
19122
|
event
|
|
@@ -19449,12 +19464,12 @@ function _interopRequireWildcard$2(e, r2) {
|
|
|
19449
19464
|
}
|
|
19450
19465
|
return n.default = e, t2 && t2.set(e, n), n;
|
|
19451
19466
|
}
|
|
19452
|
-
function isObjectEmpty
|
|
19467
|
+
function isObjectEmpty(obj) {
|
|
19453
19468
|
return Object.keys(obj).length === 0;
|
|
19454
19469
|
}
|
|
19455
19470
|
function useTheme(defaultTheme2 = null) {
|
|
19456
19471
|
const contextTheme = React$1.useContext(_styledEngine.ThemeContext);
|
|
19457
|
-
return !contextTheme || isObjectEmpty
|
|
19472
|
+
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme;
|
|
19458
19473
|
}
|
|
19459
19474
|
default_1 = useThemeWithoutDefault.default = useTheme;
|
|
19460
19475
|
var top = "top";
|
|
@@ -20821,9 +20836,9 @@ const Portal = /* @__PURE__ */ React$2.forwardRef(function Portal2(props, forwar
|
|
|
20821
20836
|
}, [container, disablePortal]);
|
|
20822
20837
|
useEnhancedEffect(() => {
|
|
20823
20838
|
if (mountNode && !disablePortal) {
|
|
20824
|
-
setRef(forwardedRef, mountNode);
|
|
20839
|
+
setRef$1(forwardedRef, mountNode);
|
|
20825
20840
|
return () => {
|
|
20826
|
-
setRef(forwardedRef, null);
|
|
20841
|
+
setRef$1(forwardedRef, null);
|
|
20827
20842
|
};
|
|
20828
20843
|
}
|
|
20829
20844
|
return void 0;
|
|
@@ -22032,14 +22047,8 @@ const styles$7 = {
|
|
|
22032
22047
|
transform: "translateZ(0)"
|
|
22033
22048
|
}
|
|
22034
22049
|
};
|
|
22035
|
-
function isObjectEmpty(object) {
|
|
22036
|
-
for (const _2 in object) {
|
|
22037
|
-
return false;
|
|
22038
|
-
}
|
|
22039
|
-
return true;
|
|
22040
|
-
}
|
|
22041
22050
|
function isEmpty$1(obj) {
|
|
22042
|
-
return
|
|
22051
|
+
return obj === void 0 || obj === null || Object.keys(obj).length === 0 || obj.outerHeightStyle === 0 && !obj.overflowing;
|
|
22043
22052
|
}
|
|
22044
22053
|
const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAutosize2(props, forwardedRef) {
|
|
22045
22054
|
const {
|
|
@@ -22052,35 +22061,32 @@ const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAut
|
|
|
22052
22061
|
const {
|
|
22053
22062
|
current: isControlled
|
|
22054
22063
|
} = React$2.useRef(value2 != null);
|
|
22055
|
-
const
|
|
22056
|
-
const handleRef = useForkRef$1(forwardedRef,
|
|
22064
|
+
const inputRef = React$2.useRef(null);
|
|
22065
|
+
const handleRef = useForkRef$1(forwardedRef, inputRef);
|
|
22057
22066
|
const heightRef = React$2.useRef(null);
|
|
22058
|
-
const
|
|
22067
|
+
const shadowRef = React$2.useRef(null);
|
|
22059
22068
|
const calculateTextareaStyles = React$2.useCallback(() => {
|
|
22060
|
-
const
|
|
22061
|
-
const
|
|
22062
|
-
|
|
22063
|
-
return void 0;
|
|
22064
|
-
}
|
|
22065
|
-
const containerWindow = ownerWindow(textarea);
|
|
22066
|
-
const computedStyle = containerWindow.getComputedStyle(textarea);
|
|
22069
|
+
const input = inputRef.current;
|
|
22070
|
+
const containerWindow = ownerWindow(input);
|
|
22071
|
+
const computedStyle = containerWindow.getComputedStyle(input);
|
|
22067
22072
|
if (computedStyle.width === "0px") {
|
|
22068
22073
|
return {
|
|
22069
22074
|
outerHeightStyle: 0,
|
|
22070
22075
|
overflowing: false
|
|
22071
22076
|
};
|
|
22072
22077
|
}
|
|
22073
|
-
|
|
22074
|
-
|
|
22075
|
-
|
|
22076
|
-
|
|
22078
|
+
const inputShallow = shadowRef.current;
|
|
22079
|
+
inputShallow.style.width = computedStyle.width;
|
|
22080
|
+
inputShallow.value = input.value || props.placeholder || "x";
|
|
22081
|
+
if (inputShallow.value.slice(-1) === "\n") {
|
|
22082
|
+
inputShallow.value += " ";
|
|
22077
22083
|
}
|
|
22078
22084
|
const boxSizing2 = computedStyle.boxSizing;
|
|
22079
22085
|
const padding2 = getStyleValue(computedStyle.paddingBottom) + getStyleValue(computedStyle.paddingTop);
|
|
22080
22086
|
const border2 = getStyleValue(computedStyle.borderBottomWidth) + getStyleValue(computedStyle.borderTopWidth);
|
|
22081
|
-
const innerHeight2 =
|
|
22082
|
-
|
|
22083
|
-
const singleRowHeight =
|
|
22087
|
+
const innerHeight2 = inputShallow.scrollHeight;
|
|
22088
|
+
inputShallow.value = "x";
|
|
22089
|
+
const singleRowHeight = inputShallow.scrollHeight;
|
|
22084
22090
|
let outerHeight2 = innerHeight2;
|
|
22085
22091
|
if (minRows) {
|
|
22086
22092
|
outerHeight2 = Math.max(Number(minRows) * singleRowHeight, outerHeight2);
|
|
@@ -22096,60 +22102,48 @@ const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAut
|
|
|
22096
22102
|
overflowing
|
|
22097
22103
|
};
|
|
22098
22104
|
}, [maxRows, minRows, props.placeholder]);
|
|
22099
|
-
const didHeightChange = useEventCallback(() => {
|
|
22100
|
-
const textarea = textareaRef.current;
|
|
22101
|
-
const textareaStyles = calculateTextareaStyles();
|
|
22102
|
-
if (!textarea || !textareaStyles || isEmpty$1(textareaStyles)) {
|
|
22103
|
-
return false;
|
|
22104
|
-
}
|
|
22105
|
-
const outerHeightStyle = textareaStyles.outerHeightStyle;
|
|
22106
|
-
return heightRef.current != null && heightRef.current !== outerHeightStyle;
|
|
22107
|
-
});
|
|
22108
22105
|
const syncHeight = React$2.useCallback(() => {
|
|
22109
|
-
const textarea = textareaRef.current;
|
|
22110
22106
|
const textareaStyles = calculateTextareaStyles();
|
|
22111
|
-
if (
|
|
22107
|
+
if (isEmpty$1(textareaStyles)) {
|
|
22112
22108
|
return;
|
|
22113
22109
|
}
|
|
22114
22110
|
const outerHeightStyle = textareaStyles.outerHeightStyle;
|
|
22111
|
+
const input = inputRef.current;
|
|
22115
22112
|
if (heightRef.current !== outerHeightStyle) {
|
|
22116
22113
|
heightRef.current = outerHeightStyle;
|
|
22117
|
-
|
|
22114
|
+
input.style.height = `${outerHeightStyle}px`;
|
|
22118
22115
|
}
|
|
22119
|
-
|
|
22116
|
+
input.style.overflow = textareaStyles.overflowing ? "hidden" : "";
|
|
22120
22117
|
}, [calculateTextareaStyles]);
|
|
22121
|
-
const frameRef = React$2.useRef(-1);
|
|
22122
22118
|
useEnhancedEffect(() => {
|
|
22123
|
-
const
|
|
22124
|
-
|
|
22125
|
-
|
|
22126
|
-
|
|
22127
|
-
|
|
22128
|
-
|
|
22129
|
-
|
|
22119
|
+
const handleResize = () => {
|
|
22120
|
+
syncHeight();
|
|
22121
|
+
};
|
|
22122
|
+
let rAF;
|
|
22123
|
+
const rAFHandleResize = () => {
|
|
22124
|
+
cancelAnimationFrame(rAF);
|
|
22125
|
+
rAF = requestAnimationFrame(() => {
|
|
22126
|
+
handleResize();
|
|
22127
|
+
});
|
|
22128
|
+
};
|
|
22129
|
+
const debounceHandleResize = debounce$1(handleResize);
|
|
22130
|
+
const input = inputRef.current;
|
|
22131
|
+
const containerWindow = ownerWindow(input);
|
|
22132
|
+
containerWindow.addEventListener("resize", debounceHandleResize);
|
|
22130
22133
|
let resizeObserver;
|
|
22131
22134
|
if (typeof ResizeObserver !== "undefined") {
|
|
22132
|
-
resizeObserver = new ResizeObserver(
|
|
22133
|
-
|
|
22134
|
-
resizeObserver.unobserve(textarea);
|
|
22135
|
-
cancelAnimationFrame(frameRef.current);
|
|
22136
|
-
syncHeight();
|
|
22137
|
-
frameRef.current = requestAnimationFrame(() => {
|
|
22138
|
-
resizeObserver.observe(textarea);
|
|
22139
|
-
});
|
|
22140
|
-
}
|
|
22141
|
-
});
|
|
22142
|
-
resizeObserver.observe(textarea);
|
|
22135
|
+
resizeObserver = new ResizeObserver(process.env.NODE_ENV === "test" ? rAFHandleResize : handleResize);
|
|
22136
|
+
resizeObserver.observe(input);
|
|
22143
22137
|
}
|
|
22144
22138
|
return () => {
|
|
22145
|
-
|
|
22146
|
-
cancelAnimationFrame(
|
|
22147
|
-
containerWindow.removeEventListener("resize",
|
|
22139
|
+
debounceHandleResize.clear();
|
|
22140
|
+
cancelAnimationFrame(rAF);
|
|
22141
|
+
containerWindow.removeEventListener("resize", debounceHandleResize);
|
|
22148
22142
|
if (resizeObserver) {
|
|
22149
22143
|
resizeObserver.disconnect();
|
|
22150
22144
|
}
|
|
22151
22145
|
};
|
|
22152
|
-
}, [calculateTextareaStyles, syncHeight
|
|
22146
|
+
}, [calculateTextareaStyles, syncHeight]);
|
|
22153
22147
|
useEnhancedEffect(() => {
|
|
22154
22148
|
syncHeight();
|
|
22155
22149
|
});
|
|
@@ -22172,7 +22166,7 @@ const TextareaAutosize = /* @__PURE__ */ React$2.forwardRef(function TextareaAut
|
|
|
22172
22166
|
"aria-hidden": true,
|
|
22173
22167
|
className: props.className,
|
|
22174
22168
|
readOnly: true,
|
|
22175
|
-
ref:
|
|
22169
|
+
ref: shadowRef,
|
|
22176
22170
|
tabIndex: -1,
|
|
22177
22171
|
style: _extends$3({}, styles$7.shadow, style2, {
|
|
22178
22172
|
paddingTop: 0,
|
|
@@ -43400,7 +43394,7 @@ const typography = {
|
|
|
43400
43394
|
};
|
|
43401
43395
|
const DEFAULT_THEME = "dark";
|
|
43402
43396
|
const TELICENT_THEME = "telicent-theme";
|
|
43403
|
-
const ThemeEnum =
|
|
43397
|
+
const ThemeEnum = z.enum(["dark", "light"]);
|
|
43404
43398
|
const useTeliTheme = () => {
|
|
43405
43399
|
const getTheme = () => {
|
|
43406
43400
|
const savedTheme = localStorage.getItem(TELICENT_THEME);
|
|
@@ -43532,7 +43526,7 @@ var Subscribable = class {
|
|
|
43532
43526
|
}
|
|
43533
43527
|
};
|
|
43534
43528
|
var isServer = typeof window === "undefined" || "Deno" in globalThis;
|
|
43535
|
-
function noop$
|
|
43529
|
+
function noop$3() {
|
|
43536
43530
|
}
|
|
43537
43531
|
function functionalUpdate(updater, input) {
|
|
43538
43532
|
return typeof updater === "function" ? updater(input) : updater;
|
|
@@ -43630,7 +43624,7 @@ function partialMatchKey(a, b) {
|
|
|
43630
43624
|
return false;
|
|
43631
43625
|
}
|
|
43632
43626
|
if (a && b && typeof a === "object" && typeof b === "object") {
|
|
43633
|
-
return Object.keys(b).
|
|
43627
|
+
return !Object.keys(b).some((key) => !partialMatchKey(a[key], b[key]));
|
|
43634
43628
|
}
|
|
43635
43629
|
return false;
|
|
43636
43630
|
}
|
|
@@ -43645,11 +43639,10 @@ function replaceEqualDeep(a, b) {
|
|
|
43645
43639
|
const bItems = array2 ? b : Object.keys(b);
|
|
43646
43640
|
const bSize = bItems.length;
|
|
43647
43641
|
const copy2 = array2 ? [] : {};
|
|
43648
|
-
const aItemsSet = new Set(aItems);
|
|
43649
43642
|
let equalItems = 0;
|
|
43650
43643
|
for (let i = 0; i < bSize; i++) {
|
|
43651
43644
|
const key = array2 ? i : bItems[i];
|
|
43652
|
-
if ((!array2 &&
|
|
43645
|
+
if ((!array2 && aItems.includes(key) || array2) && a[key] === void 0 && b[key] === void 0) {
|
|
43653
43646
|
copy2[key] = void 0;
|
|
43654
43647
|
equalItems++;
|
|
43655
43648
|
} else {
|
|
@@ -43716,7 +43709,6 @@ function replaceData(prevData, data, options) {
|
|
|
43716
43709
|
console.error(
|
|
43717
43710
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`
|
|
43718
43711
|
);
|
|
43719
|
-
throw error;
|
|
43720
43712
|
}
|
|
43721
43713
|
}
|
|
43722
43714
|
return replaceEqualDeep(prevData, data);
|
|
@@ -43748,12 +43740,6 @@ function ensureQueryFn(options, fetchOptions2) {
|
|
|
43748
43740
|
}
|
|
43749
43741
|
return options.queryFn;
|
|
43750
43742
|
}
|
|
43751
|
-
function shouldThrowError(throwOnError, params) {
|
|
43752
|
-
if (typeof throwOnError === "function") {
|
|
43753
|
-
return throwOnError(...params);
|
|
43754
|
-
}
|
|
43755
|
-
return !!throwOnError;
|
|
43756
|
-
}
|
|
43757
43743
|
var FocusManager = (_d = class extends Subscribable {
|
|
43758
43744
|
constructor() {
|
|
43759
43745
|
super();
|
|
@@ -44029,7 +44015,6 @@ function createRetryer(config2) {
|
|
|
44029
44015
|
}
|
|
44030
44016
|
};
|
|
44031
44017
|
}
|
|
44032
|
-
var defaultScheduler = (cb) => setTimeout(cb, 0);
|
|
44033
44018
|
function createNotifyManager() {
|
|
44034
44019
|
let queue = [];
|
|
44035
44020
|
let transactions = 0;
|
|
@@ -44039,7 +44024,7 @@ function createNotifyManager() {
|
|
|
44039
44024
|
let batchNotifyFn = (callback) => {
|
|
44040
44025
|
callback();
|
|
44041
44026
|
};
|
|
44042
|
-
let scheduleFn =
|
|
44027
|
+
let scheduleFn = (cb) => setTimeout(cb, 0);
|
|
44043
44028
|
const schedule2 = (callback) => {
|
|
44044
44029
|
if (transactions) {
|
|
44045
44030
|
queue.push(callback);
|
|
@@ -44191,7 +44176,7 @@ var Query = (_g = class extends Removable {
|
|
|
44191
44176
|
var _a2, _b2;
|
|
44192
44177
|
const promise = (_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.promise;
|
|
44193
44178
|
(_b2 = __privateGet(this, _retryer)) == null ? void 0 : _b2.cancel(options);
|
|
44194
|
-
return promise ? promise.then(noop$
|
|
44179
|
+
return promise ? promise.then(noop$3).catch(noop$3) : Promise.resolve();
|
|
44195
44180
|
}
|
|
44196
44181
|
destroy() {
|
|
44197
44182
|
super.destroy();
|
|
@@ -44212,33 +44197,19 @@ var Query = (_g = class extends Removable {
|
|
|
44212
44197
|
}
|
|
44213
44198
|
return this.options.queryFn === skipToken || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
44214
44199
|
}
|
|
44215
|
-
isStatic() {
|
|
44216
|
-
if (this.getObserversCount() > 0) {
|
|
44217
|
-
return this.observers.some(
|
|
44218
|
-
(observer) => resolveStaleTime(observer.options.staleTime, this) === "static"
|
|
44219
|
-
);
|
|
44220
|
-
}
|
|
44221
|
-
return false;
|
|
44222
|
-
}
|
|
44223
44200
|
isStale() {
|
|
44201
|
+
if (this.state.isInvalidated) {
|
|
44202
|
+
return true;
|
|
44203
|
+
}
|
|
44224
44204
|
if (this.getObserversCount() > 0) {
|
|
44225
44205
|
return this.observers.some(
|
|
44226
44206
|
(observer) => observer.getCurrentResult().isStale
|
|
44227
44207
|
);
|
|
44228
44208
|
}
|
|
44229
|
-
return this.state.data === void 0
|
|
44209
|
+
return this.state.data === void 0;
|
|
44230
44210
|
}
|
|
44231
44211
|
isStaleByTime(staleTime = 0) {
|
|
44232
|
-
|
|
44233
|
-
return true;
|
|
44234
|
-
}
|
|
44235
|
-
if (staleTime === "static") {
|
|
44236
|
-
return false;
|
|
44237
|
-
}
|
|
44238
|
-
if (this.state.isInvalidated) {
|
|
44239
|
-
return true;
|
|
44240
|
-
}
|
|
44241
|
-
return !timeUntilStale(this.state.dataUpdatedAt, staleTime);
|
|
44212
|
+
return this.state.isInvalidated || this.state.data === void 0 || !timeUntilStale(this.state.dataUpdatedAt, staleTime);
|
|
44242
44213
|
}
|
|
44243
44214
|
onFocus() {
|
|
44244
44215
|
var _a2;
|
|
@@ -44321,16 +44292,12 @@ var Query = (_g = class extends Removable {
|
|
|
44321
44292
|
};
|
|
44322
44293
|
const fetchFn = () => {
|
|
44323
44294
|
const queryFn = ensureQueryFn(this.options, fetchOptions2);
|
|
44324
|
-
const
|
|
44325
|
-
|
|
44326
|
-
|
|
44327
|
-
|
|
44328
|
-
meta: this.meta
|
|
44329
|
-
};
|
|
44330
|
-
addSignalProperty(queryFnContext2);
|
|
44331
|
-
return queryFnContext2;
|
|
44295
|
+
const queryFnContext = {
|
|
44296
|
+
client: __privateGet(this, _client),
|
|
44297
|
+
queryKey: this.queryKey,
|
|
44298
|
+
meta: this.meta
|
|
44332
44299
|
};
|
|
44333
|
-
|
|
44300
|
+
addSignalProperty(queryFnContext);
|
|
44334
44301
|
__privateSet(this, _abortSignalConsumed, false);
|
|
44335
44302
|
if (this.options.persister) {
|
|
44336
44303
|
return this.options.persister(
|
|
@@ -44341,20 +44308,19 @@ var Query = (_g = class extends Removable {
|
|
|
44341
44308
|
}
|
|
44342
44309
|
return queryFn(queryFnContext);
|
|
44343
44310
|
};
|
|
44344
|
-
const
|
|
44345
|
-
|
|
44346
|
-
|
|
44347
|
-
|
|
44348
|
-
|
|
44349
|
-
|
|
44350
|
-
|
|
44351
|
-
fetchFn
|
|
44352
|
-
};
|
|
44353
|
-
addSignalProperty(context2);
|
|
44354
|
-
return context2;
|
|
44311
|
+
const context = {
|
|
44312
|
+
fetchOptions: fetchOptions2,
|
|
44313
|
+
options: this.options,
|
|
44314
|
+
queryKey: this.queryKey,
|
|
44315
|
+
client: __privateGet(this, _client),
|
|
44316
|
+
state: this.state,
|
|
44317
|
+
fetchFn
|
|
44355
44318
|
};
|
|
44356
|
-
|
|
44357
|
-
(_a2 = this.options.behavior) == null ? void 0 : _a2.onFetch(
|
|
44319
|
+
addSignalProperty(context);
|
|
44320
|
+
(_a2 = this.options.behavior) == null ? void 0 : _a2.onFetch(
|
|
44321
|
+
context,
|
|
44322
|
+
this
|
|
44323
|
+
);
|
|
44358
44324
|
__privateSet(this, _revertState, this.state);
|
|
44359
44325
|
if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((_b2 = context.fetchOptions) == null ? void 0 : _b2.meta)) {
|
|
44360
44326
|
__privateMethod(this, _Query_instances, dispatch_fn).call(this, { type: "fetch", meta: (_c2 = context.fetchOptions) == null ? void 0 : _c2.meta });
|
|
@@ -44455,7 +44421,6 @@ var Query = (_g = class extends Removable {
|
|
|
44455
44421
|
fetchMeta: action.meta ?? null
|
|
44456
44422
|
};
|
|
44457
44423
|
case "success":
|
|
44458
|
-
__privateSet(this, _revertState, void 0);
|
|
44459
44424
|
return {
|
|
44460
44425
|
...state,
|
|
44461
44426
|
data: action.data,
|
|
@@ -44680,9 +44645,6 @@ var Mutation = (_i = class extends Removable {
|
|
|
44680
44645
|
}
|
|
44681
44646
|
async execute(variables) {
|
|
44682
44647
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t7;
|
|
44683
|
-
const onContinue = () => {
|
|
44684
|
-
__privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "continue" });
|
|
44685
|
-
};
|
|
44686
44648
|
__privateSet(this, _retryer2, createRetryer({
|
|
44687
44649
|
fn: () => {
|
|
44688
44650
|
if (!this.options.mutationFn) {
|
|
@@ -44696,7 +44658,9 @@ var Mutation = (_i = class extends Removable {
|
|
|
44696
44658
|
onPause: () => {
|
|
44697
44659
|
__privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pause" });
|
|
44698
44660
|
},
|
|
44699
|
-
onContinue
|
|
44661
|
+
onContinue: () => {
|
|
44662
|
+
__privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "continue" });
|
|
44663
|
+
},
|
|
44700
44664
|
retry: this.options.retry ?? 0,
|
|
44701
44665
|
retryDelay: this.options.retryDelay,
|
|
44702
44666
|
networkMode: this.options.networkMode,
|
|
@@ -44705,9 +44669,7 @@ var Mutation = (_i = class extends Removable {
|
|
|
44705
44669
|
const restored = this.state.status === "pending";
|
|
44706
44670
|
const isPaused = !__privateGet(this, _retryer2).canStart();
|
|
44707
44671
|
try {
|
|
44708
|
-
if (restored) {
|
|
44709
|
-
onContinue();
|
|
44710
|
-
} else {
|
|
44672
|
+
if (!restored) {
|
|
44711
44673
|
__privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "pending", variables, isPaused });
|
|
44712
44674
|
await ((_b2 = (_a2 = __privateGet(this, _mutationCache).config).onMutate) == null ? void 0 : _b2.call(
|
|
44713
44675
|
_a2,
|
|
@@ -44968,7 +44930,7 @@ var MutationCache = (_j = class extends Subscribable {
|
|
|
44968
44930
|
const pausedMutations = this.getAll().filter((x2) => x2.state.isPaused);
|
|
44969
44931
|
return notifyManager.batch(
|
|
44970
44932
|
() => Promise.all(
|
|
44971
|
-
pausedMutations.map((mutation) => mutation.continue().catch(noop$
|
|
44933
|
+
pausedMutations.map((mutation) => mutation.continue().catch(noop$3))
|
|
44972
44934
|
)
|
|
44973
44935
|
);
|
|
44974
44936
|
}
|
|
@@ -45012,19 +44974,17 @@ function infiniteQueryBehavior(pages) {
|
|
|
45012
44974
|
if (param == null && data.pages.length) {
|
|
45013
44975
|
return Promise.resolve(data);
|
|
45014
44976
|
}
|
|
45015
|
-
const
|
|
45016
|
-
|
|
45017
|
-
|
|
45018
|
-
|
|
45019
|
-
|
|
45020
|
-
|
|
45021
|
-
meta: context.options.meta
|
|
45022
|
-
};
|
|
45023
|
-
addSignalProperty(queryFnContext2);
|
|
45024
|
-
return queryFnContext2;
|
|
44977
|
+
const queryFnContext = {
|
|
44978
|
+
client: context.client,
|
|
44979
|
+
queryKey: context.queryKey,
|
|
44980
|
+
pageParam: param,
|
|
44981
|
+
direction: previous ? "backward" : "forward",
|
|
44982
|
+
meta: context.options.meta
|
|
45025
44983
|
};
|
|
45026
|
-
|
|
45027
|
-
const page = await queryFn(
|
|
44984
|
+
addSignalProperty(queryFnContext);
|
|
44985
|
+
const page = await queryFn(
|
|
44986
|
+
queryFnContext
|
|
44987
|
+
);
|
|
45028
44988
|
const { maxPages } = context.options;
|
|
45029
44989
|
const addTo = previous ? addToStart : addToEnd;
|
|
45030
44990
|
return {
|
|
@@ -45107,7 +45067,8 @@ var QueryClient = (_k = class {
|
|
|
45107
45067
|
}
|
|
45108
45068
|
mount() {
|
|
45109
45069
|
__privateWrapper(this, _mountCount)._++;
|
|
45110
|
-
if (__privateGet(this, _mountCount) !== 1)
|
|
45070
|
+
if (__privateGet(this, _mountCount) !== 1)
|
|
45071
|
+
return;
|
|
45111
45072
|
__privateSet(this, _unsubscribeFocus, focusManager.subscribe(async (focused) => {
|
|
45112
45073
|
if (focused) {
|
|
45113
45074
|
await this.resumePausedMutations();
|
|
@@ -45124,7 +45085,8 @@ var QueryClient = (_k = class {
|
|
|
45124
45085
|
unmount() {
|
|
45125
45086
|
var _a2, _b2;
|
|
45126
45087
|
__privateWrapper(this, _mountCount)._--;
|
|
45127
|
-
if (__privateGet(this, _mountCount) !== 0)
|
|
45088
|
+
if (__privateGet(this, _mountCount) !== 0)
|
|
45089
|
+
return;
|
|
45128
45090
|
(_a2 = __privateGet(this, _unsubscribeFocus)) == null ? void 0 : _a2.call(this);
|
|
45129
45091
|
__privateSet(this, _unsubscribeFocus, void 0);
|
|
45130
45092
|
(_b2 = __privateGet(this, _unsubscribeOnline)) == null ? void 0 : _b2.call(this);
|
|
@@ -45136,13 +45098,6 @@ var QueryClient = (_k = class {
|
|
|
45136
45098
|
isMutating(filters) {
|
|
45137
45099
|
return __privateGet(this, _mutationCache2).findAll({ ...filters, status: "pending" }).length;
|
|
45138
45100
|
}
|
|
45139
|
-
/**
|
|
45140
|
-
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
45141
|
-
* Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
|
|
45142
|
-
*
|
|
45143
|
-
* Hint: Do not use this function inside a component, because it won't receive updates.
|
|
45144
|
-
* Use `useQuery` to create a `QueryObserver` that subscribes to changes.
|
|
45145
|
-
*/
|
|
45146
45101
|
getQueryData(queryKey) {
|
|
45147
45102
|
var _a2;
|
|
45148
45103
|
const options = this.defaultQueryOptions({ queryKey });
|
|
@@ -45203,17 +45158,15 @@ var QueryClient = (_k = class {
|
|
|
45203
45158
|
}
|
|
45204
45159
|
resetQueries(filters, options) {
|
|
45205
45160
|
const queryCache = __privateGet(this, _queryCache);
|
|
45161
|
+
const refetchFilters = {
|
|
45162
|
+
type: "active",
|
|
45163
|
+
...filters
|
|
45164
|
+
};
|
|
45206
45165
|
return notifyManager.batch(() => {
|
|
45207
45166
|
queryCache.findAll(filters).forEach((query) => {
|
|
45208
45167
|
query.reset();
|
|
45209
45168
|
});
|
|
45210
|
-
return this.refetchQueries(
|
|
45211
|
-
{
|
|
45212
|
-
type: "active",
|
|
45213
|
-
...filters
|
|
45214
|
-
},
|
|
45215
|
-
options
|
|
45216
|
-
);
|
|
45169
|
+
return this.refetchQueries(refetchFilters, options);
|
|
45217
45170
|
});
|
|
45218
45171
|
}
|
|
45219
45172
|
cancelQueries(filters, cancelOptions = {}) {
|
|
@@ -45221,7 +45174,7 @@ var QueryClient = (_k = class {
|
|
|
45221
45174
|
const promises = notifyManager.batch(
|
|
45222
45175
|
() => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
|
|
45223
45176
|
);
|
|
45224
|
-
return Promise.all(promises).then(noop$
|
|
45177
|
+
return Promise.all(promises).then(noop$3).catch(noop$3);
|
|
45225
45178
|
}
|
|
45226
45179
|
invalidateQueries(filters, options = {}) {
|
|
45227
45180
|
return notifyManager.batch(() => {
|
|
@@ -45231,13 +45184,11 @@ var QueryClient = (_k = class {
|
|
|
45231
45184
|
if ((filters == null ? void 0 : filters.refetchType) === "none") {
|
|
45232
45185
|
return Promise.resolve();
|
|
45233
45186
|
}
|
|
45234
|
-
|
|
45235
|
-
|
|
45236
|
-
|
|
45237
|
-
|
|
45238
|
-
|
|
45239
|
-
options
|
|
45240
|
-
);
|
|
45187
|
+
const refetchFilters = {
|
|
45188
|
+
...filters,
|
|
45189
|
+
type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
|
|
45190
|
+
};
|
|
45191
|
+
return this.refetchQueries(refetchFilters, options);
|
|
45241
45192
|
});
|
|
45242
45193
|
}
|
|
45243
45194
|
refetchQueries(filters, options = {}) {
|
|
@@ -45246,15 +45197,15 @@ var QueryClient = (_k = class {
|
|
|
45246
45197
|
cancelRefetch: options.cancelRefetch ?? true
|
|
45247
45198
|
};
|
|
45248
45199
|
const promises = notifyManager.batch(
|
|
45249
|
-
() => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled()
|
|
45200
|
+
() => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
|
|
45250
45201
|
let promise = query.fetch(void 0, fetchOptions2);
|
|
45251
45202
|
if (!fetchOptions2.throwOnError) {
|
|
45252
|
-
promise = promise.catch(noop$
|
|
45203
|
+
promise = promise.catch(noop$3);
|
|
45253
45204
|
}
|
|
45254
45205
|
return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
|
|
45255
45206
|
})
|
|
45256
45207
|
);
|
|
45257
|
-
return Promise.all(promises).then(noop$
|
|
45208
|
+
return Promise.all(promises).then(noop$3);
|
|
45258
45209
|
}
|
|
45259
45210
|
fetchQuery(options) {
|
|
45260
45211
|
const defaultedOptions = this.defaultQueryOptions(options);
|
|
@@ -45267,14 +45218,14 @@ var QueryClient = (_k = class {
|
|
|
45267
45218
|
) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
|
|
45268
45219
|
}
|
|
45269
45220
|
prefetchQuery(options) {
|
|
45270
|
-
return this.fetchQuery(options).then(noop$
|
|
45221
|
+
return this.fetchQuery(options).then(noop$3).catch(noop$3);
|
|
45271
45222
|
}
|
|
45272
45223
|
fetchInfiniteQuery(options) {
|
|
45273
45224
|
options.behavior = infiniteQueryBehavior(options.pages);
|
|
45274
45225
|
return this.fetchQuery(options);
|
|
45275
45226
|
}
|
|
45276
45227
|
prefetchInfiniteQuery(options) {
|
|
45277
|
-
return this.fetchInfiniteQuery(options).then(noop$
|
|
45228
|
+
return this.fetchInfiniteQuery(options).then(noop$3).catch(noop$3);
|
|
45278
45229
|
}
|
|
45279
45230
|
ensureInfiniteQueryData(options) {
|
|
45280
45231
|
options.behavior = infiniteQueryBehavior(options.pages);
|
|
@@ -45322,10 +45273,10 @@ var QueryClient = (_k = class {
|
|
|
45322
45273
|
}
|
|
45323
45274
|
getMutationDefaults(mutationKey) {
|
|
45324
45275
|
const defaults2 = [...__privateGet(this, _mutationDefaults).values()];
|
|
45325
|
-
|
|
45276
|
+
let result = {};
|
|
45326
45277
|
defaults2.forEach((queryDefault) => {
|
|
45327
45278
|
if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
|
|
45328
|
-
|
|
45279
|
+
result = { ...result, ...queryDefault.defaultOptions };
|
|
45329
45280
|
}
|
|
45330
45281
|
});
|
|
45331
45282
|
return result;
|
|
@@ -45448,7 +45399,7 @@ var QueryObserver = (_l = class extends Subscribable {
|
|
|
45448
45399
|
__privateMethod(this, _QueryObserver_instances, clearRefetchInterval_fn).call(this);
|
|
45449
45400
|
__privateGet(this, _currentQuery).removeObserver(this);
|
|
45450
45401
|
}
|
|
45451
|
-
setOptions(options) {
|
|
45402
|
+
setOptions(options, notifyOptions) {
|
|
45452
45403
|
const prevOptions = this.options;
|
|
45453
45404
|
const prevQuery = __privateGet(this, _currentQuery);
|
|
45454
45405
|
this.options = __privateGet(this, _client2).defaultQueryOptions(options);
|
|
@@ -45475,7 +45426,7 @@ var QueryObserver = (_l = class extends Subscribable {
|
|
|
45475
45426
|
)) {
|
|
45476
45427
|
__privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
|
|
45477
45428
|
}
|
|
45478
|
-
this.updateResult();
|
|
45429
|
+
this.updateResult(notifyOptions);
|
|
45479
45430
|
if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || resolveStaleTime(this.options.staleTime, __privateGet(this, _currentQuery)) !== resolveStaleTime(prevOptions.staleTime, __privateGet(this, _currentQuery)))) {
|
|
45480
45431
|
__privateMethod(this, _QueryObserver_instances, updateStaleTimeout_fn).call(this);
|
|
45481
45432
|
}
|
|
@@ -45498,13 +45449,19 @@ var QueryObserver = (_l = class extends Subscribable {
|
|
|
45498
45449
|
return __privateGet(this, _currentResult);
|
|
45499
45450
|
}
|
|
45500
45451
|
trackResult(result, onPropTracked) {
|
|
45501
|
-
|
|
45502
|
-
|
|
45503
|
-
|
|
45504
|
-
|
|
45505
|
-
|
|
45506
|
-
|
|
45452
|
+
const trackedResult = {};
|
|
45453
|
+
Object.keys(result).forEach((key) => {
|
|
45454
|
+
Object.defineProperty(trackedResult, key, {
|
|
45455
|
+
configurable: false,
|
|
45456
|
+
enumerable: true,
|
|
45457
|
+
get: () => {
|
|
45458
|
+
this.trackProp(key);
|
|
45459
|
+
onPropTracked == null ? void 0 : onPropTracked(key);
|
|
45460
|
+
return result[key];
|
|
45461
|
+
}
|
|
45462
|
+
});
|
|
45507
45463
|
});
|
|
45464
|
+
return trackedResult;
|
|
45508
45465
|
}
|
|
45509
45466
|
trackProp(key) {
|
|
45510
45467
|
__privateGet(this, _trackedProps).add(key);
|
|
@@ -45559,18 +45516,40 @@ var QueryObserver = (_l = class extends Subscribable {
|
|
|
45559
45516
|
}
|
|
45560
45517
|
}
|
|
45561
45518
|
let { error, errorUpdatedAt, status } = newState;
|
|
45562
|
-
|
|
45563
|
-
|
|
45519
|
+
if (options.select && newState.data !== void 0) {
|
|
45520
|
+
if (prevResult && newState.data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
|
|
45521
|
+
data = __privateGet(this, _selectResult);
|
|
45522
|
+
} else {
|
|
45523
|
+
try {
|
|
45524
|
+
__privateSet(this, _selectFn, options.select);
|
|
45525
|
+
data = options.select(newState.data);
|
|
45526
|
+
data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
|
|
45527
|
+
__privateSet(this, _selectResult, data);
|
|
45528
|
+
__privateSet(this, _selectError, null);
|
|
45529
|
+
} catch (selectError) {
|
|
45530
|
+
__privateSet(this, _selectError, selectError);
|
|
45531
|
+
}
|
|
45532
|
+
}
|
|
45533
|
+
} else {
|
|
45534
|
+
data = newState.data;
|
|
45535
|
+
}
|
|
45564
45536
|
if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
|
|
45565
45537
|
let placeholderData;
|
|
45566
45538
|
if ((prevResult == null ? void 0 : prevResult.isPlaceholderData) && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) {
|
|
45567
45539
|
placeholderData = prevResult.data;
|
|
45568
|
-
skipSelect = true;
|
|
45569
45540
|
} else {
|
|
45570
45541
|
placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(
|
|
45571
45542
|
(_a2 = __privateGet(this, _lastQueryWithDefinedData)) == null ? void 0 : _a2.state.data,
|
|
45572
45543
|
__privateGet(this, _lastQueryWithDefinedData)
|
|
45573
45544
|
) : options.placeholderData;
|
|
45545
|
+
if (options.select && placeholderData !== void 0) {
|
|
45546
|
+
try {
|
|
45547
|
+
placeholderData = options.select(placeholderData);
|
|
45548
|
+
__privateSet(this, _selectError, null);
|
|
45549
|
+
} catch (selectError) {
|
|
45550
|
+
__privateSet(this, _selectError, selectError);
|
|
45551
|
+
}
|
|
45552
|
+
}
|
|
45574
45553
|
}
|
|
45575
45554
|
if (placeholderData !== void 0) {
|
|
45576
45555
|
status = "success";
|
|
@@ -45582,21 +45561,6 @@ var QueryObserver = (_l = class extends Subscribable {
|
|
|
45582
45561
|
isPlaceholderData = true;
|
|
45583
45562
|
}
|
|
45584
45563
|
}
|
|
45585
|
-
if (options.select && data !== void 0 && !skipSelect) {
|
|
45586
|
-
if (prevResult && data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === __privateGet(this, _selectFn)) {
|
|
45587
|
-
data = __privateGet(this, _selectResult);
|
|
45588
|
-
} else {
|
|
45589
|
-
try {
|
|
45590
|
-
__privateSet(this, _selectFn, options.select);
|
|
45591
|
-
data = options.select(data);
|
|
45592
|
-
data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options);
|
|
45593
|
-
__privateSet(this, _selectResult, data);
|
|
45594
|
-
__privateSet(this, _selectError, null);
|
|
45595
|
-
} catch (selectError) {
|
|
45596
|
-
__privateSet(this, _selectError, selectError);
|
|
45597
|
-
}
|
|
45598
|
-
}
|
|
45599
|
-
}
|
|
45600
45564
|
if (__privateGet(this, _selectError)) {
|
|
45601
45565
|
error = __privateGet(this, _selectError);
|
|
45602
45566
|
data = __privateGet(this, _selectResult);
|
|
@@ -45669,7 +45633,7 @@ var QueryObserver = (_l = class extends Subscribable {
|
|
|
45669
45633
|
}
|
|
45670
45634
|
return nextResult;
|
|
45671
45635
|
}
|
|
45672
|
-
updateResult() {
|
|
45636
|
+
updateResult(notifyOptions) {
|
|
45673
45637
|
const prevResult = __privateGet(this, _currentResult);
|
|
45674
45638
|
const nextResult = this.createResult(__privateGet(this, _currentQuery), this.options);
|
|
45675
45639
|
__privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
|
|
@@ -45681,6 +45645,7 @@ var QueryObserver = (_l = class extends Subscribable {
|
|
|
45681
45645
|
return;
|
|
45682
45646
|
}
|
|
45683
45647
|
__privateSet(this, _currentResult, nextResult);
|
|
45648
|
+
const defaultNotifyOptions = {};
|
|
45684
45649
|
const shouldNotifyListeners = () => {
|
|
45685
45650
|
if (!prevResult) {
|
|
45686
45651
|
return true;
|
|
@@ -45702,7 +45667,10 @@ var QueryObserver = (_l = class extends Subscribable {
|
|
|
45702
45667
|
return changed && includedProps.has(typedKey);
|
|
45703
45668
|
});
|
|
45704
45669
|
};
|
|
45705
|
-
|
|
45670
|
+
if ((notifyOptions == null ? void 0 : notifyOptions.listeners) !== false && shouldNotifyListeners()) {
|
|
45671
|
+
defaultNotifyOptions.listeners = true;
|
|
45672
|
+
}
|
|
45673
|
+
__privateMethod(this, _QueryObserver_instances, notify_fn).call(this, { ...defaultNotifyOptions, ...notifyOptions });
|
|
45706
45674
|
}
|
|
45707
45675
|
onQueryUpdate() {
|
|
45708
45676
|
this.updateResult();
|
|
@@ -45717,7 +45685,7 @@ var QueryObserver = (_l = class extends Subscribable {
|
|
|
45717
45685
|
fetchOptions2
|
|
45718
45686
|
);
|
|
45719
45687
|
if (!(fetchOptions2 == null ? void 0 : fetchOptions2.throwOnError)) {
|
|
45720
|
-
promise = promise.catch(noop$
|
|
45688
|
+
promise = promise.catch(noop$3);
|
|
45721
45689
|
}
|
|
45722
45690
|
return promise;
|
|
45723
45691
|
}, updateStaleTimeout_fn = function() {
|
|
@@ -45794,7 +45762,7 @@ function shouldFetchOnMount(query, options) {
|
|
|
45794
45762
|
return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
|
|
45795
45763
|
}
|
|
45796
45764
|
function shouldFetchOn(query, options, field) {
|
|
45797
|
-
if (resolveEnabled(options.enabled, query) !== false
|
|
45765
|
+
if (resolveEnabled(options.enabled, query) !== false) {
|
|
45798
45766
|
const value2 = typeof field === "function" ? field(query) : field;
|
|
45799
45767
|
return value2 === "always" || value2 !== false && isStale(query, options);
|
|
45800
45768
|
}
|
|
@@ -45853,6 +45821,14 @@ function createValue() {
|
|
|
45853
45821
|
}
|
|
45854
45822
|
var QueryErrorResetBoundaryContext = React$2.createContext(createValue());
|
|
45855
45823
|
var useQueryErrorResetBoundary = () => React$2.useContext(QueryErrorResetBoundaryContext);
|
|
45824
|
+
function shouldThrowError(throwError, params) {
|
|
45825
|
+
if (typeof throwError === "function") {
|
|
45826
|
+
return throwError(...params);
|
|
45827
|
+
}
|
|
45828
|
+
return !!throwError;
|
|
45829
|
+
}
|
|
45830
|
+
function noop$2() {
|
|
45831
|
+
}
|
|
45856
45832
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
45857
45833
|
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
45858
45834
|
if (!errorResetBoundary.isReset()) {
|
|
@@ -45875,10 +45851,9 @@ var getHasError = ({
|
|
|
45875
45851
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
45876
45852
|
};
|
|
45877
45853
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
45854
|
+
const originalStaleTime = defaultedOptions.staleTime;
|
|
45878
45855
|
if (defaultedOptions.suspense) {
|
|
45879
|
-
|
|
45880
|
-
const originalStaleTime = defaultedOptions.staleTime;
|
|
45881
|
-
defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => clamp2(originalStaleTime(...args)) : clamp2(originalStaleTime);
|
|
45856
|
+
defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => Math.max(originalStaleTime(...args), 1e3) : Math.max(originalStaleTime ?? 1e3, 1e3);
|
|
45882
45857
|
if (typeof defaultedOptions.gcTime === "number") {
|
|
45883
45858
|
defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, 1e3);
|
|
45884
45859
|
}
|
|
@@ -45898,21 +45873,14 @@ function useBaseQuery(options, Observer, queryClient2) {
|
|
|
45898
45873
|
);
|
|
45899
45874
|
}
|
|
45900
45875
|
}
|
|
45876
|
+
const client = useQueryClient();
|
|
45901
45877
|
const isRestoring = useIsRestoring();
|
|
45902
45878
|
const errorResetBoundary = useQueryErrorResetBoundary();
|
|
45903
|
-
const client = useQueryClient();
|
|
45904
45879
|
const defaultedOptions = client.defaultQueryOptions(options);
|
|
45905
45880
|
(_b2 = (_a2 = client.getDefaultOptions().queries) == null ? void 0 : _a2._experimental_beforeQuery) == null ? void 0 : _b2.call(
|
|
45906
45881
|
_a2,
|
|
45907
45882
|
defaultedOptions
|
|
45908
45883
|
);
|
|
45909
|
-
if (process.env.NODE_ENV !== "production") {
|
|
45910
|
-
if (!defaultedOptions.queryFn) {
|
|
45911
|
-
console.error(
|
|
45912
|
-
`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
|
45913
|
-
);
|
|
45914
|
-
}
|
|
45915
|
-
}
|
|
45916
45884
|
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
|
|
45917
45885
|
ensureSuspenseTimers(defaultedOptions);
|
|
45918
45886
|
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);
|
|
@@ -45939,7 +45907,7 @@ function useBaseQuery(options, Observer, queryClient2) {
|
|
|
45939
45907
|
() => observer.getCurrentResult()
|
|
45940
45908
|
);
|
|
45941
45909
|
React$2.useEffect(() => {
|
|
45942
|
-
observer.setOptions(defaultedOptions);
|
|
45910
|
+
observer.setOptions(defaultedOptions, { listeners: false });
|
|
45943
45911
|
}, [defaultedOptions, observer]);
|
|
45944
45912
|
if (shouldSuspend(defaultedOptions, result)) {
|
|
45945
45913
|
throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
|
|
@@ -46593,33 +46561,33 @@ const fetchOptions = {
|
|
|
46593
46561
|
"Content-Type": "application/json"
|
|
46594
46562
|
}
|
|
46595
46563
|
};
|
|
46596
|
-
const documentSchema =
|
|
46597
|
-
uri:
|
|
46598
|
-
primaryName:
|
|
46599
|
-
types:
|
|
46600
|
-
literals:
|
|
46601
|
-
"telicent:primaryName":
|
|
46564
|
+
const documentSchema = z.object({
|
|
46565
|
+
uri: z.string(),
|
|
46566
|
+
primaryName: z.string(),
|
|
46567
|
+
types: z.array(z.string()),
|
|
46568
|
+
literals: z.object({
|
|
46569
|
+
"telicent:primaryName": z.array(z.string())
|
|
46602
46570
|
}),
|
|
46603
|
-
isState:
|
|
46604
|
-
inLocation:
|
|
46605
|
-
metadata:
|
|
46606
|
-
documentFormat:
|
|
46607
|
-
generatedBy:
|
|
46608
|
-
generatorVersion:
|
|
46571
|
+
isState: z.boolean(),
|
|
46572
|
+
inLocation: z.string(),
|
|
46573
|
+
metadata: z.object({
|
|
46574
|
+
documentFormat: z.string(),
|
|
46575
|
+
generatedBy: z.string(),
|
|
46576
|
+
generatorVersion: z.string()
|
|
46609
46577
|
})
|
|
46610
46578
|
});
|
|
46611
|
-
const resultSchema =
|
|
46612
|
-
id:
|
|
46613
|
-
score:
|
|
46579
|
+
const resultSchema = z.object({
|
|
46580
|
+
id: z.string().url(),
|
|
46581
|
+
score: z.number(),
|
|
46614
46582
|
document: documentSchema
|
|
46615
46583
|
});
|
|
46616
|
-
const ApiTypeAheadResponseSchema =
|
|
46617
|
-
maybeMore:
|
|
46618
|
-
limit:
|
|
46619
|
-
offset:
|
|
46620
|
-
query:
|
|
46621
|
-
type:
|
|
46622
|
-
results:
|
|
46584
|
+
const ApiTypeAheadResponseSchema = z.object({
|
|
46585
|
+
maybeMore: z.boolean(),
|
|
46586
|
+
limit: z.number(),
|
|
46587
|
+
offset: z.number(),
|
|
46588
|
+
query: z.string(),
|
|
46589
|
+
type: z.literal("phrase"),
|
|
46590
|
+
results: z.array(resultSchema)
|
|
46623
46591
|
});
|
|
46624
46592
|
const fetchSearchResults = async (url, queryParamKey, query) => {
|
|
46625
46593
|
const queryParams = new URLSearchParams({
|
|
@@ -51285,7 +51253,7 @@ lodash.exports;
|
|
|
51285
51253
|
return symbolToString ? symbolToString.call(value2) : "";
|
|
51286
51254
|
}
|
|
51287
51255
|
var result2 = value2 + "";
|
|
51288
|
-
return result2 == "0" && 1 / value2 == -
|
|
51256
|
+
return result2 == "0" && 1 / value2 == -Infinity ? "-0" : result2;
|
|
51289
51257
|
}
|
|
51290
51258
|
function baseUniq(array2, iteratee2, comparator) {
|
|
51291
51259
|
var index = -1, includes2 = arrayIncludes, length2 = array2.length, isCommon = true, result2 = [], seen = result2;
|
|
@@ -52492,7 +52460,7 @@ lodash.exports;
|
|
|
52492
52460
|
return value2;
|
|
52493
52461
|
}
|
|
52494
52462
|
var result2 = value2 + "";
|
|
52495
|
-
return result2 == "0" && 1 / value2 == -
|
|
52463
|
+
return result2 == "0" && 1 / value2 == -Infinity ? "-0" : result2;
|
|
52496
52464
|
}
|
|
52497
52465
|
function toSource(func) {
|
|
52498
52466
|
if (func != null) {
|
|
@@ -53556,7 +53524,7 @@ lodash.exports;
|
|
|
53556
53524
|
}
|
|
53557
53525
|
var isRegExp2 = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
53558
53526
|
function isSafeInteger(value2) {
|
|
53559
|
-
return isInteger2(value2) && value2 >= -
|
|
53527
|
+
return isInteger2(value2) && value2 >= -9007199254740991 && value2 <= MAX_SAFE_INTEGER;
|
|
53560
53528
|
}
|
|
53561
53529
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
53562
53530
|
function isString2(value2) {
|
|
@@ -53597,7 +53565,7 @@ lodash.exports;
|
|
|
53597
53565
|
return value2 === 0 ? value2 : 0;
|
|
53598
53566
|
}
|
|
53599
53567
|
value2 = toNumber(value2);
|
|
53600
|
-
if (value2 === INFINITY || value2 === -
|
|
53568
|
+
if (value2 === INFINITY || value2 === -Infinity) {
|
|
53601
53569
|
var sign = value2 < 0 ? -1 : 1;
|
|
53602
53570
|
return sign * MAX_INTEGER;
|
|
53603
53571
|
}
|
|
@@ -53632,7 +53600,7 @@ lodash.exports;
|
|
|
53632
53600
|
return copyObject(value2, keysIn(value2));
|
|
53633
53601
|
}
|
|
53634
53602
|
function toSafeInteger(value2) {
|
|
53635
|
-
return value2 ? baseClamp(toInteger(value2), -
|
|
53603
|
+
return value2 ? baseClamp(toInteger(value2), -9007199254740991, MAX_SAFE_INTEGER) : value2 === 0 ? value2 : 0;
|
|
53636
53604
|
}
|
|
53637
53605
|
function toString3(value2) {
|
|
53638
53606
|
return value2 == null ? "" : baseToString(value2);
|
|
@@ -54911,7 +54879,7 @@ const TeliBasicTable = ({
|
|
|
54911
54879
|
return null;
|
|
54912
54880
|
}
|
|
54913
54881
|
const renderDefaultColumnCell = (column2, index) => {
|
|
54914
|
-
const columnSchema =
|
|
54882
|
+
const columnSchema = z.string({
|
|
54915
54883
|
required_error: "Column is required",
|
|
54916
54884
|
invalid_type_error: "Column must be a string"
|
|
54917
54885
|
});
|
|
@@ -55344,41 +55312,22 @@ function resolveComponentProps$1(componentProps, ownerState, slotState) {
|
|
|
55344
55312
|
}
|
|
55345
55313
|
return componentProps;
|
|
55346
55314
|
}
|
|
55315
|
+
function setRef(ref, value2) {
|
|
55316
|
+
if (typeof ref === "function") {
|
|
55317
|
+
ref(value2);
|
|
55318
|
+
} else if (ref) {
|
|
55319
|
+
ref.current = value2;
|
|
55320
|
+
}
|
|
55321
|
+
}
|
|
55347
55322
|
function useForkRef(...refs) {
|
|
55348
|
-
const cleanupRef = React$2.useRef(void 0);
|
|
55349
|
-
const refEffect = React$2.useCallback((instance) => {
|
|
55350
|
-
const cleanups = refs.map((ref) => {
|
|
55351
|
-
if (ref == null) {
|
|
55352
|
-
return null;
|
|
55353
|
-
}
|
|
55354
|
-
if (typeof ref === "function") {
|
|
55355
|
-
const refCallback = ref;
|
|
55356
|
-
const refCleanup = refCallback(instance);
|
|
55357
|
-
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
55358
|
-
refCallback(null);
|
|
55359
|
-
};
|
|
55360
|
-
}
|
|
55361
|
-
ref.current = instance;
|
|
55362
|
-
return () => {
|
|
55363
|
-
ref.current = null;
|
|
55364
|
-
};
|
|
55365
|
-
});
|
|
55366
|
-
return () => {
|
|
55367
|
-
cleanups.forEach((refCleanup) => refCleanup == null ? void 0 : refCleanup());
|
|
55368
|
-
};
|
|
55369
|
-
}, refs);
|
|
55370
55323
|
return React$2.useMemo(() => {
|
|
55371
55324
|
if (refs.every((ref) => ref == null)) {
|
|
55372
55325
|
return null;
|
|
55373
55326
|
}
|
|
55374
|
-
return (
|
|
55375
|
-
|
|
55376
|
-
|
|
55377
|
-
|
|
55378
|
-
}
|
|
55379
|
-
if (value2 != null) {
|
|
55380
|
-
cleanupRef.current = refEffect(value2);
|
|
55381
|
-
}
|
|
55327
|
+
return (instance) => {
|
|
55328
|
+
refs.forEach((ref) => {
|
|
55329
|
+
setRef(ref, instance);
|
|
55330
|
+
});
|
|
55382
55331
|
};
|
|
55383
55332
|
}, refs);
|
|
55384
55333
|
}
|
|
@@ -59286,6 +59235,23 @@ cjs.exports.default = Draggable;
|
|
|
59286
59235
|
cjs.exports.DraggableCore = DraggableCore2;
|
|
59287
59236
|
var cjsExports = cjs.exports;
|
|
59288
59237
|
const Draggable$1 = /* @__PURE__ */ getDefaultExportFromCjs(cjsExports);
|
|
59238
|
+
var __extends$2 = /* @__PURE__ */ function() {
|
|
59239
|
+
var extendStatics2 = function(d, b) {
|
|
59240
|
+
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
59241
|
+
d2.__proto__ = b2;
|
|
59242
|
+
} || function(d2, b2) {
|
|
59243
|
+
for (var p2 in b2) if (Object.prototype.hasOwnProperty.call(b2, p2)) d2[p2] = b2[p2];
|
|
59244
|
+
};
|
|
59245
|
+
return extendStatics2(d, b);
|
|
59246
|
+
};
|
|
59247
|
+
return function(d, b) {
|
|
59248
|
+
extendStatics2(d, b);
|
|
59249
|
+
function __() {
|
|
59250
|
+
this.constructor = d;
|
|
59251
|
+
}
|
|
59252
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
59253
|
+
};
|
|
59254
|
+
}();
|
|
59289
59255
|
var __assign$2 = function() {
|
|
59290
59256
|
__assign$2 = Object.assign || function(t2) {
|
|
59291
59257
|
for (var s2, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -59314,8 +59280,7 @@ var colSizeBase = {
|
|
|
59314
59280
|
var edgeBase = {
|
|
59315
59281
|
width: "20px",
|
|
59316
59282
|
height: "20px",
|
|
59317
|
-
position: "absolute"
|
|
59318
|
-
zIndex: 1
|
|
59283
|
+
position: "absolute"
|
|
59319
59284
|
};
|
|
59320
59285
|
var styles = {
|
|
59321
59286
|
top: __assign$2(__assign$2({}, rowSizeBase), { top: "-5px" }),
|
|
@@ -59327,19 +59292,26 @@ var styles = {
|
|
|
59327
59292
|
bottomLeft: __assign$2(__assign$2({}, edgeBase), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
|
|
59328
59293
|
topLeft: __assign$2(__assign$2({}, edgeBase), { left: "-10px", top: "-10px", cursor: "nw-resize" })
|
|
59329
59294
|
};
|
|
59330
|
-
var Resizer =
|
|
59331
|
-
|
|
59332
|
-
|
|
59333
|
-
|
|
59334
|
-
|
|
59335
|
-
|
|
59336
|
-
|
|
59337
|
-
|
|
59338
|
-
|
|
59339
|
-
|
|
59340
|
-
|
|
59341
|
-
|
|
59342
|
-
|
|
59295
|
+
var Resizer = (
|
|
59296
|
+
/** @class */
|
|
59297
|
+
function(_super) {
|
|
59298
|
+
__extends$2(Resizer2, _super);
|
|
59299
|
+
function Resizer2() {
|
|
59300
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
59301
|
+
_this.onMouseDown = function(e) {
|
|
59302
|
+
_this.props.onResizeStart(e, _this.props.direction);
|
|
59303
|
+
};
|
|
59304
|
+
_this.onTouchStart = function(e) {
|
|
59305
|
+
_this.props.onResizeStart(e, _this.props.direction);
|
|
59306
|
+
};
|
|
59307
|
+
return _this;
|
|
59308
|
+
}
|
|
59309
|
+
Resizer2.prototype.render = function() {
|
|
59310
|
+
return React$2.createElement("div", { className: this.props.className || "", style: __assign$2(__assign$2({ position: "absolute", userSelect: "none" }, styles[this.props.direction]), this.props.replaceStyles || {}), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children);
|
|
59311
|
+
};
|
|
59312
|
+
return Resizer2;
|
|
59313
|
+
}(React$2.PureComponent)
|
|
59314
|
+
);
|
|
59343
59315
|
var __extends$1 = /* @__PURE__ */ function() {
|
|
59344
59316
|
var extendStatics2 = function(d, b) {
|
|
59345
59317
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -59350,8 +59322,6 @@ var __extends$1 = /* @__PURE__ */ function() {
|
|
|
59350
59322
|
return extendStatics2(d, b);
|
|
59351
59323
|
};
|
|
59352
59324
|
return function(d, b) {
|
|
59353
|
-
if (typeof b !== "function" && b !== null)
|
|
59354
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
59355
59325
|
extendStatics2(d, b);
|
|
59356
59326
|
function __() {
|
|
59357
59327
|
this.constructor = d;
|
|
@@ -59423,7 +59393,7 @@ var getStringSize = function(n) {
|
|
|
59423
59393
|
if (n.endsWith("vmin")) {
|
|
59424
59394
|
return n;
|
|
59425
59395
|
}
|
|
59426
|
-
return
|
|
59396
|
+
return n + "px";
|
|
59427
59397
|
};
|
|
59428
59398
|
var getPixelSize = function(size, parentSize, innerWidth2, innerHeight2) {
|
|
59429
59399
|
if (size && typeof size === "string") {
|
|
@@ -59511,10 +59481,6 @@ var Resizable = (
|
|
|
59511
59481
|
_this.resizableBottom = 0;
|
|
59512
59482
|
_this.targetLeft = 0;
|
|
59513
59483
|
_this.targetTop = 0;
|
|
59514
|
-
_this.delta = {
|
|
59515
|
-
width: 0,
|
|
59516
|
-
height: 0
|
|
59517
|
-
};
|
|
59518
59484
|
_this.appendBase = function() {
|
|
59519
59485
|
if (!_this.resizable || !_this.window) {
|
|
59520
59486
|
return null;
|
|
@@ -59642,7 +59608,7 @@ var Resizable = (
|
|
|
59642
59608
|
var parentSize = _this.getParentSize();
|
|
59643
59609
|
var value2 = Number(_this.state[key].toString().replace("px", ""));
|
|
59644
59610
|
var percent = value2 / parentSize[key] * 100;
|
|
59645
|
-
return
|
|
59611
|
+
return percent + "%";
|
|
59646
59612
|
}
|
|
59647
59613
|
return getStringSize(_this.state[key]);
|
|
59648
59614
|
};
|
|
@@ -59939,29 +59905,28 @@ var Resizable = (
|
|
|
59939
59905
|
width: newWidth - original.width,
|
|
59940
59906
|
height: newHeight - original.height
|
|
59941
59907
|
};
|
|
59942
|
-
this.delta = delta;
|
|
59943
59908
|
if (width2 && typeof width2 === "string") {
|
|
59944
59909
|
if (width2.endsWith("%")) {
|
|
59945
59910
|
var percent = newWidth / parentSize.width * 100;
|
|
59946
|
-
newWidth =
|
|
59911
|
+
newWidth = percent + "%";
|
|
59947
59912
|
} else if (width2.endsWith("vw")) {
|
|
59948
59913
|
var vw = newWidth / this.window.innerWidth * 100;
|
|
59949
|
-
newWidth =
|
|
59914
|
+
newWidth = vw + "vw";
|
|
59950
59915
|
} else if (width2.endsWith("vh")) {
|
|
59951
59916
|
var vh = newWidth / this.window.innerHeight * 100;
|
|
59952
|
-
newWidth =
|
|
59917
|
+
newWidth = vh + "vh";
|
|
59953
59918
|
}
|
|
59954
59919
|
}
|
|
59955
59920
|
if (height2 && typeof height2 === "string") {
|
|
59956
59921
|
if (height2.endsWith("%")) {
|
|
59957
59922
|
var percent = newHeight / parentSize.height * 100;
|
|
59958
|
-
newHeight =
|
|
59923
|
+
newHeight = percent + "%";
|
|
59959
59924
|
} else if (height2.endsWith("vw")) {
|
|
59960
59925
|
var vw = newHeight / this.window.innerWidth * 100;
|
|
59961
|
-
newHeight =
|
|
59926
|
+
newHeight = vw + "vw";
|
|
59962
59927
|
} else if (height2.endsWith("vh")) {
|
|
59963
59928
|
var vh = newHeight / this.window.innerHeight * 100;
|
|
59964
|
-
newHeight =
|
|
59929
|
+
newHeight = vh + "vh";
|
|
59965
59930
|
}
|
|
59966
59931
|
}
|
|
59967
59932
|
var newState = {
|
|
@@ -59990,13 +59955,16 @@ var Resizable = (
|
|
|
59990
59955
|
};
|
|
59991
59956
|
Resizable2.prototype.onMouseUp = function(event) {
|
|
59992
59957
|
var _a2, _b2;
|
|
59993
|
-
var _c2 = this.state, isResizing = _c2.isResizing, direction = _c2.direction;
|
|
59994
|
-
_c2.original;
|
|
59958
|
+
var _c2 = this.state, isResizing = _c2.isResizing, direction = _c2.direction, original = _c2.original;
|
|
59995
59959
|
if (!isResizing || !this.resizable) {
|
|
59996
59960
|
return;
|
|
59997
59961
|
}
|
|
59962
|
+
var delta = {
|
|
59963
|
+
width: this.size.width - original.width,
|
|
59964
|
+
height: this.size.height - original.height
|
|
59965
|
+
};
|
|
59998
59966
|
if (this.props.onResizeStop) {
|
|
59999
|
-
this.props.onResizeStop(event, direction, this.resizable,
|
|
59967
|
+
this.props.onResizeStop(event, direction, this.resizable, delta);
|
|
60000
59968
|
}
|
|
60001
59969
|
if (this.props.size) {
|
|
60002
59970
|
this.setState({ width: (_a2 = this.props.size.width) !== null && _a2 !== void 0 ? _a2 : "auto", height: (_b2 = this.props.size.height) !== null && _b2 !== void 0 ? _b2 : "auto" });
|
|
@@ -60019,11 +59987,11 @@ var Resizable = (
|
|
|
60019
59987
|
}
|
|
60020
59988
|
var resizers = Object.keys(enable).map(function(dir) {
|
|
60021
59989
|
if (enable[dir] !== false) {
|
|
60022
|
-
return
|
|
59990
|
+
return React$2.createElement(Resizer, { key: dir, direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir] }, handleComponent && handleComponent[dir] ? handleComponent[dir] : null);
|
|
60023
59991
|
}
|
|
60024
59992
|
return null;
|
|
60025
59993
|
});
|
|
60026
|
-
return
|
|
59994
|
+
return React$2.createElement("div", { className: handleWrapperClass, style: handleWrapperStyle }, resizers);
|
|
60027
59995
|
};
|
|
60028
59996
|
Resizable2.prototype.render = function() {
|
|
60029
59997
|
var _this = this;
|
|
@@ -60039,16 +60007,21 @@ var Resizable = (
|
|
|
60039
60007
|
style2.flexBasis = this.state.flexBasis;
|
|
60040
60008
|
}
|
|
60041
60009
|
var Wrapper = this.props.as || "div";
|
|
60042
|
-
return
|
|
60043
|
-
|
|
60044
|
-
|
|
60045
|
-
|
|
60046
|
-
|
|
60047
|
-
|
|
60010
|
+
return React$2.createElement(
|
|
60011
|
+
Wrapper,
|
|
60012
|
+
__assign$1({ style: style2, className: this.props.className }, extendsProps, {
|
|
60013
|
+
// `ref` is after `extendsProps` to ensure this one wins over a version
|
|
60014
|
+
// passed in
|
|
60015
|
+
ref: function(c) {
|
|
60016
|
+
if (c) {
|
|
60017
|
+
_this.resizable = c;
|
|
60018
|
+
}
|
|
60048
60019
|
}
|
|
60049
|
-
},
|
|
60050
|
-
|
|
60051
|
-
|
|
60020
|
+
}),
|
|
60021
|
+
this.state.isResizing && React$2.createElement("div", { style: this.state.backgroundStyle }),
|
|
60022
|
+
this.props.children,
|
|
60023
|
+
this.renderResizer()
|
|
60024
|
+
);
|
|
60052
60025
|
};
|
|
60053
60026
|
Resizable2.defaultProps = {
|
|
60054
60027
|
as: "div",
|
|
@@ -60079,7 +60052,7 @@ var Resizable = (
|
|
|
60079
60052
|
snapGap: 0
|
|
60080
60053
|
};
|
|
60081
60054
|
return Resizable2;
|
|
60082
|
-
}(PureComponent)
|
|
60055
|
+
}(React$2.PureComponent)
|
|
60083
60056
|
);
|
|
60084
60057
|
/*! *****************************************************************************
|
|
60085
60058
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -60488,7 +60461,7 @@ var Rnd = (
|
|
|
60488
60461
|
_a2.onDragStart;
|
|
60489
60462
|
_a2.onDrag;
|
|
60490
60463
|
_a2.onDragStop;
|
|
60491
|
-
var resizeHandleStyles = _a2.resizeHandleStyles, resizeHandleClasses = _a2.resizeHandleClasses, resizeHandleComponent = _a2.resizeHandleComponent, enableResizing = _a2.enableResizing, resizeGrid = _a2.resizeGrid, resizeHandleWrapperClass = _a2.resizeHandleWrapperClass, resizeHandleWrapperStyle = _a2.resizeHandleWrapperStyle, scale = _a2.scale, allowAnyClick = _a2.allowAnyClick,
|
|
60464
|
+
var resizeHandleStyles = _a2.resizeHandleStyles, resizeHandleClasses = _a2.resizeHandleClasses, resizeHandleComponent = _a2.resizeHandleComponent, enableResizing = _a2.enableResizing, resizeGrid = _a2.resizeGrid, resizeHandleWrapperClass = _a2.resizeHandleWrapperClass, resizeHandleWrapperStyle = _a2.resizeHandleWrapperStyle, scale = _a2.scale, allowAnyClick = _a2.allowAnyClick, resizableProps = __rest(_a2, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick"]);
|
|
60492
60465
|
var defaultValue = this.props.default ? __assign({}, this.props.default) : void 0;
|
|
60493
60466
|
delete resizableProps.default;
|
|
60494
60467
|
var cursorStyle = disableDragging || dragHandleClassName ? { cursor: "auto" } : { cursor: "move" };
|
|
@@ -60528,8 +60501,7 @@ var Rnd = (
|
|
|
60528
60501
|
cancel,
|
|
60529
60502
|
scale,
|
|
60530
60503
|
allowAnyClick,
|
|
60531
|
-
nodeRef: this.resizableElement
|
|
60532
|
-
positionOffset: dragPositionOffset
|
|
60504
|
+
nodeRef: this.resizableElement
|
|
60533
60505
|
},
|
|
60534
60506
|
createElement$1(Resizable, __assign({}, resizableProps, { ref: function(c) {
|
|
60535
60507
|
if (!c)
|
|
@@ -61832,42 +61804,42 @@ const UIThemeProvider = ({
|
|
|
61832
61804
|
/* @__PURE__ */ jsx$1(CssBaseline, {}),
|
|
61833
61805
|
children2
|
|
61834
61806
|
] });
|
|
61835
|
-
const reactElementSchema =
|
|
61836
|
-
type:
|
|
61807
|
+
const reactElementSchema = z.object({
|
|
61808
|
+
type: z.union([z.string(), z.function(), z.symbol(), z.object({}).passthrough()]),
|
|
61837
61809
|
// Type can be a string or a function (JSXElementConstructor)
|
|
61838
|
-
props:
|
|
61810
|
+
props: z.record(z.any()),
|
|
61839
61811
|
// Props is an object with any keys
|
|
61840
|
-
key:
|
|
61812
|
+
key: z.union([z.string(), z.number(), z.null()]).optional()
|
|
61841
61813
|
// Key is either string, number, or null
|
|
61842
61814
|
});
|
|
61843
|
-
const allModalPropsSchema =
|
|
61844
|
-
open:
|
|
61815
|
+
const allModalPropsSchema = z.object({
|
|
61816
|
+
open: z.boolean(),
|
|
61845
61817
|
children: reactElementSchema,
|
|
61846
|
-
className:
|
|
61847
|
-
id:
|
|
61848
|
-
role:
|
|
61849
|
-
closeAfterTransition:
|
|
61850
|
-
components:
|
|
61851
|
-
componentsProps:
|
|
61852
|
-
container:
|
|
61853
|
-
disableAutoFocus:
|
|
61854
|
-
disableEnforceFocus:
|
|
61855
|
-
disableEscapeKeyDown:
|
|
61856
|
-
disablePortal:
|
|
61857
|
-
disableRestoreFocus:
|
|
61858
|
-
disableScrollLock:
|
|
61859
|
-
hideBackdrop:
|
|
61860
|
-
keepMounted:
|
|
61861
|
-
manager:
|
|
61862
|
-
onBackdropClick:
|
|
61863
|
-
onClose:
|
|
61864
|
-
onTransitionEnter:
|
|
61865
|
-
onTransitionExit:
|
|
61866
|
-
sx:
|
|
61867
|
-
BackdropComponent:
|
|
61868
|
-
BackdropProps:
|
|
61869
|
-
slots:
|
|
61870
|
-
slotProps:
|
|
61818
|
+
className: z.string().optional(),
|
|
61819
|
+
id: z.string().optional(),
|
|
61820
|
+
role: z.string().optional(),
|
|
61821
|
+
closeAfterTransition: z.boolean().optional(),
|
|
61822
|
+
components: z.any().optional(),
|
|
61823
|
+
componentsProps: z.any().optional(),
|
|
61824
|
+
container: z.any().optional(),
|
|
61825
|
+
disableAutoFocus: z.boolean().optional(),
|
|
61826
|
+
disableEnforceFocus: z.boolean().optional(),
|
|
61827
|
+
disableEscapeKeyDown: z.boolean().optional(),
|
|
61828
|
+
disablePortal: z.boolean().optional(),
|
|
61829
|
+
disableRestoreFocus: z.boolean().optional(),
|
|
61830
|
+
disableScrollLock: z.boolean().optional(),
|
|
61831
|
+
hideBackdrop: z.boolean().optional(),
|
|
61832
|
+
keepMounted: z.boolean().optional(),
|
|
61833
|
+
manager: z.any().optional(),
|
|
61834
|
+
onBackdropClick: z.function().optional(),
|
|
61835
|
+
onClose: z.function().optional(),
|
|
61836
|
+
onTransitionEnter: z.function().optional(),
|
|
61837
|
+
onTransitionExit: z.function().optional(),
|
|
61838
|
+
sx: z.any().optional(),
|
|
61839
|
+
BackdropComponent: z.any().optional(),
|
|
61840
|
+
BackdropProps: z.any().optional(),
|
|
61841
|
+
slots: z.any().optional(),
|
|
61842
|
+
slotProps: z.any().optional()
|
|
61871
61843
|
});
|
|
61872
61844
|
const modalPropsSchema = allModalPropsSchema.omit({
|
|
61873
61845
|
slots: true,
|
|
@@ -69267,7 +69239,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
69267
69239
|
if (!t3) continue;
|
|
69268
69240
|
S3 = y4.imageName, e3.iconsInText = e3.iconsInText || true, A4 = t3.paddedRect;
|
|
69269
69241
|
const r5 = t3.displaySize;
|
|
69270
|
-
y4.scale = y4.scale * Vl / p4, b5 = { width: r5[0], height: r5[1], left: lu, top: -
|
|
69242
|
+
y4.scale = y4.scale * Vl / p4, b5 = { width: r5[0], height: r5[1], left: lu, top: -3, advance: I2 ? r5[1] : r5[0] }, x5 = l4 + (Vl - r5[1] * y4.scale), k2 = b5.advance;
|
|
69271
69243
|
const n4 = I2 ? r5[0] * y4.scale - Vl * a4 : r5[1] * y4.scale - Vl * a4;
|
|
69272
69244
|
n4 > 0 && n4 > _5 && (_5 = n4);
|
|
69273
69245
|
} else {
|
|
@@ -70302,7 +70274,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
70302
70274
|
return n2;
|
|
70303
70275
|
}
|
|
70304
70276
|
function Fc(t3, e2, r3) {
|
|
70305
|
-
const n2 = [{ fixed: -
|
|
70277
|
+
const n2 = [{ fixed: -1, stretch: 0 }];
|
|
70306
70278
|
for (const [e3, r4] of t3) {
|
|
70307
70279
|
const t4 = n2[n2.length - 1];
|
|
70308
70280
|
n2.push({ fixed: e3 - t4.stretch, stretch: t4.stretch }), n2.push({ fixed: e3 - t4.stretch, stretch: t4.stretch + (r4 - e3) });
|
|
@@ -72486,7 +72458,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
72486
72458
|
for (let h2 = i2; h2 < i2 + a2; h2++) I(t3, h2 * o3 + e2, 1, s3, r3, n2, l2);
|
|
72487
72459
|
}
|
|
72488
72460
|
function I(t3, e2, i2, s3, a2, o3, r3) {
|
|
72489
|
-
o3[0] = 0, r3[0] = -
|
|
72461
|
+
o3[0] = 0, r3[0] = -1e20, r3[1] = w2, a2[0] = t3[e2];
|
|
72490
72462
|
for (let n2 = 1, l2 = 0, h2 = 0; n2 < s3; n2++) {
|
|
72491
72463
|
a2[n2] = t3[e2 + n2 * i2];
|
|
72492
72464
|
const s4 = n2 * n2;
|
|
@@ -78805,7 +78777,7 @@ uniform ${i3} ${s4} u_${a3};
|
|
|
78805
78777
|
if (this._popup && (this._popup.remove(), this._popup = null, this._element.removeEventListener("keypress", this._onKeyPress), this._originalTabIndex || this._element.removeAttribute("tabindex")), t3) {
|
|
78806
78778
|
if (!("offset" in t3.options)) {
|
|
78807
78779
|
const e2 = 38.1, i2 = 13.5, s3 = Math.abs(i2) / Math.SQRT2;
|
|
78808
|
-
t3.options.offset = this._defaultMarker ? { top: [0, 0], "top-left": [0, 0], "top-right": [0, 0], bottom: [0, -
|
|
78780
|
+
t3.options.offset = this._defaultMarker ? { top: [0, 0], "top-left": [0, 0], "top-right": [0, 0], bottom: [0, -38.1], "bottom-left": [s3, -1 * (e2 - i2 + s3)], "bottom-right": [-s3, -1 * (e2 - i2 + s3)], left: [i2, -1 * (e2 - i2)], right: [-13.5, -1 * (e2 - i2)] } : this._offset;
|
|
78809
78781
|
}
|
|
78810
78782
|
this._popup = t3, this._lngLat && this._popup.setLngLat(this._lngLat), this._originalTabIndex = this._element.getAttribute("tabindex"), this._originalTabIndex || this._element.setAttribute("tabindex", "0"), this._element.addEventListener("keypress", this._onKeyPress);
|
|
78811
78783
|
}
|
|
@@ -80211,10 +80183,10 @@ const DocumentMarker = ({
|
|
|
80211
80183
|
height: "28px"
|
|
80212
80184
|
}, children: faIcon ? /* @__PURE__ */ jsx$1("i", { "data-icon": faIcon, className: classNames(faIcon, "px-1") }) : /* @__PURE__ */ jsx$1("p", { className: "p-1 font-body", children: labelCharacters }) }, marker.uri) });
|
|
80213
80185
|
};
|
|
80214
|
-
|
|
80215
|
-
label:
|
|
80216
|
-
uri:
|
|
80217
|
-
image:
|
|
80186
|
+
z.object({
|
|
80187
|
+
label: z.string(),
|
|
80188
|
+
uri: z.string(),
|
|
80189
|
+
image: z.string()
|
|
80218
80190
|
});
|
|
80219
80191
|
const useStyleSelector = (initialMapConfig) => {
|
|
80220
80192
|
const [selected, setSelected] = useState(null);
|
|
@@ -80521,8 +80493,7 @@ const AuthModal = ({
|
|
|
80521
80493
|
m: 2,
|
|
80522
80494
|
p: 2
|
|
80523
80495
|
}, open: isOpen, children: /* @__PURE__ */ jsxs(FlexBox, { sx: {
|
|
80524
|
-
p: 2
|
|
80525
|
-
overflowY: "auto"
|
|
80496
|
+
p: 2
|
|
80526
80497
|
}, children: [
|
|
80527
80498
|
/* @__PURE__ */ jsxs(H3, { children: [
|
|
80528
80499
|
/* @__PURE__ */ jsx$1("i", { className: "fa-regular fa-circle-exclamation" }),
|
|
@@ -82985,7 +82956,7 @@ const getCodec = (mode) => {
|
|
|
82985
82956
|
return uriComponentCodec;
|
|
82986
82957
|
}
|
|
82987
82958
|
};
|
|
82988
|
-
const ENCODE_SEARCH_PARAMS_MODES_Schema =
|
|
82959
|
+
const ENCODE_SEARCH_PARAMS_MODES_Schema = z.union([z.literal("as base64"), z.literal("as uri component")]);
|
|
82989
82960
|
/**
|
|
82990
82961
|
* @remix-run/router v1.23.0
|
|
82991
82962
|
*
|
|
@@ -83232,7 +83203,7 @@ new Set(validMutationMethodsArr);
|
|
|
83232
83203
|
const validRequestMethodsArr = ["get", ...validMutationMethodsArr];
|
|
83233
83204
|
new Set(validRequestMethodsArr);
|
|
83234
83205
|
/**
|
|
83235
|
-
* React Router v6.30.
|
|
83206
|
+
* React Router v6.30.0
|
|
83236
83207
|
*
|
|
83237
83208
|
* Copyright (c) Remix Software Inc.
|
|
83238
83209
|
*
|
|
@@ -83470,7 +83441,7 @@ function useNavigateStable() {
|
|
|
83470
83441
|
new Promise(() => {
|
|
83471
83442
|
});
|
|
83472
83443
|
/**
|
|
83473
|
-
* React Router DOM v6.30.
|
|
83444
|
+
* React Router DOM v6.30.0
|
|
83474
83445
|
*
|
|
83475
83446
|
* Copyright (c) Remix Software Inc.
|
|
83476
83447
|
*
|
|
@@ -84099,15 +84070,15 @@ const autoLoggedOut = {
|
|
|
84099
84070
|
set,
|
|
84100
84071
|
remove
|
|
84101
84072
|
};
|
|
84102
|
-
const WipeOnMessageConfigSchema =
|
|
84103
|
-
register:
|
|
84104
|
-
scriptURL:
|
|
84073
|
+
const WipeOnMessageConfigSchema = z.object({
|
|
84074
|
+
register: z.object({
|
|
84075
|
+
scriptURL: z.string(),
|
|
84105
84076
|
// valid string
|
|
84106
|
-
scope:
|
|
84077
|
+
scope: z.string()
|
|
84107
84078
|
// service-worker scope
|
|
84108
84079
|
}),
|
|
84109
|
-
fetchStatus:
|
|
84110
|
-
status:
|
|
84080
|
+
fetchStatus: z.function().args().returns(z.promise(z.object({
|
|
84081
|
+
status: z.number()
|
|
84111
84082
|
})))
|
|
84112
84083
|
});
|
|
84113
84084
|
const setupWipeOnMessage = async (triggerWipe, checkUser, config2) => {
|
|
@@ -84168,15 +84139,15 @@ const setupCheckUserPolling = async (checkUser, checkUserPollTime) => {
|
|
|
84168
84139
|
const pollInterval = setInterval(() => checkUser("poll"), checkUserPollTime);
|
|
84169
84140
|
window.addEventListener("beforeunload", () => clearInterval(pollInterval));
|
|
84170
84141
|
};
|
|
84171
|
-
const WipeConfigSchema =
|
|
84172
|
-
onAuthErrorOnLoad:
|
|
84173
|
-
autoLogoutURL:
|
|
84142
|
+
const WipeConfigSchema = z.object({
|
|
84143
|
+
onAuthErrorOnLoad: z.function(),
|
|
84144
|
+
autoLogoutURL: z.preprocess((val) => typeof val === "string" ? new URL(val) : val, z.instanceof(URL)).optional(),
|
|
84174
84145
|
wipeOnMessage: WipeOnMessageConfigSchema.optional(),
|
|
84175
|
-
isCheckOnPageVisibility:
|
|
84176
|
-
isClickGating:
|
|
84177
|
-
checkUserPollTime:
|
|
84178
|
-
verbose:
|
|
84179
|
-
fetchCurrentUser:
|
|
84146
|
+
isCheckOnPageVisibility: z.boolean().optional(),
|
|
84147
|
+
isClickGating: z.boolean().optional(),
|
|
84148
|
+
checkUserPollTime: z.number().int().positive().optional(),
|
|
84149
|
+
verbose: z.boolean().optional(),
|
|
84150
|
+
fetchCurrentUser: z.function().args().returns(z.promise(z.union([z.string(), z.void()])))
|
|
84180
84151
|
}).optional();
|
|
84181
84152
|
let isSetup = false;
|
|
84182
84153
|
const setupWipe = async (config2) => {
|