@raketa-builder/builder 0.42.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -94,3023 +94,23 @@ var require_dist = __commonJS({
94
94
  }
95
95
  return target;
96
96
  };
97
- var __commonJS2 = (cb, mod) => function __require() {
98
- return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
99
- };
100
- var __export2 = (target, all) => {
101
- for (var name in all)
102
- __defProp2(target, name, { get: all[name], enumerable: true });
103
- };
104
- var __copyProps2 = (to, from, except, desc) => {
105
- if (from && typeof from === "object" || typeof from === "function") {
106
- for (let key of __getOwnPropNames2(from))
107
- if (!__hasOwnProp2.call(to, key) && key !== except)
108
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
109
- }
110
- return to;
111
- };
112
- var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
113
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
114
- mod
115
- ));
116
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
117
- var require_react_production_min = __commonJS2({
118
- "../../node_modules/react/cjs/react.production.min.js"(exports2) {
119
- "use strict";
120
- var l = Symbol.for("react.element");
121
- var n = Symbol.for("react.portal");
122
- var p = Symbol.for("react.fragment");
123
- var q = Symbol.for("react.strict_mode");
124
- var r = Symbol.for("react.profiler");
125
- var t = Symbol.for("react.provider");
126
- var u = Symbol.for("react.context");
127
- var v = Symbol.for("react.forward_ref");
128
- var w = Symbol.for("react.suspense");
129
- var x = Symbol.for("react.memo");
130
- var y = Symbol.for("react.lazy");
131
- var z = Symbol.iterator;
132
- function A(a) {
133
- if (null === a || "object" !== typeof a)
134
- return null;
135
- a = z && a[z] || a["@@iterator"];
136
- return "function" === typeof a ? a : null;
137
- }
138
- var B = { isMounted: function() {
139
- return false;
140
- }, enqueueForceUpdate: function() {
141
- }, enqueueReplaceState: function() {
142
- }, enqueueSetState: function() {
143
- } };
144
- var C = Object.assign;
145
- var D = {};
146
- function E(a, b, e) {
147
- this.props = a;
148
- this.context = b;
149
- this.refs = D;
150
- this.updater = e || B;
151
- }
152
- E.prototype.isReactComponent = {};
153
- E.prototype.setState = function(a, b) {
154
- if ("object" !== typeof a && "function" !== typeof a && null != a)
155
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
156
- this.updater.enqueueSetState(this, a, b, "setState");
157
- };
158
- E.prototype.forceUpdate = function(a) {
159
- this.updater.enqueueForceUpdate(this, a, "forceUpdate");
160
- };
161
- function F() {
162
- }
163
- F.prototype = E.prototype;
164
- function G(a, b, e) {
165
- this.props = a;
166
- this.context = b;
167
- this.refs = D;
168
- this.updater = e || B;
169
- }
170
- var H22 = G.prototype = new F();
171
- H22.constructor = G;
172
- C(H22, E.prototype);
173
- H22.isPureReactComponent = true;
174
- var I = Array.isArray;
175
- var J = Object.prototype.hasOwnProperty;
176
- var K = { current: null };
177
- var L = { key: true, ref: true, __self: true, __source: true };
178
- function M(a, b, e) {
179
- var d, c = {}, k = null, h = null;
180
- if (null != b)
181
- for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
182
- J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
183
- var g = arguments.length - 2;
184
- if (1 === g)
185
- c.children = e;
186
- else if (1 < g) {
187
- for (var f = Array(g), m = 0; m < g; m++)
188
- f[m] = arguments[m + 2];
189
- c.children = f;
190
- }
191
- if (a && a.defaultProps)
192
- for (d in g = a.defaultProps, g)
193
- void 0 === c[d] && (c[d] = g[d]);
194
- return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
195
- }
196
- function N(a, b) {
197
- return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
198
- }
199
- function O(a) {
200
- return "object" === typeof a && null !== a && a.$$typeof === l;
201
- }
202
- function escape(a) {
203
- var b = { "=": "=0", ":": "=2" };
204
- return "$" + a.replace(/[=:]/g, function(a2) {
205
- return b[a2];
206
- });
207
- }
208
- var P22 = /\/+/g;
209
- function Q(a, b) {
210
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
211
- }
212
- function R(a, b, e, d, c) {
213
- var k = typeof a;
214
- if ("undefined" === k || "boolean" === k)
215
- a = null;
216
- var h = false;
217
- if (null === a)
218
- h = true;
219
- else
220
- switch (k) {
221
- case "string":
222
- case "number":
223
- h = true;
224
- break;
225
- case "object":
226
- switch (a.$$typeof) {
227
- case l:
228
- case n:
229
- h = true;
230
- }
231
- }
232
- if (h)
233
- return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P22, "$&/") + "/"), R(c, b, e, "", function(a2) {
234
- return a2;
235
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P22, "$&/") + "/") + a)), b.push(c)), 1;
236
- h = 0;
237
- d = "" === d ? "." : d + ":";
238
- if (I(a))
239
- for (var g = 0; g < a.length; g++) {
240
- k = a[g];
241
- var f = d + Q(k, g);
242
- h += R(k, b, e, f, c);
243
- }
244
- else if (f = A(a), "function" === typeof f)
245
- for (a = f.call(a), g = 0; !(k = a.next()).done; )
246
- k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
247
- else if ("object" === k)
248
- throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
249
- return h;
250
- }
251
- function S(a, b, e) {
252
- if (null == a)
253
- return a;
254
- var d = [], c = 0;
255
- R(a, d, "", "", function(a2) {
256
- return b.call(e, a2, c++);
257
- });
258
- return d;
259
- }
260
- function T(a) {
261
- if (-1 === a._status) {
262
- var b = a._result;
263
- b = b();
264
- b.then(function(b2) {
265
- if (0 === a._status || -1 === a._status)
266
- a._status = 1, a._result = b2;
267
- }, function(b2) {
268
- if (0 === a._status || -1 === a._status)
269
- a._status = 2, a._result = b2;
270
- });
271
- -1 === a._status && (a._status = 0, a._result = b);
272
- }
273
- if (1 === a._status)
274
- return a._result.default;
275
- throw a._result;
276
- }
277
- var U = { current: null };
278
- var V = { transition: null };
279
- var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
280
- exports2.Children = { map: S, forEach: function(a, b, e) {
281
- S(a, function() {
282
- b.apply(this, arguments);
283
- }, e);
284
- }, count: function(a) {
285
- var b = 0;
286
- S(a, function() {
287
- b++;
288
- });
289
- return b;
290
- }, toArray: function(a) {
291
- return S(a, function(a2) {
292
- return a2;
293
- }) || [];
294
- }, only: function(a) {
295
- if (!O(a))
296
- throw Error("React.Children.only expected to receive a single React element child.");
297
- return a;
298
- } };
299
- exports2.Component = E;
300
- exports2.Fragment = p;
301
- exports2.Profiler = r;
302
- exports2.PureComponent = G;
303
- exports2.StrictMode = q;
304
- exports2.Suspense = w;
305
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
306
- exports2.cloneElement = function(a, b, e) {
307
- if (null === a || void 0 === a)
308
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
309
- var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
310
- if (null != b) {
311
- void 0 !== b.ref && (k = b.ref, h = K.current);
312
- void 0 !== b.key && (c = "" + b.key);
313
- if (a.type && a.type.defaultProps)
314
- var g = a.type.defaultProps;
315
- for (f in b)
316
- J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
317
- }
318
- var f = arguments.length - 2;
319
- if (1 === f)
320
- d.children = e;
321
- else if (1 < f) {
322
- g = Array(f);
323
- for (var m = 0; m < f; m++)
324
- g[m] = arguments[m + 2];
325
- d.children = g;
326
- }
327
- return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
328
- };
329
- exports2.createContext = function(a) {
330
- a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
331
- a.Provider = { $$typeof: t, _context: a };
332
- return a.Consumer = a;
333
- };
334
- exports2.createElement = M;
335
- exports2.createFactory = function(a) {
336
- var b = M.bind(null, a);
337
- b.type = a;
338
- return b;
339
- };
340
- exports2.createRef = function() {
341
- return { current: null };
342
- };
343
- exports2.forwardRef = function(a) {
344
- return { $$typeof: v, render: a };
345
- };
346
- exports2.isValidElement = O;
347
- exports2.lazy = function(a) {
348
- return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
349
- };
350
- exports2.memo = function(a, b) {
351
- return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
352
- };
353
- exports2.startTransition = function(a) {
354
- var b = V.transition;
355
- V.transition = {};
356
- try {
357
- a();
358
- } finally {
359
- V.transition = b;
360
- }
361
- };
362
- exports2.unstable_act = function() {
363
- throw Error("act(...) is not supported in production builds of React.");
364
- };
365
- exports2.useCallback = function(a, b) {
366
- return U.current.useCallback(a, b);
367
- };
368
- exports2.useContext = function(a) {
369
- return U.current.useContext(a);
370
- };
371
- exports2.useDebugValue = function() {
372
- };
373
- exports2.useDeferredValue = function(a) {
374
- return U.current.useDeferredValue(a);
375
- };
376
- exports2.useEffect = function(a, b) {
377
- return U.current.useEffect(a, b);
378
- };
379
- exports2.useId = function() {
380
- return U.current.useId();
381
- };
382
- exports2.useImperativeHandle = function(a, b, e) {
383
- return U.current.useImperativeHandle(a, b, e);
384
- };
385
- exports2.useInsertionEffect = function(a, b) {
386
- return U.current.useInsertionEffect(a, b);
387
- };
388
- exports2.useLayoutEffect = function(a, b) {
389
- return U.current.useLayoutEffect(a, b);
390
- };
391
- exports2.useMemo = function(a, b) {
392
- return U.current.useMemo(a, b);
393
- };
394
- exports2.useReducer = function(a, b, e) {
395
- return U.current.useReducer(a, b, e);
396
- };
397
- exports2.useRef = function(a) {
398
- return U.current.useRef(a);
399
- };
400
- exports2.useState = function(a) {
401
- return U.current.useState(a);
402
- };
403
- exports2.useSyncExternalStore = function(a, b, e) {
404
- return U.current.useSyncExternalStore(a, b, e);
405
- };
406
- exports2.useTransition = function() {
407
- return U.current.useTransition();
408
- };
409
- exports2.version = "18.2.0";
410
- }
411
- });
412
- var require_react_development = __commonJS2({
413
- "../../node_modules/react/cjs/react.development.js"(exports2, module22) {
414
- "use strict";
415
- if (process.env.NODE_ENV !== "production") {
416
- (function() {
417
- "use strict";
418
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
419
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
420
- }
421
- var ReactVersion = "18.2.0";
422
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
423
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
424
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
425
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
426
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
427
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
428
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
429
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
430
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
431
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
432
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
433
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
434
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
435
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
436
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
437
- function getIteratorFn(maybeIterable) {
438
- if (maybeIterable === null || typeof maybeIterable !== "object") {
439
- return null;
440
- }
441
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
442
- if (typeof maybeIterator === "function") {
443
- return maybeIterator;
444
- }
445
- return null;
446
- }
447
- var ReactCurrentDispatcher = {
448
- current: null
449
- };
450
- var ReactCurrentBatchConfig = {
451
- transition: null
452
- };
453
- var ReactCurrentActQueue = {
454
- current: null,
455
- isBatchingLegacy: false,
456
- didScheduleLegacyUpdate: false
457
- };
458
- var ReactCurrentOwner = {
459
- current: null
460
- };
461
- var ReactDebugCurrentFrame = {};
462
- var currentExtraStackFrame = null;
463
- function setExtraStackFrame(stack) {
464
- {
465
- currentExtraStackFrame = stack;
466
- }
467
- }
468
- {
469
- ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
470
- {
471
- currentExtraStackFrame = stack;
472
- }
473
- };
474
- ReactDebugCurrentFrame.getCurrentStack = null;
475
- ReactDebugCurrentFrame.getStackAddendum = function() {
476
- var stack = "";
477
- if (currentExtraStackFrame) {
478
- stack += currentExtraStackFrame;
479
- }
480
- var impl = ReactDebugCurrentFrame.getCurrentStack;
481
- if (impl) {
482
- stack += impl() || "";
483
- }
484
- return stack;
485
- };
486
- }
487
- var enableScopeAPI = false;
488
- var enableCacheElement = false;
489
- var enableTransitionTracing = false;
490
- var enableLegacyHidden = false;
491
- var enableDebugTracing = false;
492
- var ReactSharedInternals = {
493
- ReactCurrentDispatcher,
494
- ReactCurrentBatchConfig,
495
- ReactCurrentOwner
496
- };
497
- {
498
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
499
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
500
- }
501
- function warn(format) {
502
- {
503
- {
504
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
505
- args[_key - 1] = arguments[_key];
506
- }
507
- printWarning("warn", format, args);
508
- }
509
- }
510
- }
511
- function error(format) {
512
- {
513
- {
514
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
515
- args[_key2 - 1] = arguments[_key2];
516
- }
517
- printWarning("error", format, args);
518
- }
519
- }
520
- }
521
- function printWarning(level, format, args) {
522
- {
523
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
524
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
525
- if (stack !== "") {
526
- format += "%s";
527
- args = args.concat([stack]);
528
- }
529
- var argsWithFormat = args.map(function(item) {
530
- return String(item);
531
- });
532
- argsWithFormat.unshift("Warning: " + format);
533
- Function.prototype.apply.call(console[level], console, argsWithFormat);
534
- }
535
- }
536
- var didWarnStateUpdateForUnmountedComponent = {};
537
- function warnNoop(publicInstance, callerName) {
538
- {
539
- var _constructor = publicInstance.constructor;
540
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
541
- var warningKey = componentName + "." + callerName;
542
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
543
- return;
544
- }
545
- error("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.", callerName, componentName);
546
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
547
- }
548
- }
549
- var ReactNoopUpdateQueue = {
550
- isMounted: function(publicInstance) {
551
- return false;
552
- },
553
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
554
- warnNoop(publicInstance, "forceUpdate");
555
- },
556
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
557
- warnNoop(publicInstance, "replaceState");
558
- },
559
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
560
- warnNoop(publicInstance, "setState");
561
- }
562
- };
563
- var assign = Object.assign;
564
- var emptyObject = {};
565
- {
566
- Object.freeze(emptyObject);
567
- }
568
- function Component2(props, context, updater) {
569
- this.props = props;
570
- this.context = context;
571
- this.refs = emptyObject;
572
- this.updater = updater || ReactNoopUpdateQueue;
573
- }
574
- Component2.prototype.isReactComponent = {};
575
- Component2.prototype.setState = function(partialState, callback) {
576
- if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
577
- throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
578
- }
579
- this.updater.enqueueSetState(this, partialState, callback, "setState");
580
- };
581
- Component2.prototype.forceUpdate = function(callback) {
582
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
583
- };
584
- {
585
- var deprecatedAPIs = {
586
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
587
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
588
- };
589
- var defineDeprecationWarning = function(methodName, info) {
590
- Object.defineProperty(Component2.prototype, methodName, {
591
- get: function() {
592
- warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
593
- return void 0;
594
- }
595
- });
596
- };
597
- for (var fnName in deprecatedAPIs) {
598
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
599
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
600
- }
601
- }
602
- }
603
- function ComponentDummy() {
604
- }
605
- ComponentDummy.prototype = Component2.prototype;
606
- function PureComponent(props, context, updater) {
607
- this.props = props;
608
- this.context = context;
609
- this.refs = emptyObject;
610
- this.updater = updater || ReactNoopUpdateQueue;
611
- }
612
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
613
- pureComponentPrototype.constructor = PureComponent;
614
- assign(pureComponentPrototype, Component2.prototype);
615
- pureComponentPrototype.isPureReactComponent = true;
616
- function createRef() {
617
- var refObject = {
618
- current: null
619
- };
620
- {
621
- Object.seal(refObject);
622
- }
623
- return refObject;
624
- }
625
- var isArrayImpl = Array.isArray;
626
- function isArray(a) {
627
- return isArrayImpl(a);
628
- }
629
- function typeName(value) {
630
- {
631
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
632
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
633
- return type;
634
- }
635
- }
636
- function willCoercionThrow(value) {
637
- {
638
- try {
639
- testStringCoercion(value);
640
- return false;
641
- } catch (e) {
642
- return true;
643
- }
644
- }
645
- }
646
- function testStringCoercion(value) {
647
- return "" + value;
648
- }
649
- function checkKeyStringCoercion(value) {
650
- {
651
- if (willCoercionThrow(value)) {
652
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
653
- return testStringCoercion(value);
654
- }
655
- }
656
- }
657
- function getWrappedName(outerType, innerType, wrapperName) {
658
- var displayName = outerType.displayName;
659
- if (displayName) {
660
- return displayName;
661
- }
662
- var functionName = innerType.displayName || innerType.name || "";
663
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
664
- }
665
- function getContextName(type) {
666
- return type.displayName || "Context";
667
- }
668
- function getComponentNameFromType(type) {
669
- if (type == null) {
670
- return null;
671
- }
672
- {
673
- if (typeof type.tag === "number") {
674
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
675
- }
676
- }
677
- if (typeof type === "function") {
678
- return type.displayName || type.name || null;
679
- }
680
- if (typeof type === "string") {
681
- return type;
682
- }
683
- switch (type) {
684
- case REACT_FRAGMENT_TYPE:
685
- return "Fragment";
686
- case REACT_PORTAL_TYPE:
687
- return "Portal";
688
- case REACT_PROFILER_TYPE:
689
- return "Profiler";
690
- case REACT_STRICT_MODE_TYPE:
691
- return "StrictMode";
692
- case REACT_SUSPENSE_TYPE:
693
- return "Suspense";
694
- case REACT_SUSPENSE_LIST_TYPE:
695
- return "SuspenseList";
696
- }
697
- if (typeof type === "object") {
698
- switch (type.$$typeof) {
699
- case REACT_CONTEXT_TYPE:
700
- var context = type;
701
- return getContextName(context) + ".Consumer";
702
- case REACT_PROVIDER_TYPE:
703
- var provider = type;
704
- return getContextName(provider._context) + ".Provider";
705
- case REACT_FORWARD_REF_TYPE:
706
- return getWrappedName(type, type.render, "ForwardRef");
707
- case REACT_MEMO_TYPE:
708
- var outerName = type.displayName || null;
709
- if (outerName !== null) {
710
- return outerName;
711
- }
712
- return getComponentNameFromType(type.type) || "Memo";
713
- case REACT_LAZY_TYPE: {
714
- var lazyComponent = type;
715
- var payload = lazyComponent._payload;
716
- var init = lazyComponent._init;
717
- try {
718
- return getComponentNameFromType(init(payload));
719
- } catch (x) {
720
- return null;
721
- }
722
- }
723
- }
724
- }
725
- return null;
726
- }
727
- var hasOwnProperty = Object.prototype.hasOwnProperty;
728
- var RESERVED_PROPS = {
729
- key: true,
730
- ref: true,
731
- __self: true,
732
- __source: true
733
- };
734
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
735
- {
736
- didWarnAboutStringRefs = {};
737
- }
738
- function hasValidRef(config) {
739
- {
740
- if (hasOwnProperty.call(config, "ref")) {
741
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
742
- if (getter && getter.isReactWarning) {
743
- return false;
744
- }
745
- }
746
- }
747
- return config.ref !== void 0;
748
- }
749
- function hasValidKey(config) {
750
- {
751
- if (hasOwnProperty.call(config, "key")) {
752
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
753
- if (getter && getter.isReactWarning) {
754
- return false;
755
- }
756
- }
757
- }
758
- return config.key !== void 0;
759
- }
760
- function defineKeyPropWarningGetter(props, displayName) {
761
- var warnAboutAccessingKey = function() {
762
- {
763
- if (!specialPropKeyWarningShown) {
764
- specialPropKeyWarningShown = true;
765
- error("%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://reactjs.org/link/special-props)", displayName);
766
- }
767
- }
768
- };
769
- warnAboutAccessingKey.isReactWarning = true;
770
- Object.defineProperty(props, "key", {
771
- get: warnAboutAccessingKey,
772
- configurable: true
773
- });
774
- }
775
- function defineRefPropWarningGetter(props, displayName) {
776
- var warnAboutAccessingRef = function() {
777
- {
778
- if (!specialPropRefWarningShown) {
779
- specialPropRefWarningShown = true;
780
- error("%s: `ref` 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://reactjs.org/link/special-props)", displayName);
781
- }
782
- }
783
- };
784
- warnAboutAccessingRef.isReactWarning = true;
785
- Object.defineProperty(props, "ref", {
786
- get: warnAboutAccessingRef,
787
- configurable: true
788
- });
789
- }
790
- function warnIfStringRefCannotBeAutoConverted(config) {
791
- {
792
- if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
793
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
794
- if (!didWarnAboutStringRefs[componentName]) {
795
- error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
796
- didWarnAboutStringRefs[componentName] = true;
797
- }
798
- }
799
- }
800
- }
801
- var ReactElement = function(type, key, ref, self, source, owner, props) {
802
- var element = {
803
- $$typeof: REACT_ELEMENT_TYPE,
804
- type,
805
- key,
806
- ref,
807
- props,
808
- _owner: owner
809
- };
810
- {
811
- element._store = {};
812
- Object.defineProperty(element._store, "validated", {
813
- configurable: false,
814
- enumerable: false,
815
- writable: true,
816
- value: false
817
- });
818
- Object.defineProperty(element, "_self", {
819
- configurable: false,
820
- enumerable: false,
821
- writable: false,
822
- value: self
823
- });
824
- Object.defineProperty(element, "_source", {
825
- configurable: false,
826
- enumerable: false,
827
- writable: false,
828
- value: source
829
- });
830
- if (Object.freeze) {
831
- Object.freeze(element.props);
832
- Object.freeze(element);
833
- }
834
- }
835
- return element;
836
- };
837
- function createElement(type, config, children) {
838
- var propName;
839
- var props = {};
840
- var key = null;
841
- var ref = null;
842
- var self = null;
843
- var source = null;
844
- if (config != null) {
845
- if (hasValidRef(config)) {
846
- ref = config.ref;
847
- {
848
- warnIfStringRefCannotBeAutoConverted(config);
849
- }
850
- }
851
- if (hasValidKey(config)) {
852
- {
853
- checkKeyStringCoercion(config.key);
854
- }
855
- key = "" + config.key;
856
- }
857
- self = config.__self === void 0 ? null : config.__self;
858
- source = config.__source === void 0 ? null : config.__source;
859
- for (propName in config) {
860
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
861
- props[propName] = config[propName];
862
- }
863
- }
864
- }
865
- var childrenLength = arguments.length - 2;
866
- if (childrenLength === 1) {
867
- props.children = children;
868
- } else if (childrenLength > 1) {
869
- var childArray = Array(childrenLength);
870
- for (var i = 0; i < childrenLength; i++) {
871
- childArray[i] = arguments[i + 2];
872
- }
873
- {
874
- if (Object.freeze) {
875
- Object.freeze(childArray);
876
- }
877
- }
878
- props.children = childArray;
879
- }
880
- if (type && type.defaultProps) {
881
- var defaultProps = type.defaultProps;
882
- for (propName in defaultProps) {
883
- if (props[propName] === void 0) {
884
- props[propName] = defaultProps[propName];
885
- }
886
- }
887
- }
888
- {
889
- if (key || ref) {
890
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
891
- if (key) {
892
- defineKeyPropWarningGetter(props, displayName);
893
- }
894
- if (ref) {
895
- defineRefPropWarningGetter(props, displayName);
896
- }
897
- }
898
- }
899
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
900
- }
901
- function cloneAndReplaceKey(oldElement, newKey) {
902
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
903
- return newElement;
904
- }
905
- function cloneElement(element, config, children) {
906
- if (element === null || element === void 0) {
907
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
908
- }
909
- var propName;
910
- var props = assign({}, element.props);
911
- var key = element.key;
912
- var ref = element.ref;
913
- var self = element._self;
914
- var source = element._source;
915
- var owner = element._owner;
916
- if (config != null) {
917
- if (hasValidRef(config)) {
918
- ref = config.ref;
919
- owner = ReactCurrentOwner.current;
920
- }
921
- if (hasValidKey(config)) {
922
- {
923
- checkKeyStringCoercion(config.key);
924
- }
925
- key = "" + config.key;
926
- }
927
- var defaultProps;
928
- if (element.type && element.type.defaultProps) {
929
- defaultProps = element.type.defaultProps;
930
- }
931
- for (propName in config) {
932
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
933
- if (config[propName] === void 0 && defaultProps !== void 0) {
934
- props[propName] = defaultProps[propName];
935
- } else {
936
- props[propName] = config[propName];
937
- }
938
- }
939
- }
940
- }
941
- var childrenLength = arguments.length - 2;
942
- if (childrenLength === 1) {
943
- props.children = children;
944
- } else if (childrenLength > 1) {
945
- var childArray = Array(childrenLength);
946
- for (var i = 0; i < childrenLength; i++) {
947
- childArray[i] = arguments[i + 2];
948
- }
949
- props.children = childArray;
950
- }
951
- return ReactElement(element.type, key, ref, self, source, owner, props);
952
- }
953
- function isValidElement(object) {
954
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
955
- }
956
- var SEPARATOR = ".";
957
- var SUBSEPARATOR = ":";
958
- function escape(key) {
959
- var escapeRegex = /[=:]/g;
960
- var escaperLookup = {
961
- "=": "=0",
962
- ":": "=2"
963
- };
964
- var escapedString = key.replace(escapeRegex, function(match) {
965
- return escaperLookup[match];
966
- });
967
- return "$" + escapedString;
968
- }
969
- var didWarnAboutMaps = false;
970
- var userProvidedKeyEscapeRegex = /\/+/g;
971
- function escapeUserProvidedKey(text) {
972
- return text.replace(userProvidedKeyEscapeRegex, "$&/");
973
- }
974
- function getElementKey(element, index) {
975
- if (typeof element === "object" && element !== null && element.key != null) {
976
- {
977
- checkKeyStringCoercion(element.key);
978
- }
979
- return escape("" + element.key);
980
- }
981
- return index.toString(36);
982
- }
983
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
984
- var type = typeof children;
985
- if (type === "undefined" || type === "boolean") {
986
- children = null;
987
- }
988
- var invokeCallback = false;
989
- if (children === null) {
990
- invokeCallback = true;
991
- } else {
992
- switch (type) {
993
- case "string":
994
- case "number":
995
- invokeCallback = true;
996
- break;
997
- case "object":
998
- switch (children.$$typeof) {
999
- case REACT_ELEMENT_TYPE:
1000
- case REACT_PORTAL_TYPE:
1001
- invokeCallback = true;
1002
- }
1003
- }
1004
- }
1005
- if (invokeCallback) {
1006
- var _child = children;
1007
- var mappedChild = callback(_child);
1008
- var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1009
- if (isArray(mappedChild)) {
1010
- var escapedChildKey = "";
1011
- if (childKey != null) {
1012
- escapedChildKey = escapeUserProvidedKey(childKey) + "/";
1013
- }
1014
- mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
1015
- return c;
1016
- });
1017
- } else if (mappedChild != null) {
1018
- if (isValidElement(mappedChild)) {
1019
- {
1020
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
1021
- checkKeyStringCoercion(mappedChild.key);
1022
- }
1023
- }
1024
- mappedChild = cloneAndReplaceKey(
1025
- mappedChild,
1026
- escapedPrefix + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey("" + mappedChild.key) + "/" : "") + childKey
1027
- );
1028
- }
1029
- array.push(mappedChild);
1030
- }
1031
- return 1;
1032
- }
1033
- var child;
1034
- var nextName;
1035
- var subtreeCount = 0;
1036
- var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1037
- if (isArray(children)) {
1038
- for (var i = 0; i < children.length; i++) {
1039
- child = children[i];
1040
- nextName = nextNamePrefix + getElementKey(child, i);
1041
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1042
- }
1043
- } else {
1044
- var iteratorFn = getIteratorFn(children);
1045
- if (typeof iteratorFn === "function") {
1046
- var iterableChildren = children;
1047
- {
1048
- if (iteratorFn === iterableChildren.entries) {
1049
- if (!didWarnAboutMaps) {
1050
- warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1051
- }
1052
- didWarnAboutMaps = true;
1053
- }
1054
- }
1055
- var iterator = iteratorFn.call(iterableChildren);
1056
- var step;
1057
- var ii = 0;
1058
- while (!(step = iterator.next()).done) {
1059
- child = step.value;
1060
- nextName = nextNamePrefix + getElementKey(child, ii++);
1061
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1062
- }
1063
- } else if (type === "object") {
1064
- var childrenString = String(children);
1065
- throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
1066
- }
1067
- }
1068
- return subtreeCount;
1069
- }
1070
- function mapChildren(children, func, context) {
1071
- if (children == null) {
1072
- return children;
1073
- }
1074
- var result = [];
1075
- var count = 0;
1076
- mapIntoArray(children, result, "", "", function(child) {
1077
- return func.call(context, child, count++);
1078
- });
1079
- return result;
1080
- }
1081
- function countChildren(children) {
1082
- var n = 0;
1083
- mapChildren(children, function() {
1084
- n++;
1085
- });
1086
- return n;
1087
- }
1088
- function forEachChildren(children, forEachFunc, forEachContext) {
1089
- mapChildren(children, function() {
1090
- forEachFunc.apply(this, arguments);
1091
- }, forEachContext);
1092
- }
1093
- function toArray(children) {
1094
- return mapChildren(children, function(child) {
1095
- return child;
1096
- }) || [];
1097
- }
1098
- function onlyChild(children) {
1099
- if (!isValidElement(children)) {
1100
- throw new Error("React.Children.only expected to receive a single React element child.");
1101
- }
1102
- return children;
1103
- }
1104
- function createContext(defaultValue) {
1105
- var context = {
1106
- $$typeof: REACT_CONTEXT_TYPE,
1107
- _currentValue: defaultValue,
1108
- _currentValue2: defaultValue,
1109
- _threadCount: 0,
1110
- Provider: null,
1111
- Consumer: null,
1112
- _defaultValue: null,
1113
- _globalName: null
1114
- };
1115
- context.Provider = {
1116
- $$typeof: REACT_PROVIDER_TYPE,
1117
- _context: context
1118
- };
1119
- var hasWarnedAboutUsingNestedContextConsumers = false;
1120
- var hasWarnedAboutUsingConsumerProvider = false;
1121
- var hasWarnedAboutDisplayNameOnConsumer = false;
1122
- {
1123
- var Consumer = {
1124
- $$typeof: REACT_CONTEXT_TYPE,
1125
- _context: context
1126
- };
1127
- Object.defineProperties(Consumer, {
1128
- Provider: {
1129
- get: function() {
1130
- if (!hasWarnedAboutUsingConsumerProvider) {
1131
- hasWarnedAboutUsingConsumerProvider = true;
1132
- error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
1133
- }
1134
- return context.Provider;
1135
- },
1136
- set: function(_Provider) {
1137
- context.Provider = _Provider;
1138
- }
1139
- },
1140
- _currentValue: {
1141
- get: function() {
1142
- return context._currentValue;
1143
- },
1144
- set: function(_currentValue) {
1145
- context._currentValue = _currentValue;
1146
- }
1147
- },
1148
- _currentValue2: {
1149
- get: function() {
1150
- return context._currentValue2;
1151
- },
1152
- set: function(_currentValue2) {
1153
- context._currentValue2 = _currentValue2;
1154
- }
1155
- },
1156
- _threadCount: {
1157
- get: function() {
1158
- return context._threadCount;
1159
- },
1160
- set: function(_threadCount) {
1161
- context._threadCount = _threadCount;
1162
- }
1163
- },
1164
- Consumer: {
1165
- get: function() {
1166
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1167
- hasWarnedAboutUsingNestedContextConsumers = true;
1168
- error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
1169
- }
1170
- return context.Consumer;
1171
- }
1172
- },
1173
- displayName: {
1174
- get: function() {
1175
- return context.displayName;
1176
- },
1177
- set: function(displayName) {
1178
- if (!hasWarnedAboutDisplayNameOnConsumer) {
1179
- warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1180
- hasWarnedAboutDisplayNameOnConsumer = true;
1181
- }
1182
- }
1183
- }
1184
- });
1185
- context.Consumer = Consumer;
1186
- }
1187
- {
1188
- context._currentRenderer = null;
1189
- context._currentRenderer2 = null;
1190
- }
1191
- return context;
1192
- }
1193
- var Uninitialized = -1;
1194
- var Pending = 0;
1195
- var Resolved = 1;
1196
- var Rejected = 2;
1197
- function lazyInitializer(payload) {
1198
- if (payload._status === Uninitialized) {
1199
- var ctor = payload._result;
1200
- var thenable = ctor();
1201
- thenable.then(function(moduleObject2) {
1202
- if (payload._status === Pending || payload._status === Uninitialized) {
1203
- var resolved = payload;
1204
- resolved._status = Resolved;
1205
- resolved._result = moduleObject2;
1206
- }
1207
- }, function(error2) {
1208
- if (payload._status === Pending || payload._status === Uninitialized) {
1209
- var rejected = payload;
1210
- rejected._status = Rejected;
1211
- rejected._result = error2;
1212
- }
1213
- });
1214
- if (payload._status === Uninitialized) {
1215
- var pending = payload;
1216
- pending._status = Pending;
1217
- pending._result = thenable;
1218
- }
1219
- }
1220
- if (payload._status === Resolved) {
1221
- var moduleObject = payload._result;
1222
- {
1223
- if (moduleObject === void 0) {
1224
- error("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?", moduleObject);
1225
- }
1226
- }
1227
- {
1228
- if (!("default" in moduleObject)) {
1229
- error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
1230
- }
1231
- }
1232
- return moduleObject.default;
1233
- } else {
1234
- throw payload._result;
1235
- }
1236
- }
1237
- function lazy(ctor) {
1238
- var payload = {
1239
- _status: Uninitialized,
1240
- _result: ctor
1241
- };
1242
- var lazyType = {
1243
- $$typeof: REACT_LAZY_TYPE,
1244
- _payload: payload,
1245
- _init: lazyInitializer
1246
- };
1247
- {
1248
- var defaultProps;
1249
- var propTypes;
1250
- Object.defineProperties(lazyType, {
1251
- defaultProps: {
1252
- configurable: true,
1253
- get: function() {
1254
- return defaultProps;
1255
- },
1256
- set: function(newDefaultProps) {
1257
- error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1258
- defaultProps = newDefaultProps;
1259
- Object.defineProperty(lazyType, "defaultProps", {
1260
- enumerable: true
1261
- });
1262
- }
1263
- },
1264
- propTypes: {
1265
- configurable: true,
1266
- get: function() {
1267
- return propTypes;
1268
- },
1269
- set: function(newPropTypes) {
1270
- error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1271
- propTypes = newPropTypes;
1272
- Object.defineProperty(lazyType, "propTypes", {
1273
- enumerable: true
1274
- });
1275
- }
1276
- }
1277
- });
1278
- }
1279
- return lazyType;
1280
- }
1281
- function forwardRef(render) {
1282
- {
1283
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1284
- error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1285
- } else if (typeof render !== "function") {
1286
- error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1287
- } else {
1288
- if (render.length !== 0 && render.length !== 2) {
1289
- error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
1290
- }
1291
- }
1292
- if (render != null) {
1293
- if (render.defaultProps != null || render.propTypes != null) {
1294
- error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1295
- }
1296
- }
1297
- }
1298
- var elementType = {
1299
- $$typeof: REACT_FORWARD_REF_TYPE,
1300
- render
1301
- };
1302
- {
1303
- var ownName;
1304
- Object.defineProperty(elementType, "displayName", {
1305
- enumerable: false,
1306
- configurable: true,
1307
- get: function() {
1308
- return ownName;
1309
- },
1310
- set: function(name) {
1311
- ownName = name;
1312
- if (!render.name && !render.displayName) {
1313
- render.displayName = name;
1314
- }
1315
- }
1316
- });
1317
- }
1318
- return elementType;
1319
- }
1320
- var REACT_MODULE_REFERENCE;
1321
- {
1322
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1323
- }
1324
- function isValidElementType(type) {
1325
- if (typeof type === "string" || typeof type === "function") {
1326
- return true;
1327
- }
1328
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1329
- return true;
1330
- }
1331
- if (typeof type === "object" && type !== null) {
1332
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1333
- return true;
1334
- }
1335
- }
1336
- return false;
1337
- }
1338
- function memo(type, compare) {
1339
- {
1340
- if (!isValidElementType(type)) {
1341
- error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1342
- }
1343
- }
1344
- var elementType = {
1345
- $$typeof: REACT_MEMO_TYPE,
1346
- type,
1347
- compare: compare === void 0 ? null : compare
1348
- };
1349
- {
1350
- var ownName;
1351
- Object.defineProperty(elementType, "displayName", {
1352
- enumerable: false,
1353
- configurable: true,
1354
- get: function() {
1355
- return ownName;
1356
- },
1357
- set: function(name) {
1358
- ownName = name;
1359
- if (!type.name && !type.displayName) {
1360
- type.displayName = name;
1361
- }
1362
- }
1363
- });
1364
- }
1365
- return elementType;
1366
- }
1367
- function resolveDispatcher() {
1368
- var dispatcher = ReactCurrentDispatcher.current;
1369
- {
1370
- if (dispatcher === null) {
1371
- error("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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
1372
- }
1373
- }
1374
- return dispatcher;
1375
- }
1376
- function useContext(Context) {
1377
- var dispatcher = resolveDispatcher();
1378
- {
1379
- if (Context._context !== void 0) {
1380
- var realContext = Context._context;
1381
- if (realContext.Consumer === Context) {
1382
- error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
1383
- } else if (realContext.Provider === Context) {
1384
- error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1385
- }
1386
- }
1387
- }
1388
- return dispatcher.useContext(Context);
1389
- }
1390
- function useState(initialState) {
1391
- var dispatcher = resolveDispatcher();
1392
- return dispatcher.useState(initialState);
1393
- }
1394
- function useReducer(reducer, initialArg, init) {
1395
- var dispatcher = resolveDispatcher();
1396
- return dispatcher.useReducer(reducer, initialArg, init);
1397
- }
1398
- function useRef(initialValue) {
1399
- var dispatcher = resolveDispatcher();
1400
- return dispatcher.useRef(initialValue);
1401
- }
1402
- function useEffect(create, deps) {
1403
- var dispatcher = resolveDispatcher();
1404
- return dispatcher.useEffect(create, deps);
1405
- }
1406
- function useInsertionEffect(create, deps) {
1407
- var dispatcher = resolveDispatcher();
1408
- return dispatcher.useInsertionEffect(create, deps);
1409
- }
1410
- function useLayoutEffect(create, deps) {
1411
- var dispatcher = resolveDispatcher();
1412
- return dispatcher.useLayoutEffect(create, deps);
1413
- }
1414
- function useCallback(callback, deps) {
1415
- var dispatcher = resolveDispatcher();
1416
- return dispatcher.useCallback(callback, deps);
1417
- }
1418
- function useMemo(create, deps) {
1419
- var dispatcher = resolveDispatcher();
1420
- return dispatcher.useMemo(create, deps);
1421
- }
1422
- function useImperativeHandle(ref, create, deps) {
1423
- var dispatcher = resolveDispatcher();
1424
- return dispatcher.useImperativeHandle(ref, create, deps);
1425
- }
1426
- function useDebugValue(value, formatterFn) {
1427
- {
1428
- var dispatcher = resolveDispatcher();
1429
- return dispatcher.useDebugValue(value, formatterFn);
1430
- }
1431
- }
1432
- function useTransition() {
1433
- var dispatcher = resolveDispatcher();
1434
- return dispatcher.useTransition();
1435
- }
1436
- function useDeferredValue(value) {
1437
- var dispatcher = resolveDispatcher();
1438
- return dispatcher.useDeferredValue(value);
1439
- }
1440
- function useId() {
1441
- var dispatcher = resolveDispatcher();
1442
- return dispatcher.useId();
1443
- }
1444
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1445
- var dispatcher = resolveDispatcher();
1446
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1447
- }
1448
- var disabledDepth = 0;
1449
- var prevLog;
1450
- var prevInfo;
1451
- var prevWarn;
1452
- var prevError;
1453
- var prevGroup;
1454
- var prevGroupCollapsed;
1455
- var prevGroupEnd;
1456
- function disabledLog() {
1457
- }
1458
- disabledLog.__reactDisabledLog = true;
1459
- function disableLogs() {
1460
- {
1461
- if (disabledDepth === 0) {
1462
- prevLog = console.log;
1463
- prevInfo = console.info;
1464
- prevWarn = console.warn;
1465
- prevError = console.error;
1466
- prevGroup = console.group;
1467
- prevGroupCollapsed = console.groupCollapsed;
1468
- prevGroupEnd = console.groupEnd;
1469
- var props = {
1470
- configurable: true,
1471
- enumerable: true,
1472
- value: disabledLog,
1473
- writable: true
1474
- };
1475
- Object.defineProperties(console, {
1476
- info: props,
1477
- log: props,
1478
- warn: props,
1479
- error: props,
1480
- group: props,
1481
- groupCollapsed: props,
1482
- groupEnd: props
1483
- });
1484
- }
1485
- disabledDepth++;
1486
- }
1487
- }
1488
- function reenableLogs() {
1489
- {
1490
- disabledDepth--;
1491
- if (disabledDepth === 0) {
1492
- var props = {
1493
- configurable: true,
1494
- enumerable: true,
1495
- writable: true
1496
- };
1497
- Object.defineProperties(console, {
1498
- log: assign({}, props, {
1499
- value: prevLog
1500
- }),
1501
- info: assign({}, props, {
1502
- value: prevInfo
1503
- }),
1504
- warn: assign({}, props, {
1505
- value: prevWarn
1506
- }),
1507
- error: assign({}, props, {
1508
- value: prevError
1509
- }),
1510
- group: assign({}, props, {
1511
- value: prevGroup
1512
- }),
1513
- groupCollapsed: assign({}, props, {
1514
- value: prevGroupCollapsed
1515
- }),
1516
- groupEnd: assign({}, props, {
1517
- value: prevGroupEnd
1518
- })
1519
- });
1520
- }
1521
- if (disabledDepth < 0) {
1522
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1523
- }
1524
- }
1525
- }
1526
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1527
- var prefix;
1528
- function describeBuiltInComponentFrame(name, source, ownerFn) {
1529
- {
1530
- if (prefix === void 0) {
1531
- try {
1532
- throw Error();
1533
- } catch (x) {
1534
- var match = x.stack.trim().match(/\n( *(at )?)/);
1535
- prefix = match && match[1] || "";
1536
- }
1537
- }
1538
- return "\n" + prefix + name;
1539
- }
1540
- }
1541
- var reentry = false;
1542
- var componentFrameCache;
1543
- {
1544
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1545
- componentFrameCache = new PossiblyWeakMap();
1546
- }
1547
- function describeNativeComponentFrame(fn, construct) {
1548
- if (!fn || reentry) {
1549
- return "";
1550
- }
1551
- {
1552
- var frame = componentFrameCache.get(fn);
1553
- if (frame !== void 0) {
1554
- return frame;
1555
- }
1556
- }
1557
- var control;
1558
- reentry = true;
1559
- var previousPrepareStackTrace = Error.prepareStackTrace;
1560
- Error.prepareStackTrace = void 0;
1561
- var previousDispatcher;
1562
- {
1563
- previousDispatcher = ReactCurrentDispatcher$1.current;
1564
- ReactCurrentDispatcher$1.current = null;
1565
- disableLogs();
1566
- }
1567
- try {
1568
- if (construct) {
1569
- var Fake = function() {
1570
- throw Error();
1571
- };
1572
- Object.defineProperty(Fake.prototype, "props", {
1573
- set: function() {
1574
- throw Error();
1575
- }
1576
- });
1577
- if (typeof Reflect === "object" && Reflect.construct) {
1578
- try {
1579
- Reflect.construct(Fake, []);
1580
- } catch (x) {
1581
- control = x;
1582
- }
1583
- Reflect.construct(fn, [], Fake);
1584
- } else {
1585
- try {
1586
- Fake.call();
1587
- } catch (x) {
1588
- control = x;
1589
- }
1590
- fn.call(Fake.prototype);
1591
- }
1592
- } else {
1593
- try {
1594
- throw Error();
1595
- } catch (x) {
1596
- control = x;
1597
- }
1598
- fn();
1599
- }
1600
- } catch (sample) {
1601
- if (sample && control && typeof sample.stack === "string") {
1602
- var sampleLines = sample.stack.split("\n");
1603
- var controlLines = control.stack.split("\n");
1604
- var s = sampleLines.length - 1;
1605
- var c = controlLines.length - 1;
1606
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1607
- c--;
1608
- }
1609
- for (; s >= 1 && c >= 0; s--, c--) {
1610
- if (sampleLines[s] !== controlLines[c]) {
1611
- if (s !== 1 || c !== 1) {
1612
- do {
1613
- s--;
1614
- c--;
1615
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
1616
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1617
- if (fn.displayName && _frame.includes("<anonymous>")) {
1618
- _frame = _frame.replace("<anonymous>", fn.displayName);
1619
- }
1620
- {
1621
- if (typeof fn === "function") {
1622
- componentFrameCache.set(fn, _frame);
1623
- }
1624
- }
1625
- return _frame;
1626
- }
1627
- } while (s >= 1 && c >= 0);
1628
- }
1629
- break;
1630
- }
1631
- }
1632
- }
1633
- } finally {
1634
- reentry = false;
1635
- {
1636
- ReactCurrentDispatcher$1.current = previousDispatcher;
1637
- reenableLogs();
1638
- }
1639
- Error.prepareStackTrace = previousPrepareStackTrace;
1640
- }
1641
- var name = fn ? fn.displayName || fn.name : "";
1642
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1643
- {
1644
- if (typeof fn === "function") {
1645
- componentFrameCache.set(fn, syntheticFrame);
1646
- }
1647
- }
1648
- return syntheticFrame;
1649
- }
1650
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1651
- {
1652
- return describeNativeComponentFrame(fn, false);
1653
- }
1654
- }
1655
- function shouldConstruct(Component22) {
1656
- var prototype = Component22.prototype;
1657
- return !!(prototype && prototype.isReactComponent);
1658
- }
1659
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1660
- if (type == null) {
1661
- return "";
1662
- }
1663
- if (typeof type === "function") {
1664
- {
1665
- return describeNativeComponentFrame(type, shouldConstruct(type));
1666
- }
1667
- }
1668
- if (typeof type === "string") {
1669
- return describeBuiltInComponentFrame(type);
1670
- }
1671
- switch (type) {
1672
- case REACT_SUSPENSE_TYPE:
1673
- return describeBuiltInComponentFrame("Suspense");
1674
- case REACT_SUSPENSE_LIST_TYPE:
1675
- return describeBuiltInComponentFrame("SuspenseList");
1676
- }
1677
- if (typeof type === "object") {
1678
- switch (type.$$typeof) {
1679
- case REACT_FORWARD_REF_TYPE:
1680
- return describeFunctionComponentFrame(type.render);
1681
- case REACT_MEMO_TYPE:
1682
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1683
- case REACT_LAZY_TYPE: {
1684
- var lazyComponent = type;
1685
- var payload = lazyComponent._payload;
1686
- var init = lazyComponent._init;
1687
- try {
1688
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1689
- } catch (x) {
1690
- }
1691
- }
1692
- }
1693
- }
1694
- return "";
1695
- }
1696
- var loggedTypeFailures = {};
1697
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1698
- function setCurrentlyValidatingElement(element) {
1699
- {
1700
- if (element) {
1701
- var owner = element._owner;
1702
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1703
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1704
- } else {
1705
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1706
- }
1707
- }
1708
- }
1709
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
1710
- {
1711
- var has = Function.call.bind(hasOwnProperty);
1712
- for (var typeSpecName in typeSpecs) {
1713
- if (has(typeSpecs, typeSpecName)) {
1714
- var error$1 = void 0;
1715
- try {
1716
- if (typeof typeSpecs[typeSpecName] !== "function") {
1717
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1718
- err.name = "Invariant Violation";
1719
- throw err;
1720
- }
1721
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1722
- } catch (ex) {
1723
- error$1 = ex;
1724
- }
1725
- if (error$1 && !(error$1 instanceof Error)) {
1726
- setCurrentlyValidatingElement(element);
1727
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
1728
- setCurrentlyValidatingElement(null);
1729
- }
1730
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1731
- loggedTypeFailures[error$1.message] = true;
1732
- setCurrentlyValidatingElement(element);
1733
- error("Failed %s type: %s", location, error$1.message);
1734
- setCurrentlyValidatingElement(null);
1735
- }
1736
- }
1737
- }
1738
- }
1739
- }
1740
- function setCurrentlyValidatingElement$1(element) {
1741
- {
1742
- if (element) {
1743
- var owner = element._owner;
1744
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1745
- setExtraStackFrame(stack);
1746
- } else {
1747
- setExtraStackFrame(null);
1748
- }
1749
- }
1750
- }
1751
- var propTypesMisspellWarningShown;
1752
- {
1753
- propTypesMisspellWarningShown = false;
1754
- }
1755
- function getDeclarationErrorAddendum() {
1756
- if (ReactCurrentOwner.current) {
1757
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1758
- if (name) {
1759
- return "\n\nCheck the render method of `" + name + "`.";
1760
- }
1761
- }
1762
- return "";
1763
- }
1764
- function getSourceInfoErrorAddendum(source) {
1765
- if (source !== void 0) {
1766
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1767
- var lineNumber = source.lineNumber;
1768
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1769
- }
1770
- return "";
1771
- }
1772
- function getSourceInfoErrorAddendumForProps(elementProps) {
1773
- if (elementProps !== null && elementProps !== void 0) {
1774
- return getSourceInfoErrorAddendum(elementProps.__source);
1775
- }
1776
- return "";
1777
- }
1778
- var ownerHasKeyUseWarning = {};
1779
- function getCurrentComponentErrorInfo(parentType) {
1780
- var info = getDeclarationErrorAddendum();
1781
- if (!info) {
1782
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1783
- if (parentName) {
1784
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1785
- }
1786
- }
1787
- return info;
1788
- }
1789
- function validateExplicitKey(element, parentType) {
1790
- if (!element._store || element._store.validated || element.key != null) {
1791
- return;
1792
- }
1793
- element._store.validated = true;
1794
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1795
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1796
- return;
1797
- }
1798
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1799
- var childOwner = "";
1800
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1801
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1802
- }
1803
- {
1804
- setCurrentlyValidatingElement$1(element);
1805
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1806
- setCurrentlyValidatingElement$1(null);
1807
- }
1808
- }
1809
- function validateChildKeys(node, parentType) {
1810
- if (typeof node !== "object") {
1811
- return;
1812
- }
1813
- if (isArray(node)) {
1814
- for (var i = 0; i < node.length; i++) {
1815
- var child = node[i];
1816
- if (isValidElement(child)) {
1817
- validateExplicitKey(child, parentType);
1818
- }
1819
- }
1820
- } else if (isValidElement(node)) {
1821
- if (node._store) {
1822
- node._store.validated = true;
1823
- }
1824
- } else if (node) {
1825
- var iteratorFn = getIteratorFn(node);
1826
- if (typeof iteratorFn === "function") {
1827
- if (iteratorFn !== node.entries) {
1828
- var iterator = iteratorFn.call(node);
1829
- var step;
1830
- while (!(step = iterator.next()).done) {
1831
- if (isValidElement(step.value)) {
1832
- validateExplicitKey(step.value, parentType);
1833
- }
1834
- }
1835
- }
1836
- }
1837
- }
1838
- }
1839
- function validatePropTypes(element) {
1840
- {
1841
- var type = element.type;
1842
- if (type === null || type === void 0 || typeof type === "string") {
1843
- return;
1844
- }
1845
- var propTypes;
1846
- if (typeof type === "function") {
1847
- propTypes = type.propTypes;
1848
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
1849
- propTypes = type.propTypes;
1850
- } else {
1851
- return;
1852
- }
1853
- if (propTypes) {
1854
- var name = getComponentNameFromType(type);
1855
- checkPropTypes(propTypes, element.props, "prop", name, element);
1856
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1857
- propTypesMisspellWarningShown = true;
1858
- var _name = getComponentNameFromType(type);
1859
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1860
- }
1861
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1862
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1863
- }
1864
- }
1865
- }
1866
- function validateFragmentProps(fragment) {
1867
- {
1868
- var keys = Object.keys(fragment.props);
1869
- for (var i = 0; i < keys.length; i++) {
1870
- var key = keys[i];
1871
- if (key !== "children" && key !== "key") {
1872
- setCurrentlyValidatingElement$1(fragment);
1873
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1874
- setCurrentlyValidatingElement$1(null);
1875
- break;
1876
- }
1877
- }
1878
- if (fragment.ref !== null) {
1879
- setCurrentlyValidatingElement$1(fragment);
1880
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
1881
- setCurrentlyValidatingElement$1(null);
1882
- }
1883
- }
1884
- }
1885
- function createElementWithValidation(type, props, children) {
1886
- var validType = isValidElementType(type);
1887
- if (!validType) {
1888
- var info = "";
1889
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1890
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1891
- }
1892
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1893
- if (sourceInfo) {
1894
- info += sourceInfo;
1895
- } else {
1896
- info += getDeclarationErrorAddendum();
1897
- }
1898
- var typeString;
1899
- if (type === null) {
1900
- typeString = "null";
1901
- } else if (isArray(type)) {
1902
- typeString = "array";
1903
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1904
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1905
- info = " Did you accidentally export a JSX literal instead of a component?";
1906
- } else {
1907
- typeString = typeof type;
1908
- }
1909
- {
1910
- error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
1911
- }
1912
- }
1913
- var element = createElement.apply(this, arguments);
1914
- if (element == null) {
1915
- return element;
1916
- }
1917
- if (validType) {
1918
- for (var i = 2; i < arguments.length; i++) {
1919
- validateChildKeys(arguments[i], type);
1920
- }
1921
- }
1922
- if (type === REACT_FRAGMENT_TYPE) {
1923
- validateFragmentProps(element);
1924
- } else {
1925
- validatePropTypes(element);
1926
- }
1927
- return element;
1928
- }
1929
- var didWarnAboutDeprecatedCreateFactory = false;
1930
- function createFactoryWithValidation(type) {
1931
- var validatedFactory = createElementWithValidation.bind(null, type);
1932
- validatedFactory.type = type;
1933
- {
1934
- if (!didWarnAboutDeprecatedCreateFactory) {
1935
- didWarnAboutDeprecatedCreateFactory = true;
1936
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1937
- }
1938
- Object.defineProperty(validatedFactory, "type", {
1939
- enumerable: false,
1940
- get: function() {
1941
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1942
- Object.defineProperty(this, "type", {
1943
- value: type
1944
- });
1945
- return type;
1946
- }
1947
- });
1948
- }
1949
- return validatedFactory;
1950
- }
1951
- function cloneElementWithValidation(element, props, children) {
1952
- var newElement = cloneElement.apply(this, arguments);
1953
- for (var i = 2; i < arguments.length; i++) {
1954
- validateChildKeys(arguments[i], newElement.type);
1955
- }
1956
- validatePropTypes(newElement);
1957
- return newElement;
1958
- }
1959
- function startTransition(scope, options) {
1960
- var prevTransition = ReactCurrentBatchConfig.transition;
1961
- ReactCurrentBatchConfig.transition = {};
1962
- var currentTransition = ReactCurrentBatchConfig.transition;
1963
- {
1964
- ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1965
- }
1966
- try {
1967
- scope();
1968
- } finally {
1969
- ReactCurrentBatchConfig.transition = prevTransition;
1970
- {
1971
- if (prevTransition === null && currentTransition._updatedFibers) {
1972
- var updatedFibersCount = currentTransition._updatedFibers.size;
1973
- if (updatedFibersCount > 10) {
1974
- warn("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.");
1975
- }
1976
- currentTransition._updatedFibers.clear();
1977
- }
1978
- }
1979
- }
1980
- }
1981
- var didWarnAboutMessageChannel = false;
1982
- var enqueueTaskImpl = null;
1983
- function enqueueTask(task) {
1984
- if (enqueueTaskImpl === null) {
1985
- try {
1986
- var requireString = ("require" + Math.random()).slice(0, 7);
1987
- var nodeRequire = module22 && module22[requireString];
1988
- enqueueTaskImpl = nodeRequire.call(module22, "timers").setImmediate;
1989
- } catch (_err) {
1990
- enqueueTaskImpl = function(callback) {
1991
- {
1992
- if (didWarnAboutMessageChannel === false) {
1993
- didWarnAboutMessageChannel = true;
1994
- if (typeof MessageChannel === "undefined") {
1995
- error("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.");
1996
- }
1997
- }
1998
- }
1999
- var channel = new MessageChannel();
2000
- channel.port1.onmessage = callback;
2001
- channel.port2.postMessage(void 0);
2002
- };
2003
- }
2004
- }
2005
- return enqueueTaskImpl(task);
2006
- }
2007
- var actScopeDepth = 0;
2008
- var didWarnNoAwaitAct = false;
2009
- function act(callback) {
2010
- {
2011
- var prevActScopeDepth = actScopeDepth;
2012
- actScopeDepth++;
2013
- if (ReactCurrentActQueue.current === null) {
2014
- ReactCurrentActQueue.current = [];
2015
- }
2016
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2017
- var result;
2018
- try {
2019
- ReactCurrentActQueue.isBatchingLegacy = true;
2020
- result = callback();
2021
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2022
- var queue = ReactCurrentActQueue.current;
2023
- if (queue !== null) {
2024
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2025
- flushActQueue(queue);
2026
- }
2027
- }
2028
- } catch (error2) {
2029
- popActScope(prevActScopeDepth);
2030
- throw error2;
2031
- } finally {
2032
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2033
- }
2034
- if (result !== null && typeof result === "object" && typeof result.then === "function") {
2035
- var thenableResult = result;
2036
- var wasAwaited = false;
2037
- var thenable = {
2038
- then: function(resolve, reject) {
2039
- wasAwaited = true;
2040
- thenableResult.then(function(returnValue2) {
2041
- popActScope(prevActScopeDepth);
2042
- if (actScopeDepth === 0) {
2043
- recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
2044
- } else {
2045
- resolve(returnValue2);
2046
- }
2047
- }, function(error2) {
2048
- popActScope(prevActScopeDepth);
2049
- reject(error2);
2050
- });
2051
- }
2052
- };
2053
- {
2054
- if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
2055
- Promise.resolve().then(function() {
2056
- }).then(function() {
2057
- if (!wasAwaited) {
2058
- didWarnNoAwaitAct = true;
2059
- error("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 () => ...);");
2060
- }
2061
- });
2062
- }
2063
- }
2064
- return thenable;
2065
- } else {
2066
- var returnValue = result;
2067
- popActScope(prevActScopeDepth);
2068
- if (actScopeDepth === 0) {
2069
- var _queue = ReactCurrentActQueue.current;
2070
- if (_queue !== null) {
2071
- flushActQueue(_queue);
2072
- ReactCurrentActQueue.current = null;
2073
- }
2074
- var _thenable = {
2075
- then: function(resolve, reject) {
2076
- if (ReactCurrentActQueue.current === null) {
2077
- ReactCurrentActQueue.current = [];
2078
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2079
- } else {
2080
- resolve(returnValue);
2081
- }
2082
- }
2083
- };
2084
- return _thenable;
2085
- } else {
2086
- var _thenable2 = {
2087
- then: function(resolve, reject) {
2088
- resolve(returnValue);
2089
- }
2090
- };
2091
- return _thenable2;
2092
- }
2093
- }
2094
- }
2095
- }
2096
- function popActScope(prevActScopeDepth) {
2097
- {
2098
- if (prevActScopeDepth !== actScopeDepth - 1) {
2099
- error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
2100
- }
2101
- actScopeDepth = prevActScopeDepth;
2102
- }
2103
- }
2104
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2105
- {
2106
- var queue = ReactCurrentActQueue.current;
2107
- if (queue !== null) {
2108
- try {
2109
- flushActQueue(queue);
2110
- enqueueTask(function() {
2111
- if (queue.length === 0) {
2112
- ReactCurrentActQueue.current = null;
2113
- resolve(returnValue);
2114
- } else {
2115
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2116
- }
2117
- });
2118
- } catch (error2) {
2119
- reject(error2);
2120
- }
2121
- } else {
2122
- resolve(returnValue);
2123
- }
2124
- }
2125
- }
2126
- var isFlushing = false;
2127
- function flushActQueue(queue) {
2128
- {
2129
- if (!isFlushing) {
2130
- isFlushing = true;
2131
- var i = 0;
2132
- try {
2133
- for (; i < queue.length; i++) {
2134
- var callback = queue[i];
2135
- do {
2136
- callback = callback(true);
2137
- } while (callback !== null);
2138
- }
2139
- queue.length = 0;
2140
- } catch (error2) {
2141
- queue = queue.slice(i + 1);
2142
- throw error2;
2143
- } finally {
2144
- isFlushing = false;
2145
- }
2146
- }
2147
- }
2148
- }
2149
- var createElement$1 = createElementWithValidation;
2150
- var cloneElement$1 = cloneElementWithValidation;
2151
- var createFactory = createFactoryWithValidation;
2152
- var Children = {
2153
- map: mapChildren,
2154
- forEach: forEachChildren,
2155
- count: countChildren,
2156
- toArray,
2157
- only: onlyChild
2158
- };
2159
- exports2.Children = Children;
2160
- exports2.Component = Component2;
2161
- exports2.Fragment = REACT_FRAGMENT_TYPE;
2162
- exports2.Profiler = REACT_PROFILER_TYPE;
2163
- exports2.PureComponent = PureComponent;
2164
- exports2.StrictMode = REACT_STRICT_MODE_TYPE;
2165
- exports2.Suspense = REACT_SUSPENSE_TYPE;
2166
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2167
- exports2.cloneElement = cloneElement$1;
2168
- exports2.createContext = createContext;
2169
- exports2.createElement = createElement$1;
2170
- exports2.createFactory = createFactory;
2171
- exports2.createRef = createRef;
2172
- exports2.forwardRef = forwardRef;
2173
- exports2.isValidElement = isValidElement;
2174
- exports2.lazy = lazy;
2175
- exports2.memo = memo;
2176
- exports2.startTransition = startTransition;
2177
- exports2.unstable_act = act;
2178
- exports2.useCallback = useCallback;
2179
- exports2.useContext = useContext;
2180
- exports2.useDebugValue = useDebugValue;
2181
- exports2.useDeferredValue = useDeferredValue;
2182
- exports2.useEffect = useEffect;
2183
- exports2.useId = useId;
2184
- exports2.useImperativeHandle = useImperativeHandle;
2185
- exports2.useInsertionEffect = useInsertionEffect;
2186
- exports2.useLayoutEffect = useLayoutEffect;
2187
- exports2.useMemo = useMemo;
2188
- exports2.useReducer = useReducer;
2189
- exports2.useRef = useRef;
2190
- exports2.useState = useState;
2191
- exports2.useSyncExternalStore = useSyncExternalStore;
2192
- exports2.useTransition = useTransition;
2193
- exports2.version = ReactVersion;
2194
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
2195
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2196
- }
2197
- })();
2198
- }
2199
- }
2200
- });
2201
- var require_react = __commonJS2({
2202
- "../../node_modules/react/index.js"(exports2, module22) {
2203
- "use strict";
2204
- if (process.env.NODE_ENV === "production") {
2205
- module22.exports = require_react_production_min();
2206
- } else {
2207
- module22.exports = require_react_development();
2208
- }
2209
- }
2210
- });
2211
- var require_react_jsx_runtime_production_min = __commonJS2({
2212
- "../../node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports2) {
2213
- "use strict";
2214
- var f = require_react();
2215
- var k = Symbol.for("react.element");
2216
- var l = Symbol.for("react.fragment");
2217
- var m = Object.prototype.hasOwnProperty;
2218
- var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
2219
- var p = { key: true, ref: true, __self: true, __source: true };
2220
- function q(c, a, g) {
2221
- var b, d = {}, e = null, h = null;
2222
- void 0 !== g && (e = "" + g);
2223
- void 0 !== a.key && (e = "" + a.key);
2224
- void 0 !== a.ref && (h = a.ref);
2225
- for (b in a)
2226
- m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
2227
- if (c && c.defaultProps)
2228
- for (b in a = c.defaultProps, a)
2229
- void 0 === d[b] && (d[b] = a[b]);
2230
- return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
2231
- }
2232
- exports2.Fragment = l;
2233
- exports2.jsx = q;
2234
- exports2.jsxs = q;
2235
- }
2236
- });
2237
- var require_react_jsx_runtime_development = __commonJS2({
2238
- "../../node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
2239
- "use strict";
2240
- if (process.env.NODE_ENV !== "production") {
2241
- (function() {
2242
- "use strict";
2243
- var React282 = require_react();
2244
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
2245
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
2246
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
2247
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
2248
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2249
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
2250
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
2251
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
2252
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
2253
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
2254
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
2255
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
2256
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
2257
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2258
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
2259
- function getIteratorFn(maybeIterable) {
2260
- if (maybeIterable === null || typeof maybeIterable !== "object") {
2261
- return null;
2262
- }
2263
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2264
- if (typeof maybeIterator === "function") {
2265
- return maybeIterator;
2266
- }
2267
- return null;
2268
- }
2269
- var ReactSharedInternals = React282.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2270
- function error(format) {
2271
- {
2272
- {
2273
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2274
- args[_key2 - 1] = arguments[_key2];
2275
- }
2276
- printWarning("error", format, args);
2277
- }
2278
- }
2279
- }
2280
- function printWarning(level, format, args) {
2281
- {
2282
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
2283
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
2284
- if (stack !== "") {
2285
- format += "%s";
2286
- args = args.concat([stack]);
2287
- }
2288
- var argsWithFormat = args.map(function(item) {
2289
- return String(item);
2290
- });
2291
- argsWithFormat.unshift("Warning: " + format);
2292
- Function.prototype.apply.call(console[level], console, argsWithFormat);
2293
- }
2294
- }
2295
- var enableScopeAPI = false;
2296
- var enableCacheElement = false;
2297
- var enableTransitionTracing = false;
2298
- var enableLegacyHidden = false;
2299
- var enableDebugTracing = false;
2300
- var REACT_MODULE_REFERENCE;
2301
- {
2302
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
2303
- }
2304
- function isValidElementType(type) {
2305
- if (typeof type === "string" || typeof type === "function") {
2306
- return true;
2307
- }
2308
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
2309
- return true;
2310
- }
2311
- if (typeof type === "object" && type !== null) {
2312
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
2313
- return true;
2314
- }
2315
- }
2316
- return false;
2317
- }
2318
- function getWrappedName(outerType, innerType, wrapperName) {
2319
- var displayName = outerType.displayName;
2320
- if (displayName) {
2321
- return displayName;
2322
- }
2323
- var functionName = innerType.displayName || innerType.name || "";
2324
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
2325
- }
2326
- function getContextName(type) {
2327
- return type.displayName || "Context";
2328
- }
2329
- function getComponentNameFromType(type) {
2330
- if (type == null) {
2331
- return null;
2332
- }
2333
- {
2334
- if (typeof type.tag === "number") {
2335
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
2336
- }
2337
- }
2338
- if (typeof type === "function") {
2339
- return type.displayName || type.name || null;
2340
- }
2341
- if (typeof type === "string") {
2342
- return type;
2343
- }
2344
- switch (type) {
2345
- case REACT_FRAGMENT_TYPE:
2346
- return "Fragment";
2347
- case REACT_PORTAL_TYPE:
2348
- return "Portal";
2349
- case REACT_PROFILER_TYPE:
2350
- return "Profiler";
2351
- case REACT_STRICT_MODE_TYPE:
2352
- return "StrictMode";
2353
- case REACT_SUSPENSE_TYPE:
2354
- return "Suspense";
2355
- case REACT_SUSPENSE_LIST_TYPE:
2356
- return "SuspenseList";
2357
- }
2358
- if (typeof type === "object") {
2359
- switch (type.$$typeof) {
2360
- case REACT_CONTEXT_TYPE:
2361
- var context = type;
2362
- return getContextName(context) + ".Consumer";
2363
- case REACT_PROVIDER_TYPE:
2364
- var provider = type;
2365
- return getContextName(provider._context) + ".Provider";
2366
- case REACT_FORWARD_REF_TYPE:
2367
- return getWrappedName(type, type.render, "ForwardRef");
2368
- case REACT_MEMO_TYPE:
2369
- var outerName = type.displayName || null;
2370
- if (outerName !== null) {
2371
- return outerName;
2372
- }
2373
- return getComponentNameFromType(type.type) || "Memo";
2374
- case REACT_LAZY_TYPE: {
2375
- var lazyComponent = type;
2376
- var payload = lazyComponent._payload;
2377
- var init = lazyComponent._init;
2378
- try {
2379
- return getComponentNameFromType(init(payload));
2380
- } catch (x) {
2381
- return null;
2382
- }
2383
- }
2384
- }
2385
- }
2386
- return null;
2387
- }
2388
- var assign = Object.assign;
2389
- var disabledDepth = 0;
2390
- var prevLog;
2391
- var prevInfo;
2392
- var prevWarn;
2393
- var prevError;
2394
- var prevGroup;
2395
- var prevGroupCollapsed;
2396
- var prevGroupEnd;
2397
- function disabledLog() {
2398
- }
2399
- disabledLog.__reactDisabledLog = true;
2400
- function disableLogs() {
2401
- {
2402
- if (disabledDepth === 0) {
2403
- prevLog = console.log;
2404
- prevInfo = console.info;
2405
- prevWarn = console.warn;
2406
- prevError = console.error;
2407
- prevGroup = console.group;
2408
- prevGroupCollapsed = console.groupCollapsed;
2409
- prevGroupEnd = console.groupEnd;
2410
- var props = {
2411
- configurable: true,
2412
- enumerable: true,
2413
- value: disabledLog,
2414
- writable: true
2415
- };
2416
- Object.defineProperties(console, {
2417
- info: props,
2418
- log: props,
2419
- warn: props,
2420
- error: props,
2421
- group: props,
2422
- groupCollapsed: props,
2423
- groupEnd: props
2424
- });
2425
- }
2426
- disabledDepth++;
2427
- }
2428
- }
2429
- function reenableLogs() {
2430
- {
2431
- disabledDepth--;
2432
- if (disabledDepth === 0) {
2433
- var props = {
2434
- configurable: true,
2435
- enumerable: true,
2436
- writable: true
2437
- };
2438
- Object.defineProperties(console, {
2439
- log: assign({}, props, {
2440
- value: prevLog
2441
- }),
2442
- info: assign({}, props, {
2443
- value: prevInfo
2444
- }),
2445
- warn: assign({}, props, {
2446
- value: prevWarn
2447
- }),
2448
- error: assign({}, props, {
2449
- value: prevError
2450
- }),
2451
- group: assign({}, props, {
2452
- value: prevGroup
2453
- }),
2454
- groupCollapsed: assign({}, props, {
2455
- value: prevGroupCollapsed
2456
- }),
2457
- groupEnd: assign({}, props, {
2458
- value: prevGroupEnd
2459
- })
2460
- });
2461
- }
2462
- if (disabledDepth < 0) {
2463
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2464
- }
2465
- }
2466
- }
2467
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2468
- var prefix;
2469
- function describeBuiltInComponentFrame(name, source, ownerFn) {
2470
- {
2471
- if (prefix === void 0) {
2472
- try {
2473
- throw Error();
2474
- } catch (x) {
2475
- var match = x.stack.trim().match(/\n( *(at )?)/);
2476
- prefix = match && match[1] || "";
2477
- }
2478
- }
2479
- return "\n" + prefix + name;
2480
- }
2481
- }
2482
- var reentry = false;
2483
- var componentFrameCache;
2484
- {
2485
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
2486
- componentFrameCache = new PossiblyWeakMap();
2487
- }
2488
- function describeNativeComponentFrame(fn, construct) {
2489
- if (!fn || reentry) {
2490
- return "";
2491
- }
2492
- {
2493
- var frame = componentFrameCache.get(fn);
2494
- if (frame !== void 0) {
2495
- return frame;
2496
- }
2497
- }
2498
- var control;
2499
- reentry = true;
2500
- var previousPrepareStackTrace = Error.prepareStackTrace;
2501
- Error.prepareStackTrace = void 0;
2502
- var previousDispatcher;
2503
- {
2504
- previousDispatcher = ReactCurrentDispatcher.current;
2505
- ReactCurrentDispatcher.current = null;
2506
- disableLogs();
2507
- }
2508
- try {
2509
- if (construct) {
2510
- var Fake = function() {
2511
- throw Error();
2512
- };
2513
- Object.defineProperty(Fake.prototype, "props", {
2514
- set: function() {
2515
- throw Error();
2516
- }
2517
- });
2518
- if (typeof Reflect === "object" && Reflect.construct) {
2519
- try {
2520
- Reflect.construct(Fake, []);
2521
- } catch (x) {
2522
- control = x;
2523
- }
2524
- Reflect.construct(fn, [], Fake);
2525
- } else {
2526
- try {
2527
- Fake.call();
2528
- } catch (x) {
2529
- control = x;
2530
- }
2531
- fn.call(Fake.prototype);
2532
- }
2533
- } else {
2534
- try {
2535
- throw Error();
2536
- } catch (x) {
2537
- control = x;
2538
- }
2539
- fn();
2540
- }
2541
- } catch (sample) {
2542
- if (sample && control && typeof sample.stack === "string") {
2543
- var sampleLines = sample.stack.split("\n");
2544
- var controlLines = control.stack.split("\n");
2545
- var s = sampleLines.length - 1;
2546
- var c = controlLines.length - 1;
2547
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2548
- c--;
2549
- }
2550
- for (; s >= 1 && c >= 0; s--, c--) {
2551
- if (sampleLines[s] !== controlLines[c]) {
2552
- if (s !== 1 || c !== 1) {
2553
- do {
2554
- s--;
2555
- c--;
2556
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
2557
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
2558
- if (fn.displayName && _frame.includes("<anonymous>")) {
2559
- _frame = _frame.replace("<anonymous>", fn.displayName);
2560
- }
2561
- {
2562
- if (typeof fn === "function") {
2563
- componentFrameCache.set(fn, _frame);
2564
- }
2565
- }
2566
- return _frame;
2567
- }
2568
- } while (s >= 1 && c >= 0);
2569
- }
2570
- break;
2571
- }
2572
- }
2573
- }
2574
- } finally {
2575
- reentry = false;
2576
- {
2577
- ReactCurrentDispatcher.current = previousDispatcher;
2578
- reenableLogs();
2579
- }
2580
- Error.prepareStackTrace = previousPrepareStackTrace;
2581
- }
2582
- var name = fn ? fn.displayName || fn.name : "";
2583
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
2584
- {
2585
- if (typeof fn === "function") {
2586
- componentFrameCache.set(fn, syntheticFrame);
2587
- }
2588
- }
2589
- return syntheticFrame;
2590
- }
2591
- function describeFunctionComponentFrame(fn, source, ownerFn) {
2592
- {
2593
- return describeNativeComponentFrame(fn, false);
2594
- }
2595
- }
2596
- function shouldConstruct(Component2) {
2597
- var prototype = Component2.prototype;
2598
- return !!(prototype && prototype.isReactComponent);
2599
- }
2600
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2601
- if (type == null) {
2602
- return "";
2603
- }
2604
- if (typeof type === "function") {
2605
- {
2606
- return describeNativeComponentFrame(type, shouldConstruct(type));
2607
- }
2608
- }
2609
- if (typeof type === "string") {
2610
- return describeBuiltInComponentFrame(type);
2611
- }
2612
- switch (type) {
2613
- case REACT_SUSPENSE_TYPE:
2614
- return describeBuiltInComponentFrame("Suspense");
2615
- case REACT_SUSPENSE_LIST_TYPE:
2616
- return describeBuiltInComponentFrame("SuspenseList");
2617
- }
2618
- if (typeof type === "object") {
2619
- switch (type.$$typeof) {
2620
- case REACT_FORWARD_REF_TYPE:
2621
- return describeFunctionComponentFrame(type.render);
2622
- case REACT_MEMO_TYPE:
2623
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2624
- case REACT_LAZY_TYPE: {
2625
- var lazyComponent = type;
2626
- var payload = lazyComponent._payload;
2627
- var init = lazyComponent._init;
2628
- try {
2629
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2630
- } catch (x) {
2631
- }
2632
- }
2633
- }
2634
- }
2635
- return "";
2636
- }
2637
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2638
- var loggedTypeFailures = {};
2639
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2640
- function setCurrentlyValidatingElement(element) {
2641
- {
2642
- if (element) {
2643
- var owner = element._owner;
2644
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2645
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
2646
- } else {
2647
- ReactDebugCurrentFrame.setExtraStackFrame(null);
2648
- }
2649
- }
2650
- }
2651
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
2652
- {
2653
- var has = Function.call.bind(hasOwnProperty);
2654
- for (var typeSpecName in typeSpecs) {
2655
- if (has(typeSpecs, typeSpecName)) {
2656
- var error$1 = void 0;
2657
- try {
2658
- if (typeof typeSpecs[typeSpecName] !== "function") {
2659
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2660
- err.name = "Invariant Violation";
2661
- throw err;
2662
- }
2663
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2664
- } catch (ex) {
2665
- error$1 = ex;
2666
- }
2667
- if (error$1 && !(error$1 instanceof Error)) {
2668
- setCurrentlyValidatingElement(element);
2669
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
2670
- setCurrentlyValidatingElement(null);
2671
- }
2672
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2673
- loggedTypeFailures[error$1.message] = true;
2674
- setCurrentlyValidatingElement(element);
2675
- error("Failed %s type: %s", location, error$1.message);
2676
- setCurrentlyValidatingElement(null);
2677
- }
2678
- }
2679
- }
2680
- }
2681
- }
2682
- var isArrayImpl = Array.isArray;
2683
- function isArray(a) {
2684
- return isArrayImpl(a);
2685
- }
2686
- function typeName(value) {
2687
- {
2688
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
2689
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
2690
- return type;
2691
- }
2692
- }
2693
- function willCoercionThrow(value) {
2694
- {
2695
- try {
2696
- testStringCoercion(value);
2697
- return false;
2698
- } catch (e) {
2699
- return true;
2700
- }
2701
- }
2702
- }
2703
- function testStringCoercion(value) {
2704
- return "" + value;
2705
- }
2706
- function checkKeyStringCoercion(value) {
2707
- {
2708
- if (willCoercionThrow(value)) {
2709
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
2710
- return testStringCoercion(value);
2711
- }
2712
- }
2713
- }
2714
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2715
- var RESERVED_PROPS = {
2716
- key: true,
2717
- ref: true,
2718
- __self: true,
2719
- __source: true
2720
- };
2721
- var specialPropKeyWarningShown;
2722
- var specialPropRefWarningShown;
2723
- var didWarnAboutStringRefs;
2724
- {
2725
- didWarnAboutStringRefs = {};
2726
- }
2727
- function hasValidRef(config) {
2728
- {
2729
- if (hasOwnProperty.call(config, "ref")) {
2730
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
2731
- if (getter && getter.isReactWarning) {
2732
- return false;
2733
- }
2734
- }
2735
- }
2736
- return config.ref !== void 0;
2737
- }
2738
- function hasValidKey(config) {
2739
- {
2740
- if (hasOwnProperty.call(config, "key")) {
2741
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2742
- if (getter && getter.isReactWarning) {
2743
- return false;
2744
- }
2745
- }
2746
- }
2747
- return config.key !== void 0;
2748
- }
2749
- function warnIfStringRefCannotBeAutoConverted(config, self) {
2750
- {
2751
- if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2752
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2753
- if (!didWarnAboutStringRefs[componentName]) {
2754
- error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2755
- didWarnAboutStringRefs[componentName] = true;
2756
- }
2757
- }
2758
- }
2759
- }
2760
- function defineKeyPropWarningGetter(props, displayName) {
2761
- {
2762
- var warnAboutAccessingKey = function() {
2763
- if (!specialPropKeyWarningShown) {
2764
- specialPropKeyWarningShown = true;
2765
- error("%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://reactjs.org/link/special-props)", displayName);
2766
- }
2767
- };
2768
- warnAboutAccessingKey.isReactWarning = true;
2769
- Object.defineProperty(props, "key", {
2770
- get: warnAboutAccessingKey,
2771
- configurable: true
2772
- });
2773
- }
2774
- }
2775
- function defineRefPropWarningGetter(props, displayName) {
2776
- {
2777
- var warnAboutAccessingRef = function() {
2778
- if (!specialPropRefWarningShown) {
2779
- specialPropRefWarningShown = true;
2780
- error("%s: `ref` 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://reactjs.org/link/special-props)", displayName);
2781
- }
2782
- };
2783
- warnAboutAccessingRef.isReactWarning = true;
2784
- Object.defineProperty(props, "ref", {
2785
- get: warnAboutAccessingRef,
2786
- configurable: true
2787
- });
2788
- }
2789
- }
2790
- var ReactElement = function(type, key, ref, self, source, owner, props) {
2791
- var element = {
2792
- $$typeof: REACT_ELEMENT_TYPE,
2793
- type,
2794
- key,
2795
- ref,
2796
- props,
2797
- _owner: owner
2798
- };
2799
- {
2800
- element._store = {};
2801
- Object.defineProperty(element._store, "validated", {
2802
- configurable: false,
2803
- enumerable: false,
2804
- writable: true,
2805
- value: false
2806
- });
2807
- Object.defineProperty(element, "_self", {
2808
- configurable: false,
2809
- enumerable: false,
2810
- writable: false,
2811
- value: self
2812
- });
2813
- Object.defineProperty(element, "_source", {
2814
- configurable: false,
2815
- enumerable: false,
2816
- writable: false,
2817
- value: source
2818
- });
2819
- if (Object.freeze) {
2820
- Object.freeze(element.props);
2821
- Object.freeze(element);
2822
- }
2823
- }
2824
- return element;
2825
- };
2826
- function jsxDEV(type, config, maybeKey, source, self) {
2827
- {
2828
- var propName;
2829
- var props = {};
2830
- var key = null;
2831
- var ref = null;
2832
- if (maybeKey !== void 0) {
2833
- {
2834
- checkKeyStringCoercion(maybeKey);
2835
- }
2836
- key = "" + maybeKey;
2837
- }
2838
- if (hasValidKey(config)) {
2839
- {
2840
- checkKeyStringCoercion(config.key);
2841
- }
2842
- key = "" + config.key;
2843
- }
2844
- if (hasValidRef(config)) {
2845
- ref = config.ref;
2846
- warnIfStringRefCannotBeAutoConverted(config, self);
2847
- }
2848
- for (propName in config) {
2849
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2850
- props[propName] = config[propName];
2851
- }
2852
- }
2853
- if (type && type.defaultProps) {
2854
- var defaultProps = type.defaultProps;
2855
- for (propName in defaultProps) {
2856
- if (props[propName] === void 0) {
2857
- props[propName] = defaultProps[propName];
2858
- }
2859
- }
2860
- }
2861
- if (key || ref) {
2862
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
2863
- if (key) {
2864
- defineKeyPropWarningGetter(props, displayName);
2865
- }
2866
- if (ref) {
2867
- defineRefPropWarningGetter(props, displayName);
2868
- }
2869
- }
2870
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2871
- }
2872
- }
2873
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2874
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2875
- function setCurrentlyValidatingElement$1(element) {
2876
- {
2877
- if (element) {
2878
- var owner = element._owner;
2879
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2880
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2881
- } else {
2882
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2883
- }
2884
- }
2885
- }
2886
- var propTypesMisspellWarningShown;
2887
- {
2888
- propTypesMisspellWarningShown = false;
2889
- }
2890
- function isValidElement(object) {
2891
- {
2892
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2893
- }
2894
- }
2895
- function getDeclarationErrorAddendum() {
2896
- {
2897
- if (ReactCurrentOwner$1.current) {
2898
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2899
- if (name) {
2900
- return "\n\nCheck the render method of `" + name + "`.";
2901
- }
2902
- }
2903
- return "";
2904
- }
2905
- }
2906
- function getSourceInfoErrorAddendum(source) {
2907
- {
2908
- if (source !== void 0) {
2909
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
2910
- var lineNumber = source.lineNumber;
2911
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
2912
- }
2913
- return "";
2914
- }
2915
- }
2916
- var ownerHasKeyUseWarning = {};
2917
- function getCurrentComponentErrorInfo(parentType) {
2918
- {
2919
- var info = getDeclarationErrorAddendum();
2920
- if (!info) {
2921
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
2922
- if (parentName) {
2923
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2924
- }
2925
- }
2926
- return info;
2927
- }
2928
- }
2929
- function validateExplicitKey(element, parentType) {
2930
- {
2931
- if (!element._store || element._store.validated || element.key != null) {
2932
- return;
2933
- }
2934
- element._store.validated = true;
2935
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2936
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2937
- return;
2938
- }
2939
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
2940
- var childOwner = "";
2941
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2942
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2943
- }
2944
- setCurrentlyValidatingElement$1(element);
2945
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2946
- setCurrentlyValidatingElement$1(null);
2947
- }
2948
- }
2949
- function validateChildKeys(node, parentType) {
2950
- {
2951
- if (typeof node !== "object") {
2952
- return;
2953
- }
2954
- if (isArray(node)) {
2955
- for (var i = 0; i < node.length; i++) {
2956
- var child = node[i];
2957
- if (isValidElement(child)) {
2958
- validateExplicitKey(child, parentType);
2959
- }
2960
- }
2961
- } else if (isValidElement(node)) {
2962
- if (node._store) {
2963
- node._store.validated = true;
2964
- }
2965
- } else if (node) {
2966
- var iteratorFn = getIteratorFn(node);
2967
- if (typeof iteratorFn === "function") {
2968
- if (iteratorFn !== node.entries) {
2969
- var iterator = iteratorFn.call(node);
2970
- var step;
2971
- while (!(step = iterator.next()).done) {
2972
- if (isValidElement(step.value)) {
2973
- validateExplicitKey(step.value, parentType);
2974
- }
2975
- }
2976
- }
2977
- }
2978
- }
2979
- }
2980
- }
2981
- function validatePropTypes(element) {
2982
- {
2983
- var type = element.type;
2984
- if (type === null || type === void 0 || typeof type === "string") {
2985
- return;
2986
- }
2987
- var propTypes;
2988
- if (typeof type === "function") {
2989
- propTypes = type.propTypes;
2990
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
2991
- propTypes = type.propTypes;
2992
- } else {
2993
- return;
2994
- }
2995
- if (propTypes) {
2996
- var name = getComponentNameFromType(type);
2997
- checkPropTypes(propTypes, element.props, "prop", name, element);
2998
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
2999
- propTypesMisspellWarningShown = true;
3000
- var _name = getComponentNameFromType(type);
3001
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
3002
- }
3003
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
3004
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3005
- }
3006
- }
3007
- }
3008
- function validateFragmentProps(fragment) {
3009
- {
3010
- var keys = Object.keys(fragment.props);
3011
- for (var i = 0; i < keys.length; i++) {
3012
- var key = keys[i];
3013
- if (key !== "children" && key !== "key") {
3014
- setCurrentlyValidatingElement$1(fragment);
3015
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
3016
- setCurrentlyValidatingElement$1(null);
3017
- break;
3018
- }
3019
- }
3020
- if (fragment.ref !== null) {
3021
- setCurrentlyValidatingElement$1(fragment);
3022
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
3023
- setCurrentlyValidatingElement$1(null);
3024
- }
3025
- }
3026
- }
3027
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3028
- {
3029
- var validType = isValidElementType(type);
3030
- if (!validType) {
3031
- var info = "";
3032
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
3033
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
3034
- }
3035
- var sourceInfo = getSourceInfoErrorAddendum(source);
3036
- if (sourceInfo) {
3037
- info += sourceInfo;
3038
- } else {
3039
- info += getDeclarationErrorAddendum();
3040
- }
3041
- var typeString;
3042
- if (type === null) {
3043
- typeString = "null";
3044
- } else if (isArray(type)) {
3045
- typeString = "array";
3046
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
3047
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
3048
- info = " Did you accidentally export a JSX literal instead of a component?";
3049
- } else {
3050
- typeString = typeof type;
3051
- }
3052
- error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
3053
- }
3054
- var element = jsxDEV(type, props, key, source, self);
3055
- if (element == null) {
3056
- return element;
3057
- }
3058
- if (validType) {
3059
- var children = props.children;
3060
- if (children !== void 0) {
3061
- if (isStaticChildren) {
3062
- if (isArray(children)) {
3063
- for (var i = 0; i < children.length; i++) {
3064
- validateChildKeys(children[i], type);
3065
- }
3066
- if (Object.freeze) {
3067
- Object.freeze(children);
3068
- }
3069
- } else {
3070
- error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
3071
- }
3072
- } else {
3073
- validateChildKeys(children, type);
3074
- }
3075
- }
3076
- }
3077
- if (type === REACT_FRAGMENT_TYPE) {
3078
- validateFragmentProps(element);
3079
- } else {
3080
- validatePropTypes(element);
3081
- }
3082
- return element;
3083
- }
3084
- }
3085
- function jsxWithValidationStatic(type, props, key) {
3086
- {
3087
- return jsxWithValidation(type, props, key, true);
3088
- }
3089
- }
3090
- function jsxWithValidationDynamic(type, props, key) {
3091
- {
3092
- return jsxWithValidation(type, props, key, false);
3093
- }
3094
- }
3095
- var jsx282 = jsxWithValidationDynamic;
3096
- var jsxs92 = jsxWithValidationStatic;
3097
- exports2.Fragment = REACT_FRAGMENT_TYPE;
3098
- exports2.jsx = jsx282;
3099
- exports2.jsxs = jsxs92;
3100
- })();
3101
- }
3102
- }
3103
- });
3104
- var require_jsx_runtime = __commonJS2({
3105
- "../../node_modules/react/jsx-runtime.js"(exports2, module22) {
3106
- "use strict";
3107
- if (process.env.NODE_ENV === "production") {
3108
- module22.exports = require_react_jsx_runtime_production_min();
3109
- } else {
3110
- module22.exports = require_react_jsx_runtime_development();
3111
- }
97
+ var __export2 = (target, all) => {
98
+ for (var name in all)
99
+ __defProp2(target, name, { get: all[name], enumerable: true });
100
+ };
101
+ var __copyProps2 = (to, from, except, desc) => {
102
+ if (from && typeof from === "object" || typeof from === "function") {
103
+ for (let key of __getOwnPropNames2(from))
104
+ if (!__hasOwnProp2.call(to, key) && key !== except)
105
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
3112
106
  }
3113
- });
107
+ return to;
108
+ };
109
+ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
110
+ isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
111
+ mod
112
+ ));
113
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
3114
114
  var src_exports2 = {};
3115
115
  __export2(src_exports2, {
3116
116
  Button: () => Button_default2,
@@ -3145,7 +145,7 @@ var require_dist = __commonJS({
3145
145
  Tabs: () => Tabs_default,
3146
146
  Textarea: () => Textarea_default,
3147
147
  Toolbar: () => Toolbar_default,
3148
- cn: () => cn12,
148
+ cn: () => cn13,
3149
149
  theme: () => theme_default
3150
150
  });
3151
151
  module2.exports = __toCommonJS2(src_exports2);
@@ -3196,30 +196,30 @@ var require_dist = __commonJS({
3196
196
  }
3197
197
  };
3198
198
  var theme_default = theme;
3199
- var import_react30 = __toESM2(require_react());
3200
- function cn12() {
199
+ var import_react30 = __toESM2(require("react"));
200
+ function cn13() {
3201
201
  return Array.from(arguments).filter(Boolean).map(String).join(" ");
3202
202
  }
3203
- var import_jsx_runtime32 = __toESM2(require_jsx_runtime());
203
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3204
204
  var H5 = (_a) => {
3205
205
  var _b = _a, { size = "base", className = "" } = _b, props = __objRest2(_b, ["size", "className"]);
3206
206
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3207
207
  "div",
3208
208
  __spreadValues2({
3209
- className: cn12("r-reset", "r-heading", `r-fs-${size}`, className)
209
+ className: cn13("r-reset", "r-heading", `r-fs-${size}`, className)
3210
210
  }, props)
3211
211
  );
3212
212
  };
3213
213
  var H_default = H5;
3214
- var import_react210 = __toESM2(require_react());
3215
- var import_jsx_runtime210 = __toESM2(require_jsx_runtime());
214
+ var import_react210 = __toESM2(require("react"));
215
+ var import_jsx_runtime210 = require("react/jsx-runtime");
3216
216
  var P4 = (_a) => {
3217
217
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3218
- return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-paragraph", className) }, props));
218
+ return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-paragraph", className) }, props));
3219
219
  };
3220
220
  var P_default = P4;
3221
- var import_react32 = __toESM2(require_react());
3222
- var import_jsx_runtime33 = __toESM2(require_jsx_runtime());
221
+ var import_react32 = __toESM2(require("react"));
222
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3223
223
  var Button5 = (_a) => {
3224
224
  var _b = _a, {
3225
225
  as = "button",
@@ -3239,7 +239,7 @@ var require_dist = __commonJS({
3239
239
  Component2,
3240
240
  __spreadValues2({
3241
241
  type,
3242
- className: cn12(
242
+ className: cn13(
3243
243
  "r-reset",
3244
244
  "r-reset-button",
3245
245
  "r-button",
@@ -3257,18 +257,18 @@ var require_dist = __commonJS({
3257
257
  lg: "lg"
3258
258
  };
3259
259
  var Button_default2 = Button5;
3260
- var import_react42 = __toESM2(require_react());
3261
- var import_jsx_runtime42 = __toESM2(require_jsx_runtime());
260
+ var import_react42 = __toESM2(require("react"));
261
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3262
262
  var TabsWrapper = (_a) => {
3263
263
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3264
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", __spreadProps2(__spreadValues2({}, props), { className: cn12("r-reset", "r-tab-wrapper", className) }));
264
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", __spreadProps2(__spreadValues2({}, props), { className: cn13("r-reset", "r-tab-wrapper", className) }));
3265
265
  };
3266
266
  var Tab = (_a) => {
3267
267
  var _b = _a, { active, className } = _b, props = __objRest2(_b, ["active", "className"]);
3268
268
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
3269
269
  "button",
3270
270
  __spreadValues2({
3271
- className: cn12(
271
+ className: cn13(
3272
272
  `r-reset-button r-tab-button ${active ? "r-tab-button-active" : ""}`,
3273
273
  className
3274
274
  )
@@ -3292,60 +292,60 @@ var require_dist = __commonJS({
3292
292
  ] });
3293
293
  };
3294
294
  var Tabs_default = Tabs2;
3295
- var import_react52 = __toESM2(require_react());
3296
- var import_jsx_runtime52 = __toESM2(require_jsx_runtime());
295
+ var import_react52 = __toESM2(require("react"));
296
+ var import_jsx_runtime52 = require("react/jsx-runtime");
3297
297
  var Input2 = (_a) => {
3298
298
  var _b = _a, { className } = _b, rest = __objRest2(_b, ["className"]);
3299
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("input", __spreadValues2({ className: cn12("r-reset", "r-input", className) }, rest));
299
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("input", __spreadValues2({ className: cn13("r-reset", "r-input", className) }, rest));
3300
300
  };
3301
301
  var Input_default = Input2;
3302
- var import_react62 = __toESM2(require_react());
3303
- var import_jsx_runtime62 = __toESM2(require_jsx_runtime());
302
+ var import_react62 = __toESM2(require("react"));
303
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3304
304
  var Textarea2 = (_a) => {
3305
305
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3306
306
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
3307
307
  "textarea",
3308
308
  __spreadValues2({
3309
- className: cn12("r-reset", "r-input r-textarea", className)
309
+ className: cn13("r-reset", "r-input r-textarea", className)
3310
310
  }, props)
3311
311
  );
3312
312
  };
3313
313
  var Textarea_default = Textarea2;
3314
- var import_react72 = __toESM2(require_react());
3315
- var import_jsx_runtime72 = __toESM2(require_jsx_runtime());
314
+ var import_react72 = __toESM2(require("react"));
315
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3316
316
  var Select2 = (_a) => {
3317
317
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3318
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("select", __spreadValues2({ className: cn12("r-reset", "r-input r-select", className) }, props));
318
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("select", __spreadValues2({ className: cn13("r-reset", "r-input r-select", className) }, props));
3319
319
  };
3320
320
  var Select_default = Select2;
3321
- var import_react82 = __toESM2(require_react());
3322
- var import_jsx_runtime82 = __toESM2(require_jsx_runtime());
321
+ var import_react82 = __toESM2(require("react"));
322
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3323
323
  var FormGroup6 = (_a) => {
3324
324
  var _b = _a, { type, className } = _b, props = __objRest2(_b, ["type", "className"]);
3325
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-form-group", className) }, props));
325
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-form-group", className) }, props));
3326
326
  };
3327
327
  var FormGroup_default = FormGroup6;
3328
- var import_react92 = __toESM2(require_react());
3329
- var import_jsx_runtime92 = __toESM2(require_jsx_runtime());
328
+ var import_react92 = __toESM2(require("react"));
329
+ var import_jsx_runtime92 = require("react/jsx-runtime");
3330
330
  var Label4 = (_a) => {
3331
331
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3332
332
  return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3333
333
  "label",
3334
334
  __spreadValues2({
3335
- className: cn12("r-reset", "r-fs-small r-label", className)
335
+ className: cn13("r-reset", "r-fs-small r-label", className)
3336
336
  }, props)
3337
337
  );
3338
338
  };
3339
339
  var Label_default = Label4;
3340
- var import_react112 = __toESM2(require_react());
3341
- var import_react102 = __toESM2(require_react());
3342
- var import_jsx_runtime102 = __toESM2(require_jsx_runtime());
340
+ var import_react112 = __toESM2(require("react"));
341
+ var import_react102 = __toESM2(require("react"));
342
+ var import_jsx_runtime102 = require("react/jsx-runtime");
3343
343
  var Hint5 = (_a) => {
3344
344
  var _b = _a, { type, className } = _b, props = __objRest2(_b, ["type", "className"]);
3345
345
  return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
3346
346
  "div",
3347
347
  __spreadValues2({
3348
- className: cn12(
348
+ className: cn13(
3349
349
  "r-reset",
3350
350
  "r-fs-small r-hint",
3351
351
  className,
@@ -3355,7 +355,7 @@ var require_dist = __commonJS({
3355
355
  );
3356
356
  };
3357
357
  var Hint_default = Hint5;
3358
- var import_jsx_runtime112 = __toESM2(require_jsx_runtime());
358
+ var import_jsx_runtime112 = require("react/jsx-runtime");
3359
359
  var Field = (_a) => {
3360
360
  var _b = _a, {
3361
361
  as = "input",
@@ -3388,75 +388,75 @@ var require_dist = __commonJS({
3388
388
  ] }));
3389
389
  };
3390
390
  var Field_default = Field;
3391
- var import_react122 = __toESM2(require_react());
3392
- var import_jsx_runtime122 = __toESM2(require_jsx_runtime());
391
+ var import_react122 = __toESM2(require("react"));
392
+ var import_jsx_runtime122 = require("react/jsx-runtime");
3393
393
  var Toolbar = (_a) => {
3394
394
  var _b = _a, { mb, className } = _b, props = __objRest2(_b, ["mb", "className"]);
3395
395
  return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
3396
396
  "div",
3397
397
  __spreadValues2({
3398
398
  style: { marginBottom: mb || 0 },
3399
- className: cn12("r-reset", "r-toolbar", className)
399
+ className: cn13("r-reset", "r-toolbar", className)
3400
400
  }, props)
3401
401
  );
3402
402
  };
3403
403
  var Toolbar_default = Toolbar;
3404
- var import_react132 = __toESM2(require_react());
3405
- var import_jsx_runtime132 = __toESM2(require_jsx_runtime());
404
+ var import_react132 = __toESM2(require("react"));
405
+ var import_jsx_runtime132 = require("react/jsx-runtime");
3406
406
  var Stack = (_a) => {
3407
407
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3408
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", __spreadValues2({ className: cn12("r-stack", className) }, props));
408
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", __spreadValues2({ className: cn13("r-stack", className) }, props));
3409
409
  };
3410
410
  var Stack_default = Stack;
3411
- var import_react142 = __toESM2(require_react());
3412
- var import_jsx_runtime142 = __toESM2(require_jsx_runtime());
411
+ var import_react142 = __toESM2(require("react"));
412
+ var import_jsx_runtime142 = require("react/jsx-runtime");
3413
413
  var Container2 = (_a) => {
3414
414
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3415
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-container", className) }, props));
415
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-container", className) }, props));
3416
416
  };
3417
417
  var Container_default = Container2;
3418
- var import_react152 = __toESM2(require_react());
3419
- var import_jsx_runtime152 = __toESM2(require_jsx_runtime());
418
+ var import_react152 = __toESM2(require("react"));
419
+ var import_jsx_runtime152 = require("react/jsx-runtime");
3420
420
  var Panel = (_a) => {
3421
421
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3422
- return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-panel", className) }, props));
422
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-panel", className) }, props));
3423
423
  };
3424
424
  var PanelTitle = (_a) => {
3425
425
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3426
- return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-panel-title", className) }, props));
426
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-panel-title", className) }, props));
3427
427
  };
3428
428
  var PanelContent = (_a) => {
3429
429
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3430
- return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", __spreadValues2({ className: cn12("r-panel-content", className) }, props));
430
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", __spreadValues2({ className: cn13("r-panel-content", className) }, props));
3431
431
  };
3432
- var import_react162 = __toESM2(require_react());
3433
- var import_jsx_runtime162 = __toESM2(require_jsx_runtime());
432
+ var import_react162 = __toESM2(require("react"));
433
+ var import_jsx_runtime162 = require("react/jsx-runtime");
3434
434
  var Handle2 = (_a) => {
3435
435
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3436
- return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-drag-handle", className) }, props));
436
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-drag-handle", className) }, props));
3437
437
  };
3438
438
  var Handle_default = Handle2;
3439
- var import_react172 = __toESM2(require_react());
3440
- var import_jsx_runtime172 = __toESM2(require_jsx_runtime());
439
+ var import_react172 = __toESM2(require("react"));
440
+ var import_jsx_runtime172 = require("react/jsx-runtime");
3441
441
  var Overlay = (_a) => {
3442
442
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3443
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-modal-overlay", className) }, props));
443
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-modal-overlay", className) }, props));
3444
444
  };
3445
445
  var Wrapper = (_a) => {
3446
446
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3447
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-modal", className) }, props));
447
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-modal", className) }, props));
3448
448
  };
3449
449
  var Inner = (_a) => {
3450
450
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3451
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-modal-inner", className) }, props));
451
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-modal-inner", className) }, props));
3452
452
  };
3453
453
  var TitleBar2 = (_a) => {
3454
454
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3455
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-modal-title-bar", className) }, props));
455
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-modal-title-bar", className) }, props));
3456
456
  };
3457
457
  var Title2 = (_a) => {
3458
458
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3459
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-modal-title", className) }, props));
459
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-modal-title", className) }, props));
3460
460
  };
3461
461
  var CloseButton = (_a) => {
3462
462
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
@@ -3464,17 +464,17 @@ var require_dist = __commonJS({
3464
464
  "button",
3465
465
  __spreadValues2({
3466
466
  type: "button",
3467
- className: cn12("r-reset-button r-modal-close-btn", className)
467
+ className: cn13("r-reset-button r-modal-close-btn", className)
3468
468
  }, props)
3469
469
  );
3470
470
  };
3471
471
  var FooterBar = (_a) => {
3472
472
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3473
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-modal-footer-bar", className) }, props));
473
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-modal-footer-bar", className) }, props));
3474
474
  };
3475
475
  var Content = (_a) => {
3476
476
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3477
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-modal-content", className) }, props));
477
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-modal-content", className) }, props));
3478
478
  };
3479
479
  function checkForChanges2(hasChanges, onClose) {
3480
480
  if (!hasChanges) {
@@ -3524,19 +524,19 @@ var require_dist = __commonJS({
3524
524
  ] });
3525
525
  };
3526
526
  var Modal_default = Modal2;
3527
- var import_react182 = __toESM2(require_react());
3528
- var import_jsx_runtime182 = __toESM2(require_jsx_runtime());
527
+ var import_react182 = __toESM2(require("react"));
528
+ var import_jsx_runtime182 = require("react/jsx-runtime");
3529
529
  var Wrapper2 = (_a) => {
3530
530
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3531
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", __spreadValues2({ className: cn12("r-reset", className) }, props));
531
+ return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", __spreadValues2({ className: cn13("r-reset", className) }, props));
3532
532
  };
3533
533
  var DataGrid = ({ list, header, row }) => /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Wrapper2, { children: /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("table", { className: "r-table", children: [
3534
534
  /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("tr", { children: header() }) }),
3535
535
  /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("tbody", { children: list.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("tr", { children: row(item) }, item.id || idx)) })
3536
536
  ] }) });
3537
537
  var DataGrid_default = DataGrid;
3538
- var import_react192 = __toESM2(require_react());
3539
- var import_jsx_runtime192 = __toESM2(require_jsx_runtime());
538
+ var import_react192 = __toESM2(require("react"));
539
+ var import_jsx_runtime192 = require("react/jsx-runtime");
3540
540
  var getShift = (s) => {
3541
541
  const SHIFTS = {
3542
542
  1: "2 / span 10",
@@ -3553,7 +553,7 @@ var require_dist = __commonJS({
3553
553
  style: {
3554
554
  gridColumn: getShift(s) || "2 / span 10"
3555
555
  },
3556
- className: cn12("r-reset", className)
556
+ className: cn13("r-reset", className)
3557
557
  }, props)
3558
558
  );
3559
559
  };
@@ -3565,7 +565,7 @@ var require_dist = __commonJS({
3565
565
  style: {
3566
566
  gridColumn: `span ${s || "12"}`
3567
567
  },
3568
- className: cn12("r-reset", className)
568
+ className: cn13("r-reset", className)
3569
569
  }, props)
3570
570
  );
3571
571
  };
@@ -3578,22 +578,22 @@ var require_dist = __commonJS({
3578
578
  columnGap: gutter || "1em",
3579
579
  rowGap: gutter || "1em"
3580
580
  },
3581
- className: cn12("r-reset", "r-row", className)
581
+ className: cn13("r-reset", "r-row", className)
3582
582
  }, props)
3583
583
  );
3584
584
  };
3585
- var import_react202 = __toESM2(require_react());
3586
- var import_jsx_runtime202 = __toESM2(require_jsx_runtime());
585
+ var import_react202 = __toESM2(require("react"));
586
+ var import_jsx_runtime202 = require("react/jsx-runtime");
3587
587
  var Navigation = (_a) => {
3588
588
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3589
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-navigation", className) }, props));
589
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-navigation", className) }, props));
3590
590
  };
3591
591
  var NavItem2 = (_a) => {
3592
592
  var _b = _a, { active, className } = _b, props = __objRest2(_b, ["active", "className"]);
3593
593
  return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
3594
594
  "div",
3595
595
  __spreadValues2({
3596
- className: cn12(
596
+ className: cn13(
3597
597
  "r-reset",
3598
598
  "r-navigation-item",
3599
599
  active ? "r-navigation-item-active" : "",
@@ -3602,11 +602,11 @@ var require_dist = __commonJS({
3602
602
  }, props)
3603
603
  );
3604
604
  };
3605
- var import_react212 = __toESM2(require_react());
3606
- var import_jsx_runtime212 = __toESM2(require_jsx_runtime());
605
+ var import_react212 = __toESM2(require("react"));
606
+ var import_jsx_runtime212 = require("react/jsx-runtime");
3607
607
  var Wrapper3 = (_a) => {
3608
608
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3609
- return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-page-title", className) }, props));
609
+ return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-page-title", className) }, props));
3610
610
  };
3611
611
  var PageTitle = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(Wrapper3, { children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
3612
612
  H_default,
@@ -3618,11 +618,11 @@ var require_dist = __commonJS({
3618
618
  }
3619
619
  ) });
3620
620
  var PageTitle_default = PageTitle;
3621
- var import_react222 = __toESM2(require_react());
3622
- var import_jsx_runtime222 = __toESM2(require_jsx_runtime());
621
+ var import_react222 = __toESM2(require("react"));
622
+ var import_jsx_runtime222 = require("react/jsx-runtime");
3623
623
  var Wrapper4 = (_a) => {
3624
624
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3625
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-pagination", className) }, props));
625
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-pagination", className) }, props));
3626
626
  };
3627
627
  var Prev = ({ LinkComponent, router, currentPage }) => {
3628
628
  if (currentPage === 1) {
@@ -3699,30 +699,30 @@ var require_dist = __commonJS({
3699
699
  ] });
3700
700
  };
3701
701
  var Pagination_default = Pagination;
3702
- var import_react232 = __toESM2(require_react());
3703
- var import_jsx_runtime232 = __toESM2(require_jsx_runtime());
702
+ var import_react232 = __toESM2(require("react"));
703
+ var import_jsx_runtime232 = require("react/jsx-runtime");
3704
704
  var LanguageSwitcherWrapper2 = (_a) => {
3705
705
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3706
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-language-switcher", className) }, props));
706
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-language-switcher", className) }, props));
3707
707
  };
3708
708
  var LanguageSwitcherMenu2 = (_a) => {
3709
709
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3710
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-language-menu", className) }, props));
710
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-language-menu", className) }, props));
3711
711
  };
3712
712
  var LanguageSwitcherItem2 = (_a) => {
3713
713
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3714
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-language-item", className) }, props));
714
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-language-item", className) }, props));
3715
715
  };
3716
716
  var LanguageSwitcherNewItem2 = (_a) => {
3717
717
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3718
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", __spreadValues2({ className: cn12("r-reset", "r-language-new-item", className) }, props));
718
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", __spreadValues2({ className: cn13("r-reset", "r-language-new-item", className) }, props));
3719
719
  };
3720
720
  var LanguageSwitcherCurrent2 = (_a) => {
3721
721
  var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
3722
722
  return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
3723
723
  "div",
3724
724
  __spreadValues2({
3725
- className: cn12("r-reset", "r-language-current-item", className)
725
+ className: cn13("r-reset", "r-language-current-item", className)
3726
726
  }, props)
3727
727
  );
3728
728
  };
@@ -3748,8 +748,8 @@ var require_dist = __commonJS({
3748
748
  ] });
3749
749
  };
3750
750
  var LanguageSwitcher_default2 = LanguageSwitcher2;
3751
- var import_react242 = __toESM2(require_react());
3752
- var import_jsx_runtime242 = __toESM2(require_jsx_runtime());
751
+ var import_react242 = __toESM2(require("react"));
752
+ var import_jsx_runtime242 = require("react/jsx-runtime");
3753
753
  var ImageAvatar = (_a) => {
3754
754
  var _b = _a, { size = "24px", className } = _b, props = __objRest2(_b, ["size", "className"]);
3755
755
  return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
@@ -3760,13 +760,13 @@ var require_dist = __commonJS({
3760
760
  width: size || "2.5rem",
3761
761
  height: size || "2.5rem"
3762
762
  },
3763
- className: cn12("r-reset", "r-image-avatar", className)
763
+ className: cn13("r-reset", "r-image-avatar", className)
3764
764
  }, props)
3765
765
  );
3766
766
  };
3767
767
  var ImageAvatar_default = ImageAvatar;
3768
- var import_react252 = __toESM2(require_react());
3769
- var import_jsx_runtime252 = __toESM2(require_jsx_runtime());
768
+ var import_react252 = __toESM2(require("react"));
769
+ var import_jsx_runtime252 = require("react/jsx-runtime");
3770
770
  var AVATAR_COLORS = [
3771
771
  "darkkhaki",
3772
772
  "palevioletred",
@@ -3799,7 +799,7 @@ var require_dist = __commonJS({
3799
799
  fontSize: `calc(${size} * 0.4)`,
3800
800
  backgroundColor: initialsToColor(initials, AVATAR_COLORS)
3801
801
  },
3802
- className: cn12("r-reset", "r-default-avatar", className)
802
+ className: cn13("r-reset", "r-default-avatar", className)
3803
803
  }, props)
3804
804
  );
3805
805
  };
@@ -3808,8 +808,8 @@ var require_dist = __commonJS({
3808
808
  return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(DefaultAvatarStyles, __spreadProps2(__spreadValues2({ initials, size }, props), { children: initials }));
3809
809
  };
3810
810
  var DefaultAvatar_default = DefaultAvatar;
3811
- var import_react262 = __toESM2(require_react());
3812
- var import_jsx_runtime262 = __toESM2(require_jsx_runtime());
811
+ var import_react262 = __toESM2(require("react"));
812
+ var import_jsx_runtime262 = require("react/jsx-runtime");
3813
813
  var IconsWrapper = () => /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)("div", { className: "r-reset r-categories-icons-wrapper", children: [
3814
814
  /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
3815
815
  "img",
@@ -3851,12 +851,12 @@ var require_dist = __commonJS({
3851
851
  /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(CategoriesHiddenMenu, { paths })
3852
852
  ] });
3853
853
  var CategoriesMenu_default = CategoriesMenu;
3854
- var import_react272 = __toESM2(require_react());
3855
- var import_jsx_runtime272 = __toESM2(require_jsx_runtime());
854
+ var import_react272 = __toESM2(require("react"));
855
+ var import_jsx_runtime272 = require("react/jsx-runtime");
3856
856
  var FieldSet2 = (_a) => {
3857
857
  var _b = _a, { legend, children, className } = _b, props = __objRest2(_b, ["legend", "children", "className"]);
3858
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)("fieldset", __spreadProps2(__spreadValues2({ className: cn12("r-reset", "r-fieldset", className) }, props), { children: [
3859
- legend && /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("legend", { className: cn12("r-reset", "r-legend", "r-fs-small"), children: legend }),
858
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)("fieldset", __spreadProps2(__spreadValues2({ className: cn13("r-reset", "r-fieldset", className) }, props), { children: [
859
+ legend && /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("legend", { className: cn13("r-reset", "r-legend", "r-fs-small"), children: legend }),
3860
860
  children
3861
861
  ] }));
3862
862
  };
@@ -9742,19 +6742,19 @@ var require_dist2 = __commonJS({
9742
6742
  );
9743
6743
  var IconButton_default2 = IconButton2;
9744
6744
  var import_jsx_runtime52 = require("react/jsx-runtime");
9745
- function cn12() {
6745
+ function cn13() {
9746
6746
  return Array.from(arguments).filter(Boolean).map(String).join(" ");
9747
6747
  }
9748
6748
  var AdminWidgetWrapper2 = (_a) => {
9749
6749
  var _b = _a, { className } = _b, rest = __objRest2(_b, ["className"]);
9750
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", __spreadValues2({ className: cn12("r-admin-widget-wrapper", className) }, rest));
6750
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", __spreadValues2({ className: cn13("r-admin-widget-wrapper", className) }, rest));
9751
6751
  };
9752
6752
  var AdminWidgetToolbar2 = (_a) => {
9753
6753
  var _b = _a, { className } = _b, rest = __objRest2(_b, ["className"]);
9754
6754
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9755
6755
  "div",
9756
6756
  __spreadValues2({
9757
- className: cn12("r-reset", "r-admin-widget-toolbar", className)
6757
+ className: cn13("r-reset", "r-admin-widget-toolbar", className)
9758
6758
  }, rest)
9759
6759
  );
9760
6760
  };
@@ -9763,7 +6763,7 @@ var require_dist2 = __commonJS({
9763
6763
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9764
6764
  "div",
9765
6765
  __spreadValues2({
9766
- className: cn12("r-reset", "r-fs-small", "r-admin-widget-label", className)
6766
+ className: cn13("r-reset", "r-fs-small", "r-admin-widget-label", className)
9767
6767
  }, rest)
9768
6768
  );
9769
6769
  };
@@ -9788,7 +6788,7 @@ var require_dist2 = __commonJS({
9788
6788
  const isSelected = selectedWidgets.filter((w) => w === widget.widgetId).length > 0;
9789
6789
  if (!currentWidget || !currentAdminWidget) {
9790
6790
  console.error(`Unknown widget: ${widget.component}`);
9791
- return null;
6791
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(AdminWidgetWrapper2, { "data-widget": widget.component, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: cn13("r-reset", "r-fs-large", "r-admin-missing-widget"), children: `Unknown widget: ${widget.component}` }) });
9792
6792
  }
9793
6793
  const handleCopyWidget = () => {
9794
6794
  const widgetsToCopy = [widget];
@@ -9879,7 +6879,8 @@ var require_dist2 = __commonJS({
9879
6879
  adminLibrary,
9880
6880
  identifier,
9881
6881
  detailPath,
9882
- canvasClassName = ""
6882
+ canvasClassName = "",
6883
+ layoutMessage = ""
9883
6884
  }) => {
9884
6885
  const [selectedWidgets, setSelectedWidgets] = import_react62.default.useState([]);
9885
6886
  const areAllSelected = selectedWidgets.length === page.widgets.length;
@@ -9910,6 +6911,7 @@ var require_dist2 = __commonJS({
9910
6911
  setSelectedWidgets(page.widgets.map((w) => w.widgetId));
9911
6912
  };
9912
6913
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_react62.default.Fragment, { children: [
6914
+ layoutMessage && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "r-reset r-fs-base r-layout-message", children: layoutMessage }),
9913
6915
  selectedWidgets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
9914
6916
  SelectedWidgetsToolbar_default2,
9915
6917
  {
@@ -9960,9 +6962,9 @@ __export(src_exports, {
9960
6962
  Button: () => Button_default,
9961
6963
  ButtonSettings: () => ButtonSettings_default,
9962
6964
  Dialog: () => Dialog_default,
9963
- FormGroup: () => import_ui19.FormGroup,
6965
+ FormGroup: () => import_ui20.FormGroup,
9964
6966
  Img: () => Image_default,
9965
- Label: () => import_ui19.Label,
6967
+ Label: () => import_ui20.Label,
9966
6968
  Link: () => Link_default,
9967
6969
  LinkSettings: () => LinkSettings_default,
9968
6970
  List: () => List_default,
@@ -9974,7 +6976,7 @@ __export(src_exports, {
9974
6976
  TextInput: () => TextInput_default
9975
6977
  });
9976
6978
  module.exports = __toCommonJS(src_exports);
9977
- var import_ui19 = __toESM(require_dist());
6979
+ var import_ui20 = __toESM(require_dist());
9978
6980
 
9979
6981
  // src/PageBuilder.js
9980
6982
  var import_react25 = __toESM(require("react"));
@@ -10023,7 +7025,7 @@ var LibraryContext_default = LibraryContext;
10023
7025
  // src/Canvas.js
10024
7026
  var import_react6 = __toESM(require("react"));
10025
7027
  var import_react_sortablejs = require("react-sortablejs");
10026
- var import_ui4 = __toESM(require_dist());
7028
+ var import_ui5 = __toESM(require_dist());
10027
7029
 
10028
7030
  // src/lib/AdminWidget.js
10029
7031
  var import_react4 = __toESM(require("react"));
@@ -10139,6 +7141,7 @@ var widgetData_default = widgetData;
10139
7141
 
10140
7142
  // src/lib/AdminWidget.js
10141
7143
  var import_support = __toESM(require_dist2());
7144
+ var import_ui4 = __toESM(require_dist());
10142
7145
  var import_jsx_runtime5 = require("react/jsx-runtime");
10143
7146
  var AdminWidget = ({
10144
7147
  library,
@@ -10154,10 +7157,6 @@ var AdminWidget = ({
10154
7157
  const currentWidget = library[widget.component];
10155
7158
  const currentAdminWidget = adminLibrary[widget.component];
10156
7159
  const containerSettings = ((_a = widget == null ? void 0 : widget.settings) == null ? void 0 : _a.containerSettings) || {};
10157
- if (!currentWidget || !currentAdminWidget) {
10158
- console.error(`Unknown widget: ${widget.component}`);
10159
- return null;
10160
- }
10161
7160
  const isSelected = selectedWidgets.filter((w) => w === widget.widgetId).length > 0;
10162
7161
  const handleSelectWidget = () => onSelectWidget(widget.widgetId);
10163
7162
  const handleDeleteWidget = () => {
@@ -10169,6 +7168,20 @@ var AdminWidget = ({
10169
7168
  const widgetsToCopy = [widget];
10170
7169
  onCopy(widgetsToCopy);
10171
7170
  };
7171
+ if (!currentWidget || !currentAdminWidget) {
7172
+ console.error(`Unknown widget: ${widget.component}`);
7173
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(AdminWidgetWrapper_default, { "data-widget": widget.component, children: [
7174
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(AdminWidgetToolbar_default, { "data-toolbar": true, children: !isSelected && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
7175
+ IconButton_default,
7176
+ {
7177
+ icon: "iconDelete",
7178
+ type: "danger",
7179
+ onClick: () => handleDeleteWidget(widget.widgetId)
7180
+ }
7181
+ ) }),
7182
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: (0, import_ui4.cn)("r-reset", "r-fs-large", "r-admin-missing-widget"), children: `Unknown widget: ${widget.component}` })
7183
+ ] });
7184
+ }
10172
7185
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(AdminWidgetWrapper_default, { "data-widget": widget.component, children: [
10173
7186
  isSelected && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "r-selected-widget" }),
10174
7187
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(AdminWidgetToolbar_default, { "data-toolbar": true, children: [
@@ -10253,7 +7266,7 @@ var ErrorBoundary_default2 = ErrorBoundary_default;
10253
7266
  var import_jsx_runtime6 = require("react/jsx-runtime");
10254
7267
  var EmptyCanvas = (_a) => {
10255
7268
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10256
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", __spreadValues({ className: (0, import_ui4.cn)("r-reset", "r-empty-canvas", className) }, rest));
7269
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", __spreadValues({ className: (0, import_ui5.cn)("r-reset", "r-empty-canvas", className) }, rest));
10257
7270
  };
10258
7271
  var Canvas = import_react6.default.memo(
10259
7272
  function Canvas2({
@@ -10269,8 +7282,8 @@ var Canvas = import_react6.default.memo(
10269
7282
  const { library, adminLibrary } = import_react6.default.useContext(LibraryContext_default);
10270
7283
  if (widgets.length === 0) {
10271
7284
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(EmptyCanvas, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
10272
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui4.H, { size: "xxlarge", children: "It's always good to start with a clean slate." }),
10273
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui4.P, { children: "Use the sidebar to add content." })
7285
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.H, { size: "xxlarge", children: "It's always good to start with a clean slate." }),
7286
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui5.P, { children: "Use the sidebar to add content." })
10274
7287
  ] }) });
10275
7288
  }
10276
7289
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
@@ -10310,22 +7323,22 @@ var Canvas_default = Canvas;
10310
7323
 
10311
7324
  // src/lib/AdminSidebar.js
10312
7325
  var import_react10 = __toESM(require("react"));
10313
- var import_ui9 = __toESM(require_dist());
7326
+ var import_ui10 = __toESM(require_dist());
10314
7327
 
10315
7328
  // src/lib/SideNav.js
10316
7329
  var import_react7 = __toESM(require("react"));
10317
- var import_ui5 = __toESM(require_dist());
7330
+ var import_ui6 = __toESM(require_dist());
10318
7331
  var import_jsx_runtime7 = require("react/jsx-runtime");
10319
7332
  var SideNav = (_a) => {
10320
7333
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10321
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", __spreadValues({ className: (0, import_ui5.cn)("r-reset", "r-admin-sidenav", className) }, props));
7334
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", __spreadValues({ className: (0, import_ui6.cn)("r-reset", "r-admin-sidenav", className) }, props));
10322
7335
  };
10323
7336
  var NavGroup = (_a) => {
10324
7337
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10325
7338
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
10326
7339
  "div",
10327
7340
  __spreadValues({
10328
- className: (0, import_ui5.cn)("r-reset", "r-admin-sidenav-group", className)
7341
+ className: (0, import_ui6.cn)("r-reset", "r-admin-sidenav-group", className)
10329
7342
  }, props)
10330
7343
  );
10331
7344
  };
@@ -10334,7 +7347,7 @@ var NavItem = (_a) => {
10334
7347
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
10335
7348
  "div",
10336
7349
  __spreadValues({
10337
- className: (0, import_ui5.cn)("r-reset", "r-admin-sidenav-item", className)
7350
+ className: (0, import_ui6.cn)("r-reset", "r-admin-sidenav-item", className)
10338
7351
  }, props)
10339
7352
  );
10340
7353
  };
@@ -10356,7 +7369,7 @@ var NavButtonStyle = (_a) => {
10356
7369
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
10357
7370
  "div",
10358
7371
  __spreadValues({
10359
- className: (0, import_ui5.cn)(
7372
+ className: (0, import_ui6.cn)(
10360
7373
  "r-reset",
10361
7374
  "r-reset-button",
10362
7375
  "r-fs-medium",
@@ -10377,7 +7390,7 @@ var TooltipWrapper = (_a) => {
10377
7390
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
10378
7391
  "div",
10379
7392
  __spreadValues({
10380
- className: (0, import_ui5.cn)("r-reset", "r-admin-sidenav-tooltip-wrapper", className)
7393
+ className: (0, import_ui6.cn)("r-reset", "r-admin-sidenav-tooltip-wrapper", className)
10381
7394
  }, props)
10382
7395
  );
10383
7396
  };
@@ -10386,7 +7399,7 @@ var Tooltip = (_a) => {
10386
7399
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
10387
7400
  "div",
10388
7401
  __spreadValues({
10389
- className: (0, import_ui5.cn)("r-reset", "r-admin-sidenav-tooltip", className)
7402
+ className: (0, import_ui6.cn)("r-reset", "r-admin-sidenav-tooltip", className)
10390
7403
  }, props)
10391
7404
  );
10392
7405
  };
@@ -10402,7 +7415,7 @@ var NavPanel = (_a) => {
10402
7415
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
10403
7416
  "div",
10404
7417
  __spreadValues({
10405
- className: (0, import_ui5.cn)("r-reset", "r-admin-sidenav-nav-panel", className)
7418
+ className: (0, import_ui6.cn)("r-reset", "r-admin-sidenav-nav-panel", className)
10406
7419
  }, props)
10407
7420
  );
10408
7421
  };
@@ -10411,7 +7424,7 @@ var SideNavSearchWrapper = (_a) => {
10411
7424
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
10412
7425
  "div",
10413
7426
  __spreadValues({
10414
- className: (0, import_ui5.cn)(
7427
+ className: (0, import_ui6.cn)(
10415
7428
  "r-reset",
10416
7429
  "r-fs-medium",
10417
7430
  "r-admin-sidenav-search-wrapper",
@@ -10423,14 +7436,14 @@ var SideNavSearchWrapper = (_a) => {
10423
7436
 
10424
7437
  // src/lib/LanguageSwitcher.js
10425
7438
  var import_react8 = __toESM(require("react"));
10426
- var import_ui6 = __toESM(require_dist());
7439
+ var import_ui7 = __toESM(require_dist());
10427
7440
  var import_jsx_runtime8 = require("react/jsx-runtime");
10428
7441
  var LanguageSwitcherWrapper = (_a) => {
10429
7442
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10430
7443
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
10431
7444
  "div",
10432
7445
  __spreadValues({
10433
- className: (0, import_ui6.cn)("r-reset", "r-admin-language-switcher", className)
7446
+ className: (0, import_ui7.cn)("r-reset", "r-admin-language-switcher", className)
10434
7447
  }, props)
10435
7448
  );
10436
7449
  };
@@ -10439,7 +7452,7 @@ var LanguageSwitcherMenu = (_a) => {
10439
7452
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
10440
7453
  "div",
10441
7454
  __spreadValues({
10442
- className: (0, import_ui6.cn)("r-reset", "r-admin-language-switcher-menu", className)
7455
+ className: (0, import_ui7.cn)("r-reset", "r-admin-language-switcher-menu", className)
10443
7456
  }, props)
10444
7457
  );
10445
7458
  };
@@ -10448,7 +7461,7 @@ var LanguageSwitcherItem = (_a) => {
10448
7461
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
10449
7462
  "div",
10450
7463
  __spreadValues({
10451
- className: (0, import_ui6.cn)(
7464
+ className: (0, import_ui7.cn)(
10452
7465
  "r-reset",
10453
7466
  "r-fs-medium r-admin-language-switcher-item",
10454
7467
  className
@@ -10461,7 +7474,7 @@ var LanguageSwitcherNewItem = (_a) => {
10461
7474
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
10462
7475
  "div",
10463
7476
  __spreadValues({
10464
- className: (0, import_ui6.cn)(
7477
+ className: (0, import_ui7.cn)(
10465
7478
  "r-reset",
10466
7479
  "r-fs-medium r-admin-language-switcher-new-item",
10467
7480
  className
@@ -10474,7 +7487,7 @@ var LanguageSwitcherCurrent = (_a) => {
10474
7487
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
10475
7488
  "div",
10476
7489
  __spreadValues({
10477
- className: (0, import_ui6.cn)(
7490
+ className: (0, import_ui7.cn)(
10478
7491
  "r-reset",
10479
7492
  "r-fs-medium r-admin-language-switcher-current",
10480
7493
  className
@@ -10506,14 +7519,14 @@ var LanguageSwitcher = ({ current, navigation }) => {
10506
7519
  var LanguageSwitcher_default = LanguageSwitcher;
10507
7520
 
10508
7521
  // src/lib/SidebarItem.js
10509
- var import_ui7 = __toESM(require_dist());
7522
+ var import_ui8 = __toESM(require_dist());
10510
7523
  var import_jsx_runtime9 = require("react/jsx-runtime");
10511
7524
  var SidebarItem = (_a) => {
10512
7525
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10513
7526
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
10514
7527
  "div",
10515
7528
  __spreadValues({
10516
- className: (0, import_ui7.cn)(
7529
+ className: (0, import_ui8.cn)(
10517
7530
  "r-reset",
10518
7531
  "r-reset-button",
10519
7532
  "r-fs-base",
@@ -10526,7 +7539,7 @@ var SidebarItem = (_a) => {
10526
7539
 
10527
7540
  // src/forms/TextInput.js
10528
7541
  var import_react9 = __toESM(require("react"));
10529
- var import_ui8 = __toESM(require_dist());
7542
+ var import_ui9 = __toESM(require_dist());
10530
7543
  var import_jsx_runtime10 = require("react/jsx-runtime");
10531
7544
  var TextField = (_a) => {
10532
7545
  var _b = _a, {
@@ -10547,9 +7560,9 @@ var TextField = (_a) => {
10547
7560
  "placeholder"
10548
7561
  ]);
10549
7562
  const id = randomString();
10550
- const Component2 = multiline ? import_ui8.Textarea : import_ui8.Input;
10551
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_ui8.FormGroup, { children: [
10552
- label ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui8.Label, { htmlFor: id, error, children: label }) : "",
7563
+ const Component2 = multiline ? import_ui9.Textarea : import_ui9.Input;
7564
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_ui9.FormGroup, { children: [
7565
+ label ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui9.Label, { htmlFor: id, error, children: label }) : "",
10553
7566
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
10554
7567
  Component2,
10555
7568
  __spreadValues({
@@ -10559,7 +7572,7 @@ var TextField = (_a) => {
10559
7572
  placeholder
10560
7573
  }, rest)
10561
7574
  ),
10562
- hint ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui8.Hint, { children: hint }) : ""
7575
+ hint ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui9.Hint, { children: hint }) : ""
10563
7576
  ] });
10564
7577
  };
10565
7578
  var TextInput = (props) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TextField, __spreadValues({}, props));
@@ -10606,7 +7619,7 @@ var WidgetsList = ({ library, onAddWidget }) => {
10606
7619
  }
10607
7620
  ) }),
10608
7621
  widgetsCategories.map((categoryName, idx) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { marginBottom: "25px" }, children: [
10609
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_ui9.H, { size: "medium", style: { color: "#fff" }, children: categoryName }),
7622
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_ui10.H, { size: "medium", style: { color: "#fff" }, children: categoryName }),
10610
7623
  widgets.filter(
10611
7624
  (widgetName) => widgetData_default.category(library[widgetName]) === categoryName
10612
7625
  ).map((widgetName) => ({
@@ -10643,7 +7656,7 @@ var AdminSidebar = ({
10643
7656
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(NavItem, { children: [
10644
7657
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(NavButton, { icon: ICONS.add }),
10645
7658
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(NavPanel, { children: [
10646
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_ui9.H, { size: "large", style: { color: "#fff" }, children: "Library" }),
7659
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_ui10.H, { size: "large", style: { color: "#fff" }, children: "Library" }),
10647
7660
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WidgetsList, { library: adminLibrary, onAddWidget })
10648
7661
  ] })
10649
7662
  ] }),
@@ -10707,11 +7720,11 @@ var AdminSidebar_default = AdminSidebar;
10707
7720
  // src/dialogs/ReorderDialog.js
10708
7721
  var import_react13 = __toESM(require("react"));
10709
7722
  var import_react_sortablejs2 = require("react-sortablejs");
10710
- var import_ui11 = __toESM(require_dist());
7723
+ var import_ui12 = __toESM(require_dist());
10711
7724
 
10712
7725
  // src/dialogs/Dialog.js
10713
7726
  var import_react11 = __toESM(require("react"));
10714
- var import_ui10 = __toESM(require_dist());
7727
+ var import_ui11 = __toESM(require_dist());
10715
7728
  var import_jsx_runtime12 = require("react/jsx-runtime");
10716
7729
  function checkForChanges(hasChanges, onClose) {
10717
7730
  if (!hasChanges) {
@@ -10734,16 +7747,16 @@ var Dialog = ({
10734
7747
  onPrimary,
10735
7748
  areChanges
10736
7749
  }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
10737
- import_ui10.Modal,
7750
+ import_ui11.Modal,
10738
7751
  {
10739
7752
  open,
10740
7753
  title: title2,
10741
7754
  onClose,
10742
7755
  areChanges,
10743
7756
  FooterContent: () => (primaryLabel || secondaryLabel) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
10744
- primaryLabel && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ui10.Button, { type: "button", variant: "primary", onClick: onPrimary, children: primaryLabel }),
7757
+ primaryLabel && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ui11.Button, { type: "button", variant: "primary", onClick: onPrimary, children: primaryLabel }),
10745
7758
  secondaryLabel && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
10746
- import_ui10.Button,
7759
+ import_ui11.Button,
10747
7760
  {
10748
7761
  type: "button",
10749
7762
  variant: "secondary",
@@ -10822,7 +7835,7 @@ var ModalSelectedWidgetsToolbar_default = ModalSelectedWidgetsToolbar;
10822
7835
  var import_jsx_runtime14 = require("react/jsx-runtime");
10823
7836
  var ReorderDialogItem = (_a) => {
10824
7837
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10825
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", __spreadValues({ className: (0, import_ui11.cn)("r-reorder-dialog-item", className) }, props));
7838
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", __spreadValues({ className: (0, import_ui12.cn)("r-reorder-dialog-item", className) }, props));
10826
7839
  };
10827
7840
  var cleanup = (string) => string.replace(/<[^>]*>?/gm, "");
10828
7841
  var truncate = (str, num) => {
@@ -10877,7 +7890,7 @@ var ReorderDialog = ({
10877
7890
  secondaryLabel: "Close",
10878
7891
  children: [
10879
7892
  widgets.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
10880
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ui11.P, { children: "Drag and drop elements below to reorder the page layout." }),
7893
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ui12.P, { children: "Drag and drop elements below to reorder the page layout." }),
10881
7894
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
10882
7895
  ModalSelectedWidgetsToolbar_default,
10883
7896
  {
@@ -10888,7 +7901,7 @@ var ReorderDialog = ({
10888
7901
  onRemove
10889
7902
  }
10890
7903
  )
10891
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ui11.P, { children: "It's always good to start with a clean slate. Use the sidebar to add content." }),
7904
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ui12.P, { children: "It's always good to start with a clean slate. Use the sidebar to add content." }),
10892
7905
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
10893
7906
  import_react_sortablejs2.ReactSortable,
10894
7907
  {
@@ -10918,7 +7931,7 @@ var ReorderDialog = ({
10918
7931
  }
10919
7932
  ),
10920
7933
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
10921
- import_ui11.H,
7934
+ import_ui12.H,
10922
7935
  {
10923
7936
  size: "base",
10924
7937
  style: {
@@ -10938,7 +7951,7 @@ var ReorderDialog = ({
10938
7951
  },
10939
7952
  children: [
10940
7953
  adminLibrary[widget.component] && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
10941
- import_ui11.Button,
7954
+ import_ui12.Button,
10942
7955
  {
10943
7956
  type: "button",
10944
7957
  variant: "primary",
@@ -10950,7 +7963,7 @@ var ReorderDialog = ({
10950
7963
  }
10951
7964
  ),
10952
7965
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
10953
- import_ui11.Button,
7966
+ import_ui12.Button,
10954
7967
  {
10955
7968
  type: "button",
10956
7969
  variant: "danger",
@@ -10978,7 +7991,7 @@ var ReorderDialog_default = ReorderDialog;
10978
7991
 
10979
7992
  // src/dialogs/SettingsDialog.js
10980
7993
  var import_react22 = __toESM(require("react"));
10981
- var import_ui18 = __toESM(require_dist());
7994
+ var import_ui19 = __toESM(require_dist());
10982
7995
 
10983
7996
  // src/contexts/BuilderContext.js
10984
7997
  var import_react14 = __toESM(require("react"));
@@ -10990,7 +8003,7 @@ var BuilderContext_default = BuilderContext;
10990
8003
 
10991
8004
  // src/AdminForm/index.js
10992
8005
  var import_react21 = __toESM(require("react"));
10993
- var import_ui17 = __toESM(require_dist());
8006
+ var import_ui18 = __toESM(require_dist());
10994
8007
 
10995
8008
  // src/helpers/humanize.js
10996
8009
  var toUnderscore = (string) => string.replace(/([A-Z])/g, ($1) => `_${$1.toLowerCase()}`);
@@ -11004,8 +8017,8 @@ var capitalize = (s) => {
11004
8017
  // src/List.js
11005
8018
  var import_react15 = __toESM(require("react"));
11006
8019
  var import_react_sortablejs3 = require("react-sortablejs");
11007
- var import_ui12 = __toESM(require_dist());
11008
8020
  var import_ui13 = __toESM(require_dist());
8021
+ var import_ui14 = __toESM(require_dist());
11009
8022
  var import_jsx_runtime15 = require("react/jsx-runtime");
11010
8023
  var Handle = (props) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(HandleWrapper, { "data-drag": true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
11011
8024
  "img",
@@ -11037,14 +8050,14 @@ var IconDuplicate = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
11037
8050
  );
11038
8051
  var ListWrapper = (_a) => {
11039
8052
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11040
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ className: (0, import_ui13.cn)("r-reset", "r-list-wrapper", className) }, rest));
8053
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ className: (0, import_ui14.cn)("r-reset", "r-list-wrapper", className) }, rest));
11041
8054
  };
11042
8055
  var AddButtonWrapepr = (_a) => {
11043
8056
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11044
8057
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
11045
8058
  "div",
11046
8059
  __spreadValues({
11047
- className: (0, import_ui13.cn)("r-reset", "r-list-add-button-wrapper", className)
8060
+ className: (0, import_ui14.cn)("r-reset", "r-list-add-button-wrapper", className)
11048
8061
  }, rest)
11049
8062
  );
11050
8063
  };
@@ -11053,28 +8066,28 @@ var HandleWrapper = (_a) => {
11053
8066
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
11054
8067
  "div",
11055
8068
  __spreadValues({
11056
- className: (0, import_ui13.cn)("r-reset", "r-list-handle-wrapper", className)
8069
+ className: (0, import_ui14.cn)("r-reset", "r-list-handle-wrapper", className)
11057
8070
  }, rest)
11058
8071
  );
11059
8072
  };
11060
8073
  var ItemWrapper = (_a) => {
11061
8074
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11062
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ className: (0, import_ui13.cn)("r-reset", "r-list-item-wrapper", className) }, rest));
8075
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ className: (0, import_ui14.cn)("r-reset", "r-list-item-wrapper", className) }, rest));
11063
8076
  };
11064
8077
  var TitleBar = (_a) => {
11065
8078
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11066
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ className: (0, import_ui13.cn)("r-reset", "r-list-title-bar", className) }, rest));
8079
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ className: (0, import_ui14.cn)("r-reset", "r-list-title-bar", className) }, rest));
11067
8080
  };
11068
8081
  var TitleWrapper = (_a) => {
11069
8082
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11070
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ className: (0, import_ui13.cn)("r-reset", "r-list-title-wrapper", className) }, rest));
8083
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ className: (0, import_ui14.cn)("r-reset", "r-list-title-wrapper", className) }, rest));
11071
8084
  };
11072
8085
  var ContentWrapper = (_a) => {
11073
8086
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11074
8087
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
11075
8088
  "div",
11076
8089
  __spreadValues({
11077
- className: (0, import_ui13.cn)("r-reset", className),
8090
+ className: (0, import_ui14.cn)("r-reset", className),
11078
8091
  style: { padding: "12px 8px" }
11079
8092
  }, rest)
11080
8093
  );
@@ -11084,7 +8097,7 @@ var ListButton = (_a) => {
11084
8097
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
11085
8098
  "div",
11086
8099
  __spreadValues({
11087
- className: (0, import_ui13.cn)("r-reset", "r-button-reset r-list-button", className)
8100
+ className: (0, import_ui14.cn)("r-reset", "r-button-reset r-list-button", className)
11088
8101
  }, rest)
11089
8102
  );
11090
8103
  };
@@ -11093,7 +8106,7 @@ var Title = (_a) => {
11093
8106
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
11094
8107
  "div",
11095
8108
  __spreadValues({
11096
- className: (0, import_ui13.cn)("r-reset", className),
8109
+ className: (0, import_ui14.cn)("r-reset", className),
11097
8110
  style: { fontWeight: "700", fontSize: "16px", minHeight: "16px" }
11098
8111
  }, rest)
11099
8112
  );
@@ -11213,11 +8226,11 @@ var List = ({
11213
8226
  if (!label)
11214
8227
  console.warn("No label provided for a list", items);
11215
8228
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ListWrapper, { children: [
11216
- label && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui12.H, { size: "base", style: { fontWeight: 700 }, children: label }),
11217
- items.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui12.P, { children: "There are no items yet." }),
8229
+ label && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui13.H, { size: "base", style: { fontWeight: 700 }, children: label }),
8230
+ items.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui13.P, { children: "There are no items yet." }),
11218
8231
  items.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_react15.default.Fragment, { children: [
11219
8232
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(AddButtonWrapepr, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
11220
- import_ui12.Button,
8233
+ import_ui13.Button,
11221
8234
  {
11222
8235
  type: "button",
11223
8236
  variant: "success",
@@ -11253,7 +8266,7 @@ var List = ({
11253
8266
  }
11254
8267
  )
11255
8268
  ] }),
11256
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui12.Button, { type: "button", variant: "success", onClick: handleAdd, children: "Add item" })
8269
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui13.Button, { type: "button", variant: "success", onClick: handleAdd, children: "Add item" })
11257
8270
  ] });
11258
8271
  };
11259
8272
  var List_default = List;
@@ -11272,7 +8285,7 @@ var TextArea_default = TextArea;
11272
8285
 
11273
8286
  // src/forms/SelectMenu.js
11274
8287
  var import_react17 = __toESM(require("react"));
11275
- var import_ui14 = __toESM(require_dist());
8288
+ var import_ui15 = __toESM(require_dist());
11276
8289
  var import_jsx_runtime17 = require("react/jsx-runtime");
11277
8290
  var getOptions = (options, placeholder) => {
11278
8291
  const initialOptions = placeholder ? [{ value: "", text: placeholder }] : [];
@@ -11288,10 +8301,10 @@ var SelectField = (props) => {
11288
8301
  delete inputProps.options;
11289
8302
  delete inputProps.placeholder;
11290
8303
  delete inputProps.onChange;
11291
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_ui14.FormGroup, { children: [
11292
- label ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui14.Label, { htmlFor: id, error: props.error, children: label }) : "",
8304
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_ui15.FormGroup, { children: [
8305
+ label ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui15.Label, { htmlFor: id, error: props.error, children: label }) : "",
11293
8306
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
11294
- import_ui14.Select,
8307
+ import_ui15.Select,
11295
8308
  __spreadProps(__spreadValues({
11296
8309
  id,
11297
8310
  onChange: (e) => onChange(e.target.value)
@@ -11302,7 +8315,7 @@ var SelectField = (props) => {
11302
8315
  ]
11303
8316
  })
11304
8317
  ),
11305
- hint ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui14.Hint, { children: hint }) : ""
8318
+ hint ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui15.Hint, { children: hint }) : ""
11306
8319
  ] });
11307
8320
  };
11308
8321
  var SelectMenu = ({
@@ -11324,22 +8337,22 @@ var SelectMenu_default = SelectMenu;
11324
8337
 
11325
8338
  // src/forms/ButtonSettings.js
11326
8339
  var import_react18 = __toESM(require("react"));
11327
- var import_ui15 = __toESM(require_dist());
8340
+ var import_ui16 = __toESM(require_dist());
11328
8341
  var import_jsx_runtime18 = require("react/jsx-runtime");
11329
8342
  var SettingsIcon = (_a) => {
11330
8343
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11331
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", __spreadValues({ className: (0, import_ui15.cn)("r-settings-icon", className) }, props));
8344
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", __spreadValues({ className: (0, import_ui16.cn)("r-settings-icon", className) }, props));
11332
8345
  };
11333
8346
  var ThreeColumns = (_a) => {
11334
8347
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11335
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", __spreadValues({ className: (0, import_ui15.cn)("r-reset", "r-three-columns", className) }, props));
8348
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", __spreadValues({ className: (0, import_ui16.cn)("r-reset", "r-three-columns", className) }, props));
11336
8349
  };
11337
8350
  var FormSectionTitle = (_a) => {
11338
8351
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11339
8352
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
11340
8353
  "div",
11341
8354
  __spreadValues({
11342
- className: (0, import_ui15.cn)("r-reset", "r-form-section-title", className)
8355
+ className: (0, import_ui16.cn)("r-reset", "r-form-section-title", className)
11343
8356
  }, props)
11344
8357
  );
11345
8358
  };
@@ -11364,7 +8377,7 @@ var ButtonSettings = ({
11364
8377
  onChange
11365
8378
  }) => {
11366
8379
  const { buttonStyles } = import_react18.default.useContext(BuilderContext_default) || DEFAULT_BUTTON_STYLES;
11367
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_ui15.FormGroup, { children: [
8380
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_ui16.FormGroup, { children: [
11368
8381
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(FormSectionTitle, { children: [
11369
8382
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SettingsIcon, {}),
11370
8383
  " ",
@@ -11431,7 +8444,7 @@ var ButtonSettings = ({
11431
8444
  }
11432
8445
  )
11433
8446
  ] }),
11434
- hint ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui15.Hint, { children: hint }) : ""
8447
+ hint ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui16.Hint, { children: hint }) : ""
11435
8448
  ] });
11436
8449
  };
11437
8450
  ButtonSettings.defaults = DEFAULTS;
@@ -11440,22 +8453,22 @@ var ButtonSettings_default = ButtonSettings;
11440
8453
 
11441
8454
  // src/forms/LinkSettings.js
11442
8455
  var import_react19 = __toESM(require("react"));
11443
- var import_ui16 = __toESM(require_dist());
8456
+ var import_ui17 = __toESM(require_dist());
11444
8457
  var import_jsx_runtime19 = require("react/jsx-runtime");
11445
8458
  var SettingsIcon2 = (_a) => {
11446
8459
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11447
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", __spreadValues({ className: (0, import_ui16.cn)("r-settings-icon", className) }, props));
8460
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", __spreadValues({ className: (0, import_ui17.cn)("r-settings-icon", className) }, props));
11448
8461
  };
11449
8462
  var ThreeColumns2 = (_a) => {
11450
8463
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11451
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", __spreadValues({ className: (0, import_ui16.cn)("r-reset", "r-three-columns", className) }, props));
8464
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", __spreadValues({ className: (0, import_ui17.cn)("r-reset", "r-three-columns", className) }, props));
11452
8465
  };
11453
8466
  var FormSectionTitle2 = (_a) => {
11454
8467
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11455
8468
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
11456
8469
  "div",
11457
8470
  __spreadValues({
11458
- className: (0, import_ui16.cn)("r-reset", "r-form-section-title", className)
8471
+ className: (0, import_ui17.cn)("r-reset", "r-form-section-title", className)
11459
8472
  }, props)
11460
8473
  );
11461
8474
  };
@@ -11468,7 +8481,7 @@ var DEFAULTS2 = {
11468
8481
  target: "_self",
11469
8482
  rel: "follow"
11470
8483
  };
11471
- var LinkSettings = ({ label = "Link", hint, value = DEFAULTS2, onChange }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_ui16.FormGroup, { children: [
8484
+ var LinkSettings = ({ label = "Link", hint, value = DEFAULTS2, onChange }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_ui17.FormGroup, { children: [
11472
8485
  /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(FormSectionTitle2, { children: [
11473
8486
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SettingsIcon2, {}),
11474
8487
  " ",
@@ -11534,7 +8547,7 @@ var LinkSettings = ({ label = "Link", hint, value = DEFAULTS2, onChange }) => /*
11534
8547
  }
11535
8548
  )
11536
8549
  ] }),
11537
- hint ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui16.Hint, { children: hint }) : ""
8550
+ hint ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui17.Hint, { children: hint }) : ""
11538
8551
  ] });
11539
8552
  LinkSettings.defaults = DEFAULTS2;
11540
8553
  var LinkSettings_default = LinkSettings;
@@ -11592,7 +8605,7 @@ var ListWrapper2 = ({ field, path, value, opts, onChange }) => {
11592
8605
  }
11593
8606
  );
11594
8607
  };
11595
- var SchemaInput = ({ field, value, path, opts, onChange }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_ui17.FieldSet, { legend: opts == null ? void 0 : opts.label, children: Object.keys(opts.schema).map((subField) => {
8608
+ var SchemaInput = ({ field, value, path, opts, onChange }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_ui18.FieldSet, { legend: opts == null ? void 0 : opts.label, children: Object.keys(opts.schema).map((subField) => {
11596
8609
  const subOpts = Object.assign(
11597
8610
  { label: capitalize(humanize(subField)) },
11598
8611
  opts.schema[subField]
@@ -11704,7 +8717,7 @@ var SettingsDialog = ({ widget, settings, onSave, onClose }) => {
11704
8717
  onPrimary: () => onSave(localSettings),
11705
8718
  onClose,
11706
8719
  areChanges,
11707
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_ui18.Tabs, { children: [
8720
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_ui19.Tabs, { children: [
11708
8721
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { title: "Content", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
11709
8722
  AdminForm_default,
11710
8723
  {
@@ -11970,7 +8983,12 @@ var PageBuilder = ({
11970
8983
  const widgetName = page.widgets.filter(
11971
8984
  (current) => current.widgetId === id
11972
8985
  )[0].component;
11973
- const widgetTitle = widgetData_default.title(adminLibrary[widgetName]);
8986
+ let widgetTitle = null;
8987
+ if (adminLibrary[widgetName]) {
8988
+ widgetTitle = widgetData_default.title(adminLibrary[widgetName]);
8989
+ } else {
8990
+ widgetTitle = widgetName;
8991
+ }
11974
8992
  setPage(newPage);
11975
8993
  handlePageHistory(newPage);
11976
8994
  onSave(newPage, `${widgetTitle} removed`);
@@ -12314,39 +9332,3 @@ var Link_default = Link;
12314
9332
  TextArea,
12315
9333
  TextInput
12316
9334
  });
12317
- /**
12318
- * @license React
12319
- * react-jsx-runtime.development.js
12320
- *
12321
- * Copyright (c) Facebook, Inc. and its affiliates.
12322
- *
12323
- * This source code is licensed under the MIT license found in the
12324
- * LICENSE file in the root directory of this source tree.
12325
- */
12326
- /**
12327
- * @license React
12328
- * react-jsx-runtime.production.min.js
12329
- *
12330
- * Copyright (c) Facebook, Inc. and its affiliates.
12331
- *
12332
- * This source code is licensed under the MIT license found in the
12333
- * LICENSE file in the root directory of this source tree.
12334
- */
12335
- /**
12336
- * @license React
12337
- * react.development.js
12338
- *
12339
- * Copyright (c) Facebook, Inc. and its affiliates.
12340
- *
12341
- * This source code is licensed under the MIT license found in the
12342
- * LICENSE file in the root directory of this source tree.
12343
- */
12344
- /**
12345
- * @license React
12346
- * react.production.min.js
12347
- *
12348
- * Copyright (c) Facebook, Inc. and its affiliates.
12349
- *
12350
- * This source code is licensed under the MIT license found in the
12351
- * LICENSE file in the root directory of this source tree.
12352
- */