arengibook 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +226 -2751
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { useContext, useEffect, useState, useRef } from 'react';
|
|
3
|
+
import ReactDOM from 'react-dom';
|
|
4
|
+
|
|
1
5
|
function _extends$d() {
|
|
2
6
|
return _extends$d = Object.assign ? Object.assign.bind() : function (n) {
|
|
3
7
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -32,1833 +36,6 @@ function getDefaultExportFromCjs (x) {
|
|
|
32
36
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
var react = {exports: {}};
|
|
36
|
-
|
|
37
|
-
var react_production = {};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @license React
|
|
41
|
-
* react.production.js
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
var hasRequiredReact_production;
|
|
50
|
-
|
|
51
|
-
function requireReact_production () {
|
|
52
|
-
if (hasRequiredReact_production) return react_production;
|
|
53
|
-
hasRequiredReact_production = 1;
|
|
54
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
55
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
56
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
57
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
58
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
59
|
-
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
60
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
61
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
62
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
63
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
64
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
65
|
-
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
66
|
-
function getIteratorFn(maybeIterable) {
|
|
67
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
68
|
-
maybeIterable =
|
|
69
|
-
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
70
|
-
maybeIterable["@@iterator"];
|
|
71
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
72
|
-
}
|
|
73
|
-
var ReactNoopUpdateQueue = {
|
|
74
|
-
isMounted: function () {
|
|
75
|
-
return false;
|
|
76
|
-
},
|
|
77
|
-
enqueueForceUpdate: function () {},
|
|
78
|
-
enqueueReplaceState: function () {},
|
|
79
|
-
enqueueSetState: function () {}
|
|
80
|
-
},
|
|
81
|
-
assign = Object.assign,
|
|
82
|
-
emptyObject = {};
|
|
83
|
-
function Component(props, context, updater) {
|
|
84
|
-
this.props = props;
|
|
85
|
-
this.context = context;
|
|
86
|
-
this.refs = emptyObject;
|
|
87
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
88
|
-
}
|
|
89
|
-
Component.prototype.isReactComponent = {};
|
|
90
|
-
Component.prototype.setState = function (partialState, callback) {
|
|
91
|
-
if (
|
|
92
|
-
"object" !== typeof partialState &&
|
|
93
|
-
"function" !== typeof partialState &&
|
|
94
|
-
null != partialState
|
|
95
|
-
)
|
|
96
|
-
throw Error(
|
|
97
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
98
|
-
);
|
|
99
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
100
|
-
};
|
|
101
|
-
Component.prototype.forceUpdate = function (callback) {
|
|
102
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
103
|
-
};
|
|
104
|
-
function ComponentDummy() {}
|
|
105
|
-
ComponentDummy.prototype = Component.prototype;
|
|
106
|
-
function PureComponent(props, context, updater) {
|
|
107
|
-
this.props = props;
|
|
108
|
-
this.context = context;
|
|
109
|
-
this.refs = emptyObject;
|
|
110
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
111
|
-
}
|
|
112
|
-
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
|
113
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
114
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
115
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
116
|
-
var isArrayImpl = Array.isArray,
|
|
117
|
-
ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null },
|
|
118
|
-
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
119
|
-
function ReactElement(type, key, self, source, owner, props) {
|
|
120
|
-
self = props.ref;
|
|
121
|
-
return {
|
|
122
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
123
|
-
type: type,
|
|
124
|
-
key: key,
|
|
125
|
-
ref: void 0 !== self ? self : null,
|
|
126
|
-
props: props
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
130
|
-
return ReactElement(
|
|
131
|
-
oldElement.type,
|
|
132
|
-
newKey,
|
|
133
|
-
void 0,
|
|
134
|
-
void 0,
|
|
135
|
-
void 0,
|
|
136
|
-
oldElement.props
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
function isValidElement(object) {
|
|
140
|
-
return (
|
|
141
|
-
"object" === typeof object &&
|
|
142
|
-
null !== object &&
|
|
143
|
-
object.$$typeof === REACT_ELEMENT_TYPE
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
function escape(key) {
|
|
147
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
148
|
-
return (
|
|
149
|
-
"$" +
|
|
150
|
-
key.replace(/[=:]/g, function (match) {
|
|
151
|
-
return escaperLookup[match];
|
|
152
|
-
})
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
156
|
-
function getElementKey(element, index) {
|
|
157
|
-
return "object" === typeof element && null !== element && null != element.key
|
|
158
|
-
? escape("" + element.key)
|
|
159
|
-
: index.toString(36);
|
|
160
|
-
}
|
|
161
|
-
function noop$1() {}
|
|
162
|
-
function resolveThenable(thenable) {
|
|
163
|
-
switch (thenable.status) {
|
|
164
|
-
case "fulfilled":
|
|
165
|
-
return thenable.value;
|
|
166
|
-
case "rejected":
|
|
167
|
-
throw thenable.reason;
|
|
168
|
-
default:
|
|
169
|
-
switch (
|
|
170
|
-
("string" === typeof thenable.status
|
|
171
|
-
? thenable.then(noop$1, noop$1)
|
|
172
|
-
: ((thenable.status = "pending"),
|
|
173
|
-
thenable.then(
|
|
174
|
-
function (fulfilledValue) {
|
|
175
|
-
"pending" === thenable.status &&
|
|
176
|
-
((thenable.status = "fulfilled"),
|
|
177
|
-
(thenable.value = fulfilledValue));
|
|
178
|
-
},
|
|
179
|
-
function (error) {
|
|
180
|
-
"pending" === thenable.status &&
|
|
181
|
-
((thenable.status = "rejected"), (thenable.reason = error));
|
|
182
|
-
}
|
|
183
|
-
)),
|
|
184
|
-
thenable.status)
|
|
185
|
-
) {
|
|
186
|
-
case "fulfilled":
|
|
187
|
-
return thenable.value;
|
|
188
|
-
case "rejected":
|
|
189
|
-
throw thenable.reason;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
throw thenable;
|
|
193
|
-
}
|
|
194
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
195
|
-
var type = typeof children;
|
|
196
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
197
|
-
var invokeCallback = false;
|
|
198
|
-
if (null === children) invokeCallback = true;
|
|
199
|
-
else
|
|
200
|
-
switch (type) {
|
|
201
|
-
case "bigint":
|
|
202
|
-
case "string":
|
|
203
|
-
case "number":
|
|
204
|
-
invokeCallback = true;
|
|
205
|
-
break;
|
|
206
|
-
case "object":
|
|
207
|
-
switch (children.$$typeof) {
|
|
208
|
-
case REACT_ELEMENT_TYPE:
|
|
209
|
-
case REACT_PORTAL_TYPE:
|
|
210
|
-
invokeCallback = true;
|
|
211
|
-
break;
|
|
212
|
-
case REACT_LAZY_TYPE:
|
|
213
|
-
return (
|
|
214
|
-
(invokeCallback = children._init),
|
|
215
|
-
mapIntoArray(
|
|
216
|
-
invokeCallback(children._payload),
|
|
217
|
-
array,
|
|
218
|
-
escapedPrefix,
|
|
219
|
-
nameSoFar,
|
|
220
|
-
callback
|
|
221
|
-
)
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
if (invokeCallback)
|
|
226
|
-
return (
|
|
227
|
-
(callback = callback(children)),
|
|
228
|
-
(invokeCallback =
|
|
229
|
-
"" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
|
|
230
|
-
isArrayImpl(callback)
|
|
231
|
-
? ((escapedPrefix = ""),
|
|
232
|
-
null != invokeCallback &&
|
|
233
|
-
(escapedPrefix =
|
|
234
|
-
invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
|
235
|
-
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
|
236
|
-
return c;
|
|
237
|
-
}))
|
|
238
|
-
: null != callback &&
|
|
239
|
-
(isValidElement(callback) &&
|
|
240
|
-
(callback = cloneAndReplaceKey(
|
|
241
|
-
callback,
|
|
242
|
-
escapedPrefix +
|
|
243
|
-
(null == callback.key ||
|
|
244
|
-
(children && children.key === callback.key)
|
|
245
|
-
? ""
|
|
246
|
-
: ("" + callback.key).replace(
|
|
247
|
-
userProvidedKeyEscapeRegex,
|
|
248
|
-
"$&/"
|
|
249
|
-
) + "/") +
|
|
250
|
-
invokeCallback
|
|
251
|
-
)),
|
|
252
|
-
array.push(callback)),
|
|
253
|
-
1
|
|
254
|
-
);
|
|
255
|
-
invokeCallback = 0;
|
|
256
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
257
|
-
if (isArrayImpl(children))
|
|
258
|
-
for (var i = 0; i < children.length; i++)
|
|
259
|
-
(nameSoFar = children[i]),
|
|
260
|
-
(type = nextNamePrefix + getElementKey(nameSoFar, i)),
|
|
261
|
-
(invokeCallback += mapIntoArray(
|
|
262
|
-
nameSoFar,
|
|
263
|
-
array,
|
|
264
|
-
escapedPrefix,
|
|
265
|
-
type,
|
|
266
|
-
callback
|
|
267
|
-
));
|
|
268
|
-
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
269
|
-
for (
|
|
270
|
-
children = i.call(children), i = 0;
|
|
271
|
-
!(nameSoFar = children.next()).done;
|
|
272
|
-
|
|
273
|
-
)
|
|
274
|
-
(nameSoFar = nameSoFar.value),
|
|
275
|
-
(type = nextNamePrefix + getElementKey(nameSoFar, i++)),
|
|
276
|
-
(invokeCallback += mapIntoArray(
|
|
277
|
-
nameSoFar,
|
|
278
|
-
array,
|
|
279
|
-
escapedPrefix,
|
|
280
|
-
type,
|
|
281
|
-
callback
|
|
282
|
-
));
|
|
283
|
-
else if ("object" === type) {
|
|
284
|
-
if ("function" === typeof children.then)
|
|
285
|
-
return mapIntoArray(
|
|
286
|
-
resolveThenable(children),
|
|
287
|
-
array,
|
|
288
|
-
escapedPrefix,
|
|
289
|
-
nameSoFar,
|
|
290
|
-
callback
|
|
291
|
-
);
|
|
292
|
-
array = String(children);
|
|
293
|
-
throw Error(
|
|
294
|
-
"Objects are not valid as a React child (found: " +
|
|
295
|
-
("[object Object]" === array
|
|
296
|
-
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
|
297
|
-
: array) +
|
|
298
|
-
"). If you meant to render a collection of children, use an array instead."
|
|
299
|
-
);
|
|
300
|
-
}
|
|
301
|
-
return invokeCallback;
|
|
302
|
-
}
|
|
303
|
-
function mapChildren(children, func, context) {
|
|
304
|
-
if (null == children) return children;
|
|
305
|
-
var result = [],
|
|
306
|
-
count = 0;
|
|
307
|
-
mapIntoArray(children, result, "", "", function (child) {
|
|
308
|
-
return func.call(context, child, count++);
|
|
309
|
-
});
|
|
310
|
-
return result;
|
|
311
|
-
}
|
|
312
|
-
function lazyInitializer(payload) {
|
|
313
|
-
if (-1 === payload._status) {
|
|
314
|
-
var ctor = payload._result;
|
|
315
|
-
ctor = ctor();
|
|
316
|
-
ctor.then(
|
|
317
|
-
function (moduleObject) {
|
|
318
|
-
if (0 === payload._status || -1 === payload._status)
|
|
319
|
-
(payload._status = 1), (payload._result = moduleObject);
|
|
320
|
-
},
|
|
321
|
-
function (error) {
|
|
322
|
-
if (0 === payload._status || -1 === payload._status)
|
|
323
|
-
(payload._status = 2), (payload._result = error);
|
|
324
|
-
}
|
|
325
|
-
);
|
|
326
|
-
-1 === payload._status && ((payload._status = 0), (payload._result = ctor));
|
|
327
|
-
}
|
|
328
|
-
if (1 === payload._status) return payload._result.default;
|
|
329
|
-
throw payload._result;
|
|
330
|
-
}
|
|
331
|
-
var reportGlobalError =
|
|
332
|
-
"function" === typeof reportError
|
|
333
|
-
? reportError
|
|
334
|
-
: function (error) {
|
|
335
|
-
if (
|
|
336
|
-
"object" === typeof window &&
|
|
337
|
-
"function" === typeof window.ErrorEvent
|
|
338
|
-
) {
|
|
339
|
-
var event = new window.ErrorEvent("error", {
|
|
340
|
-
bubbles: true,
|
|
341
|
-
cancelable: true,
|
|
342
|
-
message:
|
|
343
|
-
"object" === typeof error &&
|
|
344
|
-
null !== error &&
|
|
345
|
-
"string" === typeof error.message
|
|
346
|
-
? String(error.message)
|
|
347
|
-
: String(error),
|
|
348
|
-
error: error
|
|
349
|
-
});
|
|
350
|
-
if (!window.dispatchEvent(event)) return;
|
|
351
|
-
} else if (
|
|
352
|
-
"object" === typeof process &&
|
|
353
|
-
"function" === typeof process.emit
|
|
354
|
-
) {
|
|
355
|
-
process.emit("uncaughtException", error);
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
|
-
console.error(error);
|
|
359
|
-
};
|
|
360
|
-
function noop() {}
|
|
361
|
-
react_production.Children = {
|
|
362
|
-
map: mapChildren,
|
|
363
|
-
forEach: function (children, forEachFunc, forEachContext) {
|
|
364
|
-
mapChildren(
|
|
365
|
-
children,
|
|
366
|
-
function () {
|
|
367
|
-
forEachFunc.apply(this, arguments);
|
|
368
|
-
},
|
|
369
|
-
forEachContext
|
|
370
|
-
);
|
|
371
|
-
},
|
|
372
|
-
count: function (children) {
|
|
373
|
-
var n = 0;
|
|
374
|
-
mapChildren(children, function () {
|
|
375
|
-
n++;
|
|
376
|
-
});
|
|
377
|
-
return n;
|
|
378
|
-
},
|
|
379
|
-
toArray: function (children) {
|
|
380
|
-
return (
|
|
381
|
-
mapChildren(children, function (child) {
|
|
382
|
-
return child;
|
|
383
|
-
}) || []
|
|
384
|
-
);
|
|
385
|
-
},
|
|
386
|
-
only: function (children) {
|
|
387
|
-
if (!isValidElement(children))
|
|
388
|
-
throw Error(
|
|
389
|
-
"React.Children.only expected to receive a single React element child."
|
|
390
|
-
);
|
|
391
|
-
return children;
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
react_production.Component = Component;
|
|
395
|
-
react_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
396
|
-
react_production.Profiler = REACT_PROFILER_TYPE;
|
|
397
|
-
react_production.PureComponent = PureComponent;
|
|
398
|
-
react_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
399
|
-
react_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
400
|
-
react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
401
|
-
ReactSharedInternals;
|
|
402
|
-
react_production.__COMPILER_RUNTIME = {
|
|
403
|
-
__proto__: null,
|
|
404
|
-
c: function (size) {
|
|
405
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
react_production.cache = function (fn) {
|
|
409
|
-
return function () {
|
|
410
|
-
return fn.apply(null, arguments);
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
react_production.cloneElement = function (element, config, children) {
|
|
414
|
-
if (null === element || void 0 === element)
|
|
415
|
-
throw Error(
|
|
416
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
417
|
-
);
|
|
418
|
-
var props = assign({}, element.props),
|
|
419
|
-
key = element.key,
|
|
420
|
-
owner = void 0;
|
|
421
|
-
if (null != config)
|
|
422
|
-
for (propName in (void 0 !== config.ref && (owner = void 0),
|
|
423
|
-
void 0 !== config.key && (key = "" + config.key),
|
|
424
|
-
config))
|
|
425
|
-
!hasOwnProperty.call(config, propName) ||
|
|
426
|
-
"key" === propName ||
|
|
427
|
-
"__self" === propName ||
|
|
428
|
-
"__source" === propName ||
|
|
429
|
-
("ref" === propName && void 0 === config.ref) ||
|
|
430
|
-
(props[propName] = config[propName]);
|
|
431
|
-
var propName = arguments.length - 2;
|
|
432
|
-
if (1 === propName) props.children = children;
|
|
433
|
-
else if (1 < propName) {
|
|
434
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
435
|
-
childArray[i] = arguments[i + 2];
|
|
436
|
-
props.children = childArray;
|
|
437
|
-
}
|
|
438
|
-
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
439
|
-
};
|
|
440
|
-
react_production.createContext = function (defaultValue) {
|
|
441
|
-
defaultValue = {
|
|
442
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
443
|
-
_currentValue: defaultValue,
|
|
444
|
-
_currentValue2: defaultValue,
|
|
445
|
-
_threadCount: 0,
|
|
446
|
-
Provider: null,
|
|
447
|
-
Consumer: null
|
|
448
|
-
};
|
|
449
|
-
defaultValue.Provider = defaultValue;
|
|
450
|
-
defaultValue.Consumer = {
|
|
451
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
452
|
-
_context: defaultValue
|
|
453
|
-
};
|
|
454
|
-
return defaultValue;
|
|
455
|
-
};
|
|
456
|
-
react_production.createElement = function (type, config, children) {
|
|
457
|
-
var propName,
|
|
458
|
-
props = {},
|
|
459
|
-
key = null;
|
|
460
|
-
if (null != config)
|
|
461
|
-
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
|
462
|
-
hasOwnProperty.call(config, propName) &&
|
|
463
|
-
"key" !== propName &&
|
|
464
|
-
"__self" !== propName &&
|
|
465
|
-
"__source" !== propName &&
|
|
466
|
-
(props[propName] = config[propName]);
|
|
467
|
-
var childrenLength = arguments.length - 2;
|
|
468
|
-
if (1 === childrenLength) props.children = children;
|
|
469
|
-
else if (1 < childrenLength) {
|
|
470
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
471
|
-
childArray[i] = arguments[i + 2];
|
|
472
|
-
props.children = childArray;
|
|
473
|
-
}
|
|
474
|
-
if (type && type.defaultProps)
|
|
475
|
-
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
476
|
-
void 0 === props[propName] &&
|
|
477
|
-
(props[propName] = childrenLength[propName]);
|
|
478
|
-
return ReactElement(type, key, void 0, void 0, null, props);
|
|
479
|
-
};
|
|
480
|
-
react_production.createRef = function () {
|
|
481
|
-
return { current: null };
|
|
482
|
-
};
|
|
483
|
-
react_production.forwardRef = function (render) {
|
|
484
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
|
|
485
|
-
};
|
|
486
|
-
react_production.isValidElement = isValidElement;
|
|
487
|
-
react_production.lazy = function (ctor) {
|
|
488
|
-
return {
|
|
489
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
490
|
-
_payload: { _status: -1, _result: ctor },
|
|
491
|
-
_init: lazyInitializer
|
|
492
|
-
};
|
|
493
|
-
};
|
|
494
|
-
react_production.memo = function (type, compare) {
|
|
495
|
-
return {
|
|
496
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
497
|
-
type: type,
|
|
498
|
-
compare: void 0 === compare ? null : compare
|
|
499
|
-
};
|
|
500
|
-
};
|
|
501
|
-
react_production.startTransition = function (scope) {
|
|
502
|
-
var prevTransition = ReactSharedInternals.T,
|
|
503
|
-
currentTransition = {};
|
|
504
|
-
ReactSharedInternals.T = currentTransition;
|
|
505
|
-
try {
|
|
506
|
-
var returnValue = scope(),
|
|
507
|
-
onStartTransitionFinish = ReactSharedInternals.S;
|
|
508
|
-
null !== onStartTransitionFinish &&
|
|
509
|
-
onStartTransitionFinish(currentTransition, returnValue);
|
|
510
|
-
"object" === typeof returnValue &&
|
|
511
|
-
null !== returnValue &&
|
|
512
|
-
"function" === typeof returnValue.then &&
|
|
513
|
-
returnValue.then(noop, reportGlobalError);
|
|
514
|
-
} catch (error) {
|
|
515
|
-
reportGlobalError(error);
|
|
516
|
-
} finally {
|
|
517
|
-
ReactSharedInternals.T = prevTransition;
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
react_production.unstable_useCacheRefresh = function () {
|
|
521
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
522
|
-
};
|
|
523
|
-
react_production.use = function (usable) {
|
|
524
|
-
return ReactSharedInternals.H.use(usable);
|
|
525
|
-
};
|
|
526
|
-
react_production.useActionState = function (action, initialState, permalink) {
|
|
527
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
528
|
-
};
|
|
529
|
-
react_production.useCallback = function (callback, deps) {
|
|
530
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
531
|
-
};
|
|
532
|
-
react_production.useContext = function (Context) {
|
|
533
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
534
|
-
};
|
|
535
|
-
react_production.useDebugValue = function () {};
|
|
536
|
-
react_production.useDeferredValue = function (value, initialValue) {
|
|
537
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
538
|
-
};
|
|
539
|
-
react_production.useEffect = function (create, createDeps, update) {
|
|
540
|
-
var dispatcher = ReactSharedInternals.H;
|
|
541
|
-
if ("function" === typeof update)
|
|
542
|
-
throw Error(
|
|
543
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
544
|
-
);
|
|
545
|
-
return dispatcher.useEffect(create, createDeps);
|
|
546
|
-
};
|
|
547
|
-
react_production.useId = function () {
|
|
548
|
-
return ReactSharedInternals.H.useId();
|
|
549
|
-
};
|
|
550
|
-
react_production.useImperativeHandle = function (ref, create, deps) {
|
|
551
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
552
|
-
};
|
|
553
|
-
react_production.useInsertionEffect = function (create, deps) {
|
|
554
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
555
|
-
};
|
|
556
|
-
react_production.useLayoutEffect = function (create, deps) {
|
|
557
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
558
|
-
};
|
|
559
|
-
react_production.useMemo = function (create, deps) {
|
|
560
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
561
|
-
};
|
|
562
|
-
react_production.useOptimistic = function (passthrough, reducer) {
|
|
563
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
564
|
-
};
|
|
565
|
-
react_production.useReducer = function (reducer, initialArg, init) {
|
|
566
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
567
|
-
};
|
|
568
|
-
react_production.useRef = function (initialValue) {
|
|
569
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
570
|
-
};
|
|
571
|
-
react_production.useState = function (initialState) {
|
|
572
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
573
|
-
};
|
|
574
|
-
react_production.useSyncExternalStore = function (
|
|
575
|
-
subscribe,
|
|
576
|
-
getSnapshot,
|
|
577
|
-
getServerSnapshot
|
|
578
|
-
) {
|
|
579
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
580
|
-
subscribe,
|
|
581
|
-
getSnapshot,
|
|
582
|
-
getServerSnapshot
|
|
583
|
-
);
|
|
584
|
-
};
|
|
585
|
-
react_production.useTransition = function () {
|
|
586
|
-
return ReactSharedInternals.H.useTransition();
|
|
587
|
-
};
|
|
588
|
-
react_production.version = "19.1.0";
|
|
589
|
-
return react_production;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
var react_development = {exports: {}};
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* @license React
|
|
596
|
-
* react.development.js
|
|
597
|
-
*
|
|
598
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
599
|
-
*
|
|
600
|
-
* This source code is licensed under the MIT license found in the
|
|
601
|
-
* LICENSE file in the root directory of this source tree.
|
|
602
|
-
*/
|
|
603
|
-
react_development.exports;
|
|
604
|
-
|
|
605
|
-
var hasRequiredReact_development;
|
|
606
|
-
|
|
607
|
-
function requireReact_development () {
|
|
608
|
-
if (hasRequiredReact_development) return react_development.exports;
|
|
609
|
-
hasRequiredReact_development = 1;
|
|
610
|
-
(function (module, exports) {
|
|
611
|
-
"production" !== process.env.NODE_ENV &&
|
|
612
|
-
(function () {
|
|
613
|
-
function defineDeprecationWarning(methodName, info) {
|
|
614
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
615
|
-
get: function () {
|
|
616
|
-
console.warn(
|
|
617
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
618
|
-
info[0],
|
|
619
|
-
info[1]
|
|
620
|
-
);
|
|
621
|
-
}
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
function getIteratorFn(maybeIterable) {
|
|
625
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
626
|
-
return null;
|
|
627
|
-
maybeIterable =
|
|
628
|
-
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
629
|
-
maybeIterable["@@iterator"];
|
|
630
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
631
|
-
}
|
|
632
|
-
function warnNoop(publicInstance, callerName) {
|
|
633
|
-
publicInstance =
|
|
634
|
-
((publicInstance = publicInstance.constructor) &&
|
|
635
|
-
(publicInstance.displayName || publicInstance.name)) ||
|
|
636
|
-
"ReactClass";
|
|
637
|
-
var warningKey = publicInstance + "." + callerName;
|
|
638
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] ||
|
|
639
|
-
(console.error(
|
|
640
|
-
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
641
|
-
callerName,
|
|
642
|
-
publicInstance
|
|
643
|
-
),
|
|
644
|
-
(didWarnStateUpdateForUnmountedComponent[warningKey] = true));
|
|
645
|
-
}
|
|
646
|
-
function Component(props, context, updater) {
|
|
647
|
-
this.props = props;
|
|
648
|
-
this.context = context;
|
|
649
|
-
this.refs = emptyObject;
|
|
650
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
651
|
-
}
|
|
652
|
-
function ComponentDummy() {}
|
|
653
|
-
function PureComponent(props, context, updater) {
|
|
654
|
-
this.props = props;
|
|
655
|
-
this.context = context;
|
|
656
|
-
this.refs = emptyObject;
|
|
657
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
658
|
-
}
|
|
659
|
-
function testStringCoercion(value) {
|
|
660
|
-
return "" + value;
|
|
661
|
-
}
|
|
662
|
-
function checkKeyStringCoercion(value) {
|
|
663
|
-
try {
|
|
664
|
-
testStringCoercion(value);
|
|
665
|
-
var JSCompiler_inline_result = !1;
|
|
666
|
-
} catch (e) {
|
|
667
|
-
JSCompiler_inline_result = true;
|
|
668
|
-
}
|
|
669
|
-
if (JSCompiler_inline_result) {
|
|
670
|
-
JSCompiler_inline_result = console;
|
|
671
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
672
|
-
var JSCompiler_inline_result$jscomp$0 =
|
|
673
|
-
("function" === typeof Symbol &&
|
|
674
|
-
Symbol.toStringTag &&
|
|
675
|
-
value[Symbol.toStringTag]) ||
|
|
676
|
-
value.constructor.name ||
|
|
677
|
-
"Object";
|
|
678
|
-
JSCompiler_temp_const.call(
|
|
679
|
-
JSCompiler_inline_result,
|
|
680
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
681
|
-
JSCompiler_inline_result$jscomp$0
|
|
682
|
-
);
|
|
683
|
-
return testStringCoercion(value);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
function getComponentNameFromType(type) {
|
|
687
|
-
if (null == type) return null;
|
|
688
|
-
if ("function" === typeof type)
|
|
689
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE
|
|
690
|
-
? null
|
|
691
|
-
: type.displayName || type.name || null;
|
|
692
|
-
if ("string" === typeof type) return type;
|
|
693
|
-
switch (type) {
|
|
694
|
-
case REACT_FRAGMENT_TYPE:
|
|
695
|
-
return "Fragment";
|
|
696
|
-
case REACT_PROFILER_TYPE:
|
|
697
|
-
return "Profiler";
|
|
698
|
-
case REACT_STRICT_MODE_TYPE:
|
|
699
|
-
return "StrictMode";
|
|
700
|
-
case REACT_SUSPENSE_TYPE:
|
|
701
|
-
return "Suspense";
|
|
702
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
703
|
-
return "SuspenseList";
|
|
704
|
-
case REACT_ACTIVITY_TYPE:
|
|
705
|
-
return "Activity";
|
|
706
|
-
}
|
|
707
|
-
if ("object" === typeof type)
|
|
708
|
-
switch (
|
|
709
|
-
("number" === typeof type.tag &&
|
|
710
|
-
console.error(
|
|
711
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
712
|
-
),
|
|
713
|
-
type.$$typeof)
|
|
714
|
-
) {
|
|
715
|
-
case REACT_PORTAL_TYPE:
|
|
716
|
-
return "Portal";
|
|
717
|
-
case REACT_CONTEXT_TYPE:
|
|
718
|
-
return (type.displayName || "Context") + ".Provider";
|
|
719
|
-
case REACT_CONSUMER_TYPE:
|
|
720
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
721
|
-
case REACT_FORWARD_REF_TYPE:
|
|
722
|
-
var innerType = type.render;
|
|
723
|
-
type = type.displayName;
|
|
724
|
-
type ||
|
|
725
|
-
((type = innerType.displayName || innerType.name || ""),
|
|
726
|
-
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
727
|
-
return type;
|
|
728
|
-
case REACT_MEMO_TYPE:
|
|
729
|
-
return (
|
|
730
|
-
(innerType = type.displayName || null),
|
|
731
|
-
null !== innerType
|
|
732
|
-
? innerType
|
|
733
|
-
: getComponentNameFromType(type.type) || "Memo"
|
|
734
|
-
);
|
|
735
|
-
case REACT_LAZY_TYPE:
|
|
736
|
-
innerType = type._payload;
|
|
737
|
-
type = type._init;
|
|
738
|
-
try {
|
|
739
|
-
return getComponentNameFromType(type(innerType));
|
|
740
|
-
} catch (x) {}
|
|
741
|
-
}
|
|
742
|
-
return null;
|
|
743
|
-
}
|
|
744
|
-
function getTaskName(type) {
|
|
745
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
746
|
-
if (
|
|
747
|
-
"object" === typeof type &&
|
|
748
|
-
null !== type &&
|
|
749
|
-
type.$$typeof === REACT_LAZY_TYPE
|
|
750
|
-
)
|
|
751
|
-
return "<...>";
|
|
752
|
-
try {
|
|
753
|
-
var name = getComponentNameFromType(type);
|
|
754
|
-
return name ? "<" + name + ">" : "<...>";
|
|
755
|
-
} catch (x) {
|
|
756
|
-
return "<...>";
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
function getOwner() {
|
|
760
|
-
var dispatcher = ReactSharedInternals.A;
|
|
761
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
762
|
-
}
|
|
763
|
-
function UnknownOwner() {
|
|
764
|
-
return Error("react-stack-top-frame");
|
|
765
|
-
}
|
|
766
|
-
function hasValidKey(config) {
|
|
767
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
768
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
769
|
-
if (getter && getter.isReactWarning) return false;
|
|
770
|
-
}
|
|
771
|
-
return void 0 !== config.key;
|
|
772
|
-
}
|
|
773
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
774
|
-
function warnAboutAccessingKey() {
|
|
775
|
-
specialPropKeyWarningShown ||
|
|
776
|
-
((specialPropKeyWarningShown = true),
|
|
777
|
-
console.error(
|
|
778
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
779
|
-
displayName
|
|
780
|
-
));
|
|
781
|
-
}
|
|
782
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
783
|
-
Object.defineProperty(props, "key", {
|
|
784
|
-
get: warnAboutAccessingKey,
|
|
785
|
-
configurable: true
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
789
|
-
var componentName = getComponentNameFromType(this.type);
|
|
790
|
-
didWarnAboutElementRef[componentName] ||
|
|
791
|
-
((didWarnAboutElementRef[componentName] = true),
|
|
792
|
-
console.error(
|
|
793
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
794
|
-
));
|
|
795
|
-
componentName = this.props.ref;
|
|
796
|
-
return void 0 !== componentName ? componentName : null;
|
|
797
|
-
}
|
|
798
|
-
function ReactElement(
|
|
799
|
-
type,
|
|
800
|
-
key,
|
|
801
|
-
self,
|
|
802
|
-
source,
|
|
803
|
-
owner,
|
|
804
|
-
props,
|
|
805
|
-
debugStack,
|
|
806
|
-
debugTask
|
|
807
|
-
) {
|
|
808
|
-
self = props.ref;
|
|
809
|
-
type = {
|
|
810
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
811
|
-
type: type,
|
|
812
|
-
key: key,
|
|
813
|
-
props: props,
|
|
814
|
-
_owner: owner
|
|
815
|
-
};
|
|
816
|
-
null !== (void 0 !== self ? self : null)
|
|
817
|
-
? Object.defineProperty(type, "ref", {
|
|
818
|
-
enumerable: false,
|
|
819
|
-
get: elementRefGetterWithDeprecationWarning
|
|
820
|
-
})
|
|
821
|
-
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
822
|
-
type._store = {};
|
|
823
|
-
Object.defineProperty(type._store, "validated", {
|
|
824
|
-
configurable: false,
|
|
825
|
-
enumerable: false,
|
|
826
|
-
writable: true,
|
|
827
|
-
value: 0
|
|
828
|
-
});
|
|
829
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
830
|
-
configurable: false,
|
|
831
|
-
enumerable: false,
|
|
832
|
-
writable: true,
|
|
833
|
-
value: null
|
|
834
|
-
});
|
|
835
|
-
Object.defineProperty(type, "_debugStack", {
|
|
836
|
-
configurable: false,
|
|
837
|
-
enumerable: false,
|
|
838
|
-
writable: true,
|
|
839
|
-
value: debugStack
|
|
840
|
-
});
|
|
841
|
-
Object.defineProperty(type, "_debugTask", {
|
|
842
|
-
configurable: false,
|
|
843
|
-
enumerable: false,
|
|
844
|
-
writable: true,
|
|
845
|
-
value: debugTask
|
|
846
|
-
});
|
|
847
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
848
|
-
return type;
|
|
849
|
-
}
|
|
850
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
851
|
-
newKey = ReactElement(
|
|
852
|
-
oldElement.type,
|
|
853
|
-
newKey,
|
|
854
|
-
void 0,
|
|
855
|
-
void 0,
|
|
856
|
-
oldElement._owner,
|
|
857
|
-
oldElement.props,
|
|
858
|
-
oldElement._debugStack,
|
|
859
|
-
oldElement._debugTask
|
|
860
|
-
);
|
|
861
|
-
oldElement._store &&
|
|
862
|
-
(newKey._store.validated = oldElement._store.validated);
|
|
863
|
-
return newKey;
|
|
864
|
-
}
|
|
865
|
-
function isValidElement(object) {
|
|
866
|
-
return (
|
|
867
|
-
"object" === typeof object &&
|
|
868
|
-
null !== object &&
|
|
869
|
-
object.$$typeof === REACT_ELEMENT_TYPE
|
|
870
|
-
);
|
|
871
|
-
}
|
|
872
|
-
function escape(key) {
|
|
873
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
874
|
-
return (
|
|
875
|
-
"$" +
|
|
876
|
-
key.replace(/[=:]/g, function (match) {
|
|
877
|
-
return escaperLookup[match];
|
|
878
|
-
})
|
|
879
|
-
);
|
|
880
|
-
}
|
|
881
|
-
function getElementKey(element, index) {
|
|
882
|
-
return "object" === typeof element &&
|
|
883
|
-
null !== element &&
|
|
884
|
-
null != element.key
|
|
885
|
-
? (checkKeyStringCoercion(element.key), escape("" + element.key))
|
|
886
|
-
: index.toString(36);
|
|
887
|
-
}
|
|
888
|
-
function noop$1() {}
|
|
889
|
-
function resolveThenable(thenable) {
|
|
890
|
-
switch (thenable.status) {
|
|
891
|
-
case "fulfilled":
|
|
892
|
-
return thenable.value;
|
|
893
|
-
case "rejected":
|
|
894
|
-
throw thenable.reason;
|
|
895
|
-
default:
|
|
896
|
-
switch (
|
|
897
|
-
("string" === typeof thenable.status
|
|
898
|
-
? thenable.then(noop$1, noop$1)
|
|
899
|
-
: ((thenable.status = "pending"),
|
|
900
|
-
thenable.then(
|
|
901
|
-
function (fulfilledValue) {
|
|
902
|
-
"pending" === thenable.status &&
|
|
903
|
-
((thenable.status = "fulfilled"),
|
|
904
|
-
(thenable.value = fulfilledValue));
|
|
905
|
-
},
|
|
906
|
-
function (error) {
|
|
907
|
-
"pending" === thenable.status &&
|
|
908
|
-
((thenable.status = "rejected"),
|
|
909
|
-
(thenable.reason = error));
|
|
910
|
-
}
|
|
911
|
-
)),
|
|
912
|
-
thenable.status)
|
|
913
|
-
) {
|
|
914
|
-
case "fulfilled":
|
|
915
|
-
return thenable.value;
|
|
916
|
-
case "rejected":
|
|
917
|
-
throw thenable.reason;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
throw thenable;
|
|
921
|
-
}
|
|
922
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
923
|
-
var type = typeof children;
|
|
924
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
925
|
-
var invokeCallback = false;
|
|
926
|
-
if (null === children) invokeCallback = true;
|
|
927
|
-
else
|
|
928
|
-
switch (type) {
|
|
929
|
-
case "bigint":
|
|
930
|
-
case "string":
|
|
931
|
-
case "number":
|
|
932
|
-
invokeCallback = true;
|
|
933
|
-
break;
|
|
934
|
-
case "object":
|
|
935
|
-
switch (children.$$typeof) {
|
|
936
|
-
case REACT_ELEMENT_TYPE:
|
|
937
|
-
case REACT_PORTAL_TYPE:
|
|
938
|
-
invokeCallback = true;
|
|
939
|
-
break;
|
|
940
|
-
case REACT_LAZY_TYPE:
|
|
941
|
-
return (
|
|
942
|
-
(invokeCallback = children._init),
|
|
943
|
-
mapIntoArray(
|
|
944
|
-
invokeCallback(children._payload),
|
|
945
|
-
array,
|
|
946
|
-
escapedPrefix,
|
|
947
|
-
nameSoFar,
|
|
948
|
-
callback
|
|
949
|
-
)
|
|
950
|
-
);
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
if (invokeCallback) {
|
|
954
|
-
invokeCallback = children;
|
|
955
|
-
callback = callback(invokeCallback);
|
|
956
|
-
var childKey =
|
|
957
|
-
"" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
958
|
-
isArrayImpl(callback)
|
|
959
|
-
? ((escapedPrefix = ""),
|
|
960
|
-
null != childKey &&
|
|
961
|
-
(escapedPrefix =
|
|
962
|
-
childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
|
963
|
-
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
|
964
|
-
return c;
|
|
965
|
-
}))
|
|
966
|
-
: null != callback &&
|
|
967
|
-
(isValidElement(callback) &&
|
|
968
|
-
(null != callback.key &&
|
|
969
|
-
((invokeCallback && invokeCallback.key === callback.key) ||
|
|
970
|
-
checkKeyStringCoercion(callback.key)),
|
|
971
|
-
(escapedPrefix = cloneAndReplaceKey(
|
|
972
|
-
callback,
|
|
973
|
-
escapedPrefix +
|
|
974
|
-
(null == callback.key ||
|
|
975
|
-
(invokeCallback && invokeCallback.key === callback.key)
|
|
976
|
-
? ""
|
|
977
|
-
: ("" + callback.key).replace(
|
|
978
|
-
userProvidedKeyEscapeRegex,
|
|
979
|
-
"$&/"
|
|
980
|
-
) + "/") +
|
|
981
|
-
childKey
|
|
982
|
-
)),
|
|
983
|
-
"" !== nameSoFar &&
|
|
984
|
-
null != invokeCallback &&
|
|
985
|
-
isValidElement(invokeCallback) &&
|
|
986
|
-
null == invokeCallback.key &&
|
|
987
|
-
invokeCallback._store &&
|
|
988
|
-
!invokeCallback._store.validated &&
|
|
989
|
-
(escapedPrefix._store.validated = 2),
|
|
990
|
-
(callback = escapedPrefix)),
|
|
991
|
-
array.push(callback));
|
|
992
|
-
return 1;
|
|
993
|
-
}
|
|
994
|
-
invokeCallback = 0;
|
|
995
|
-
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
996
|
-
if (isArrayImpl(children))
|
|
997
|
-
for (var i = 0; i < children.length; i++)
|
|
998
|
-
(nameSoFar = children[i]),
|
|
999
|
-
(type = childKey + getElementKey(nameSoFar, i)),
|
|
1000
|
-
(invokeCallback += mapIntoArray(
|
|
1001
|
-
nameSoFar,
|
|
1002
|
-
array,
|
|
1003
|
-
escapedPrefix,
|
|
1004
|
-
type,
|
|
1005
|
-
callback
|
|
1006
|
-
));
|
|
1007
|
-
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
1008
|
-
for (
|
|
1009
|
-
i === children.entries &&
|
|
1010
|
-
(didWarnAboutMaps ||
|
|
1011
|
-
console.warn(
|
|
1012
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
1013
|
-
),
|
|
1014
|
-
(didWarnAboutMaps = true)),
|
|
1015
|
-
children = i.call(children),
|
|
1016
|
-
i = 0;
|
|
1017
|
-
!(nameSoFar = children.next()).done;
|
|
1018
|
-
|
|
1019
|
-
)
|
|
1020
|
-
(nameSoFar = nameSoFar.value),
|
|
1021
|
-
(type = childKey + getElementKey(nameSoFar, i++)),
|
|
1022
|
-
(invokeCallback += mapIntoArray(
|
|
1023
|
-
nameSoFar,
|
|
1024
|
-
array,
|
|
1025
|
-
escapedPrefix,
|
|
1026
|
-
type,
|
|
1027
|
-
callback
|
|
1028
|
-
));
|
|
1029
|
-
else if ("object" === type) {
|
|
1030
|
-
if ("function" === typeof children.then)
|
|
1031
|
-
return mapIntoArray(
|
|
1032
|
-
resolveThenable(children),
|
|
1033
|
-
array,
|
|
1034
|
-
escapedPrefix,
|
|
1035
|
-
nameSoFar,
|
|
1036
|
-
callback
|
|
1037
|
-
);
|
|
1038
|
-
array = String(children);
|
|
1039
|
-
throw Error(
|
|
1040
|
-
"Objects are not valid as a React child (found: " +
|
|
1041
|
-
("[object Object]" === array
|
|
1042
|
-
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
|
1043
|
-
: array) +
|
|
1044
|
-
"). If you meant to render a collection of children, use an array instead."
|
|
1045
|
-
);
|
|
1046
|
-
}
|
|
1047
|
-
return invokeCallback;
|
|
1048
|
-
}
|
|
1049
|
-
function mapChildren(children, func, context) {
|
|
1050
|
-
if (null == children) return children;
|
|
1051
|
-
var result = [],
|
|
1052
|
-
count = 0;
|
|
1053
|
-
mapIntoArray(children, result, "", "", function (child) {
|
|
1054
|
-
return func.call(context, child, count++);
|
|
1055
|
-
});
|
|
1056
|
-
return result;
|
|
1057
|
-
}
|
|
1058
|
-
function lazyInitializer(payload) {
|
|
1059
|
-
if (-1 === payload._status) {
|
|
1060
|
-
var ctor = payload._result;
|
|
1061
|
-
ctor = ctor();
|
|
1062
|
-
ctor.then(
|
|
1063
|
-
function (moduleObject) {
|
|
1064
|
-
if (0 === payload._status || -1 === payload._status)
|
|
1065
|
-
(payload._status = 1), (payload._result = moduleObject);
|
|
1066
|
-
},
|
|
1067
|
-
function (error) {
|
|
1068
|
-
if (0 === payload._status || -1 === payload._status)
|
|
1069
|
-
(payload._status = 2), (payload._result = error);
|
|
1070
|
-
}
|
|
1071
|
-
);
|
|
1072
|
-
-1 === payload._status &&
|
|
1073
|
-
((payload._status = 0), (payload._result = ctor));
|
|
1074
|
-
}
|
|
1075
|
-
if (1 === payload._status)
|
|
1076
|
-
return (
|
|
1077
|
-
(ctor = payload._result),
|
|
1078
|
-
void 0 === ctor &&
|
|
1079
|
-
console.error(
|
|
1080
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
1081
|
-
ctor
|
|
1082
|
-
),
|
|
1083
|
-
"default" in ctor ||
|
|
1084
|
-
console.error(
|
|
1085
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
1086
|
-
ctor
|
|
1087
|
-
),
|
|
1088
|
-
ctor.default
|
|
1089
|
-
);
|
|
1090
|
-
throw payload._result;
|
|
1091
|
-
}
|
|
1092
|
-
function resolveDispatcher() {
|
|
1093
|
-
var dispatcher = ReactSharedInternals.H;
|
|
1094
|
-
null === dispatcher &&
|
|
1095
|
-
console.error(
|
|
1096
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
1097
|
-
);
|
|
1098
|
-
return dispatcher;
|
|
1099
|
-
}
|
|
1100
|
-
function noop() {}
|
|
1101
|
-
function enqueueTask(task) {
|
|
1102
|
-
if (null === enqueueTaskImpl)
|
|
1103
|
-
try {
|
|
1104
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1105
|
-
enqueueTaskImpl = (module && module[requireString]).call(
|
|
1106
|
-
module,
|
|
1107
|
-
"timers"
|
|
1108
|
-
).setImmediate;
|
|
1109
|
-
} catch (_err) {
|
|
1110
|
-
enqueueTaskImpl = function (callback) {
|
|
1111
|
-
false === didWarnAboutMessageChannel &&
|
|
1112
|
-
((didWarnAboutMessageChannel = true),
|
|
1113
|
-
"undefined" === typeof MessageChannel &&
|
|
1114
|
-
console.error(
|
|
1115
|
-
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
1116
|
-
));
|
|
1117
|
-
var channel = new MessageChannel();
|
|
1118
|
-
channel.port1.onmessage = callback;
|
|
1119
|
-
channel.port2.postMessage(void 0);
|
|
1120
|
-
};
|
|
1121
|
-
}
|
|
1122
|
-
return enqueueTaskImpl(task);
|
|
1123
|
-
}
|
|
1124
|
-
function aggregateErrors(errors) {
|
|
1125
|
-
return 1 < errors.length && "function" === typeof AggregateError
|
|
1126
|
-
? new AggregateError(errors)
|
|
1127
|
-
: errors[0];
|
|
1128
|
-
}
|
|
1129
|
-
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
1130
|
-
prevActScopeDepth !== actScopeDepth - 1 &&
|
|
1131
|
-
console.error(
|
|
1132
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
1133
|
-
);
|
|
1134
|
-
actScopeDepth = prevActScopeDepth;
|
|
1135
|
-
}
|
|
1136
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
1137
|
-
var queue = ReactSharedInternals.actQueue;
|
|
1138
|
-
if (null !== queue)
|
|
1139
|
-
if (0 !== queue.length)
|
|
1140
|
-
try {
|
|
1141
|
-
flushActQueue(queue);
|
|
1142
|
-
enqueueTask(function () {
|
|
1143
|
-
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
1144
|
-
});
|
|
1145
|
-
return;
|
|
1146
|
-
} catch (error) {
|
|
1147
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
1148
|
-
}
|
|
1149
|
-
else ReactSharedInternals.actQueue = null;
|
|
1150
|
-
0 < ReactSharedInternals.thrownErrors.length
|
|
1151
|
-
? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
|
|
1152
|
-
(ReactSharedInternals.thrownErrors.length = 0),
|
|
1153
|
-
reject(queue))
|
|
1154
|
-
: resolve(returnValue);
|
|
1155
|
-
}
|
|
1156
|
-
function flushActQueue(queue) {
|
|
1157
|
-
if (!isFlushing) {
|
|
1158
|
-
isFlushing = true;
|
|
1159
|
-
var i = 0;
|
|
1160
|
-
try {
|
|
1161
|
-
for (; i < queue.length; i++) {
|
|
1162
|
-
var callback = queue[i];
|
|
1163
|
-
do {
|
|
1164
|
-
ReactSharedInternals.didUsePromise = !1;
|
|
1165
|
-
var continuation = callback(!1);
|
|
1166
|
-
if (null !== continuation) {
|
|
1167
|
-
if (ReactSharedInternals.didUsePromise) {
|
|
1168
|
-
queue[i] = callback;
|
|
1169
|
-
queue.splice(0, i);
|
|
1170
|
-
return;
|
|
1171
|
-
}
|
|
1172
|
-
callback = continuation;
|
|
1173
|
-
} else break;
|
|
1174
|
-
} while (1);
|
|
1175
|
-
}
|
|
1176
|
-
queue.length = 0;
|
|
1177
|
-
} catch (error) {
|
|
1178
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
1179
|
-
} finally {
|
|
1180
|
-
isFlushing = false;
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
1185
|
-
"function" ===
|
|
1186
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
1187
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1188
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
1189
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
1190
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
1191
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
1192
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1193
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
1194
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
1195
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
1196
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
1197
|
-
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
1198
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
1199
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
1200
|
-
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
1201
|
-
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
1202
|
-
didWarnStateUpdateForUnmountedComponent = {},
|
|
1203
|
-
ReactNoopUpdateQueue = {
|
|
1204
|
-
isMounted: function () {
|
|
1205
|
-
return false;
|
|
1206
|
-
},
|
|
1207
|
-
enqueueForceUpdate: function (publicInstance) {
|
|
1208
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
1209
|
-
},
|
|
1210
|
-
enqueueReplaceState: function (publicInstance) {
|
|
1211
|
-
warnNoop(publicInstance, "replaceState");
|
|
1212
|
-
},
|
|
1213
|
-
enqueueSetState: function (publicInstance) {
|
|
1214
|
-
warnNoop(publicInstance, "setState");
|
|
1215
|
-
}
|
|
1216
|
-
},
|
|
1217
|
-
assign = Object.assign,
|
|
1218
|
-
emptyObject = {};
|
|
1219
|
-
Object.freeze(emptyObject);
|
|
1220
|
-
Component.prototype.isReactComponent = {};
|
|
1221
|
-
Component.prototype.setState = function (partialState, callback) {
|
|
1222
|
-
if (
|
|
1223
|
-
"object" !== typeof partialState &&
|
|
1224
|
-
"function" !== typeof partialState &&
|
|
1225
|
-
null != partialState
|
|
1226
|
-
)
|
|
1227
|
-
throw Error(
|
|
1228
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1229
|
-
);
|
|
1230
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1231
|
-
};
|
|
1232
|
-
Component.prototype.forceUpdate = function (callback) {
|
|
1233
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1234
|
-
};
|
|
1235
|
-
var deprecatedAPIs = {
|
|
1236
|
-
isMounted: [
|
|
1237
|
-
"isMounted",
|
|
1238
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1239
|
-
],
|
|
1240
|
-
replaceState: [
|
|
1241
|
-
"replaceState",
|
|
1242
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1243
|
-
]
|
|
1244
|
-
},
|
|
1245
|
-
fnName;
|
|
1246
|
-
for (fnName in deprecatedAPIs)
|
|
1247
|
-
deprecatedAPIs.hasOwnProperty(fnName) &&
|
|
1248
|
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1249
|
-
ComponentDummy.prototype = Component.prototype;
|
|
1250
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1251
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
1252
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
1253
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
1254
|
-
var isArrayImpl = Array.isArray,
|
|
1255
|
-
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
1256
|
-
ReactSharedInternals = {
|
|
1257
|
-
H: null,
|
|
1258
|
-
A: null,
|
|
1259
|
-
T: null,
|
|
1260
|
-
S: null,
|
|
1261
|
-
V: null,
|
|
1262
|
-
actQueue: null,
|
|
1263
|
-
isBatchingLegacy: false,
|
|
1264
|
-
didScheduleLegacyUpdate: false,
|
|
1265
|
-
didUsePromise: false,
|
|
1266
|
-
thrownErrors: [],
|
|
1267
|
-
getCurrentStack: null,
|
|
1268
|
-
recentlyCreatedOwnerStacks: 0
|
|
1269
|
-
},
|
|
1270
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
1271
|
-
createTask = console.createTask
|
|
1272
|
-
? console.createTask
|
|
1273
|
-
: function () {
|
|
1274
|
-
return null;
|
|
1275
|
-
};
|
|
1276
|
-
deprecatedAPIs = {
|
|
1277
|
-
"react-stack-bottom-frame": function (callStackForError) {
|
|
1278
|
-
return callStackForError();
|
|
1279
|
-
}
|
|
1280
|
-
};
|
|
1281
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1282
|
-
var didWarnAboutElementRef = {};
|
|
1283
|
-
var unknownOwnerDebugStack = deprecatedAPIs[
|
|
1284
|
-
"react-stack-bottom-frame"
|
|
1285
|
-
].bind(deprecatedAPIs, UnknownOwner)();
|
|
1286
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1287
|
-
var didWarnAboutMaps = false,
|
|
1288
|
-
userProvidedKeyEscapeRegex = /\/+/g,
|
|
1289
|
-
reportGlobalError =
|
|
1290
|
-
"function" === typeof reportError
|
|
1291
|
-
? reportError
|
|
1292
|
-
: function (error) {
|
|
1293
|
-
if (
|
|
1294
|
-
"object" === typeof window &&
|
|
1295
|
-
"function" === typeof window.ErrorEvent
|
|
1296
|
-
) {
|
|
1297
|
-
var event = new window.ErrorEvent("error", {
|
|
1298
|
-
bubbles: true,
|
|
1299
|
-
cancelable: true,
|
|
1300
|
-
message:
|
|
1301
|
-
"object" === typeof error &&
|
|
1302
|
-
null !== error &&
|
|
1303
|
-
"string" === typeof error.message
|
|
1304
|
-
? String(error.message)
|
|
1305
|
-
: String(error),
|
|
1306
|
-
error: error
|
|
1307
|
-
});
|
|
1308
|
-
if (!window.dispatchEvent(event)) return;
|
|
1309
|
-
} else if (
|
|
1310
|
-
"object" === typeof process &&
|
|
1311
|
-
"function" === typeof process.emit
|
|
1312
|
-
) {
|
|
1313
|
-
process.emit("uncaughtException", error);
|
|
1314
|
-
return;
|
|
1315
|
-
}
|
|
1316
|
-
console.error(error);
|
|
1317
|
-
},
|
|
1318
|
-
didWarnAboutMessageChannel = false,
|
|
1319
|
-
enqueueTaskImpl = null,
|
|
1320
|
-
actScopeDepth = 0,
|
|
1321
|
-
didWarnNoAwaitAct = false,
|
|
1322
|
-
isFlushing = false,
|
|
1323
|
-
queueSeveralMicrotasks =
|
|
1324
|
-
"function" === typeof queueMicrotask
|
|
1325
|
-
? function (callback) {
|
|
1326
|
-
queueMicrotask(function () {
|
|
1327
|
-
return queueMicrotask(callback);
|
|
1328
|
-
});
|
|
1329
|
-
}
|
|
1330
|
-
: enqueueTask;
|
|
1331
|
-
deprecatedAPIs = Object.freeze({
|
|
1332
|
-
__proto__: null,
|
|
1333
|
-
c: function (size) {
|
|
1334
|
-
return resolveDispatcher().useMemoCache(size);
|
|
1335
|
-
}
|
|
1336
|
-
});
|
|
1337
|
-
exports.Children = {
|
|
1338
|
-
map: mapChildren,
|
|
1339
|
-
forEach: function (children, forEachFunc, forEachContext) {
|
|
1340
|
-
mapChildren(
|
|
1341
|
-
children,
|
|
1342
|
-
function () {
|
|
1343
|
-
forEachFunc.apply(this, arguments);
|
|
1344
|
-
},
|
|
1345
|
-
forEachContext
|
|
1346
|
-
);
|
|
1347
|
-
},
|
|
1348
|
-
count: function (children) {
|
|
1349
|
-
var n = 0;
|
|
1350
|
-
mapChildren(children, function () {
|
|
1351
|
-
n++;
|
|
1352
|
-
});
|
|
1353
|
-
return n;
|
|
1354
|
-
},
|
|
1355
|
-
toArray: function (children) {
|
|
1356
|
-
return (
|
|
1357
|
-
mapChildren(children, function (child) {
|
|
1358
|
-
return child;
|
|
1359
|
-
}) || []
|
|
1360
|
-
);
|
|
1361
|
-
},
|
|
1362
|
-
only: function (children) {
|
|
1363
|
-
if (!isValidElement(children))
|
|
1364
|
-
throw Error(
|
|
1365
|
-
"React.Children.only expected to receive a single React element child."
|
|
1366
|
-
);
|
|
1367
|
-
return children;
|
|
1368
|
-
}
|
|
1369
|
-
};
|
|
1370
|
-
exports.Component = Component;
|
|
1371
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1372
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1373
|
-
exports.PureComponent = PureComponent;
|
|
1374
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1375
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1376
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
1377
|
-
ReactSharedInternals;
|
|
1378
|
-
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1379
|
-
exports.act = function (callback) {
|
|
1380
|
-
var prevActQueue = ReactSharedInternals.actQueue,
|
|
1381
|
-
prevActScopeDepth = actScopeDepth;
|
|
1382
|
-
actScopeDepth++;
|
|
1383
|
-
var queue = (ReactSharedInternals.actQueue =
|
|
1384
|
-
null !== prevActQueue ? prevActQueue : []),
|
|
1385
|
-
didAwaitActCall = false;
|
|
1386
|
-
try {
|
|
1387
|
-
var result = callback();
|
|
1388
|
-
} catch (error) {
|
|
1389
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
1390
|
-
}
|
|
1391
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1392
|
-
throw (
|
|
1393
|
-
(popActScope(prevActQueue, prevActScopeDepth),
|
|
1394
|
-
(callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
|
|
1395
|
-
(ReactSharedInternals.thrownErrors.length = 0),
|
|
1396
|
-
callback)
|
|
1397
|
-
);
|
|
1398
|
-
if (
|
|
1399
|
-
null !== result &&
|
|
1400
|
-
"object" === typeof result &&
|
|
1401
|
-
"function" === typeof result.then
|
|
1402
|
-
) {
|
|
1403
|
-
var thenable = result;
|
|
1404
|
-
queueSeveralMicrotasks(function () {
|
|
1405
|
-
didAwaitActCall ||
|
|
1406
|
-
didWarnNoAwaitAct ||
|
|
1407
|
-
((didWarnNoAwaitAct = true),
|
|
1408
|
-
console.error(
|
|
1409
|
-
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1410
|
-
));
|
|
1411
|
-
});
|
|
1412
|
-
return {
|
|
1413
|
-
then: function (resolve, reject) {
|
|
1414
|
-
didAwaitActCall = true;
|
|
1415
|
-
thenable.then(
|
|
1416
|
-
function (returnValue) {
|
|
1417
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1418
|
-
if (0 === prevActScopeDepth) {
|
|
1419
|
-
try {
|
|
1420
|
-
flushActQueue(queue),
|
|
1421
|
-
enqueueTask(function () {
|
|
1422
|
-
return recursivelyFlushAsyncActWork(
|
|
1423
|
-
returnValue,
|
|
1424
|
-
resolve,
|
|
1425
|
-
reject
|
|
1426
|
-
);
|
|
1427
|
-
});
|
|
1428
|
-
} catch (error$0) {
|
|
1429
|
-
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1430
|
-
}
|
|
1431
|
-
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1432
|
-
var _thrownError = aggregateErrors(
|
|
1433
|
-
ReactSharedInternals.thrownErrors
|
|
1434
|
-
);
|
|
1435
|
-
ReactSharedInternals.thrownErrors.length = 0;
|
|
1436
|
-
reject(_thrownError);
|
|
1437
|
-
}
|
|
1438
|
-
} else resolve(returnValue);
|
|
1439
|
-
},
|
|
1440
|
-
function (error) {
|
|
1441
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1442
|
-
0 < ReactSharedInternals.thrownErrors.length
|
|
1443
|
-
? ((error = aggregateErrors(
|
|
1444
|
-
ReactSharedInternals.thrownErrors
|
|
1445
|
-
)),
|
|
1446
|
-
(ReactSharedInternals.thrownErrors.length = 0),
|
|
1447
|
-
reject(error))
|
|
1448
|
-
: reject(error);
|
|
1449
|
-
}
|
|
1450
|
-
);
|
|
1451
|
-
}
|
|
1452
|
-
};
|
|
1453
|
-
}
|
|
1454
|
-
var returnValue$jscomp$0 = result;
|
|
1455
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1456
|
-
0 === prevActScopeDepth &&
|
|
1457
|
-
(flushActQueue(queue),
|
|
1458
|
-
0 !== queue.length &&
|
|
1459
|
-
queueSeveralMicrotasks(function () {
|
|
1460
|
-
didAwaitActCall ||
|
|
1461
|
-
didWarnNoAwaitAct ||
|
|
1462
|
-
((didWarnNoAwaitAct = true),
|
|
1463
|
-
console.error(
|
|
1464
|
-
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1465
|
-
));
|
|
1466
|
-
}),
|
|
1467
|
-
(ReactSharedInternals.actQueue = null));
|
|
1468
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1469
|
-
throw (
|
|
1470
|
-
((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
|
|
1471
|
-
(ReactSharedInternals.thrownErrors.length = 0),
|
|
1472
|
-
callback)
|
|
1473
|
-
);
|
|
1474
|
-
return {
|
|
1475
|
-
then: function (resolve, reject) {
|
|
1476
|
-
didAwaitActCall = true;
|
|
1477
|
-
0 === prevActScopeDepth
|
|
1478
|
-
? ((ReactSharedInternals.actQueue = queue),
|
|
1479
|
-
enqueueTask(function () {
|
|
1480
|
-
return recursivelyFlushAsyncActWork(
|
|
1481
|
-
returnValue$jscomp$0,
|
|
1482
|
-
resolve,
|
|
1483
|
-
reject
|
|
1484
|
-
);
|
|
1485
|
-
}))
|
|
1486
|
-
: resolve(returnValue$jscomp$0);
|
|
1487
|
-
}
|
|
1488
|
-
};
|
|
1489
|
-
};
|
|
1490
|
-
exports.cache = function (fn) {
|
|
1491
|
-
return function () {
|
|
1492
|
-
return fn.apply(null, arguments);
|
|
1493
|
-
};
|
|
1494
|
-
};
|
|
1495
|
-
exports.captureOwnerStack = function () {
|
|
1496
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1497
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
1498
|
-
};
|
|
1499
|
-
exports.cloneElement = function (element, config, children) {
|
|
1500
|
-
if (null === element || void 0 === element)
|
|
1501
|
-
throw Error(
|
|
1502
|
-
"The argument must be a React element, but you passed " +
|
|
1503
|
-
element +
|
|
1504
|
-
"."
|
|
1505
|
-
);
|
|
1506
|
-
var props = assign({}, element.props),
|
|
1507
|
-
key = element.key,
|
|
1508
|
-
owner = element._owner;
|
|
1509
|
-
if (null != config) {
|
|
1510
|
-
var JSCompiler_inline_result;
|
|
1511
|
-
a: {
|
|
1512
|
-
if (
|
|
1513
|
-
hasOwnProperty.call(config, "ref") &&
|
|
1514
|
-
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1515
|
-
config,
|
|
1516
|
-
"ref"
|
|
1517
|
-
).get) &&
|
|
1518
|
-
JSCompiler_inline_result.isReactWarning
|
|
1519
|
-
) {
|
|
1520
|
-
JSCompiler_inline_result = false;
|
|
1521
|
-
break a;
|
|
1522
|
-
}
|
|
1523
|
-
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1524
|
-
}
|
|
1525
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
1526
|
-
hasValidKey(config) &&
|
|
1527
|
-
(checkKeyStringCoercion(config.key), (key = "" + config.key));
|
|
1528
|
-
for (propName in config)
|
|
1529
|
-
!hasOwnProperty.call(config, propName) ||
|
|
1530
|
-
"key" === propName ||
|
|
1531
|
-
"__self" === propName ||
|
|
1532
|
-
"__source" === propName ||
|
|
1533
|
-
("ref" === propName && void 0 === config.ref) ||
|
|
1534
|
-
(props[propName] = config[propName]);
|
|
1535
|
-
}
|
|
1536
|
-
var propName = arguments.length - 2;
|
|
1537
|
-
if (1 === propName) props.children = children;
|
|
1538
|
-
else if (1 < propName) {
|
|
1539
|
-
JSCompiler_inline_result = Array(propName);
|
|
1540
|
-
for (var i = 0; i < propName; i++)
|
|
1541
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1542
|
-
props.children = JSCompiler_inline_result;
|
|
1543
|
-
}
|
|
1544
|
-
props = ReactElement(
|
|
1545
|
-
element.type,
|
|
1546
|
-
key,
|
|
1547
|
-
void 0,
|
|
1548
|
-
void 0,
|
|
1549
|
-
owner,
|
|
1550
|
-
props,
|
|
1551
|
-
element._debugStack,
|
|
1552
|
-
element._debugTask
|
|
1553
|
-
);
|
|
1554
|
-
for (key = 2; key < arguments.length; key++)
|
|
1555
|
-
(owner = arguments[key]),
|
|
1556
|
-
isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
1557
|
-
return props;
|
|
1558
|
-
};
|
|
1559
|
-
exports.createContext = function (defaultValue) {
|
|
1560
|
-
defaultValue = {
|
|
1561
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1562
|
-
_currentValue: defaultValue,
|
|
1563
|
-
_currentValue2: defaultValue,
|
|
1564
|
-
_threadCount: 0,
|
|
1565
|
-
Provider: null,
|
|
1566
|
-
Consumer: null
|
|
1567
|
-
};
|
|
1568
|
-
defaultValue.Provider = defaultValue;
|
|
1569
|
-
defaultValue.Consumer = {
|
|
1570
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
1571
|
-
_context: defaultValue
|
|
1572
|
-
};
|
|
1573
|
-
defaultValue._currentRenderer = null;
|
|
1574
|
-
defaultValue._currentRenderer2 = null;
|
|
1575
|
-
return defaultValue;
|
|
1576
|
-
};
|
|
1577
|
-
exports.createElement = function (type, config, children) {
|
|
1578
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1579
|
-
var node = arguments[i];
|
|
1580
|
-
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
1581
|
-
}
|
|
1582
|
-
i = {};
|
|
1583
|
-
node = null;
|
|
1584
|
-
if (null != config)
|
|
1585
|
-
for (propName in (didWarnAboutOldJSXRuntime ||
|
|
1586
|
-
!("__self" in config) ||
|
|
1587
|
-
"key" in config ||
|
|
1588
|
-
((didWarnAboutOldJSXRuntime = true),
|
|
1589
|
-
console.warn(
|
|
1590
|
-
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1591
|
-
)),
|
|
1592
|
-
hasValidKey(config) &&
|
|
1593
|
-
(checkKeyStringCoercion(config.key), (node = "" + config.key)),
|
|
1594
|
-
config))
|
|
1595
|
-
hasOwnProperty.call(config, propName) &&
|
|
1596
|
-
"key" !== propName &&
|
|
1597
|
-
"__self" !== propName &&
|
|
1598
|
-
"__source" !== propName &&
|
|
1599
|
-
(i[propName] = config[propName]);
|
|
1600
|
-
var childrenLength = arguments.length - 2;
|
|
1601
|
-
if (1 === childrenLength) i.children = children;
|
|
1602
|
-
else if (1 < childrenLength) {
|
|
1603
|
-
for (
|
|
1604
|
-
var childArray = Array(childrenLength), _i = 0;
|
|
1605
|
-
_i < childrenLength;
|
|
1606
|
-
_i++
|
|
1607
|
-
)
|
|
1608
|
-
childArray[_i] = arguments[_i + 2];
|
|
1609
|
-
Object.freeze && Object.freeze(childArray);
|
|
1610
|
-
i.children = childArray;
|
|
1611
|
-
}
|
|
1612
|
-
if (type && type.defaultProps)
|
|
1613
|
-
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
1614
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1615
|
-
node &&
|
|
1616
|
-
defineKeyPropWarningGetter(
|
|
1617
|
-
i,
|
|
1618
|
-
"function" === typeof type
|
|
1619
|
-
? type.displayName || type.name || "Unknown"
|
|
1620
|
-
: type
|
|
1621
|
-
);
|
|
1622
|
-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1623
|
-
return ReactElement(
|
|
1624
|
-
type,
|
|
1625
|
-
node,
|
|
1626
|
-
void 0,
|
|
1627
|
-
void 0,
|
|
1628
|
-
getOwner(),
|
|
1629
|
-
i,
|
|
1630
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1631
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1632
|
-
);
|
|
1633
|
-
};
|
|
1634
|
-
exports.createRef = function () {
|
|
1635
|
-
var refObject = { current: null };
|
|
1636
|
-
Object.seal(refObject);
|
|
1637
|
-
return refObject;
|
|
1638
|
-
};
|
|
1639
|
-
exports.forwardRef = function (render) {
|
|
1640
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE
|
|
1641
|
-
? console.error(
|
|
1642
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1643
|
-
)
|
|
1644
|
-
: "function" !== typeof render
|
|
1645
|
-
? console.error(
|
|
1646
|
-
"forwardRef requires a render function but was given %s.",
|
|
1647
|
-
null === render ? "null" : typeof render
|
|
1648
|
-
)
|
|
1649
|
-
: 0 !== render.length &&
|
|
1650
|
-
2 !== render.length &&
|
|
1651
|
-
console.error(
|
|
1652
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1653
|
-
1 === render.length
|
|
1654
|
-
? "Did you forget to use the ref parameter?"
|
|
1655
|
-
: "Any additional parameter will be undefined."
|
|
1656
|
-
);
|
|
1657
|
-
null != render &&
|
|
1658
|
-
null != render.defaultProps &&
|
|
1659
|
-
console.error(
|
|
1660
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1661
|
-
);
|
|
1662
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
|
|
1663
|
-
ownName;
|
|
1664
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1665
|
-
enumerable: false,
|
|
1666
|
-
configurable: true,
|
|
1667
|
-
get: function () {
|
|
1668
|
-
return ownName;
|
|
1669
|
-
},
|
|
1670
|
-
set: function (name) {
|
|
1671
|
-
ownName = name;
|
|
1672
|
-
render.name ||
|
|
1673
|
-
render.displayName ||
|
|
1674
|
-
(Object.defineProperty(render, "name", { value: name }),
|
|
1675
|
-
(render.displayName = name));
|
|
1676
|
-
}
|
|
1677
|
-
});
|
|
1678
|
-
return elementType;
|
|
1679
|
-
};
|
|
1680
|
-
exports.isValidElement = isValidElement;
|
|
1681
|
-
exports.lazy = function (ctor) {
|
|
1682
|
-
return {
|
|
1683
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1684
|
-
_payload: { _status: -1, _result: ctor },
|
|
1685
|
-
_init: lazyInitializer
|
|
1686
|
-
};
|
|
1687
|
-
};
|
|
1688
|
-
exports.memo = function (type, compare) {
|
|
1689
|
-
null == type &&
|
|
1690
|
-
console.error(
|
|
1691
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
1692
|
-
null === type ? "null" : typeof type
|
|
1693
|
-
);
|
|
1694
|
-
compare = {
|
|
1695
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1696
|
-
type: type,
|
|
1697
|
-
compare: void 0 === compare ? null : compare
|
|
1698
|
-
};
|
|
1699
|
-
var ownName;
|
|
1700
|
-
Object.defineProperty(compare, "displayName", {
|
|
1701
|
-
enumerable: false,
|
|
1702
|
-
configurable: true,
|
|
1703
|
-
get: function () {
|
|
1704
|
-
return ownName;
|
|
1705
|
-
},
|
|
1706
|
-
set: function (name) {
|
|
1707
|
-
ownName = name;
|
|
1708
|
-
type.name ||
|
|
1709
|
-
type.displayName ||
|
|
1710
|
-
(Object.defineProperty(type, "name", { value: name }),
|
|
1711
|
-
(type.displayName = name));
|
|
1712
|
-
}
|
|
1713
|
-
});
|
|
1714
|
-
return compare;
|
|
1715
|
-
};
|
|
1716
|
-
exports.startTransition = function (scope) {
|
|
1717
|
-
var prevTransition = ReactSharedInternals.T,
|
|
1718
|
-
currentTransition = {};
|
|
1719
|
-
ReactSharedInternals.T = currentTransition;
|
|
1720
|
-
currentTransition._updatedFibers = new Set();
|
|
1721
|
-
try {
|
|
1722
|
-
var returnValue = scope(),
|
|
1723
|
-
onStartTransitionFinish = ReactSharedInternals.S;
|
|
1724
|
-
null !== onStartTransitionFinish &&
|
|
1725
|
-
onStartTransitionFinish(currentTransition, returnValue);
|
|
1726
|
-
"object" === typeof returnValue &&
|
|
1727
|
-
null !== returnValue &&
|
|
1728
|
-
"function" === typeof returnValue.then &&
|
|
1729
|
-
returnValue.then(noop, reportGlobalError);
|
|
1730
|
-
} catch (error) {
|
|
1731
|
-
reportGlobalError(error);
|
|
1732
|
-
} finally {
|
|
1733
|
-
null === prevTransition &&
|
|
1734
|
-
currentTransition._updatedFibers &&
|
|
1735
|
-
((scope = currentTransition._updatedFibers.size),
|
|
1736
|
-
currentTransition._updatedFibers.clear(),
|
|
1737
|
-
10 < scope &&
|
|
1738
|
-
console.warn(
|
|
1739
|
-
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1740
|
-
)),
|
|
1741
|
-
(ReactSharedInternals.T = prevTransition);
|
|
1742
|
-
}
|
|
1743
|
-
};
|
|
1744
|
-
exports.unstable_useCacheRefresh = function () {
|
|
1745
|
-
return resolveDispatcher().useCacheRefresh();
|
|
1746
|
-
};
|
|
1747
|
-
exports.use = function (usable) {
|
|
1748
|
-
return resolveDispatcher().use(usable);
|
|
1749
|
-
};
|
|
1750
|
-
exports.useActionState = function (action, initialState, permalink) {
|
|
1751
|
-
return resolveDispatcher().useActionState(
|
|
1752
|
-
action,
|
|
1753
|
-
initialState,
|
|
1754
|
-
permalink
|
|
1755
|
-
);
|
|
1756
|
-
};
|
|
1757
|
-
exports.useCallback = function (callback, deps) {
|
|
1758
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
1759
|
-
};
|
|
1760
|
-
exports.useContext = function (Context) {
|
|
1761
|
-
var dispatcher = resolveDispatcher();
|
|
1762
|
-
Context.$$typeof === REACT_CONSUMER_TYPE &&
|
|
1763
|
-
console.error(
|
|
1764
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1765
|
-
);
|
|
1766
|
-
return dispatcher.useContext(Context);
|
|
1767
|
-
};
|
|
1768
|
-
exports.useDebugValue = function (value, formatterFn) {
|
|
1769
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1770
|
-
};
|
|
1771
|
-
exports.useDeferredValue = function (value, initialValue) {
|
|
1772
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1773
|
-
};
|
|
1774
|
-
exports.useEffect = function (create, createDeps, update) {
|
|
1775
|
-
null == create &&
|
|
1776
|
-
console.warn(
|
|
1777
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1778
|
-
);
|
|
1779
|
-
var dispatcher = resolveDispatcher();
|
|
1780
|
-
if ("function" === typeof update)
|
|
1781
|
-
throw Error(
|
|
1782
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
1783
|
-
);
|
|
1784
|
-
return dispatcher.useEffect(create, createDeps);
|
|
1785
|
-
};
|
|
1786
|
-
exports.useId = function () {
|
|
1787
|
-
return resolveDispatcher().useId();
|
|
1788
|
-
};
|
|
1789
|
-
exports.useImperativeHandle = function (ref, create, deps) {
|
|
1790
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1791
|
-
};
|
|
1792
|
-
exports.useInsertionEffect = function (create, deps) {
|
|
1793
|
-
null == create &&
|
|
1794
|
-
console.warn(
|
|
1795
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1796
|
-
);
|
|
1797
|
-
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1798
|
-
};
|
|
1799
|
-
exports.useLayoutEffect = function (create, deps) {
|
|
1800
|
-
null == create &&
|
|
1801
|
-
console.warn(
|
|
1802
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1803
|
-
);
|
|
1804
|
-
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1805
|
-
};
|
|
1806
|
-
exports.useMemo = function (create, deps) {
|
|
1807
|
-
return resolveDispatcher().useMemo(create, deps);
|
|
1808
|
-
};
|
|
1809
|
-
exports.useOptimistic = function (passthrough, reducer) {
|
|
1810
|
-
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1811
|
-
};
|
|
1812
|
-
exports.useReducer = function (reducer, initialArg, init) {
|
|
1813
|
-
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1814
|
-
};
|
|
1815
|
-
exports.useRef = function (initialValue) {
|
|
1816
|
-
return resolveDispatcher().useRef(initialValue);
|
|
1817
|
-
};
|
|
1818
|
-
exports.useState = function (initialState) {
|
|
1819
|
-
return resolveDispatcher().useState(initialState);
|
|
1820
|
-
};
|
|
1821
|
-
exports.useSyncExternalStore = function (
|
|
1822
|
-
subscribe,
|
|
1823
|
-
getSnapshot,
|
|
1824
|
-
getServerSnapshot
|
|
1825
|
-
) {
|
|
1826
|
-
return resolveDispatcher().useSyncExternalStore(
|
|
1827
|
-
subscribe,
|
|
1828
|
-
getSnapshot,
|
|
1829
|
-
getServerSnapshot
|
|
1830
|
-
);
|
|
1831
|
-
};
|
|
1832
|
-
exports.useTransition = function () {
|
|
1833
|
-
return resolveDispatcher().useTransition();
|
|
1834
|
-
};
|
|
1835
|
-
exports.version = "19.1.0";
|
|
1836
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
1837
|
-
"function" ===
|
|
1838
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
1839
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1840
|
-
})();
|
|
1841
|
-
} (react_development, react_development.exports));
|
|
1842
|
-
return react_development.exports;
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
var hasRequiredReact;
|
|
1846
|
-
|
|
1847
|
-
function requireReact () {
|
|
1848
|
-
if (hasRequiredReact) return react.exports;
|
|
1849
|
-
hasRequiredReact = 1;
|
|
1850
|
-
|
|
1851
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1852
|
-
react.exports = requireReact_production();
|
|
1853
|
-
} else {
|
|
1854
|
-
react.exports = requireReact_development();
|
|
1855
|
-
}
|
|
1856
|
-
return react.exports;
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
var reactExports = requireReact();
|
|
1860
|
-
var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
1861
|
-
|
|
1862
39
|
var propTypes = {exports: {}};
|
|
1863
40
|
|
|
1864
41
|
var reactIs = {exports: {}};
|
|
@@ -3092,7 +1269,7 @@ const Button$1 = _ref => {
|
|
|
3092
1269
|
} = _ref,
|
|
3093
1270
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
3094
1271
|
const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
|
|
3095
|
-
return /*#__PURE__*/
|
|
1272
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$d({
|
|
3096
1273
|
type: "button",
|
|
3097
1274
|
className: ['storybook-button', `storybook-button--${size}`, mode].join(' '),
|
|
3098
1275
|
style: {
|
|
@@ -3124,36 +1301,36 @@ const Header = ({
|
|
|
3124
1301
|
onLogin,
|
|
3125
1302
|
onLogout,
|
|
3126
1303
|
onCreateAccount
|
|
3127
|
-
}) => /*#__PURE__*/
|
|
1304
|
+
}) => /*#__PURE__*/React__default.createElement("header", null, /*#__PURE__*/React__default.createElement("div", {
|
|
3128
1305
|
className: "storybook-header"
|
|
3129
|
-
}, /*#__PURE__*/
|
|
1306
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("svg", {
|
|
3130
1307
|
width: "32",
|
|
3131
1308
|
height: "32",
|
|
3132
1309
|
viewBox: "0 0 32 32",
|
|
3133
1310
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3134
|
-
}, /*#__PURE__*/
|
|
1311
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
3135
1312
|
fill: "none",
|
|
3136
1313
|
fillRule: "evenodd"
|
|
3137
|
-
}, /*#__PURE__*/
|
|
1314
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
3138
1315
|
d: "M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z",
|
|
3139
1316
|
fill: "#FFF"
|
|
3140
|
-
}), /*#__PURE__*/
|
|
1317
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
3141
1318
|
d: "M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z",
|
|
3142
1319
|
fill: "#555AB9"
|
|
3143
|
-
}), /*#__PURE__*/
|
|
1320
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
3144
1321
|
d: "M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z",
|
|
3145
1322
|
fill: "#91BAF8"
|
|
3146
|
-
}))), /*#__PURE__*/
|
|
1323
|
+
}))), /*#__PURE__*/React__default.createElement("h1", null, "Acme")), /*#__PURE__*/React__default.createElement("div", null, user ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
|
|
3147
1324
|
className: "welcome"
|
|
3148
|
-
}, "Welcome, ", /*#__PURE__*/
|
|
1325
|
+
}, "Welcome, ", /*#__PURE__*/React__default.createElement("b", null, user.name), "!"), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
3149
1326
|
size: "small",
|
|
3150
1327
|
onClick: onLogout,
|
|
3151
1328
|
label: "Log out"
|
|
3152
|
-
})) : /*#__PURE__*/
|
|
1329
|
+
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
3153
1330
|
size: "small",
|
|
3154
1331
|
onClick: onLogin,
|
|
3155
1332
|
label: "Log in"
|
|
3156
|
-
}), /*#__PURE__*/
|
|
1333
|
+
}), /*#__PURE__*/React__default.createElement(Button$1, {
|
|
3157
1334
|
primary: true,
|
|
3158
1335
|
size: "small",
|
|
3159
1336
|
onClick: onCreateAccount,
|
|
@@ -3172,8 +1349,8 @@ var css_248z = ".storybook-page {\n margin: 0 auto;\n padding: 48px 20px;\n m
|
|
|
3172
1349
|
styleInject(css_248z);
|
|
3173
1350
|
|
|
3174
1351
|
const Page = () => {
|
|
3175
|
-
const [user, setUser] =
|
|
3176
|
-
return /*#__PURE__*/
|
|
1352
|
+
const [user, setUser] = React__default.useState();
|
|
1353
|
+
return /*#__PURE__*/React__default.createElement("article", null, /*#__PURE__*/React__default.createElement(Header, {
|
|
3177
1354
|
user: user,
|
|
3178
1355
|
onLogin: () => setUser({
|
|
3179
1356
|
name: 'Jane Doe'
|
|
@@ -3182,33 +1359,33 @@ const Page = () => {
|
|
|
3182
1359
|
onCreateAccount: () => setUser({
|
|
3183
1360
|
name: 'Jane Doe'
|
|
3184
1361
|
})
|
|
3185
|
-
}), /*#__PURE__*/
|
|
1362
|
+
}), /*#__PURE__*/React__default.createElement("section", {
|
|
3186
1363
|
className: "storybook-page"
|
|
3187
|
-
}, /*#__PURE__*/
|
|
1364
|
+
}, /*#__PURE__*/React__default.createElement("h2", null, "Pages in Storybook"), /*#__PURE__*/React__default.createElement("p", null, "We recommend building UIs with a", ' ', /*#__PURE__*/React__default.createElement("a", {
|
|
3188
1365
|
href: "https://componentdriven.org",
|
|
3189
1366
|
target: "_blank",
|
|
3190
1367
|
rel: "noopener noreferrer"
|
|
3191
|
-
}, /*#__PURE__*/
|
|
1368
|
+
}, /*#__PURE__*/React__default.createElement("strong", null, "component-driven")), ' ', "process starting with atomic components and ending with pages."), /*#__PURE__*/React__default.createElement("p", null, "Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:"), /*#__PURE__*/React__default.createElement("ul", null, /*#__PURE__*/React__default.createElement("li", null, "Use a higher-level connected component. Storybook helps you compose such data from the \"args\" of child component stories"), /*#__PURE__*/React__default.createElement("li", null, "Assemble data in the page component from your services. You can mock these services out using Storybook.")), /*#__PURE__*/React__default.createElement("p", null, "Get a guided tutorial on component-driven development at", ' ', /*#__PURE__*/React__default.createElement("a", {
|
|
3192
1369
|
href: "https://storybook.js.org/tutorials/",
|
|
3193
1370
|
target: "_blank",
|
|
3194
1371
|
rel: "noopener noreferrer"
|
|
3195
|
-
}, "Storybook tutorials"), ". Read more in the", ' ', /*#__PURE__*/
|
|
1372
|
+
}, "Storybook tutorials"), ". Read more in the", ' ', /*#__PURE__*/React__default.createElement("a", {
|
|
3196
1373
|
href: "https://storybook.js.org/docs",
|
|
3197
1374
|
target: "_blank",
|
|
3198
1375
|
rel: "noopener noreferrer"
|
|
3199
|
-
}, "docs"), "."), /*#__PURE__*/
|
|
1376
|
+
}, "docs"), "."), /*#__PURE__*/React__default.createElement("div", {
|
|
3200
1377
|
className: "tip-wrapper"
|
|
3201
|
-
}, /*#__PURE__*/
|
|
1378
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
3202
1379
|
className: "tip"
|
|
3203
|
-
}, "Tip"), " Adjust the width of the canvas with the", ' ', /*#__PURE__*/
|
|
1380
|
+
}, "Tip"), " Adjust the width of the canvas with the", ' ', /*#__PURE__*/React__default.createElement("svg", {
|
|
3204
1381
|
width: "10",
|
|
3205
1382
|
height: "10",
|
|
3206
1383
|
viewBox: "0 0 12 12",
|
|
3207
1384
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3208
|
-
}, /*#__PURE__*/
|
|
1385
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
3209
1386
|
fill: "none",
|
|
3210
1387
|
fillRule: "evenodd"
|
|
3211
|
-
}, /*#__PURE__*/
|
|
1388
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
3212
1389
|
d: "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z",
|
|
3213
1390
|
id: "a",
|
|
3214
1391
|
fill: "#999"
|
|
@@ -5249,7 +3426,7 @@ var IconUtils = /*#__PURE__*/function () {
|
|
|
5249
3426
|
if (icon !== null) {
|
|
5250
3427
|
var iconType = _typeof$8(icon);
|
|
5251
3428
|
var className = classNames(iconProps.className, iconType === 'string' && icon);
|
|
5252
|
-
content = /*#__PURE__*/
|
|
3429
|
+
content = /*#__PURE__*/React.createElement("span", _extends$c({}, iconProps, {
|
|
5253
3430
|
className: className,
|
|
5254
3431
|
key: UniqueComponentId('icon')
|
|
5255
3432
|
}));
|
|
@@ -6082,7 +4259,7 @@ function localeOptions(locale) {
|
|
|
6082
4259
|
return locales[_locale];
|
|
6083
4260
|
}
|
|
6084
4261
|
|
|
6085
|
-
var PrimeReactContext = /*#__PURE__*/
|
|
4262
|
+
var PrimeReactContext = /*#__PURE__*/React__default.createContext();
|
|
6086
4263
|
|
|
6087
4264
|
var PrimeReact = PrimeReact$1;
|
|
6088
4265
|
|
|
@@ -6141,8 +4318,8 @@ function _slicedToArray$4(r, e) {
|
|
|
6141
4318
|
}
|
|
6142
4319
|
|
|
6143
4320
|
var usePrevious = function usePrevious(newValue) {
|
|
6144
|
-
var ref =
|
|
6145
|
-
|
|
4321
|
+
var ref = React.useRef(null);
|
|
4322
|
+
React.useEffect(function () {
|
|
6146
4323
|
ref.current = newValue;
|
|
6147
4324
|
return function () {
|
|
6148
4325
|
ref.current = null;
|
|
@@ -6153,7 +4330,7 @@ var usePrevious = function usePrevious(newValue) {
|
|
|
6153
4330
|
|
|
6154
4331
|
/* eslint-disable */
|
|
6155
4332
|
var useUnmountEffect = function useUnmountEffect(fn) {
|
|
6156
|
-
return
|
|
4333
|
+
return React.useEffect(function () {
|
|
6157
4334
|
return fn;
|
|
6158
4335
|
}, []);
|
|
6159
4336
|
};
|
|
@@ -6167,8 +4344,8 @@ var useEventListener = function useEventListener(_ref) {
|
|
|
6167
4344
|
options = _ref.options,
|
|
6168
4345
|
_ref$when = _ref.when,
|
|
6169
4346
|
when = _ref$when === void 0 ? true : _ref$when;
|
|
6170
|
-
var targetRef =
|
|
6171
|
-
var listenerRef =
|
|
4347
|
+
var targetRef = React.useRef(null);
|
|
4348
|
+
var listenerRef = React.useRef(null);
|
|
6172
4349
|
var prevListener = usePrevious(listener);
|
|
6173
4350
|
var prevOptions = usePrevious(options);
|
|
6174
4351
|
var bind = function bind() {
|
|
@@ -6197,7 +4374,7 @@ var useEventListener = function useEventListener(_ref) {
|
|
|
6197
4374
|
prevListener = null;
|
|
6198
4375
|
prevOptions = null;
|
|
6199
4376
|
};
|
|
6200
|
-
var updateTarget =
|
|
4377
|
+
var updateTarget = React.useCallback(function () {
|
|
6201
4378
|
if (when) {
|
|
6202
4379
|
targetRef.current = DomHandler.getTargetElement(target);
|
|
6203
4380
|
} else {
|
|
@@ -6206,10 +4383,10 @@ var useEventListener = function useEventListener(_ref) {
|
|
|
6206
4383
|
}
|
|
6207
4384
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6208
4385
|
}, [target, when]);
|
|
6209
|
-
|
|
4386
|
+
React.useEffect(function () {
|
|
6210
4387
|
updateTarget();
|
|
6211
4388
|
}, [updateTarget]);
|
|
6212
|
-
|
|
4389
|
+
React.useEffect(function () {
|
|
6213
4390
|
var listenerChanged = "".concat(prevListener) !== "".concat(listener);
|
|
6214
4391
|
var optionsChanged = prevOptions !== options;
|
|
6215
4392
|
var listenerExists = listenerRef.current;
|
|
@@ -6230,16 +4407,16 @@ var useEventListener = function useEventListener(_ref) {
|
|
|
6230
4407
|
var groupToDisplayedElements = {};
|
|
6231
4408
|
var useDisplayOrder = function useDisplayOrder(group) {
|
|
6232
4409
|
var isVisible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
6233
|
-
var _React$useState =
|
|
4410
|
+
var _React$useState = React.useState(function () {
|
|
6234
4411
|
return UniqueComponentId();
|
|
6235
4412
|
}),
|
|
6236
4413
|
_React$useState2 = _slicedToArray$4(_React$useState, 1),
|
|
6237
4414
|
uid = _React$useState2[0];
|
|
6238
|
-
var _React$useState3 =
|
|
4415
|
+
var _React$useState3 = React.useState(0),
|
|
6239
4416
|
_React$useState4 = _slicedToArray$4(_React$useState3, 2),
|
|
6240
4417
|
displayOrder = _React$useState4[0],
|
|
6241
4418
|
setDisplayOrder = _React$useState4[1];
|
|
6242
|
-
|
|
4419
|
+
React.useEffect(function () {
|
|
6243
4420
|
if (isVisible) {
|
|
6244
4421
|
if (!groupToDisplayedElements[group]) {
|
|
6245
4422
|
groupToDisplayedElements[group] = [];
|
|
@@ -6367,7 +4544,7 @@ var useGlobalOnEscapeKey = function useGlobalOnEscapeKey(_ref3) {
|
|
|
6367
4544
|
var callback = _ref3.callback,
|
|
6368
4545
|
when = _ref3.when,
|
|
6369
4546
|
priority = _ref3.priority;
|
|
6370
|
-
|
|
4547
|
+
useEffect(function () {
|
|
6371
4548
|
if (!when) {
|
|
6372
4549
|
return;
|
|
6373
4550
|
}
|
|
@@ -6380,7 +4557,7 @@ var useGlobalOnEscapeKey = function useGlobalOnEscapeKey(_ref3) {
|
|
|
6380
4557
|
* Hook to merge properties including custom merge function for things like Tailwind merge.
|
|
6381
4558
|
*/
|
|
6382
4559
|
var useMergeProps = function useMergeProps() {
|
|
6383
|
-
var context =
|
|
4560
|
+
var context = useContext(PrimeReactContext);
|
|
6384
4561
|
return function () {
|
|
6385
4562
|
for (var _len = arguments.length, props = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6386
4563
|
props[_key] = arguments[_key];
|
|
@@ -6397,8 +4574,8 @@ var useMergeProps = function useMergeProps() {
|
|
|
6397
4574
|
* @returns the hook
|
|
6398
4575
|
*/
|
|
6399
4576
|
var useMountEffect = function useMountEffect(fn) {
|
|
6400
|
-
var mounted =
|
|
6401
|
-
return
|
|
4577
|
+
var mounted = React.useRef(false);
|
|
4578
|
+
return React.useEffect(function () {
|
|
6402
4579
|
if (!mounted.current) {
|
|
6403
4580
|
mounted.current = true;
|
|
6404
4581
|
return fn && fn();
|
|
@@ -6412,10 +4589,10 @@ var useOverlayScrollListener = function useOverlayScrollListener(_ref) {
|
|
|
6412
4589
|
options = _ref.options,
|
|
6413
4590
|
_ref$when = _ref.when,
|
|
6414
4591
|
when = _ref$when === void 0 ? true : _ref$when;
|
|
6415
|
-
var context =
|
|
6416
|
-
var targetRef =
|
|
6417
|
-
var listenerRef =
|
|
6418
|
-
var scrollableParentsRef =
|
|
4592
|
+
var context = React.useContext(PrimeReactContext);
|
|
4593
|
+
var targetRef = React.useRef(null);
|
|
4594
|
+
var listenerRef = React.useRef(null);
|
|
4595
|
+
var scrollableParentsRef = React.useRef([]);
|
|
6419
4596
|
var prevListener = usePrevious(listener);
|
|
6420
4597
|
var prevOptions = usePrevious(options);
|
|
6421
4598
|
var bind = function bind() {
|
|
@@ -6451,7 +4628,7 @@ var useOverlayScrollListener = function useOverlayScrollListener(_ref) {
|
|
|
6451
4628
|
prevListener = null;
|
|
6452
4629
|
prevOptions = null;
|
|
6453
4630
|
};
|
|
6454
|
-
var updateTarget =
|
|
4631
|
+
var updateTarget = React.useCallback(function () {
|
|
6455
4632
|
if (when) {
|
|
6456
4633
|
targetRef.current = DomHandler.getTargetElement(target);
|
|
6457
4634
|
} else {
|
|
@@ -6460,10 +4637,10 @@ var useOverlayScrollListener = function useOverlayScrollListener(_ref) {
|
|
|
6460
4637
|
}
|
|
6461
4638
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6462
4639
|
}, [target, when]);
|
|
6463
|
-
|
|
4640
|
+
React.useEffect(function () {
|
|
6464
4641
|
updateTarget();
|
|
6465
4642
|
}, [updateTarget]);
|
|
6466
|
-
|
|
4643
|
+
React.useEffect(function () {
|
|
6467
4644
|
var listenerChanged = "".concat(prevListener) !== "".concat(listener);
|
|
6468
4645
|
var optionsChanged = prevOptions !== options;
|
|
6469
4646
|
var listenerExists = listenerRef.current;
|
|
@@ -6501,8 +4678,8 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
6501
4678
|
when = _ref$when === void 0 ? true : _ref$when,
|
|
6502
4679
|
_ref$type = _ref.type,
|
|
6503
4680
|
type = _ref$type === void 0 ? 'click' : _ref$type;
|
|
6504
|
-
var targetRef =
|
|
6505
|
-
var overlayRef =
|
|
4681
|
+
var targetRef = React.useRef(null);
|
|
4682
|
+
var overlayRef = React.useRef(null);
|
|
6506
4683
|
|
|
6507
4684
|
/**
|
|
6508
4685
|
* The parameters of the 'listener' method in the following event handlers;
|
|
@@ -6574,7 +4751,7 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
6574
4751
|
unbindWindowOrientationChangeListener();
|
|
6575
4752
|
unbindOverlayScrollListener();
|
|
6576
4753
|
};
|
|
6577
|
-
|
|
4754
|
+
React.useEffect(function () {
|
|
6578
4755
|
if (when) {
|
|
6579
4756
|
targetRef.current = DomHandler.getTargetElement(target);
|
|
6580
4757
|
overlayRef.current = DomHandler.getTargetElement(overlay);
|
|
@@ -6593,12 +4770,12 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
6593
4770
|
var _id = 0;
|
|
6594
4771
|
var useStyle = function useStyle(css) {
|
|
6595
4772
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
6596
|
-
var _useState =
|
|
4773
|
+
var _useState = useState(false),
|
|
6597
4774
|
_useState2 = _slicedToArray$4(_useState, 2),
|
|
6598
4775
|
isLoaded = _useState2[0],
|
|
6599
4776
|
setIsLoaded = _useState2[1];
|
|
6600
|
-
var styleRef =
|
|
6601
|
-
var context =
|
|
4777
|
+
var styleRef = useRef(null);
|
|
4778
|
+
var context = useContext(PrimeReactContext);
|
|
6602
4779
|
var defaultDocument = DomHandler.isClient() ? window.document : undefined;
|
|
6603
4780
|
var _options$document = options.document,
|
|
6604
4781
|
document = _options$document === void 0 ? defaultDocument : _options$document,
|
|
@@ -6658,7 +4835,7 @@ var useStyle = function useStyle(css) {
|
|
|
6658
4835
|
DomHandler.removeInlineStyle(styleRef.current);
|
|
6659
4836
|
setIsLoaded(false);
|
|
6660
4837
|
};
|
|
6661
|
-
|
|
4838
|
+
useEffect(function () {
|
|
6662
4839
|
if (!manual) {
|
|
6663
4840
|
load();
|
|
6664
4841
|
}
|
|
@@ -6679,8 +4856,8 @@ var useStyle = function useStyle(css) {
|
|
|
6679
4856
|
|
|
6680
4857
|
/* eslint-disable */
|
|
6681
4858
|
var useUpdateEffect = function useUpdateEffect(fn, deps) {
|
|
6682
|
-
var mounted =
|
|
6683
|
-
return
|
|
4859
|
+
var mounted = React.useRef(false);
|
|
4860
|
+
return React.useEffect(function () {
|
|
6684
4861
|
if (!mounted.current) {
|
|
6685
4862
|
mounted.current = true;
|
|
6686
4863
|
return;
|
|
@@ -7078,16 +5255,16 @@ function _extends$b() {
|
|
|
7078
5255
|
}, _extends$b.apply(null, arguments);
|
|
7079
5256
|
}
|
|
7080
5257
|
|
|
7081
|
-
var SpinnerIcon = /*#__PURE__*/
|
|
5258
|
+
var SpinnerIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
7082
5259
|
var pti = IconBase.getPTI(inProps);
|
|
7083
|
-
return /*#__PURE__*/
|
|
5260
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
7084
5261
|
ref: ref,
|
|
7085
5262
|
width: "14",
|
|
7086
5263
|
height: "14",
|
|
7087
5264
|
viewBox: "0 0 14 14",
|
|
7088
5265
|
fill: "none",
|
|
7089
5266
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7090
|
-
}, pti), /*#__PURE__*/
|
|
5267
|
+
}, pti), /*#__PURE__*/React.createElement("path", {
|
|
7091
5268
|
d: "M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",
|
|
7092
5269
|
fill: "currentColor"
|
|
7093
5270
|
}));
|
|
@@ -7213,15 +5390,15 @@ var RippleBase = ComponentBase.extend({
|
|
|
7213
5390
|
|
|
7214
5391
|
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7215
5392
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty$5(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7216
|
-
var Ripple = /*#__PURE__*/
|
|
7217
|
-
var _React$useState =
|
|
5393
|
+
var Ripple = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
5394
|
+
var _React$useState = React.useState(false),
|
|
7218
5395
|
_React$useState2 = _slicedToArray$3(_React$useState, 2),
|
|
7219
5396
|
isMounted = _React$useState2[0],
|
|
7220
5397
|
setMounted = _React$useState2[1];
|
|
7221
|
-
var inkRef =
|
|
7222
|
-
var targetRef =
|
|
5398
|
+
var inkRef = React.useRef(null);
|
|
5399
|
+
var targetRef = React.useRef(null);
|
|
7223
5400
|
var mergeProps = useMergeProps();
|
|
7224
|
-
var context =
|
|
5401
|
+
var context = React.useContext(PrimeReactContext);
|
|
7225
5402
|
var props = RippleBase.getProps(inProps, context);
|
|
7226
5403
|
var isRippleActive = context && context.ripple || PrimeReact.ripple;
|
|
7227
5404
|
var metaData = {
|
|
@@ -7273,7 +5450,7 @@ var Ripple = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef
|
|
|
7273
5450
|
inkRef.current.style.width = d + 'px';
|
|
7274
5451
|
}
|
|
7275
5452
|
};
|
|
7276
|
-
|
|
5453
|
+
React.useImperativeHandle(ref, function () {
|
|
7277
5454
|
return {
|
|
7278
5455
|
props: props,
|
|
7279
5456
|
getInk: function getInk() {
|
|
@@ -7315,7 +5492,7 @@ var Ripple = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef
|
|
|
7315
5492
|
'aria-hidden': true,
|
|
7316
5493
|
className: classNames(cx('root'))
|
|
7317
5494
|
}, RippleBase.getOtherProps(props), ptm('root'));
|
|
7318
|
-
return /*#__PURE__*/
|
|
5495
|
+
return /*#__PURE__*/React.createElement("span", _extends$a({
|
|
7319
5496
|
role: "presentation",
|
|
7320
5497
|
ref: inkRef
|
|
7321
5498
|
}, rootProps, {
|
|
@@ -7324,708 +5501,6 @@ var Ripple = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef
|
|
|
7324
5501
|
}));
|
|
7325
5502
|
Ripple.displayName = 'Ripple';
|
|
7326
5503
|
|
|
7327
|
-
var reactDom = {exports: {}};
|
|
7328
|
-
|
|
7329
|
-
var reactDom_production = {};
|
|
7330
|
-
|
|
7331
|
-
/**
|
|
7332
|
-
* @license React
|
|
7333
|
-
* react-dom.production.js
|
|
7334
|
-
*
|
|
7335
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7336
|
-
*
|
|
7337
|
-
* This source code is licensed under the MIT license found in the
|
|
7338
|
-
* LICENSE file in the root directory of this source tree.
|
|
7339
|
-
*/
|
|
7340
|
-
|
|
7341
|
-
var hasRequiredReactDom_production;
|
|
7342
|
-
|
|
7343
|
-
function requireReactDom_production () {
|
|
7344
|
-
if (hasRequiredReactDom_production) return reactDom_production;
|
|
7345
|
-
hasRequiredReactDom_production = 1;
|
|
7346
|
-
var React = requireReact();
|
|
7347
|
-
function formatProdErrorMessage(code) {
|
|
7348
|
-
var url = "https://react.dev/errors/" + code;
|
|
7349
|
-
if (1 < arguments.length) {
|
|
7350
|
-
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
7351
|
-
for (var i = 2; i < arguments.length; i++)
|
|
7352
|
-
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
7353
|
-
}
|
|
7354
|
-
return (
|
|
7355
|
-
"Minified React error #" +
|
|
7356
|
-
code +
|
|
7357
|
-
"; visit " +
|
|
7358
|
-
url +
|
|
7359
|
-
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
|
|
7360
|
-
);
|
|
7361
|
-
}
|
|
7362
|
-
function noop() {}
|
|
7363
|
-
var Internals = {
|
|
7364
|
-
d: {
|
|
7365
|
-
f: noop,
|
|
7366
|
-
r: function () {
|
|
7367
|
-
throw Error(formatProdErrorMessage(522));
|
|
7368
|
-
},
|
|
7369
|
-
D: noop,
|
|
7370
|
-
C: noop,
|
|
7371
|
-
L: noop,
|
|
7372
|
-
m: noop,
|
|
7373
|
-
X: noop,
|
|
7374
|
-
S: noop,
|
|
7375
|
-
M: noop
|
|
7376
|
-
},
|
|
7377
|
-
p: 0,
|
|
7378
|
-
findDOMNode: null
|
|
7379
|
-
},
|
|
7380
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
7381
|
-
function createPortal$1(children, containerInfo, implementation) {
|
|
7382
|
-
var key =
|
|
7383
|
-
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
7384
|
-
return {
|
|
7385
|
-
$$typeof: REACT_PORTAL_TYPE,
|
|
7386
|
-
key: null == key ? null : "" + key,
|
|
7387
|
-
children: children,
|
|
7388
|
-
containerInfo: containerInfo,
|
|
7389
|
-
implementation: implementation
|
|
7390
|
-
};
|
|
7391
|
-
}
|
|
7392
|
-
var ReactSharedInternals =
|
|
7393
|
-
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
7394
|
-
function getCrossOriginStringAs(as, input) {
|
|
7395
|
-
if ("font" === as) return "";
|
|
7396
|
-
if ("string" === typeof input)
|
|
7397
|
-
return "use-credentials" === input ? input : "";
|
|
7398
|
-
}
|
|
7399
|
-
reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
7400
|
-
Internals;
|
|
7401
|
-
reactDom_production.createPortal = function (children, container) {
|
|
7402
|
-
var key =
|
|
7403
|
-
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
7404
|
-
if (
|
|
7405
|
-
!container ||
|
|
7406
|
-
(1 !== container.nodeType &&
|
|
7407
|
-
9 !== container.nodeType &&
|
|
7408
|
-
11 !== container.nodeType)
|
|
7409
|
-
)
|
|
7410
|
-
throw Error(formatProdErrorMessage(299));
|
|
7411
|
-
return createPortal$1(children, container, null, key);
|
|
7412
|
-
};
|
|
7413
|
-
reactDom_production.flushSync = function (fn) {
|
|
7414
|
-
var previousTransition = ReactSharedInternals.T,
|
|
7415
|
-
previousUpdatePriority = Internals.p;
|
|
7416
|
-
try {
|
|
7417
|
-
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();
|
|
7418
|
-
} finally {
|
|
7419
|
-
(ReactSharedInternals.T = previousTransition),
|
|
7420
|
-
(Internals.p = previousUpdatePriority),
|
|
7421
|
-
Internals.d.f();
|
|
7422
|
-
}
|
|
7423
|
-
};
|
|
7424
|
-
reactDom_production.preconnect = function (href, options) {
|
|
7425
|
-
"string" === typeof href &&
|
|
7426
|
-
(options
|
|
7427
|
-
? ((options = options.crossOrigin),
|
|
7428
|
-
(options =
|
|
7429
|
-
"string" === typeof options
|
|
7430
|
-
? "use-credentials" === options
|
|
7431
|
-
? options
|
|
7432
|
-
: ""
|
|
7433
|
-
: void 0))
|
|
7434
|
-
: (options = null),
|
|
7435
|
-
Internals.d.C(href, options));
|
|
7436
|
-
};
|
|
7437
|
-
reactDom_production.prefetchDNS = function (href) {
|
|
7438
|
-
"string" === typeof href && Internals.d.D(href);
|
|
7439
|
-
};
|
|
7440
|
-
reactDom_production.preinit = function (href, options) {
|
|
7441
|
-
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
7442
|
-
var as = options.as,
|
|
7443
|
-
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
|
7444
|
-
integrity =
|
|
7445
|
-
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
7446
|
-
fetchPriority =
|
|
7447
|
-
"string" === typeof options.fetchPriority
|
|
7448
|
-
? options.fetchPriority
|
|
7449
|
-
: void 0;
|
|
7450
|
-
"style" === as
|
|
7451
|
-
? Internals.d.S(
|
|
7452
|
-
href,
|
|
7453
|
-
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
7454
|
-
{
|
|
7455
|
-
crossOrigin: crossOrigin,
|
|
7456
|
-
integrity: integrity,
|
|
7457
|
-
fetchPriority: fetchPriority
|
|
7458
|
-
}
|
|
7459
|
-
)
|
|
7460
|
-
: "script" === as &&
|
|
7461
|
-
Internals.d.X(href, {
|
|
7462
|
-
crossOrigin: crossOrigin,
|
|
7463
|
-
integrity: integrity,
|
|
7464
|
-
fetchPriority: fetchPriority,
|
|
7465
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
7466
|
-
});
|
|
7467
|
-
}
|
|
7468
|
-
};
|
|
7469
|
-
reactDom_production.preinitModule = function (href, options) {
|
|
7470
|
-
if ("string" === typeof href)
|
|
7471
|
-
if ("object" === typeof options && null !== options) {
|
|
7472
|
-
if (null == options.as || "script" === options.as) {
|
|
7473
|
-
var crossOrigin = getCrossOriginStringAs(
|
|
7474
|
-
options.as,
|
|
7475
|
-
options.crossOrigin
|
|
7476
|
-
);
|
|
7477
|
-
Internals.d.M(href, {
|
|
7478
|
-
crossOrigin: crossOrigin,
|
|
7479
|
-
integrity:
|
|
7480
|
-
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
7481
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
7482
|
-
});
|
|
7483
|
-
}
|
|
7484
|
-
} else null == options && Internals.d.M(href);
|
|
7485
|
-
};
|
|
7486
|
-
reactDom_production.preload = function (href, options) {
|
|
7487
|
-
if (
|
|
7488
|
-
"string" === typeof href &&
|
|
7489
|
-
"object" === typeof options &&
|
|
7490
|
-
null !== options &&
|
|
7491
|
-
"string" === typeof options.as
|
|
7492
|
-
) {
|
|
7493
|
-
var as = options.as,
|
|
7494
|
-
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
|
7495
|
-
Internals.d.L(href, as, {
|
|
7496
|
-
crossOrigin: crossOrigin,
|
|
7497
|
-
integrity:
|
|
7498
|
-
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
7499
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
7500
|
-
type: "string" === typeof options.type ? options.type : void 0,
|
|
7501
|
-
fetchPriority:
|
|
7502
|
-
"string" === typeof options.fetchPriority
|
|
7503
|
-
? options.fetchPriority
|
|
7504
|
-
: void 0,
|
|
7505
|
-
referrerPolicy:
|
|
7506
|
-
"string" === typeof options.referrerPolicy
|
|
7507
|
-
? options.referrerPolicy
|
|
7508
|
-
: void 0,
|
|
7509
|
-
imageSrcSet:
|
|
7510
|
-
"string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
7511
|
-
imageSizes:
|
|
7512
|
-
"string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
7513
|
-
media: "string" === typeof options.media ? options.media : void 0
|
|
7514
|
-
});
|
|
7515
|
-
}
|
|
7516
|
-
};
|
|
7517
|
-
reactDom_production.preloadModule = function (href, options) {
|
|
7518
|
-
if ("string" === typeof href)
|
|
7519
|
-
if (options) {
|
|
7520
|
-
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
|
7521
|
-
Internals.d.m(href, {
|
|
7522
|
-
as:
|
|
7523
|
-
"string" === typeof options.as && "script" !== options.as
|
|
7524
|
-
? options.as
|
|
7525
|
-
: void 0,
|
|
7526
|
-
crossOrigin: crossOrigin,
|
|
7527
|
-
integrity:
|
|
7528
|
-
"string" === typeof options.integrity ? options.integrity : void 0
|
|
7529
|
-
});
|
|
7530
|
-
} else Internals.d.m(href);
|
|
7531
|
-
};
|
|
7532
|
-
reactDom_production.requestFormReset = function (form) {
|
|
7533
|
-
Internals.d.r(form);
|
|
7534
|
-
};
|
|
7535
|
-
reactDom_production.unstable_batchedUpdates = function (fn, a) {
|
|
7536
|
-
return fn(a);
|
|
7537
|
-
};
|
|
7538
|
-
reactDom_production.useFormState = function (action, initialState, permalink) {
|
|
7539
|
-
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|
7540
|
-
};
|
|
7541
|
-
reactDom_production.useFormStatus = function () {
|
|
7542
|
-
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
7543
|
-
};
|
|
7544
|
-
reactDom_production.version = "19.1.0";
|
|
7545
|
-
return reactDom_production;
|
|
7546
|
-
}
|
|
7547
|
-
|
|
7548
|
-
var reactDom_development = {};
|
|
7549
|
-
|
|
7550
|
-
/**
|
|
7551
|
-
* @license React
|
|
7552
|
-
* react-dom.development.js
|
|
7553
|
-
*
|
|
7554
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7555
|
-
*
|
|
7556
|
-
* This source code is licensed under the MIT license found in the
|
|
7557
|
-
* LICENSE file in the root directory of this source tree.
|
|
7558
|
-
*/
|
|
7559
|
-
|
|
7560
|
-
var hasRequiredReactDom_development;
|
|
7561
|
-
|
|
7562
|
-
function requireReactDom_development () {
|
|
7563
|
-
if (hasRequiredReactDom_development) return reactDom_development;
|
|
7564
|
-
hasRequiredReactDom_development = 1;
|
|
7565
|
-
"production" !== process.env.NODE_ENV &&
|
|
7566
|
-
(function () {
|
|
7567
|
-
function noop() {}
|
|
7568
|
-
function testStringCoercion(value) {
|
|
7569
|
-
return "" + value;
|
|
7570
|
-
}
|
|
7571
|
-
function createPortal$1(children, containerInfo, implementation) {
|
|
7572
|
-
var key =
|
|
7573
|
-
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
7574
|
-
try {
|
|
7575
|
-
testStringCoercion(key);
|
|
7576
|
-
var JSCompiler_inline_result = !1;
|
|
7577
|
-
} catch (e) {
|
|
7578
|
-
JSCompiler_inline_result = true;
|
|
7579
|
-
}
|
|
7580
|
-
JSCompiler_inline_result &&
|
|
7581
|
-
(console.error(
|
|
7582
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
7583
|
-
("function" === typeof Symbol &&
|
|
7584
|
-
Symbol.toStringTag &&
|
|
7585
|
-
key[Symbol.toStringTag]) ||
|
|
7586
|
-
key.constructor.name ||
|
|
7587
|
-
"Object"
|
|
7588
|
-
),
|
|
7589
|
-
testStringCoercion(key));
|
|
7590
|
-
return {
|
|
7591
|
-
$$typeof: REACT_PORTAL_TYPE,
|
|
7592
|
-
key: null == key ? null : "" + key,
|
|
7593
|
-
children: children,
|
|
7594
|
-
containerInfo: containerInfo,
|
|
7595
|
-
implementation: implementation
|
|
7596
|
-
};
|
|
7597
|
-
}
|
|
7598
|
-
function getCrossOriginStringAs(as, input) {
|
|
7599
|
-
if ("font" === as) return "";
|
|
7600
|
-
if ("string" === typeof input)
|
|
7601
|
-
return "use-credentials" === input ? input : "";
|
|
7602
|
-
}
|
|
7603
|
-
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
7604
|
-
return null === thing
|
|
7605
|
-
? "`null`"
|
|
7606
|
-
: void 0 === thing
|
|
7607
|
-
? "`undefined`"
|
|
7608
|
-
: "" === thing
|
|
7609
|
-
? "an empty string"
|
|
7610
|
-
: 'something with type "' + typeof thing + '"';
|
|
7611
|
-
}
|
|
7612
|
-
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
7613
|
-
return null === thing
|
|
7614
|
-
? "`null`"
|
|
7615
|
-
: void 0 === thing
|
|
7616
|
-
? "`undefined`"
|
|
7617
|
-
: "" === thing
|
|
7618
|
-
? "an empty string"
|
|
7619
|
-
: "string" === typeof thing
|
|
7620
|
-
? JSON.stringify(thing)
|
|
7621
|
-
: "number" === typeof thing
|
|
7622
|
-
? "`" + thing + "`"
|
|
7623
|
-
: 'something with type "' + typeof thing + '"';
|
|
7624
|
-
}
|
|
7625
|
-
function resolveDispatcher() {
|
|
7626
|
-
var dispatcher = ReactSharedInternals.H;
|
|
7627
|
-
null === dispatcher &&
|
|
7628
|
-
console.error(
|
|
7629
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
7630
|
-
);
|
|
7631
|
-
return dispatcher;
|
|
7632
|
-
}
|
|
7633
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
7634
|
-
"function" ===
|
|
7635
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
7636
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
7637
|
-
var React = requireReact(),
|
|
7638
|
-
Internals = {
|
|
7639
|
-
d: {
|
|
7640
|
-
f: noop,
|
|
7641
|
-
r: function () {
|
|
7642
|
-
throw Error(
|
|
7643
|
-
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
7644
|
-
);
|
|
7645
|
-
},
|
|
7646
|
-
D: noop,
|
|
7647
|
-
C: noop,
|
|
7648
|
-
L: noop,
|
|
7649
|
-
m: noop,
|
|
7650
|
-
X: noop,
|
|
7651
|
-
S: noop,
|
|
7652
|
-
M: noop
|
|
7653
|
-
},
|
|
7654
|
-
p: 0,
|
|
7655
|
-
findDOMNode: null
|
|
7656
|
-
},
|
|
7657
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
7658
|
-
ReactSharedInternals =
|
|
7659
|
-
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
7660
|
-
("function" === typeof Map &&
|
|
7661
|
-
null != Map.prototype &&
|
|
7662
|
-
"function" === typeof Map.prototype.forEach &&
|
|
7663
|
-
"function" === typeof Set &&
|
|
7664
|
-
null != Set.prototype &&
|
|
7665
|
-
"function" === typeof Set.prototype.clear &&
|
|
7666
|
-
"function" === typeof Set.prototype.forEach) ||
|
|
7667
|
-
console.error(
|
|
7668
|
-
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
7669
|
-
);
|
|
7670
|
-
reactDom_development.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
7671
|
-
Internals;
|
|
7672
|
-
reactDom_development.createPortal = function (children, container) {
|
|
7673
|
-
var key =
|
|
7674
|
-
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
7675
|
-
if (
|
|
7676
|
-
!container ||
|
|
7677
|
-
(1 !== container.nodeType &&
|
|
7678
|
-
9 !== container.nodeType &&
|
|
7679
|
-
11 !== container.nodeType)
|
|
7680
|
-
)
|
|
7681
|
-
throw Error("Target container is not a DOM element.");
|
|
7682
|
-
return createPortal$1(children, container, null, key);
|
|
7683
|
-
};
|
|
7684
|
-
reactDom_development.flushSync = function (fn) {
|
|
7685
|
-
var previousTransition = ReactSharedInternals.T,
|
|
7686
|
-
previousUpdatePriority = Internals.p;
|
|
7687
|
-
try {
|
|
7688
|
-
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn))
|
|
7689
|
-
return fn();
|
|
7690
|
-
} finally {
|
|
7691
|
-
(ReactSharedInternals.T = previousTransition),
|
|
7692
|
-
(Internals.p = previousUpdatePriority),
|
|
7693
|
-
Internals.d.f() &&
|
|
7694
|
-
console.error(
|
|
7695
|
-
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
7696
|
-
);
|
|
7697
|
-
}
|
|
7698
|
-
};
|
|
7699
|
-
reactDom_development.preconnect = function (href, options) {
|
|
7700
|
-
"string" === typeof href && href
|
|
7701
|
-
? null != options && "object" !== typeof options
|
|
7702
|
-
? console.error(
|
|
7703
|
-
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
7704
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
7705
|
-
)
|
|
7706
|
-
: null != options &&
|
|
7707
|
-
"string" !== typeof options.crossOrigin &&
|
|
7708
|
-
console.error(
|
|
7709
|
-
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
7710
|
-
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
7711
|
-
)
|
|
7712
|
-
: console.error(
|
|
7713
|
-
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
7714
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
7715
|
-
);
|
|
7716
|
-
"string" === typeof href &&
|
|
7717
|
-
(options
|
|
7718
|
-
? ((options = options.crossOrigin),
|
|
7719
|
-
(options =
|
|
7720
|
-
"string" === typeof options
|
|
7721
|
-
? "use-credentials" === options
|
|
7722
|
-
? options
|
|
7723
|
-
: ""
|
|
7724
|
-
: void 0))
|
|
7725
|
-
: (options = null),
|
|
7726
|
-
Internals.d.C(href, options));
|
|
7727
|
-
};
|
|
7728
|
-
reactDom_development.prefetchDNS = function (href) {
|
|
7729
|
-
if ("string" !== typeof href || !href)
|
|
7730
|
-
console.error(
|
|
7731
|
-
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
7732
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
7733
|
-
);
|
|
7734
|
-
else if (1 < arguments.length) {
|
|
7735
|
-
var options = arguments[1];
|
|
7736
|
-
"object" === typeof options && options.hasOwnProperty("crossOrigin")
|
|
7737
|
-
? console.error(
|
|
7738
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
7739
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
7740
|
-
)
|
|
7741
|
-
: console.error(
|
|
7742
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
7743
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
7744
|
-
);
|
|
7745
|
-
}
|
|
7746
|
-
"string" === typeof href && Internals.d.D(href);
|
|
7747
|
-
};
|
|
7748
|
-
reactDom_development.preinit = function (href, options) {
|
|
7749
|
-
"string" === typeof href && href
|
|
7750
|
-
? null == options || "object" !== typeof options
|
|
7751
|
-
? console.error(
|
|
7752
|
-
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
7753
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
7754
|
-
)
|
|
7755
|
-
: "style" !== options.as &&
|
|
7756
|
-
"script" !== options.as &&
|
|
7757
|
-
console.error(
|
|
7758
|
-
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
7759
|
-
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
7760
|
-
)
|
|
7761
|
-
: console.error(
|
|
7762
|
-
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
7763
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
7764
|
-
);
|
|
7765
|
-
if (
|
|
7766
|
-
"string" === typeof href &&
|
|
7767
|
-
options &&
|
|
7768
|
-
"string" === typeof options.as
|
|
7769
|
-
) {
|
|
7770
|
-
var as = options.as,
|
|
7771
|
-
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
|
7772
|
-
integrity =
|
|
7773
|
-
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
7774
|
-
fetchPriority =
|
|
7775
|
-
"string" === typeof options.fetchPriority
|
|
7776
|
-
? options.fetchPriority
|
|
7777
|
-
: void 0;
|
|
7778
|
-
"style" === as
|
|
7779
|
-
? Internals.d.S(
|
|
7780
|
-
href,
|
|
7781
|
-
"string" === typeof options.precedence
|
|
7782
|
-
? options.precedence
|
|
7783
|
-
: void 0,
|
|
7784
|
-
{
|
|
7785
|
-
crossOrigin: crossOrigin,
|
|
7786
|
-
integrity: integrity,
|
|
7787
|
-
fetchPriority: fetchPriority
|
|
7788
|
-
}
|
|
7789
|
-
)
|
|
7790
|
-
: "script" === as &&
|
|
7791
|
-
Internals.d.X(href, {
|
|
7792
|
-
crossOrigin: crossOrigin,
|
|
7793
|
-
integrity: integrity,
|
|
7794
|
-
fetchPriority: fetchPriority,
|
|
7795
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
7796
|
-
});
|
|
7797
|
-
}
|
|
7798
|
-
};
|
|
7799
|
-
reactDom_development.preinitModule = function (href, options) {
|
|
7800
|
-
var encountered = "";
|
|
7801
|
-
("string" === typeof href && href) ||
|
|
7802
|
-
(encountered +=
|
|
7803
|
-
" The `href` argument encountered was " +
|
|
7804
|
-
getValueDescriptorExpectingObjectForWarning(href) +
|
|
7805
|
-
".");
|
|
7806
|
-
void 0 !== options && "object" !== typeof options
|
|
7807
|
-
? (encountered +=
|
|
7808
|
-
" The `options` argument encountered was " +
|
|
7809
|
-
getValueDescriptorExpectingObjectForWarning(options) +
|
|
7810
|
-
".")
|
|
7811
|
-
: options &&
|
|
7812
|
-
"as" in options &&
|
|
7813
|
-
"script" !== options.as &&
|
|
7814
|
-
(encountered +=
|
|
7815
|
-
" The `as` option encountered was " +
|
|
7816
|
-
getValueDescriptorExpectingEnumForWarning(options.as) +
|
|
7817
|
-
".");
|
|
7818
|
-
if (encountered)
|
|
7819
|
-
console.error(
|
|
7820
|
-
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
7821
|
-
encountered
|
|
7822
|
-
);
|
|
7823
|
-
else
|
|
7824
|
-
switch (
|
|
7825
|
-
((encountered =
|
|
7826
|
-
options && "string" === typeof options.as ? options.as : "script"),
|
|
7827
|
-
encountered)
|
|
7828
|
-
) {
|
|
7829
|
-
case "script":
|
|
7830
|
-
break;
|
|
7831
|
-
default:
|
|
7832
|
-
(encountered =
|
|
7833
|
-
getValueDescriptorExpectingEnumForWarning(encountered)),
|
|
7834
|
-
console.error(
|
|
7835
|
-
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
7836
|
-
encountered,
|
|
7837
|
-
href
|
|
7838
|
-
);
|
|
7839
|
-
}
|
|
7840
|
-
if ("string" === typeof href)
|
|
7841
|
-
if ("object" === typeof options && null !== options) {
|
|
7842
|
-
if (null == options.as || "script" === options.as)
|
|
7843
|
-
(encountered = getCrossOriginStringAs(
|
|
7844
|
-
options.as,
|
|
7845
|
-
options.crossOrigin
|
|
7846
|
-
)),
|
|
7847
|
-
Internals.d.M(href, {
|
|
7848
|
-
crossOrigin: encountered,
|
|
7849
|
-
integrity:
|
|
7850
|
-
"string" === typeof options.integrity
|
|
7851
|
-
? options.integrity
|
|
7852
|
-
: void 0,
|
|
7853
|
-
nonce:
|
|
7854
|
-
"string" === typeof options.nonce ? options.nonce : void 0
|
|
7855
|
-
});
|
|
7856
|
-
} else null == options && Internals.d.M(href);
|
|
7857
|
-
};
|
|
7858
|
-
reactDom_development.preload = function (href, options) {
|
|
7859
|
-
var encountered = "";
|
|
7860
|
-
("string" === typeof href && href) ||
|
|
7861
|
-
(encountered +=
|
|
7862
|
-
" The `href` argument encountered was " +
|
|
7863
|
-
getValueDescriptorExpectingObjectForWarning(href) +
|
|
7864
|
-
".");
|
|
7865
|
-
null == options || "object" !== typeof options
|
|
7866
|
-
? (encountered +=
|
|
7867
|
-
" The `options` argument encountered was " +
|
|
7868
|
-
getValueDescriptorExpectingObjectForWarning(options) +
|
|
7869
|
-
".")
|
|
7870
|
-
: ("string" === typeof options.as && options.as) ||
|
|
7871
|
-
(encountered +=
|
|
7872
|
-
" The `as` option encountered was " +
|
|
7873
|
-
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
7874
|
-
".");
|
|
7875
|
-
encountered &&
|
|
7876
|
-
console.error(
|
|
7877
|
-
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
7878
|
-
encountered
|
|
7879
|
-
);
|
|
7880
|
-
if (
|
|
7881
|
-
"string" === typeof href &&
|
|
7882
|
-
"object" === typeof options &&
|
|
7883
|
-
null !== options &&
|
|
7884
|
-
"string" === typeof options.as
|
|
7885
|
-
) {
|
|
7886
|
-
encountered = options.as;
|
|
7887
|
-
var crossOrigin = getCrossOriginStringAs(
|
|
7888
|
-
encountered,
|
|
7889
|
-
options.crossOrigin
|
|
7890
|
-
);
|
|
7891
|
-
Internals.d.L(href, encountered, {
|
|
7892
|
-
crossOrigin: crossOrigin,
|
|
7893
|
-
integrity:
|
|
7894
|
-
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
7895
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
7896
|
-
type: "string" === typeof options.type ? options.type : void 0,
|
|
7897
|
-
fetchPriority:
|
|
7898
|
-
"string" === typeof options.fetchPriority
|
|
7899
|
-
? options.fetchPriority
|
|
7900
|
-
: void 0,
|
|
7901
|
-
referrerPolicy:
|
|
7902
|
-
"string" === typeof options.referrerPolicy
|
|
7903
|
-
? options.referrerPolicy
|
|
7904
|
-
: void 0,
|
|
7905
|
-
imageSrcSet:
|
|
7906
|
-
"string" === typeof options.imageSrcSet
|
|
7907
|
-
? options.imageSrcSet
|
|
7908
|
-
: void 0,
|
|
7909
|
-
imageSizes:
|
|
7910
|
-
"string" === typeof options.imageSizes
|
|
7911
|
-
? options.imageSizes
|
|
7912
|
-
: void 0,
|
|
7913
|
-
media: "string" === typeof options.media ? options.media : void 0
|
|
7914
|
-
});
|
|
7915
|
-
}
|
|
7916
|
-
};
|
|
7917
|
-
reactDom_development.preloadModule = function (href, options) {
|
|
7918
|
-
var encountered = "";
|
|
7919
|
-
("string" === typeof href && href) ||
|
|
7920
|
-
(encountered +=
|
|
7921
|
-
" The `href` argument encountered was " +
|
|
7922
|
-
getValueDescriptorExpectingObjectForWarning(href) +
|
|
7923
|
-
".");
|
|
7924
|
-
void 0 !== options && "object" !== typeof options
|
|
7925
|
-
? (encountered +=
|
|
7926
|
-
" The `options` argument encountered was " +
|
|
7927
|
-
getValueDescriptorExpectingObjectForWarning(options) +
|
|
7928
|
-
".")
|
|
7929
|
-
: options &&
|
|
7930
|
-
"as" in options &&
|
|
7931
|
-
"string" !== typeof options.as &&
|
|
7932
|
-
(encountered +=
|
|
7933
|
-
" The `as` option encountered was " +
|
|
7934
|
-
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
7935
|
-
".");
|
|
7936
|
-
encountered &&
|
|
7937
|
-
console.error(
|
|
7938
|
-
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
7939
|
-
encountered
|
|
7940
|
-
);
|
|
7941
|
-
"string" === typeof href &&
|
|
7942
|
-
(options
|
|
7943
|
-
? ((encountered = getCrossOriginStringAs(
|
|
7944
|
-
options.as,
|
|
7945
|
-
options.crossOrigin
|
|
7946
|
-
)),
|
|
7947
|
-
Internals.d.m(href, {
|
|
7948
|
-
as:
|
|
7949
|
-
"string" === typeof options.as && "script" !== options.as
|
|
7950
|
-
? options.as
|
|
7951
|
-
: void 0,
|
|
7952
|
-
crossOrigin: encountered,
|
|
7953
|
-
integrity:
|
|
7954
|
-
"string" === typeof options.integrity
|
|
7955
|
-
? options.integrity
|
|
7956
|
-
: void 0
|
|
7957
|
-
}))
|
|
7958
|
-
: Internals.d.m(href));
|
|
7959
|
-
};
|
|
7960
|
-
reactDom_development.requestFormReset = function (form) {
|
|
7961
|
-
Internals.d.r(form);
|
|
7962
|
-
};
|
|
7963
|
-
reactDom_development.unstable_batchedUpdates = function (fn, a) {
|
|
7964
|
-
return fn(a);
|
|
7965
|
-
};
|
|
7966
|
-
reactDom_development.useFormState = function (action, initialState, permalink) {
|
|
7967
|
-
return resolveDispatcher().useFormState(action, initialState, permalink);
|
|
7968
|
-
};
|
|
7969
|
-
reactDom_development.useFormStatus = function () {
|
|
7970
|
-
return resolveDispatcher().useHostTransitionStatus();
|
|
7971
|
-
};
|
|
7972
|
-
reactDom_development.version = "19.1.0";
|
|
7973
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
7974
|
-
"function" ===
|
|
7975
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
7976
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
7977
|
-
})();
|
|
7978
|
-
return reactDom_development;
|
|
7979
|
-
}
|
|
7980
|
-
|
|
7981
|
-
var hasRequiredReactDom;
|
|
7982
|
-
|
|
7983
|
-
function requireReactDom () {
|
|
7984
|
-
if (hasRequiredReactDom) return reactDom.exports;
|
|
7985
|
-
hasRequiredReactDom = 1;
|
|
7986
|
-
|
|
7987
|
-
function checkDCE() {
|
|
7988
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
7989
|
-
if (
|
|
7990
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
|
7991
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
|
7992
|
-
) {
|
|
7993
|
-
return;
|
|
7994
|
-
}
|
|
7995
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7996
|
-
// This branch is unreachable because this function is only called
|
|
7997
|
-
// in production, but the condition is true only in development.
|
|
7998
|
-
// Therefore if the branch is still here, dead code elimination wasn't
|
|
7999
|
-
// properly applied.
|
|
8000
|
-
// Don't change the message. React DevTools relies on it. Also make sure
|
|
8001
|
-
// this message doesn't occur elsewhere in this function, or it will cause
|
|
8002
|
-
// a false positive.
|
|
8003
|
-
throw new Error('^_^');
|
|
8004
|
-
}
|
|
8005
|
-
try {
|
|
8006
|
-
// Verify that the code above has been dead code eliminated (DCE'd).
|
|
8007
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
8008
|
-
} catch (err) {
|
|
8009
|
-
// DevTools shouldn't crash React, no matter what.
|
|
8010
|
-
// We should still report in case we break this code.
|
|
8011
|
-
console.error(err);
|
|
8012
|
-
}
|
|
8013
|
-
}
|
|
8014
|
-
|
|
8015
|
-
if (process.env.NODE_ENV === 'production') {
|
|
8016
|
-
// DCE check should happen before ReactDOM bundle executes so that
|
|
8017
|
-
// DevTools can report bad minification during injection.
|
|
8018
|
-
checkDCE();
|
|
8019
|
-
reactDom.exports = requireReactDom_production();
|
|
8020
|
-
} else {
|
|
8021
|
-
reactDom.exports = requireReactDom_development();
|
|
8022
|
-
}
|
|
8023
|
-
return reactDom.exports;
|
|
8024
|
-
}
|
|
8025
|
-
|
|
8026
|
-
var reactDomExports = requireReactDom();
|
|
8027
|
-
var ReactDOM = /*@__PURE__*/getDefaultExportFromCjs(reactDomExports);
|
|
8028
|
-
|
|
8029
5504
|
function _arrayWithHoles$2(r) {
|
|
8030
5505
|
if (Array.isArray(r)) return r;
|
|
8031
5506
|
}
|
|
@@ -8095,10 +5570,10 @@ var PortalBase = {
|
|
|
8095
5570
|
}
|
|
8096
5571
|
};
|
|
8097
5572
|
|
|
8098
|
-
var Portal = /*#__PURE__*/
|
|
5573
|
+
var Portal = /*#__PURE__*/React.memo(function (inProps) {
|
|
8099
5574
|
var props = PortalBase.getProps(inProps);
|
|
8100
|
-
var context =
|
|
8101
|
-
var _React$useState =
|
|
5575
|
+
var context = React.useContext(PrimeReactContext);
|
|
5576
|
+
var _React$useState = React.useState(props.visible && DomHandler.isClient()),
|
|
8102
5577
|
_React$useState2 = _slicedToArray$2(_React$useState, 2),
|
|
8103
5578
|
mountedState = _React$useState2[0],
|
|
8104
5579
|
setMountedState = _React$useState2[1];
|
|
@@ -8304,23 +5779,23 @@ var TooltipBase = ComponentBase.extend({
|
|
|
8304
5779
|
|
|
8305
5780
|
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8306
5781
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty$4(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8307
|
-
var Tooltip = /*#__PURE__*/
|
|
5782
|
+
var Tooltip = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
8308
5783
|
var mergeProps = useMergeProps();
|
|
8309
|
-
var context =
|
|
5784
|
+
var context = React.useContext(PrimeReactContext);
|
|
8310
5785
|
var props = TooltipBase.getProps(inProps, context);
|
|
8311
|
-
var _React$useState =
|
|
5786
|
+
var _React$useState = React.useState(false),
|
|
8312
5787
|
_React$useState2 = _slicedToArray$1(_React$useState, 2),
|
|
8313
5788
|
visibleState = _React$useState2[0],
|
|
8314
5789
|
setVisibleState = _React$useState2[1];
|
|
8315
|
-
var _React$useState3 =
|
|
5790
|
+
var _React$useState3 = React.useState(props.position || 'right'),
|
|
8316
5791
|
_React$useState4 = _slicedToArray$1(_React$useState3, 2),
|
|
8317
5792
|
positionState = _React$useState4[0],
|
|
8318
5793
|
setPositionState = _React$useState4[1];
|
|
8319
|
-
var _React$useState5 =
|
|
5794
|
+
var _React$useState5 = React.useState(''),
|
|
8320
5795
|
_React$useState6 = _slicedToArray$1(_React$useState5, 2),
|
|
8321
5796
|
classNameState = _React$useState6[0],
|
|
8322
5797
|
setClassNameState = _React$useState6[1];
|
|
8323
|
-
var _React$useState7 =
|
|
5798
|
+
var _React$useState7 = React.useState(false),
|
|
8324
5799
|
_React$useState8 = _slicedToArray$1(_React$useState7, 2),
|
|
8325
5800
|
multipleFocusEvents = _React$useState8[0],
|
|
8326
5801
|
setMultipleFocusEvents = _React$useState8[1];
|
|
@@ -8355,13 +5830,13 @@ var Tooltip = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRe
|
|
|
8355
5830
|
when: isCloseOnEscape,
|
|
8356
5831
|
priority: [ESC_KEY_HANDLING_PRIORITIES.TOOLTIP, overlayDisplayOrder]
|
|
8357
5832
|
});
|
|
8358
|
-
var elementRef =
|
|
8359
|
-
var textRef =
|
|
8360
|
-
var currentTargetRef =
|
|
8361
|
-
var containerSize =
|
|
8362
|
-
var allowHide =
|
|
8363
|
-
var timeouts =
|
|
8364
|
-
var currentMouseEvent =
|
|
5833
|
+
var elementRef = React.useRef(null);
|
|
5834
|
+
var textRef = React.useRef(null);
|
|
5835
|
+
var currentTargetRef = React.useRef(null);
|
|
5836
|
+
var containerSize = React.useRef(null);
|
|
5837
|
+
var allowHide = React.useRef(true);
|
|
5838
|
+
var timeouts = React.useRef({});
|
|
5839
|
+
var currentMouseEvent = React.useRef(null);
|
|
8365
5840
|
var _useResizeListener = useResizeListener({
|
|
8366
5841
|
listener: function listener(event) {
|
|
8367
5842
|
!DomHandler.isTouchDevice() && hide(event);
|
|
@@ -8773,7 +6248,7 @@ var Tooltip = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRe
|
|
|
8773
6248
|
hide();
|
|
8774
6249
|
ZIndexUtils.clear(elementRef.current);
|
|
8775
6250
|
});
|
|
8776
|
-
|
|
6251
|
+
React.useImperativeHandle(ref, function () {
|
|
8777
6252
|
return {
|
|
8778
6253
|
props: props,
|
|
8779
6254
|
updateTargetEvents: updateTargetEvents,
|
|
@@ -8814,15 +6289,15 @@ var Tooltip = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRe
|
|
|
8814
6289
|
var textProps = mergeProps({
|
|
8815
6290
|
className: cx('text')
|
|
8816
6291
|
}, ptm('text'));
|
|
8817
|
-
return /*#__PURE__*/
|
|
6292
|
+
return /*#__PURE__*/React.createElement("div", _extends$9({
|
|
8818
6293
|
ref: elementRef
|
|
8819
|
-
}, rootProps), /*#__PURE__*/
|
|
6294
|
+
}, rootProps), /*#__PURE__*/React.createElement("div", arrowProps), /*#__PURE__*/React.createElement("div", _extends$9({
|
|
8820
6295
|
ref: textRef
|
|
8821
6296
|
}, textProps), empty && props.children));
|
|
8822
6297
|
};
|
|
8823
6298
|
if (visibleState) {
|
|
8824
6299
|
var element = createElement();
|
|
8825
|
-
return /*#__PURE__*/
|
|
6300
|
+
return /*#__PURE__*/React.createElement(Portal, {
|
|
8826
6301
|
element: element,
|
|
8827
6302
|
appendTo: props.appendTo,
|
|
8828
6303
|
visible: true
|
|
@@ -8908,9 +6383,9 @@ var BadgeBase = ComponentBase.extend({
|
|
|
8908
6383
|
|
|
8909
6384
|
function ownKeys$1$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8910
6385
|
function _objectSpread$1$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1$1(Object(t), true).forEach(function (r) { _defineProperty$3(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8911
|
-
var Badge = /*#__PURE__*/
|
|
6386
|
+
var Badge = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
8912
6387
|
var mergeProps = useMergeProps();
|
|
8913
|
-
var context =
|
|
6388
|
+
var context = React.useContext(PrimeReactContext);
|
|
8914
6389
|
var props = BadgeBase.getProps(inProps, context);
|
|
8915
6390
|
var _BadgeBase$setMetaDat = BadgeBase.setMetaData(_objectSpread$1$1({
|
|
8916
6391
|
props: props
|
|
@@ -8921,8 +6396,8 @@ var Badge = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef(
|
|
|
8921
6396
|
useHandleStyle(BadgeBase.css.styles, isUnstyled, {
|
|
8922
6397
|
name: 'badge'
|
|
8923
6398
|
});
|
|
8924
|
-
var elementRef =
|
|
8925
|
-
|
|
6399
|
+
var elementRef = React.useRef(null);
|
|
6400
|
+
React.useImperativeHandle(ref, function () {
|
|
8926
6401
|
return {
|
|
8927
6402
|
props: props,
|
|
8928
6403
|
getElement: function getElement() {
|
|
@@ -8935,7 +6410,7 @@ var Badge = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef(
|
|
|
8935
6410
|
style: props.style,
|
|
8936
6411
|
className: classNames(props.className, cx('root'))
|
|
8937
6412
|
}, BadgeBase.getOtherProps(props), ptm('root'));
|
|
8938
|
-
return /*#__PURE__*/
|
|
6413
|
+
return /*#__PURE__*/React.createElement("span", rootProps, props.value);
|
|
8939
6414
|
}));
|
|
8940
6415
|
Badge.displayName = 'Badge';
|
|
8941
6416
|
|
|
@@ -9003,9 +6478,9 @@ var ButtonBase = ComponentBase.extend({
|
|
|
9003
6478
|
|
|
9004
6479
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9005
6480
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty$3(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9006
|
-
var Button = /*#__PURE__*/
|
|
6481
|
+
var Button = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
9007
6482
|
var mergeProps = useMergeProps();
|
|
9008
|
-
var context =
|
|
6483
|
+
var context = React.useContext(PrimeReactContext);
|
|
9009
6484
|
var props = ButtonBase.getProps(inProps, context);
|
|
9010
6485
|
var disabled = props.disabled || props.loading;
|
|
9011
6486
|
var metaData = _objectSpread$3(_objectSpread$3({
|
|
@@ -9023,8 +6498,8 @@ var Button = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef
|
|
|
9023
6498
|
name: 'button',
|
|
9024
6499
|
styled: true
|
|
9025
6500
|
});
|
|
9026
|
-
var elementRef =
|
|
9027
|
-
|
|
6501
|
+
var elementRef = React.useRef(ref);
|
|
6502
|
+
React.useEffect(function () {
|
|
9028
6503
|
ObjectUtils.combinedRefs(elementRef, ref);
|
|
9029
6504
|
}, [elementRef, ref]);
|
|
9030
6505
|
if (props.visible === false) {
|
|
@@ -9043,7 +6518,7 @@ var Button = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef
|
|
|
9043
6518
|
className: className
|
|
9044
6519
|
})
|
|
9045
6520
|
}, ptm('loadingIcon'));
|
|
9046
|
-
var icon = props.loading ? props.loadingIcon || /*#__PURE__*/
|
|
6521
|
+
var icon = props.loading ? props.loadingIcon || /*#__PURE__*/React.createElement(SpinnerIcon, _extends$8({}, loadingIconProps, {
|
|
9047
6522
|
spin: true
|
|
9048
6523
|
})) : props.icon;
|
|
9049
6524
|
return IconUtils.getJSXIcon(icon, _objectSpread$3({}, iconsProps), {
|
|
@@ -9055,9 +6530,9 @@ var Button = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef
|
|
|
9055
6530
|
className: cx('label')
|
|
9056
6531
|
}, ptm('label'));
|
|
9057
6532
|
if (props.label) {
|
|
9058
|
-
return /*#__PURE__*/
|
|
6533
|
+
return /*#__PURE__*/React.createElement("span", labelProps, props.label);
|
|
9059
6534
|
}
|
|
9060
|
-
return !props.children && !props.label && /*#__PURE__*/
|
|
6535
|
+
return !props.children && !props.label && /*#__PURE__*/React.createElement("span", _extends$8({}, labelProps, {
|
|
9061
6536
|
dangerouslySetInnerHTML: {
|
|
9062
6537
|
__html: ' '
|
|
9063
6538
|
}
|
|
@@ -9073,7 +6548,7 @@ var Button = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef
|
|
|
9073
6548
|
parent: metaData
|
|
9074
6549
|
}
|
|
9075
6550
|
}, ptm('badge'));
|
|
9076
|
-
return /*#__PURE__*/
|
|
6551
|
+
return /*#__PURE__*/React.createElement(Badge, badgeProps, props.badge);
|
|
9077
6552
|
}
|
|
9078
6553
|
return null;
|
|
9079
6554
|
};
|
|
@@ -9098,7 +6573,7 @@ var Button = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardRef
|
|
|
9098
6573
|
})),
|
|
9099
6574
|
disabled: disabled
|
|
9100
6575
|
}, ButtonBase.getOtherProps(props), ptm('root'));
|
|
9101
|
-
return /*#__PURE__*/
|
|
6576
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", rootProps, icon, label, props.children, badge, /*#__PURE__*/React.createElement(Ripple, null)), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends$8({
|
|
9102
6577
|
target: elementRef,
|
|
9103
6578
|
content: props.tooltip,
|
|
9104
6579
|
pt: ptm('tooltip')
|
|
@@ -9116,16 +6591,16 @@ function _extends$7() {
|
|
|
9116
6591
|
}, _extends$7.apply(null, arguments);
|
|
9117
6592
|
}
|
|
9118
6593
|
|
|
9119
|
-
var CalendarIcon = /*#__PURE__*/
|
|
6594
|
+
var CalendarIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
9120
6595
|
var pti = IconBase.getPTI(inProps);
|
|
9121
|
-
return /*#__PURE__*/
|
|
6596
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
9122
6597
|
ref: ref,
|
|
9123
6598
|
width: "14",
|
|
9124
6599
|
height: "14",
|
|
9125
6600
|
viewBox: "0 0 14 14",
|
|
9126
6601
|
fill: "none",
|
|
9127
6602
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9128
|
-
}, pti), /*#__PURE__*/
|
|
6603
|
+
}, pti), /*#__PURE__*/React.createElement("path", {
|
|
9129
6604
|
d: "M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z",
|
|
9130
6605
|
fill: "currentColor"
|
|
9131
6606
|
}));
|
|
@@ -9142,16 +6617,16 @@ function _extends$6() {
|
|
|
9142
6617
|
}, _extends$6.apply(null, arguments);
|
|
9143
6618
|
}
|
|
9144
6619
|
|
|
9145
|
-
var ChevronDownIcon = /*#__PURE__*/
|
|
6620
|
+
var ChevronDownIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
9146
6621
|
var pti = IconBase.getPTI(inProps);
|
|
9147
|
-
return /*#__PURE__*/
|
|
6622
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
9148
6623
|
ref: ref,
|
|
9149
6624
|
width: "14",
|
|
9150
6625
|
height: "14",
|
|
9151
6626
|
viewBox: "0 0 14 14",
|
|
9152
6627
|
fill: "none",
|
|
9153
6628
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9154
|
-
}, pti), /*#__PURE__*/
|
|
6629
|
+
}, pti), /*#__PURE__*/React.createElement("path", {
|
|
9155
6630
|
d: "M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",
|
|
9156
6631
|
fill: "currentColor"
|
|
9157
6632
|
}));
|
|
@@ -9168,16 +6643,16 @@ function _extends$5() {
|
|
|
9168
6643
|
}, _extends$5.apply(null, arguments);
|
|
9169
6644
|
}
|
|
9170
6645
|
|
|
9171
|
-
var ChevronLeftIcon = /*#__PURE__*/
|
|
6646
|
+
var ChevronLeftIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
9172
6647
|
var pti = IconBase.getPTI(inProps);
|
|
9173
|
-
return /*#__PURE__*/
|
|
6648
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
9174
6649
|
ref: ref,
|
|
9175
6650
|
width: "14",
|
|
9176
6651
|
height: "14",
|
|
9177
6652
|
viewBox: "0 0 14 14",
|
|
9178
6653
|
fill: "none",
|
|
9179
6654
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9180
|
-
}, pti), /*#__PURE__*/
|
|
6655
|
+
}, pti), /*#__PURE__*/React.createElement("path", {
|
|
9181
6656
|
d: "M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z",
|
|
9182
6657
|
fill: "currentColor"
|
|
9183
6658
|
}));
|
|
@@ -9194,16 +6669,16 @@ function _extends$4() {
|
|
|
9194
6669
|
}, _extends$4.apply(null, arguments);
|
|
9195
6670
|
}
|
|
9196
6671
|
|
|
9197
|
-
var ChevronRightIcon = /*#__PURE__*/
|
|
6672
|
+
var ChevronRightIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
9198
6673
|
var pti = IconBase.getPTI(inProps);
|
|
9199
|
-
return /*#__PURE__*/
|
|
6674
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
9200
6675
|
ref: ref,
|
|
9201
6676
|
width: "14",
|
|
9202
6677
|
height: "14",
|
|
9203
6678
|
viewBox: "0 0 14 14",
|
|
9204
6679
|
fill: "none",
|
|
9205
6680
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9206
|
-
}, pti), /*#__PURE__*/
|
|
6681
|
+
}, pti), /*#__PURE__*/React.createElement("path", {
|
|
9207
6682
|
d: "M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",
|
|
9208
6683
|
fill: "currentColor"
|
|
9209
6684
|
}));
|
|
@@ -9220,16 +6695,16 @@ function _extends$3() {
|
|
|
9220
6695
|
}, _extends$3.apply(null, arguments);
|
|
9221
6696
|
}
|
|
9222
6697
|
|
|
9223
|
-
var ChevronUpIcon = /*#__PURE__*/
|
|
6698
|
+
var ChevronUpIcon = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
9224
6699
|
var pti = IconBase.getPTI(inProps);
|
|
9225
|
-
return /*#__PURE__*/
|
|
6700
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
9226
6701
|
ref: ref,
|
|
9227
6702
|
width: "14",
|
|
9228
6703
|
height: "14",
|
|
9229
6704
|
viewBox: "0 0 14 14",
|
|
9230
6705
|
fill: "none",
|
|
9231
6706
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9232
|
-
}, pti), /*#__PURE__*/
|
|
6707
|
+
}, pti), /*#__PURE__*/React.createElement("path", {
|
|
9233
6708
|
d: "M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z",
|
|
9234
6709
|
fill: "currentColor"
|
|
9235
6710
|
}));
|
|
@@ -9423,9 +6898,9 @@ var InputTextBase = ComponentBase.extend({
|
|
|
9423
6898
|
|
|
9424
6899
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9425
6900
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9426
|
-
var InputText = /*#__PURE__*/
|
|
6901
|
+
var InputText = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
9427
6902
|
var mergeProps = useMergeProps();
|
|
9428
|
-
var context =
|
|
6903
|
+
var context = React.useContext(PrimeReactContext);
|
|
9429
6904
|
var props = InputTextBase.getProps(inProps, context);
|
|
9430
6905
|
var _InputTextBase$setMet = InputTextBase.setMetaData(_objectSpread$2(_objectSpread$2({
|
|
9431
6906
|
props: props
|
|
@@ -9442,7 +6917,7 @@ var InputText = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forward
|
|
|
9442
6917
|
name: 'inputtext',
|
|
9443
6918
|
styled: true
|
|
9444
6919
|
});
|
|
9445
|
-
var elementRef =
|
|
6920
|
+
var elementRef = React.useRef(ref);
|
|
9446
6921
|
var onKeyDown = function onKeyDown(event) {
|
|
9447
6922
|
props.onKeyDown && props.onKeyDown(event);
|
|
9448
6923
|
if (props.keyfilter) {
|
|
@@ -9472,14 +6947,14 @@ var InputText = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forward
|
|
|
9472
6947
|
KeyFilter.onPaste(event, props.keyfilter, props.validateOnly);
|
|
9473
6948
|
}
|
|
9474
6949
|
};
|
|
9475
|
-
|
|
6950
|
+
React.useEffect(function () {
|
|
9476
6951
|
ObjectUtils.combinedRefs(elementRef, ref);
|
|
9477
6952
|
}, [elementRef, ref]);
|
|
9478
|
-
var isFilled =
|
|
6953
|
+
var isFilled = React.useMemo(function () {
|
|
9479
6954
|
return ObjectUtils.isNotEmpty(props.value) || ObjectUtils.isNotEmpty(props.defaultValue);
|
|
9480
6955
|
}, [props.value, props.defaultValue]);
|
|
9481
6956
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
9482
|
-
|
|
6957
|
+
React.useEffect(function () {
|
|
9483
6958
|
var _elementRef$current;
|
|
9484
6959
|
if (isFilled || (_elementRef$current = elementRef.current) !== null && _elementRef$current !== void 0 && _elementRef$current.value) {
|
|
9485
6960
|
DomHandler.addClass(elementRef.current, 'p-filled');
|
|
@@ -9497,9 +6972,9 @@ var InputText = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forward
|
|
|
9497
6972
|
onKeyDown: onKeyDown,
|
|
9498
6973
|
onPaste: onPaste
|
|
9499
6974
|
}, InputTextBase.getOtherProps(props), ptm('root'));
|
|
9500
|
-
return /*#__PURE__*/
|
|
6975
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", _extends$2({
|
|
9501
6976
|
ref: elementRef
|
|
9502
|
-
}, rootProps)), hasTooltip && /*#__PURE__*/
|
|
6977
|
+
}, rootProps)), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends$2({
|
|
9503
6978
|
target: elementRef,
|
|
9504
6979
|
content: props.tooltip,
|
|
9505
6980
|
pt: ptm('tooltip')
|
|
@@ -9604,7 +7079,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
9604
7079
|
exitActive: PropTypes.string
|
|
9605
7080
|
})]) : null;
|
|
9606
7081
|
|
|
9607
|
-
var TransitionGroupContext =
|
|
7082
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
9608
7083
|
|
|
9609
7084
|
var forceReflow = function forceReflow(node) {
|
|
9610
7085
|
return node.scrollTop;
|
|
@@ -10006,14 +7481,14 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
10006
7481
|
return (
|
|
10007
7482
|
/*#__PURE__*/
|
|
10008
7483
|
// allows for nested Transitions
|
|
10009
|
-
|
|
7484
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
10010
7485
|
value: null
|
|
10011
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
7486
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
10012
7487
|
);
|
|
10013
7488
|
};
|
|
10014
7489
|
|
|
10015
7490
|
return Transition;
|
|
10016
|
-
}(
|
|
7491
|
+
}(React__default.Component);
|
|
10017
7492
|
|
|
10018
7493
|
Transition.contextType = TransitionGroupContext;
|
|
10019
7494
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -10480,7 +7955,7 @@ var CSSTransition$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
10480
7955
|
_this$props.classNames;
|
|
10481
7956
|
var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
|
|
10482
7957
|
|
|
10483
|
-
return /*#__PURE__*/
|
|
7958
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({}, props, {
|
|
10484
7959
|
onEnter: this.onEnter,
|
|
10485
7960
|
onEntered: this.onEntered,
|
|
10486
7961
|
onEntering: this.onEntering,
|
|
@@ -10491,7 +7966,7 @@ var CSSTransition$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
10491
7966
|
};
|
|
10492
7967
|
|
|
10493
7968
|
return CSSTransition;
|
|
10494
|
-
}(
|
|
7969
|
+
}(React__default.Component);
|
|
10495
7970
|
|
|
10496
7971
|
CSSTransition$1.defaultProps = {
|
|
10497
7972
|
classNames: ''
|
|
@@ -10677,9 +8152,9 @@ var CSSTransitionBase = {
|
|
|
10677
8152
|
|
|
10678
8153
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10679
8154
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10680
|
-
var CSSTransition = /*#__PURE__*/
|
|
8155
|
+
var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
10681
8156
|
var props = CSSTransitionBase.getProps(inProps);
|
|
10682
|
-
var context =
|
|
8157
|
+
var context = React.useContext(PrimeReactContext);
|
|
10683
8158
|
var disabled = props.disabled || props.options && props.options.disabled || context && !context.cssTransition || !PrimeReact.cssTransition;
|
|
10684
8159
|
var onEnter = function onEnter(node, isAppearing) {
|
|
10685
8160
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
@@ -10740,7 +8215,7 @@ var CSSTransition = /*#__PURE__*/reactExports.forwardRef(function (inProps, ref)
|
|
|
10740
8215
|
unmountOnExit: props.unmountOnExit
|
|
10741
8216
|
};
|
|
10742
8217
|
var mergedProps = _objectSpread$1(_objectSpread$1(_objectSpread$1({}, mutableProps), props.options || {}), immutableProps);
|
|
10743
|
-
return /*#__PURE__*/
|
|
8218
|
+
return /*#__PURE__*/React.createElement(CSSTransition$1, mergedProps, props.children);
|
|
10744
8219
|
});
|
|
10745
8220
|
CSSTransition.displayName = 'CSSTransition';
|
|
10746
8221
|
|
|
@@ -11051,7 +8526,7 @@ var CalendarBase = ComponentBase.extend({
|
|
|
11051
8526
|
}
|
|
11052
8527
|
});
|
|
11053
8528
|
|
|
11054
|
-
var CalendarPanel = /*#__PURE__*/
|
|
8529
|
+
var CalendarPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11055
8530
|
var cx = props.cx;
|
|
11056
8531
|
var mergeProps = useMergeProps();
|
|
11057
8532
|
var createElement = function createElement() {
|
|
@@ -11085,14 +8560,14 @@ var CalendarPanel = /*#__PURE__*/reactExports.forwardRef(function (props, ref) {
|
|
|
11085
8560
|
}, props.ptm('transition', {
|
|
11086
8561
|
hostName: props.hostName
|
|
11087
8562
|
}));
|
|
11088
|
-
return /*#__PURE__*/
|
|
8563
|
+
return /*#__PURE__*/React.createElement(CSSTransition, _extends({
|
|
11089
8564
|
nodeRef: ref
|
|
11090
|
-
}, transitionProps), /*#__PURE__*/
|
|
8565
|
+
}, transitionProps), /*#__PURE__*/React.createElement("div", _extends({
|
|
11091
8566
|
ref: ref
|
|
11092
8567
|
}, panelProps), props.children));
|
|
11093
8568
|
};
|
|
11094
8569
|
var element = createElement();
|
|
11095
|
-
return props.inline ? element : /*#__PURE__*/
|
|
8570
|
+
return props.inline ? element : /*#__PURE__*/React.createElement(Portal, {
|
|
11096
8571
|
element: element,
|
|
11097
8572
|
appendTo: props.appendTo
|
|
11098
8573
|
});
|
|
@@ -11104,23 +8579,23 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11104
8579
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11105
8580
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
11106
8581
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11107
|
-
var Calendar = /*#__PURE__*/
|
|
8582
|
+
var Calendar = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
11108
8583
|
var mergeProps = useMergeProps();
|
|
11109
|
-
var context =
|
|
8584
|
+
var context = React.useContext(PrimeReactContext);
|
|
11110
8585
|
var props = CalendarBase.getProps(inProps, context);
|
|
11111
|
-
var _React$useState =
|
|
8586
|
+
var _React$useState = React.useState(false),
|
|
11112
8587
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
11113
8588
|
focusedState = _React$useState2[0],
|
|
11114
8589
|
setFocusedState = _React$useState2[1];
|
|
11115
|
-
var _React$useState3 =
|
|
8590
|
+
var _React$useState3 = React.useState(false),
|
|
11116
8591
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
11117
8592
|
overlayVisibleState = _React$useState4[0],
|
|
11118
8593
|
setOverlayVisibleState = _React$useState4[1];
|
|
11119
|
-
var _React$useState5 =
|
|
8594
|
+
var _React$useState5 = React.useState(null),
|
|
11120
8595
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
11121
8596
|
viewDateState = _React$useState6[0],
|
|
11122
8597
|
setViewDateState = _React$useState6[1];
|
|
11123
|
-
var _React$useState7 =
|
|
8598
|
+
var _React$useState7 = React.useState(props.id),
|
|
11124
8599
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
11125
8600
|
idState = _React$useState8[0],
|
|
11126
8601
|
setIdState = _React$useState8[1];
|
|
@@ -11148,35 +8623,35 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
11148
8623
|
useHandleStyle(CalendarBase.css.styles, isUnstyled, {
|
|
11149
8624
|
name: 'calendar'
|
|
11150
8625
|
});
|
|
11151
|
-
var elementRef =
|
|
11152
|
-
var overlayRef =
|
|
11153
|
-
var inputRef =
|
|
11154
|
-
var navigation =
|
|
11155
|
-
var ignoreFocusFunctionality =
|
|
11156
|
-
var timePickerTimer =
|
|
11157
|
-
var viewStateChanged =
|
|
11158
|
-
var touchUIMask =
|
|
11159
|
-
var overlayEventListener =
|
|
11160
|
-
var touchUIMaskClickListener =
|
|
11161
|
-
var isOverlayClicked =
|
|
11162
|
-
var previousButton =
|
|
11163
|
-
var nextButton =
|
|
11164
|
-
var viewChangedWithKeyDown =
|
|
11165
|
-
var onChangeRef =
|
|
11166
|
-
var isClearClicked =
|
|
11167
|
-
var _React$useState9 =
|
|
8626
|
+
var elementRef = React.useRef(null);
|
|
8627
|
+
var overlayRef = React.useRef(null);
|
|
8628
|
+
var inputRef = React.useRef(props.inputRef);
|
|
8629
|
+
var navigation = React.useRef(null);
|
|
8630
|
+
var ignoreFocusFunctionality = React.useRef(false);
|
|
8631
|
+
var timePickerTimer = React.useRef(null);
|
|
8632
|
+
var viewStateChanged = React.useRef(false);
|
|
8633
|
+
var touchUIMask = React.useRef(null);
|
|
8634
|
+
var overlayEventListener = React.useRef(null);
|
|
8635
|
+
var touchUIMaskClickListener = React.useRef(null);
|
|
8636
|
+
var isOverlayClicked = React.useRef(false);
|
|
8637
|
+
var previousButton = React.useRef(false);
|
|
8638
|
+
var nextButton = React.useRef(false);
|
|
8639
|
+
var viewChangedWithKeyDown = React.useRef(false);
|
|
8640
|
+
var onChangeRef = React.useRef(null);
|
|
8641
|
+
var isClearClicked = React.useRef(false);
|
|
8642
|
+
var _React$useState9 = React.useState('date'),
|
|
11168
8643
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
11169
8644
|
currentView = _React$useState10[0],
|
|
11170
8645
|
setCurrentView = _React$useState10[1];
|
|
11171
|
-
var _React$useState11 =
|
|
8646
|
+
var _React$useState11 = React.useState(null),
|
|
11172
8647
|
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
11173
8648
|
currentMonth = _React$useState12[0],
|
|
11174
8649
|
setCurrentMonth = _React$useState12[1];
|
|
11175
|
-
var _React$useState13 =
|
|
8650
|
+
var _React$useState13 = React.useState(null),
|
|
11176
8651
|
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
11177
8652
|
currentYear = _React$useState14[0],
|
|
11178
8653
|
setCurrentYear = _React$useState14[1];
|
|
11179
|
-
var _React$useState15 =
|
|
8654
|
+
var _React$useState15 = React.useState([]),
|
|
11180
8655
|
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
11181
8656
|
yearOptions = _React$useState16[0],
|
|
11182
8657
|
setYearOptions = _React$useState16[1];
|
|
@@ -13703,7 +11178,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
13703
11178
|
var isInMaxYear = function isInMaxYear(viewDate) {
|
|
13704
11179
|
return props.maxDate && props.maxDate.getFullYear() === viewDate.getFullYear();
|
|
13705
11180
|
};
|
|
13706
|
-
|
|
11181
|
+
React.useEffect(function () {
|
|
13707
11182
|
ObjectUtils.combinedRefs(inputRef, props.inputRef);
|
|
13708
11183
|
}, [inputRef, props.inputRef]);
|
|
13709
11184
|
useMountEffect(function () {
|
|
@@ -13737,11 +11212,11 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
13737
11212
|
}, 200);
|
|
13738
11213
|
}
|
|
13739
11214
|
});
|
|
13740
|
-
|
|
11215
|
+
React.useEffect(function () {
|
|
13741
11216
|
// see https://github.com/primefaces/primereact/issues/4030
|
|
13742
11217
|
onChangeRef.current = props.onChange;
|
|
13743
11218
|
}, [props.onChange]);
|
|
13744
|
-
|
|
11219
|
+
React.useEffect(function () {
|
|
13745
11220
|
var unbindMaskEvents = null;
|
|
13746
11221
|
if (props.mask) {
|
|
13747
11222
|
unbindMaskEvents = mask(inputRef.current, {
|
|
@@ -13843,7 +11318,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
13843
11318
|
}
|
|
13844
11319
|
ZIndexUtils.clear(overlayRef.current);
|
|
13845
11320
|
});
|
|
13846
|
-
|
|
11321
|
+
React.useImperativeHandle(ref, function () {
|
|
13847
11322
|
return {
|
|
13848
11323
|
props: props,
|
|
13849
11324
|
show: show,
|
|
@@ -13898,7 +11373,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
13898
11373
|
var previousIconProps = mergeProps({
|
|
13899
11374
|
className: cx('previousIcon')
|
|
13900
11375
|
}, ptm('previousIcon'));
|
|
13901
|
-
var icon = props.prevIcon || /*#__PURE__*/
|
|
11376
|
+
var icon = props.prevIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, previousIconProps);
|
|
13902
11377
|
var backwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, previousIconProps), {
|
|
13903
11378
|
props: props
|
|
13904
11379
|
});
|
|
@@ -13912,9 +11387,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
13912
11387
|
className: cx('previousButton'),
|
|
13913
11388
|
'aria-label': previousButtonLabel
|
|
13914
11389
|
}, navigatorProps), ptm('previousButton'));
|
|
13915
|
-
return /*#__PURE__*/
|
|
11390
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
13916
11391
|
ref: previousButton
|
|
13917
|
-
}, previousButtonProps), backwardNavigatorIcon, /*#__PURE__*/
|
|
11392
|
+
}, previousButtonProps), backwardNavigatorIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
13918
11393
|
};
|
|
13919
11394
|
var createForwardNavigator = function createForwardNavigator(isVisible) {
|
|
13920
11395
|
var navigatorProps = isVisible ? {
|
|
@@ -13930,7 +11405,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
13930
11405
|
var nextIconProps = mergeProps({
|
|
13931
11406
|
className: cx('nextIcon')
|
|
13932
11407
|
}, ptm('nextIcon'));
|
|
13933
|
-
var icon = props.nextIcon || /*#__PURE__*/
|
|
11408
|
+
var icon = props.nextIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, nextIconProps);
|
|
13934
11409
|
var forwardNavigatorIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, nextIconProps), {
|
|
13935
11410
|
props: props
|
|
13936
11411
|
});
|
|
@@ -13944,9 +11419,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
13944
11419
|
className: cx('nextButton'),
|
|
13945
11420
|
'aria-label': nextButtonLabel
|
|
13946
11421
|
}, navigatorProps), ptm('nextButton'));
|
|
13947
|
-
return /*#__PURE__*/
|
|
11422
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
13948
11423
|
ref: nextButton
|
|
13949
|
-
}, nextButtonProps), forwardNavigatorIcon, /*#__PURE__*/
|
|
11424
|
+
}, nextButtonProps), forwardNavigatorIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
13950
11425
|
};
|
|
13951
11426
|
var renderMonthsNavigator = function renderMonthsNavigator(index) {
|
|
13952
11427
|
return props.monthNavigator && props.view !== 'month' && (props.numberOfMonths === 1 || index === 0);
|
|
@@ -13975,11 +11450,11 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
13975
11450
|
},
|
|
13976
11451
|
value: viewMonth
|
|
13977
11452
|
}, ptm('select'));
|
|
13978
|
-
var _content = /*#__PURE__*/
|
|
11453
|
+
var _content = /*#__PURE__*/React.createElement("select", selectProps, displayedMonthOptions.map(function (option) {
|
|
13979
11454
|
var optionProps = mergeProps({
|
|
13980
11455
|
value: option.value
|
|
13981
11456
|
}, ptm('option'));
|
|
13982
|
-
return /*#__PURE__*/
|
|
11457
|
+
return /*#__PURE__*/React.createElement("option", _extends({}, optionProps, {
|
|
13983
11458
|
key: option.label
|
|
13984
11459
|
}), option.label);
|
|
13985
11460
|
}));
|
|
@@ -14004,7 +11479,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14004
11479
|
onClick: switchToMonthView,
|
|
14005
11480
|
disabled: switchViewButtonDisabled()
|
|
14006
11481
|
}, ptm('monthTitle'));
|
|
14007
|
-
return currentView === 'date' && /*#__PURE__*/
|
|
11482
|
+
return currentView === 'date' && /*#__PURE__*/React.createElement("button", monthTitleProps, monthNames[month]);
|
|
14008
11483
|
};
|
|
14009
11484
|
var createTitleYearElement = function createTitleYearElement(metaYear) {
|
|
14010
11485
|
var viewDate = getViewDate();
|
|
@@ -14035,11 +11510,11 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14035
11510
|
},
|
|
14036
11511
|
value: displayYear
|
|
14037
11512
|
}, ptm('select'));
|
|
14038
|
-
var _content2 = /*#__PURE__*/
|
|
11513
|
+
var _content2 = /*#__PURE__*/React.createElement("select", selectProps, displayedYearNames.map(function (year) {
|
|
14039
11514
|
var optionProps = mergeProps({
|
|
14040
11515
|
value: year
|
|
14041
11516
|
}, ptm('option'));
|
|
14042
|
-
return /*#__PURE__*/
|
|
11517
|
+
return /*#__PURE__*/React.createElement("option", _extends({}, optionProps, {
|
|
14043
11518
|
key: year
|
|
14044
11519
|
}), year);
|
|
14045
11520
|
}));
|
|
@@ -14072,7 +11547,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14072
11547
|
},
|
|
14073
11548
|
disabled: switchViewButtonDisabled()
|
|
14074
11549
|
}, ptm('yearTitle'));
|
|
14075
|
-
return currentView !== 'year' && /*#__PURE__*/
|
|
11550
|
+
return currentView !== 'year' && /*#__PURE__*/React.createElement("button", yearTitleProps, displayYear);
|
|
14076
11551
|
};
|
|
14077
11552
|
var createTitleDecadeElement = function createTitleDecadeElement() {
|
|
14078
11553
|
var years = yearPickerValues();
|
|
@@ -14081,7 +11556,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14081
11556
|
}, ptm('decadeTitle'));
|
|
14082
11557
|
if (currentView === 'year') {
|
|
14083
11558
|
var decadeTitleTextProps = mergeProps(ptm('decadeTitleText'));
|
|
14084
|
-
return /*#__PURE__*/
|
|
11559
|
+
return /*#__PURE__*/React.createElement("span", decadeTitleProps, props.decadeTemplate ? props.decadeTemplate(years) : /*#__PURE__*/React.createElement("span", decadeTitleTextProps, "".concat(yearPickerValues()[0], " - ").concat(yearPickerValues()[yearPickerValues().length - 1])));
|
|
14085
11560
|
}
|
|
14086
11561
|
return null;
|
|
14087
11562
|
};
|
|
@@ -14093,7 +11568,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14093
11568
|
className: cx('title')
|
|
14094
11569
|
}, ptm('title'));
|
|
14095
11570
|
var showMonthAfterYear = localeOption('showMonthAfterYear', props.locale);
|
|
14096
|
-
return /*#__PURE__*/
|
|
11571
|
+
return /*#__PURE__*/React.createElement("div", titleProps, showMonthAfterYear ? year : month, showMonthAfterYear ? month : year, decade);
|
|
14097
11572
|
};
|
|
14098
11573
|
var createDayNames = function createDayNames(weekDays) {
|
|
14099
11574
|
var weekDayProps = mergeProps(ptm('weekDay'));
|
|
@@ -14101,9 +11576,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14101
11576
|
scope: 'col'
|
|
14102
11577
|
}, ptm('tableHeaderCell'));
|
|
14103
11578
|
var dayNames = weekDays.map(function (weekDay, index) {
|
|
14104
|
-
return /*#__PURE__*/
|
|
11579
|
+
return /*#__PURE__*/React.createElement("th", _extends({}, tableHeaderCellProps, {
|
|
14105
11580
|
key: "".concat(weekDay, "-").concat(index)
|
|
14106
|
-
}), /*#__PURE__*/
|
|
11581
|
+
}), /*#__PURE__*/React.createElement("span", weekDayProps, weekDay));
|
|
14107
11582
|
});
|
|
14108
11583
|
if (props.showWeek) {
|
|
14109
11584
|
var weekHeaderProps = mergeProps({
|
|
@@ -14116,9 +11591,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14116
11591
|
}
|
|
14117
11592
|
}));
|
|
14118
11593
|
var weekLabel = mergeProps(ptm('weekLabel'));
|
|
14119
|
-
var weekHeader = /*#__PURE__*/
|
|
11594
|
+
var weekHeader = /*#__PURE__*/React.createElement("th", _extends({}, weekHeaderProps, {
|
|
14120
11595
|
key: "wn"
|
|
14121
|
-
}), /*#__PURE__*/
|
|
11596
|
+
}), /*#__PURE__*/React.createElement("span", weekLabel, localeOption('weekHeader', props.locale)));
|
|
14122
11597
|
return [weekHeader].concat(_toConsumableArray(dayNames));
|
|
14123
11598
|
}
|
|
14124
11599
|
return dayNames;
|
|
@@ -14146,7 +11621,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14146
11621
|
disabled: !date.selectable
|
|
14147
11622
|
}
|
|
14148
11623
|
}));
|
|
14149
|
-
return /*#__PURE__*/
|
|
11624
|
+
return /*#__PURE__*/React.createElement("span", dayLabelProps, content, selected && /*#__PURE__*/React.createElement("div", {
|
|
14150
11625
|
"aria-live": "polite",
|
|
14151
11626
|
className: "p-hidden-accessible",
|
|
14152
11627
|
"data-p-hidden-accessible": true,
|
|
@@ -14179,7 +11654,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14179
11654
|
otherMonth: date.otherMonth
|
|
14180
11655
|
}
|
|
14181
11656
|
}));
|
|
14182
|
-
return /*#__PURE__*/
|
|
11657
|
+
return /*#__PURE__*/React.createElement("td", _extends({}, dayProps, {
|
|
14183
11658
|
key: date.day
|
|
14184
11659
|
}), content);
|
|
14185
11660
|
});
|
|
@@ -14195,9 +11670,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14195
11670
|
disabled: props.showWeek
|
|
14196
11671
|
}
|
|
14197
11672
|
}));
|
|
14198
|
-
var weekNumberCell = /*#__PURE__*/
|
|
11673
|
+
var weekNumberCell = /*#__PURE__*/React.createElement("td", _extends({}, weekNumberProps, {
|
|
14199
11674
|
key: 'wn' + weekNumber
|
|
14200
|
-
}), /*#__PURE__*/
|
|
11675
|
+
}), /*#__PURE__*/React.createElement("span", weekLabelContainerProps, weekNumber));
|
|
14201
11676
|
return [weekNumberCell].concat(_toConsumableArray(week));
|
|
14202
11677
|
}
|
|
14203
11678
|
return week;
|
|
@@ -14205,7 +11680,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14205
11680
|
var createDates = function createDates(monthMetaData, groupIndex) {
|
|
14206
11681
|
var tableBodyRowProps = mergeProps(ptm('tableBodyRowProps'));
|
|
14207
11682
|
return monthMetaData.dates.map(function (weekDates, index) {
|
|
14208
|
-
return /*#__PURE__*/
|
|
11683
|
+
return /*#__PURE__*/React.createElement("tr", _extends({}, tableBodyRowProps, {
|
|
14209
11684
|
key: index
|
|
14210
11685
|
}), createWeek(weekDates, monthMetaData.weekNumbers[index], groupIndex));
|
|
14211
11686
|
});
|
|
@@ -14223,9 +11698,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14223
11698
|
var tableHeaderProps = mergeProps(ptm('tableHeader'));
|
|
14224
11699
|
var tableHeaderRowProps = mergeProps(ptm('tableHeaderRow'));
|
|
14225
11700
|
var tableBodyProps = mergeProps(ptm('tableBody'));
|
|
14226
|
-
return currentView === 'date' && /*#__PURE__*/
|
|
11701
|
+
return currentView === 'date' && /*#__PURE__*/React.createElement("div", _extends({}, containerProps, {
|
|
14227
11702
|
key: UniqueComponentId('calendar_container_')
|
|
14228
|
-
}), /*#__PURE__*/
|
|
11703
|
+
}), /*#__PURE__*/React.createElement("table", tableProps, /*#__PURE__*/React.createElement("thead", tableHeaderProps, /*#__PURE__*/React.createElement("tr", tableHeaderRowProps, dayNames)), /*#__PURE__*/React.createElement("tbody", tableBodyProps, dates)));
|
|
14229
11704
|
};
|
|
14230
11705
|
var createMonth = function createMonth(monthMetaData, index) {
|
|
14231
11706
|
var weekDays = createWeekDaysMeta();
|
|
@@ -14241,9 +11716,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14241
11716
|
var headerProps = mergeProps({
|
|
14242
11717
|
className: cx('header')
|
|
14243
11718
|
}, ptm('header'));
|
|
14244
|
-
return /*#__PURE__*/
|
|
11719
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, groupProps, {
|
|
14245
11720
|
key: monthKey
|
|
14246
|
-
}), /*#__PURE__*/
|
|
11721
|
+
}), /*#__PURE__*/React.createElement("div", _extends({}, headerProps, {
|
|
14247
11722
|
key: index
|
|
14248
11723
|
}), header, backwardNavigator, title, forwardNavigator), dateViewGrid);
|
|
14249
11724
|
};
|
|
@@ -14252,7 +11727,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14252
11727
|
var groupContainerProps = mergeProps({
|
|
14253
11728
|
className: cx('groupContainer')
|
|
14254
11729
|
}, ptm('groupContainer'));
|
|
14255
|
-
return /*#__PURE__*/
|
|
11730
|
+
return /*#__PURE__*/React.createElement("div", groupContainerProps, groups);
|
|
14256
11731
|
};
|
|
14257
11732
|
var createDateView = function createDateView() {
|
|
14258
11733
|
var viewDate = getViewDate();
|
|
@@ -14293,7 +11768,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14293
11768
|
var titleProps = mergeProps({
|
|
14294
11769
|
className: cx('title')
|
|
14295
11770
|
}, ptm('title'));
|
|
14296
|
-
return /*#__PURE__*/
|
|
11771
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", groupContainerProps, /*#__PURE__*/React.createElement("div", groupProps, /*#__PURE__*/React.createElement("div", headerProps, backwardNavigator, /*#__PURE__*/React.createElement("div", titleProps, yearElement, decade), forwardNavigator))));
|
|
14297
11772
|
};
|
|
14298
11773
|
var createDatePicker = function createDatePicker() {
|
|
14299
11774
|
if (!props.timeOnly) {
|
|
@@ -14306,10 +11781,10 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14306
11781
|
};
|
|
14307
11782
|
var incrementIconProps = mergeProps(ptm('incrementIcon'));
|
|
14308
11783
|
var decrementIconProps = mergeProps(ptm('decrementIcon'));
|
|
14309
|
-
var incrementIcon = IconUtils.getJSXIcon(props.incrementIcon || /*#__PURE__*/
|
|
11784
|
+
var incrementIcon = IconUtils.getJSXIcon(props.incrementIcon || /*#__PURE__*/React.createElement(ChevronUpIcon, incrementIconProps), _objectSpread({}, incrementIconProps), {
|
|
14310
11785
|
props: props
|
|
14311
11786
|
});
|
|
14312
|
-
var decrementIcon = IconUtils.getJSXIcon(props.decrementIcon || /*#__PURE__*/
|
|
11787
|
+
var decrementIcon = IconUtils.getJSXIcon(props.decrementIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, decrementIconProps), _objectSpread({}, decrementIconProps), {
|
|
14313
11788
|
props: props
|
|
14314
11789
|
});
|
|
14315
11790
|
var createHourPicker = function createHourPicker() {
|
|
@@ -14362,7 +11837,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14362
11837
|
},
|
|
14363
11838
|
onKeyUp: onPickerKeyUp
|
|
14364
11839
|
}, ptm('decrementButton'));
|
|
14365
|
-
return /*#__PURE__*/
|
|
11840
|
+
return /*#__PURE__*/React.createElement("div", hourPickerProps, /*#__PURE__*/React.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React.createElement(Ripple, null)), /*#__PURE__*/React.createElement("span", hourProps, hourDisplay), /*#__PURE__*/React.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React.createElement(Ripple, null)));
|
|
14366
11841
|
};
|
|
14367
11842
|
var createMinutePicker = function createMinutePicker() {
|
|
14368
11843
|
var currentTime = getCurrentDateTime();
|
|
@@ -14404,7 +11879,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14404
11879
|
},
|
|
14405
11880
|
onKeyUp: onPickerKeyUp
|
|
14406
11881
|
}, ptm('decrementButton'));
|
|
14407
|
-
return /*#__PURE__*/
|
|
11882
|
+
return /*#__PURE__*/React.createElement("div", minutePickerProps, /*#__PURE__*/React.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React.createElement(Ripple, null)), /*#__PURE__*/React.createElement("span", minuteProps, minuteDisplay), /*#__PURE__*/React.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React.createElement(Ripple, null)));
|
|
14408
11883
|
};
|
|
14409
11884
|
var createSecondPicker = function createSecondPicker() {
|
|
14410
11885
|
if (props.showSeconds) {
|
|
@@ -14446,7 +11921,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14446
11921
|
},
|
|
14447
11922
|
onKeyUp: onPickerKeyUp
|
|
14448
11923
|
}, ptm('decrementButton'));
|
|
14449
|
-
return /*#__PURE__*/
|
|
11924
|
+
return /*#__PURE__*/React.createElement("div", secondPickerProps, /*#__PURE__*/React.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React.createElement(Ripple, null)), /*#__PURE__*/React.createElement("span", secondProps, secondDisplay), /*#__PURE__*/React.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React.createElement(Ripple, null)));
|
|
14450
11925
|
}
|
|
14451
11926
|
return null;
|
|
14452
11927
|
};
|
|
@@ -14490,7 +11965,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14490
11965
|
},
|
|
14491
11966
|
onKeyUp: onPickerKeyUp
|
|
14492
11967
|
}, ptm('decrementButton'));
|
|
14493
|
-
return /*#__PURE__*/
|
|
11968
|
+
return /*#__PURE__*/React.createElement("div", millisecondPickerProps, /*#__PURE__*/React.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React.createElement(Ripple, null)), /*#__PURE__*/React.createElement("span", millisecondProps, millisecondDisplay), /*#__PURE__*/React.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React.createElement(Ripple, null)));
|
|
14494
11969
|
}
|
|
14495
11970
|
return null;
|
|
14496
11971
|
};
|
|
@@ -14522,7 +11997,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14522
11997
|
return toggleAmPm(e);
|
|
14523
11998
|
}
|
|
14524
11999
|
}, ptm('decrementButton'));
|
|
14525
|
-
return /*#__PURE__*/
|
|
12000
|
+
return /*#__PURE__*/React.createElement("div", ampmPickerProps, /*#__PURE__*/React.createElement("button", incrementButtonProps, incrementIcon, /*#__PURE__*/React.createElement(Ripple, null)), /*#__PURE__*/React.createElement("span", ampmProps, display), /*#__PURE__*/React.createElement("button", decrementButtonProps, decrementIcon, /*#__PURE__*/React.createElement(Ripple, null)));
|
|
14526
12001
|
}
|
|
14527
12002
|
return null;
|
|
14528
12003
|
};
|
|
@@ -14531,20 +12006,20 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14531
12006
|
className: cx('separatorContainer')
|
|
14532
12007
|
}, ptm('separatorContainer'));
|
|
14533
12008
|
var separatorProps = mergeProps(ptm('separator'));
|
|
14534
|
-
return /*#__PURE__*/
|
|
12009
|
+
return /*#__PURE__*/React.createElement("div", separatorContainerProps, /*#__PURE__*/React.createElement("span", separatorProps, separator));
|
|
14535
12010
|
};
|
|
14536
12011
|
var createTimePicker = function createTimePicker() {
|
|
14537
12012
|
if ((props.showTime || props.timeOnly) && currentView === 'date') {
|
|
14538
12013
|
var timePickerProps = mergeProps({
|
|
14539
12014
|
className: cx('timePicker')
|
|
14540
12015
|
}, ptm('timePicker'));
|
|
14541
|
-
return /*#__PURE__*/
|
|
12016
|
+
return /*#__PURE__*/React.createElement("div", timePickerProps, createHourPicker(), createSeparator(':'), createMinutePicker(), props.showSeconds && createSeparator(':'), createSecondPicker(), props.showMillisec && createSeparator('.'), createMiliSecondPicker(), props.hourFormat === '12' && createSeparator(':'), createAmPmPicker());
|
|
14542
12017
|
}
|
|
14543
12018
|
return null;
|
|
14544
12019
|
};
|
|
14545
12020
|
var createInputElement = function createInputElement() {
|
|
14546
12021
|
if (!props.inline) {
|
|
14547
|
-
return /*#__PURE__*/
|
|
12022
|
+
return /*#__PURE__*/React.createElement(InputText, {
|
|
14548
12023
|
ref: inputRef,
|
|
14549
12024
|
id: props.inputId,
|
|
14550
12025
|
name: props.name,
|
|
@@ -14584,9 +12059,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14584
12059
|
};
|
|
14585
12060
|
var createButton = function createButton() {
|
|
14586
12061
|
if (props.showIcon) {
|
|
14587
|
-
return /*#__PURE__*/
|
|
12062
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
14588
12063
|
type: "button",
|
|
14589
|
-
icon: props.icon || /*#__PURE__*/
|
|
12064
|
+
icon: props.icon || /*#__PURE__*/React.createElement(CalendarIcon, null),
|
|
14590
12065
|
onClick: onButtonClick,
|
|
14591
12066
|
tabIndex: "-1",
|
|
14592
12067
|
disabled: props.disabled,
|
|
@@ -14607,9 +12082,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14607
12082
|
var input = createInputElement();
|
|
14608
12083
|
var button = createButton();
|
|
14609
12084
|
if (props.iconPos === 'left') {
|
|
14610
|
-
return /*#__PURE__*/
|
|
12085
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, button, input);
|
|
14611
12086
|
}
|
|
14612
|
-
return /*#__PURE__*/
|
|
12087
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, input, button);
|
|
14613
12088
|
};
|
|
14614
12089
|
var isPastMaxDateWithBuffer = function isPastMaxDateWithBuffer() {
|
|
14615
12090
|
var bufferInSeconds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
|
|
@@ -14628,7 +12103,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14628
12103
|
var buttonbarProps = mergeProps({
|
|
14629
12104
|
className: cx('buttonbar')
|
|
14630
12105
|
}, ptm('buttonbar'));
|
|
14631
|
-
return /*#__PURE__*/
|
|
12106
|
+
return /*#__PURE__*/React.createElement("div", buttonbarProps, /*#__PURE__*/React.createElement(Button, {
|
|
14632
12107
|
type: "button",
|
|
14633
12108
|
label: props.showTime ? now : today,
|
|
14634
12109
|
onClick: onTodayButtonClick,
|
|
@@ -14640,7 +12115,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14640
12115
|
style: isHidden ? {
|
|
14641
12116
|
visibility: 'hidden'
|
|
14642
12117
|
} : undefined
|
|
14643
|
-
}), /*#__PURE__*/
|
|
12118
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
14644
12119
|
type: "button",
|
|
14645
12120
|
label: clear,
|
|
14646
12121
|
onClick: onClearButtonClick,
|
|
@@ -14659,7 +12134,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14659
12134
|
var footerProps = mergeProps({
|
|
14660
12135
|
className: cx('footer')
|
|
14661
12136
|
}, ptm('footer'));
|
|
14662
|
-
return /*#__PURE__*/
|
|
12137
|
+
return /*#__PURE__*/React.createElement("div", footerProps, _content3);
|
|
14663
12138
|
}
|
|
14664
12139
|
return null;
|
|
14665
12140
|
};
|
|
@@ -14668,7 +12143,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14668
12143
|
var monthPickerProps = mergeProps({
|
|
14669
12144
|
className: cx('monthPicker')
|
|
14670
12145
|
}, ptm('monthPicker'));
|
|
14671
|
-
return /*#__PURE__*/
|
|
12146
|
+
return /*#__PURE__*/React.createElement("div", monthPickerProps, monthPickerValues().map(function (m, i) {
|
|
14672
12147
|
var selected = isMonthSelected(i);
|
|
14673
12148
|
var monthProps = mergeProps({
|
|
14674
12149
|
className: cx('month', {
|
|
@@ -14693,9 +12168,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14693
12168
|
disabled: isMonthYearDisabled(i, currentYear)
|
|
14694
12169
|
}
|
|
14695
12170
|
}));
|
|
14696
|
-
return /*#__PURE__*/
|
|
12171
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, monthProps, {
|
|
14697
12172
|
key: "month".concat(i + 1)
|
|
14698
|
-
}), m, selected && /*#__PURE__*/
|
|
12173
|
+
}), m, selected && /*#__PURE__*/React.createElement("div", {
|
|
14699
12174
|
"aria-live": "polite",
|
|
14700
12175
|
className: "p-hidden-accessible",
|
|
14701
12176
|
"data-p-hidden-accessible": true,
|
|
@@ -14710,7 +12185,7 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14710
12185
|
var yearPickerProps = mergeProps({
|
|
14711
12186
|
className: cx('yearPicker')
|
|
14712
12187
|
}, ptm('yearPicker'));
|
|
14713
|
-
return /*#__PURE__*/
|
|
12188
|
+
return /*#__PURE__*/React.createElement("div", yearPickerProps, yearPickerValues().map(function (y, i) {
|
|
14714
12189
|
var selected = isYearSelected(y);
|
|
14715
12190
|
var yearProps = mergeProps({
|
|
14716
12191
|
className: cx('year', {
|
|
@@ -14734,9 +12209,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14734
12209
|
disabled: isMonthYearDisabled(-1, y)
|
|
14735
12210
|
}
|
|
14736
12211
|
}));
|
|
14737
|
-
return /*#__PURE__*/
|
|
12212
|
+
return /*#__PURE__*/React.createElement("span", _extends({}, yearProps, {
|
|
14738
12213
|
key: "year".concat(i + 1)
|
|
14739
|
-
}), y, selected && /*#__PURE__*/
|
|
12214
|
+
}), y, selected && /*#__PURE__*/React.createElement("div", {
|
|
14740
12215
|
"aria-live": "polite",
|
|
14741
12216
|
className: "p-hidden-accessible",
|
|
14742
12217
|
"data-p-hidden-accessible": true,
|
|
@@ -14773,9 +12248,9 @@ var Calendar = /*#__PURE__*/reactExports.memo(/*#__PURE__*/reactExports.forwardR
|
|
|
14773
12248
|
})),
|
|
14774
12249
|
style: props.style
|
|
14775
12250
|
}, CalendarBase.getOtherProps(props), ptm('root'));
|
|
14776
|
-
return /*#__PURE__*/
|
|
12251
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
14777
12252
|
ref: elementRef
|
|
14778
|
-
}, rootProps), content, /*#__PURE__*/
|
|
12253
|
+
}, rootProps), content, /*#__PURE__*/React.createElement(CalendarPanel, {
|
|
14779
12254
|
hostName: "Calendar",
|
|
14780
12255
|
id: panelId,
|
|
14781
12256
|
locale: props.locale,
|
|
@@ -14814,9 +12289,9 @@ const DatePicker = ({
|
|
|
14814
12289
|
padding: '0.5rem',
|
|
14815
12290
|
borderRadius: '6px'
|
|
14816
12291
|
};
|
|
14817
|
-
return /*#__PURE__*/
|
|
12292
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
14818
12293
|
className: "flex flex-col gap-1"
|
|
14819
|
-
}, /*#__PURE__*/
|
|
12294
|
+
}, /*#__PURE__*/React__default.createElement(Calendar, {
|
|
14820
12295
|
value: value,
|
|
14821
12296
|
onChange: onChange,
|
|
14822
12297
|
showIcon: true,
|
|
@@ -14828,7 +12303,7 @@ const DatePicker = ({
|
|
|
14828
12303
|
showWeek: true,
|
|
14829
12304
|
showTime: true,
|
|
14830
12305
|
hourFormat: "24"
|
|
14831
|
-
}), invalid && /*#__PURE__*/
|
|
12306
|
+
}), invalid && /*#__PURE__*/React__default.createElement("small", {
|
|
14832
12307
|
style: {
|
|
14833
12308
|
color: 'red',
|
|
14834
12309
|
fontStyle: 'italic'
|