indicator-ui 0.0.196 → 0.0.197

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
@@ -3740,360 +3740,1335 @@ __webpack_require__.r(__webpack_exports__);
3740
3740
  * @license React
3741
3741
  * react-jsx-runtime.development.js
3742
3742
  *
3743
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3743
+ * Copyright (c) Facebook, Inc. and its affiliates.
3744
3744
  *
3745
3745
  * This source code is licensed under the MIT license found in the
3746
3746
  * LICENSE file in the root directory of this source tree.
3747
3747
  */
3748
3748
 
3749
3749
 
3750
- true &&
3751
- (function () {
3752
- function getComponentNameFromType(type) {
3753
- if (null == type) return null;
3754
- if ("function" === typeof type)
3755
- return type.$$typeof === REACT_CLIENT_REFERENCE
3756
- ? null
3757
- : type.displayName || type.name || null;
3758
- if ("string" === typeof type) return type;
3759
- switch (type) {
3760
- case REACT_FRAGMENT_TYPE:
3761
- return "Fragment";
3762
- case REACT_PROFILER_TYPE:
3763
- return "Profiler";
3764
- case REACT_STRICT_MODE_TYPE:
3765
- return "StrictMode";
3766
- case REACT_SUSPENSE_TYPE:
3767
- return "Suspense";
3768
- case REACT_SUSPENSE_LIST_TYPE:
3769
- return "SuspenseList";
3770
- case REACT_ACTIVITY_TYPE:
3771
- return "Activity";
3750
+
3751
+ if (true) {
3752
+ (function() {
3753
+ 'use strict';
3754
+
3755
+ var React = __webpack_require__(/*! react */ "react");
3756
+
3757
+ // ATTENTION
3758
+ // When adding new symbols to this file,
3759
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
3760
+ // The Symbol used to tag the ReactElement-like types.
3761
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
3762
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
3763
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
3764
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
3765
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
3766
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
3767
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
3768
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
3769
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
3770
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
3771
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
3772
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
3773
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
3774
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
3775
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
3776
+ function getIteratorFn(maybeIterable) {
3777
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
3778
+ return null;
3779
+ }
3780
+
3781
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
3782
+
3783
+ if (typeof maybeIterator === 'function') {
3784
+ return maybeIterator;
3785
+ }
3786
+
3787
+ return null;
3788
+ }
3789
+
3790
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3791
+
3792
+ function error(format) {
3793
+ {
3794
+ {
3795
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
3796
+ args[_key2 - 1] = arguments[_key2];
3772
3797
  }
3773
- if ("object" === typeof type)
3774
- switch (
3775
- ("number" === typeof type.tag &&
3776
- console.error(
3777
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
3778
- ),
3779
- type.$$typeof)
3780
- ) {
3781
- case REACT_PORTAL_TYPE:
3782
- return "Portal";
3783
- case REACT_CONTEXT_TYPE:
3784
- return (type.displayName || "Context") + ".Provider";
3785
- case REACT_CONSUMER_TYPE:
3786
- return (type._context.displayName || "Context") + ".Consumer";
3787
- case REACT_FORWARD_REF_TYPE:
3788
- var innerType = type.render;
3789
- type = type.displayName;
3790
- type ||
3791
- ((type = innerType.displayName || innerType.name || ""),
3792
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
3793
- return type;
3794
- case REACT_MEMO_TYPE:
3795
- return (
3796
- (innerType = type.displayName || null),
3797
- null !== innerType
3798
- ? innerType
3799
- : getComponentNameFromType(type.type) || "Memo"
3800
- );
3801
- case REACT_LAZY_TYPE:
3802
- innerType = type._payload;
3803
- type = type._init;
3804
- try {
3805
- return getComponentNameFromType(type(innerType));
3806
- } catch (x) {}
3798
+
3799
+ printWarning('error', format, args);
3800
+ }
3801
+ }
3802
+ }
3803
+
3804
+ function printWarning(level, format, args) {
3805
+ // When changing this logic, you might want to also
3806
+ // update consoleWithStackDev.www.js as well.
3807
+ {
3808
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
3809
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
3810
+
3811
+ if (stack !== '') {
3812
+ format += '%s';
3813
+ args = args.concat([stack]);
3814
+ } // eslint-disable-next-line react-internal/safe-string-coercion
3815
+
3816
+
3817
+ var argsWithFormat = args.map(function (item) {
3818
+ return String(item);
3819
+ }); // Careful: RN currently depends on this prefix
3820
+
3821
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
3822
+ // breaks IE9: https://github.com/facebook/react/issues/13610
3823
+ // eslint-disable-next-line react-internal/no-production-logging
3824
+
3825
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
3826
+ }
3827
+ }
3828
+
3829
+ // -----------------------------------------------------------------------------
3830
+
3831
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
3832
+ var enableCacheElement = false;
3833
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
3834
+
3835
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
3836
+ // stuff. Intended to enable React core members to more easily debug scheduling
3837
+ // issues in DEV builds.
3838
+
3839
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
3840
+
3841
+ var REACT_MODULE_REFERENCE;
3842
+
3843
+ {
3844
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
3845
+ }
3846
+
3847
+ function isValidElementType(type) {
3848
+ if (typeof type === 'string' || typeof type === 'function') {
3849
+ return true;
3850
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
3851
+
3852
+
3853
+ 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 ) {
3854
+ return true;
3855
+ }
3856
+
3857
+ if (typeof type === 'object' && type !== null) {
3858
+ 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 || // This needs to include all possible module reference object
3859
+ // types supported by any Flight configuration anywhere since
3860
+ // we don't know which Flight build this will end up being used
3861
+ // with.
3862
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
3863
+ return true;
3864
+ }
3865
+ }
3866
+
3867
+ return false;
3868
+ }
3869
+
3870
+ function getWrappedName(outerType, innerType, wrapperName) {
3871
+ var displayName = outerType.displayName;
3872
+
3873
+ if (displayName) {
3874
+ return displayName;
3875
+ }
3876
+
3877
+ var functionName = innerType.displayName || innerType.name || '';
3878
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
3879
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
3880
+
3881
+
3882
+ function getContextName(type) {
3883
+ return type.displayName || 'Context';
3884
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
3885
+
3886
+
3887
+ function getComponentNameFromType(type) {
3888
+ if (type == null) {
3889
+ // Host root, text node or just invalid type.
3890
+ return null;
3891
+ }
3892
+
3893
+ {
3894
+ if (typeof type.tag === 'number') {
3895
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
3896
+ }
3897
+ }
3898
+
3899
+ if (typeof type === 'function') {
3900
+ return type.displayName || type.name || null;
3901
+ }
3902
+
3903
+ if (typeof type === 'string') {
3904
+ return type;
3905
+ }
3906
+
3907
+ switch (type) {
3908
+ case REACT_FRAGMENT_TYPE:
3909
+ return 'Fragment';
3910
+
3911
+ case REACT_PORTAL_TYPE:
3912
+ return 'Portal';
3913
+
3914
+ case REACT_PROFILER_TYPE:
3915
+ return 'Profiler';
3916
+
3917
+ case REACT_STRICT_MODE_TYPE:
3918
+ return 'StrictMode';
3919
+
3920
+ case REACT_SUSPENSE_TYPE:
3921
+ return 'Suspense';
3922
+
3923
+ case REACT_SUSPENSE_LIST_TYPE:
3924
+ return 'SuspenseList';
3925
+
3926
+ }
3927
+
3928
+ if (typeof type === 'object') {
3929
+ switch (type.$$typeof) {
3930
+ case REACT_CONTEXT_TYPE:
3931
+ var context = type;
3932
+ return getContextName(context) + '.Consumer';
3933
+
3934
+ case REACT_PROVIDER_TYPE:
3935
+ var provider = type;
3936
+ return getContextName(provider._context) + '.Provider';
3937
+
3938
+ case REACT_FORWARD_REF_TYPE:
3939
+ return getWrappedName(type, type.render, 'ForwardRef');
3940
+
3941
+ case REACT_MEMO_TYPE:
3942
+ var outerName = type.displayName || null;
3943
+
3944
+ if (outerName !== null) {
3945
+ return outerName;
3807
3946
  }
3808
- return null;
3947
+
3948
+ return getComponentNameFromType(type.type) || 'Memo';
3949
+
3950
+ case REACT_LAZY_TYPE:
3951
+ {
3952
+ var lazyComponent = type;
3953
+ var payload = lazyComponent._payload;
3954
+ var init = lazyComponent._init;
3955
+
3956
+ try {
3957
+ return getComponentNameFromType(init(payload));
3958
+ } catch (x) {
3959
+ return null;
3960
+ }
3961
+ }
3962
+
3963
+ // eslint-disable-next-line no-fallthrough
3809
3964
  }
3810
- function testStringCoercion(value) {
3811
- return "" + value;
3965
+ }
3966
+
3967
+ return null;
3968
+ }
3969
+
3970
+ var assign = Object.assign;
3971
+
3972
+ // Helpers to patch console.logs to avoid logging during side-effect free
3973
+ // replaying on render function. This currently only patches the object
3974
+ // lazily which won't cover if the log function was extracted eagerly.
3975
+ // We could also eagerly patch the method.
3976
+ var disabledDepth = 0;
3977
+ var prevLog;
3978
+ var prevInfo;
3979
+ var prevWarn;
3980
+ var prevError;
3981
+ var prevGroup;
3982
+ var prevGroupCollapsed;
3983
+ var prevGroupEnd;
3984
+
3985
+ function disabledLog() {}
3986
+
3987
+ disabledLog.__reactDisabledLog = true;
3988
+ function disableLogs() {
3989
+ {
3990
+ if (disabledDepth === 0) {
3991
+ /* eslint-disable react-internal/no-production-logging */
3992
+ prevLog = console.log;
3993
+ prevInfo = console.info;
3994
+ prevWarn = console.warn;
3995
+ prevError = console.error;
3996
+ prevGroup = console.group;
3997
+ prevGroupCollapsed = console.groupCollapsed;
3998
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
3999
+
4000
+ var props = {
4001
+ configurable: true,
4002
+ enumerable: true,
4003
+ value: disabledLog,
4004
+ writable: true
4005
+ }; // $FlowFixMe Flow thinks console is immutable.
4006
+
4007
+ Object.defineProperties(console, {
4008
+ info: props,
4009
+ log: props,
4010
+ warn: props,
4011
+ error: props,
4012
+ group: props,
4013
+ groupCollapsed: props,
4014
+ groupEnd: props
4015
+ });
4016
+ /* eslint-enable react-internal/no-production-logging */
4017
+ }
4018
+
4019
+ disabledDepth++;
4020
+ }
4021
+ }
4022
+ function reenableLogs() {
4023
+ {
4024
+ disabledDepth--;
4025
+
4026
+ if (disabledDepth === 0) {
4027
+ /* eslint-disable react-internal/no-production-logging */
4028
+ var props = {
4029
+ configurable: true,
4030
+ enumerable: true,
4031
+ writable: true
4032
+ }; // $FlowFixMe Flow thinks console is immutable.
4033
+
4034
+ Object.defineProperties(console, {
4035
+ log: assign({}, props, {
4036
+ value: prevLog
4037
+ }),
4038
+ info: assign({}, props, {
4039
+ value: prevInfo
4040
+ }),
4041
+ warn: assign({}, props, {
4042
+ value: prevWarn
4043
+ }),
4044
+ error: assign({}, props, {
4045
+ value: prevError
4046
+ }),
4047
+ group: assign({}, props, {
4048
+ value: prevGroup
4049
+ }),
4050
+ groupCollapsed: assign({}, props, {
4051
+ value: prevGroupCollapsed
4052
+ }),
4053
+ groupEnd: assign({}, props, {
4054
+ value: prevGroupEnd
4055
+ })
4056
+ });
4057
+ /* eslint-enable react-internal/no-production-logging */
3812
4058
  }
3813
- function checkKeyStringCoercion(value) {
4059
+
4060
+ if (disabledDepth < 0) {
4061
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
4062
+ }
4063
+ }
4064
+ }
4065
+
4066
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
4067
+ var prefix;
4068
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
4069
+ {
4070
+ if (prefix === undefined) {
4071
+ // Extract the VM specific prefix used by each line.
3814
4072
  try {
3815
- testStringCoercion(value);
3816
- var JSCompiler_inline_result = !1;
3817
- } catch (e) {
3818
- JSCompiler_inline_result = !0;
3819
- }
3820
- if (JSCompiler_inline_result) {
3821
- JSCompiler_inline_result = console;
3822
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
3823
- var JSCompiler_inline_result$jscomp$0 =
3824
- ("function" === typeof Symbol &&
3825
- Symbol.toStringTag &&
3826
- value[Symbol.toStringTag]) ||
3827
- value.constructor.name ||
3828
- "Object";
3829
- JSCompiler_temp_const.call(
3830
- JSCompiler_inline_result,
3831
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
3832
- JSCompiler_inline_result$jscomp$0
3833
- );
3834
- return testStringCoercion(value);
4073
+ throw Error();
4074
+ } catch (x) {
4075
+ var match = x.stack.trim().match(/\n( *(at )?)/);
4076
+ prefix = match && match[1] || '';
3835
4077
  }
4078
+ } // We use the prefix to ensure our stacks line up with native stack frames.
4079
+
4080
+
4081
+ return '\n' + prefix + name;
4082
+ }
4083
+ }
4084
+ var reentry = false;
4085
+ var componentFrameCache;
4086
+
4087
+ {
4088
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
4089
+ componentFrameCache = new PossiblyWeakMap();
4090
+ }
4091
+
4092
+ function describeNativeComponentFrame(fn, construct) {
4093
+ // If something asked for a stack inside a fake render, it should get ignored.
4094
+ if ( !fn || reentry) {
4095
+ return '';
4096
+ }
4097
+
4098
+ {
4099
+ var frame = componentFrameCache.get(fn);
4100
+
4101
+ if (frame !== undefined) {
4102
+ return frame;
3836
4103
  }
3837
- function getTaskName(type) {
3838
- if (type === REACT_FRAGMENT_TYPE) return "<>";
3839
- if (
3840
- "object" === typeof type &&
3841
- null !== type &&
3842
- type.$$typeof === REACT_LAZY_TYPE
3843
- )
3844
- return "<...>";
4104
+ }
4105
+
4106
+ var control;
4107
+ reentry = true;
4108
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
4109
+
4110
+ Error.prepareStackTrace = undefined;
4111
+ var previousDispatcher;
4112
+
4113
+ {
4114
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
4115
+ // for warnings.
4116
+
4117
+ ReactCurrentDispatcher.current = null;
4118
+ disableLogs();
4119
+ }
4120
+
4121
+ try {
4122
+ // This should throw.
4123
+ if (construct) {
4124
+ // Something should be setting the props in the constructor.
4125
+ var Fake = function () {
4126
+ throw Error();
4127
+ }; // $FlowFixMe
4128
+
4129
+
4130
+ Object.defineProperty(Fake.prototype, 'props', {
4131
+ set: function () {
4132
+ // We use a throwing setter instead of frozen or non-writable props
4133
+ // because that won't throw in a non-strict mode function.
4134
+ throw Error();
4135
+ }
4136
+ });
4137
+
4138
+ if (typeof Reflect === 'object' && Reflect.construct) {
4139
+ // We construct a different control for this case to include any extra
4140
+ // frames added by the construct call.
4141
+ try {
4142
+ Reflect.construct(Fake, []);
4143
+ } catch (x) {
4144
+ control = x;
4145
+ }
4146
+
4147
+ Reflect.construct(fn, [], Fake);
4148
+ } else {
4149
+ try {
4150
+ Fake.call();
4151
+ } catch (x) {
4152
+ control = x;
4153
+ }
4154
+
4155
+ fn.call(Fake.prototype);
4156
+ }
4157
+ } else {
3845
4158
  try {
3846
- var name = getComponentNameFromType(type);
3847
- return name ? "<" + name + ">" : "<...>";
4159
+ throw Error();
3848
4160
  } catch (x) {
3849
- return "<...>";
4161
+ control = x;
3850
4162
  }
4163
+
4164
+ fn();
3851
4165
  }
3852
- function getOwner() {
3853
- var dispatcher = ReactSharedInternals.A;
3854
- return null === dispatcher ? null : dispatcher.getOwner();
4166
+ } catch (sample) {
4167
+ // This is inlined manually because closure doesn't do it for us.
4168
+ if (sample && control && typeof sample.stack === 'string') {
4169
+ // This extracts the first frame from the sample that isn't also in the control.
4170
+ // Skipping one frame that we assume is the frame that calls the two.
4171
+ var sampleLines = sample.stack.split('\n');
4172
+ var controlLines = control.stack.split('\n');
4173
+ var s = sampleLines.length - 1;
4174
+ var c = controlLines.length - 1;
4175
+
4176
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
4177
+ // We expect at least one stack frame to be shared.
4178
+ // Typically this will be the root most one. However, stack frames may be
4179
+ // cut off due to maximum stack limits. In this case, one maybe cut off
4180
+ // earlier than the other. We assume that the sample is longer or the same
4181
+ // and there for cut off earlier. So we should find the root most frame in
4182
+ // the sample somewhere in the control.
4183
+ c--;
4184
+ }
4185
+
4186
+ for (; s >= 1 && c >= 0; s--, c--) {
4187
+ // Next we find the first one that isn't the same which should be the
4188
+ // frame that called our sample function and the control.
4189
+ if (sampleLines[s] !== controlLines[c]) {
4190
+ // In V8, the first line is describing the message but other VMs don't.
4191
+ // If we're about to return the first line, and the control is also on the same
4192
+ // line, that's a pretty good indicator that our sample threw at same line as
4193
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
4194
+ // This can happen if you passed a class to function component, or non-function.
4195
+ if (s !== 1 || c !== 1) {
4196
+ do {
4197
+ s--;
4198
+ c--; // We may still have similar intermediate frames from the construct call.
4199
+ // The next one that isn't the same should be our match though.
4200
+
4201
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
4202
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
4203
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
4204
+ // but we have a user-provided "displayName"
4205
+ // splice it in to make the stack more readable.
4206
+
4207
+
4208
+ if (fn.displayName && _frame.includes('<anonymous>')) {
4209
+ _frame = _frame.replace('<anonymous>', fn.displayName);
4210
+ }
4211
+
4212
+ {
4213
+ if (typeof fn === 'function') {
4214
+ componentFrameCache.set(fn, _frame);
4215
+ }
4216
+ } // Return the line we found.
4217
+
4218
+
4219
+ return _frame;
4220
+ }
4221
+ } while (s >= 1 && c >= 0);
4222
+ }
4223
+
4224
+ break;
4225
+ }
4226
+ }
3855
4227
  }
3856
- function UnknownOwner() {
3857
- return Error("react-stack-top-frame");
4228
+ } finally {
4229
+ reentry = false;
4230
+
4231
+ {
4232
+ ReactCurrentDispatcher.current = previousDispatcher;
4233
+ reenableLogs();
3858
4234
  }
3859
- function hasValidKey(config) {
3860
- if (hasOwnProperty.call(config, "key")) {
3861
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
3862
- if (getter && getter.isReactWarning) return !1;
3863
- }
3864
- return void 0 !== config.key;
4235
+
4236
+ Error.prepareStackTrace = previousPrepareStackTrace;
4237
+ } // Fallback to just using the name if we couldn't make it throw.
4238
+
4239
+
4240
+ var name = fn ? fn.displayName || fn.name : '';
4241
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
4242
+
4243
+ {
4244
+ if (typeof fn === 'function') {
4245
+ componentFrameCache.set(fn, syntheticFrame);
3865
4246
  }
3866
- function defineKeyPropWarningGetter(props, displayName) {
3867
- function warnAboutAccessingKey() {
3868
- specialPropKeyWarningShown ||
3869
- ((specialPropKeyWarningShown = !0),
3870
- console.error(
3871
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
3872
- displayName
3873
- ));
4247
+ }
4248
+
4249
+ return syntheticFrame;
4250
+ }
4251
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
4252
+ {
4253
+ return describeNativeComponentFrame(fn, false);
4254
+ }
4255
+ }
4256
+
4257
+ function shouldConstruct(Component) {
4258
+ var prototype = Component.prototype;
4259
+ return !!(prototype && prototype.isReactComponent);
4260
+ }
4261
+
4262
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
4263
+
4264
+ if (type == null) {
4265
+ return '';
4266
+ }
4267
+
4268
+ if (typeof type === 'function') {
4269
+ {
4270
+ return describeNativeComponentFrame(type, shouldConstruct(type));
4271
+ }
4272
+ }
4273
+
4274
+ if (typeof type === 'string') {
4275
+ return describeBuiltInComponentFrame(type);
4276
+ }
4277
+
4278
+ switch (type) {
4279
+ case REACT_SUSPENSE_TYPE:
4280
+ return describeBuiltInComponentFrame('Suspense');
4281
+
4282
+ case REACT_SUSPENSE_LIST_TYPE:
4283
+ return describeBuiltInComponentFrame('SuspenseList');
4284
+ }
4285
+
4286
+ if (typeof type === 'object') {
4287
+ switch (type.$$typeof) {
4288
+ case REACT_FORWARD_REF_TYPE:
4289
+ return describeFunctionComponentFrame(type.render);
4290
+
4291
+ case REACT_MEMO_TYPE:
4292
+ // Memo may contain any component type so we recursively resolve it.
4293
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
4294
+
4295
+ case REACT_LAZY_TYPE:
4296
+ {
4297
+ var lazyComponent = type;
4298
+ var payload = lazyComponent._payload;
4299
+ var init = lazyComponent._init;
4300
+
4301
+ try {
4302
+ // Lazy may contain any component type so we recursively resolve it.
4303
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
4304
+ } catch (x) {}
4305
+ }
4306
+ }
4307
+ }
4308
+
4309
+ return '';
4310
+ }
4311
+
4312
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
4313
+
4314
+ var loggedTypeFailures = {};
4315
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
4316
+
4317
+ function setCurrentlyValidatingElement(element) {
4318
+ {
4319
+ if (element) {
4320
+ var owner = element._owner;
4321
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
4322
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
4323
+ } else {
4324
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
4325
+ }
4326
+ }
4327
+ }
4328
+
4329
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
4330
+ {
4331
+ // $FlowFixMe This is okay but Flow doesn't know it.
4332
+ var has = Function.call.bind(hasOwnProperty);
4333
+
4334
+ for (var typeSpecName in typeSpecs) {
4335
+ if (has(typeSpecs, typeSpecName)) {
4336
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
4337
+ // fail the render phase where it didn't fail before. So we log it.
4338
+ // After these have been cleaned up, we'll let them throw.
4339
+
4340
+ try {
4341
+ // This is intentionally an invariant that gets caught. It's the same
4342
+ // behavior as without this statement except with a better message.
4343
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
4344
+ // eslint-disable-next-line react-internal/prod-error-codes
4345
+ 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`.');
4346
+ err.name = 'Invariant Violation';
4347
+ throw err;
4348
+ }
4349
+
4350
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
4351
+ } catch (ex) {
4352
+ error$1 = ex;
4353
+ }
4354
+
4355
+ if (error$1 && !(error$1 instanceof Error)) {
4356
+ setCurrentlyValidatingElement(element);
4357
+
4358
+ 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);
4359
+
4360
+ setCurrentlyValidatingElement(null);
4361
+ }
4362
+
4363
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
4364
+ // Only monitor this failure once because there tends to be a lot of the
4365
+ // same error.
4366
+ loggedTypeFailures[error$1.message] = true;
4367
+ setCurrentlyValidatingElement(element);
4368
+
4369
+ error('Failed %s type: %s', location, error$1.message);
4370
+
4371
+ setCurrentlyValidatingElement(null);
4372
+ }
3874
4373
  }
3875
- warnAboutAccessingKey.isReactWarning = !0;
3876
- Object.defineProperty(props, "key", {
3877
- get: warnAboutAccessingKey,
3878
- configurable: !0
3879
- });
3880
4374
  }
3881
- function elementRefGetterWithDeprecationWarning() {
3882
- var componentName = getComponentNameFromType(this.type);
3883
- didWarnAboutElementRef[componentName] ||
3884
- ((didWarnAboutElementRef[componentName] = !0),
3885
- console.error(
3886
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
3887
- ));
3888
- componentName = this.props.ref;
3889
- return void 0 !== componentName ? componentName : null;
4375
+ }
4376
+ }
4377
+
4378
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
4379
+
4380
+ function isArray(a) {
4381
+ return isArrayImpl(a);
4382
+ }
4383
+
4384
+ /*
4385
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
4386
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
4387
+ *
4388
+ * The functions in this module will throw an easier-to-understand,
4389
+ * easier-to-debug exception with a clear errors message message explaining the
4390
+ * problem. (Instead of a confusing exception thrown inside the implementation
4391
+ * of the `value` object).
4392
+ */
4393
+ // $FlowFixMe only called in DEV, so void return is not possible.
4394
+ function typeName(value) {
4395
+ {
4396
+ // toStringTag is needed for namespaced types like Temporal.Instant
4397
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
4398
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
4399
+ return type;
4400
+ }
4401
+ } // $FlowFixMe only called in DEV, so void return is not possible.
4402
+
4403
+
4404
+ function willCoercionThrow(value) {
4405
+ {
4406
+ try {
4407
+ testStringCoercion(value);
4408
+ return false;
4409
+ } catch (e) {
4410
+ return true;
3890
4411
  }
3891
- function ReactElement(
3892
- type,
3893
- key,
3894
- self,
3895
- source,
3896
- owner,
3897
- props,
3898
- debugStack,
3899
- debugTask
3900
- ) {
3901
- self = props.ref;
3902
- type = {
3903
- $$typeof: REACT_ELEMENT_TYPE,
3904
- type: type,
3905
- key: key,
3906
- props: props,
3907
- _owner: owner
3908
- };
3909
- null !== (void 0 !== self ? self : null)
3910
- ? Object.defineProperty(type, "ref", {
3911
- enumerable: !1,
3912
- get: elementRefGetterWithDeprecationWarning
3913
- })
3914
- : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
3915
- type._store = {};
3916
- Object.defineProperty(type._store, "validated", {
3917
- configurable: !1,
3918
- enumerable: !1,
3919
- writable: !0,
3920
- value: 0
3921
- });
3922
- Object.defineProperty(type, "_debugInfo", {
3923
- configurable: !1,
3924
- enumerable: !1,
3925
- writable: !0,
3926
- value: null
3927
- });
3928
- Object.defineProperty(type, "_debugStack", {
3929
- configurable: !1,
3930
- enumerable: !1,
3931
- writable: !0,
3932
- value: debugStack
3933
- });
3934
- Object.defineProperty(type, "_debugTask", {
3935
- configurable: !1,
3936
- enumerable: !1,
3937
- writable: !0,
3938
- value: debugTask
3939
- });
3940
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
3941
- return type;
4412
+ }
4413
+ }
4414
+
4415
+ function testStringCoercion(value) {
4416
+ // If you ended up here by following an exception call stack, here's what's
4417
+ // happened: you supplied an object or symbol value to React (as a prop, key,
4418
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
4419
+ // coerce it to a string using `'' + value`, an exception was thrown.
4420
+ //
4421
+ // The most common types that will cause this exception are `Symbol` instances
4422
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
4423
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
4424
+ // exception. (Library authors do this to prevent users from using built-in
4425
+ // numeric operators like `+` or comparison operators like `>=` because custom
4426
+ // methods are needed to perform accurate arithmetic or comparison.)
4427
+ //
4428
+ // To fix the problem, coerce this object or symbol value to a string before
4429
+ // passing it to React. The most reliable way is usually `String(value)`.
4430
+ //
4431
+ // To find which value is throwing, check the browser or debugger console.
4432
+ // Before this exception was thrown, there should be `console.error` output
4433
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
4434
+ // problem and how that type was used: key, atrribute, input value prop, etc.
4435
+ // In most cases, this console output also shows the component and its
4436
+ // ancestor components where the exception happened.
4437
+ //
4438
+ // eslint-disable-next-line react-internal/safe-string-coercion
4439
+ return '' + value;
4440
+ }
4441
+ function checkKeyStringCoercion(value) {
4442
+ {
4443
+ if (willCoercionThrow(value)) {
4444
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
4445
+
4446
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
3942
4447
  }
3943
- function jsxDEVImpl(
3944
- type,
3945
- config,
3946
- maybeKey,
3947
- isStaticChildren,
3948
- source,
3949
- self,
3950
- debugStack,
3951
- debugTask
3952
- ) {
3953
- var children = config.children;
3954
- if (void 0 !== children)
3955
- if (isStaticChildren)
3956
- if (isArrayImpl(children)) {
3957
- for (
3958
- isStaticChildren = 0;
3959
- isStaticChildren < children.length;
3960
- isStaticChildren++
3961
- )
3962
- validateChildKeys(children[isStaticChildren]);
3963
- Object.freeze && Object.freeze(children);
3964
- } else
3965
- console.error(
3966
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
3967
- );
3968
- else validateChildKeys(children);
3969
- if (hasOwnProperty.call(config, "key")) {
3970
- children = getComponentNameFromType(type);
3971
- var keys = Object.keys(config).filter(function (k) {
3972
- return "key" !== k;
3973
- });
3974
- isStaticChildren =
3975
- 0 < keys.length
3976
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
3977
- : "{key: someKey}";
3978
- didWarnAboutKeySpread[children + isStaticChildren] ||
3979
- ((keys =
3980
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
3981
- console.error(
3982
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
3983
- isStaticChildren,
3984
- children,
3985
- keys,
3986
- children
3987
- ),
3988
- (didWarnAboutKeySpread[children + isStaticChildren] = !0));
4448
+ }
4449
+ }
4450
+
4451
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
4452
+ var RESERVED_PROPS = {
4453
+ key: true,
4454
+ ref: true,
4455
+ __self: true,
4456
+ __source: true
4457
+ };
4458
+ var specialPropKeyWarningShown;
4459
+ var specialPropRefWarningShown;
4460
+ var didWarnAboutStringRefs;
4461
+
4462
+ {
4463
+ didWarnAboutStringRefs = {};
4464
+ }
4465
+
4466
+ function hasValidRef(config) {
4467
+ {
4468
+ if (hasOwnProperty.call(config, 'ref')) {
4469
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
4470
+
4471
+ if (getter && getter.isReactWarning) {
4472
+ return false;
3989
4473
  }
3990
- children = null;
3991
- void 0 !== maybeKey &&
3992
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
3993
- hasValidKey(config) &&
3994
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
3995
- if ("key" in config) {
3996
- maybeKey = {};
3997
- for (var propName in config)
3998
- "key" !== propName && (maybeKey[propName] = config[propName]);
3999
- } else maybeKey = config;
4000
- children &&
4001
- defineKeyPropWarningGetter(
4002
- maybeKey,
4003
- "function" === typeof type
4004
- ? type.displayName || type.name || "Unknown"
4005
- : type
4006
- );
4007
- return ReactElement(
4008
- type,
4009
- children,
4010
- self,
4011
- source,
4012
- getOwner(),
4013
- maybeKey,
4014
- debugStack,
4015
- debugTask
4016
- );
4017
4474
  }
4018
- function validateChildKeys(node) {
4019
- "object" === typeof node &&
4020
- null !== node &&
4021
- node.$$typeof === REACT_ELEMENT_TYPE &&
4022
- node._store &&
4023
- (node._store.validated = 1);
4475
+ }
4476
+
4477
+ return config.ref !== undefined;
4478
+ }
4479
+
4480
+ function hasValidKey(config) {
4481
+ {
4482
+ if (hasOwnProperty.call(config, 'key')) {
4483
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
4484
+
4485
+ if (getter && getter.isReactWarning) {
4486
+ return false;
4487
+ }
4024
4488
  }
4025
- var React = __webpack_require__(/*! react */ "react"),
4026
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
4027
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
4028
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
4029
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
4030
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
4031
- Symbol.for("react.provider");
4032
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
4033
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
4034
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
4035
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
4036
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
4037
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
4038
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
4039
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
4040
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
4041
- ReactSharedInternals =
4042
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
4043
- hasOwnProperty = Object.prototype.hasOwnProperty,
4044
- isArrayImpl = Array.isArray,
4045
- createTask = console.createTask
4046
- ? console.createTask
4047
- : function () {
4048
- return null;
4049
- };
4050
- React = {
4051
- "react-stack-bottom-frame": function (callStackForError) {
4052
- return callStackForError();
4489
+ }
4490
+
4491
+ return config.key !== undefined;
4492
+ }
4493
+
4494
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
4495
+ {
4496
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
4497
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
4498
+
4499
+ if (!didWarnAboutStringRefs[componentName]) {
4500
+ 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);
4501
+
4502
+ didWarnAboutStringRefs[componentName] = true;
4503
+ }
4504
+ }
4505
+ }
4506
+ }
4507
+
4508
+ function defineKeyPropWarningGetter(props, displayName) {
4509
+ {
4510
+ var warnAboutAccessingKey = function () {
4511
+ if (!specialPropKeyWarningShown) {
4512
+ specialPropKeyWarningShown = true;
4513
+
4514
+ 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);
4053
4515
  }
4054
4516
  };
4055
- var specialPropKeyWarningShown;
4056
- var didWarnAboutElementRef = {};
4057
- var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
4058
- React,
4059
- UnknownOwner
4060
- )();
4061
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
4062
- var didWarnAboutKeySpread = {};
4063
- exports.Fragment = REACT_FRAGMENT_TYPE;
4064
- exports.jsx = function (type, config, maybeKey, source, self) {
4065
- var trackActualOwner =
4066
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
4067
- return jsxDEVImpl(
4068
- type,
4069
- config,
4070
- maybeKey,
4071
- !1,
4072
- source,
4073
- self,
4074
- trackActualOwner
4075
- ? Error("react-stack-top-frame")
4076
- : unknownOwnerDebugStack,
4077
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
4078
- );
4079
- };
4080
- exports.jsxs = function (type, config, maybeKey, source, self) {
4081
- var trackActualOwner =
4082
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
4083
- return jsxDEVImpl(
4084
- type,
4085
- config,
4086
- maybeKey,
4087
- !0,
4088
- source,
4089
- self,
4090
- trackActualOwner
4091
- ? Error("react-stack-top-frame")
4092
- : unknownOwnerDebugStack,
4093
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
4094
- );
4517
+
4518
+ warnAboutAccessingKey.isReactWarning = true;
4519
+ Object.defineProperty(props, 'key', {
4520
+ get: warnAboutAccessingKey,
4521
+ configurable: true
4522
+ });
4523
+ }
4524
+ }
4525
+
4526
+ function defineRefPropWarningGetter(props, displayName) {
4527
+ {
4528
+ var warnAboutAccessingRef = function () {
4529
+ if (!specialPropRefWarningShown) {
4530
+ specialPropRefWarningShown = true;
4531
+
4532
+ 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);
4533
+ }
4095
4534
  };
4535
+
4536
+ warnAboutAccessingRef.isReactWarning = true;
4537
+ Object.defineProperty(props, 'ref', {
4538
+ get: warnAboutAccessingRef,
4539
+ configurable: true
4540
+ });
4541
+ }
4542
+ }
4543
+ /**
4544
+ * Factory method to create a new React element. This no longer adheres to
4545
+ * the class pattern, so do not use new to call it. Also, instanceof check
4546
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
4547
+ * if something is a React Element.
4548
+ *
4549
+ * @param {*} type
4550
+ * @param {*} props
4551
+ * @param {*} key
4552
+ * @param {string|object} ref
4553
+ * @param {*} owner
4554
+ * @param {*} self A *temporary* helper to detect places where `this` is
4555
+ * different from the `owner` when React.createElement is called, so that we
4556
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
4557
+ * functions, and as long as `this` and owner are the same, there will be no
4558
+ * change in behavior.
4559
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
4560
+ * indicating filename, line number, and/or other information.
4561
+ * @internal
4562
+ */
4563
+
4564
+
4565
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
4566
+ var element = {
4567
+ // This tag allows us to uniquely identify this as a React Element
4568
+ $$typeof: REACT_ELEMENT_TYPE,
4569
+ // Built-in properties that belong on the element
4570
+ type: type,
4571
+ key: key,
4572
+ ref: ref,
4573
+ props: props,
4574
+ // Record the component responsible for creating this element.
4575
+ _owner: owner
4576
+ };
4577
+
4578
+ {
4579
+ // The validation flag is currently mutative. We put it on
4580
+ // an external backing store so that we can freeze the whole object.
4581
+ // This can be replaced with a WeakMap once they are implemented in
4582
+ // commonly used development environments.
4583
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
4584
+ // the validation flag non-enumerable (where possible, which should
4585
+ // include every environment we run tests in), so the test framework
4586
+ // ignores it.
4587
+
4588
+ Object.defineProperty(element._store, 'validated', {
4589
+ configurable: false,
4590
+ enumerable: false,
4591
+ writable: true,
4592
+ value: false
4593
+ }); // self and source are DEV only properties.
4594
+
4595
+ Object.defineProperty(element, '_self', {
4596
+ configurable: false,
4597
+ enumerable: false,
4598
+ writable: false,
4599
+ value: self
4600
+ }); // Two elements created in two different places should be considered
4601
+ // equal for testing purposes and therefore we hide it from enumeration.
4602
+
4603
+ Object.defineProperty(element, '_source', {
4604
+ configurable: false,
4605
+ enumerable: false,
4606
+ writable: false,
4607
+ value: source
4608
+ });
4609
+
4610
+ if (Object.freeze) {
4611
+ Object.freeze(element.props);
4612
+ Object.freeze(element);
4613
+ }
4614
+ }
4615
+
4616
+ return element;
4617
+ };
4618
+ /**
4619
+ * https://github.com/reactjs/rfcs/pull/107
4620
+ * @param {*} type
4621
+ * @param {object} props
4622
+ * @param {string} key
4623
+ */
4624
+
4625
+ function jsxDEV(type, config, maybeKey, source, self) {
4626
+ {
4627
+ var propName; // Reserved names are extracted
4628
+
4629
+ var props = {};
4630
+ var key = null;
4631
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
4632
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
4633
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
4634
+ // but as an intermediary step, we will use jsxDEV for everything except
4635
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
4636
+ // key is explicitly declared to be undefined or not.
4637
+
4638
+ if (maybeKey !== undefined) {
4639
+ {
4640
+ checkKeyStringCoercion(maybeKey);
4641
+ }
4642
+
4643
+ key = '' + maybeKey;
4644
+ }
4645
+
4646
+ if (hasValidKey(config)) {
4647
+ {
4648
+ checkKeyStringCoercion(config.key);
4649
+ }
4650
+
4651
+ key = '' + config.key;
4652
+ }
4653
+
4654
+ if (hasValidRef(config)) {
4655
+ ref = config.ref;
4656
+ warnIfStringRefCannotBeAutoConverted(config, self);
4657
+ } // Remaining properties are added to a new props object
4658
+
4659
+
4660
+ for (propName in config) {
4661
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
4662
+ props[propName] = config[propName];
4663
+ }
4664
+ } // Resolve default props
4665
+
4666
+
4667
+ if (type && type.defaultProps) {
4668
+ var defaultProps = type.defaultProps;
4669
+
4670
+ for (propName in defaultProps) {
4671
+ if (props[propName] === undefined) {
4672
+ props[propName] = defaultProps[propName];
4673
+ }
4674
+ }
4675
+ }
4676
+
4677
+ if (key || ref) {
4678
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
4679
+
4680
+ if (key) {
4681
+ defineKeyPropWarningGetter(props, displayName);
4682
+ }
4683
+
4684
+ if (ref) {
4685
+ defineRefPropWarningGetter(props, displayName);
4686
+ }
4687
+ }
4688
+
4689
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
4690
+ }
4691
+ }
4692
+
4693
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
4694
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
4695
+
4696
+ function setCurrentlyValidatingElement$1(element) {
4697
+ {
4698
+ if (element) {
4699
+ var owner = element._owner;
4700
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
4701
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
4702
+ } else {
4703
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
4704
+ }
4705
+ }
4706
+ }
4707
+
4708
+ var propTypesMisspellWarningShown;
4709
+
4710
+ {
4711
+ propTypesMisspellWarningShown = false;
4712
+ }
4713
+ /**
4714
+ * Verifies the object is a ReactElement.
4715
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
4716
+ * @param {?object} object
4717
+ * @return {boolean} True if `object` is a ReactElement.
4718
+ * @final
4719
+ */
4720
+
4721
+
4722
+ function isValidElement(object) {
4723
+ {
4724
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
4725
+ }
4726
+ }
4727
+
4728
+ function getDeclarationErrorAddendum() {
4729
+ {
4730
+ if (ReactCurrentOwner$1.current) {
4731
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
4732
+
4733
+ if (name) {
4734
+ return '\n\nCheck the render method of `' + name + '`.';
4735
+ }
4736
+ }
4737
+
4738
+ return '';
4739
+ }
4740
+ }
4741
+
4742
+ function getSourceInfoErrorAddendum(source) {
4743
+ {
4744
+ if (source !== undefined) {
4745
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
4746
+ var lineNumber = source.lineNumber;
4747
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
4748
+ }
4749
+
4750
+ return '';
4751
+ }
4752
+ }
4753
+ /**
4754
+ * Warn if there's no key explicitly set on dynamic arrays of children or
4755
+ * object keys are not valid. This allows us to keep track of children between
4756
+ * updates.
4757
+ */
4758
+
4759
+
4760
+ var ownerHasKeyUseWarning = {};
4761
+
4762
+ function getCurrentComponentErrorInfo(parentType) {
4763
+ {
4764
+ var info = getDeclarationErrorAddendum();
4765
+
4766
+ if (!info) {
4767
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
4768
+
4769
+ if (parentName) {
4770
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
4771
+ }
4772
+ }
4773
+
4774
+ return info;
4775
+ }
4776
+ }
4777
+ /**
4778
+ * Warn if the element doesn't have an explicit key assigned to it.
4779
+ * This element is in an array. The array could grow and shrink or be
4780
+ * reordered. All children that haven't already been validated are required to
4781
+ * have a "key" property assigned to it. Error statuses are cached so a warning
4782
+ * will only be shown once.
4783
+ *
4784
+ * @internal
4785
+ * @param {ReactElement} element Element that requires a key.
4786
+ * @param {*} parentType element's parent's type.
4787
+ */
4788
+
4789
+
4790
+ function validateExplicitKey(element, parentType) {
4791
+ {
4792
+ if (!element._store || element._store.validated || element.key != null) {
4793
+ return;
4794
+ }
4795
+
4796
+ element._store.validated = true;
4797
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
4798
+
4799
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
4800
+ return;
4801
+ }
4802
+
4803
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
4804
+ // property, it may be the creator of the child that's responsible for
4805
+ // assigning it a key.
4806
+
4807
+ var childOwner = '';
4808
+
4809
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
4810
+ // Give the component that originally created this child.
4811
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
4812
+ }
4813
+
4814
+ setCurrentlyValidatingElement$1(element);
4815
+
4816
+ 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);
4817
+
4818
+ setCurrentlyValidatingElement$1(null);
4819
+ }
4820
+ }
4821
+ /**
4822
+ * Ensure that every element either is passed in a static location, in an
4823
+ * array with an explicit keys property defined, or in an object literal
4824
+ * with valid key property.
4825
+ *
4826
+ * @internal
4827
+ * @param {ReactNode} node Statically passed child of any type.
4828
+ * @param {*} parentType node's parent's type.
4829
+ */
4830
+
4831
+
4832
+ function validateChildKeys(node, parentType) {
4833
+ {
4834
+ if (typeof node !== 'object') {
4835
+ return;
4836
+ }
4837
+
4838
+ if (isArray(node)) {
4839
+ for (var i = 0; i < node.length; i++) {
4840
+ var child = node[i];
4841
+
4842
+ if (isValidElement(child)) {
4843
+ validateExplicitKey(child, parentType);
4844
+ }
4845
+ }
4846
+ } else if (isValidElement(node)) {
4847
+ // This element was passed in a valid location.
4848
+ if (node._store) {
4849
+ node._store.validated = true;
4850
+ }
4851
+ } else if (node) {
4852
+ var iteratorFn = getIteratorFn(node);
4853
+
4854
+ if (typeof iteratorFn === 'function') {
4855
+ // Entry iterators used to provide implicit keys,
4856
+ // but now we print a separate warning for them later.
4857
+ if (iteratorFn !== node.entries) {
4858
+ var iterator = iteratorFn.call(node);
4859
+ var step;
4860
+
4861
+ while (!(step = iterator.next()).done) {
4862
+ if (isValidElement(step.value)) {
4863
+ validateExplicitKey(step.value, parentType);
4864
+ }
4865
+ }
4866
+ }
4867
+ }
4868
+ }
4869
+ }
4870
+ }
4871
+ /**
4872
+ * Given an element, validate that its props follow the propTypes definition,
4873
+ * provided by the type.
4874
+ *
4875
+ * @param {ReactElement} element
4876
+ */
4877
+
4878
+
4879
+ function validatePropTypes(element) {
4880
+ {
4881
+ var type = element.type;
4882
+
4883
+ if (type === null || type === undefined || typeof type === 'string') {
4884
+ return;
4885
+ }
4886
+
4887
+ var propTypes;
4888
+
4889
+ if (typeof type === 'function') {
4890
+ propTypes = type.propTypes;
4891
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
4892
+ // Inner props are checked in the reconciler.
4893
+ type.$$typeof === REACT_MEMO_TYPE)) {
4894
+ propTypes = type.propTypes;
4895
+ } else {
4896
+ return;
4897
+ }
4898
+
4899
+ if (propTypes) {
4900
+ // Intentionally inside to avoid triggering lazy initializers:
4901
+ var name = getComponentNameFromType(type);
4902
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
4903
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
4904
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
4905
+
4906
+ var _name = getComponentNameFromType(type);
4907
+
4908
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
4909
+ }
4910
+
4911
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
4912
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
4913
+ }
4914
+ }
4915
+ }
4916
+ /**
4917
+ * Given a fragment, validate that it can only be provided with fragment props
4918
+ * @param {ReactElement} fragment
4919
+ */
4920
+
4921
+
4922
+ function validateFragmentProps(fragment) {
4923
+ {
4924
+ var keys = Object.keys(fragment.props);
4925
+
4926
+ for (var i = 0; i < keys.length; i++) {
4927
+ var key = keys[i];
4928
+
4929
+ if (key !== 'children' && key !== 'key') {
4930
+ setCurrentlyValidatingElement$1(fragment);
4931
+
4932
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
4933
+
4934
+ setCurrentlyValidatingElement$1(null);
4935
+ break;
4936
+ }
4937
+ }
4938
+
4939
+ if (fragment.ref !== null) {
4940
+ setCurrentlyValidatingElement$1(fragment);
4941
+
4942
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
4943
+
4944
+ setCurrentlyValidatingElement$1(null);
4945
+ }
4946
+ }
4947
+ }
4948
+
4949
+ var didWarnAboutKeySpread = {};
4950
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
4951
+ {
4952
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
4953
+ // succeed and there will likely be errors in render.
4954
+
4955
+ if (!validType) {
4956
+ var info = '';
4957
+
4958
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
4959
+ 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.";
4960
+ }
4961
+
4962
+ var sourceInfo = getSourceInfoErrorAddendum(source);
4963
+
4964
+ if (sourceInfo) {
4965
+ info += sourceInfo;
4966
+ } else {
4967
+ info += getDeclarationErrorAddendum();
4968
+ }
4969
+
4970
+ var typeString;
4971
+
4972
+ if (type === null) {
4973
+ typeString = 'null';
4974
+ } else if (isArray(type)) {
4975
+ typeString = 'array';
4976
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
4977
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
4978
+ info = ' Did you accidentally export a JSX literal instead of a component?';
4979
+ } else {
4980
+ typeString = typeof type;
4981
+ }
4982
+
4983
+ 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);
4984
+ }
4985
+
4986
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
4987
+ // TODO: Drop this when these are no longer allowed as the type argument.
4988
+
4989
+ if (element == null) {
4990
+ return element;
4991
+ } // Skip key warning if the type isn't valid since our key validation logic
4992
+ // doesn't expect a non-string/function type and can throw confusing errors.
4993
+ // We don't want exception behavior to differ between dev and prod.
4994
+ // (Rendering will throw with a helpful message and as soon as the type is
4995
+ // fixed, the key warnings will appear.)
4996
+
4997
+
4998
+ if (validType) {
4999
+ var children = props.children;
5000
+
5001
+ if (children !== undefined) {
5002
+ if (isStaticChildren) {
5003
+ if (isArray(children)) {
5004
+ for (var i = 0; i < children.length; i++) {
5005
+ validateChildKeys(children[i], type);
5006
+ }
5007
+
5008
+ if (Object.freeze) {
5009
+ Object.freeze(children);
5010
+ }
5011
+ } else {
5012
+ 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.');
5013
+ }
5014
+ } else {
5015
+ validateChildKeys(children, type);
5016
+ }
5017
+ }
5018
+ }
5019
+
5020
+ {
5021
+ if (hasOwnProperty.call(props, 'key')) {
5022
+ var componentName = getComponentNameFromType(type);
5023
+ var keys = Object.keys(props).filter(function (k) {
5024
+ return k !== 'key';
5025
+ });
5026
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
5027
+
5028
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
5029
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
5030
+
5031
+ error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
5032
+
5033
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
5034
+ }
5035
+ }
5036
+ }
5037
+
5038
+ if (type === REACT_FRAGMENT_TYPE) {
5039
+ validateFragmentProps(element);
5040
+ } else {
5041
+ validatePropTypes(element);
5042
+ }
5043
+
5044
+ return element;
5045
+ }
5046
+ } // These two functions exist to still get child warnings in dev
5047
+ // even with the prod transform. This means that jsxDEV is purely
5048
+ // opt-in behavior for better messages but that we won't stop
5049
+ // giving you warnings if you use production apis.
5050
+
5051
+ function jsxWithValidationStatic(type, props, key) {
5052
+ {
5053
+ return jsxWithValidation(type, props, key, true);
5054
+ }
5055
+ }
5056
+ function jsxWithValidationDynamic(type, props, key) {
5057
+ {
5058
+ return jsxWithValidation(type, props, key, false);
5059
+ }
5060
+ }
5061
+
5062
+ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
5063
+ // for now we can ship identical prod functions
5064
+
5065
+ var jsxs = jsxWithValidationStatic ;
5066
+
5067
+ exports.Fragment = REACT_FRAGMENT_TYPE;
5068
+ exports.jsx = jsx;
5069
+ exports.jsxs = jsxs;
4096
5070
  })();
5071
+ }
4097
5072
 
4098
5073
 
4099
5074
  /***/ }),
@@ -9591,6 +10566,18 @@ __webpack_require__.r(__webpack_exports__);
9591
10566
 
9592
10567
 
9593
10568
 
10569
+ /***/ }),
10570
+
10571
+ /***/ "./src/ui/InputFields/DateTimeRangeField/types/TimeRangeFieldTypes.ts":
10572
+ /*!****************************************************************************!*\
10573
+ !*** ./src/ui/InputFields/DateTimeRangeField/types/TimeRangeFieldTypes.ts ***!
10574
+ \****************************************************************************/
10575
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10576
+
10577
+ __webpack_require__.r(__webpack_exports__);
10578
+
10579
+
10580
+
9594
10581
  /***/ }),
9595
10582
 
9596
10583
  /***/ "./src/ui/InputFields/DateTimeRangeField/types/index.ts":
@@ -9602,6 +10589,8 @@ __webpack_require__.r(__webpack_exports__);
9602
10589
  __webpack_require__.r(__webpack_exports__);
9603
10590
  /* harmony import */ var _DateTimeRangeFieldTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DateTimeRangeFieldTypes */ "./src/ui/InputFields/DateTimeRangeField/types/DateTimeRangeFieldTypes.ts");
9604
10591
  /* harmony import */ var _DateRangeFieldTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DateRangeFieldTypes */ "./src/ui/InputFields/DateTimeRangeField/types/DateRangeFieldTypes.ts");
10592
+ /* harmony import */ var _TimeRangeFieldTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TimeRangeFieldTypes */ "./src/ui/InputFields/DateTimeRangeField/types/TimeRangeFieldTypes.ts");
10593
+
9605
10594
 
9606
10595
 
9607
10596
 
@@ -9635,7 +10624,7 @@ __webpack_require__.r(__webpack_exports__);
9635
10624
 
9636
10625
 
9637
10626
 
9638
- function DateRangeField({ value, onChange, secondPlaceholder, firstPlaceholder, secondIcon, disabled, timeFormat = 'dd.MM.yyyy', required, firstIcon, onBlur, firstText = 'от', secondText = 'до', onFocus, isError, clearButton = true, width = 'fill', additionsStyles, }) {
10627
+ function DateRangeField({ value, onChange, secondPlaceholder, firstPlaceholder, secondIcon, disabled, dateFormat = 'dd.MM.yyyy', required, firstIcon, onBlur, firstText = 'от', secondText = 'до', onFocus, isError, clearButton = true, width = 'fill', additionsStyles, }) {
9639
10628
  const [isFocus, setIsFocus] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);
9640
10629
  const [isShowModalWindow, setIsShowModalWindow] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);
9641
10630
  const fieldRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
@@ -9650,11 +10639,11 @@ function DateRangeField({ value, onChange, secondPlaceholder, firstPlaceholder,
9650
10639
  };
9651
10640
  const getDate = (index) => {
9652
10641
  const curValue = value?.[index];
9653
- return curValue ? (0,_lib__WEBPACK_IMPORTED_MODULE_4__.saveFormatDate)(curValue, { from: _ui__WEBPACK_IMPORTED_MODULE_3__.DATE_RANGE_TYPE_FORMAT, to: timeFormat }) : undefined;
10642
+ return curValue ? (0,_lib__WEBPACK_IMPORTED_MODULE_4__.saveFormatDate)(curValue, { from: _ui__WEBPACK_IMPORTED_MODULE_3__.DATE_RANGE_TYPE_FORMAT, to: dateFormat }) : undefined;
9654
10643
  };
9655
10644
  const handleChange = (newItem, index) => {
9656
10645
  const newValue = value ? [...value] : [];
9657
- newValue[index] = newItem ? (0,_lib__WEBPACK_IMPORTED_MODULE_4__.saveFormatDate)(newItem, { from: timeFormat, to: _ui__WEBPACK_IMPORTED_MODULE_3__.DATE_RANGE_TYPE_FORMAT }) : undefined;
10646
+ newValue[index] = newItem ? (0,_lib__WEBPACK_IMPORTED_MODULE_4__.saveFormatDate)(newItem, { from: dateFormat, to: _ui__WEBPACK_IMPORTED_MODULE_3__.DATE_RANGE_TYPE_FORMAT }) : undefined;
9658
10647
  onChange?.(newValue);
9659
10648
  };
9660
10649
  const hasValue = () => {
@@ -9674,10 +10663,10 @@ function DateRangeField({ value, onChange, secondPlaceholder, firstPlaceholder,
9674
10663
  };
9675
10664
  };
9676
10665
  const getFirst = () => {
9677
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_DateTimeField__WEBPACK_IMPORTED_MODULE_6__.DateFieldBase, { placeholder: firstPlaceholder, value: getDate(0), onBlur: handleBlur, onFocus: handleFocus, onChange: (value) => handleChange(value, 0), dateFormat: timeFormat, disabled: disabled, required: required, className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(_DateTimeField_styles__WEBPACK_IMPORTED_MODULE_5__.DateTimeFieldStyle.flexField, { [_DateTimeField_styles__WEBPACK_IMPORTED_MODULE_5__.DateTimeFieldStyle.disabled]: disabled }) }));
10666
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_DateTimeField__WEBPACK_IMPORTED_MODULE_6__.DateFieldBase, { placeholder: firstPlaceholder, value: getDate(0), onBlur: handleBlur, onFocus: handleFocus, onChange: (value) => handleChange(value, 0), dateFormat: dateFormat, disabled: disabled, required: required, className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(_DateTimeField_styles__WEBPACK_IMPORTED_MODULE_5__.DateTimeFieldStyle.flexField, { [_DateTimeField_styles__WEBPACK_IMPORTED_MODULE_5__.DateTimeFieldStyle.disabled]: disabled }) }));
9678
10667
  };
9679
10668
  const getSecond = () => {
9680
- return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_DateTimeField__WEBPACK_IMPORTED_MODULE_6__.DateFieldBase, { placeholder: secondPlaceholder, value: getDate(1), onBlur: handleBlur, onFocus: handleFocus, onChange: (value) => handleChange(value, 1), dateFormat: timeFormat, disabled: disabled, required: required, className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(_DateTimeField_styles__WEBPACK_IMPORTED_MODULE_5__.DateTimeFieldStyle.flexField, { [_DateTimeField_styles__WEBPACK_IMPORTED_MODULE_5__.DateTimeFieldStyle.disabled]: disabled }) }));
10669
+ return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_DateTimeField__WEBPACK_IMPORTED_MODULE_6__.DateFieldBase, { placeholder: secondPlaceholder, value: getDate(1), onBlur: handleBlur, onFocus: handleFocus, onChange: (value) => handleChange(value, 1), dateFormat: dateFormat, disabled: disabled, required: required, className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(_DateTimeField_styles__WEBPACK_IMPORTED_MODULE_5__.DateTimeFieldStyle.flexField, { [_DateTimeField_styles__WEBPACK_IMPORTED_MODULE_5__.DateTimeFieldStyle.disabled]: disabled }) }));
9681
10670
  };
9682
10671
  const onSubmit = (value) => {
9683
10672
  if (Array.isArray(value)) {
@@ -9764,13 +10753,16 @@ function TimeRangeField({ value, onChange, secondPlaceholder, firstPlaceholder,
9764
10753
  onChange?.(newValue);
9765
10754
  };
9766
10755
  const hasValue = () => {
9767
- let hasValue = false;
9768
- value?.forEach(item => {
9769
- if (item) {
9770
- hasValue = true;
9771
- }
9772
- });
9773
- return hasValue;
10756
+ if (Array.isArray(value)) {
10757
+ let hasValue = false;
10758
+ value?.forEach(item => {
10759
+ if (item) {
10760
+ hasValue = true;
10761
+ }
10762
+ });
10763
+ return hasValue;
10764
+ }
10765
+ return false;
9774
10766
  };
9775
10767
  const getClearButton = () => {
9776
10768
  if (!clearButton || !hasValue())