@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
|
@@ -53,7 +53,6 @@ const clone__default = /* @__PURE__ */ _interopDefault(clone);
|
|
|
53
53
|
const toPath__default = /* @__PURE__ */ _interopDefault(toPath);
|
|
54
54
|
const isEqual__default = /* @__PURE__ */ _interopDefault(isEqual);
|
|
55
55
|
const yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
|
|
56
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
57
56
|
function getDefaultExportFromCjs(x) {
|
|
58
57
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
59
58
|
}
|
|
@@ -83,13 +82,6 @@ function getAugmentedNamespace(n) {
|
|
|
83
82
|
});
|
|
84
83
|
return a2;
|
|
85
84
|
}
|
|
86
|
-
var esErrors = Error;
|
|
87
|
-
var _eval = EvalError;
|
|
88
|
-
var range = RangeError;
|
|
89
|
-
var ref = ReferenceError;
|
|
90
|
-
var syntax = SyntaxError;
|
|
91
|
-
var type = TypeError;
|
|
92
|
-
var uri = URIError;
|
|
93
85
|
var shams = function hasSymbols() {
|
|
94
86
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
95
87
|
return false;
|
|
@@ -160,65 +152,39 @@ var hasProto$1 = function hasProto() {
|
|
|
160
152
|
return { __proto__: test$1 }.foo === test$1.foo && !({ __proto__: null } instanceof $Object);
|
|
161
153
|
};
|
|
162
154
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
155
|
+
var slice = Array.prototype.slice;
|
|
163
156
|
var toStr$1 = Object.prototype.toString;
|
|
164
|
-
var max = Math.max;
|
|
165
157
|
var funcType = "[object Function]";
|
|
166
|
-
var concatty = function concatty2(a2, b) {
|
|
167
|
-
var arr = [];
|
|
168
|
-
for (var i = 0; i < a2.length; i += 1) {
|
|
169
|
-
arr[i] = a2[i];
|
|
170
|
-
}
|
|
171
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
172
|
-
arr[j + a2.length] = b[j];
|
|
173
|
-
}
|
|
174
|
-
return arr;
|
|
175
|
-
};
|
|
176
|
-
var slicy = function slicy2(arrLike, offset) {
|
|
177
|
-
var arr = [];
|
|
178
|
-
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
179
|
-
arr[j] = arrLike[i];
|
|
180
|
-
}
|
|
181
|
-
return arr;
|
|
182
|
-
};
|
|
183
|
-
var joiny = function(arr, joiner) {
|
|
184
|
-
var str = "";
|
|
185
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
186
|
-
str += arr[i];
|
|
187
|
-
if (i + 1 < arr.length) {
|
|
188
|
-
str += joiner;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
return str;
|
|
192
|
-
};
|
|
193
158
|
var implementation$1 = function bind(that) {
|
|
194
159
|
var target = this;
|
|
195
|
-
if (typeof target !== "function" || toStr$1.
|
|
160
|
+
if (typeof target !== "function" || toStr$1.call(target) !== funcType) {
|
|
196
161
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
197
162
|
}
|
|
198
|
-
var args =
|
|
163
|
+
var args = slice.call(arguments, 1);
|
|
199
164
|
var bound;
|
|
200
165
|
var binder = function() {
|
|
201
166
|
if (this instanceof bound) {
|
|
202
167
|
var result = target.apply(
|
|
203
168
|
this,
|
|
204
|
-
|
|
169
|
+
args.concat(slice.call(arguments))
|
|
205
170
|
);
|
|
206
171
|
if (Object(result) === result) {
|
|
207
172
|
return result;
|
|
208
173
|
}
|
|
209
174
|
return this;
|
|
175
|
+
} else {
|
|
176
|
+
return target.apply(
|
|
177
|
+
that,
|
|
178
|
+
args.concat(slice.call(arguments))
|
|
179
|
+
);
|
|
210
180
|
}
|
|
211
|
-
return target.apply(
|
|
212
|
-
that,
|
|
213
|
-
concatty(args, arguments)
|
|
214
|
-
);
|
|
215
181
|
};
|
|
216
|
-
var boundLength = max(0, target.length - args.length);
|
|
182
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
217
183
|
var boundArgs = [];
|
|
218
184
|
for (var i = 0; i < boundLength; i++) {
|
|
219
|
-
boundArgs
|
|
185
|
+
boundArgs.push("$" + i);
|
|
220
186
|
}
|
|
221
|
-
bound = Function("binder", "return function (" +
|
|
187
|
+
bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
222
188
|
if (target.prototype) {
|
|
223
189
|
var Empty = function Empty2() {
|
|
224
190
|
};
|
|
@@ -230,43 +196,36 @@ var implementation$1 = function bind(that) {
|
|
|
230
196
|
};
|
|
231
197
|
var implementation = implementation$1;
|
|
232
198
|
var functionBind = Function.prototype.bind || implementation;
|
|
233
|
-
var call = Function.prototype.call;
|
|
234
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
235
199
|
var bind$2 = functionBind;
|
|
236
|
-
var
|
|
200
|
+
var src = bind$2.call(Function.call, Object.prototype.hasOwnProperty);
|
|
237
201
|
var undefined$1;
|
|
238
|
-
var $
|
|
239
|
-
var $EvalError = _eval;
|
|
240
|
-
var $RangeError = range;
|
|
241
|
-
var $ReferenceError = ref;
|
|
242
|
-
var $SyntaxError$1 = syntax;
|
|
243
|
-
var $TypeError$3 = type;
|
|
244
|
-
var $URIError = uri;
|
|
202
|
+
var $SyntaxError = SyntaxError;
|
|
245
203
|
var $Function = Function;
|
|
204
|
+
var $TypeError$1 = TypeError;
|
|
246
205
|
var getEvalledConstructor = function(expressionSyntax) {
|
|
247
206
|
try {
|
|
248
207
|
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
249
208
|
} catch (e) {
|
|
250
209
|
}
|
|
251
210
|
};
|
|
252
|
-
var $gOPD
|
|
253
|
-
if ($gOPD
|
|
211
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
212
|
+
if ($gOPD) {
|
|
254
213
|
try {
|
|
255
|
-
$gOPD
|
|
214
|
+
$gOPD({}, "");
|
|
256
215
|
} catch (e) {
|
|
257
|
-
$gOPD
|
|
216
|
+
$gOPD = null;
|
|
258
217
|
}
|
|
259
218
|
}
|
|
260
219
|
var throwTypeError = function() {
|
|
261
|
-
throw new $TypeError$
|
|
220
|
+
throw new $TypeError$1();
|
|
262
221
|
};
|
|
263
|
-
var ThrowTypeError = $gOPD
|
|
222
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
264
223
|
try {
|
|
265
224
|
arguments.callee;
|
|
266
225
|
return throwTypeError;
|
|
267
226
|
} catch (calleeThrows) {
|
|
268
227
|
try {
|
|
269
|
-
return $gOPD
|
|
228
|
+
return $gOPD(arguments, "callee").get;
|
|
270
229
|
} catch (gOPDthrows) {
|
|
271
230
|
return throwTypeError;
|
|
272
231
|
}
|
|
@@ -280,7 +239,6 @@ var getProto = Object.getPrototypeOf || (hasProto2 ? function(x) {
|
|
|
280
239
|
var needsEval = {};
|
|
281
240
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
282
241
|
var INTRINSICS = {
|
|
283
|
-
__proto__: null,
|
|
284
242
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
|
|
285
243
|
"%Array%": Array,
|
|
286
244
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
|
|
@@ -301,10 +259,10 @@ var INTRINSICS = {
|
|
|
301
259
|
"%decodeURIComponent%": decodeURIComponent,
|
|
302
260
|
"%encodeURI%": encodeURI,
|
|
303
261
|
"%encodeURIComponent%": encodeURIComponent,
|
|
304
|
-
"%Error%":
|
|
262
|
+
"%Error%": Error,
|
|
305
263
|
"%eval%": eval,
|
|
306
264
|
// eslint-disable-line no-eval
|
|
307
|
-
"%EvalError%":
|
|
265
|
+
"%EvalError%": EvalError,
|
|
308
266
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
|
|
309
267
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
|
|
310
268
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
|
|
@@ -326,8 +284,8 @@ var INTRINSICS = {
|
|
|
326
284
|
"%parseInt%": parseInt,
|
|
327
285
|
"%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
|
|
328
286
|
"%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
|
|
329
|
-
"%RangeError%":
|
|
330
|
-
"%ReferenceError%":
|
|
287
|
+
"%RangeError%": RangeError,
|
|
288
|
+
"%ReferenceError%": ReferenceError,
|
|
331
289
|
"%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
|
|
332
290
|
"%RegExp%": RegExp,
|
|
333
291
|
"%Set%": typeof Set === "undefined" ? undefined$1 : Set,
|
|
@@ -336,15 +294,15 @@ var INTRINSICS = {
|
|
|
336
294
|
"%String%": String,
|
|
337
295
|
"%StringIteratorPrototype%": hasSymbols2 && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
|
|
338
296
|
"%Symbol%": hasSymbols2 ? Symbol : undefined$1,
|
|
339
|
-
"%SyntaxError%": $SyntaxError
|
|
297
|
+
"%SyntaxError%": $SyntaxError,
|
|
340
298
|
"%ThrowTypeError%": ThrowTypeError,
|
|
341
299
|
"%TypedArray%": TypedArray,
|
|
342
|
-
"%TypeError%": $TypeError$
|
|
300
|
+
"%TypeError%": $TypeError$1,
|
|
343
301
|
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
|
|
344
302
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
|
|
345
303
|
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
|
|
346
304
|
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
|
|
347
|
-
"%URIError%":
|
|
305
|
+
"%URIError%": URIError,
|
|
348
306
|
"%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
|
|
349
307
|
"%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
|
|
350
308
|
"%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
|
|
@@ -380,7 +338,6 @@ var doEval = function doEval2(name) {
|
|
|
380
338
|
return value;
|
|
381
339
|
};
|
|
382
340
|
var LEGACY_ALIASES = {
|
|
383
|
-
__proto__: null,
|
|
384
341
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
385
342
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
386
343
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -434,7 +391,7 @@ var LEGACY_ALIASES = {
|
|
|
434
391
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
435
392
|
};
|
|
436
393
|
var bind$1 = functionBind;
|
|
437
|
-
var hasOwn$1 =
|
|
394
|
+
var hasOwn$1 = src;
|
|
438
395
|
var $concat$1 = bind$1.call(Function.call, Array.prototype.concat);
|
|
439
396
|
var $spliceApply = bind$1.call(Function.apply, Array.prototype.splice);
|
|
440
397
|
var $replace$1 = bind$1.call(Function.call, String.prototype.replace);
|
|
@@ -446,9 +403,9 @@ var stringToPath = function stringToPath2(string) {
|
|
|
446
403
|
var first = $strSlice(string, 0, 1);
|
|
447
404
|
var last = $strSlice(string, -1);
|
|
448
405
|
if (first === "%" && last !== "%") {
|
|
449
|
-
throw new $SyntaxError
|
|
406
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
450
407
|
} else if (last === "%" && first !== "%") {
|
|
451
|
-
throw new $SyntaxError
|
|
408
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
452
409
|
}
|
|
453
410
|
var result = [];
|
|
454
411
|
$replace$1(string, rePropName, function(match, number, quote2, subString) {
|
|
@@ -469,7 +426,7 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
|
469
426
|
value = doEval(intrinsicName);
|
|
470
427
|
}
|
|
471
428
|
if (typeof value === "undefined" && !allowMissing) {
|
|
472
|
-
throw new $TypeError$
|
|
429
|
+
throw new $TypeError$1("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
473
430
|
}
|
|
474
431
|
return {
|
|
475
432
|
alias,
|
|
@@ -477,17 +434,17 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
|
477
434
|
value
|
|
478
435
|
};
|
|
479
436
|
}
|
|
480
|
-
throw new $SyntaxError
|
|
437
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
481
438
|
};
|
|
482
439
|
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
483
440
|
if (typeof name !== "string" || name.length === 0) {
|
|
484
|
-
throw new $TypeError$
|
|
441
|
+
throw new $TypeError$1("intrinsic name must be a non-empty string");
|
|
485
442
|
}
|
|
486
443
|
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
487
|
-
throw new $TypeError$
|
|
444
|
+
throw new $TypeError$1('"allowMissing" argument must be a boolean');
|
|
488
445
|
}
|
|
489
446
|
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
490
|
-
throw new $SyntaxError
|
|
447
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
491
448
|
}
|
|
492
449
|
var parts = stringToPath(name);
|
|
493
450
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
@@ -505,7 +462,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
505
462
|
var first = $strSlice(part, 0, 1);
|
|
506
463
|
var last = $strSlice(part, -1);
|
|
507
464
|
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
508
|
-
throw new $SyntaxError
|
|
465
|
+
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
509
466
|
}
|
|
510
467
|
if (part === "constructor" || !isOwn) {
|
|
511
468
|
skipFurtherCaching = true;
|
|
@@ -517,12 +474,12 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
517
474
|
} else if (value != null) {
|
|
518
475
|
if (!(part in value)) {
|
|
519
476
|
if (!allowMissing) {
|
|
520
|
-
throw new $TypeError$
|
|
477
|
+
throw new $TypeError$1("base intrinsic for " + name + " exists, but the property is not available.");
|
|
521
478
|
}
|
|
522
479
|
return void 0;
|
|
523
480
|
}
|
|
524
|
-
if ($gOPD
|
|
525
|
-
var desc = $gOPD
|
|
481
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
482
|
+
var desc = $gOPD(value, part);
|
|
526
483
|
isOwn = !!desc;
|
|
527
484
|
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
528
485
|
value = desc.get;
|
|
@@ -541,162 +498,41 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
541
498
|
return value;
|
|
542
499
|
};
|
|
543
500
|
var callBind$1 = { exports: {} };
|
|
544
|
-
var esDefineProperty;
|
|
545
|
-
var hasRequiredEsDefineProperty;
|
|
546
|
-
function requireEsDefineProperty() {
|
|
547
|
-
if (hasRequiredEsDefineProperty)
|
|
548
|
-
return esDefineProperty;
|
|
549
|
-
hasRequiredEsDefineProperty = 1;
|
|
550
|
-
var GetIntrinsic3 = getIntrinsic;
|
|
551
|
-
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
552
|
-
if ($defineProperty2) {
|
|
553
|
-
try {
|
|
554
|
-
$defineProperty2({}, "a", { value: 1 });
|
|
555
|
-
} catch (e) {
|
|
556
|
-
$defineProperty2 = false;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
esDefineProperty = $defineProperty2;
|
|
560
|
-
return esDefineProperty;
|
|
561
|
-
}
|
|
562
|
-
var GetIntrinsic$3 = getIntrinsic;
|
|
563
|
-
var $gOPD = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
564
|
-
if ($gOPD) {
|
|
565
|
-
try {
|
|
566
|
-
$gOPD([], "length");
|
|
567
|
-
} catch (e) {
|
|
568
|
-
$gOPD = null;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
var gopd$1 = $gOPD;
|
|
572
|
-
var $defineProperty$1 = requireEsDefineProperty();
|
|
573
|
-
var $SyntaxError = syntax;
|
|
574
|
-
var $TypeError$2 = type;
|
|
575
|
-
var gopd = gopd$1;
|
|
576
|
-
var defineDataProperty = function defineDataProperty2(obj, property, value) {
|
|
577
|
-
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
578
|
-
throw new $TypeError$2("`obj` must be an object or a function`");
|
|
579
|
-
}
|
|
580
|
-
if (typeof property !== "string" && typeof property !== "symbol") {
|
|
581
|
-
throw new $TypeError$2("`property` must be a string or a symbol`");
|
|
582
|
-
}
|
|
583
|
-
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
|
|
584
|
-
throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");
|
|
585
|
-
}
|
|
586
|
-
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
|
|
587
|
-
throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");
|
|
588
|
-
}
|
|
589
|
-
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
|
|
590
|
-
throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");
|
|
591
|
-
}
|
|
592
|
-
if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
|
|
593
|
-
throw new $TypeError$2("`loose`, if provided, must be a boolean");
|
|
594
|
-
}
|
|
595
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
596
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
597
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
598
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
599
|
-
var desc = !!gopd && gopd(obj, property);
|
|
600
|
-
if ($defineProperty$1) {
|
|
601
|
-
$defineProperty$1(obj, property, {
|
|
602
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
603
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
604
|
-
value,
|
|
605
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
606
|
-
});
|
|
607
|
-
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
608
|
-
obj[property] = value;
|
|
609
|
-
} else {
|
|
610
|
-
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
var $defineProperty = requireEsDefineProperty();
|
|
614
|
-
var hasPropertyDescriptors = function hasPropertyDescriptors2() {
|
|
615
|
-
return !!$defineProperty;
|
|
616
|
-
};
|
|
617
|
-
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
618
|
-
if (!$defineProperty) {
|
|
619
|
-
return null;
|
|
620
|
-
}
|
|
621
|
-
try {
|
|
622
|
-
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
623
|
-
} catch (e) {
|
|
624
|
-
return true;
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
|
-
var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
628
|
-
var GetIntrinsic$2 = getIntrinsic;
|
|
629
|
-
var define = defineDataProperty;
|
|
630
|
-
var hasDescriptors = hasPropertyDescriptors_1();
|
|
631
|
-
var gOPD = gopd$1;
|
|
632
|
-
var $TypeError$1 = type;
|
|
633
|
-
var $floor$1 = GetIntrinsic$2("%Math.floor%");
|
|
634
|
-
var setFunctionLength = function setFunctionLength2(fn, length) {
|
|
635
|
-
if (typeof fn !== "function") {
|
|
636
|
-
throw new $TypeError$1("`fn` is not a function");
|
|
637
|
-
}
|
|
638
|
-
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor$1(length) !== length) {
|
|
639
|
-
throw new $TypeError$1("`length` must be a positive 32-bit integer");
|
|
640
|
-
}
|
|
641
|
-
var loose = arguments.length > 2 && !!arguments[2];
|
|
642
|
-
var functionLengthIsConfigurable = true;
|
|
643
|
-
var functionLengthIsWritable = true;
|
|
644
|
-
if ("length" in fn && gOPD) {
|
|
645
|
-
var desc = gOPD(fn, "length");
|
|
646
|
-
if (desc && !desc.configurable) {
|
|
647
|
-
functionLengthIsConfigurable = false;
|
|
648
|
-
}
|
|
649
|
-
if (desc && !desc.writable) {
|
|
650
|
-
functionLengthIsWritable = false;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
654
|
-
if (hasDescriptors) {
|
|
655
|
-
define(
|
|
656
|
-
/** @type {Parameters<define>[0]} */
|
|
657
|
-
fn,
|
|
658
|
-
"length",
|
|
659
|
-
length,
|
|
660
|
-
true,
|
|
661
|
-
true
|
|
662
|
-
);
|
|
663
|
-
} else {
|
|
664
|
-
define(
|
|
665
|
-
/** @type {Parameters<define>[0]} */
|
|
666
|
-
fn,
|
|
667
|
-
"length",
|
|
668
|
-
length
|
|
669
|
-
);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
return fn;
|
|
673
|
-
};
|
|
674
501
|
(function(module2) {
|
|
675
502
|
var bind3 = functionBind;
|
|
676
503
|
var GetIntrinsic3 = getIntrinsic;
|
|
677
|
-
var setFunctionLength$1 = setFunctionLength;
|
|
678
|
-
var $TypeError2 = type;
|
|
679
504
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
680
505
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
681
506
|
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
|
|
682
|
-
var $
|
|
507
|
+
var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true);
|
|
508
|
+
var $defineProperty = GetIntrinsic3("%Object.defineProperty%", true);
|
|
683
509
|
var $max = GetIntrinsic3("%Math.max%");
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
510
|
+
if ($defineProperty) {
|
|
511
|
+
try {
|
|
512
|
+
$defineProperty({}, "a", { value: 1 });
|
|
513
|
+
} catch (e) {
|
|
514
|
+
$defineProperty = null;
|
|
687
515
|
}
|
|
516
|
+
}
|
|
517
|
+
module2.exports = function callBind2(originalFunction) {
|
|
688
518
|
var func = $reflectApply(bind3, $call, arguments);
|
|
689
|
-
|
|
690
|
-
func,
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
519
|
+
if ($gOPD2 && $defineProperty) {
|
|
520
|
+
var desc = $gOPD2(func, "length");
|
|
521
|
+
if (desc.configurable) {
|
|
522
|
+
$defineProperty(
|
|
523
|
+
func,
|
|
524
|
+
"length",
|
|
525
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
526
|
+
);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
return func;
|
|
694
530
|
};
|
|
695
531
|
var applyBind = function applyBind2() {
|
|
696
532
|
return $reflectApply(bind3, $apply, arguments);
|
|
697
533
|
};
|
|
698
|
-
if ($
|
|
699
|
-
$
|
|
534
|
+
if ($defineProperty) {
|
|
535
|
+
$defineProperty(module2.exports, "apply", { value: applyBind });
|
|
700
536
|
} else {
|
|
701
537
|
module2.exports.apply = applyBind;
|
|
702
538
|
}
|
|
@@ -931,12 +767,6 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
931
767
|
if (isString$1(obj)) {
|
|
932
768
|
return markBoxed(inspect2(String(obj)));
|
|
933
769
|
}
|
|
934
|
-
if (typeof window !== "undefined" && obj === window) {
|
|
935
|
-
return "{ [object Window] }";
|
|
936
|
-
}
|
|
937
|
-
if (typeof globalThis !== "undefined" && obj === globalThis || typeof commonjsGlobal !== "undefined" && obj === commonjsGlobal) {
|
|
938
|
-
return "{ [object globalThis] }";
|
|
939
|
-
}
|
|
940
770
|
if (!isDate$2(obj) && !isRegExp$2(obj)) {
|
|
941
771
|
var ys = arrObjKeys(obj, inspect2);
|
|
942
772
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -1150,12 +980,12 @@ function lowbyte(c) {
|
|
|
1150
980
|
function markBoxed(str) {
|
|
1151
981
|
return "Object(" + str + ")";
|
|
1152
982
|
}
|
|
1153
|
-
function weakCollectionOf(
|
|
1154
|
-
return
|
|
983
|
+
function weakCollectionOf(type) {
|
|
984
|
+
return type + " { ? }";
|
|
1155
985
|
}
|
|
1156
|
-
function collectionOf(
|
|
986
|
+
function collectionOf(type, size, entries, indent) {
|
|
1157
987
|
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
|
|
1158
|
-
return
|
|
988
|
+
return type + " (" + size + ") {" + joinedEntries + "}";
|
|
1159
989
|
}
|
|
1160
990
|
function singleLineValues(xs) {
|
|
1161
991
|
for (var i = 0; i < xs.length; i++) {
|
|
@@ -1230,7 +1060,7 @@ function arrObjKeys(obj, inspect2) {
|
|
|
1230
1060
|
var GetIntrinsic2 = getIntrinsic;
|
|
1231
1061
|
var callBound = callBound$1;
|
|
1232
1062
|
var inspect = objectInspect;
|
|
1233
|
-
var $TypeError =
|
|
1063
|
+
var $TypeError = GetIntrinsic2("%TypeError%");
|
|
1234
1064
|
var $WeakMap = GetIntrinsic2("%WeakMap%", true);
|
|
1235
1065
|
var $Map = GetIntrinsic2("%Map%", true);
|
|
1236
1066
|
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
@@ -1240,13 +1070,10 @@ var $mapGet = callBound("Map.prototype.get", true);
|
|
|
1240
1070
|
var $mapSet = callBound("Map.prototype.set", true);
|
|
1241
1071
|
var $mapHas = callBound("Map.prototype.has", true);
|
|
1242
1072
|
var listGetNode = function(list, key) {
|
|
1243
|
-
var prev = list;
|
|
1244
|
-
var curr;
|
|
1245
|
-
for (; (curr = prev.next) !== null; prev = curr) {
|
|
1073
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
1246
1074
|
if (curr.key === key) {
|
|
1247
1075
|
prev.next = curr.next;
|
|
1248
|
-
curr.next =
|
|
1249
|
-
list.next;
|
|
1076
|
+
curr.next = list.next;
|
|
1250
1077
|
list.next = curr;
|
|
1251
1078
|
return curr;
|
|
1252
1079
|
}
|
|
@@ -1261,9 +1088,8 @@ var listSet = function(objects, key, value) {
|
|
|
1261
1088
|
if (node) {
|
|
1262
1089
|
node.value = value;
|
|
1263
1090
|
} else {
|
|
1264
|
-
objects.next =
|
|
1265
|
-
|
|
1266
|
-
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
1091
|
+
objects.next = {
|
|
1092
|
+
// eslint-disable-line no-param-reassign
|
|
1267
1093
|
key,
|
|
1268
1094
|
next: objects.next,
|
|
1269
1095
|
value
|
|
@@ -1569,7 +1395,7 @@ var pushToArray = function(arr, valueOrArray) {
|
|
|
1569
1395
|
};
|
|
1570
1396
|
var toISO = Date.prototype.toISOString;
|
|
1571
1397
|
var defaultFormat = formats$1["default"];
|
|
1572
|
-
var defaults$
|
|
1398
|
+
var defaults$3 = {
|
|
1573
1399
|
addQueryPrefix: false,
|
|
1574
1400
|
allowDots: false,
|
|
1575
1401
|
charset: "utf-8",
|
|
@@ -1625,14 +1451,14 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
|
|
|
1625
1451
|
}
|
|
1626
1452
|
if (obj === null) {
|
|
1627
1453
|
if (strictNullHandling) {
|
|
1628
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults$
|
|
1454
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults$3.encoder, charset, "key", format) : prefix;
|
|
1629
1455
|
}
|
|
1630
1456
|
obj = "";
|
|
1631
1457
|
}
|
|
1632
1458
|
if (isNonNullishPrimitive(obj) || utils$3.isBuffer(obj)) {
|
|
1633
1459
|
if (encoder) {
|
|
1634
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$
|
|
1635
|
-
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults$
|
|
1460
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$3.encoder, charset, "key", format);
|
|
1461
|
+
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults$3.encoder, charset, "value", format))];
|
|
1636
1462
|
}
|
|
1637
1463
|
return [formatter(prefix) + "=" + formatter(String(obj))];
|
|
1638
1464
|
}
|
|
@@ -1686,12 +1512,12 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
|
|
|
1686
1512
|
};
|
|
1687
1513
|
var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
1688
1514
|
if (!opts) {
|
|
1689
|
-
return defaults$
|
|
1515
|
+
return defaults$3;
|
|
1690
1516
|
}
|
|
1691
1517
|
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
1692
1518
|
throw new TypeError("Encoder has to be a function.");
|
|
1693
1519
|
}
|
|
1694
|
-
var charset = opts.charset || defaults$
|
|
1520
|
+
var charset = opts.charset || defaults$3.charset;
|
|
1695
1521
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
1696
1522
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1697
1523
|
}
|
|
@@ -1703,26 +1529,26 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
|
1703
1529
|
format = opts.format;
|
|
1704
1530
|
}
|
|
1705
1531
|
var formatter = formats$1.formatters[format];
|
|
1706
|
-
var filter2 = defaults$
|
|
1532
|
+
var filter2 = defaults$3.filter;
|
|
1707
1533
|
if (typeof opts.filter === "function" || isArray$2(opts.filter)) {
|
|
1708
1534
|
filter2 = opts.filter;
|
|
1709
1535
|
}
|
|
1710
1536
|
return {
|
|
1711
|
-
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$
|
|
1712
|
-
allowDots: typeof opts.allowDots === "undefined" ? defaults$
|
|
1537
|
+
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$3.addQueryPrefix,
|
|
1538
|
+
allowDots: typeof opts.allowDots === "undefined" ? defaults$3.allowDots : !!opts.allowDots,
|
|
1713
1539
|
charset,
|
|
1714
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$
|
|
1715
|
-
delimiter: typeof opts.delimiter === "undefined" ? defaults$
|
|
1716
|
-
encode: typeof opts.encode === "boolean" ? opts.encode : defaults$
|
|
1717
|
-
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$
|
|
1718
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$
|
|
1540
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$3.charsetSentinel,
|
|
1541
|
+
delimiter: typeof opts.delimiter === "undefined" ? defaults$3.delimiter : opts.delimiter,
|
|
1542
|
+
encode: typeof opts.encode === "boolean" ? opts.encode : defaults$3.encode,
|
|
1543
|
+
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$3.encoder,
|
|
1544
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$3.encodeValuesOnly,
|
|
1719
1545
|
filter: filter2,
|
|
1720
1546
|
format,
|
|
1721
1547
|
formatter,
|
|
1722
|
-
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults$
|
|
1723
|
-
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults$
|
|
1548
|
+
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults$3.serializeDate,
|
|
1549
|
+
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults$3.skipNulls,
|
|
1724
1550
|
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
1725
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$
|
|
1551
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$3.strictNullHandling
|
|
1726
1552
|
};
|
|
1727
1553
|
};
|
|
1728
1554
|
var stringify_1 = function(object, opts) {
|
|
@@ -1799,7 +1625,7 @@ var stringify_1 = function(object, opts) {
|
|
|
1799
1625
|
var utils$2 = utils$4;
|
|
1800
1626
|
var has = Object.prototype.hasOwnProperty;
|
|
1801
1627
|
var isArray$1 = Array.isArray;
|
|
1802
|
-
var defaults$
|
|
1628
|
+
var defaults$2 = {
|
|
1803
1629
|
allowDots: false,
|
|
1804
1630
|
allowPrototypes: false,
|
|
1805
1631
|
allowSparse: false,
|
|
@@ -1860,14 +1686,14 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
1860
1686
|
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
1861
1687
|
var key, val;
|
|
1862
1688
|
if (pos === -1) {
|
|
1863
|
-
key = options.decoder(part, defaults$
|
|
1689
|
+
key = options.decoder(part, defaults$2.decoder, charset, "key");
|
|
1864
1690
|
val = options.strictNullHandling ? null : "";
|
|
1865
1691
|
} else {
|
|
1866
|
-
key = options.decoder(part.slice(0, pos), defaults$
|
|
1692
|
+
key = options.decoder(part.slice(0, pos), defaults$2.decoder, charset, "key");
|
|
1867
1693
|
val = utils$2.maybeMap(
|
|
1868
1694
|
parseArrayValue(part.slice(pos + 1), options),
|
|
1869
1695
|
function(encodedVal) {
|
|
1870
|
-
return options.decoder(encodedVal, defaults$
|
|
1696
|
+
return options.decoder(encodedVal, defaults$2.decoder, charset, "value");
|
|
1871
1697
|
}
|
|
1872
1698
|
);
|
|
1873
1699
|
}
|
|
@@ -1944,7 +1770,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
|
|
|
1944
1770
|
};
|
|
1945
1771
|
var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
1946
1772
|
if (!opts) {
|
|
1947
|
-
return defaults$
|
|
1773
|
+
return defaults$2;
|
|
1948
1774
|
}
|
|
1949
1775
|
if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
|
|
1950
1776
|
throw new TypeError("Decoder has to be a function.");
|
|
@@ -1952,25 +1778,25 @@ var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
|
1952
1778
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
1953
1779
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1954
1780
|
}
|
|
1955
|
-
var charset = typeof opts.charset === "undefined" ? defaults$
|
|
1781
|
+
var charset = typeof opts.charset === "undefined" ? defaults$2.charset : opts.charset;
|
|
1956
1782
|
return {
|
|
1957
|
-
allowDots: typeof opts.allowDots === "undefined" ? defaults$
|
|
1958
|
-
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults$
|
|
1959
|
-
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults$
|
|
1960
|
-
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults$
|
|
1783
|
+
allowDots: typeof opts.allowDots === "undefined" ? defaults$2.allowDots : !!opts.allowDots,
|
|
1784
|
+
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults$2.allowPrototypes,
|
|
1785
|
+
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults$2.allowSparse,
|
|
1786
|
+
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults$2.arrayLimit,
|
|
1961
1787
|
charset,
|
|
1962
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$
|
|
1963
|
-
comma: typeof opts.comma === "boolean" ? opts.comma : defaults$
|
|
1964
|
-
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults$
|
|
1965
|
-
delimiter: typeof opts.delimiter === "string" || utils$2.isRegExp(opts.delimiter) ? opts.delimiter : defaults$
|
|
1788
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$2.charsetSentinel,
|
|
1789
|
+
comma: typeof opts.comma === "boolean" ? opts.comma : defaults$2.comma,
|
|
1790
|
+
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults$2.decoder,
|
|
1791
|
+
delimiter: typeof opts.delimiter === "string" || utils$2.isRegExp(opts.delimiter) ? opts.delimiter : defaults$2.delimiter,
|
|
1966
1792
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1967
|
-
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults$
|
|
1793
|
+
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults$2.depth,
|
|
1968
1794
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
1969
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults$
|
|
1970
|
-
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults$
|
|
1795
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults$2.interpretNumericEntities,
|
|
1796
|
+
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults$2.parameterLimit,
|
|
1971
1797
|
parseArrays: opts.parseArrays !== false,
|
|
1972
|
-
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults$
|
|
1973
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$
|
|
1798
|
+
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults$2.plainObjects,
|
|
1799
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults$2.strictNullHandling
|
|
1974
1800
|
};
|
|
1975
1801
|
};
|
|
1976
1802
|
var parse$1 = function(str, opts) {
|
|
@@ -2027,14 +1853,14 @@ function miniKindOf(val) {
|
|
|
2027
1853
|
return "undefined";
|
|
2028
1854
|
if (val === null)
|
|
2029
1855
|
return "null";
|
|
2030
|
-
var
|
|
2031
|
-
switch (
|
|
1856
|
+
var type = typeof val;
|
|
1857
|
+
switch (type) {
|
|
2032
1858
|
case "boolean":
|
|
2033
1859
|
case "string":
|
|
2034
1860
|
case "number":
|
|
2035
1861
|
case "symbol":
|
|
2036
1862
|
case "function": {
|
|
2037
|
-
return
|
|
1863
|
+
return type;
|
|
2038
1864
|
}
|
|
2039
1865
|
}
|
|
2040
1866
|
if (Array.isArray(val))
|
|
@@ -2053,7 +1879,7 @@ function miniKindOf(val) {
|
|
|
2053
1879
|
case "Set":
|
|
2054
1880
|
return constructorName;
|
|
2055
1881
|
}
|
|
2056
|
-
return
|
|
1882
|
+
return type.slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
2057
1883
|
}
|
|
2058
1884
|
function ctorName(val) {
|
|
2059
1885
|
return typeof val.constructor === "function" ? val.constructor.name : null;
|
|
@@ -2516,7 +2342,7 @@ function isPlainObject$2(value) {
|
|
|
2516
2342
|
var hasMatchFunction = function(v2) {
|
|
2517
2343
|
return v2 && typeof v2.match === "function";
|
|
2518
2344
|
};
|
|
2519
|
-
function createAction(
|
|
2345
|
+
function createAction(type, prepareAction) {
|
|
2520
2346
|
function actionCreator() {
|
|
2521
2347
|
var args = [];
|
|
2522
2348
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -2528,18 +2354,18 @@ function createAction(type2, prepareAction) {
|
|
|
2528
2354
|
throw new Error("prepareAction did not return an object");
|
|
2529
2355
|
}
|
|
2530
2356
|
return __spreadValues$2(__spreadValues$2({
|
|
2531
|
-
type
|
|
2357
|
+
type,
|
|
2532
2358
|
payload: prepared.payload
|
|
2533
2359
|
}, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
|
|
2534
2360
|
}
|
|
2535
|
-
return { type
|
|
2361
|
+
return { type, payload: args[0] };
|
|
2536
2362
|
}
|
|
2537
2363
|
actionCreator.toString = function() {
|
|
2538
|
-
return "" +
|
|
2364
|
+
return "" + type;
|
|
2539
2365
|
};
|
|
2540
|
-
actionCreator.type =
|
|
2366
|
+
actionCreator.type = type;
|
|
2541
2367
|
actionCreator.match = function(action) {
|
|
2542
|
-
return action.type ===
|
|
2368
|
+
return action.type === type;
|
|
2543
2369
|
};
|
|
2544
2370
|
return actionCreator;
|
|
2545
2371
|
}
|
|
@@ -2637,14 +2463,14 @@ function executeReducerBuilderCallback(builderCallback) {
|
|
|
2637
2463
|
throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
|
|
2638
2464
|
}
|
|
2639
2465
|
}
|
|
2640
|
-
var
|
|
2641
|
-
if (!
|
|
2466
|
+
var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
|
|
2467
|
+
if (!type) {
|
|
2642
2468
|
throw new Error("`builder.addCase` cannot be called with an empty action type");
|
|
2643
2469
|
}
|
|
2644
|
-
if (
|
|
2470
|
+
if (type in actionsMap) {
|
|
2645
2471
|
throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
|
|
2646
2472
|
}
|
|
2647
|
-
actionsMap[
|
|
2473
|
+
actionsMap[type] = reducer2;
|
|
2648
2474
|
return builder;
|
|
2649
2475
|
},
|
|
2650
2476
|
addMatcher: function(matcher, reducer2) {
|
|
@@ -2746,8 +2572,8 @@ function createReducer(initialState2, mapOrBuilderCallback, actionMatchers, defa
|
|
|
2746
2572
|
return reducer2;
|
|
2747
2573
|
}
|
|
2748
2574
|
var hasWarnedAboutObjectNotation2 = false;
|
|
2749
|
-
function getType2(
|
|
2750
|
-
return
|
|
2575
|
+
function getType2(slice2, actionKey) {
|
|
2576
|
+
return slice2 + "/" + actionKey;
|
|
2751
2577
|
}
|
|
2752
2578
|
function createSlice(options) {
|
|
2753
2579
|
var name = options.name;
|
|
@@ -2767,7 +2593,7 @@ function createSlice(options) {
|
|
|
2767
2593
|
var actionCreators = {};
|
|
2768
2594
|
reducerNames.forEach(function(reducerName) {
|
|
2769
2595
|
var maybeReducerWithPrepare = reducers[reducerName];
|
|
2770
|
-
var
|
|
2596
|
+
var type = getType2(name, reducerName);
|
|
2771
2597
|
var caseReducer;
|
|
2772
2598
|
var prepareCallback;
|
|
2773
2599
|
if ("reducer" in maybeReducerWithPrepare) {
|
|
@@ -2777,8 +2603,8 @@ function createSlice(options) {
|
|
|
2777
2603
|
caseReducer = maybeReducerWithPrepare;
|
|
2778
2604
|
}
|
|
2779
2605
|
sliceCaseReducersByName[reducerName] = caseReducer;
|
|
2780
|
-
sliceCaseReducersByType[
|
|
2781
|
-
actionCreators[reducerName] = prepareCallback ? createAction(
|
|
2606
|
+
sliceCaseReducersByType[type] = caseReducer;
|
|
2607
|
+
actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
|
|
2782
2608
|
});
|
|
2783
2609
|
function buildReducer() {
|
|
2784
2610
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -3966,8 +3792,8 @@ function buildThunks(_j) {
|
|
|
3966
3792
|
buildMatchThunkActions
|
|
3967
3793
|
};
|
|
3968
3794
|
}
|
|
3969
|
-
function calculateProvidedByThunk(action,
|
|
3970
|
-
return calculateProvidedBy(endpointDefinitions[action.meta.arg.endpointName][
|
|
3795
|
+
function calculateProvidedByThunk(action, type, endpointDefinitions, assertTagType) {
|
|
3796
|
+
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);
|
|
3971
3797
|
}
|
|
3972
3798
|
function updateQuerySubstateIfExists(state, queryCacheKey, update) {
|
|
3973
3799
|
var substate = state[queryCacheKey];
|
|
@@ -4158,8 +3984,8 @@ function buildSlice(_j) {
|
|
|
4158
3984
|
}
|
|
4159
3985
|
}
|
|
4160
3986
|
for (var _p = 0, providedTags_1 = providedTags; _p < providedTags_1.length; _p++) {
|
|
4161
|
-
var _q = providedTags_1[_p],
|
|
4162
|
-
var subscribedQueries = (_d = (_b = (_a = draft[
|
|
3987
|
+
var _q = providedTags_1[_p], type = _q.type, id = _q.id;
|
|
3988
|
+
var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = [];
|
|
4163
3989
|
var alreadySubscribed = subscribedQueries.includes(queryCacheKey);
|
|
4164
3990
|
if (!alreadySubscribed) {
|
|
4165
3991
|
subscribedQueries.push(queryCacheKey);
|
|
@@ -4186,10 +4012,10 @@ function buildSlice(_j) {
|
|
|
4186
4012
|
var _a, _b, _c, _d;
|
|
4187
4013
|
var provided = extractRehydrationInfo(action).provided;
|
|
4188
4014
|
for (var _j2 = 0, _k2 = Object.entries(provided); _j2 < _k2.length; _j2++) {
|
|
4189
|
-
var _l = _k2[_j2],
|
|
4015
|
+
var _l = _k2[_j2], type = _l[0], incomingTags = _l[1];
|
|
4190
4016
|
for (var _m = 0, _o = Object.entries(incomingTags); _m < _o.length; _m++) {
|
|
4191
4017
|
var _p = _o[_m], id = _p[0], cacheKeys = _p[1];
|
|
4192
|
-
var subscribedQueries = (_d = (_b = (_a = draft[
|
|
4018
|
+
var subscribedQueries = (_d = (_b = (_a = draft[type]) != null ? _a : draft[type] = {})[_c = id || "__internal_without_id"]) != null ? _d : _b[_c] = [];
|
|
4193
4019
|
for (var _q = 0, cacheKeys_1 = cacheKeys; _q < cacheKeys_1.length; _q++) {
|
|
4194
4020
|
var queryCacheKey = cacheKeys_1[_q];
|
|
4195
4021
|
var alreadySubscribed = subscribedQueries.includes(queryCacheKey);
|
|
@@ -4695,7 +4521,7 @@ var buildWindowEventHandler = function(_j) {
|
|
|
4695
4521
|
refetchValidQueries(mwApi, "refetchOnReconnect");
|
|
4696
4522
|
}
|
|
4697
4523
|
};
|
|
4698
|
-
function refetchValidQueries(api2,
|
|
4524
|
+
function refetchValidQueries(api2, type) {
|
|
4699
4525
|
var state = api2.getState()[reducerPath];
|
|
4700
4526
|
var queries = state.queries;
|
|
4701
4527
|
var subscriptions = internalState.currentSubscriptions;
|
|
@@ -4707,10 +4533,10 @@ var buildWindowEventHandler = function(_j) {
|
|
|
4707
4533
|
if (!subscriptionSubState || !querySubState)
|
|
4708
4534
|
continue;
|
|
4709
4535
|
var shouldRefetch = Object.values(subscriptionSubState).some(function(sub) {
|
|
4710
|
-
return sub[
|
|
4536
|
+
return sub[type] === true;
|
|
4711
4537
|
}) || Object.values(subscriptionSubState).every(function(sub) {
|
|
4712
|
-
return sub[
|
|
4713
|
-
}) && state.config[
|
|
4538
|
+
return sub[type] === void 0;
|
|
4539
|
+
}) && state.config[type];
|
|
4714
4540
|
if (shouldRefetch) {
|
|
4715
4541
|
if (Object.keys(subscriptionSubState).length === 0) {
|
|
4716
4542
|
api2.dispatch(removeQueryResult({
|
|
@@ -5582,7 +5408,7 @@ function safeAssign(target) {
|
|
|
5582
5408
|
}
|
|
5583
5409
|
var reactHooksModuleName = /* @__PURE__ */ Symbol();
|
|
5584
5410
|
var reactHooksModule = function(_c) {
|
|
5585
|
-
var _d = {}, _e = _d.batch, batch = _e === void 0 ? reactRedux.batch : _e, _f = _d.useDispatch, useDispatch = _f === void 0 ? reactRedux.useDispatch : _f, _g = _d.useSelector, useSelector = _g === void 0 ? reactRedux.useSelector : _g, _h = _d.useStore, useStore = _h === void 0 ? reactRedux.useStore : _h, _j = _d.unstable__sideEffectsInRender, unstable__sideEffectsInRender = _j === void 0 ? false : _j;
|
|
5411
|
+
var _d = _c === void 0 ? {} : _c, _e = _d.batch, batch = _e === void 0 ? reactRedux.batch : _e, _f = _d.useDispatch, useDispatch = _f === void 0 ? reactRedux.useDispatch : _f, _g = _d.useSelector, useSelector = _g === void 0 ? reactRedux.useSelector : _g, _h = _d.useStore, useStore = _h === void 0 ? reactRedux.useStore : _h, _j = _d.unstable__sideEffectsInRender, unstable__sideEffectsInRender = _j === void 0 ? false : _j;
|
|
5586
5412
|
return {
|
|
5587
5413
|
name: reactHooksModuleName,
|
|
5588
5414
|
init: function(api, _c2, context) {
|
|
@@ -5924,11 +5750,11 @@ const kindOf = /* @__PURE__ */ ((cache2) => (thing) => {
|
|
|
5924
5750
|
const str = toString.call(thing);
|
|
5925
5751
|
return cache2[str] || (cache2[str] = str.slice(8, -1).toLowerCase());
|
|
5926
5752
|
})(/* @__PURE__ */ Object.create(null));
|
|
5927
|
-
const kindOfTest = (
|
|
5928
|
-
|
|
5929
|
-
return (thing) => kindOf(thing) ===
|
|
5753
|
+
const kindOfTest = (type) => {
|
|
5754
|
+
type = type.toLowerCase();
|
|
5755
|
+
return (thing) => kindOf(thing) === type;
|
|
5930
5756
|
};
|
|
5931
|
-
const typeOfTest = (
|
|
5757
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
5932
5758
|
const { isArray } = Array;
|
|
5933
5759
|
const isUndefined = typeOfTest("undefined");
|
|
5934
5760
|
function isBuffer2(val) {
|
|
@@ -6166,12 +5992,12 @@ const freezeMethods = (obj) => {
|
|
|
6166
5992
|
};
|
|
6167
5993
|
const toObjectSet = (arrayOrString, delimiter) => {
|
|
6168
5994
|
const obj = {};
|
|
6169
|
-
const
|
|
5995
|
+
const define = (arr) => {
|
|
6170
5996
|
arr.forEach((value) => {
|
|
6171
5997
|
obj[value] = true;
|
|
6172
5998
|
});
|
|
6173
5999
|
};
|
|
6174
|
-
isArray(arrayOrString) ?
|
|
6000
|
+
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
6175
6001
|
return obj;
|
|
6176
6002
|
};
|
|
6177
6003
|
const noop = () => {
|
|
@@ -6803,6 +6629,7 @@ const defaults = {
|
|
|
6803
6629
|
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
6804
6630
|
defaults.headers[method] = {};
|
|
6805
6631
|
});
|
|
6632
|
+
const defaults$1 = defaults;
|
|
6806
6633
|
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
6807
6634
|
"age",
|
|
6808
6635
|
"authorization",
|
|
@@ -7065,10 +6892,11 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
7065
6892
|
};
|
|
7066
6893
|
});
|
|
7067
6894
|
utils$1.freezeMethods(AxiosHeaders);
|
|
6895
|
+
const AxiosHeaders$1 = AxiosHeaders;
|
|
7068
6896
|
function transformData(fns, response) {
|
|
7069
|
-
const config = this || defaults;
|
|
6897
|
+
const config = this || defaults$1;
|
|
7070
6898
|
const context = response || config;
|
|
7071
|
-
const headers = AxiosHeaders.from(context.headers);
|
|
6899
|
+
const headers = AxiosHeaders$1.from(context.headers);
|
|
7072
6900
|
let data = context.data;
|
|
7073
6901
|
utils$1.forEach(fns, function transform(fn) {
|
|
7074
6902
|
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -7284,7 +7112,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
7284
7112
|
}
|
|
7285
7113
|
return requestedURL;
|
|
7286
7114
|
}
|
|
7287
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
7115
|
+
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
7288
7116
|
function mergeConfig(config1, config2) {
|
|
7289
7117
|
config2 = config2 || {};
|
|
7290
7118
|
const config = {};
|
|
@@ -7365,7 +7193,7 @@ function mergeConfig(config1, config2) {
|
|
|
7365
7193
|
const resolveConfig = (config) => {
|
|
7366
7194
|
const newConfig = mergeConfig({}, config);
|
|
7367
7195
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
7368
|
-
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
7196
|
+
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
7369
7197
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
7370
7198
|
if (auth) {
|
|
7371
7199
|
headers.set(
|
|
@@ -7378,8 +7206,8 @@ const resolveConfig = (config) => {
|
|
|
7378
7206
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
7379
7207
|
headers.setContentType(void 0);
|
|
7380
7208
|
} else if ((contentType = headers.getContentType()) !== false) {
|
|
7381
|
-
const [
|
|
7382
|
-
headers.setContentType([
|
|
7209
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
7210
|
+
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
7383
7211
|
}
|
|
7384
7212
|
}
|
|
7385
7213
|
if (platform.hasStandardBrowserEnv) {
|
|
@@ -7398,7 +7226,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7398
7226
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
7399
7227
|
const _config = resolveConfig(config);
|
|
7400
7228
|
let requestData = _config.data;
|
|
7401
|
-
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
7229
|
+
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
7402
7230
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
7403
7231
|
let onCanceled;
|
|
7404
7232
|
let uploadThrottled, downloadThrottled;
|
|
@@ -7416,7 +7244,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
7416
7244
|
if (!request) {
|
|
7417
7245
|
return;
|
|
7418
7246
|
}
|
|
7419
|
-
const responseHeaders = AxiosHeaders.from(
|
|
7247
|
+
const responseHeaders = AxiosHeaders$1.from(
|
|
7420
7248
|
"getAllResponseHeaders" in request && request.getAllResponseHeaders()
|
|
7421
7249
|
);
|
|
7422
7250
|
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
@@ -7635,9 +7463,9 @@ const resolvers = {
|
|
|
7635
7463
|
stream: supportsResponseStream && ((res) => res.body)
|
|
7636
7464
|
};
|
|
7637
7465
|
isFetchSupported && ((res) => {
|
|
7638
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
7639
|
-
!resolvers[
|
|
7640
|
-
throw new AxiosError(`Response type '${
|
|
7466
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
7467
|
+
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
7468
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
7641
7469
|
});
|
|
7642
7470
|
});
|
|
7643
7471
|
})(new Response());
|
|
@@ -7748,7 +7576,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
7748
7576
|
return await new Promise((resolve, reject) => {
|
|
7749
7577
|
settle(resolve, reject, {
|
|
7750
7578
|
data: responseData,
|
|
7751
|
-
headers: AxiosHeaders.from(response.headers),
|
|
7579
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
7752
7580
|
status: response.status,
|
|
7753
7581
|
statusText: response.statusText,
|
|
7754
7582
|
config,
|
|
@@ -7830,7 +7658,7 @@ function throwIfCancellationRequested(config) {
|
|
|
7830
7658
|
}
|
|
7831
7659
|
function dispatchRequest(config) {
|
|
7832
7660
|
throwIfCancellationRequested(config);
|
|
7833
|
-
config.headers = AxiosHeaders.from(config.headers);
|
|
7661
|
+
config.headers = AxiosHeaders$1.from(config.headers);
|
|
7834
7662
|
config.data = transformData.call(
|
|
7835
7663
|
config,
|
|
7836
7664
|
config.transformRequest
|
|
@@ -7838,7 +7666,7 @@ function dispatchRequest(config) {
|
|
|
7838
7666
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
7839
7667
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
7840
7668
|
}
|
|
7841
|
-
const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
|
|
7669
|
+
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
|
7842
7670
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
7843
7671
|
throwIfCancellationRequested(config);
|
|
7844
7672
|
response.data = transformData.call(
|
|
@@ -7846,7 +7674,7 @@ function dispatchRequest(config) {
|
|
|
7846
7674
|
config.transformResponse,
|
|
7847
7675
|
response
|
|
7848
7676
|
);
|
|
7849
|
-
response.headers = AxiosHeaders.from(response.headers);
|
|
7677
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
7850
7678
|
return response;
|
|
7851
7679
|
}, function onAdapterRejection(reason) {
|
|
7852
7680
|
if (!isCancel(reason)) {
|
|
@@ -7857,7 +7685,7 @@ function dispatchRequest(config) {
|
|
|
7857
7685
|
config.transformResponse,
|
|
7858
7686
|
reason.response
|
|
7859
7687
|
);
|
|
7860
|
-
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
7688
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
7861
7689
|
}
|
|
7862
7690
|
}
|
|
7863
7691
|
return Promise.reject(reason);
|
|
@@ -7865,9 +7693,9 @@ function dispatchRequest(config) {
|
|
|
7865
7693
|
}
|
|
7866
7694
|
const VERSION = "1.7.4";
|
|
7867
7695
|
const validators$1 = {};
|
|
7868
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((
|
|
7869
|
-
validators$1[
|
|
7870
|
-
return typeof thing ===
|
|
7696
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
7697
|
+
validators$1[type] = function validator2(thing) {
|
|
7698
|
+
return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
|
|
7871
7699
|
};
|
|
7872
7700
|
});
|
|
7873
7701
|
const deprecatedWarnings = {};
|
|
@@ -7996,7 +7824,7 @@ class Axios {
|
|
|
7996
7824
|
delete headers[method];
|
|
7997
7825
|
}
|
|
7998
7826
|
);
|
|
7999
|
-
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
7827
|
+
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
8000
7828
|
const requestInterceptorChain = [];
|
|
8001
7829
|
let synchronousRequestInterceptors = true;
|
|
8002
7830
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
@@ -8080,6 +7908,7 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
8080
7908
|
Axios.prototype[method] = generateHTTPMethod();
|
|
8081
7909
|
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
8082
7910
|
});
|
|
7911
|
+
const Axios$1 = Axios;
|
|
8083
7912
|
class CancelToken {
|
|
8084
7913
|
constructor(executor) {
|
|
8085
7914
|
if (typeof executor !== "function") {
|
|
@@ -8167,6 +7996,7 @@ class CancelToken {
|
|
|
8167
7996
|
};
|
|
8168
7997
|
}
|
|
8169
7998
|
}
|
|
7999
|
+
const CancelToken$1 = CancelToken;
|
|
8170
8000
|
function spread(callback) {
|
|
8171
8001
|
return function wrap(arr) {
|
|
8172
8002
|
return callback.apply(null, arr);
|
|
@@ -8243,20 +8073,21 @@ const HttpStatusCode = {
|
|
|
8243
8073
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
8244
8074
|
HttpStatusCode[value] = key;
|
|
8245
8075
|
});
|
|
8076
|
+
const HttpStatusCode$1 = HttpStatusCode;
|
|
8246
8077
|
function createInstance(defaultConfig) {
|
|
8247
|
-
const context = new Axios(defaultConfig);
|
|
8248
|
-
const instance = bind2(Axios.prototype.request, context);
|
|
8249
|
-
utils$1.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
8078
|
+
const context = new Axios$1(defaultConfig);
|
|
8079
|
+
const instance = bind2(Axios$1.prototype.request, context);
|
|
8080
|
+
utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
8250
8081
|
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
8251
8082
|
instance.create = function create(instanceConfig) {
|
|
8252
8083
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
8253
8084
|
};
|
|
8254
8085
|
return instance;
|
|
8255
8086
|
}
|
|
8256
|
-
const axios = createInstance(defaults);
|
|
8257
|
-
axios.Axios = Axios;
|
|
8087
|
+
const axios = createInstance(defaults$1);
|
|
8088
|
+
axios.Axios = Axios$1;
|
|
8258
8089
|
axios.CanceledError = CanceledError;
|
|
8259
|
-
axios.CancelToken = CancelToken;
|
|
8090
|
+
axios.CancelToken = CancelToken$1;
|
|
8260
8091
|
axios.isCancel = isCancel;
|
|
8261
8092
|
axios.VERSION = VERSION;
|
|
8262
8093
|
axios.toFormData = toFormData;
|
|
@@ -8268,10 +8099,10 @@ axios.all = function all(promises) {
|
|
|
8268
8099
|
axios.spread = spread;
|
|
8269
8100
|
axios.isAxiosError = isAxiosError;
|
|
8270
8101
|
axios.mergeConfig = mergeConfig;
|
|
8271
|
-
axios.AxiosHeaders = AxiosHeaders;
|
|
8102
|
+
axios.AxiosHeaders = AxiosHeaders$1;
|
|
8272
8103
|
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
8273
8104
|
axios.getAdapter = adapters.getAdapter;
|
|
8274
|
-
axios.HttpStatusCode = HttpStatusCode;
|
|
8105
|
+
axios.HttpStatusCode = HttpStatusCode$1;
|
|
8275
8106
|
axios.default = axios;
|
|
8276
8107
|
var scheduler = { exports: {} };
|
|
8277
8108
|
var scheduler_production_min = {};
|
|
@@ -9589,9 +9420,38 @@ function generateKeyBetween(a2, b, digits = BASE_62_DIGITS) {
|
|
|
9589
9420
|
return ia + midpoint(fa, null, digits);
|
|
9590
9421
|
}
|
|
9591
9422
|
function generateNKeysBetween(a2, b, n, digits = BASE_62_DIGITS) {
|
|
9592
|
-
{
|
|
9423
|
+
if (n === 0) {
|
|
9424
|
+
return [];
|
|
9425
|
+
}
|
|
9426
|
+
if (n === 1) {
|
|
9593
9427
|
return [generateKeyBetween(a2, b, digits)];
|
|
9594
9428
|
}
|
|
9429
|
+
if (b == null) {
|
|
9430
|
+
let c2 = generateKeyBetween(a2, b, digits);
|
|
9431
|
+
const result = [c2];
|
|
9432
|
+
for (let i = 0; i < n - 1; i++) {
|
|
9433
|
+
c2 = generateKeyBetween(c2, b, digits);
|
|
9434
|
+
result.push(c2);
|
|
9435
|
+
}
|
|
9436
|
+
return result;
|
|
9437
|
+
}
|
|
9438
|
+
if (a2 == null) {
|
|
9439
|
+
let c2 = generateKeyBetween(a2, b, digits);
|
|
9440
|
+
const result = [c2];
|
|
9441
|
+
for (let i = 0; i < n - 1; i++) {
|
|
9442
|
+
c2 = generateKeyBetween(a2, c2, digits);
|
|
9443
|
+
result.push(c2);
|
|
9444
|
+
}
|
|
9445
|
+
result.reverse();
|
|
9446
|
+
return result;
|
|
9447
|
+
}
|
|
9448
|
+
const mid = Math.floor(n / 2);
|
|
9449
|
+
const c = generateKeyBetween(a2, b, digits);
|
|
9450
|
+
return [
|
|
9451
|
+
...generateNKeysBetween(a2, c, mid, digits),
|
|
9452
|
+
c,
|
|
9453
|
+
...generateNKeysBetween(c, b, n - mid - 1, digits)
|
|
9454
|
+
];
|
|
9595
9455
|
}
|
|
9596
9456
|
function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {
|
|
9597
9457
|
return amount - numerator * Math.floor(amount / numerator);
|
|
@@ -10079,13 +9939,13 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
|
|
|
10079
9939
|
case "hour": {
|
|
10080
9940
|
let hours = value.hour;
|
|
10081
9941
|
let min = 0;
|
|
10082
|
-
let
|
|
9942
|
+
let max = 23;
|
|
10083
9943
|
if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
|
|
10084
9944
|
let isPM = hours >= 12;
|
|
10085
9945
|
min = isPM ? 12 : 0;
|
|
10086
|
-
|
|
9946
|
+
max = isPM ? 23 : 11;
|
|
10087
9947
|
}
|
|
10088
|
-
mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min,
|
|
9948
|
+
mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
|
|
10089
9949
|
break;
|
|
10090
9950
|
}
|
|
10091
9951
|
case "minute":
|
|
@@ -10102,24 +9962,24 @@ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options
|
|
|
10102
9962
|
}
|
|
10103
9963
|
return mutable;
|
|
10104
9964
|
}
|
|
10105
|
-
function $735220c2d4774dd3$var$cycleValue(value, amount, min,
|
|
9965
|
+
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
|
|
10106
9966
|
if (round) {
|
|
10107
9967
|
value += Math.sign(amount);
|
|
10108
9968
|
if (value < min)
|
|
10109
|
-
value =
|
|
9969
|
+
value = max;
|
|
10110
9970
|
let div = Math.abs(amount);
|
|
10111
9971
|
if (amount > 0)
|
|
10112
9972
|
value = Math.ceil(value / div) * div;
|
|
10113
9973
|
else
|
|
10114
9974
|
value = Math.floor(value / div) * div;
|
|
10115
|
-
if (value >
|
|
9975
|
+
if (value > max)
|
|
10116
9976
|
value = min;
|
|
10117
9977
|
} else {
|
|
10118
9978
|
value += amount;
|
|
10119
9979
|
if (value < min)
|
|
10120
|
-
value =
|
|
10121
|
-
else if (value >
|
|
10122
|
-
value = min + (value -
|
|
9980
|
+
value = max - (min - value - 1);
|
|
9981
|
+
else if (value > max)
|
|
9982
|
+
value = min + (value - max - 1);
|
|
10123
9983
|
}
|
|
10124
9984
|
return value;
|
|
10125
9985
|
}
|
|
@@ -10149,11 +10009,11 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
10149
10009
|
switch (field) {
|
|
10150
10010
|
case "hour": {
|
|
10151
10011
|
let min = 0;
|
|
10152
|
-
let
|
|
10012
|
+
let max = 23;
|
|
10153
10013
|
if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
|
|
10154
10014
|
let isPM = dateTime.hour >= 12;
|
|
10155
10015
|
min = isPM ? 12 : 0;
|
|
10156
|
-
|
|
10016
|
+
max = isPM ? 23 : 11;
|
|
10157
10017
|
}
|
|
10158
10018
|
let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
|
|
10159
10019
|
let minDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
|
|
@@ -10164,7 +10024,7 @@ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, opti
|
|
|
10164
10024
|
$11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "later")
|
|
10165
10025
|
].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === minDate.day)[0];
|
|
10166
10026
|
let maxDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
|
|
10167
|
-
hour:
|
|
10027
|
+
hour: max
|
|
10168
10028
|
}), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
10169
10029
|
let maxAbsolute = [
|
|
10170
10030
|
$11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "earlier"),
|
|
@@ -10212,10 +10072,10 @@ function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
|
|
|
10212
10072
|
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;
|
|
10213
10073
|
return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
|
|
10214
10074
|
}
|
|
10215
|
-
function $fae977aafc393c5c$var$parseNumber(value, min,
|
|
10075
|
+
function $fae977aafc393c5c$var$parseNumber(value, min, max) {
|
|
10216
10076
|
let val = Number(value);
|
|
10217
|
-
if (val < min || val >
|
|
10218
|
-
throw new RangeError(`Value out of range: ${min} <= ${val} <= ${
|
|
10077
|
+
if (val < min || val > max)
|
|
10078
|
+
throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
|
|
10219
10079
|
return val;
|
|
10220
10080
|
}
|
|
10221
10081
|
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
@@ -10468,7 +10328,7 @@ const [Provider, useHistory] = createContext("History", {
|
|
|
10468
10328
|
throw new Error("You must use the `HistoryProvider` to access the `goBack` function.");
|
|
10469
10329
|
}
|
|
10470
10330
|
});
|
|
10471
|
-
React__namespace.forwardRef(({ disabled },
|
|
10331
|
+
React__namespace.forwardRef(({ disabled }, ref) => {
|
|
10472
10332
|
const { formatMessage } = reactIntl.useIntl();
|
|
10473
10333
|
const canGoBack = useHistory("BackButton", (state) => state.canGoBack);
|
|
10474
10334
|
const goBack = useHistory("BackButton", (state) => state.goBack);
|
|
@@ -10480,7 +10340,7 @@ React__namespace.forwardRef(({ disabled }, ref2) => {
|
|
|
10480
10340
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10481
10341
|
designSystem.Link,
|
|
10482
10342
|
{
|
|
10483
|
-
ref
|
|
10343
|
+
ref,
|
|
10484
10344
|
tag: reactRouterDom.NavLink,
|
|
10485
10345
|
to: history.at(-1) ?? "",
|
|
10486
10346
|
onClick: handleClick,
|
|
@@ -10552,7 +10412,7 @@ const GridLayout = ({ size, children }) => {
|
|
|
10552
10412
|
return /* @__PURE__ */ jsxRuntime.jsx(StyledGrid, { $size: size, children });
|
|
10553
10413
|
};
|
|
10554
10414
|
const BaseHeaderLayout = React__namespace.forwardRef(
|
|
10555
|
-
({ navigationAction, primaryAction, secondaryAction, subtitle, title, sticky, width, ...props },
|
|
10415
|
+
({ navigationAction, primaryAction, secondaryAction, subtitle, title, sticky, width, ...props }, ref) => {
|
|
10556
10416
|
const isSubtitleString = typeof subtitle === "string";
|
|
10557
10417
|
if (sticky) {
|
|
10558
10418
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10587,7 +10447,7 @@ const BaseHeaderLayout = React__namespace.forwardRef(
|
|
|
10587
10447
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10588
10448
|
designSystem.Box,
|
|
10589
10449
|
{
|
|
10590
|
-
ref
|
|
10450
|
+
ref,
|
|
10591
10451
|
paddingLeft: 10,
|
|
10592
10452
|
paddingRight: 10,
|
|
10593
10453
|
paddingBottom: 8,
|
|
@@ -10729,7 +10589,7 @@ const [FormProvider, useForm] = createContext("Form", {
|
|
|
10729
10589
|
values: {}
|
|
10730
10590
|
});
|
|
10731
10591
|
React__namespace.forwardRef(
|
|
10732
|
-
({ disabled = false, method, onSubmit, initialErrors, ...props },
|
|
10592
|
+
({ disabled = false, method, onSubmit, initialErrors, ...props }, ref) => {
|
|
10733
10593
|
const formRef = React__namespace.useRef(null);
|
|
10734
10594
|
const initialValues = React__namespace.useRef(props.initialValues ?? {});
|
|
10735
10595
|
const [state, dispatch] = React__namespace.useReducer(reducer, {
|
|
@@ -10761,7 +10621,7 @@ React__namespace.forwardRef(
|
|
|
10761
10621
|
React__namespace.useEffect(() => {
|
|
10762
10622
|
if (Object.keys(state.errors).length === 0)
|
|
10763
10623
|
return;
|
|
10764
|
-
const
|
|
10624
|
+
const ref2 = setTimeout(() => {
|
|
10765
10625
|
const [firstError] = formRef.current.querySelectorAll("[data-strapi-field-error]");
|
|
10766
10626
|
if (firstError) {
|
|
10767
10627
|
const errorId = firstError.getAttribute("id");
|
|
@@ -10773,7 +10633,7 @@ React__namespace.forwardRef(
|
|
|
10773
10633
|
}
|
|
10774
10634
|
}
|
|
10775
10635
|
});
|
|
10776
|
-
return () => clearTimeout(
|
|
10636
|
+
return () => clearTimeout(ref2);
|
|
10777
10637
|
}, [state.errors]);
|
|
10778
10638
|
const validate = React__namespace.useCallback(
|
|
10779
10639
|
async (shouldSetErrors = true, options = {}) => {
|
|
@@ -10859,7 +10719,7 @@ React__namespace.forwardRef(
|
|
|
10859
10719
|
return;
|
|
10860
10720
|
}
|
|
10861
10721
|
const target = eventOrPath.target || eventOrPath.currentTarget;
|
|
10862
|
-
const { type
|
|
10722
|
+
const { type, name, id, value, options, multiple } = target;
|
|
10863
10723
|
const field = name || id;
|
|
10864
10724
|
if (!field && process.env.NODE_ENV !== "production") {
|
|
10865
10725
|
console.warn(
|
|
@@ -10867,10 +10727,10 @@ React__namespace.forwardRef(
|
|
|
10867
10727
|
);
|
|
10868
10728
|
}
|
|
10869
10729
|
let val;
|
|
10870
|
-
if (/number|range/.test(
|
|
10730
|
+
if (/number|range/.test(type)) {
|
|
10871
10731
|
const parsed = parseFloat(value);
|
|
10872
10732
|
val = isNaN(parsed) ? "" : parsed;
|
|
10873
|
-
} else if (/checkbox/.test(
|
|
10733
|
+
} else if (/checkbox/.test(type)) {
|
|
10874
10734
|
val = !getIn(state.values, field);
|
|
10875
10735
|
} else if (options && multiple) {
|
|
10876
10736
|
val = Array.from(options).filter((el) => el.selected).map((el) => el.value);
|
|
@@ -10942,7 +10802,7 @@ React__namespace.forwardRef(
|
|
|
10942
10802
|
const setSubmitting = React__namespace.useCallback((isSubmitting) => {
|
|
10943
10803
|
dispatch({ type: "SET_ISSUBMITTING", payload: isSubmitting });
|
|
10944
10804
|
}, []);
|
|
10945
|
-
const composedRefs = designSystem.useComposedRefs(formRef,
|
|
10805
|
+
const composedRefs = designSystem.useComposedRefs(formRef, ref);
|
|
10946
10806
|
return /* @__PURE__ */ jsxRuntime.jsx("form", { ref: composedRefs, method, noValidate: true, onSubmit: handleSubmit, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10947
10807
|
FormProvider,
|
|
10948
10808
|
{
|
|
@@ -11016,7 +10876,8 @@ const reducer = (state, action) => createNextState2.produce(state, (draft) => {
|
|
|
11016
10876
|
}
|
|
11017
10877
|
const [key] = generateNKeysBetween(
|
|
11018
10878
|
currentField.at(position - 1)?.__temp_key__,
|
|
11019
|
-
currentField.at(position)?.__temp_key__
|
|
10879
|
+
currentField.at(position)?.__temp_key__,
|
|
10880
|
+
1
|
|
11020
10881
|
);
|
|
11021
10882
|
draft.values = setIn(
|
|
11022
10883
|
state.values,
|
|
@@ -11031,7 +10892,7 @@ const reducer = (state, action) => createNextState2.produce(state, (draft) => {
|
|
|
11031
10892
|
const currentRow = currentField[fromIndex];
|
|
11032
10893
|
const startKey = fromIndex > toIndex ? currentField[toIndex - 1]?.__temp_key__ : currentField[toIndex]?.__temp_key__;
|
|
11033
10894
|
const endKey = fromIndex > toIndex ? currentField[toIndex]?.__temp_key__ : currentField[toIndex + 1]?.__temp_key__;
|
|
11034
|
-
const [newKey] = generateNKeysBetween(startKey, endKey);
|
|
10895
|
+
const [newKey] = generateNKeysBetween(startKey, endKey, 1);
|
|
11035
10896
|
currentField.splice(fromIndex, 1);
|
|
11036
10897
|
currentField.splice(toIndex, 0, { ...currentRow, __temp_key__: newKey });
|
|
11037
10898
|
draft.values = setIn(state.values, field, currentField);
|
|
@@ -11126,11 +10987,11 @@ const useFocusInputField = (name) => {
|
|
|
11126
10987
|
return setField;
|
|
11127
10988
|
};
|
|
11128
10989
|
const BooleanInput = React.forwardRef(
|
|
11129
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
10990
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11130
10991
|
const { formatMessage } = reactIntl.useIntl();
|
|
11131
10992
|
const field = useField(name);
|
|
11132
10993
|
const fieldRef = useFocusInputField(name);
|
|
11133
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
10994
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11134
10995
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, maxWidth: "320px", children: [
|
|
11135
10996
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11136
10997
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11157,10 +11018,10 @@ const BooleanInput = React.forwardRef(
|
|
|
11157
11018
|
);
|
|
11158
11019
|
const MemoizedBooleanInput = React.memo(BooleanInput);
|
|
11159
11020
|
const CheckboxInput = React.forwardRef(
|
|
11160
|
-
({ name, required, label, hint, type: _type, ...props },
|
|
11021
|
+
({ name, required, label, hint, type: _type, ...props }, ref) => {
|
|
11161
11022
|
const field = useField(name);
|
|
11162
11023
|
const fieldRef = useFocusInputField(name);
|
|
11163
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11024
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11164
11025
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11165
11026
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11166
11027
|
designSystem.Checkbox,
|
|
@@ -11179,11 +11040,11 @@ const CheckboxInput = React.forwardRef(
|
|
|
11179
11040
|
);
|
|
11180
11041
|
const MemoizedCheckboxInput = React.memo(CheckboxInput);
|
|
11181
11042
|
const DateInput = React.forwardRef(
|
|
11182
|
-
({ name, required, label, hint, labelAction, type: _type, ...props },
|
|
11043
|
+
({ name, required, label, hint, labelAction, type: _type, ...props }, ref) => {
|
|
11183
11044
|
const { formatMessage } = reactIntl.useIntl();
|
|
11184
11045
|
const field = useField(name);
|
|
11185
11046
|
const fieldRef = useFocusInputField(name);
|
|
11186
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11047
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11187
11048
|
const value = typeof field.value === "string" ? new Date(field.value) : field.value;
|
|
11188
11049
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11189
11050
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
@@ -11213,11 +11074,11 @@ const convertLocalDateToUTCDate = (date) => {
|
|
|
11213
11074
|
};
|
|
11214
11075
|
const MemoizedDateInput = React.memo(DateInput);
|
|
11215
11076
|
const DateTimeInput = React.forwardRef(
|
|
11216
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11077
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11217
11078
|
const { formatMessage } = reactIntl.useIntl();
|
|
11218
11079
|
const field = useField(name);
|
|
11219
11080
|
const fieldRef = useFocusInputField(name);
|
|
11220
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11081
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11221
11082
|
const value = typeof field.value === "string" ? new Date(field.value) : field.value;
|
|
11222
11083
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11223
11084
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
@@ -11241,10 +11102,10 @@ const DateTimeInput = React.forwardRef(
|
|
|
11241
11102
|
);
|
|
11242
11103
|
const MemoizedDateTimeInput = React.memo(DateTimeInput);
|
|
11243
11104
|
const EmailInput = React.forwardRef(
|
|
11244
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11105
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11245
11106
|
const field = useField(name);
|
|
11246
11107
|
const fieldRef = useFocusInputField(name);
|
|
11247
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11108
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11248
11109
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11249
11110
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11250
11111
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11265,10 +11126,10 @@ const EmailInput = React.forwardRef(
|
|
|
11265
11126
|
);
|
|
11266
11127
|
const MemoizedEmailInput = React.memo(EmailInput);
|
|
11267
11128
|
const EnumerationInput = React.forwardRef(
|
|
11268
|
-
({ name, required, label, hint, labelAction, options = [], ...props },
|
|
11129
|
+
({ name, required, label, hint, labelAction, options = [], ...props }, ref) => {
|
|
11269
11130
|
const field = useField(name);
|
|
11270
11131
|
const fieldRef = useFocusInputField(name);
|
|
11271
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11132
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11272
11133
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11273
11134
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11274
11135
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11292,10 +11153,10 @@ const EnumerationInput = React.forwardRef(
|
|
|
11292
11153
|
);
|
|
11293
11154
|
const MemoizedEnumerationInput = React.memo(EnumerationInput);
|
|
11294
11155
|
const JsonInput = React__namespace.forwardRef(
|
|
11295
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11156
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11296
11157
|
const field = useField(name);
|
|
11297
11158
|
const fieldRef = useFocusInputField(name);
|
|
11298
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11159
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11299
11160
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11300
11161
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11301
11162
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11319,10 +11180,10 @@ const JsonInput = React__namespace.forwardRef(
|
|
|
11319
11180
|
);
|
|
11320
11181
|
const MemoizedJsonInput = React__namespace.memo(JsonInput);
|
|
11321
11182
|
const NumberInputImpl = React.forwardRef(
|
|
11322
|
-
({ name, required, label, hint, labelAction, type
|
|
11183
|
+
({ name, required, label, hint, labelAction, type, ...props }, ref) => {
|
|
11323
11184
|
const field = useField(name);
|
|
11324
11185
|
const fieldRef = useFocusInputField(name);
|
|
11325
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11186
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11326
11187
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11327
11188
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11328
11189
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11332,7 +11193,7 @@ const NumberInputImpl = React.forwardRef(
|
|
|
11332
11193
|
onValueChange: (value) => {
|
|
11333
11194
|
field.onChange(name, value);
|
|
11334
11195
|
},
|
|
11335
|
-
step:
|
|
11196
|
+
step: type === "float" || type == "decimal" ? 0.01 : 1,
|
|
11336
11197
|
value: field.value,
|
|
11337
11198
|
...props
|
|
11338
11199
|
}
|
|
@@ -11344,12 +11205,12 @@ const NumberInputImpl = React.forwardRef(
|
|
|
11344
11205
|
);
|
|
11345
11206
|
const MemoizedNumberInput = React.memo(NumberInputImpl);
|
|
11346
11207
|
const PasswordInput = React.forwardRef(
|
|
11347
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11208
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11348
11209
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
11349
11210
|
const { formatMessage } = reactIntl.useIntl();
|
|
11350
11211
|
const field = useField(name);
|
|
11351
11212
|
const fieldRef = useFocusInputField(name);
|
|
11352
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11213
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11353
11214
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11354
11215
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11355
11216
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11383,10 +11244,10 @@ const PasswordInput = React.forwardRef(
|
|
|
11383
11244
|
);
|
|
11384
11245
|
const MemoizedPasswordInput = React.memo(PasswordInput);
|
|
11385
11246
|
const StringInput = React.forwardRef(
|
|
11386
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11247
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11387
11248
|
const field = useField(name);
|
|
11388
11249
|
const fieldRef = useFocusInputField(name);
|
|
11389
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11250
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11390
11251
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11391
11252
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11392
11253
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11405,10 +11266,10 @@ const StringInput = React.forwardRef(
|
|
|
11405
11266
|
);
|
|
11406
11267
|
const MemoizedStringInput = React.memo(StringInput);
|
|
11407
11268
|
const TextareaInput = React.forwardRef(
|
|
11408
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11269
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11409
11270
|
const field = useField(name);
|
|
11410
11271
|
const fieldRef = useFocusInputField(name);
|
|
11411
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11272
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11412
11273
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11413
11274
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11414
11275
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11427,11 +11288,11 @@ const TextareaInput = React.forwardRef(
|
|
|
11427
11288
|
);
|
|
11428
11289
|
const MemoizedTextareaInput = React.memo(TextareaInput);
|
|
11429
11290
|
const TimeInput = React.forwardRef(
|
|
11430
|
-
({ name, required, label, hint, labelAction, ...props },
|
|
11291
|
+
({ name, required, label, hint, labelAction, ...props }, ref) => {
|
|
11431
11292
|
const { formatMessage } = reactIntl.useIntl();
|
|
11432
11293
|
const field = useField(name);
|
|
11433
11294
|
const fieldRef = useFocusInputField(name);
|
|
11434
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11295
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11435
11296
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: field.error, name, hint, required, children: [
|
|
11436
11297
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11437
11298
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11491,10 +11352,10 @@ const InputRenderer = React.memo(
|
|
|
11491
11352
|
})
|
|
11492
11353
|
);
|
|
11493
11354
|
const NotSupportedField = React.forwardRef(
|
|
11494
|
-
({ label, hint, name, required, type
|
|
11355
|
+
({ label, hint, name, required, type, labelAction }, ref) => {
|
|
11495
11356
|
const { error } = useField(name);
|
|
11496
11357
|
const fieldRef = useFocusInputField(name);
|
|
11497
|
-
const composedRefs = designSystem.useComposedRefs(
|
|
11358
|
+
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
11498
11359
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error, name, hint, required, children: [
|
|
11499
11360
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
|
|
11500
11361
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11502,7 +11363,7 @@ const NotSupportedField = React.forwardRef(
|
|
|
11502
11363
|
{
|
|
11503
11364
|
ref: composedRefs,
|
|
11504
11365
|
disabled: true,
|
|
11505
|
-
placeholder: `Unsupported field type: ${
|
|
11366
|
+
placeholder: `Unsupported field type: ${type}`,
|
|
11506
11367
|
required,
|
|
11507
11368
|
type: "text",
|
|
11508
11369
|
value: ""
|
|
@@ -11763,11 +11624,11 @@ React__namespace.memo(
|
|
|
11763
11624
|
(prev, next) => isEqual__default.default(prev.props, next.props)
|
|
11764
11625
|
);
|
|
11765
11626
|
const useShallowCompareMemoize = (value) => {
|
|
11766
|
-
const
|
|
11767
|
-
if (!isEqual__default.default(value,
|
|
11768
|
-
|
|
11627
|
+
const ref = React__namespace.useRef(void 0);
|
|
11628
|
+
if (!isEqual__default.default(value, ref.current)) {
|
|
11629
|
+
ref.current = value;
|
|
11769
11630
|
}
|
|
11770
|
-
return [
|
|
11631
|
+
return [ref.current];
|
|
11771
11632
|
};
|
|
11772
11633
|
const useShallowCompareEffect = (callback, dependencies) => {
|
|
11773
11634
|
React__namespace.useEffect(callback, useShallowCompareMemoize(dependencies));
|
|
@@ -12005,4 +11866,4 @@ adminApi.enhanceEndpoints({
|
|
|
12005
11866
|
});
|
|
12006
11867
|
exports.Layouts = Layouts;
|
|
12007
11868
|
exports.useTracking = useTracking;
|
|
12008
|
-
//# sourceMappingURL=index-
|
|
11869
|
+
//# sourceMappingURL=index-QPUYgtlo-QiBdpWEj.js.map
|