@strapi/plugin-users-permissions 5.0.4 → 5.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{index-B7_bRAd_.mjs → index-B9cFxoCN.mjs} +6 -8
- package/dist/_chunks/index-B9cFxoCN.mjs.map +1 -0
- package/dist/_chunks/{index-D77H0Prw.js → index-BJTnrL31.js} +2 -2
- package/dist/_chunks/{index-D77H0Prw.js.map → index-BJTnrL31.js.map} +1 -1
- package/dist/_chunks/{index-IB3oIMzG.js → index-CAgV-G5k.js} +4 -3
- package/dist/_chunks/{index-IB3oIMzG.js.map → index-CAgV-G5k.js.map} +1 -1
- package/dist/_chunks/{index-DUwu4LLN.mjs → index-CI_b1cXd.mjs} +4 -3
- package/dist/_chunks/{index-DUwu4LLN.mjs.map → index-CI_b1cXd.mjs.map} +1 -1
- package/dist/_chunks/{index-BgApJgH8.js → index-Cb03Ke48.js} +4 -4
- package/dist/_chunks/{index-BgApJgH8.js.map → index-Cb03Ke48.js.map} +1 -1
- package/dist/_chunks/{index-DWih5L4l.mjs → index-DDglyd0X.mjs} +2 -2
- package/dist/_chunks/{index-DWih5L4l.mjs.map → index-DDglyd0X.mjs.map} +1 -1
- package/dist/_chunks/{index-CFJAXlSr.mjs → index-DJOPnOVo.mjs} +3 -3
- package/dist/_chunks/{index-CFJAXlSr.mjs.map → index-DJOPnOVo.mjs.map} +1 -1
- package/dist/_chunks/{index-BJvNbZJA-C1E7ADbJ.mjs → index-QPUYgtlo-BfJxOAzF.mjs} +269 -408
- package/dist/_chunks/index-QPUYgtlo-BfJxOAzF.mjs.map +1 -0
- package/dist/_chunks/{index-BJvNbZJA-fMZ4nmrb.js → index-QPUYgtlo-QiBdpWEj.js} +269 -408
- package/dist/_chunks/index-QPUYgtlo-QiBdpWEj.js.map +1 -0
- package/dist/_chunks/{index-CFI4CjXs.js → index-_vrdPeYp.js} +10 -7
- package/dist/_chunks/{index-CFI4CjXs.js.map → index-_vrdPeYp.js.map} +1 -1
- package/dist/_chunks/{index-Ca2RqmyB.mjs → index-bDCZWhLO.mjs} +10 -7
- package/dist/_chunks/{index-Ca2RqmyB.mjs.map → index-bDCZWhLO.mjs.map} +1 -1
- package/dist/_chunks/{index-9xzq093O.js → index-cL_YxyjM.js} +10 -12
- package/dist/_chunks/index-cL_YxyjM.js.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +4 -4
- package/dist/_chunks/index-9xzq093O.js.map +0 -1
- package/dist/_chunks/index-B7_bRAd_.mjs.map +0 -1
- package/dist/_chunks/index-BJvNbZJA-C1E7ADbJ.mjs.map +0 -1
- package/dist/_chunks/index-BJvNbZJA-fMZ4nmrb.js.map +0 -1
|
@@ -27,7 +27,6 @@ import * as yup from "yup";
|
|
|
27
27
|
import "lodash/omit";
|
|
28
28
|
import "formik";
|
|
29
29
|
import "lodash/throttle";
|
|
30
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
31
30
|
function getDefaultExportFromCjs(x) {
|
|
32
31
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
33
32
|
}
|
|
@@ -57,13 +56,6 @@ function getAugmentedNamespace(n) {
|
|
|
57
56
|
});
|
|
58
57
|
return a2;
|
|
59
58
|
}
|
|
60
|
-
var esErrors = Error;
|
|
61
|
-
var _eval = EvalError;
|
|
62
|
-
var range = RangeError;
|
|
63
|
-
var ref = ReferenceError;
|
|
64
|
-
var syntax = SyntaxError;
|
|
65
|
-
var type = TypeError;
|
|
66
|
-
var uri = URIError;
|
|
67
59
|
var shams = function hasSymbols() {
|
|
68
60
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
69
61
|
return false;
|
|
@@ -134,65 +126,39 @@ var hasProto$1 = function hasProto() {
|
|
|
134
126
|
return { __proto__: test$1 }.foo === test$1.foo && !({ __proto__: null } instanceof $Object);
|
|
135
127
|
};
|
|
136
128
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
129
|
+
var slice = Array.prototype.slice;
|
|
137
130
|
var toStr$1 = Object.prototype.toString;
|
|
138
|
-
var max = Math.max;
|
|
139
131
|
var funcType = "[object Function]";
|
|
140
|
-
var concatty = function concatty2(a2, b) {
|
|
141
|
-
var arr = [];
|
|
142
|
-
for (var i = 0; i < a2.length; i += 1) {
|
|
143
|
-
arr[i] = a2[i];
|
|
144
|
-
}
|
|
145
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
146
|
-
arr[j + a2.length] = b[j];
|
|
147
|
-
}
|
|
148
|
-
return arr;
|
|
149
|
-
};
|
|
150
|
-
var slicy = function slicy2(arrLike, offset) {
|
|
151
|
-
var arr = [];
|
|
152
|
-
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
153
|
-
arr[j] = arrLike[i];
|
|
154
|
-
}
|
|
155
|
-
return arr;
|
|
156
|
-
};
|
|
157
|
-
var joiny = function(arr, joiner) {
|
|
158
|
-
var str = "";
|
|
159
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
160
|
-
str += arr[i];
|
|
161
|
-
if (i + 1 < arr.length) {
|
|
162
|
-
str += joiner;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return str;
|
|
166
|
-
};
|
|
167
132
|
var implementation$1 = function bind(that) {
|
|
168
133
|
var target = this;
|
|
169
|
-
if (typeof target !== "function" || toStr$1.
|
|
134
|
+
if (typeof target !== "function" || toStr$1.call(target) !== funcType) {
|
|
170
135
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
171
136
|
}
|
|
172
|
-
var args =
|
|
137
|
+
var args = slice.call(arguments, 1);
|
|
173
138
|
var bound;
|
|
174
139
|
var binder = function() {
|
|
175
140
|
if (this instanceof bound) {
|
|
176
141
|
var result = target.apply(
|
|
177
142
|
this,
|
|
178
|
-
|
|
143
|
+
args.concat(slice.call(arguments))
|
|
179
144
|
);
|
|
180
145
|
if (Object(result) === result) {
|
|
181
146
|
return result;
|
|
182
147
|
}
|
|
183
148
|
return this;
|
|
149
|
+
} else {
|
|
150
|
+
return target.apply(
|
|
151
|
+
that,
|
|
152
|
+
args.concat(slice.call(arguments))
|
|
153
|
+
);
|
|
184
154
|
}
|
|
185
|
-
return target.apply(
|
|
186
|
-
that,
|
|
187
|
-
concatty(args, arguments)
|
|
188
|
-
);
|
|
189
155
|
};
|
|
190
|
-
var boundLength = max(0, target.length - args.length);
|
|
156
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
191
157
|
var boundArgs = [];
|
|
192
158
|
for (var i = 0; i < boundLength; i++) {
|
|
193
|
-
boundArgs
|
|
159
|
+
boundArgs.push("$" + i);
|
|
194
160
|
}
|
|
195
|
-
bound = Function("binder", "return function (" +
|
|
161
|
+
bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
196
162
|
if (target.prototype) {
|
|
197
163
|
var Empty = function Empty2() {
|
|
198
164
|
};
|
|
@@ -204,43 +170,36 @@ var implementation$1 = function bind(that) {
|
|
|
204
170
|
};
|
|
205
171
|
var implementation = implementation$1;
|
|
206
172
|
var functionBind = Function.prototype.bind || implementation;
|
|
207
|
-
var call = Function.prototype.call;
|
|
208
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
209
173
|
var bind$2 = functionBind;
|
|
210
|
-
var
|
|
174
|
+
var src = bind$2.call(Function.call, Object.prototype.hasOwnProperty);
|
|
211
175
|
var undefined$1;
|
|
212
|
-
var $
|
|
213
|
-
var $EvalError = _eval;
|
|
214
|
-
var $RangeError = range;
|
|
215
|
-
var $ReferenceError = ref;
|
|
216
|
-
var $SyntaxError$1 = syntax;
|
|
217
|
-
var $TypeError$3 = type;
|
|
218
|
-
var $URIError = uri;
|
|
176
|
+
var $SyntaxError = SyntaxError;
|
|
219
177
|
var $Function = Function;
|
|
178
|
+
var $TypeError$1 = TypeError;
|
|
220
179
|
var getEvalledConstructor = function(expressionSyntax) {
|
|
221
180
|
try {
|
|
222
181
|
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
223
182
|
} catch (e) {
|
|
224
183
|
}
|
|
225
184
|
};
|
|
226
|
-
var $gOPD
|
|
227
|
-
if ($gOPD
|
|
185
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
186
|
+
if ($gOPD) {
|
|
228
187
|
try {
|
|
229
|
-
$gOPD
|
|
188
|
+
$gOPD({}, "");
|
|
230
189
|
} catch (e) {
|
|
231
|
-
$gOPD
|
|
190
|
+
$gOPD = null;
|
|
232
191
|
}
|
|
233
192
|
}
|
|
234
193
|
var throwTypeError = function() {
|
|
235
|
-
throw new $TypeError$
|
|
194
|
+
throw new $TypeError$1();
|
|
236
195
|
};
|
|
237
|
-
var ThrowTypeError = $gOPD
|
|
196
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
238
197
|
try {
|
|
239
198
|
arguments.callee;
|
|
240
199
|
return throwTypeError;
|
|
241
200
|
} catch (calleeThrows) {
|
|
242
201
|
try {
|
|
243
|
-
return $gOPD
|
|
202
|
+
return $gOPD(arguments, "callee").get;
|
|
244
203
|
} catch (gOPDthrows) {
|
|
245
204
|
return throwTypeError;
|
|
246
205
|
}
|
|
@@ -254,7 +213,6 @@ var getProto = Object.getPrototypeOf || (hasProto2 ? function(x) {
|
|
|
254
213
|
var needsEval = {};
|
|
255
214
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
256
215
|
var INTRINSICS = {
|
|
257
|
-
__proto__: null,
|
|
258
216
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
|
|
259
217
|
"%Array%": Array,
|
|
260
218
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
|
|
@@ -275,10 +233,10 @@ var INTRINSICS = {
|
|
|
275
233
|
"%decodeURIComponent%": decodeURIComponent,
|
|
276
234
|
"%encodeURI%": encodeURI,
|
|
277
235
|
"%encodeURIComponent%": encodeURIComponent,
|
|
278
|
-
"%Error%":
|
|
236
|
+
"%Error%": Error,
|
|
279
237
|
"%eval%": eval,
|
|
280
238
|
// eslint-disable-line no-eval
|
|
281
|
-
"%EvalError%":
|
|
239
|
+
"%EvalError%": EvalError,
|
|
282
240
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
|
|
283
241
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
|
|
284
242
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
|
|
@@ -300,8 +258,8 @@ var INTRINSICS = {
|
|
|
300
258
|
"%parseInt%": parseInt,
|
|
301
259
|
"%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
|
|
302
260
|
"%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
|
|
303
|
-
"%RangeError%":
|
|
304
|
-
"%ReferenceError%":
|
|
261
|
+
"%RangeError%": RangeError,
|
|
262
|
+
"%ReferenceError%": ReferenceError,
|
|
305
263
|
"%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
|
|
306
264
|
"%RegExp%": RegExp,
|
|
307
265
|
"%Set%": typeof Set === "undefined" ? undefined$1 : Set,
|
|
@@ -310,15 +268,15 @@ var INTRINSICS = {
|
|
|
310
268
|
"%String%": String,
|
|
311
269
|
"%StringIteratorPrototype%": hasSymbols2 && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
|
|
312
270
|
"%Symbol%": hasSymbols2 ? Symbol : undefined$1,
|
|
313
|
-
"%SyntaxError%": $SyntaxError
|
|
271
|
+
"%SyntaxError%": $SyntaxError,
|
|
314
272
|
"%ThrowTypeError%": ThrowTypeError,
|
|
315
273
|
"%TypedArray%": TypedArray,
|
|
316
|
-
"%TypeError%": $TypeError$
|
|
274
|
+
"%TypeError%": $TypeError$1,
|
|
317
275
|
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
|
|
318
276
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
|
|
319
277
|
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
|
|
320
278
|
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
|
|
321
|
-
"%URIError%":
|
|
279
|
+
"%URIError%": URIError,
|
|
322
280
|
"%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
|
|
323
281
|
"%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
|
|
324
282
|
"%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
|
|
@@ -354,7 +312,6 @@ var doEval = function doEval2(name) {
|
|
|
354
312
|
return value;
|
|
355
313
|
};
|
|
356
314
|
var LEGACY_ALIASES = {
|
|
357
|
-
__proto__: null,
|
|
358
315
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
359
316
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
360
317
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -408,7 +365,7 @@ var LEGACY_ALIASES = {
|
|
|
408
365
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
409
366
|
};
|
|
410
367
|
var bind$1 = functionBind;
|
|
411
|
-
var hasOwn$1 =
|
|
368
|
+
var hasOwn$1 = src;
|
|
412
369
|
var $concat$1 = bind$1.call(Function.call, Array.prototype.concat);
|
|
413
370
|
var $spliceApply = bind$1.call(Function.apply, Array.prototype.splice);
|
|
414
371
|
var $replace$1 = bind$1.call(Function.call, String.prototype.replace);
|
|
@@ -420,9 +377,9 @@ var stringToPath = function stringToPath2(string) {
|
|
|
420
377
|
var first = $strSlice(string, 0, 1);
|
|
421
378
|
var last = $strSlice(string, -1);
|
|
422
379
|
if (first === "%" && last !== "%") {
|
|
423
|
-
throw new $SyntaxError
|
|
380
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
424
381
|
} else if (last === "%" && first !== "%") {
|
|
425
|
-
throw new $SyntaxError
|
|
382
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
426
383
|
}
|
|
427
384
|
var result = [];
|
|
428
385
|
$replace$1(string, rePropName, function(match, number, quote2, subString) {
|
|
@@ -443,7 +400,7 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
|
443
400
|
value = doEval(intrinsicName);
|
|
444
401
|
}
|
|
445
402
|
if (typeof value === "undefined" && !allowMissing) {
|
|
446
|
-
throw new $TypeError$
|
|
403
|
+
throw new $TypeError$1("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
447
404
|
}
|
|
448
405
|
return {
|
|
449
406
|
alias,
|
|
@@ -451,17 +408,17 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
|
451
408
|
value
|
|
452
409
|
};
|
|
453
410
|
}
|
|
454
|
-
throw new $SyntaxError
|
|
411
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
455
412
|
};
|
|
456
413
|
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
457
414
|
if (typeof name !== "string" || name.length === 0) {
|
|
458
|
-
throw new $TypeError$
|
|
415
|
+
throw new $TypeError$1("intrinsic name must be a non-empty string");
|
|
459
416
|
}
|
|
460
417
|
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
461
|
-
throw new $TypeError$
|
|
418
|
+
throw new $TypeError$1('"allowMissing" argument must be a boolean');
|
|
462
419
|
}
|
|
463
420
|
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
464
|
-
throw new $SyntaxError
|
|
421
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
465
422
|
}
|
|
466
423
|
var parts = stringToPath(name);
|
|
467
424
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
@@ -479,7 +436,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
479
436
|
var first = $strSlice(part, 0, 1);
|
|
480
437
|
var last = $strSlice(part, -1);
|
|
481
438
|
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
482
|
-
throw new $SyntaxError
|
|
439
|
+
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
483
440
|
}
|
|
484
441
|
if (part === "constructor" || !isOwn) {
|
|
485
442
|
skipFurtherCaching = true;
|
|
@@ -491,12 +448,12 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
491
448
|
} else if (value != null) {
|
|
492
449
|
if (!(part in value)) {
|
|
493
450
|
if (!allowMissing) {
|
|
494
|
-
throw new $TypeError$
|
|
451
|
+
throw new $TypeError$1("base intrinsic for " + name + " exists, but the property is not available.");
|
|
495
452
|
}
|
|
496
453
|
return void 0;
|
|
497
454
|
}
|
|
498
|
-
if ($gOPD
|
|
499
|
-
var desc = $gOPD
|
|
455
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
456
|
+
var desc = $gOPD(value, part);
|
|
500
457
|
isOwn = !!desc;
|
|
501
458
|
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
502
459
|
value = desc.get;
|
|
@@ -515,162 +472,41 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
515
472
|
return value;
|
|
516
473
|
};
|
|
517
474
|
var callBind$1 = { exports: {} };
|
|
518
|
-
var esDefineProperty;
|
|
519
|
-
var hasRequiredEsDefineProperty;
|
|
520
|
-
function requireEsDefineProperty() {
|
|
521
|
-
if (hasRequiredEsDefineProperty)
|
|
522
|
-
return esDefineProperty;
|
|
523
|
-
hasRequiredEsDefineProperty = 1;
|
|
524
|
-
var GetIntrinsic3 = getIntrinsic;
|
|
525
|
-
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
526
|
-
if ($defineProperty2) {
|
|
527
|
-
try {
|
|
528
|
-
$defineProperty2({}, "a", { value: 1 });
|
|
529
|
-
} catch (e) {
|
|
530
|
-
$defineProperty2 = false;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
esDefineProperty = $defineProperty2;
|
|
534
|
-
return esDefineProperty;
|
|
535
|
-
}
|
|
536
|
-
var GetIntrinsic$3 = getIntrinsic;
|
|
537
|
-
var $gOPD = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
538
|
-
if ($gOPD) {
|
|
539
|
-
try {
|
|
540
|
-
$gOPD([], "length");
|
|
541
|
-
} catch (e) {
|
|
542
|
-
$gOPD = null;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
var gopd$1 = $gOPD;
|
|
546
|
-
var $defineProperty$1 = requireEsDefineProperty();
|
|
547
|
-
var $SyntaxError = syntax;
|
|
548
|
-
var $TypeError$2 = type;
|
|
549
|
-
var gopd = gopd$1;
|
|
550
|
-
var defineDataProperty = function defineDataProperty2(obj, property, value) {
|
|
551
|
-
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
552
|
-
throw new $TypeError$2("`obj` must be an object or a function`");
|
|
553
|
-
}
|
|
554
|
-
if (typeof property !== "string" && typeof property !== "symbol") {
|
|
555
|
-
throw new $TypeError$2("`property` must be a string or a symbol`");
|
|
556
|
-
}
|
|
557
|
-
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
|
|
558
|
-
throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");
|
|
559
|
-
}
|
|
560
|
-
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
|
|
561
|
-
throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");
|
|
562
|
-
}
|
|
563
|
-
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
|
|
564
|
-
throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");
|
|
565
|
-
}
|
|
566
|
-
if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
|
|
567
|
-
throw new $TypeError$2("`loose`, if provided, must be a boolean");
|
|
568
|
-
}
|
|
569
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
570
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
571
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
572
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
573
|
-
var desc = !!gopd && gopd(obj, property);
|
|
574
|
-
if ($defineProperty$1) {
|
|
575
|
-
$defineProperty$1(obj, property, {
|
|
576
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
577
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
578
|
-
value,
|
|
579
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
580
|
-
});
|
|
581
|
-
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
582
|
-
obj[property] = value;
|
|
583
|
-
} else {
|
|
584
|
-
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
var $defineProperty = requireEsDefineProperty();
|
|
588
|
-
var hasPropertyDescriptors = function hasPropertyDescriptors2() {
|
|
589
|
-
return !!$defineProperty;
|
|
590
|
-
};
|
|
591
|
-
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
592
|
-
if (!$defineProperty) {
|
|
593
|
-
return null;
|
|
594
|
-
}
|
|
595
|
-
try {
|
|
596
|
-
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
597
|
-
} catch (e) {
|
|
598
|
-
return true;
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
602
|
-
var GetIntrinsic$2 = getIntrinsic;
|
|
603
|
-
var define = defineDataProperty;
|
|
604
|
-
var hasDescriptors = hasPropertyDescriptors_1();
|
|
605
|
-
var gOPD = gopd$1;
|
|
606
|
-
var $TypeError$1 = type;
|
|
607
|
-
var $floor$1 = GetIntrinsic$2("%Math.floor%");
|
|
608
|
-
var setFunctionLength = function setFunctionLength2(fn, length) {
|
|
609
|
-
if (typeof fn !== "function") {
|
|
610
|
-
throw new $TypeError$1("`fn` is not a function");
|
|
611
|
-
}
|
|
612
|
-
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor$1(length) !== length) {
|
|
613
|
-
throw new $TypeError$1("`length` must be a positive 32-bit integer");
|
|
614
|
-
}
|
|
615
|
-
var loose = arguments.length > 2 && !!arguments[2];
|
|
616
|
-
var functionLengthIsConfigurable = true;
|
|
617
|
-
var functionLengthIsWritable = true;
|
|
618
|
-
if ("length" in fn && gOPD) {
|
|
619
|
-
var desc = gOPD(fn, "length");
|
|
620
|
-
if (desc && !desc.configurable) {
|
|
621
|
-
functionLengthIsConfigurable = false;
|
|
622
|
-
}
|
|
623
|
-
if (desc && !desc.writable) {
|
|
624
|
-
functionLengthIsWritable = false;
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
628
|
-
if (hasDescriptors) {
|
|
629
|
-
define(
|
|
630
|
-
/** @type {Parameters<define>[0]} */
|
|
631
|
-
fn,
|
|
632
|
-
"length",
|
|
633
|
-
length,
|
|
634
|
-
true,
|
|
635
|
-
true
|
|
636
|
-
);
|
|
637
|
-
} else {
|
|
638
|
-
define(
|
|
639
|
-
/** @type {Parameters<define>[0]} */
|
|
640
|
-
fn,
|
|
641
|
-
"length",
|
|
642
|
-
length
|
|
643
|
-
);
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
return fn;
|
|
647
|
-
};
|
|
648
475
|
(function(module) {
|
|
649
476
|
var bind3 = functionBind;
|
|
650
477
|
var GetIntrinsic3 = getIntrinsic;
|
|
651
|
-
var setFunctionLength$1 = setFunctionLength;
|
|
652
|
-
var $TypeError2 = type;
|
|
653
478
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
654
479
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
655
480
|
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
|
|
656
|
-
var $
|
|
481
|
+
var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true);
|
|
482
|
+
var $defineProperty = GetIntrinsic3("%Object.defineProperty%", true);
|
|
657
483
|
var $max = GetIntrinsic3("%Math.max%");
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
484
|
+
if ($defineProperty) {
|
|
485
|
+
try {
|
|
486
|
+
$defineProperty({}, "a", { value: 1 });
|
|
487
|
+
} catch (e) {
|
|
488
|
+
$defineProperty = null;
|
|
661
489
|
}
|
|
490
|
+
}
|
|
491
|
+
module.exports = function callBind2(originalFunction) {
|
|
662
492
|
var func = $reflectApply(bind3, $call, arguments);
|
|
663
|
-
|
|
664
|
-
func,
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
493
|
+
if ($gOPD2 && $defineProperty) {
|
|
494
|
+
var desc = $gOPD2(func, "length");
|
|
495
|
+
if (desc.configurable) {
|
|
496
|
+
$defineProperty(
|
|
497
|
+
func,
|
|
498
|
+
"length",
|
|
499
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return func;
|
|
668
504
|
};
|
|
669
505
|
var applyBind = function applyBind2() {
|
|
670
506
|
return $reflectApply(bind3, $apply, arguments);
|
|
671
507
|
};
|
|
672
|
-
if ($
|
|
673
|
-
$
|
|
508
|
+
if ($defineProperty) {
|
|
509
|
+
$defineProperty(module.exports, "apply", { value: applyBind });
|
|
674
510
|
} else {
|
|
675
511
|
module.exports.apply = applyBind;
|
|
676
512
|
}
|
|
@@ -905,12 +741,6 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
905
741
|
if (isString$1(obj)) {
|
|
906
742
|
return markBoxed(inspect2(String(obj)));
|
|
907
743
|
}
|
|
908
|
-
if (typeof window !== "undefined" && obj === window) {
|
|
909
|
-
return "{ [object Window] }";
|
|
910
|
-
}
|
|
911
|
-
if (typeof globalThis !== "undefined" && obj === globalThis || typeof commonjsGlobal !== "undefined" && obj === commonjsGlobal) {
|
|
912
|
-
return "{ [object globalThis] }";
|
|
913
|
-
}
|
|
914
744
|
if (!isDate$2(obj) && !isRegExp$2(obj)) {
|
|
915
745
|
var ys = arrObjKeys(obj, inspect2);
|
|
916
746
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -1124,12 +954,12 @@ function lowbyte(c) {
|
|
|
1124
954
|
function markBoxed(str) {
|
|
1125
955
|
return "Object(" + str + ")";
|
|
1126
956
|
}
|
|
1127
|
-
function weakCollectionOf(
|
|
1128
|
-
return
|
|
957
|
+
function weakCollectionOf(type) {
|
|
958
|
+
return type + " { ? }";
|
|
1129
959
|
}
|
|
1130
|
-
function collectionOf(
|
|
960
|
+
function collectionOf(type, size, entries, indent) {
|
|
1131
961
|
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
|
|
1132
|
-
return
|
|
962
|
+
return type + " (" + size + ") {" + joinedEntries + "}";
|
|
1133
963
|
}
|
|
1134
964
|
function singleLineValues(xs) {
|
|
1135
965
|
for (var i = 0; i < xs.length; i++) {
|
|
@@ -1204,7 +1034,7 @@ function arrObjKeys(obj, inspect2) {
|
|
|
1204
1034
|
var GetIntrinsic2 = getIntrinsic;
|
|
1205
1035
|
var callBound = callBound$1;
|
|
1206
1036
|
var inspect = objectInspect;
|
|
1207
|
-
var $TypeError =
|
|
1037
|
+
var $TypeError = GetIntrinsic2("%TypeError%");
|
|
1208
1038
|
var $WeakMap = GetIntrinsic2("%WeakMap%", true);
|
|
1209
1039
|
var $Map = GetIntrinsic2("%Map%", true);
|
|
1210
1040
|
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
@@ -1214,13 +1044,10 @@ var $mapGet = callBound("Map.prototype.get", true);
|
|
|
1214
1044
|
var $mapSet = callBound("Map.prototype.set", true);
|
|
1215
1045
|
var $mapHas = callBound("Map.prototype.has", true);
|
|
1216
1046
|
var listGetNode = function(list, key) {
|
|
1217
|
-
var prev = list;
|
|
1218
|
-
var curr;
|
|
1219
|
-
for (; (curr = prev.next) !== null; prev = curr) {
|
|
1047
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
1220
1048
|
if (curr.key === key) {
|
|
1221
1049
|
prev.next = curr.next;
|
|
1222
|
-
curr.next =
|
|
1223
|
-
list.next;
|
|
1050
|
+
curr.next = list.next;
|
|
1224
1051
|
list.next = curr;
|
|
1225
1052
|
return curr;
|
|
1226
1053
|
}
|
|
@@ -1235,9 +1062,8 @@ var listSet = function(objects, key, value) {
|
|
|
1235
1062
|
if (node) {
|
|
1236
1063
|
node.value = value;
|
|
1237
1064
|
} else {
|
|
1238
|
-
objects.next =
|
|
1239
|
-
|
|
1240
|
-
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
1065
|
+
objects.next = {
|
|
1066
|
+
// eslint-disable-line no-param-reassign
|
|
1241
1067
|
key,
|
|
1242
1068
|
next: objects.next,
|
|
1243
1069
|
value
|
|
@@ -1543,7 +1369,7 @@ var pushToArray = function(arr, valueOrArray) {
|
|
|
1543
1369
|
};
|
|
1544
1370
|
var toISO = Date.prototype.toISOString;
|
|
1545
1371
|
var defaultFormat = formats$1["default"];
|
|
1546
|
-
var defaults$
|
|
1372
|
+
var defaults$3 = {
|
|
1547
1373
|
addQueryPrefix: false,
|
|
1548
1374
|
allowDots: false,
|
|
1549
1375
|
charset: "utf-8",
|
|
@@ -1599,14 +1425,14 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
|
|
|
1599
1425
|
}
|
|
1600
1426
|
if (obj === null) {
|
|
1601
1427
|
if (strictNullHandling) {
|
|
1602
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults$
|
|
1428
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults$3.encoder, charset, "key", format) : prefix;
|
|
1603
1429
|
}
|
|
1604
1430
|
obj = "";
|
|
1605
1431
|
}
|
|
1606
1432
|
if (isNonNullishPrimitive(obj) || utils$3.isBuffer(obj)) {
|
|
1607
1433
|
if (encoder) {
|
|
1608
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$
|
|
1609
|
-
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults$
|
|
1434
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$3.encoder, charset, "key", format);
|
|
1435
|
+
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults$3.encoder, charset, "value", format))];
|
|
1610
1436
|
}
|
|
1611
1437
|
return [formatter(prefix) + "=" + formatter(String(obj))];
|
|
1612
1438
|
}
|
|
@@ -1660,12 +1486,12 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
|
|
|
1660
1486
|
};
|
|
1661
1487
|
var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
1662
1488
|
if (!opts) {
|
|
1663
|
-
return defaults$
|
|
1489
|
+
return defaults$3;
|
|
1664
1490
|
}
|
|
1665
1491
|
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
1666
1492
|
throw new TypeError("Encoder has to be a function.");
|
|
1667
1493
|
}
|
|
1668
|
-
var charset = opts.charset || defaults$
|
|
1494
|
+
var charset = opts.charset || defaults$3.charset;
|
|
1669
1495
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
1670
1496
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1671
1497
|
}
|
|
@@ -1677,26 +1503,26 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
|
1677
1503
|
format = opts.format;
|
|
1678
1504
|
}
|
|
1679
1505
|
var formatter = formats$1.formatters[format];
|
|
1680
|
-
var filter2 = defaults$
|
|
1506
|
+
var filter2 = defaults$3.filter;
|
|
1681
1507
|
if (typeof opts.filter === "function" || isArray$2(opts.filter)) {
|
|
1682
1508
|
filter2 = opts.filter;
|
|
1683
1509
|
}
|
|
1684
1510
|
return {
|
|
1685
|
-
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$
|
|
1686
|
-
allowDots: typeof opts.allowDots === "undefined" ? defaults$
|
|
1511
|
+
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$3.addQueryPrefix,
|
|
1512
|
+
allowDots: typeof opts.allowDots === "undefined" ? defaults$3.allowDots : !!opts.allowDots,
|
|
1687
1513
|
charset,
|
|
1688
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$
|
|
1689
|
-
delimiter: typeof opts.delimiter === "undefined" ? defaults$
|
|
1690
|
-
encode: typeof opts.encode === "boolean" ? opts.encode : defaults$
|
|
1691
|
-
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$
|
|
1692
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$
|
|
1514
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$3.charsetSentinel,
|
|
1515
|
+
delimiter: typeof opts.delimiter === "undefined" ? defaults$3.delimiter : opts.delimiter,
|
|
1516
|
+
encode: typeof opts.encode === "boolean" ? opts.encode : defaults$3.encode,
|
|
1517
|
+
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$3.encoder,
|
|
1518
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$3.encodeValuesOnly,
|
|
1693
1519
|
filter: filter2,
|
|
1694
1520
|
format,
|
|
1695
1521
|
formatter,
|
|
1696
|
-
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults$
|
|
1697
|
-
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults$
|
|
1522
|
+
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults$3.serializeDate,
|
|
1523
|
+
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults$3.skipNulls,
|
|
1698
1524
|
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
1699
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$
|
|
1525
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$3.strictNullHandling
|
|
1700
1526
|
};
|
|
1701
1527
|
};
|
|
1702
1528
|
var stringify_1 = function(object, opts) {
|
|
@@ -1773,7 +1599,7 @@ var stringify_1 = function(object, opts) {
|
|
|
1773
1599
|
var utils$2 = utils$4;
|
|
1774
1600
|
var has = Object.prototype.hasOwnProperty;
|
|
1775
1601
|
var isArray$1 = Array.isArray;
|
|
1776
|
-
var defaults$
|
|
1602
|
+
var defaults$2 = {
|
|
1777
1603
|
allowDots: false,
|
|
1778
1604
|
allowPrototypes: false,
|
|
1779
1605
|
allowSparse: false,
|
|
@@ -1834,14 +1660,14 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
1834
1660
|
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
1835
1661
|
var key, val;
|
|
1836
1662
|
if (pos === -1) {
|
|
1837
|
-
key = options.decoder(part, defaults$
|
|
1663
|
+
key = options.decoder(part, defaults$2.decoder, charset, "key");
|
|
1838
1664
|
val = options.strictNullHandling ? null : "";
|
|
1839
1665
|
} else {
|
|
1840
|
-
key = options.decoder(part.slice(0, pos), defaults$
|
|
1666
|
+
key = options.decoder(part.slice(0, pos), defaults$2.decoder, charset, "key");
|
|
1841
1667
|
val = utils$2.maybeMap(
|
|
1842
1668
|
parseArrayValue(part.slice(pos + 1), options),
|
|
1843
1669
|
function(encodedVal) {
|
|
1844
|
-
return options.decoder(encodedVal, defaults$
|
|
1670
|
+
return options.decoder(encodedVal, defaults$2.decoder, charset, "value");
|
|
1845
1671
|
}
|
|
1846
1672
|
);
|
|
1847
1673
|
}
|
|
@@ -1918,7 +1744,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
|
|
|
1918
1744
|
};
|
|
1919
1745
|
var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
1920
1746
|
if (!opts) {
|
|
1921
|
-
return defaults$
|
|
1747
|
+
return defaults$2;
|
|
1922
1748
|
}
|
|
1923
1749
|
if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
|
|
1924
1750
|
throw new TypeError("Decoder has to be a function.");
|
|
@@ -1926,25 +1752,25 @@ var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
|
1926
1752
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
1927
1753
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1928
1754
|
}
|
|
1929
|
-
var charset = typeof opts.charset === "undefined" ? defaults$
|
|
1755
|
+
var charset = typeof opts.charset === "undefined" ? defaults$2.charset : opts.charset;
|
|
1930
1756
|
return {
|
|
1931
|
-
allowDots: typeof opts.allowDots === "undefined" ? defaults$
|
|
1932
|
-
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults$
|
|
1933
|
-
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults$
|
|
1934
|
-
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults$
|
|
1757
|
+
allowDots: typeof opts.allowDots === "undefined" ? defaults$2.allowDots : !!opts.allowDots,
|
|
1758
|
+
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults$2.allowPrototypes,
|
|
1759
|
+
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults$2.allowSparse,
|
|
1760
|
+
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults$2.arrayLimit,
|
|
1935
1761
|
charset,
|
|
1936
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$
|
|
1937
|
-
comma: typeof opts.comma === "boolean" ? opts.comma : defaults$
|
|
1938
|
-
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults$
|
|
1939
|
-
delimiter: typeof opts.delimiter === "string" || utils$2.isRegExp(opts.delimiter) ? opts.delimiter : defaults$
|
|
1762
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$2.charsetSentinel,
|
|
1763
|
+
comma: typeof opts.comma === "boolean" ? opts.comma : defaults$2.comma,
|
|
1764
|
+
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults$2.decoder,
|
|
1765
|
+
delimiter: typeof opts.delimiter === "string" || utils$2.isRegExp(opts.delimiter) ? opts.delimiter : defaults$2.delimiter,
|
|
1940
1766
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1941
|
-
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults$
|
|
1767
|
+
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults$2.depth,
|
|
1942
1768
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
1943
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults$
|
|
1944
|
-
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults$
|
|
1769
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults$2.interpretNumericEntities,
|
|
1770
|
+
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults$2.parameterLimit,
|
|
1945
1771
|
parseArrays: opts.parseArrays !== false,
|
|
1946
|
-
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults$
|
|
1947
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$
|
|
1772
|
+
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults$2.plainObjects,
|
|
1773
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$2.strictNullHandling
|
|
1948
1774
|
};
|
|
1949
1775
|
};
|
|
1950
1776
|
var parse$1 = function(str, opts) {
|
|
@@ -2001,14 +1827,14 @@ function miniKindOf(val) {
|
|
|
2001
1827
|
return "undefined";
|
|
2002
1828
|
if (val === null)
|
|
2003
1829
|
return "null";
|
|
2004
|
-
var
|
|
2005
|
-
switch (
|
|
1830
|
+
var type = typeof val;
|
|
1831
|
+
switch (type) {
|
|
2006
1832
|
case "boolean":
|
|
2007
1833
|
case "string":
|
|
2008
1834
|
case "number":
|
|
2009
1835
|
case "symbol":
|
|
2010
1836
|
case "function": {
|
|
2011
|
-
return
|
|
1837
|
+
return type;
|
|
2012
1838
|
}
|
|
2013
1839
|
}
|
|
2014
1840
|
if (Array.isArray(val))
|
|
@@ -2027,7 +1853,7 @@ function miniKindOf(val) {
|
|
|
2027
1853
|
case "Set":
|
|
2028
1854
|
return constructorName;
|
|
2029
1855
|
}
|
|
2030
|
-
return
|
|
1856
|
+
return type.slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
2031
1857
|
}
|
|
2032
1858
|
function ctorName(val) {
|
|
2033
1859
|
return typeof val.constructor === "function" ? val.constructor.name : null;
|
|
@@ -2490,7 +2316,7 @@ function isPlainObject$2(value) {
|
|
|
2490
2316
|
var hasMatchFunction = function(v2) {
|
|
2491
2317
|
return v2 && typeof v2.match === "function";
|
|
2492
2318
|
};
|
|
2493
|
-
function createAction(
|
|
2319
|
+
function createAction(type, prepareAction) {
|
|
2494
2320
|
function actionCreator() {
|
|
2495
2321
|
var args = [];
|
|
2496
2322
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -2502,18 +2328,18 @@ function createAction(type2, prepareAction) {
|
|
|
2502
2328
|
throw new Error("prepareAction did not return an object");
|
|
2503
2329
|
}
|
|
2504
2330
|
return __spreadValues$2(__spreadValues$2({
|
|
2505
|
-
type
|
|
2331
|
+
type,
|
|
2506
2332
|
payload: prepared.payload
|
|
2507
2333
|
}, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
|
|
2508
2334
|
}
|
|
2509
|
-
return { type
|
|
2335
|
+
return { type, payload: args[0] };
|
|
2510
2336
|
}
|
|
2511
2337
|
actionCreator.toString = function() {
|
|
2512
|
-
return "" +
|
|
2338
|
+
return "" + type;
|
|
2513
2339
|
};
|
|
2514
|
-
actionCreator.type =
|
|
2340
|
+
actionCreator.type = type;
|
|
2515
2341
|
actionCreator.match = function(action) {
|
|
2516
|
-
return action.type ===
|
|
2342
|
+
return action.type === type;
|
|
2517
2343
|
};
|
|
2518
2344
|
return actionCreator;
|
|
2519
2345
|
}
|
|
@@ -2611,14 +2437,14 @@ function executeReducerBuilderCallback(builderCallback) {
|
|
|
2611
2437
|
throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
|
|
2612
2438
|
}
|
|
2613
2439
|
}
|
|
2614
|
-
var
|
|
2615
|
-
if (!
|
|
2440
|
+
var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
|
|
2441
|
+
if (!type) {
|
|
2616
2442
|
throw new Error("`builder.addCase` cannot be called with an empty action type");
|
|
2617
2443
|
}
|
|
2618
|
-
if (
|
|
2444
|
+
if (type in actionsMap) {
|
|
2619
2445
|
throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
|
|
2620
2446
|
}
|
|
2621
|
-
actionsMap[
|
|
2447
|
+
actionsMap[type] = reducer2;
|
|
2622
2448
|
return builder;
|
|
2623
2449
|
},
|
|
2624
2450
|
addMatcher: function(matcher, reducer2) {
|
|
@@ -2720,8 +2546,8 @@ function createReducer(initialState2, mapOrBuilderCallback, actionMatchers, defa
|
|
|
2720
2546
|
return reducer2;
|
|
2721
2547
|
}
|
|
2722
2548
|
var hasWarnedAboutObjectNotation2 = false;
|
|
2723
|
-
function getType2(
|
|
2724
|
-
return
|
|
2549
|
+
function getType2(slice2, actionKey) {
|
|
2550
|
+
return slice2 + "/" + actionKey;
|
|
2725
2551
|
}
|
|
2726
2552
|
function createSlice(options) {
|
|
2727
2553
|
var name = options.name;
|
|
@@ -2741,7 +2567,7 @@ function createSlice(options) {
|
|
|
2741
2567
|
var actionCreators = {};
|
|
2742
2568
|
reducerNames.forEach(function(reducerName) {
|
|
2743
2569
|
var maybeReducerWithPrepare = reducers[reducerName];
|
|
2744
|
-
var
|
|
2570
|
+
var type = getType2(name, reducerName);
|
|
2745
2571
|
var caseReducer;
|
|
2746
2572
|
var prepareCallback;
|
|
2747
2573
|
if ("reducer" in maybeReducerWithPrepare) {
|
|
@@ -2751,8 +2577,8 @@ function createSlice(options) {
|
|
|
2751
2577
|
caseReducer = maybeReducerWithPrepare;
|
|
2752
2578
|
}
|
|
2753
2579
|
sliceCaseReducersByName[reducerName] = caseReducer;
|
|
2754
|
-
sliceCaseReducersByType[
|
|
2755
|
-
actionCreators[reducerName] = prepareCallback ? createAction(
|
|
2580
|
+
sliceCaseReducersByType[type] = caseReducer;
|
|
2581
|
+
actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
|
|
2756
2582
|
});
|
|
2757
2583
|
function buildReducer() {
|
|
2758
2584
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -3940,8 +3766,8 @@ function buildThunks(_j) {
|
|
|
3940
3766
|
buildMatchThunkActions
|
|
3941
3767
|
};
|
|
3942
3768
|
}
|
|
3943
|
-
function calculateProvidedByThunk(action,
|
|
3944
|
-
return calculateProvidedBy(endpointDefinitions[action.meta.arg.endpointName][
|
|
3769
|
+
function calculateProvidedByThunk(action, type, endpointDefinitions, assertTagType) {
|
|
3770
|
+
return calculateProvidedBy(endpointDefinitions[action.meta.arg.endpointName][type], isFulfilled(action) ? action.payload : void 0, isRejectedWithValue(action) ? action.payload : void 0, action.meta.arg.originalArgs, "baseQueryMeta" in action.meta ? action.meta.baseQueryMeta : void 0, assertTagType);
|
|
3945
3771
|
}
|
|
3946
3772
|
function updateQuerySubstateIfExists(state, queryCacheKey, update) {
|
|
3947
3773
|
var substate = state[queryCacheKey];
|
|
@@ -4132,8 +3958,8 @@ function buildSlice(_j) {
|
|
|
4132
3958
|
}
|
|
4133
3959
|
}
|
|
4134
3960
|
for (var _p = 0, providedTags_1 = providedTags; _p < providedTags_1.length; _p++) {
|
|
4135
|
-
var _q = providedTags_1[_p],
|
|
4136
|
-
var subscribedQueries = (_d = (_b = (_a = draft[
|
|
3961
|
+
var _q = providedTags_1[_p], type = _q.type, id = _q.id;
|
|
3962
|
+
var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = [];
|
|
4137
3963
|
var alreadySubscribed = subscribedQueries.includes(queryCacheKey);
|
|
4138
3964
|
if (!alreadySubscribed) {
|
|
4139
3965
|
subscribedQueries.push(queryCacheKey);
|
|
@@ -4160,10 +3986,10 @@ function buildSlice(_j) {
|
|
|
4160
3986
|
var _a, _b, _c, _d;
|
|
4161
3987
|
var provided = extractRehydrationInfo(action).provided;
|
|
4162
3988
|
for (var _j2 = 0, _k2 = Object.entries(provided); _j2 < _k2.length; _j2++) {
|
|
4163
|
-
var _l = _k2[_j2],
|
|
3989
|
+
var _l = _k2[_j2], type = _l[0], incomingTags = _l[1];
|
|
4164
3990
|
for (var _m = 0, _o = Object.entries(incomingTags); _m < _o.length; _m++) {
|
|
4165
3991
|
var _p = _o[_m], id = _p[0], cacheKeys = _p[1];
|
|
4166
|
-
var subscribedQueries = (_d = (_b = (_a = draft[
|
|
3992
|
+
var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = [];
|
|
4167
3993
|
for (var _q = 0, cacheKeys_1 = cacheKeys; _q < cacheKeys_1.length; _q++) {
|
|
4168
3994
|
var queryCacheKey = cacheKeys_1[_q];
|
|
4169
3995
|
var alreadySubscribed = subscribedQueries.includes(queryCacheKey);
|
|
@@ -4669,7 +4495,7 @@ var buildWindowEventHandler = function(_j) {
|
|
|
4669
4495
|
refetchValidQueries(mwApi, "refetchOnReconnect");
|
|
4670
4496
|
}
|
|
4671
4497
|
};
|
|
4672
|
-
function refetchValidQueries(api2,
|
|
4498
|
+
function refetchValidQueries(api2, type) {
|
|
4673
4499
|
var state = api2.getState()[reducerPath];
|
|
4674
4500
|
var queries = state.queries;
|
|
4675
4501
|
var subscriptions = internalState.currentSubscriptions;
|
|
@@ -4681,10 +4507,10 @@ var buildWindowEventHandler = function(_j) {
|
|
|
4681
4507
|
if (!subscriptionSubState || !querySubState)
|
|
4682
4508
|
continue;
|
|
4683
4509
|
var shouldRefetch = Object.values(subscriptionSubState).some(function(sub) {
|
|
4684
|
-
return sub[
|
|
4510
|
+
return sub[type] === true;
|
|
4685
4511
|
}) || Object.values(subscriptionSubState).every(function(sub) {
|
|
4686
|
-
return sub[
|
|
4687
|
-
}) && state.config[
|
|
4512
|
+
return sub[type] === void 0;
|
|
4513
|
+
}) && state.config[type];
|
|
4688
4514
|
if (shouldRefetch) {
|
|
4689
4515
|
if (Object.keys(subscriptionSubState).length === 0) {
|
|
4690
4516
|
api2.dispatch(removeQueryResult({
|
|
@@ -5556,7 +5382,7 @@ function safeAssign(target) {
|
|
|
5556
5382
|
}
|
|
5557
5383
|
var reactHooksModuleName = /* @__PURE__ */ Symbol();
|
|
5558
5384
|
var reactHooksModule = function(_c) {
|
|
5559
|
-
var _d = {}, _e = _d.batch, batch$1 = _e === void 0 ? batch : _e, _f = _d.useDispatch, useDispatch$1 = _f === void 0 ? useDispatch : _f, _g = _d.useSelector, useSelector$1 = _g === void 0 ? useSelector : _g, _h = _d.useStore, useStore$1 = _h === void 0 ? useStore : _h, _j = _d.unstable__sideEffectsInRender, unstable__sideEffectsInRender = _j === void 0 ? false : _j;
|
|
5385
|
+
var _d = _c === void 0 ? {} : _c, _e = _d.batch, batch$1 = _e === void 0 ? batch : _e, _f = _d.useDispatch, useDispatch$1 = _f === void 0 ? useDispatch : _f, _g = _d.useSelector, useSelector$1 = _g === void 0 ? useSelector : _g, _h = _d.useStore, useStore$1 = _h === void 0 ? useStore : _h, _j = _d.unstable__sideEffectsInRender, unstable__sideEffectsInRender = _j === void 0 ? false : _j;
|
|
5560
5386
|
return {
|
|
5561
5387
|
name: reactHooksModuleName,
|
|
5562
5388
|
init: function(api, _c2, context) {
|
|
@@ -5898,11 +5724,11 @@ const kindOf = /* @__PURE__ */ ((cache2) => (thing) => {
|
|
|
5898
5724
|
const str = toString.call(thing);
|
|
5899
5725
|
return cache2[str] || (cache2[str] = str.slice(8, -1).toLowerCase());
|
|
5900
5726
|
})(/* @__PURE__ */ Object.create(null));
|
|
5901
|
-
const kindOfTest = (
|
|
5902
|
-
|
|
5903
|
-
return (thing) => kindOf(thing) ===
|
|
5727
|
+
const kindOfTest = (type) => {
|
|
5728
|
+
type = type.toLowerCase();
|
|
5729
|
+
return (thing) => kindOf(thing) === type;
|
|
5904
5730
|
};
|
|
5905
|
-
const typeOfTest = (
|
|
5731
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
5906
5732
|
const { isArray } = Array;
|
|
5907
5733
|
const isUndefined = typeOfTest("undefined");
|
|
5908
5734
|
function isBuffer2(val) {
|
|
@@ -6140,12 +5966,12 @@ const freezeMethods = (obj) => {
|
|
|
6140
5966
|
};
|
|
6141
5967
|
const toObjectSet = (arrayOrString, delimiter) => {
|
|
6142
5968
|
const obj = {};
|
|
6143
|
-
const
|
|
5969
|
+
const define = (arr) => {
|
|
6144
5970
|
arr.forEach((value) => {
|
|
6145
5971
|
obj[value] = true;
|
|
6146
5972
|
});
|
|
6147
5973
|
};
|
|
6148
|
-
isArray(arrayOrString) ?
|
|
5974
|
+
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
6149
5975
|
return obj;
|
|
6150
5976
|
};
|
|
6151
5977
|
const noop = () => {
|
|
@@ -6777,6 +6603,7 @@ const defaults = {
|
|
|
6777
6603
|
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
6778
6604
|
defaults.headers[method] = {};
|
|
6779
6605
|
});
|
|
6606
|
+
const defaults$1 = defaults;
|
|
6780
6607
|
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
6781
6608
|
"age",
|
|
6782
6609
|
"authorization",
|
|
@@ -7039,10 +6866,11 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
7039
6866
|
};
|
|
7040
6867
|
});
|
|
7041
6868
|
utils$1.freezeMethods(AxiosHeaders);
|
|
6869
|
+
const AxiosHeaders$1 = AxiosHeaders;
|
|
7042
6870
|
function transformData(fns, response) {
|
|
7043
|
-
const config = this || defaults;
|
|
6871
|
+
const config = this || defaults$1;
|
|
7044
6872
|
const context = response || config;
|
|
7045
|
-
const headers = AxiosHeaders.from(context.headers);
|
|
6873
|
+
const headers = AxiosHeaders$1.from(context.headers);
|
|
7046
6874
|
let data = context.data;
|
|
7047
6875
|
utils$1.forEach(fns, function transform(fn) {
|
|
7048
6876
|
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -7258,7 +7086,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
7258
7086
|
}
|
|
7259
7087
|
return requestedURL;
|
|
7260
7088
|
}
|
|
7261
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
7089
|
+
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
7262
7090
|
function mergeConfig(config1, config2) {
|
|
7263
7091
|
config2 = config2 || {};
|
|
7264
7092
|
const config = {};
|
|
@@ -7339,7 +7167,7 @@ function mergeConfig(config1, config2) {
|
|
|
7339
7167
|
const resolveConfig = (config) => {
|
|
7340
7168
|
const newConfig = mergeConfig({}, config);
|
|
7341
7169
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
7342
|
-
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
7170
|
+
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
7343
7171
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
7344
7172
|
if (auth) {
|
|
7345
7173
|
headers.set(
|
|
@@ -7352,8 +7180,8 @@ const resolveConfig = (config) => {
|
|
|
7352
7180
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
7353
7181
|
headers.setContentType(void 0);
|
|
7354
7182
|
} else if ((contentType = headers.getContentType()) !== false) {
|
|
7355
|
-
const [
|
|
7356
|
-
headers.setContentType([
|
|
7183
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
7184
|
+
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
7357
7185
|
}
|
|
7358
7186
|
}
|
|
7359
7187
|
if (platform.hasStandardBrowserEnv) {
|
|
@@ -7372,7 +7200,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7372
7200
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
7373
7201
|
const _config = resolveConfig(config);
|
|
7374
7202
|
let requestData = _config.data;
|
|
7375
|
-
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
7203
|
+
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
7376
7204
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
7377
7205
|
let onCanceled;
|
|
7378
7206
|
let uploadThrottled, downloadThrottled;
|
|
@@ -7390,7 +7218,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7390
7218
|
if (!request) {
|
|
7391
7219
|
return;
|
|
7392
7220
|
}
|
|
7393
|
-
const responseHeaders = AxiosHeaders.from(
|
|
7221
|
+
const responseHeaders = AxiosHeaders$1.from(
|
|
7394
7222
|
"getAllResponseHeaders" in request && request.getAllResponseHeaders()
|
|
7395
7223
|
);
|
|
7396
7224
|
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
@@ -7609,9 +7437,9 @@ const resolvers = {
|
|
|
7609
7437
|
stream: supportsResponseStream && ((res) => res.body)
|
|
7610
7438
|
};
|
|
7611
7439
|
isFetchSupported && ((res) => {
|
|
7612
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
7613
|
-
!resolvers[
|
|
7614
|
-
throw new AxiosError(`Response type '${
|
|
7440
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
7441
|
+
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
7442
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
7615
7443
|
});
|
|
7616
7444
|
});
|
|
7617
7445
|
})(new Response());
|
|
@@ -7722,7 +7550,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
7722
7550
|
return await new Promise((resolve, reject) => {
|
|
7723
7551
|
settle(resolve, reject, {
|
|
7724
7552
|
data: responseData,
|
|
7725
|
-
headers: AxiosHeaders.from(response.headers),
|
|
7553
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
7726
7554
|
status: response.status,
|
|
7727
7555
|
statusText: response.statusText,
|
|
7728
7556
|
config,
|
|
@@ -7804,7 +7632,7 @@ function throwIfCancellationRequested(config) {
|
|
|
7804
7632
|
}
|
|
7805
7633
|
function dispatchRequest(config) {
|
|
7806
7634
|
throwIfCancellationRequested(config);
|
|
7807
|
-
config.headers = AxiosHeaders.from(config.headers);
|
|
7635
|
+
config.headers = AxiosHeaders$1.from(config.headers);
|
|
7808
7636
|
config.data = transformData.call(
|
|
7809
7637
|
config,
|
|
7810
7638
|
config.transformRequest
|
|
@@ -7812,7 +7640,7 @@ function dispatchRequest(config) {
|
|
|
7812
7640
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
7813
7641
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
7814
7642
|
}
|
|
7815
|
-
const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
|
|
7643
|
+
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
7816
7644
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
7817
7645
|
throwIfCancellationRequested(config);
|
|
7818
7646
|
response.data = transformData.call(
|
|
@@ -7820,7 +7648,7 @@ function dispatchRequest(config) {
|
|
|
7820
7648
|
config.transformResponse,
|
|
7821
7649
|
response
|
|
7822
7650
|
);
|
|
7823
|
-
response.headers = AxiosHeaders.from(response.headers);
|
|
7651
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
7824
7652
|
return response;
|
|
7825
7653
|
}, function onAdapterRejection(reason) {
|
|
7826
7654
|
if (!isCancel(reason)) {
|
|
@@ -7831,7 +7659,7 @@ function dispatchRequest(config) {
|
|
|
7831
7659
|
config.transformResponse,
|
|
7832
7660
|
reason.response
|
|
7833
7661
|
);
|
|
7834
|
-
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
7662
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
7835
7663
|
}
|
|
7836
7664
|
}
|
|
7837
7665
|
return Promise.reject(reason);
|
|
@@ -7839,9 +7667,9 @@ function dispatchRequest(config) {
|
|
|
7839
7667
|
}
|
|
7840
7668
|
const VERSION = "1.7.4";
|
|
7841
7669
|
const validators$1 = {};
|
|
7842
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((
|
|
7843
|
-
validators$1[
|
|
7844
|
-
return typeof thing ===
|
|
7670
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
7671
|
+
validators$1[type] = function validator2(thing) {
|
|
7672
|
+
return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
|
|
7845
7673
|
};
|
|
7846
7674
|
});
|
|
7847
7675
|
const deprecatedWarnings = {};
|
|
@@ -7970,7 +7798,7 @@ class Axios {
|
|
|
7970
7798
|
delete headers[method];
|
|
7971
7799
|
}
|
|
7972
7800
|
);
|
|
7973
|
-
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
7801
|
+
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
7974
7802
|
const requestInterceptorChain = [];
|
|
7975
7803
|
let synchronousRequestInterceptors = true;
|
|
7976
7804
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
@@ -8054,6 +7882,7 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
8054
7882
|
Axios.prototype[method] = generateHTTPMethod();
|
|
8055
7883
|
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
8056
7884
|
});
|
|
7885
|
+
const Axios$1 = Axios;
|
|
8057
7886
|
class CancelToken {
|
|
8058
7887
|
constructor(executor) {
|
|
8059
7888
|
if (typeof executor !== "function") {
|
|
@@ -8141,6 +7970,7 @@ class CancelToken {
|
|
|
8141
7970
|
};
|
|
8142
7971
|
}
|
|
8143
7972
|
}
|
|
7973
|
+
const CancelToken$1 = CancelToken;
|
|
8144
7974
|
function spread(callback) {
|
|
8145
7975
|
return function wrap(arr) {
|
|
8146
7976
|
return callback.apply(null, arr);
|
|
@@ -8217,20 +8047,21 @@ const HttpStatusCode = {
|
|
|
8217
8047
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
8218
8048
|
HttpStatusCode[value] = key;
|
|
8219
8049
|
});
|
|
8050
|
+
const HttpStatusCode$1 = HttpStatusCode;
|
|
8220
8051
|
function createInstance(defaultConfig) {
|
|
8221
|
-
const context = new Axios(defaultConfig);
|
|
8222
|
-
const instance = bind2(Axios.prototype.request, context);
|
|
8223
|
-
utils$1.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
8052
|
+
const context = new Axios$1(defaultConfig);
|
|
8053
|
+
const instance = bind2(Axios$1.prototype.request, context);
|
|
8054
|
+
utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
8224
8055
|
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
8225
8056
|
instance.create = function create(instanceConfig) {
|
|
8226
8057
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
8227
8058
|
};
|
|
8228
8059
|
return instance;
|
|
8229
8060
|
}
|
|
8230
|
-
const axios = createInstance(defaults);
|
|
8231
|
-
axios.Axios = Axios;
|
|
8061
|
+
const axios = createInstance(defaults$1);
|
|
8062
|
+
axios.Axios = Axios$1;
|
|
8232
8063
|
axios.CanceledError = CanceledError;
|
|
8233
|
-
axios.CancelToken = CancelToken;
|
|
8064
|
+
axios.CancelToken = CancelToken$1;
|
|
8234
8065
|
axios.isCancel = isCancel;
|
|
8235
8066
|
axios.VERSION = VERSION;
|
|
8236
8067
|
axios.toFormData = toFormData;
|
|
@@ -8242,10 +8073,10 @@ axios.all = function all(promises) {
|
|
|
8242
8073
|
axios.spread = spread;
|
|
8243
8074
|
axios.isAxiosError = isAxiosError;
|
|
8244
8075
|
axios.mergeConfig = mergeConfig;
|
|
8245
|
-
axios.AxiosHeaders = AxiosHeaders;
|
|
8076
|
+
axios.AxiosHeaders = AxiosHeaders$1;
|
|
8246
8077
|
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
8247
8078
|
axios.getAdapter = adapters.getAdapter;
|
|
8248
|
-
axios.HttpStatusCode = HttpStatusCode;
|
|
8079
|
+
axios.HttpStatusCode = HttpStatusCode$1;
|
|
8249
8080
|
axios.default = axios;
|
|
8250
8081
|
var scheduler = { exports: {} };
|
|
8251
8082
|
var scheduler_production_min = {};
|
|
@@ -9563,9 +9394,38 @@ function generateKeyBetween(a2, b, digits = BASE_62_DIGITS) {
|
|
|
9563
9394
|
return ia + midpoint(fa, null, digits);
|
|
9564
9395
|
}
|
|
9565
9396
|
function generateNKeysBetween(a2, b, n, digits = BASE_62_DIGITS) {
|
|
9566
|
-
{
|
|
9397
|
+
if (n === 0) {
|
|
9398
|
+
return [];
|
|
9399
|
+
}
|
|
9400
|
+
if (n === 1) {
|
|
9567
9401
|
return [generateKeyBetween(a2, b, digits)];
|
|
9568
9402
|
}
|
|
9403
|
+
if (b == null) {
|
|
9404
|
+
let c2 = generateKeyBetween(a2, b, digits);
|
|
9405
|
+
const result = [c2];
|
|
9406
|
+
for (let i = 0; i < n - 1; i++) {
|
|
9407
|
+
c2 = generateKeyBetween(c2, b, digits);
|
|
9408
|
+
result.push(c2);
|
|
9409
|
+
}
|
|
9410
|
+
return result;
|
|
9411
|
+
}
|
|
9412
|
+
if (a2 == null) {
|
|
9413
|
+
let c2 = generateKeyBetween(a2, b, digits);
|
|
9414
|
+
const result = [c2];
|
|
9415
|
+
for (let i = 0; i < n - 1; i++) {
|
|
9416
|
+
c2 = generateKeyBetween(a2, c2, digits);
|
|
9417
|
+
result.push(c2);
|
|
9418
|
+
}
|
|
9419
|
+
result.reverse();
|
|
9420
|
+
return result;
|
|
9421
|
+
}
|
|
9422
|
+
const mid = Math.floor(n / 2);
|
|
9423
|
+
const c = generateKeyBetween(a2, b, digits);
|
|
9424
|
+
return [
|
|
9425
|
+
...generateNKeysBetween(a2, c, mid, digits),
|
|
9426
|
+
c,
|
|
9427
|
+
...generateNKeysBetween(c, b, n - mid - 1, digits)
|
|
9428
|
+
];
|
|
9569
9429
|
}
|
|
9570
9430
|
function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {
|
|
9571
9431
|
return amount - numerator * Math.floor(amount / numerator);
|
|
@@ -10053,13 +9913,13 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
|
|
|
10053
9913
|
case "hour": {
|
|
10054
9914
|
let hours = value.hour;
|
|
10055
9915
|
let min = 0;
|
|
10056
|
-
let
|
|
9916
|
+
let max = 23;
|
|
10057
9917
|
if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
|
|
10058
9918
|
let isPM = hours >= 12;
|
|
10059
9919
|
min = isPM ? 12 : 0;
|
|
10060
|
-
|
|
9920
|
+
max = isPM ? 23 : 11;
|
|
10061
9921
|
}
|
|
10062
|
-
mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min,
|
|
9922
|
+
mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
|
|
10063
9923
|
break;
|
|
10064
9924
|
}
|
|
10065
9925
|
case "minute":
|
|
@@ -10076,24 +9936,24 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
|
|
|
10076
9936
|
}
|
|
10077
9937
|
return mutable;
|
|
10078
9938
|
}
|
|
10079
|
-
function $735220c2d4774dd3$var$cycleValue(value, amount, min,
|
|
9939
|
+
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
|
|
10080
9940
|
if (round) {
|
|
10081
9941
|
value += Math.sign(amount);
|
|
10082
9942
|
if (value < min)
|
|
10083
|
-
value =
|
|
9943
|
+
value = max;
|
|
10084
9944
|
let div = Math.abs(amount);
|
|
10085
9945
|
if (amount > 0)
|
|
10086
9946
|
value = Math.ceil(value / div) * div;
|
|
10087
9947
|
else
|
|
10088
9948
|
value = Math.floor(value / div) * div;
|
|
10089
|
-
if (value >
|
|
9949
|
+
if (value > max)
|
|
10090
9950
|
value = min;
|
|
10091
9951
|
} else {
|
|
10092
9952
|
value += amount;
|
|
10093
9953
|
if (value < min)
|
|
10094
|
-
value =
|
|
10095
|
-
else if (value >
|
|
10096
|
-
value = min + (value -
|
|
9954
|
+
value = max - (min - value - 1);
|
|
9955
|
+
else if (value > max)
|
|
9956
|
+
value = min + (value - max - 1);
|
|
10097
9957
|
}
|
|
10098
9958
|
return value;
|
|
10099
9959
|
}
|
|
@@ -10123,11 +9983,11 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
10123
9983
|
switch (field) {
|
|
10124
9984
|
case "hour": {
|
|
10125
9985
|
let min = 0;
|
|
10126
|
-
let
|
|
9986
|
+
let max = 23;
|
|
10127
9987
|
if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
|
|
10128
9988
|
let isPM = dateTime.hour >= 12;
|
|
10129
9989
|
min = isPM ? 12 : 0;
|
|
10130
|
-
|
|
9990
|
+
max = isPM ? 23 : 11;
|
|
10131
9991
|
}
|
|
10132
9992
|
let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
|
|
10133
9993
|
let minDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
|
|
@@ -10138,7 +9998,7 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
10138
9998
|
$11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "later")
|
|
10139
9999
|
].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === minDate.day)[0];
|
|
10140
10000
|
let maxDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
|
|
10141
|
-
hour:
|
|
10001
|
+
hour: max
|
|
10142
10002
|
}), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
10143
10003
|
let maxAbsolute = [
|
|
10144
10004
|
$11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "earlier"),
|
|
@@ -10186,10 +10046,10 @@ function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
|
|
|
10186
10046
|
date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 36e5 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : "0", 0, 59) * 6e4;
|
|
10187
10047
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
10188
10048
|
}
|
|
10189
|
-
function $fae977aafc393c5c$var$parseNumber(value, min,
|
|
10049
|
+
function $fae977aafc393c5c$var$parseNumber(value, min, max) {
|
|
10190
10050
|
let val = Number(value);
|
|
10191
|
-
if (val < min || val >
|
|
10192
|
-
throw new RangeError(`Value out of range: ${min} <= ${val} <= ${
|
|
10051
|
+
if (val < min || val > max)
|
|
10052
|
+
throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
|
|
10193
10053
|
return val;
|
|
10194
10054
|
}
|
|
10195
10055
|
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
@@ -10442,7 +10302,7 @@ const [Provider, useHistory] = createContext("History", {
|
|
|
10442
10302
|
throw new Error("You must use the `HistoryProvider` to access the `goBack` function.");
|
|
10443
10303
|
}
|
|
10444
10304
|
});
|
|
10445
|
-
React.forwardRef(({ disabled },
|
|
10305
|
+
React.forwardRef(({ disabled }, ref) => {
|
|
10446
10306
|
const { formatMessage } = useIntl();
|
|
10447
10307
|
const canGoBack = useHistory("BackButton", (state) => state.canGoBack);
|
|
10448
10308
|
const goBack = useHistory("BackButton", (state) => state.goBack);
|
|
@@ -10454,7 +10314,7 @@ React.forwardRef(({ disabled }, ref2) => {
|
|
|
10454
10314
|
return /* @__PURE__ */ jsx(
|
|
10455
10315
|
Link,
|
|
10456
10316
|
{
|
|
10457
|
-
ref
|
|
10317
|
+
ref,
|
|
10458
10318
|
tag: NavLink,
|
|
10459
10319
|
to: history.at(-1) ?? "",
|
|
10460
10320
|
onClick: handleClick,
|
|
@@ -10526,7 +10386,7 @@ const GridLayout = ({ size, children }) => {
|
|
|
10526
10386
|
return /* @__PURE__ */ jsx(StyledGrid, { $size: size, children });
|
|
10527
10387
|
};
|
|
10528
10388
|
const BaseHeaderLayout = React.forwardRef(
|
|
10529
|
-
({ navigationAction, primaryAction, secondaryAction, subtitle, title, sticky, width, ...props },
|
|
10389
|
+
({ navigationAction, primaryAction, secondaryAction, subtitle, title, sticky, width, ...props }, ref) => {
|
|
10530
10390
|
const isSubtitleString = typeof subtitle === "string";
|
|
10531
10391
|
if (sticky) {
|
|
10532
10392
|
return /* @__PURE__ */ jsx(
|
|
@@ -10561,7 +10421,7 @@ const BaseHeaderLayout = React.forwardRef(
|
|
|
10561
10421
|
return /* @__PURE__ */ jsxs(
|
|
10562
10422
|
Box,
|
|
10563
10423
|
{
|
|
10564
|
-
ref
|
|
10424
|
+
ref,
|
|
10565
10425
|
paddingLeft: 10,
|
|
10566
10426
|
paddingRight: 10,
|
|
10567
10427
|
paddingBottom: 8,
|
|
@@ -10703,7 +10563,7 @@ const [FormProvider, useForm] = createContext("Form", {
|
|
|
10703
10563
|
values: {}
|
|
10704
10564
|
});
|
|
10705
10565
|
React.forwardRef(
|
|
10706
|
-
({ disabled = false, method, onSubmit, initialErrors, ...props },
|
|
10566
|
+
({ disabled = false, method, onSubmit, initialErrors, ...props }, ref) => {
|
|
10707
10567
|
const formRef = React.useRef(null);
|
|
10708
10568
|
const initialValues = React.useRef(props.initialValues ?? {});
|
|
10709
10569
|
const [state, dispatch] = React.useReducer(reducer, {
|
|
@@ -10735,7 +10595,7 @@ React.forwardRef(
|
|
|
10735
10595
|
React.useEffect(() => {
|
|
10736
10596
|
if (Object.keys(state.errors).length === 0)
|
|
10737
10597
|
return;
|
|
10738
|
-
const
|
|
10598
|
+
const ref2 = setTimeout(() => {
|
|
10739
10599
|
const [firstError] = formRef.current.querySelectorAll("[data-strapi-field-error]");
|
|
10740
10600
|
if (firstError) {
|
|
10741
10601
|
const errorId = firstError.getAttribute("id");
|
|
@@ -10747,7 +10607,7 @@ React.forwardRef(
|
|
|
10747
10607
|
}
|
|
10748
10608
|
}
|
|
10749
10609
|
});
|
|
10750
|
-
return () => clearTimeout(
|
|
10610
|
+
return () => clearTimeout(ref2);
|
|
10751
10611
|
}, [state.errors]);
|
|
10752
10612
|
const validate = React.useCallback(
|
|
10753
10613
|
async (shouldSetErrors = true, options = {}) => {
|
|
@@ -10833,7 +10693,7 @@ React.forwardRef(
|
|
|
10833
10693
|
return;
|
|
10834
10694
|
}
|
|
10835
10695
|
const target = eventOrPath.target || eventOrPath.currentTarget;
|
|
10836
|
-
const { type
|
|
10696
|
+
const { type, name, id, value, options, multiple } = target;
|
|
10837
10697
|
const field = name || id;
|
|
10838
10698
|
if (!field && process.env.NODE_ENV !== "production") {
|
|
10839
10699
|
console.warn(
|
|
@@ -10841,10 +10701,10 @@ React.forwardRef(
|
|
|
10841
10701
|
);
|
|
10842
10702
|
}
|
|
10843
10703
|
let val;
|
|
10844
|
-
if (/number|range/.test(
|
|
10704
|
+
if (/number|range/.test(type)) {
|
|
10845
10705
|
const parsed = parseFloat(value);
|
|
10846
10706
|
val = isNaN(parsed) ? "" : parsed;
|
|
10847
|
-
} else if (/checkbox/.test(
|
|
10707
|
+
} else if (/checkbox/.test(type)) {
|
|
10848
10708
|
val = !getIn(state.values, field);
|
|
10849
10709
|
} else if (options && multiple) {
|
|
10850
10710
|
val = Array.from(options).filter((el) => el.selected).map((el) => el.value);
|
|
@@ -10916,7 +10776,7 @@ React.forwardRef(
|
|
|
10916
10776
|
const setSubmitting = React.useCallback((isSubmitting) => {
|
|
10917
10777
|
dispatch({ type: "SET_ISSUBMITTING", payload: isSubmitting });
|
|
10918
10778
|
}, []);
|
|
10919
|
-
const composedRefs = useComposedRefs(formRef,
|
|
10779
|
+
const composedRefs = useComposedRefs(formRef, ref);
|
|
10920
10780
|
return /* @__PURE__ */ jsx("form", { ref: composedRefs, method, noValidate: true, onSubmit: handleSubmit, children: /* @__PURE__ */ jsx(
|
|
10921
10781
|
FormProvider,
|
|
10922
10782
|
{
|
|
@@ -10990,7 +10850,8 @@ const reducer = (state, action) => produce(state, (draft) => {
|
|
|
10990
10850
|
}
|
|
10991
10851
|
const [key] = generateNKeysBetween(
|
|
10992
10852
|
currentField.at(position - 1)?.__temp_key__,
|
|
10993
|
-
currentField.at(position)?.__temp_key__
|
|
10853
|
+
currentField.at(position)?.__temp_key__,
|
|
10854
|
+
1
|
|
10994
10855
|
);
|
|
10995
10856
|
draft.values = setIn(
|
|
10996
10857
|
state.values,
|
|
@@ -11005,7 +10866,7 @@ const reducer = (state, action) => produce(state, (draft) => {
|
|
|
11005
10866
|
const currentRow = currentField[fromIndex];
|
|
11006
10867
|
const startKey = fromIndex > toIndex ? currentField[toIndex - 1]?.__temp_key__ : currentField[toIndex]?.__temp_key__;
|
|
11007
10868
|
const endKey = fromIndex > toIndex ? currentField[toIndex]?.__temp_key__ : currentField[toIndex + 1]?.__temp_key__;
|
|
11008
|
-
const [newKey] = generateNKeysBetween(startKey, endKey);
|
|
10869
|
+
const [newKey] = generateNKeysBetween(startKey, endKey, 1);
|
|
11009
10870
|
currentField.splice(fromIndex, 1);
|
|
11010
10871
|
currentField.splice(toIndex, 0, { ...currentRow, __temp_key__: newKey });
|
|
11011
10872
|
draft.values = setIn(state.values, field, currentField);
|
|
@@ -11100,11 +10961,11 @@ const useFocusInputField = (name) => {
|
|
|
11100
10961
|
return setField;
|
|
11101
10962
|
};
|
|
11102
10963
|
const BooleanInput = forwardRef(
|
|
11103
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
10964
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11104
10965
|
const { formatMessage } = useIntl();
|
|
11105
10966
|
const field = useField(name);
|
|
11106
10967
|
const fieldRef = useFocusInputField(name);
|
|
11107
|
-
const composedRefs = useComposedRefs(
|
|
10968
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11108
10969
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, maxWidth: "320px", children: [
|
|
11109
10970
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11110
10971
|
/* @__PURE__ */ jsx(
|
|
@@ -11131,10 +10992,10 @@ const BooleanInput = forwardRef(
|
|
|
11131
10992
|
);
|
|
11132
10993
|
const MemoizedBooleanInput = memo(BooleanInput);
|
|
11133
10994
|
const CheckboxInput = forwardRef(
|
|
11134
|
-
({ name, required, label, hint, type: _type, ...props },
|
|
10995
|
+
({ name, required, label, hint, type: _type, ...props }, ref) => {
|
|
11135
10996
|
const field = useField(name);
|
|
11136
10997
|
const fieldRef = useFocusInputField(name);
|
|
11137
|
-
const composedRefs = useComposedRefs(
|
|
10998
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11138
10999
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11139
11000
|
/* @__PURE__ */ jsx(
|
|
11140
11001
|
Checkbox,
|
|
@@ -11153,11 +11014,11 @@ const CheckboxInput = forwardRef(
|
|
|
11153
11014
|
);
|
|
11154
11015
|
const MemoizedCheckboxInput = memo(CheckboxInput);
|
|
11155
11016
|
const DateInput = forwardRef(
|
|
11156
|
-
({ name, required, label, hint, labelAction, type: _type, ...props },
|
|
11017
|
+
({ name, required, label, hint, labelAction, type: _type, ...props }, ref) => {
|
|
11157
11018
|
const { formatMessage } = useIntl();
|
|
11158
11019
|
const field = useField(name);
|
|
11159
11020
|
const fieldRef = useFocusInputField(name);
|
|
11160
|
-
const composedRefs = useComposedRefs(
|
|
11021
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11161
11022
|
const value = typeof field.value === "string" ? new Date(field.value) : field.value;
|
|
11162
11023
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11163
11024
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
@@ -11187,11 +11048,11 @@ const convertLocalDateToUTCDate = (date) => {
|
|
|
11187
11048
|
};
|
|
11188
11049
|
const MemoizedDateInput = memo(DateInput);
|
|
11189
11050
|
const DateTimeInput = forwardRef(
|
|
11190
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11051
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11191
11052
|
const { formatMessage } = useIntl();
|
|
11192
11053
|
const field = useField(name);
|
|
11193
11054
|
const fieldRef = useFocusInputField(name);
|
|
11194
|
-
const composedRefs = useComposedRefs(
|
|
11055
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11195
11056
|
const value = typeof field.value === "string" ? new Date(field.value) : field.value;
|
|
11196
11057
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11197
11058
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
@@ -11215,10 +11076,10 @@ const DateTimeInput = forwardRef(
|
|
|
11215
11076
|
);
|
|
11216
11077
|
const MemoizedDateTimeInput = memo(DateTimeInput);
|
|
11217
11078
|
const EmailInput = forwardRef(
|
|
11218
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11079
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11219
11080
|
const field = useField(name);
|
|
11220
11081
|
const fieldRef = useFocusInputField(name);
|
|
11221
|
-
const composedRefs = useComposedRefs(
|
|
11082
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11222
11083
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11223
11084
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11224
11085
|
/* @__PURE__ */ jsx(
|
|
@@ -11239,10 +11100,10 @@ const EmailInput = forwardRef(
|
|
|
11239
11100
|
);
|
|
11240
11101
|
const MemoizedEmailInput = memo(EmailInput);
|
|
11241
11102
|
const EnumerationInput = forwardRef(
|
|
11242
|
-
({ name, required, label, hint, labelAction, options = [], ...props },
|
|
11103
|
+
({ name, required, label, hint, labelAction, options = [], ...props }, ref) => {
|
|
11243
11104
|
const field = useField(name);
|
|
11244
11105
|
const fieldRef = useFocusInputField(name);
|
|
11245
|
-
const composedRefs = useComposedRefs(
|
|
11106
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11246
11107
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11247
11108
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11248
11109
|
/* @__PURE__ */ jsx(
|
|
@@ -11266,10 +11127,10 @@ const EnumerationInput = forwardRef(
|
|
|
11266
11127
|
);
|
|
11267
11128
|
const MemoizedEnumerationInput = memo(EnumerationInput);
|
|
11268
11129
|
const JsonInput = React.forwardRef(
|
|
11269
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11130
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11270
11131
|
const field = useField(name);
|
|
11271
11132
|
const fieldRef = useFocusInputField(name);
|
|
11272
|
-
const composedRefs = useComposedRefs(
|
|
11133
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11273
11134
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11274
11135
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11275
11136
|
/* @__PURE__ */ jsx(
|
|
@@ -11293,10 +11154,10 @@ const JsonInput = React.forwardRef(
|
|
|
11293
11154
|
);
|
|
11294
11155
|
const MemoizedJsonInput = React.memo(JsonInput);
|
|
11295
11156
|
const NumberInputImpl = forwardRef(
|
|
11296
|
-
({ name, required, label, hint, labelAction, type
|
|
11157
|
+
({ name, required, label, hint, labelAction, type, ...props }, ref) => {
|
|
11297
11158
|
const field = useField(name);
|
|
11298
11159
|
const fieldRef = useFocusInputField(name);
|
|
11299
|
-
const composedRefs = useComposedRefs(
|
|
11160
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11300
11161
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11301
11162
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11302
11163
|
/* @__PURE__ */ jsx(
|
|
@@ -11306,7 +11167,7 @@ const NumberInputImpl = forwardRef(
|
|
|
11306
11167
|
onValueChange: (value) => {
|
|
11307
11168
|
field.onChange(name, value);
|
|
11308
11169
|
},
|
|
11309
|
-
step:
|
|
11170
|
+
step: type === "float" || type == "decimal" ? 0.01 : 1,
|
|
11310
11171
|
value: field.value,
|
|
11311
11172
|
...props
|
|
11312
11173
|
}
|
|
@@ -11318,12 +11179,12 @@ const NumberInputImpl = forwardRef(
|
|
|
11318
11179
|
);
|
|
11319
11180
|
const MemoizedNumberInput = memo(NumberInputImpl);
|
|
11320
11181
|
const PasswordInput = forwardRef(
|
|
11321
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11182
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11322
11183
|
const [showPassword, setShowPassword] = useState(false);
|
|
11323
11184
|
const { formatMessage } = useIntl();
|
|
11324
11185
|
const field = useField(name);
|
|
11325
11186
|
const fieldRef = useFocusInputField(name);
|
|
11326
|
-
const composedRefs = useComposedRefs(
|
|
11187
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11327
11188
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11328
11189
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11329
11190
|
/* @__PURE__ */ jsx(
|
|
@@ -11357,10 +11218,10 @@ const PasswordInput = forwardRef(
|
|
|
11357
11218
|
);
|
|
11358
11219
|
const MemoizedPasswordInput = memo(PasswordInput);
|
|
11359
11220
|
const StringInput = forwardRef(
|
|
11360
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11221
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11361
11222
|
const field = useField(name);
|
|
11362
11223
|
const fieldRef = useFocusInputField(name);
|
|
11363
|
-
const composedRefs = useComposedRefs(
|
|
11224
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11364
11225
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11365
11226
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11366
11227
|
/* @__PURE__ */ jsx(
|
|
@@ -11379,10 +11240,10 @@ const StringInput = forwardRef(
|
|
|
11379
11240
|
);
|
|
11380
11241
|
const MemoizedStringInput = memo(StringInput);
|
|
11381
11242
|
const TextareaInput = forwardRef(
|
|
11382
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11243
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11383
11244
|
const field = useField(name);
|
|
11384
11245
|
const fieldRef = useFocusInputField(name);
|
|
11385
|
-
const composedRefs = useComposedRefs(
|
|
11246
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11386
11247
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11387
11248
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11388
11249
|
/* @__PURE__ */ jsx(
|
|
@@ -11401,11 +11262,11 @@ const TextareaInput = forwardRef(
|
|
|
11401
11262
|
);
|
|
11402
11263
|
const MemoizedTextareaInput = memo(TextareaInput);
|
|
11403
11264
|
const TimeInput = forwardRef(
|
|
11404
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11265
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11405
11266
|
const { formatMessage } = useIntl();
|
|
11406
11267
|
const field = useField(name);
|
|
11407
11268
|
const fieldRef = useFocusInputField(name);
|
|
11408
|
-
const composedRefs = useComposedRefs(
|
|
11269
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11409
11270
|
return /* @__PURE__ */ jsxs(Field.Root, { error: field.error, name, hint, required, children: [
|
|
11410
11271
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11411
11272
|
/* @__PURE__ */ jsx(
|
|
@@ -11465,10 +11326,10 @@ const InputRenderer = memo(
|
|
|
11465
11326
|
})
|
|
11466
11327
|
);
|
|
11467
11328
|
const NotSupportedField = forwardRef(
|
|
11468
|
-
({ label, hint, name, required, type
|
|
11329
|
+
({ label, hint, name, required, type, labelAction }, ref) => {
|
|
11469
11330
|
const { error } = useField(name);
|
|
11470
11331
|
const fieldRef = useFocusInputField(name);
|
|
11471
|
-
const composedRefs = useComposedRefs(
|
|
11332
|
+
const composedRefs = useComposedRefs(ref, fieldRef);
|
|
11472
11333
|
return /* @__PURE__ */ jsxs(Field.Root, { error, name, hint, required, children: [
|
|
11473
11334
|
/* @__PURE__ */ jsx(Field.Label, { action: labelAction, children: label }),
|
|
11474
11335
|
/* @__PURE__ */ jsx(
|
|
@@ -11476,7 +11337,7 @@ const NotSupportedField = forwardRef(
|
|
|
11476
11337
|
{
|
|
11477
11338
|
ref: composedRefs,
|
|
11478
11339
|
disabled: true,
|
|
11479
|
-
placeholder: `Unsupported field type: ${
|
|
11340
|
+
placeholder: `Unsupported field type: ${type}`,
|
|
11480
11341
|
required,
|
|
11481
11342
|
type: "text",
|
|
11482
11343
|
value: ""
|
|
@@ -11737,11 +11598,11 @@ React.memo(
|
|
|
11737
11598
|
(prev, next) => isEqual(prev.props, next.props)
|
|
11738
11599
|
);
|
|
11739
11600
|
const useShallowCompareMemoize = (value) => {
|
|
11740
|
-
const
|
|
11741
|
-
if (!isEqual(value,
|
|
11742
|
-
|
|
11601
|
+
const ref = React.useRef(void 0);
|
|
11602
|
+
if (!isEqual(value, ref.current)) {
|
|
11603
|
+
ref.current = value;
|
|
11743
11604
|
}
|
|
11744
|
-
return [
|
|
11605
|
+
return [ref.current];
|
|
11745
11606
|
};
|
|
11746
11607
|
const useShallowCompareEffect = (callback, dependencies) => {
|
|
11747
11608
|
React.useEffect(callback, useShallowCompareMemoize(dependencies));
|
|
@@ -11981,4 +11842,4 @@ export {
|
|
|
11981
11842
|
Layouts as L,
|
|
11982
11843
|
useTracking as u
|
|
11983
11844
|
};
|
|
11984
|
-
//# sourceMappingURL=index-
|
|
11845
|
+
//# sourceMappingURL=index-QPUYgtlo-BfJxOAzF.mjs.map
|