mozrest-sdk-react-dev 0.2.43 → 0.2.44
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/mozrest-sdk.es.js +343 -450
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -2727,7 +2727,7 @@ a$1(i$2(function(e3) {
|
|
|
2727
2727
|
return t2 in e4 ? Object.defineProperty(e4, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e4[t2] = n2, e4;
|
|
2728
2728
|
}, e3.exports.default = e3.exports, e3.exports.__esModule = true;
|
|
2729
2729
|
}));
|
|
2730
|
-
function _objectWithoutPropertiesLoose$
|
|
2730
|
+
function _objectWithoutPropertiesLoose$z(source2, excluded) {
|
|
2731
2731
|
if (source2 == null)
|
|
2732
2732
|
return {};
|
|
2733
2733
|
var target = {};
|
|
@@ -2741,10 +2741,10 @@ function _objectWithoutPropertiesLoose$A(source2, excluded) {
|
|
|
2741
2741
|
}
|
|
2742
2742
|
return target;
|
|
2743
2743
|
}
|
|
2744
|
-
function _objectWithoutProperties$
|
|
2744
|
+
function _objectWithoutProperties$w(source2, excluded) {
|
|
2745
2745
|
if (source2 == null)
|
|
2746
2746
|
return {};
|
|
2747
|
-
var target = _objectWithoutPropertiesLoose$
|
|
2747
|
+
var target = _objectWithoutPropertiesLoose$z(source2, excluded);
|
|
2748
2748
|
var key2, i;
|
|
2749
2749
|
if (Object.getOwnPropertySymbols) {
|
|
2750
2750
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
|
@@ -9007,8 +9007,8 @@ const Button$3 = React__default.forwardRef(({
|
|
|
9007
9007
|
style: { display: "flex", alignItems: "center", justifyContent: "center", gap: 5 }
|
|
9008
9008
|
}, IconBtn, isLoading ? "Loading ..." : children));
|
|
9009
9009
|
});
|
|
9010
|
-
function _extends$
|
|
9011
|
-
_extends$
|
|
9010
|
+
function _extends$Q() {
|
|
9011
|
+
_extends$Q = Object.assign ? Object.assign.bind() : function(target) {
|
|
9012
9012
|
for (var i = 1; i < arguments.length; i++) {
|
|
9013
9013
|
var source2 = arguments[i];
|
|
9014
9014
|
for (var key2 in source2) {
|
|
@@ -9019,7 +9019,7 @@ function _extends$R() {
|
|
|
9019
9019
|
}
|
|
9020
9020
|
return target;
|
|
9021
9021
|
};
|
|
9022
|
-
return _extends$
|
|
9022
|
+
return _extends$Q.apply(this, arguments);
|
|
9023
9023
|
}
|
|
9024
9024
|
function _isNativeReflectConstruct$p() {
|
|
9025
9025
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
@@ -10201,8 +10201,8 @@ function _asyncToGenerator(fn) {
|
|
|
10201
10201
|
});
|
|
10202
10202
|
};
|
|
10203
10203
|
}
|
|
10204
|
-
function _extends$
|
|
10205
|
-
_extends$
|
|
10204
|
+
function _extends$P() {
|
|
10205
|
+
_extends$P = Object.assign ? Object.assign.bind() : function(target) {
|
|
10206
10206
|
for (var i = 1; i < arguments.length; i++) {
|
|
10207
10207
|
var source2 = arguments[i];
|
|
10208
10208
|
for (var key2 in source2) {
|
|
@@ -10213,7 +10213,7 @@ function _extends$Q() {
|
|
|
10213
10213
|
}
|
|
10214
10214
|
return target;
|
|
10215
10215
|
};
|
|
10216
|
-
return _extends$
|
|
10216
|
+
return _extends$P.apply(this, arguments);
|
|
10217
10217
|
}
|
|
10218
10218
|
function _inheritsLoose$2(subClass, superClass) {
|
|
10219
10219
|
subClass.prototype = Object.create(superClass.prototype);
|
|
@@ -10509,7 +10509,7 @@ function deepMerge(target, source2) {
|
|
|
10509
10509
|
if (source2.hasOwnProperty(s2)) {
|
|
10510
10510
|
var value2 = source2[s2];
|
|
10511
10511
|
if (typeof value2 === "object" && typeof target[s2] === "object") {
|
|
10512
|
-
target[s2] = _extends$
|
|
10512
|
+
target[s2] = _extends$P({}, target[s2], value2);
|
|
10513
10513
|
} else {
|
|
10514
10514
|
target[s2] = value2;
|
|
10515
10515
|
}
|
|
@@ -11082,7 +11082,7 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
11082
11082
|
var rule = r2;
|
|
11083
11083
|
if (typeof rule.transform === "function") {
|
|
11084
11084
|
if (source2 === source_) {
|
|
11085
|
-
source2 = _extends$
|
|
11085
|
+
source2 = _extends$P({}, source2);
|
|
11086
11086
|
}
|
|
11087
11087
|
value2 = source2[z2] = rule.transform(value2);
|
|
11088
11088
|
}
|
|
@@ -11091,7 +11091,7 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
11091
11091
|
validator: rule
|
|
11092
11092
|
};
|
|
11093
11093
|
} else {
|
|
11094
|
-
rule = _extends$
|
|
11094
|
+
rule = _extends$P({}, rule);
|
|
11095
11095
|
}
|
|
11096
11096
|
rule.validator = _this2.getValidationMethod(rule);
|
|
11097
11097
|
if (!rule.validator) {
|
|
@@ -11116,7 +11116,7 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
11116
11116
|
deep = deep && (rule.required || !rule.required && data2.value);
|
|
11117
11117
|
rule.field = data2.field;
|
|
11118
11118
|
function addFullField(key2, schema2) {
|
|
11119
|
-
return _extends$
|
|
11119
|
+
return _extends$P({}, schema2, {
|
|
11120
11120
|
fullField: rule.fullField + "." + key2,
|
|
11121
11121
|
fullFields: rule.fullFields ? [].concat(rule.fullFields, [key2]) : [key2]
|
|
11122
11122
|
});
|
|
@@ -11154,7 +11154,7 @@ var Schema = /* @__PURE__ */ function() {
|
|
|
11154
11154
|
fieldsSchema[key2] = rule.defaultField;
|
|
11155
11155
|
});
|
|
11156
11156
|
}
|
|
11157
|
-
fieldsSchema = _extends$
|
|
11157
|
+
fieldsSchema = _extends$P({}, fieldsSchema, data2.rule.fields);
|
|
11158
11158
|
var paredFieldsSchema = {};
|
|
11159
11159
|
Object.keys(fieldsSchema).forEach(function(field2) {
|
|
11160
11160
|
var fieldSchema = fieldsSchema[field2];
|
|
@@ -12103,14 +12103,14 @@ Field$1.defaultProps = {
|
|
|
12103
12103
|
valuePropName: "value"
|
|
12104
12104
|
};
|
|
12105
12105
|
function WrapperField(_ref5) {
|
|
12106
|
-
var name = _ref5.name, restProps = _objectWithoutProperties$
|
|
12106
|
+
var name = _ref5.name, restProps = _objectWithoutProperties$w(_ref5, _excluded$e);
|
|
12107
12107
|
var fieldContext = React.useContext(Context);
|
|
12108
12108
|
var namePath = name !== void 0 ? getNamePath(name) : void 0;
|
|
12109
12109
|
var key2 = "keep";
|
|
12110
12110
|
if (!restProps.isListField) {
|
|
12111
12111
|
key2 = "_".concat((namePath || []).join("_"));
|
|
12112
12112
|
}
|
|
12113
|
-
return /* @__PURE__ */ React.createElement(Field$1, _extends$
|
|
12113
|
+
return /* @__PURE__ */ React.createElement(Field$1, _extends$Q({
|
|
12114
12114
|
key: key2,
|
|
12115
12115
|
name: namePath
|
|
12116
12116
|
}, restProps, {
|
|
@@ -12694,7 +12694,7 @@ var FormStore = /* @__PURE__ */ _createClass$p(function FormStore2(forceRootUpda
|
|
|
12694
12694
|
fields.forEach(function(fieldData) {
|
|
12695
12695
|
var name = fieldData.name;
|
|
12696
12696
|
fieldData.errors;
|
|
12697
|
-
var data2 = _objectWithoutProperties$
|
|
12697
|
+
var data2 = _objectWithoutProperties$w(fieldData, _excluded$d);
|
|
12698
12698
|
var namePath = getNamePath(name);
|
|
12699
12699
|
namePathList.push(namePath);
|
|
12700
12700
|
if ("value" in data2) {
|
|
@@ -13081,7 +13081,7 @@ var FormProvider = function FormProvider2(_ref3) {
|
|
|
13081
13081
|
};
|
|
13082
13082
|
var _excluded$c = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
13083
13083
|
var Form$c = function Form(_ref3, ref) {
|
|
13084
|
-
var name = _ref3.name, initialValues = _ref3.initialValues, fields = _ref3.fields, form2 = _ref3.form, preserve = _ref3.preserve, children = _ref3.children, _ref$component = _ref3.component, Component2 = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref3.validateMessages, _ref$validateTrigger = _ref3.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref3.onValuesChange, _onFieldsChange = _ref3.onFieldsChange, _onFinish = _ref3.onFinish, onFinishFailed = _ref3.onFinishFailed, restProps = _objectWithoutProperties$
|
|
13084
|
+
var name = _ref3.name, initialValues = _ref3.initialValues, fields = _ref3.fields, form2 = _ref3.form, preserve = _ref3.preserve, children = _ref3.children, _ref$component = _ref3.component, Component2 = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref3.validateMessages, _ref$validateTrigger = _ref3.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref3.onValuesChange, _onFieldsChange = _ref3.onFieldsChange, _onFinish = _ref3.onFinish, onFinishFailed = _ref3.onFinishFailed, restProps = _objectWithoutProperties$w(_ref3, _excluded$c);
|
|
13085
13085
|
var formContext = React.useContext(FormContext);
|
|
13086
13086
|
var _useForm = useForm(form2), _useForm2 = _slicedToArray$a(_useForm, 1), formInstance = _useForm2[0];
|
|
13087
13087
|
var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK), useSubscribe = _formInstance$getInte.useSubscribe, setInitialValues = _formInstance$getInte.setInitialValues, setCallbacks = _formInstance$getInte.setCallbacks, setValidateMessages = _formInstance$getInte.setValidateMessages, setPreserve = _formInstance$getInte.setPreserve, destroyForm = _formInstance$getInte.destroyForm;
|
|
@@ -13150,7 +13150,7 @@ var Form$c = function Form(_ref3, ref) {
|
|
|
13150
13150
|
if (Component2 === false) {
|
|
13151
13151
|
return wrapperNode;
|
|
13152
13152
|
}
|
|
13153
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
|
13153
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$Q({}, restProps, {
|
|
13154
13154
|
onSubmit: function onSubmit(event) {
|
|
13155
13155
|
event.preventDefault();
|
|
13156
13156
|
event.stopPropagation();
|
|
@@ -13263,7 +13263,7 @@ var locale$4 = {
|
|
|
13263
13263
|
};
|
|
13264
13264
|
var TimePicker = locale$4;
|
|
13265
13265
|
var locale$3 = {
|
|
13266
|
-
lang: _extends$
|
|
13266
|
+
lang: _extends$Q({
|
|
13267
13267
|
placeholder: "Select date",
|
|
13268
13268
|
yearPlaceholder: "Select year",
|
|
13269
13269
|
quarterPlaceholder: "Select quarter",
|
|
@@ -13275,7 +13275,7 @@ var locale$3 = {
|
|
|
13275
13275
|
rangeMonthPlaceholder: ["Start month", "End month"],
|
|
13276
13276
|
rangeWeekPlaceholder: ["Start week", "End week"]
|
|
13277
13277
|
}, locale$5),
|
|
13278
|
-
timePickerLocale: _extends$
|
|
13278
|
+
timePickerLocale: _extends$Q({}, TimePicker)
|
|
13279
13279
|
};
|
|
13280
13280
|
var enUS = locale$3;
|
|
13281
13281
|
var typeTemplate = "${label} is not a valid ${type}";
|
|
@@ -13405,12 +13405,12 @@ var localeValues = {
|
|
|
13405
13405
|
}
|
|
13406
13406
|
};
|
|
13407
13407
|
var defaultLocale$2 = localeValues;
|
|
13408
|
-
var runtimeLocale = _extends$
|
|
13408
|
+
var runtimeLocale = _extends$Q({}, defaultLocale$2.Modal);
|
|
13409
13409
|
function changeConfirmLocale(newLocale) {
|
|
13410
13410
|
if (newLocale) {
|
|
13411
|
-
runtimeLocale = _extends$
|
|
13411
|
+
runtimeLocale = _extends$Q(_extends$Q({}, runtimeLocale), newLocale);
|
|
13412
13412
|
} else {
|
|
13413
|
-
runtimeLocale = _extends$
|
|
13413
|
+
runtimeLocale = _extends$Q({}, defaultLocale$2.Modal);
|
|
13414
13414
|
}
|
|
13415
13415
|
}
|
|
13416
13416
|
function getConfirmLocale() {
|
|
@@ -13429,7 +13429,7 @@ var LocaleProvider = function LocaleProvider2(props) {
|
|
|
13429
13429
|
};
|
|
13430
13430
|
}, [locale2]);
|
|
13431
13431
|
var getMemoizedContextValue = React.useMemo(function() {
|
|
13432
|
-
return _extends$
|
|
13432
|
+
return _extends$Q(_extends$Q({}, locale2), {
|
|
13433
13433
|
exist: true
|
|
13434
13434
|
});
|
|
13435
13435
|
}, [locale2]);
|
|
@@ -13445,7 +13445,7 @@ var LocaleReceiver = function LocaleReceiver2(props) {
|
|
|
13445
13445
|
var _a2;
|
|
13446
13446
|
var locale2 = defaultLocale2 || defaultLocale$2[componentName];
|
|
13447
13447
|
var localeFromContext = (_a2 = antLocale === null || antLocale === void 0 ? void 0 : antLocale[componentName]) !== null && _a2 !== void 0 ? _a2 : {};
|
|
13448
|
-
return _extends$
|
|
13448
|
+
return _extends$Q(_extends$Q({}, locale2 instanceof Function ? locale2() : locale2), localeFromContext || {});
|
|
13449
13449
|
}, [componentName, defaultLocale2, antLocale]);
|
|
13450
13450
|
var getLocaleCode = React.useMemo(function() {
|
|
13451
13451
|
var localeCode = antLocale && antLocale.locale;
|
|
@@ -14698,7 +14698,7 @@ function getTwoToneColors() {
|
|
|
14698
14698
|
return _objectSpread2$4({}, twoToneColorPalette);
|
|
14699
14699
|
}
|
|
14700
14700
|
var IconBase = function IconBase2(props) {
|
|
14701
|
-
var icon2 = props.icon, className = props.className, onClick = props.onClick, style2 = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties$
|
|
14701
|
+
var icon2 = props.icon, className = props.className, onClick = props.onClick, style2 = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties$w(props, _excluded$b);
|
|
14702
14702
|
var colors2 = twoToneColorPalette;
|
|
14703
14703
|
if (primaryColor) {
|
|
14704
14704
|
colors2 = {
|
|
@@ -14750,7 +14750,7 @@ var _excluded$a = ["className", "icon", "spin", "rotate", "tabIndex", "onClick",
|
|
|
14750
14750
|
setTwoToneColor("#1890ff");
|
|
14751
14751
|
var Icon = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
14752
14752
|
var _classNames;
|
|
14753
|
-
var className = props.className, icon2 = props.icon, spin2 = props.spin, rotate2 = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties$
|
|
14753
|
+
var className = props.className, icon2 = props.icon, spin2 = props.spin, rotate2 = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties$w(props, _excluded$a);
|
|
14754
14754
|
var _React$useContext = React.useContext(IconContext$1), _React$useContext$pre = _React$useContext.prefixCls, prefixCls = _React$useContext$pre === void 0 ? "anticon" : _React$useContext$pre, rootClassName = _React$useContext.rootClassName;
|
|
14755
14755
|
var classString = classNames$1(rootClassName, prefixCls, (_classNames = {}, _defineProperty$y(_classNames, "".concat(prefixCls, "-").concat(icon2.name), !!icon2.name), _defineProperty$y(_classNames, "".concat(prefixCls, "-spin"), !!spin2 || icon2.name === "loading"), _classNames), className);
|
|
14756
14756
|
var iconTabIndex = tabIndex;
|
|
@@ -15492,7 +15492,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
15492
15492
|
value: function render2() {
|
|
15493
15493
|
var _this2 = this;
|
|
15494
15494
|
var keyEntities = this.state.keyEntities;
|
|
15495
|
-
var _this$props = this.props, component = _this$props.component, children = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged, onAllRemoved = _this$props.onAllRemoved, restProps = _objectWithoutProperties$
|
|
15495
|
+
var _this$props = this.props, component = _this$props.component, children = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged, onAllRemoved = _this$props.onAllRemoved, restProps = _objectWithoutProperties$w(_this$props, _excluded$9);
|
|
15496
15496
|
var Component2 = component || React.Fragment;
|
|
15497
15497
|
var motionProps = {};
|
|
15498
15498
|
MOTION_PROP_NAMES.forEach(function(prop) {
|
|
@@ -15501,9 +15501,9 @@ function genCSSMotionList(transitionSupport) {
|
|
|
15501
15501
|
});
|
|
15502
15502
|
delete restProps.keys;
|
|
15503
15503
|
return /* @__PURE__ */ React.createElement(Component2, restProps, keyEntities.map(function(_ref22) {
|
|
15504
|
-
var status = _ref22.status, eventProps = _objectWithoutProperties$
|
|
15504
|
+
var status = _ref22.status, eventProps = _objectWithoutProperties$w(_ref22, _excluded2$1);
|
|
15505
15505
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
15506
|
-
return /* @__PURE__ */ React.createElement(CSSMotion$1, _extends$
|
|
15506
|
+
return /* @__PURE__ */ React.createElement(CSSMotion$1, _extends$Q({}, motionProps, {
|
|
15507
15507
|
key: eventProps.key,
|
|
15508
15508
|
visible,
|
|
15509
15509
|
eventProps,
|
|
@@ -15621,7 +15621,7 @@ var Notice = /* @__PURE__ */ function(_Component) {
|
|
|
15621
15621
|
}
|
|
15622
15622
|
return acc;
|
|
15623
15623
|
}, {});
|
|
15624
|
-
var node2 = /* @__PURE__ */ React.createElement("div", _extends$
|
|
15624
|
+
var node2 = /* @__PURE__ */ React.createElement("div", _extends$Q({
|
|
15625
15625
|
className: classNames$1(componentClass, className, _defineProperty$y({}, "".concat(componentClass, "-closable"), closable)),
|
|
15626
15626
|
style: style2,
|
|
15627
15627
|
onMouseEnter: this.clearCloseTimer,
|
|
@@ -15657,7 +15657,7 @@ function useNotification(notificationInstance2) {
|
|
|
15657
15657
|
notificationInstance2.add(noticeProps, function(div, props) {
|
|
15658
15658
|
var key2 = props.key;
|
|
15659
15659
|
if (div && (!createdRef.current[key2] || firstMount)) {
|
|
15660
|
-
var noticeEle = /* @__PURE__ */ React.createElement(Notice, _extends$
|
|
15660
|
+
var noticeEle = /* @__PURE__ */ React.createElement(Notice, _extends$Q({}, props, {
|
|
15661
15661
|
holder: div
|
|
15662
15662
|
}));
|
|
15663
15663
|
createdRef.current[key2] = noticeEle;
|
|
@@ -15825,7 +15825,7 @@ var Notification = /* @__PURE__ */ function(_Component) {
|
|
|
15825
15825
|
}
|
|
15826
15826
|
});
|
|
15827
15827
|
}
|
|
15828
|
-
return /* @__PURE__ */ React.createElement(Notice, _extends$
|
|
15828
|
+
return /* @__PURE__ */ React.createElement(Notice, _extends$Q({}, noticeProps, {
|
|
15829
15829
|
className: classNames$1(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
|
|
15830
15830
|
style: _objectSpread2$4(_objectSpread2$4({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
|
|
15831
15831
|
visible
|
|
@@ -15845,7 +15845,7 @@ Notification.defaultProps = {
|
|
|
15845
15845
|
}
|
|
15846
15846
|
};
|
|
15847
15847
|
Notification.newInstance = function newNotificationInstance(properties, callback) {
|
|
15848
|
-
var _ref6 = properties || {}, getContainer2 = _ref6.getContainer, props = _objectWithoutProperties$
|
|
15848
|
+
var _ref6 = properties || {}, getContainer2 = _ref6.getContainer, props = _objectWithoutProperties$w(_ref6, _excluded$8);
|
|
15849
15849
|
var div = document.createElement("div");
|
|
15850
15850
|
if (getContainer2) {
|
|
15851
15851
|
var root2 = getContainer2();
|
|
@@ -15878,7 +15878,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
|
|
|
15878
15878
|
}
|
|
15879
15879
|
});
|
|
15880
15880
|
}
|
|
15881
|
-
render(/* @__PURE__ */ React.createElement(Notification, _extends$
|
|
15881
|
+
render(/* @__PURE__ */ React.createElement(Notification, _extends$Q({}, props, {
|
|
15882
15882
|
ref
|
|
15883
15883
|
})), div);
|
|
15884
15884
|
};
|
|
@@ -15905,14 +15905,14 @@ function createUseMessage(getRcNotificationInstance, getRCNoticeProps2) {
|
|
|
15905
15905
|
}
|
|
15906
15906
|
return resolve(true);
|
|
15907
15907
|
};
|
|
15908
|
-
getRcNotificationInstance(_extends$
|
|
15908
|
+
getRcNotificationInstance(_extends$Q(_extends$Q({}, args), {
|
|
15909
15909
|
prefixCls: mergedPrefixCls,
|
|
15910
15910
|
rootPrefixCls,
|
|
15911
15911
|
getPopupContainer
|
|
15912
15912
|
}), function(_ref3) {
|
|
15913
15913
|
var prefixCls = _ref3.prefixCls, instance2 = _ref3.instance;
|
|
15914
15914
|
innerInstance = instance2;
|
|
15915
|
-
hookNotify(getRCNoticeProps2(_extends$
|
|
15915
|
+
hookNotify(getRCNoticeProps2(_extends$Q(_extends$Q({}, args), {
|
|
15916
15916
|
key: target,
|
|
15917
15917
|
onClose: callback
|
|
15918
15918
|
}), prefixCls));
|
|
@@ -16066,7 +16066,7 @@ function notice$1(args) {
|
|
|
16066
16066
|
};
|
|
16067
16067
|
getRCNotificationInstance(args, function(_ref3) {
|
|
16068
16068
|
var prefixCls = _ref3.prefixCls, iconPrefixCls = _ref3.iconPrefixCls, instance2 = _ref3.instance;
|
|
16069
|
-
instance2.notice(getRCNoticeProps$1(_extends$
|
|
16069
|
+
instance2.notice(getRCNoticeProps$1(_extends$Q(_extends$Q({}, args), {
|
|
16070
16070
|
key: target,
|
|
16071
16071
|
onClose: callback
|
|
16072
16072
|
}), prefixCls, iconPrefixCls));
|
|
@@ -16107,7 +16107,7 @@ var api$1 = {
|
|
|
16107
16107
|
function attachTypeApi(originalApi, type4) {
|
|
16108
16108
|
originalApi[type4] = function(content2, duration2, onClose2) {
|
|
16109
16109
|
if (isArgsProps(content2)) {
|
|
16110
|
-
return originalApi.open(_extends$
|
|
16110
|
+
return originalApi.open(_extends$Q(_extends$Q({}, content2), {
|
|
16111
16111
|
type: type4
|
|
16112
16112
|
}));
|
|
16113
16113
|
}
|
|
@@ -16192,7 +16192,7 @@ function createUseNotification(getNotificationInstance2, getRCNoticeProps2) {
|
|
|
16192
16192
|
function notify(args) {
|
|
16193
16193
|
var customizePrefixCls = args.prefixCls;
|
|
16194
16194
|
var mergedPrefixCls = getPrefixCls("notification", customizePrefixCls);
|
|
16195
|
-
getNotificationInstance2(_extends$
|
|
16195
|
+
getNotificationInstance2(_extends$Q(_extends$Q({}, args), {
|
|
16196
16196
|
prefixCls: mergedPrefixCls
|
|
16197
16197
|
}), function(_ref3) {
|
|
16198
16198
|
var prefixCls = _ref3.prefixCls, instance2 = _ref3.instance;
|
|
@@ -16204,7 +16204,7 @@ function createUseNotification(getNotificationInstance2, getRCNoticeProps2) {
|
|
|
16204
16204
|
hookApiRef.current.open = notify;
|
|
16205
16205
|
["success", "info", "warning", "error"].forEach(function(type4) {
|
|
16206
16206
|
hookApiRef.current[type4] = function(args) {
|
|
16207
|
-
return hookApiRef.current.open(_extends$
|
|
16207
|
+
return hookApiRef.current.open(_extends$Q(_extends$Q({}, args), {
|
|
16208
16208
|
type: type4
|
|
16209
16209
|
}));
|
|
16210
16210
|
};
|
|
@@ -16454,7 +16454,7 @@ var api = {
|
|
|
16454
16454
|
};
|
|
16455
16455
|
["success", "info", "warning", "error"].forEach(function(type4) {
|
|
16456
16456
|
api[type4] = function(args) {
|
|
16457
|
-
return api.open(_extends$
|
|
16457
|
+
return api.open(_extends$Q(_extends$Q({}, args), {
|
|
16458
16458
|
type: type4
|
|
16459
16459
|
}));
|
|
16460
16460
|
};
|
|
@@ -16617,7 +16617,7 @@ var ProviderChildren = function ProviderChildren2(props) {
|
|
|
16617
16617
|
var mergedPrefixCls = prefixCls || parentContext.getPrefixCls("");
|
|
16618
16618
|
return suffixCls ? "".concat(mergedPrefixCls, "-").concat(suffixCls) : mergedPrefixCls;
|
|
16619
16619
|
}, [parentContext.getPrefixCls, props.prefixCls]);
|
|
16620
|
-
var config2 = _extends$
|
|
16620
|
+
var config2 = _extends$Q(_extends$Q({}, parentContext), {
|
|
16621
16621
|
csp,
|
|
16622
16622
|
autoInsertSpaceInButton,
|
|
16623
16623
|
locale: locale2 || legacyLocale,
|
|
@@ -16654,7 +16654,7 @@ var ProviderChildren = function ProviderChildren2(props) {
|
|
|
16654
16654
|
validateMessages = ((_a2 = locale2.Form) === null || _a2 === void 0 ? void 0 : _a2.defaultValidateMessages) || ((_b = defaultLocale$2.Form) === null || _b === void 0 ? void 0 : _b.defaultValidateMessages) || {};
|
|
16655
16655
|
}
|
|
16656
16656
|
if (form2 && form2.validateMessages) {
|
|
16657
|
-
validateMessages = _extends$
|
|
16657
|
+
validateMessages = _extends$Q(_extends$Q({}, validateMessages), form2.validateMessages);
|
|
16658
16658
|
}
|
|
16659
16659
|
if (Object.keys(validateMessages).length > 0) {
|
|
16660
16660
|
childNode = /* @__PURE__ */ React.createElement(FormProvider, {
|
|
@@ -16699,7 +16699,7 @@ var ConfigProvider = function ConfigProvider2(props) {
|
|
|
16699
16699
|
}, [props.direction]);
|
|
16700
16700
|
return /* @__PURE__ */ React.createElement(LocaleReceiver$1, null, function(_24, __, legacyLocale) {
|
|
16701
16701
|
return /* @__PURE__ */ React.createElement(ConfigConsumer, null, function(context) {
|
|
16702
|
-
return /* @__PURE__ */ React.createElement(ProviderChildren, _extends$
|
|
16702
|
+
return /* @__PURE__ */ React.createElement(ProviderChildren, _extends$Q({
|
|
16703
16703
|
parentContext: context,
|
|
16704
16704
|
legacyLocale
|
|
16705
16705
|
}, props));
|
|
@@ -17104,7 +17104,7 @@ function Mask$1(props) {
|
|
|
17104
17104
|
animation: maskAnimation
|
|
17105
17105
|
}));
|
|
17106
17106
|
}
|
|
17107
|
-
return /* @__PURE__ */ React.createElement(CSSMotion, _extends$
|
|
17107
|
+
return /* @__PURE__ */ React.createElement(CSSMotion, _extends$Q({}, motion, {
|
|
17108
17108
|
visible,
|
|
17109
17109
|
removeOnLeave: true
|
|
17110
17110
|
}), function(_ref3) {
|
|
@@ -18492,7 +18492,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
18492
18492
|
className: "".concat(prefixCls, "-content")
|
|
18493
18493
|
}, children);
|
|
18494
18494
|
}
|
|
18495
|
-
return /* @__PURE__ */ React.createElement(CSSMotion, _extends$
|
|
18495
|
+
return /* @__PURE__ */ React.createElement(CSSMotion, _extends$Q({
|
|
18496
18496
|
visible,
|
|
18497
18497
|
ref: elementRef,
|
|
18498
18498
|
leavedClassName: "".concat(prefixCls, "-hidden")
|
|
@@ -18551,7 +18551,7 @@ var MobilePopupInner = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
18551
18551
|
if (popupRender) {
|
|
18552
18552
|
childNode = popupRender(childNode);
|
|
18553
18553
|
}
|
|
18554
|
-
return /* @__PURE__ */ React.createElement(CSSMotion, _extends$
|
|
18554
|
+
return /* @__PURE__ */ React.createElement(CSSMotion, _extends$Q({
|
|
18555
18555
|
visible,
|
|
18556
18556
|
ref: elementRef,
|
|
18557
18557
|
removeOnLeave: true
|
|
@@ -18569,7 +18569,7 @@ var MobilePopupInner = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
18569
18569
|
MobilePopupInner.displayName = "MobilePopupInner";
|
|
18570
18570
|
var _excluded$7 = ["visible", "mobile"];
|
|
18571
18571
|
var Popup$1 = /* @__PURE__ */ React.forwardRef(function(_ref3, ref) {
|
|
18572
|
-
var visible = _ref3.visible, mobile = _ref3.mobile, props = _objectWithoutProperties$
|
|
18572
|
+
var visible = _ref3.visible, mobile = _ref3.mobile, props = _objectWithoutProperties$w(_ref3, _excluded$7);
|
|
18573
18573
|
var _useState = useState(visible), _useState2 = _slicedToArray$a(_useState, 2), innerVisible = _useState2[0], serInnerVisible = _useState2[1];
|
|
18574
18574
|
var _useState3 = useState(false), _useState4 = _slicedToArray$a(_useState3, 2), inMobile = _useState4[0], setInMobile = _useState4[1];
|
|
18575
18575
|
var cloneProps = _objectSpread2$4(_objectSpread2$4({}, props), {}, {
|
|
@@ -18581,10 +18581,10 @@ var Popup$1 = /* @__PURE__ */ React.forwardRef(function(_ref3, ref) {
|
|
|
18581
18581
|
setInMobile(isMobile());
|
|
18582
18582
|
}
|
|
18583
18583
|
}, [visible, mobile]);
|
|
18584
|
-
var popupNode = inMobile ? /* @__PURE__ */ React.createElement(MobilePopupInner, _extends$
|
|
18584
|
+
var popupNode = inMobile ? /* @__PURE__ */ React.createElement(MobilePopupInner, _extends$Q({}, cloneProps, {
|
|
18585
18585
|
mobile,
|
|
18586
18586
|
ref
|
|
18587
|
-
})) : /* @__PURE__ */ React.createElement(PopupInner, _extends$
|
|
18587
|
+
})) : /* @__PURE__ */ React.createElement(PopupInner, _extends$Q({}, cloneProps, {
|
|
18588
18588
|
ref
|
|
18589
18589
|
}));
|
|
18590
18590
|
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Mask$1, cloneProps), popupNode);
|
|
@@ -18767,7 +18767,7 @@ function generateTrigger(PortalComponent) {
|
|
|
18767
18767
|
}
|
|
18768
18768
|
mouseProps.onMouseDown = _this.onPopupMouseDown;
|
|
18769
18769
|
mouseProps.onTouchStart = _this.onPopupMouseDown;
|
|
18770
|
-
return /* @__PURE__ */ React.createElement(Popup$1, _extends$
|
|
18770
|
+
return /* @__PURE__ */ React.createElement(Popup$1, _extends$Q({
|
|
18771
18771
|
prefixCls,
|
|
18772
18772
|
destroyPopupOnHide,
|
|
18773
18773
|
visible: popupVisible,
|
|
@@ -19178,7 +19178,7 @@ var NoFormStyle = function NoFormStyle2(_ref3) {
|
|
|
19178
19178
|
var children = _ref3.children, status = _ref3.status, override = _ref3.override;
|
|
19179
19179
|
var formItemInputContext = useContext(FormItemInputContext);
|
|
19180
19180
|
var newFormItemInputContext = useMemo$1(function() {
|
|
19181
|
-
var newContext = _extends$
|
|
19181
|
+
var newContext = _extends$Q({}, formItemInputContext);
|
|
19182
19182
|
if (override) {
|
|
19183
19183
|
delete newContext.isFormItemInput;
|
|
19184
19184
|
}
|
|
@@ -19298,7 +19298,7 @@ var responsiveObserve = {
|
|
|
19298
19298
|
var matchMediaQuery = responsiveMap[screen];
|
|
19299
19299
|
var listener = function listener2(_ref3) {
|
|
19300
19300
|
var matches = _ref3.matches;
|
|
19301
|
-
_this2.dispatch(_extends$
|
|
19301
|
+
_this2.dispatch(_extends$Q(_extends$Q({}, screens), _defineProperty$y({}, screen, matches)));
|
|
19302
19302
|
};
|
|
19303
19303
|
var mql = window.matchMedia(matchMediaQuery);
|
|
19304
19304
|
mql.addListener(listener);
|
|
@@ -19406,7 +19406,7 @@ function Popup(props) {
|
|
|
19406
19406
|
}, typeof children === "function" ? children() : children));
|
|
19407
19407
|
}
|
|
19408
19408
|
var Tooltip$4 = function Tooltip(props, ref) {
|
|
19409
|
-
var overlayClassName = props.overlayClassName, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, _props$mouseEnterDela = props.mouseEnterDelay, mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0 : _props$mouseEnterDela, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, overlayStyle = props.overlayStyle, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tooltip" : _props$prefixCls, children = props.children, onVisibleChange = props.onVisibleChange, afterVisibleChange = props.afterVisibleChange, transitionName2 = props.transitionName, animation = props.animation, motion = props.motion, _props$placement = props.placement, placement = _props$placement === void 0 ? "right" : _props$placement, _props$align = props.align, align = _props$align === void 0 ? {} : _props$align, _props$destroyTooltip = props.destroyTooltipOnHide, destroyTooltipOnHide = _props$destroyTooltip === void 0 ? false : _props$destroyTooltip, defaultVisible = props.defaultVisible, getTooltipContainer = props.getTooltipContainer, overlayInnerStyle = props.overlayInnerStyle, arrowContent = props.arrowContent, overlay = props.overlay, id2 = props.id, showArrow = props.showArrow, restProps = _objectWithoutProperties$
|
|
19409
|
+
var overlayClassName = props.overlayClassName, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, _props$mouseEnterDela = props.mouseEnterDelay, mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0 : _props$mouseEnterDela, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, overlayStyle = props.overlayStyle, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tooltip" : _props$prefixCls, children = props.children, onVisibleChange = props.onVisibleChange, afterVisibleChange = props.afterVisibleChange, transitionName2 = props.transitionName, animation = props.animation, motion = props.motion, _props$placement = props.placement, placement = _props$placement === void 0 ? "right" : _props$placement, _props$align = props.align, align = _props$align === void 0 ? {} : _props$align, _props$destroyTooltip = props.destroyTooltipOnHide, destroyTooltipOnHide = _props$destroyTooltip === void 0 ? false : _props$destroyTooltip, defaultVisible = props.defaultVisible, getTooltipContainer = props.getTooltipContainer, overlayInnerStyle = props.overlayInnerStyle, arrowContent = props.arrowContent, overlay = props.overlay, id2 = props.id, showArrow = props.showArrow, restProps = _objectWithoutProperties$w(props, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"]);
|
|
19410
19410
|
var domRef = useRef(null);
|
|
19411
19411
|
useImperativeHandle(ref, function() {
|
|
19412
19412
|
return domRef.current;
|
|
@@ -19434,7 +19434,7 @@ var Tooltip$4 = function Tooltip(props, ref) {
|
|
|
19434
19434
|
destroyTooltip = keepParent === true;
|
|
19435
19435
|
autoDestroy = keepParent === false;
|
|
19436
19436
|
}
|
|
19437
|
-
return /* @__PURE__ */ React.createElement(Trigger, _extends$
|
|
19437
|
+
return /* @__PURE__ */ React.createElement(Trigger, _extends$Q({
|
|
19438
19438
|
popupClassName: overlayClassName,
|
|
19439
19439
|
prefixCls,
|
|
19440
19440
|
popup: getPopupElement,
|
|
@@ -19473,7 +19473,7 @@ function getOverflowOptions(autoAdjustOverflow2) {
|
|
|
19473
19473
|
if (typeof autoAdjustOverflow2 === "boolean") {
|
|
19474
19474
|
return autoAdjustOverflow2 ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;
|
|
19475
19475
|
}
|
|
19476
|
-
return _extends$
|
|
19476
|
+
return _extends$Q(_extends$Q({}, autoAdjustOverflowDisabled), autoAdjustOverflow2);
|
|
19477
19477
|
}
|
|
19478
19478
|
function getPlacements(config2) {
|
|
19479
19479
|
var _config$arrowWidth = config2.arrowWidth, arrowWidth = _config$arrowWidth === void 0 ? 4 : _config$arrowWidth, _config$horizontalArr = config2.horizontalArrowShift, horizontalArrowShift = _config$horizontalArr === void 0 ? 16 : _config$horizontalArr, _config$verticalArrow = config2.verticalArrowShift, verticalArrowShift = _config$verticalArrow === void 0 ? 8 : _config$verticalArrow, autoAdjustOverflow2 = config2.autoAdjustOverflow, arrowPointAtCenter = config2.arrowPointAtCenter;
|
|
@@ -19528,10 +19528,10 @@ function getPlacements(config2) {
|
|
|
19528
19528
|
}
|
|
19529
19529
|
};
|
|
19530
19530
|
Object.keys(placementMap).forEach(function(key2) {
|
|
19531
|
-
placementMap[key2] = arrowPointAtCenter ? _extends$
|
|
19531
|
+
placementMap[key2] = arrowPointAtCenter ? _extends$Q(_extends$Q({}, placementMap[key2]), {
|
|
19532
19532
|
overflow: getOverflowOptions(autoAdjustOverflow2),
|
|
19533
19533
|
targetOffset
|
|
19534
|
-
}) : _extends$
|
|
19534
|
+
}) : _extends$Q(_extends$Q({}, placements[key2]), {
|
|
19535
19535
|
overflow: getOverflowOptions(autoAdjustOverflow2)
|
|
19536
19536
|
});
|
|
19537
19537
|
placementMap[key2].ignoreShake = true;
|
|
@@ -19552,7 +19552,7 @@ var __rest$d = globalThis && globalThis.__rest || function(s2, e3) {
|
|
|
19552
19552
|
};
|
|
19553
19553
|
var splitObject = function splitObject2(obj, keys3) {
|
|
19554
19554
|
var picked = {};
|
|
19555
|
-
var omitted = _extends$
|
|
19555
|
+
var omitted = _extends$Q({}, obj);
|
|
19556
19556
|
keys3.forEach(function(key2) {
|
|
19557
19557
|
if (obj && key2 in obj) {
|
|
19558
19558
|
picked[key2] = obj[key2];
|
|
@@ -19569,13 +19569,13 @@ function getDisabledCompatibleChildren(element, prefixCls) {
|
|
|
19569
19569
|
var elementType = element.type;
|
|
19570
19570
|
if ((elementType.__ANT_BUTTON === true || element.type === "button") && element.props.disabled || elementType.__ANT_SWITCH === true && (element.props.disabled || element.props.loading) || elementType.__ANT_RADIO === true && element.props.disabled) {
|
|
19571
19571
|
var _splitObject = splitObject(element.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), picked = _splitObject.picked, omitted = _splitObject.omitted;
|
|
19572
|
-
var spanStyle = _extends$
|
|
19572
|
+
var spanStyle = _extends$Q(_extends$Q({
|
|
19573
19573
|
display: "inline-block"
|
|
19574
19574
|
}, picked), {
|
|
19575
19575
|
cursor: "not-allowed",
|
|
19576
19576
|
width: element.props.block ? "100%" : void 0
|
|
19577
19577
|
});
|
|
19578
|
-
var buttonStyle = _extends$
|
|
19578
|
+
var buttonStyle = _extends$Q(_extends$Q({}, omitted), {
|
|
19579
19579
|
pointerEvents: "none"
|
|
19580
19580
|
});
|
|
19581
19581
|
var child = cloneElement(element, {
|
|
@@ -19663,14 +19663,14 @@ var Tooltip$2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
19663
19663
|
var formattedOverlayInnerStyle = overlayInnerStyle;
|
|
19664
19664
|
var arrowContentStyle = {};
|
|
19665
19665
|
if (color2 && !PresetColorRegex$1.test(color2)) {
|
|
19666
|
-
formattedOverlayInnerStyle = _extends$
|
|
19666
|
+
formattedOverlayInnerStyle = _extends$Q(_extends$Q({}, overlayInnerStyle), {
|
|
19667
19667
|
background: color2
|
|
19668
19668
|
});
|
|
19669
19669
|
arrowContentStyle = {
|
|
19670
19670
|
"--antd-arrow-background-color": color2
|
|
19671
19671
|
};
|
|
19672
19672
|
}
|
|
19673
|
-
return /* @__PURE__ */ React.createElement(Tooltip$5, _extends$
|
|
19673
|
+
return /* @__PURE__ */ React.createElement(Tooltip$5, _extends$Q({}, otherProps, {
|
|
19674
19674
|
placement,
|
|
19675
19675
|
mouseEnterDelay,
|
|
19676
19676
|
mouseLeaveDelay,
|
|
@@ -19734,7 +19734,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
19734
19734
|
var _React$useContext = React.useContext(ConfigContext), getPrefixCls = _React$useContext.getPrefixCls;
|
|
19735
19735
|
var prefixCls = getPrefixCls("popover", customizePrefixCls);
|
|
19736
19736
|
var rootPrefixCls = getPrefixCls();
|
|
19737
|
-
return /* @__PURE__ */ React.createElement(Tooltip$3, _extends$
|
|
19737
|
+
return /* @__PURE__ */ React.createElement(Tooltip$3, _extends$Q({
|
|
19738
19738
|
placement,
|
|
19739
19739
|
trigger,
|
|
19740
19740
|
mouseEnterDelay,
|
|
@@ -19982,7 +19982,7 @@ var ButtonGroup$1 = function ButtonGroup(props) {
|
|
|
19982
19982
|
var classes = classNames$1(prefixCls, (_classNames = {}, _defineProperty$y(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), _defineProperty$y(_classNames, "".concat(prefixCls, "-rtl"), direction === "rtl"), _classNames), className);
|
|
19983
19983
|
return /* @__PURE__ */ React.createElement(GroupSizeContext.Provider, {
|
|
19984
19984
|
value: size
|
|
19985
|
-
}, /* @__PURE__ */ React.createElement("div", _extends$
|
|
19985
|
+
}, /* @__PURE__ */ React.createElement("div", _extends$Q({}, others, {
|
|
19986
19986
|
className: classes
|
|
19987
19987
|
})));
|
|
19988
19988
|
};
|
|
@@ -20175,13 +20175,13 @@ var InternalButton = function InternalButton2(props, ref) {
|
|
|
20175
20175
|
});
|
|
20176
20176
|
var kids = children || children === 0 ? spaceChildren(children, isNeedInserted() && autoInsertSpace) : null;
|
|
20177
20177
|
if (linkButtonRestProps.href !== void 0) {
|
|
20178
|
-
return /* @__PURE__ */ React.createElement("a", _extends$
|
|
20178
|
+
return /* @__PURE__ */ React.createElement("a", _extends$Q({}, linkButtonRestProps, {
|
|
20179
20179
|
className: classes,
|
|
20180
20180
|
onClick: handleClick,
|
|
20181
20181
|
ref: buttonRef
|
|
20182
20182
|
}), iconNode, kids);
|
|
20183
20183
|
}
|
|
20184
|
-
var buttonNode = /* @__PURE__ */ React.createElement("button", _extends$
|
|
20184
|
+
var buttonNode = /* @__PURE__ */ React.createElement("button", _extends$Q({}, rest, {
|
|
20185
20185
|
type: htmlType,
|
|
20186
20186
|
className: classes,
|
|
20187
20187
|
onClick: handleClick,
|
|
@@ -24316,7 +24316,7 @@ function DecadeHeader(props) {
|
|
|
24316
24316
|
var yearNumber = generateConfig2.getYear(viewDate);
|
|
24317
24317
|
var startYear = Math.floor(yearNumber / DECADE_DISTANCE_COUNT) * DECADE_DISTANCE_COUNT;
|
|
24318
24318
|
var endYear = startYear + DECADE_DISTANCE_COUNT - 1;
|
|
24319
|
-
return /* @__PURE__ */ React.createElement(Header$5, _extends$
|
|
24319
|
+
return /* @__PURE__ */ React.createElement(Header$5, _extends$Q({}, props, {
|
|
24320
24320
|
prefixCls: headerPrefixCls,
|
|
24321
24321
|
onSuperPrev: onPrevDecades,
|
|
24322
24322
|
onSuperNext: onNextDecades
|
|
@@ -24437,7 +24437,7 @@ function DecadeBody(props) {
|
|
|
24437
24437
|
var endDecadeNumber = startDecadeNumber + DECADE_UNIT_DIFF_DES;
|
|
24438
24438
|
return _ref3 = {}, _defineProperty$y(_ref3, "".concat(cellPrefixCls, "-in-view"), startDecadeYear <= startDecadeNumber && endDecadeNumber <= endDecadeYear), _defineProperty$y(_ref3, "".concat(cellPrefixCls, "-selected"), startDecadeNumber === decadeYearNumber), _ref3;
|
|
24439
24439
|
};
|
|
24440
|
-
return /* @__PURE__ */ React.createElement(PanelBody, _extends$
|
|
24440
|
+
return /* @__PURE__ */ React.createElement(PanelBody, _extends$Q({}, props, {
|
|
24441
24441
|
rowNum: DECADE_ROW_COUNT,
|
|
24442
24442
|
colNum: DECADE_COL_COUNT,
|
|
24443
24443
|
baseDate: baseDecadeYear,
|
|
@@ -24675,7 +24675,7 @@ function DecadePanel(props) {
|
|
|
24675
24675
|
};
|
|
24676
24676
|
return /* @__PURE__ */ React.createElement("div", {
|
|
24677
24677
|
className: panelPrefixCls
|
|
24678
|
-
}, /* @__PURE__ */ React.createElement(DecadeHeader, _extends$
|
|
24678
|
+
}, /* @__PURE__ */ React.createElement(DecadeHeader, _extends$Q({}, props, {
|
|
24679
24679
|
prefixCls,
|
|
24680
24680
|
onPrevDecades: function onPrevDecades() {
|
|
24681
24681
|
onDecadesChange(-1);
|
|
@@ -24683,7 +24683,7 @@ function DecadePanel(props) {
|
|
|
24683
24683
|
onNextDecades: function onNextDecades() {
|
|
24684
24684
|
onDecadesChange(1);
|
|
24685
24685
|
}
|
|
24686
|
-
})), /* @__PURE__ */ React.createElement(DecadeBody, _extends$
|
|
24686
|
+
})), /* @__PURE__ */ React.createElement(DecadeBody, _extends$Q({}, props, {
|
|
24687
24687
|
prefixCls,
|
|
24688
24688
|
onSelect: onInternalSelect
|
|
24689
24689
|
})));
|
|
@@ -25175,10 +25175,10 @@ function TimePanel(props) {
|
|
|
25175
25175
|
};
|
|
25176
25176
|
return /* @__PURE__ */ React.createElement("div", {
|
|
25177
25177
|
className: classNames$1(panelPrefixCls, _defineProperty$y({}, "".concat(panelPrefixCls, "-active"), active2))
|
|
25178
|
-
}, /* @__PURE__ */ React.createElement(TimeHeader, _extends$
|
|
25178
|
+
}, /* @__PURE__ */ React.createElement(TimeHeader, _extends$Q({}, props, {
|
|
25179
25179
|
format: format3,
|
|
25180
25180
|
prefixCls
|
|
25181
|
-
})), /* @__PURE__ */ React.createElement(TimeBody, _extends$
|
|
25181
|
+
})), /* @__PURE__ */ React.createElement(TimeBody, _extends$Q({}, props, {
|
|
25182
25182
|
prefixCls,
|
|
25183
25183
|
activeColumnIndex,
|
|
25184
25184
|
operationRef: bodyOperationRef
|
|
@@ -25250,7 +25250,7 @@ function DateBody(props) {
|
|
|
25250
25250
|
var getCellNode = dateRender ? function(date4) {
|
|
25251
25251
|
return dateRender(date4, today);
|
|
25252
25252
|
} : void 0;
|
|
25253
|
-
return /* @__PURE__ */ React.createElement(PanelBody, _extends$
|
|
25253
|
+
return /* @__PURE__ */ React.createElement(PanelBody, _extends$Q({}, props, {
|
|
25254
25254
|
rowNum: rowCount,
|
|
25255
25255
|
colNum: WEEK_DAY_COUNT,
|
|
25256
25256
|
baseDate,
|
|
@@ -25300,7 +25300,7 @@ function DateHeader(props) {
|
|
|
25300
25300
|
generateConfig: generateConfig2
|
|
25301
25301
|
}) : monthsLocale[month2]);
|
|
25302
25302
|
var monthYearNodes = locale2.monthBeforeYear ? [monthNode, yearNode] : [yearNode, monthNode];
|
|
25303
|
-
return /* @__PURE__ */ React.createElement(Header$5, _extends$
|
|
25303
|
+
return /* @__PURE__ */ React.createElement(Header$5, _extends$Q({}, props, {
|
|
25304
25304
|
prefixCls: headerPrefixCls,
|
|
25305
25305
|
onSuperPrev: onPrevYear,
|
|
25306
25306
|
onPrev: onPrevMonth,
|
|
@@ -25342,7 +25342,7 @@ function DatePanel(props) {
|
|
|
25342
25342
|
};
|
|
25343
25343
|
return /* @__PURE__ */ React.createElement("div", {
|
|
25344
25344
|
className: classNames$1(panelPrefixCls, _defineProperty$y({}, "".concat(panelPrefixCls, "-active"), active2))
|
|
25345
|
-
}, /* @__PURE__ */ React.createElement(DateHeader, _extends$
|
|
25345
|
+
}, /* @__PURE__ */ React.createElement(DateHeader, _extends$Q({}, props, {
|
|
25346
25346
|
prefixCls,
|
|
25347
25347
|
value: value2,
|
|
25348
25348
|
viewDate,
|
|
@@ -25364,7 +25364,7 @@ function DatePanel(props) {
|
|
|
25364
25364
|
onYearClick: function onYearClick() {
|
|
25365
25365
|
onPanelChange("year", viewDate);
|
|
25366
25366
|
}
|
|
25367
|
-
})), /* @__PURE__ */ React.createElement(DateBody, _extends$
|
|
25367
|
+
})), /* @__PURE__ */ React.createElement(DateBody, _extends$Q({}, props, {
|
|
25368
25368
|
onSelect: function onSelect(date4) {
|
|
25369
25369
|
return _onSelect(date4, "mouse");
|
|
25370
25370
|
},
|
|
@@ -25437,13 +25437,13 @@ function DatetimePanel(props) {
|
|
|
25437
25437
|
var disabledTimes = disabledTime ? disabledTime(value2 || null) : {};
|
|
25438
25438
|
return /* @__PURE__ */ React.createElement("div", {
|
|
25439
25439
|
className: classNames$1(panelPrefixCls, _defineProperty$y({}, "".concat(panelPrefixCls, "-active"), activePanel))
|
|
25440
|
-
}, /* @__PURE__ */ React.createElement(DatePanel, _extends$
|
|
25440
|
+
}, /* @__PURE__ */ React.createElement(DatePanel, _extends$Q({}, props, {
|
|
25441
25441
|
operationRef: dateOperationRef,
|
|
25442
25442
|
active: activePanel === "date",
|
|
25443
25443
|
onSelect: function onSelect2(date4) {
|
|
25444
25444
|
onInternalSelect(setDateTime(generateConfig2, date4, !value2 && _typeof$r(showTime) === "object" ? showTime.defaultValue : null), "date");
|
|
25445
25445
|
}
|
|
25446
|
-
})), /* @__PURE__ */ React.createElement(TimePanel, _extends$
|
|
25446
|
+
})), /* @__PURE__ */ React.createElement(TimePanel, _extends$Q({}, props, {
|
|
25447
25447
|
format: void 0
|
|
25448
25448
|
}, timeProps, disabledTimes, {
|
|
25449
25449
|
disabledTime: null,
|
|
@@ -25468,7 +25468,7 @@ function WeekPanel(props) {
|
|
|
25468
25468
|
var rowClassName = function rowClassName2(date4) {
|
|
25469
25469
|
return classNames$1(rowPrefixCls, _defineProperty$y({}, "".concat(rowPrefixCls, "-selected"), isSameWeek(generateConfig2, locale2.locale, value2, date4)));
|
|
25470
25470
|
};
|
|
25471
|
-
return /* @__PURE__ */ React.createElement(DatePanel, _extends$
|
|
25471
|
+
return /* @__PURE__ */ React.createElement(DatePanel, _extends$Q({}, props, {
|
|
25472
25472
|
panelName: "week",
|
|
25473
25473
|
prefixColumn,
|
|
25474
25474
|
rowClassName,
|
|
@@ -25484,7 +25484,7 @@ function MonthHeader(props) {
|
|
|
25484
25484
|
return null;
|
|
25485
25485
|
}
|
|
25486
25486
|
var headerPrefixCls = "".concat(prefixCls, "-header");
|
|
25487
|
-
return /* @__PURE__ */ React.createElement(Header$5, _extends$
|
|
25487
|
+
return /* @__PURE__ */ React.createElement(Header$5, _extends$Q({}, props, {
|
|
25488
25488
|
prefixCls: headerPrefixCls,
|
|
25489
25489
|
onSuperPrev: onPrevYear,
|
|
25490
25490
|
onSuperNext: onNextYear
|
|
@@ -25525,7 +25525,7 @@ function MonthBody(props) {
|
|
|
25525
25525
|
var getCellNode = monthCellRender ? function(date4) {
|
|
25526
25526
|
return monthCellRender(date4, locale2);
|
|
25527
25527
|
} : void 0;
|
|
25528
|
-
return /* @__PURE__ */ React.createElement(PanelBody, _extends$
|
|
25528
|
+
return /* @__PURE__ */ React.createElement(PanelBody, _extends$Q({}, props, {
|
|
25529
25529
|
rowNum: MONTH_ROW_COUNT,
|
|
25530
25530
|
colNum: MONTH_COL_COUNT,
|
|
25531
25531
|
baseDate: baseMonth,
|
|
@@ -25576,7 +25576,7 @@ function MonthPanel(props) {
|
|
|
25576
25576
|
};
|
|
25577
25577
|
return /* @__PURE__ */ React.createElement("div", {
|
|
25578
25578
|
className: panelPrefixCls
|
|
25579
|
-
}, /* @__PURE__ */ React.createElement(MonthHeader, _extends$
|
|
25579
|
+
}, /* @__PURE__ */ React.createElement(MonthHeader, _extends$Q({}, props, {
|
|
25580
25580
|
prefixCls,
|
|
25581
25581
|
onPrevYear: function onPrevYear() {
|
|
25582
25582
|
onYearChange(-1);
|
|
@@ -25587,7 +25587,7 @@ function MonthPanel(props) {
|
|
|
25587
25587
|
onYearClick: function onYearClick() {
|
|
25588
25588
|
onPanelChange("year", viewDate);
|
|
25589
25589
|
}
|
|
25590
|
-
})), /* @__PURE__ */ React.createElement(MonthBody, _extends$
|
|
25590
|
+
})), /* @__PURE__ */ React.createElement(MonthBody, _extends$Q({}, props, {
|
|
25591
25591
|
prefixCls,
|
|
25592
25592
|
onSelect: function onSelect(date4) {
|
|
25593
25593
|
_onSelect(date4, "mouse");
|
|
@@ -25602,7 +25602,7 @@ function QuarterHeader(props) {
|
|
|
25602
25602
|
return null;
|
|
25603
25603
|
}
|
|
25604
25604
|
var headerPrefixCls = "".concat(prefixCls, "-header");
|
|
25605
|
-
return /* @__PURE__ */ React.createElement(Header$5, _extends$
|
|
25605
|
+
return /* @__PURE__ */ React.createElement(Header$5, _extends$Q({}, props, {
|
|
25606
25606
|
prefixCls: headerPrefixCls,
|
|
25607
25607
|
onSuperPrev: onPrevYear,
|
|
25608
25608
|
onSuperNext: onNextYear
|
|
@@ -25639,7 +25639,7 @@ function QuarterBody(props) {
|
|
|
25639
25639
|
}
|
|
25640
25640
|
});
|
|
25641
25641
|
var baseQuarter = generateConfig2.setDate(generateConfig2.setMonth(viewDate, 0), 1);
|
|
25642
|
-
return /* @__PURE__ */ React.createElement(PanelBody, _extends$
|
|
25642
|
+
return /* @__PURE__ */ React.createElement(PanelBody, _extends$Q({}, props, {
|
|
25643
25643
|
rowNum: QUARTER_ROW_COUNT,
|
|
25644
25644
|
colNum: QUARTER_COL_COUNT,
|
|
25645
25645
|
baseDate: baseQuarter,
|
|
@@ -25688,7 +25688,7 @@ function QuarterPanel(props) {
|
|
|
25688
25688
|
};
|
|
25689
25689
|
return /* @__PURE__ */ React.createElement("div", {
|
|
25690
25690
|
className: panelPrefixCls
|
|
25691
|
-
}, /* @__PURE__ */ React.createElement(QuarterHeader, _extends$
|
|
25691
|
+
}, /* @__PURE__ */ React.createElement(QuarterHeader, _extends$Q({}, props, {
|
|
25692
25692
|
prefixCls,
|
|
25693
25693
|
onPrevYear: function onPrevYear() {
|
|
25694
25694
|
onYearChange(-1);
|
|
@@ -25699,7 +25699,7 @@ function QuarterPanel(props) {
|
|
|
25699
25699
|
onYearClick: function onYearClick() {
|
|
25700
25700
|
onPanelChange("year", viewDate);
|
|
25701
25701
|
}
|
|
25702
|
-
})), /* @__PURE__ */ React.createElement(QuarterBody, _extends$
|
|
25702
|
+
})), /* @__PURE__ */ React.createElement(QuarterBody, _extends$Q({}, props, {
|
|
25703
25703
|
prefixCls,
|
|
25704
25704
|
onSelect: function onSelect(date4) {
|
|
25705
25705
|
_onSelect(date4, "mouse");
|
|
@@ -25716,7 +25716,7 @@ function YearHeader(props) {
|
|
|
25716
25716
|
var yearNumber = generateConfig2.getYear(viewDate);
|
|
25717
25717
|
var startYear = Math.floor(yearNumber / YEAR_DECADE_COUNT) * YEAR_DECADE_COUNT;
|
|
25718
25718
|
var endYear = startYear + YEAR_DECADE_COUNT - 1;
|
|
25719
|
-
return /* @__PURE__ */ React.createElement(Header$5, _extends$
|
|
25719
|
+
return /* @__PURE__ */ React.createElement(Header$5, _extends$Q({}, props, {
|
|
25720
25720
|
prefixCls: headerPrefixCls,
|
|
25721
25721
|
onSuperPrev: onPrevDecade,
|
|
25722
25722
|
onSuperNext: onNextDecade
|
|
@@ -25754,7 +25754,7 @@ function YearBody(props) {
|
|
|
25754
25754
|
return generateConfig2.addYear(date4, offset3);
|
|
25755
25755
|
}
|
|
25756
25756
|
});
|
|
25757
|
-
return /* @__PURE__ */ React.createElement(PanelBody, _extends$
|
|
25757
|
+
return /* @__PURE__ */ React.createElement(PanelBody, _extends$Q({}, props, {
|
|
25758
25758
|
rowNum: YEAR_ROW_COUNT,
|
|
25759
25759
|
colNum: YEAR_COL_COUNT,
|
|
25760
25760
|
baseDate: baseYear,
|
|
@@ -25799,7 +25799,7 @@ function YearPanel(props) {
|
|
|
25799
25799
|
};
|
|
25800
25800
|
return /* @__PURE__ */ React.createElement("div", {
|
|
25801
25801
|
className: panelPrefixCls
|
|
25802
|
-
}, /* @__PURE__ */ React.createElement(YearHeader, _extends$
|
|
25802
|
+
}, /* @__PURE__ */ React.createElement(YearHeader, _extends$Q({}, props, {
|
|
25803
25803
|
prefixCls,
|
|
25804
25804
|
onPrevDecade: function onPrevDecade() {
|
|
25805
25805
|
onDecadeChange(-1);
|
|
@@ -25810,7 +25810,7 @@ function YearPanel(props) {
|
|
|
25810
25810
|
onDecadeClick: function onDecadeClick() {
|
|
25811
25811
|
onPanelChange("decade", viewDate);
|
|
25812
25812
|
}
|
|
25813
|
-
})), /* @__PURE__ */ React.createElement(YearBody, _extends$
|
|
25813
|
+
})), /* @__PURE__ */ React.createElement(YearBody, _extends$Q({}, props, {
|
|
25814
25814
|
prefixCls,
|
|
25815
25815
|
onSelect: function onSelect(date4) {
|
|
25816
25816
|
onPanelChange(sourceMode === "date" ? "date" : "month", date4);
|
|
@@ -26005,7 +26005,7 @@ function PickerPanel(props) {
|
|
|
26005
26005
|
delete pickerProps.onSelect;
|
|
26006
26006
|
switch (mergedMode) {
|
|
26007
26007
|
case "decade":
|
|
26008
|
-
panelNode = /* @__PURE__ */ React.createElement(DecadePanel, _extends$
|
|
26008
|
+
panelNode = /* @__PURE__ */ React.createElement(DecadePanel, _extends$Q({}, pickerProps, {
|
|
26009
26009
|
onSelect: function onSelect2(date4, type4) {
|
|
26010
26010
|
setViewDate(date4);
|
|
26011
26011
|
triggerSelect(date4, type4);
|
|
@@ -26013,7 +26013,7 @@ function PickerPanel(props) {
|
|
|
26013
26013
|
}));
|
|
26014
26014
|
break;
|
|
26015
26015
|
case "year":
|
|
26016
|
-
panelNode = /* @__PURE__ */ React.createElement(YearPanel, _extends$
|
|
26016
|
+
panelNode = /* @__PURE__ */ React.createElement(YearPanel, _extends$Q({}, pickerProps, {
|
|
26017
26017
|
onSelect: function onSelect2(date4, type4) {
|
|
26018
26018
|
setViewDate(date4);
|
|
26019
26019
|
triggerSelect(date4, type4);
|
|
@@ -26021,7 +26021,7 @@ function PickerPanel(props) {
|
|
|
26021
26021
|
}));
|
|
26022
26022
|
break;
|
|
26023
26023
|
case "month":
|
|
26024
|
-
panelNode = /* @__PURE__ */ React.createElement(MonthPanel, _extends$
|
|
26024
|
+
panelNode = /* @__PURE__ */ React.createElement(MonthPanel, _extends$Q({}, pickerProps, {
|
|
26025
26025
|
onSelect: function onSelect2(date4, type4) {
|
|
26026
26026
|
setViewDate(date4);
|
|
26027
26027
|
triggerSelect(date4, type4);
|
|
@@ -26029,7 +26029,7 @@ function PickerPanel(props) {
|
|
|
26029
26029
|
}));
|
|
26030
26030
|
break;
|
|
26031
26031
|
case "quarter":
|
|
26032
|
-
panelNode = /* @__PURE__ */ React.createElement(QuarterPanel, _extends$
|
|
26032
|
+
panelNode = /* @__PURE__ */ React.createElement(QuarterPanel, _extends$Q({}, pickerProps, {
|
|
26033
26033
|
onSelect: function onSelect2(date4, type4) {
|
|
26034
26034
|
setViewDate(date4);
|
|
26035
26035
|
triggerSelect(date4, type4);
|
|
@@ -26037,7 +26037,7 @@ function PickerPanel(props) {
|
|
|
26037
26037
|
}));
|
|
26038
26038
|
break;
|
|
26039
26039
|
case "week":
|
|
26040
|
-
panelNode = /* @__PURE__ */ React.createElement(WeekPanel, _extends$
|
|
26040
|
+
panelNode = /* @__PURE__ */ React.createElement(WeekPanel, _extends$Q({}, pickerProps, {
|
|
26041
26041
|
onSelect: function onSelect2(date4, type4) {
|
|
26042
26042
|
setViewDate(date4);
|
|
26043
26043
|
triggerSelect(date4, type4);
|
|
@@ -26046,7 +26046,7 @@ function PickerPanel(props) {
|
|
|
26046
26046
|
break;
|
|
26047
26047
|
case "time":
|
|
26048
26048
|
delete pickerProps.showTime;
|
|
26049
|
-
panelNode = /* @__PURE__ */ React.createElement(TimePanel, _extends$
|
|
26049
|
+
panelNode = /* @__PURE__ */ React.createElement(TimePanel, _extends$Q({}, pickerProps, _typeof$r(showTime) === "object" ? showTime : null, {
|
|
26050
26050
|
onSelect: function onSelect2(date4, type4) {
|
|
26051
26051
|
setViewDate(date4);
|
|
26052
26052
|
triggerSelect(date4, type4);
|
|
@@ -26055,14 +26055,14 @@ function PickerPanel(props) {
|
|
|
26055
26055
|
break;
|
|
26056
26056
|
default:
|
|
26057
26057
|
if (showTime) {
|
|
26058
|
-
panelNode = /* @__PURE__ */ React.createElement(DatetimePanel, _extends$
|
|
26058
|
+
panelNode = /* @__PURE__ */ React.createElement(DatetimePanel, _extends$Q({}, pickerProps, {
|
|
26059
26059
|
onSelect: function onSelect2(date4, type4) {
|
|
26060
26060
|
setViewDate(date4);
|
|
26061
26061
|
triggerSelect(date4, type4);
|
|
26062
26062
|
}
|
|
26063
26063
|
}));
|
|
26064
26064
|
} else {
|
|
26065
|
-
panelNode = /* @__PURE__ */ React.createElement(DatePanel, _extends$
|
|
26065
|
+
panelNode = /* @__PURE__ */ React.createElement(DatePanel, _extends$Q({}, pickerProps, {
|
|
26066
26066
|
onSelect: function onSelect2(date4, type4) {
|
|
26067
26067
|
setViewDate(date4);
|
|
26068
26068
|
triggerSelect(date4, type4);
|
|
@@ -26594,7 +26594,7 @@ function InnerPicker(props) {
|
|
|
26594
26594
|
onPickerValueChange: void 0,
|
|
26595
26595
|
onChange: null
|
|
26596
26596
|
});
|
|
26597
|
-
var panelNode = /* @__PURE__ */ React.createElement(PickerPanel, _extends$
|
|
26597
|
+
var panelNode = /* @__PURE__ */ React.createElement(PickerPanel, _extends$Q({}, panelProps, {
|
|
26598
26598
|
generateConfig: generateConfig2,
|
|
26599
26599
|
className: classNames$1(_defineProperty$y({}, "".concat(prefixCls, "-panel-focused"), !typing)),
|
|
26600
26600
|
value: selectedValue,
|
|
@@ -26734,7 +26734,7 @@ var Picker = /* @__PURE__ */ function(_React$Component) {
|
|
|
26734
26734
|
_createClass$p(Picker2, [{
|
|
26735
26735
|
key: "render",
|
|
26736
26736
|
value: function render2() {
|
|
26737
|
-
return /* @__PURE__ */ React.createElement(InnerPicker, _extends$
|
|
26737
|
+
return /* @__PURE__ */ React.createElement(InnerPicker, _extends$Q({}, this.props, {
|
|
26738
26738
|
pickerRef: this.pickerRef
|
|
26739
26739
|
}));
|
|
26740
26740
|
}
|
|
@@ -27304,7 +27304,7 @@ function InnerRangePicker(props) {
|
|
|
27304
27304
|
rangedValue: rangeHoverValue || selectedValue,
|
|
27305
27305
|
hoverRangedValue: panelHoverRangedValue
|
|
27306
27306
|
}
|
|
27307
|
-
}, /* @__PURE__ */ React.createElement(PickerPanel, _extends$
|
|
27307
|
+
}, /* @__PURE__ */ React.createElement(PickerPanel, _extends$Q({}, props, panelProps, {
|
|
27308
27308
|
dateRender: panelDateRender,
|
|
27309
27309
|
showTime: panelShowTime,
|
|
27310
27310
|
mode: mergedModes[mergedActivePickerIndex],
|
|
@@ -27512,7 +27512,7 @@ function InnerRangePicker(props) {
|
|
|
27512
27512
|
transitionName: transitionName2,
|
|
27513
27513
|
range: true,
|
|
27514
27514
|
direction
|
|
27515
|
-
}, /* @__PURE__ */ React.createElement("div", _extends$
|
|
27515
|
+
}, /* @__PURE__ */ React.createElement("div", _extends$Q({
|
|
27516
27516
|
ref: containerRef,
|
|
27517
27517
|
className: classNames$1(prefixCls, "".concat(prefixCls, "-range"), className, (_classNames2 = {}, _defineProperty$y(_classNames2, "".concat(prefixCls, "-disabled"), mergedDisabled[0] && mergedDisabled[1]), _defineProperty$y(_classNames2, "".concat(prefixCls, "-focused"), mergedActivePickerIndex === 0 ? startFocused : endFocused), _defineProperty$y(_classNames2, "".concat(prefixCls, "-rtl"), direction === "rtl"), _classNames2)),
|
|
27518
27518
|
style: style2,
|
|
@@ -27524,7 +27524,7 @@ function InnerRangePicker(props) {
|
|
|
27524
27524
|
}, getDataOrAriaProps(props)), /* @__PURE__ */ React.createElement("div", {
|
|
27525
27525
|
className: classNames$1("".concat(prefixCls, "-input"), (_classNames3 = {}, _defineProperty$y(_classNames3, "".concat(prefixCls, "-input-active"), mergedActivePickerIndex === 0), _defineProperty$y(_classNames3, "".concat(prefixCls, "-input-placeholder"), !!startHoverValue), _classNames3)),
|
|
27526
27526
|
ref: startInputDivRef
|
|
27527
|
-
}, /* @__PURE__ */ React.createElement("input", _extends$
|
|
27527
|
+
}, /* @__PURE__ */ React.createElement("input", _extends$Q({
|
|
27528
27528
|
id: id2,
|
|
27529
27529
|
disabled: mergedDisabled[0],
|
|
27530
27530
|
readOnly: inputReadOnly || typeof formatList[0] === "function" || !startTyping,
|
|
@@ -27543,7 +27543,7 @@ function InnerRangePicker(props) {
|
|
|
27543
27543
|
}, separator), /* @__PURE__ */ React.createElement("div", {
|
|
27544
27544
|
className: classNames$1("".concat(prefixCls, "-input"), (_classNames4 = {}, _defineProperty$y(_classNames4, "".concat(prefixCls, "-input-active"), mergedActivePickerIndex === 1), _defineProperty$y(_classNames4, "".concat(prefixCls, "-input-placeholder"), !!endHoverValue), _classNames4)),
|
|
27545
27545
|
ref: endInputDivRef
|
|
27546
|
-
}, /* @__PURE__ */ React.createElement("input", _extends$
|
|
27546
|
+
}, /* @__PURE__ */ React.createElement("input", _extends$Q({
|
|
27547
27547
|
disabled: mergedDisabled[1],
|
|
27548
27548
|
readOnly: inputReadOnly || typeof formatList[0] === "function" || !endTyping,
|
|
27549
27549
|
value: endHoverValue || endText,
|
|
@@ -27588,7 +27588,7 @@ var RangePicker$1 = /* @__PURE__ */ function(_React$Component) {
|
|
|
27588
27588
|
_createClass$p(RangePicker2, [{
|
|
27589
27589
|
key: "render",
|
|
27590
27590
|
value: function render2() {
|
|
27591
|
-
return /* @__PURE__ */ React.createElement(InnerRangePicker, _extends$
|
|
27591
|
+
return /* @__PURE__ */ React.createElement(InnerRangePicker, _extends$Q({}, this.props, {
|
|
27592
27592
|
pickerRef: this.pickerRef
|
|
27593
27593
|
}));
|
|
27594
27594
|
}
|
|
@@ -27654,7 +27654,7 @@ var Checkbox = /* @__PURE__ */ function(_Component) {
|
|
|
27654
27654
|
key: "render",
|
|
27655
27655
|
value: function render2() {
|
|
27656
27656
|
var _classNames;
|
|
27657
|
-
var _this$props2 = this.props, prefixCls = _this$props2.prefixCls, className = _this$props2.className, style2 = _this$props2.style, name = _this$props2.name, id2 = _this$props2.id, type4 = _this$props2.type, disabled2 = _this$props2.disabled, readOnly2 = _this$props2.readOnly, tabIndex = _this$props2.tabIndex, onClick = _this$props2.onClick, onFocus3 = _this$props2.onFocus, onBlur2 = _this$props2.onBlur, onKeyDown2 = _this$props2.onKeyDown, onKeyPress2 = _this$props2.onKeyPress, onKeyUp2 = _this$props2.onKeyUp, autoFocus = _this$props2.autoFocus, value2 = _this$props2.value, required4 = _this$props2.required, others = _objectWithoutProperties$
|
|
27657
|
+
var _this$props2 = this.props, prefixCls = _this$props2.prefixCls, className = _this$props2.className, style2 = _this$props2.style, name = _this$props2.name, id2 = _this$props2.id, type4 = _this$props2.type, disabled2 = _this$props2.disabled, readOnly2 = _this$props2.readOnly, tabIndex = _this$props2.tabIndex, onClick = _this$props2.onClick, onFocus3 = _this$props2.onFocus, onBlur2 = _this$props2.onBlur, onKeyDown2 = _this$props2.onKeyDown, onKeyPress2 = _this$props2.onKeyPress, onKeyUp2 = _this$props2.onKeyUp, autoFocus = _this$props2.autoFocus, value2 = _this$props2.value, required4 = _this$props2.required, others = _objectWithoutProperties$w(_this$props2, ["prefixCls", "className", "style", "name", "id", "type", "disabled", "readOnly", "tabIndex", "onClick", "onFocus", "onBlur", "onKeyDown", "onKeyPress", "onKeyUp", "autoFocus", "value", "required"]);
|
|
27658
27658
|
var globalProps = Object.keys(others).reduce(function(prev2, key2) {
|
|
27659
27659
|
if (key2.substr(0, 5) === "aria-" || key2.substr(0, 5) === "data-" || key2 === "role") {
|
|
27660
27660
|
prev2[key2] = others[key2];
|
|
@@ -27666,7 +27666,7 @@ var Checkbox = /* @__PURE__ */ function(_Component) {
|
|
|
27666
27666
|
return /* @__PURE__ */ React__default.createElement("span", {
|
|
27667
27667
|
className: classString,
|
|
27668
27668
|
style: style2
|
|
27669
|
-
}, /* @__PURE__ */ React__default.createElement("input", _extends$
|
|
27669
|
+
}, /* @__PURE__ */ React__default.createElement("input", _extends$Q({
|
|
27670
27670
|
name,
|
|
27671
27671
|
id: id2,
|
|
27672
27672
|
type: type4,
|
|
@@ -27750,7 +27750,7 @@ var InternalRadio = function InternalRadio2(props, ref) {
|
|
|
27750
27750
|
var customizePrefixCls = props.prefixCls, className = props.className, children = props.children, style2 = props.style, customDisabled = props.disabled, restProps = __rest$9(props, ["prefixCls", "className", "children", "style", "disabled"]);
|
|
27751
27751
|
var radioPrefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
27752
27752
|
var prefixCls = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === "button" ? "".concat(radioPrefixCls, "-button") : radioPrefixCls;
|
|
27753
|
-
var radioProps = _extends$
|
|
27753
|
+
var radioProps = _extends$Q({}, restProps);
|
|
27754
27754
|
var disabled2 = React.useContext(DisabledContext$1);
|
|
27755
27755
|
radioProps.disabled = customDisabled || disabled2;
|
|
27756
27756
|
if (groupContext) {
|
|
@@ -27765,7 +27765,7 @@ var InternalRadio = function InternalRadio2(props, ref) {
|
|
|
27765
27765
|
style: style2,
|
|
27766
27766
|
onMouseEnter: props.onMouseEnter,
|
|
27767
27767
|
onMouseLeave: props.onMouseLeave
|
|
27768
|
-
}, /* @__PURE__ */ React.createElement(Checkbox, _extends$
|
|
27768
|
+
}, /* @__PURE__ */ React.createElement(Checkbox, _extends$Q({}, radioProps, {
|
|
27769
27769
|
type: "radio",
|
|
27770
27770
|
prefixCls,
|
|
27771
27771
|
ref: mergedRef
|
|
@@ -27818,7 +27818,7 @@ var RadioGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
27818
27818
|
}
|
|
27819
27819
|
var mergedSize = customizeSize || size;
|
|
27820
27820
|
var classString = classNames$1(groupPrefixCls, "".concat(groupPrefixCls, "-").concat(buttonStyle), (_classNames = {}, _defineProperty$y(_classNames, "".concat(groupPrefixCls, "-").concat(mergedSize), mergedSize), _defineProperty$y(_classNames, "".concat(groupPrefixCls, "-rtl"), direction === "rtl"), _classNames), className);
|
|
27821
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
27821
|
+
return /* @__PURE__ */ React.createElement("div", _extends$Q({}, getDataOrAriaProps$1(props), {
|
|
27822
27822
|
className: classString,
|
|
27823
27823
|
style: style2,
|
|
27824
27824
|
onMouseEnter,
|
|
@@ -27856,7 +27856,7 @@ var RadioButton$1 = function RadioButton(props, ref) {
|
|
|
27856
27856
|
var prefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
27857
27857
|
return /* @__PURE__ */ React.createElement(RadioOptionTypeContextProvider, {
|
|
27858
27858
|
value: "button"
|
|
27859
|
-
}, /* @__PURE__ */ React.createElement(InternalRadio$1, _extends$
|
|
27859
|
+
}, /* @__PURE__ */ React.createElement(InternalRadio$1, _extends$Q({
|
|
27860
27860
|
prefixCls
|
|
27861
27861
|
}, radioProps, {
|
|
27862
27862
|
type: "radio",
|
|
@@ -28000,7 +28000,7 @@ var Col = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
28000
28000
|
sizeProps = propSize || {};
|
|
28001
28001
|
}
|
|
28002
28002
|
delete others[size];
|
|
28003
|
-
sizeClassObj = _extends$
|
|
28003
|
+
sizeClassObj = _extends$Q(_extends$Q({}, sizeClassObj), (_extends2 = {}, _defineProperty$y(_extends2, "".concat(prefixCls, "-").concat(size, "-").concat(sizeProps.span), sizeProps.span !== void 0), _defineProperty$y(_extends2, "".concat(prefixCls, "-").concat(size, "-order-").concat(sizeProps.order), sizeProps.order || sizeProps.order === 0), _defineProperty$y(_extends2, "".concat(prefixCls, "-").concat(size, "-offset-").concat(sizeProps.offset), sizeProps.offset || sizeProps.offset === 0), _defineProperty$y(_extends2, "".concat(prefixCls, "-").concat(size, "-push-").concat(sizeProps.push), sizeProps.push || sizeProps.push === 0), _defineProperty$y(_extends2, "".concat(prefixCls, "-").concat(size, "-pull-").concat(sizeProps.pull), sizeProps.pull || sizeProps.pull === 0), _defineProperty$y(_extends2, "".concat(prefixCls, "-rtl"), direction === "rtl"), _extends2));
|
|
28004
28004
|
});
|
|
28005
28005
|
var classes = classNames$1(prefixCls, (_classNames = {}, _defineProperty$y(_classNames, "".concat(prefixCls, "-").concat(span), span !== void 0), _defineProperty$y(_classNames, "".concat(prefixCls, "-order-").concat(order), order), _defineProperty$y(_classNames, "".concat(prefixCls, "-offset-").concat(offset3), offset3), _defineProperty$y(_classNames, "".concat(prefixCls, "-push-").concat(push2), push2), _defineProperty$y(_classNames, "".concat(prefixCls, "-pull-").concat(pull), pull), _classNames), className, sizeClassObj);
|
|
28006
28006
|
var mergedStyle = {};
|
|
@@ -28020,8 +28020,8 @@ var Col = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
28020
28020
|
mergedStyle.minWidth = 0;
|
|
28021
28021
|
}
|
|
28022
28022
|
}
|
|
28023
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
28024
|
-
style: _extends$
|
|
28023
|
+
return /* @__PURE__ */ React.createElement("div", _extends$Q({}, others, {
|
|
28024
|
+
style: _extends$Q(_extends$Q({}, mergedStyle), style2),
|
|
28025
28025
|
className: classes,
|
|
28026
28026
|
ref
|
|
28027
28027
|
}), children);
|
|
@@ -28147,15 +28147,15 @@ var Row = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
28147
28147
|
}, [gutterH, gutterV, wrap2, supportFlexGap]);
|
|
28148
28148
|
return /* @__PURE__ */ React.createElement(RowContext$1.Provider, {
|
|
28149
28149
|
value: rowContext
|
|
28150
|
-
}, /* @__PURE__ */ React.createElement("div", _extends$
|
|
28150
|
+
}, /* @__PURE__ */ React.createElement("div", _extends$Q({}, others, {
|
|
28151
28151
|
className: classes,
|
|
28152
|
-
style: _extends$
|
|
28152
|
+
style: _extends$Q(_extends$Q({}, rowStyle), style2),
|
|
28153
28153
|
ref
|
|
28154
28154
|
}), children));
|
|
28155
28155
|
});
|
|
28156
28156
|
var Row$1 = Row;
|
|
28157
28157
|
function PickerButton(props) {
|
|
28158
|
-
return /* @__PURE__ */ React.createElement(Button$2, _extends$
|
|
28158
|
+
return /* @__PURE__ */ React.createElement(Button$2, _extends$Q({
|
|
28159
28159
|
size: "small",
|
|
28160
28160
|
type: "primary"
|
|
28161
28161
|
}, props));
|
|
@@ -28182,7 +28182,7 @@ var CheckableTag = function CheckableTag2(_a2) {
|
|
|
28182
28182
|
};
|
|
28183
28183
|
var prefixCls = getPrefixCls("tag", customizePrefixCls);
|
|
28184
28184
|
var cls = classNames$1(prefixCls, (_classNames = {}, _defineProperty$y(_classNames, "".concat(prefixCls, "-checkable"), true), _defineProperty$y(_classNames, "".concat(prefixCls, "-checkable-checked"), checked), _classNames), className);
|
|
28185
|
-
return /* @__PURE__ */ React.createElement("span", _extends$
|
|
28185
|
+
return /* @__PURE__ */ React.createElement("span", _extends$Q({}, restProps, {
|
|
28186
28186
|
className: cls,
|
|
28187
28187
|
onClick: handleClick
|
|
28188
28188
|
}));
|
|
@@ -28218,7 +28218,7 @@ var InternalTag = function InternalTag2(_a2, ref) {
|
|
|
28218
28218
|
}
|
|
28219
28219
|
return PresetColorRegex.test(color2) || PresetStatusColorRegex.test(color2);
|
|
28220
28220
|
};
|
|
28221
|
-
var tagStyle = _extends$
|
|
28221
|
+
var tagStyle = _extends$Q({
|
|
28222
28222
|
backgroundColor: color2 && !isPresetColor() ? color2 : void 0
|
|
28223
28223
|
}, style2);
|
|
28224
28224
|
var presetColor = isPresetColor();
|
|
@@ -28250,7 +28250,7 @@ var InternalTag = function InternalTag2(_a2, ref) {
|
|
|
28250
28250
|
var tagProps = omit(props, ["visible"]);
|
|
28251
28251
|
var iconNode = icon2 || null;
|
|
28252
28252
|
var kids = iconNode ? /* @__PURE__ */ React.createElement(React.Fragment, null, iconNode, /* @__PURE__ */ React.createElement("span", null, children)) : children;
|
|
28253
|
-
var tagNode = /* @__PURE__ */ React.createElement("span", _extends$
|
|
28253
|
+
var tagNode = /* @__PURE__ */ React.createElement("span", _extends$Q({}, tagProps, {
|
|
28254
28254
|
ref,
|
|
28255
28255
|
className: tagClassName,
|
|
28256
28256
|
style: tagStyle
|
|
@@ -28261,7 +28261,7 @@ var Tag$2 = /* @__PURE__ */ React.forwardRef(InternalTag);
|
|
|
28261
28261
|
Tag$2.CheckableTag = CheckableTag$1;
|
|
28262
28262
|
var Tag$3 = Tag$2;
|
|
28263
28263
|
function PickerTag(props) {
|
|
28264
|
-
return /* @__PURE__ */ React.createElement(Tag$3, _extends$
|
|
28264
|
+
return /* @__PURE__ */ React.createElement(Tag$3, _extends$Q({
|
|
28265
28265
|
color: "blue"
|
|
28266
28266
|
}, props));
|
|
28267
28267
|
}
|
|
@@ -28402,10 +28402,10 @@ function generateRangePicker(generateConfig2) {
|
|
|
28402
28402
|
var format3 = props.format, showTime = props.showTime, picker2 = props.picker;
|
|
28403
28403
|
var rootPrefixCls = getPrefixCls();
|
|
28404
28404
|
var additionalOverrideProps = {};
|
|
28405
|
-
additionalOverrideProps = _extends$
|
|
28405
|
+
additionalOverrideProps = _extends$Q(_extends$Q(_extends$Q({}, additionalOverrideProps), showTime ? getTimeProps(_extends$Q({
|
|
28406
28406
|
format: format3,
|
|
28407
28407
|
picker: picker2
|
|
28408
|
-
}, showTime)) : {}), picker2 === "time" ? getTimeProps(_extends$
|
|
28408
|
+
}, showTime)) : {}), picker2 === "time" ? getTimeProps(_extends$Q(_extends$Q({
|
|
28409
28409
|
format: format3
|
|
28410
28410
|
}, props), {
|
|
28411
28411
|
picker: picker2
|
|
@@ -28434,8 +28434,8 @@ function generateRangePicker(generateConfig2) {
|
|
|
28434
28434
|
defaultLocale: enUS
|
|
28435
28435
|
}, function(contextLocale) {
|
|
28436
28436
|
var _classNames;
|
|
28437
|
-
var locale2 = _extends$
|
|
28438
|
-
return /* @__PURE__ */ React.createElement(RangePicker$1, _extends$
|
|
28437
|
+
var locale2 = _extends$Q(_extends$Q({}, contextLocale), props.locale);
|
|
28438
|
+
return /* @__PURE__ */ React.createElement(RangePicker$1, _extends$Q({
|
|
28439
28439
|
separator: /* @__PURE__ */ React.createElement("span", {
|
|
28440
28440
|
"aria-label": "to",
|
|
28441
28441
|
className: "".concat(prefixCls, "-separator")
|
|
@@ -28515,10 +28515,10 @@ function generatePicker$1(generateConfig2) {
|
|
|
28515
28515
|
additionalOverrideProps.picker = picker2;
|
|
28516
28516
|
}
|
|
28517
28517
|
var mergedPicker = picker2 || props.picker;
|
|
28518
|
-
additionalOverrideProps = _extends$
|
|
28518
|
+
additionalOverrideProps = _extends$Q(_extends$Q(_extends$Q({}, additionalOverrideProps), showTime ? getTimeProps(_extends$Q({
|
|
28519
28519
|
format: format3,
|
|
28520
28520
|
picker: mergedPicker
|
|
28521
|
-
}, showTime)) : {}), mergedPicker === "time" ? getTimeProps(_extends$
|
|
28521
|
+
}, showTime)) : {}), mergedPicker === "time" ? getTimeProps(_extends$Q(_extends$Q({
|
|
28522
28522
|
format: format3
|
|
28523
28523
|
}, props), {
|
|
28524
28524
|
picker: mergedPicker
|
|
@@ -28536,8 +28536,8 @@ function generatePicker$1(generateConfig2) {
|
|
|
28536
28536
|
defaultLocale: enUS
|
|
28537
28537
|
}, function(contextLocale) {
|
|
28538
28538
|
var _classNames;
|
|
28539
|
-
var locale2 = _extends$
|
|
28540
|
-
return /* @__PURE__ */ React.createElement(Picker, _extends$
|
|
28539
|
+
var locale2 = _extends$Q(_extends$Q({}, contextLocale), props.locale);
|
|
28540
|
+
return /* @__PURE__ */ React.createElement(Picker, _extends$Q({
|
|
28541
28541
|
ref: innerRef,
|
|
28542
28542
|
placeholder: getPlaceholder(mergedPicker, locale2, placeholder),
|
|
28543
28543
|
suffixIcon: suffixNode,
|
|
@@ -28603,7 +28603,7 @@ function toArray$2(list) {
|
|
|
28603
28603
|
function getTimeProps(props) {
|
|
28604
28604
|
var format3 = props.format, picker2 = props.picker, showHour = props.showHour, showMinute = props.showMinute, showSecond = props.showSecond, use12Hours = props.use12Hours;
|
|
28605
28605
|
var firstFormat = toArray$2(format3)[0];
|
|
28606
|
-
var showTimeObj = _extends$
|
|
28606
|
+
var showTimeObj = _extends$Q({}, props);
|
|
28607
28607
|
if (firstFormat && typeof firstFormat === "string") {
|
|
28608
28608
|
if (!firstFormat.includes("s") && showSecond === void 0) {
|
|
28609
28609
|
showTimeObj.showSecond = false;
|
|
@@ -28844,7 +28844,7 @@ function Mask(props) {
|
|
|
28844
28844
|
leavedClassName: "".concat(prefixCls, "-mask-hidden")
|
|
28845
28845
|
}, function(_ref3, ref) {
|
|
28846
28846
|
var motionClassName = _ref3.className, motionStyle = _ref3.style;
|
|
28847
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
28847
|
+
return /* @__PURE__ */ React.createElement("div", _extends$Q({
|
|
28848
28848
|
ref,
|
|
28849
28849
|
style: _objectSpread2$4(_objectSpread2$4({}, motionStyle), style2),
|
|
28850
28850
|
className: classNames$1("".concat(prefixCls, "-mask"), motionClassName)
|
|
@@ -28950,7 +28950,7 @@ var Panel = /* @__PURE__ */ React__default.forwardRef(function(props, ref) {
|
|
|
28950
28950
|
}
|
|
28951
28951
|
var content2 = /* @__PURE__ */ React__default.createElement("div", {
|
|
28952
28952
|
className: "".concat(prefixCls, "-content")
|
|
28953
|
-
}, closer, headerNode, /* @__PURE__ */ React__default.createElement("div", _extends$
|
|
28953
|
+
}, closer, headerNode, /* @__PURE__ */ React__default.createElement("div", _extends$Q({
|
|
28954
28954
|
className: "".concat(prefixCls, "-body"),
|
|
28955
28955
|
style: bodyStyle
|
|
28956
28956
|
}, bodyProps), children), footerNode);
|
|
@@ -29001,7 +29001,7 @@ var Content = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
29001
29001
|
ref: dialogRef
|
|
29002
29002
|
}, function(_ref3, motionRef) {
|
|
29003
29003
|
var motionClassName = _ref3.className, motionStyle = _ref3.style;
|
|
29004
|
-
return /* @__PURE__ */ React.createElement(Panel, _extends$
|
|
29004
|
+
return /* @__PURE__ */ React.createElement(Panel, _extends$Q({}, props, {
|
|
29005
29005
|
ref,
|
|
29006
29006
|
title: title2,
|
|
29007
29007
|
ariaId,
|
|
@@ -29097,7 +29097,7 @@ function Dialog(props) {
|
|
|
29097
29097
|
clearTimeout(contentTimeoutRef.current);
|
|
29098
29098
|
};
|
|
29099
29099
|
}, []);
|
|
29100
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
|
29100
|
+
return /* @__PURE__ */ React.createElement("div", _extends$Q({
|
|
29101
29101
|
className: classNames$1("".concat(prefixCls, "-root"), rootClassName)
|
|
29102
29102
|
}, pickAttrs(props, {
|
|
29103
29103
|
data: true
|
|
@@ -29109,7 +29109,7 @@ function Dialog(props) {
|
|
|
29109
29109
|
zIndex
|
|
29110
29110
|
}, maskStyle),
|
|
29111
29111
|
maskProps
|
|
29112
|
-
}), /* @__PURE__ */ React.createElement("div", _extends$
|
|
29112
|
+
}), /* @__PURE__ */ React.createElement("div", _extends$Q({
|
|
29113
29113
|
tabIndex: -1,
|
|
29114
29114
|
onKeyDown: onWrapperKeyDown,
|
|
29115
29115
|
className: classNames$1("".concat(prefixCls, "-wrap"), wrapClassName),
|
|
@@ -29120,7 +29120,7 @@ function Dialog(props) {
|
|
|
29120
29120
|
}, wrapStyle), {}, {
|
|
29121
29121
|
display: !animatedVisible ? "none" : null
|
|
29122
29122
|
})
|
|
29123
|
-
}, wrapProps), /* @__PURE__ */ React.createElement(Content, _extends$
|
|
29123
|
+
}, wrapProps), /* @__PURE__ */ React.createElement(Content, _extends$Q({}, props, {
|
|
29124
29124
|
onMouseDown: onContentMouseDown,
|
|
29125
29125
|
onMouseUp: onContentMouseUp,
|
|
29126
29126
|
ref: contentRef,
|
|
@@ -29149,7 +29149,7 @@ var DialogWrap = function DialogWrap2(props) {
|
|
|
29149
29149
|
autoDestroy: false,
|
|
29150
29150
|
getContainer: getContainer2,
|
|
29151
29151
|
autoLock: visible || animatedVisible
|
|
29152
|
-
}, /* @__PURE__ */ React.createElement(Dialog, _extends$
|
|
29152
|
+
}, /* @__PURE__ */ React.createElement(Dialog, _extends$Q({}, props, {
|
|
29153
29153
|
destroyOnClose,
|
|
29154
29154
|
afterClose: function afterClose() {
|
|
29155
29155
|
_afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
|
|
@@ -29229,7 +29229,7 @@ var ActionButton = function ActionButton2(props) {
|
|
|
29229
29229
|
handlePromiseOnOk(returnValueOfOnOk);
|
|
29230
29230
|
};
|
|
29231
29231
|
var type4 = props.type, children = props.children, prefixCls = props.prefixCls, buttonProps = props.buttonProps;
|
|
29232
|
-
return /* @__PURE__ */ React.createElement(Button$2, _extends$
|
|
29232
|
+
return /* @__PURE__ */ React.createElement(Button$2, _extends$Q({}, convertLegacyProps(type4), {
|
|
29233
29233
|
onClick,
|
|
29234
29234
|
loading,
|
|
29235
29235
|
prefixCls
|
|
@@ -29283,9 +29283,9 @@ var Modal$2 = function Modal(props) {
|
|
|
29283
29283
|
defaultLocale: getConfirmLocale()
|
|
29284
29284
|
}, function(contextLocale) {
|
|
29285
29285
|
var okText = props.okText, _props$okType = props.okType, okType = _props$okType === void 0 ? "primary" : _props$okType, cancelText = props.cancelText, _props$confirmLoading = props.confirmLoading, confirmLoading = _props$confirmLoading === void 0 ? false : _props$confirmLoading;
|
|
29286
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Button$2, _extends$
|
|
29286
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Button$2, _extends$Q({
|
|
29287
29287
|
onClick: handleCancel
|
|
29288
|
-
}, props.cancelButtonProps), cancelText || contextLocale.cancelText), /* @__PURE__ */ React.createElement(Button$2, _extends$
|
|
29288
|
+
}, props.cancelButtonProps), cancelText || contextLocale.cancelText), /* @__PURE__ */ React.createElement(Button$2, _extends$Q({}, convertLegacyProps(okType), {
|
|
29289
29289
|
loading: confirmLoading,
|
|
29290
29290
|
onClick: handleOk
|
|
29291
29291
|
}, props.okButtonProps), okText !== null && okText !== void 0 ? okText : contextLocale.okText));
|
|
@@ -29299,7 +29299,7 @@ var Modal$2 = function Modal(props) {
|
|
|
29299
29299
|
return /* @__PURE__ */ React.createElement(NoCompactStyle, null, /* @__PURE__ */ React.createElement(NoFormStyle, {
|
|
29300
29300
|
status: true,
|
|
29301
29301
|
override: true
|
|
29302
|
-
}, /* @__PURE__ */ React.createElement(DialogWrap, _extends$
|
|
29302
|
+
}, /* @__PURE__ */ React.createElement(DialogWrap, _extends$Q({
|
|
29303
29303
|
width
|
|
29304
29304
|
}, restProps, {
|
|
29305
29305
|
getContainer: getContainer2 === void 0 ? getContextPopupContainer : getContainer2,
|
|
@@ -29407,7 +29407,7 @@ function getRootPrefixCls() {
|
|
|
29407
29407
|
}
|
|
29408
29408
|
function confirm$1(config2) {
|
|
29409
29409
|
var container2 = document.createDocumentFragment();
|
|
29410
|
-
var currentConfig = _extends$
|
|
29410
|
+
var currentConfig = _extends$Q(_extends$Q({}, config2), {
|
|
29411
29411
|
close: close3,
|
|
29412
29412
|
open: true
|
|
29413
29413
|
});
|
|
@@ -29441,7 +29441,7 @@ function confirm$1(config2) {
|
|
|
29441
29441
|
var rootPrefixCls = getPrefixCls(void 0, getRootPrefixCls());
|
|
29442
29442
|
var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
|
|
29443
29443
|
var iconPrefixCls = getIconPrefixCls();
|
|
29444
|
-
render(/* @__PURE__ */ React.createElement(ConfirmDialog$1, _extends$
|
|
29444
|
+
render(/* @__PURE__ */ React.createElement(ConfirmDialog$1, _extends$Q({}, props, {
|
|
29445
29445
|
prefixCls,
|
|
29446
29446
|
rootPrefixCls,
|
|
29447
29447
|
iconPrefixCls,
|
|
@@ -29455,7 +29455,7 @@ function confirm$1(config2) {
|
|
|
29455
29455
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
29456
29456
|
args[_key2] = arguments[_key2];
|
|
29457
29457
|
}
|
|
29458
|
-
currentConfig = _extends$
|
|
29458
|
+
currentConfig = _extends$Q(_extends$Q({}, currentConfig), {
|
|
29459
29459
|
open: false,
|
|
29460
29460
|
afterClose: function afterClose() {
|
|
29461
29461
|
if (typeof config2.afterClose === "function") {
|
|
@@ -29473,7 +29473,7 @@ function confirm$1(config2) {
|
|
|
29473
29473
|
if (typeof configUpdate2 === "function") {
|
|
29474
29474
|
currentConfig = configUpdate2(currentConfig);
|
|
29475
29475
|
} else {
|
|
29476
|
-
currentConfig = _extends$
|
|
29476
|
+
currentConfig = _extends$Q(_extends$Q({}, currentConfig), configUpdate2);
|
|
29477
29477
|
}
|
|
29478
29478
|
render$1(currentConfig);
|
|
29479
29479
|
}
|
|
@@ -29485,7 +29485,7 @@ function confirm$1(config2) {
|
|
|
29485
29485
|
};
|
|
29486
29486
|
}
|
|
29487
29487
|
function withWarn(props) {
|
|
29488
|
-
return _extends$
|
|
29488
|
+
return _extends$Q(_extends$Q({
|
|
29489
29489
|
icon: /* @__PURE__ */ React.createElement(ExclamationCircleOutlined$1, null),
|
|
29490
29490
|
okCancel: false
|
|
29491
29491
|
}, props), {
|
|
@@ -29493,7 +29493,7 @@ function withWarn(props) {
|
|
|
29493
29493
|
});
|
|
29494
29494
|
}
|
|
29495
29495
|
function withInfo(props) {
|
|
29496
|
-
return _extends$
|
|
29496
|
+
return _extends$Q(_extends$Q({
|
|
29497
29497
|
icon: /* @__PURE__ */ React.createElement(InfoCircleOutlined$1, null),
|
|
29498
29498
|
okCancel: false
|
|
29499
29499
|
}, props), {
|
|
@@ -29501,7 +29501,7 @@ function withInfo(props) {
|
|
|
29501
29501
|
});
|
|
29502
29502
|
}
|
|
29503
29503
|
function withSuccess(props) {
|
|
29504
|
-
return _extends$
|
|
29504
|
+
return _extends$Q(_extends$Q({
|
|
29505
29505
|
icon: /* @__PURE__ */ React.createElement(CheckCircleOutlined$1, null),
|
|
29506
29506
|
okCancel: false
|
|
29507
29507
|
}, props), {
|
|
@@ -29509,7 +29509,7 @@ function withSuccess(props) {
|
|
|
29509
29509
|
});
|
|
29510
29510
|
}
|
|
29511
29511
|
function withError(props) {
|
|
29512
|
-
return _extends$
|
|
29512
|
+
return _extends$Q(_extends$Q({
|
|
29513
29513
|
icon: /* @__PURE__ */ React.createElement(CloseCircleOutlined$1, null),
|
|
29514
29514
|
okCancel: false
|
|
29515
29515
|
}, props), {
|
|
@@ -29517,7 +29517,7 @@ function withError(props) {
|
|
|
29517
29517
|
});
|
|
29518
29518
|
}
|
|
29519
29519
|
function withConfirm(props) {
|
|
29520
|
-
return _extends$
|
|
29520
|
+
return _extends$Q(_extends$Q({
|
|
29521
29521
|
icon: /* @__PURE__ */ React.createElement(ExclamationCircleOutlined$1, null),
|
|
29522
29522
|
okCancel: true
|
|
29523
29523
|
}, props), {
|
|
@@ -29569,7 +29569,7 @@ var HookModal = function HookModal2(_ref3, ref) {
|
|
|
29569
29569
|
destroy: close3,
|
|
29570
29570
|
update: function update(newConfig) {
|
|
29571
29571
|
setInnerConfig(function(originConfig) {
|
|
29572
|
-
return _extends$
|
|
29572
|
+
return _extends$Q(_extends$Q({}, originConfig), newConfig);
|
|
29573
29573
|
});
|
|
29574
29574
|
}
|
|
29575
29575
|
};
|
|
@@ -29578,7 +29578,7 @@ var HookModal = function HookModal2(_ref3, ref) {
|
|
|
29578
29578
|
componentName: "Modal",
|
|
29579
29579
|
defaultLocale: defaultLocale$2.Modal
|
|
29580
29580
|
}, function(contextLocale) {
|
|
29581
|
-
return /* @__PURE__ */ React.createElement(ConfirmDialog$1, _extends$
|
|
29581
|
+
return /* @__PURE__ */ React.createElement(ConfirmDialog$1, _extends$Q({
|
|
29582
29582
|
prefixCls,
|
|
29583
29583
|
rootPrefixCls
|
|
29584
29584
|
}, innerConfig, {
|
|
@@ -31619,8 +31619,8 @@ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
|
31619
31619
|
function cloneDeep(value2) {
|
|
31620
31620
|
return baseClone$1(value2, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
31621
31621
|
}
|
|
31622
|
-
function _extends$
|
|
31623
|
-
_extends$
|
|
31622
|
+
function _extends$O() {
|
|
31623
|
+
_extends$O = Object.assign || function(target) {
|
|
31624
31624
|
for (var i = 1; i < arguments.length; i++) {
|
|
31625
31625
|
var source2 = arguments[i];
|
|
31626
31626
|
for (var key2 in source2) {
|
|
@@ -31631,14 +31631,14 @@ function _extends$P() {
|
|
|
31631
31631
|
}
|
|
31632
31632
|
return target;
|
|
31633
31633
|
};
|
|
31634
|
-
return _extends$
|
|
31634
|
+
return _extends$O.apply(this, arguments);
|
|
31635
31635
|
}
|
|
31636
31636
|
function _inheritsLoose$1(subClass, superClass) {
|
|
31637
31637
|
subClass.prototype = Object.create(superClass.prototype);
|
|
31638
31638
|
subClass.prototype.constructor = subClass;
|
|
31639
31639
|
subClass.__proto__ = superClass;
|
|
31640
31640
|
}
|
|
31641
|
-
function _objectWithoutPropertiesLoose$
|
|
31641
|
+
function _objectWithoutPropertiesLoose$y(source2, excluded) {
|
|
31642
31642
|
if (source2 == null)
|
|
31643
31643
|
return {};
|
|
31644
31644
|
var target = {};
|
|
@@ -31751,60 +31751,60 @@ function useFormikContext() {
|
|
|
31751
31751
|
function formikReducer(state, msg) {
|
|
31752
31752
|
switch (msg.type) {
|
|
31753
31753
|
case "SET_VALUES":
|
|
31754
|
-
return _extends$
|
|
31754
|
+
return _extends$O({}, state, {
|
|
31755
31755
|
values: msg.payload
|
|
31756
31756
|
});
|
|
31757
31757
|
case "SET_TOUCHED":
|
|
31758
|
-
return _extends$
|
|
31758
|
+
return _extends$O({}, state, {
|
|
31759
31759
|
touched: msg.payload
|
|
31760
31760
|
});
|
|
31761
31761
|
case "SET_ERRORS":
|
|
31762
31762
|
if (reactFastCompare(state.errors, msg.payload)) {
|
|
31763
31763
|
return state;
|
|
31764
31764
|
}
|
|
31765
|
-
return _extends$
|
|
31765
|
+
return _extends$O({}, state, {
|
|
31766
31766
|
errors: msg.payload
|
|
31767
31767
|
});
|
|
31768
31768
|
case "SET_STATUS":
|
|
31769
|
-
return _extends$
|
|
31769
|
+
return _extends$O({}, state, {
|
|
31770
31770
|
status: msg.payload
|
|
31771
31771
|
});
|
|
31772
31772
|
case "SET_ISSUBMITTING":
|
|
31773
|
-
return _extends$
|
|
31773
|
+
return _extends$O({}, state, {
|
|
31774
31774
|
isSubmitting: msg.payload
|
|
31775
31775
|
});
|
|
31776
31776
|
case "SET_ISVALIDATING":
|
|
31777
|
-
return _extends$
|
|
31777
|
+
return _extends$O({}, state, {
|
|
31778
31778
|
isValidating: msg.payload
|
|
31779
31779
|
});
|
|
31780
31780
|
case "SET_FIELD_VALUE":
|
|
31781
|
-
return _extends$
|
|
31781
|
+
return _extends$O({}, state, {
|
|
31782
31782
|
values: setIn(state.values, msg.payload.field, msg.payload.value)
|
|
31783
31783
|
});
|
|
31784
31784
|
case "SET_FIELD_TOUCHED":
|
|
31785
|
-
return _extends$
|
|
31785
|
+
return _extends$O({}, state, {
|
|
31786
31786
|
touched: setIn(state.touched, msg.payload.field, msg.payload.value)
|
|
31787
31787
|
});
|
|
31788
31788
|
case "SET_FIELD_ERROR":
|
|
31789
|
-
return _extends$
|
|
31789
|
+
return _extends$O({}, state, {
|
|
31790
31790
|
errors: setIn(state.errors, msg.payload.field, msg.payload.value)
|
|
31791
31791
|
});
|
|
31792
31792
|
case "RESET_FORM":
|
|
31793
|
-
return _extends$
|
|
31793
|
+
return _extends$O({}, state, msg.payload);
|
|
31794
31794
|
case "SET_FORMIK_STATE":
|
|
31795
31795
|
return msg.payload(state);
|
|
31796
31796
|
case "SUBMIT_ATTEMPT":
|
|
31797
|
-
return _extends$
|
|
31797
|
+
return _extends$O({}, state, {
|
|
31798
31798
|
touched: setNestedObjectValues(state.values, true),
|
|
31799
31799
|
isSubmitting: true,
|
|
31800
31800
|
submitCount: state.submitCount + 1
|
|
31801
31801
|
});
|
|
31802
31802
|
case "SUBMIT_FAILURE":
|
|
31803
|
-
return _extends$
|
|
31803
|
+
return _extends$O({}, state, {
|
|
31804
31804
|
isSubmitting: false
|
|
31805
31805
|
});
|
|
31806
31806
|
case "SUBMIT_SUCCESS":
|
|
31807
|
-
return _extends$
|
|
31807
|
+
return _extends$O({}, state, {
|
|
31808
31808
|
isSubmitting: false
|
|
31809
31809
|
});
|
|
31810
31810
|
default:
|
|
@@ -31814,8 +31814,8 @@ function formikReducer(state, msg) {
|
|
|
31814
31814
|
var emptyErrors = {};
|
|
31815
31815
|
var emptyTouched = {};
|
|
31816
31816
|
function useFormik(_ref3) {
|
|
31817
|
-
var _ref$validateOnChange = _ref3.validateOnChange, validateOnChange = _ref$validateOnChange === void 0 ? true : _ref$validateOnChange, _ref$validateOnBlur = _ref3.validateOnBlur, validateOnBlur = _ref$validateOnBlur === void 0 ? true : _ref$validateOnBlur, _ref$validateOnMount = _ref3.validateOnMount, validateOnMount = _ref$validateOnMount === void 0 ? false : _ref$validateOnMount, isInitialValid = _ref3.isInitialValid, _ref$enableReinitiali = _ref3.enableReinitialize, enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali, onSubmit = _ref3.onSubmit, rest = _objectWithoutPropertiesLoose$
|
|
31818
|
-
var props = _extends$
|
|
31817
|
+
var _ref$validateOnChange = _ref3.validateOnChange, validateOnChange = _ref$validateOnChange === void 0 ? true : _ref$validateOnChange, _ref$validateOnBlur = _ref3.validateOnBlur, validateOnBlur = _ref$validateOnBlur === void 0 ? true : _ref$validateOnBlur, _ref$validateOnMount = _ref3.validateOnMount, validateOnMount = _ref$validateOnMount === void 0 ? false : _ref$validateOnMount, isInitialValid = _ref3.isInitialValid, _ref$enableReinitiali = _ref3.enableReinitialize, enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali, onSubmit = _ref3.onSubmit, rest = _objectWithoutPropertiesLoose$y(_ref3, ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"]);
|
|
31818
|
+
var props = _extends$O({
|
|
31819
31819
|
validateOnChange,
|
|
31820
31820
|
validateOnBlur,
|
|
31821
31821
|
validateOnMount,
|
|
@@ -32352,7 +32352,7 @@ function useFormik(_ref3) {
|
|
|
32352
32352
|
var isValid2 = useMemo$1(function() {
|
|
32353
32353
|
return typeof isInitialValid !== "undefined" ? dirty ? state.errors && Object.keys(state.errors).length === 0 : isInitialValid !== false && isFunction(isInitialValid) ? isInitialValid(props) : isInitialValid : state.errors && Object.keys(state.errors).length === 0;
|
|
32354
32354
|
}, [isInitialValid, dirty, state.errors, props]);
|
|
32355
|
-
var ctx = _extends$
|
|
32355
|
+
var ctx = _extends$O({}, state, {
|
|
32356
32356
|
initialValues: initialValues.current,
|
|
32357
32357
|
initialErrors: initialErrors.current,
|
|
32358
32358
|
initialTouched: initialTouched.current,
|
|
@@ -32545,8 +32545,8 @@ function useField(propsOrFieldName) {
|
|
|
32545
32545
|
return [getFieldProps(props), getFieldMeta(fieldName), getFieldHelpers(fieldName)];
|
|
32546
32546
|
}
|
|
32547
32547
|
function Field(_ref3) {
|
|
32548
|
-
var validate2 = _ref3.validate, name = _ref3.name, render2 = _ref3.render, children = _ref3.children, is = _ref3.as, component = _ref3.component, props = _objectWithoutPropertiesLoose$
|
|
32549
|
-
var _useFormikContext = useFormikContext(), formik = _objectWithoutPropertiesLoose$
|
|
32548
|
+
var validate2 = _ref3.validate, name = _ref3.name, render2 = _ref3.render, children = _ref3.children, is = _ref3.as, component = _ref3.component, props = _objectWithoutPropertiesLoose$y(_ref3, ["validate", "name", "render", "children", "as", "component"]);
|
|
32549
|
+
var _useFormikContext = useFormikContext(), formik = _objectWithoutPropertiesLoose$y(_useFormikContext, ["validate", "validationSchema"]);
|
|
32550
32550
|
var registerField = formik.registerField, unregisterField = formik.unregisterField;
|
|
32551
32551
|
useEffect(function() {
|
|
32552
32552
|
registerField(name, {
|
|
@@ -32556,7 +32556,7 @@ function Field(_ref3) {
|
|
|
32556
32556
|
unregisterField(name);
|
|
32557
32557
|
};
|
|
32558
32558
|
}, [registerField, unregisterField, name, validate2]);
|
|
32559
|
-
var field2 = formik.getFieldProps(_extends$
|
|
32559
|
+
var field2 = formik.getFieldProps(_extends$O({
|
|
32560
32560
|
name
|
|
32561
32561
|
}, props));
|
|
32562
32562
|
var meta = formik.getFieldMeta(name);
|
|
@@ -32565,38 +32565,38 @@ function Field(_ref3) {
|
|
|
32565
32565
|
form: formik
|
|
32566
32566
|
};
|
|
32567
32567
|
if (render2) {
|
|
32568
|
-
return render2(_extends$
|
|
32568
|
+
return render2(_extends$O({}, legacyBag, {
|
|
32569
32569
|
meta
|
|
32570
32570
|
}));
|
|
32571
32571
|
}
|
|
32572
32572
|
if (isFunction(children)) {
|
|
32573
|
-
return children(_extends$
|
|
32573
|
+
return children(_extends$O({}, legacyBag, {
|
|
32574
32574
|
meta
|
|
32575
32575
|
}));
|
|
32576
32576
|
}
|
|
32577
32577
|
if (component) {
|
|
32578
32578
|
if (typeof component === "string") {
|
|
32579
|
-
var innerRef = props.innerRef, rest = _objectWithoutPropertiesLoose$
|
|
32580
|
-
return createElement$1(component, _extends$
|
|
32579
|
+
var innerRef = props.innerRef, rest = _objectWithoutPropertiesLoose$y(props, ["innerRef"]);
|
|
32580
|
+
return createElement$1(component, _extends$O({
|
|
32581
32581
|
ref: innerRef
|
|
32582
32582
|
}, field2, rest), children);
|
|
32583
32583
|
}
|
|
32584
|
-
return createElement$1(component, _extends$
|
|
32584
|
+
return createElement$1(component, _extends$O({
|
|
32585
32585
|
field: field2,
|
|
32586
32586
|
form: formik
|
|
32587
32587
|
}, props), children);
|
|
32588
32588
|
}
|
|
32589
32589
|
var asElement = is || "input";
|
|
32590
32590
|
if (typeof asElement === "string") {
|
|
32591
|
-
var _innerRef = props.innerRef, _rest = _objectWithoutPropertiesLoose$
|
|
32592
|
-
return createElement$1(asElement, _extends$
|
|
32591
|
+
var _innerRef = props.innerRef, _rest = _objectWithoutPropertiesLoose$y(props, ["innerRef"]);
|
|
32592
|
+
return createElement$1(asElement, _extends$O({
|
|
32593
32593
|
ref: _innerRef
|
|
32594
32594
|
}, field2, _rest), children);
|
|
32595
32595
|
}
|
|
32596
|
-
return createElement$1(asElement, _extends$
|
|
32596
|
+
return createElement$1(asElement, _extends$O({}, field2, props), children);
|
|
32597
32597
|
}
|
|
32598
32598
|
var Form$b = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
32599
|
-
var action = props.action, rest = _objectWithoutPropertiesLoose$
|
|
32599
|
+
var action = props.action, rest = _objectWithoutPropertiesLoose$y(props, ["action"]);
|
|
32600
32600
|
var _action = action != null ? action : "#";
|
|
32601
32601
|
var _useFormikContext = useFormikContext(), handleReset = _useFormikContext.handleReset, handleSubmit = _useFormikContext.handleSubmit;
|
|
32602
32602
|
return createElement$1("form", Object.assign({
|
|
@@ -32656,7 +32656,7 @@ var copyArrayLike = function copyArrayLike2(arrayLike) {
|
|
|
32656
32656
|
}).reduce(function(max2, el) {
|
|
32657
32657
|
return el > max2 ? el : max2;
|
|
32658
32658
|
}, 0);
|
|
32659
|
-
return Array.from(_extends$
|
|
32659
|
+
return Array.from(_extends$O({}, arrayLike, {
|
|
32660
32660
|
length: maxIndex + 1
|
|
32661
32661
|
}));
|
|
32662
32662
|
}
|
|
@@ -32680,7 +32680,7 @@ var FieldArrayInner = /* @__PURE__ */ function(_React$Component) {
|
|
|
32680
32680
|
if (isEmptyArray(fieldTouched)) {
|
|
32681
32681
|
fieldTouched = void 0;
|
|
32682
32682
|
}
|
|
32683
|
-
return _extends$
|
|
32683
|
+
return _extends$O({}, prevState, {
|
|
32684
32684
|
values,
|
|
32685
32685
|
errors: alterErrors ? setIn(prevState.errors, name, fieldError) : prevState.errors,
|
|
32686
32686
|
touched: alterTouched ? setIn(prevState.touched, name, fieldTouched) : prevState.touched
|
|
@@ -32833,8 +32833,8 @@ var FieldArrayInner = /* @__PURE__ */ function(_React$Component) {
|
|
|
32833
32833
|
handleUnshift: this.handleUnshift,
|
|
32834
32834
|
handleRemove: this.handleRemove
|
|
32835
32835
|
};
|
|
32836
|
-
var _this$props2 = this.props, component = _this$props2.component, render3 = _this$props2.render, children = _this$props2.children, name = _this$props2.name, _this$props2$formik = _this$props2.formik, restOfFormik = _objectWithoutPropertiesLoose$
|
|
32837
|
-
var props = _extends$
|
|
32836
|
+
var _this$props2 = this.props, component = _this$props2.component, render3 = _this$props2.render, children = _this$props2.children, name = _this$props2.name, _this$props2$formik = _this$props2.formik, restOfFormik = _objectWithoutPropertiesLoose$y(_this$props2$formik, ["validate", "validationSchema"]);
|
|
32837
|
+
var props = _extends$O({}, arrayHelpers, {
|
|
32838
32838
|
form: restOfFormik,
|
|
32839
32839
|
name
|
|
32840
32840
|
});
|
|
@@ -33006,8 +33006,8 @@ function _defineProperty$w(obj, key2, value2) {
|
|
|
33006
33006
|
}
|
|
33007
33007
|
return obj;
|
|
33008
33008
|
}
|
|
33009
|
-
function _extends$
|
|
33010
|
-
_extends$
|
|
33009
|
+
function _extends$N() {
|
|
33010
|
+
_extends$N = Object.assign ? Object.assign.bind() : function(target) {
|
|
33011
33011
|
for (var i = 1; i < arguments.length; i++) {
|
|
33012
33012
|
var source2 = arguments[i];
|
|
33013
33013
|
for (var key2 in source2) {
|
|
@@ -33018,7 +33018,7 @@ function _extends$O() {
|
|
|
33018
33018
|
}
|
|
33019
33019
|
return target;
|
|
33020
33020
|
};
|
|
33021
|
-
return _extends$
|
|
33021
|
+
return _extends$N.apply(this, arguments);
|
|
33022
33022
|
}
|
|
33023
33023
|
function _inherits$n(subClass, superClass) {
|
|
33024
33024
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -35368,7 +35368,7 @@ var ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_c
|
|
|
35368
35368
|
var wrapperClassName = [tooltipClass, extraClass].filter(Boolean).join(" ");
|
|
35369
35369
|
if (html2) {
|
|
35370
35370
|
var htmlContent = "".concat(content2).concat(style2 ? '\n<style aria-hidden="true">'.concat(style2, "</style>") : "");
|
|
35371
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, _extends$
|
|
35371
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, _extends$N({
|
|
35372
35372
|
className: "".concat(wrapperClassName),
|
|
35373
35373
|
id: this.props.id || uuid2,
|
|
35374
35374
|
ref: function ref(_ref3) {
|
|
@@ -35381,7 +35381,7 @@ var ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_c
|
|
|
35381
35381
|
}
|
|
35382
35382
|
}));
|
|
35383
35383
|
} else {
|
|
35384
|
-
return /* @__PURE__ */ React__default.createElement(Wrapper, _extends$
|
|
35384
|
+
return /* @__PURE__ */ React__default.createElement(Wrapper, _extends$N({
|
|
35385
35385
|
className: "".concat(wrapperClassName),
|
|
35386
35386
|
id: this.props.id || uuid2
|
|
35387
35387
|
}, ariaProps, {
|
|
@@ -36003,8 +36003,8 @@ class Condition {
|
|
|
36003
36003
|
function toArray$1(value2) {
|
|
36004
36004
|
return value2 == null ? [] : [].concat(value2);
|
|
36005
36005
|
}
|
|
36006
|
-
function _extends$
|
|
36007
|
-
_extends$
|
|
36006
|
+
function _extends$M() {
|
|
36007
|
+
_extends$M = Object.assign || function(target) {
|
|
36008
36008
|
for (var i = 1; i < arguments.length; i++) {
|
|
36009
36009
|
var source2 = arguments[i];
|
|
36010
36010
|
for (var key2 in source2) {
|
|
@@ -36015,14 +36015,14 @@ function _extends$N() {
|
|
|
36015
36015
|
}
|
|
36016
36016
|
return target;
|
|
36017
36017
|
};
|
|
36018
|
-
return _extends$
|
|
36018
|
+
return _extends$M.apply(this, arguments);
|
|
36019
36019
|
}
|
|
36020
36020
|
let strReg = /\$\{\s*(\w+)\s*\}/g;
|
|
36021
36021
|
class ValidationError extends Error {
|
|
36022
36022
|
static formatError(message2, params) {
|
|
36023
36023
|
const path2 = params.label || params.path || "this";
|
|
36024
36024
|
if (path2 !== params.path)
|
|
36025
|
-
params = _extends$
|
|
36025
|
+
params = _extends$M({}, params, {
|
|
36026
36026
|
path: path2
|
|
36027
36027
|
});
|
|
36028
36028
|
if (typeof message2 === "string")
|
|
@@ -36456,8 +36456,8 @@ class Reference {
|
|
|
36456
36456
|
}
|
|
36457
36457
|
}
|
|
36458
36458
|
Reference.prototype.__isYupRef = true;
|
|
36459
|
-
function _extends$
|
|
36460
|
-
_extends$
|
|
36459
|
+
function _extends$L() {
|
|
36460
|
+
_extends$L = Object.assign || function(target) {
|
|
36461
36461
|
for (var i = 1; i < arguments.length; i++) {
|
|
36462
36462
|
var source2 = arguments[i];
|
|
36463
36463
|
for (var key2 in source2) {
|
|
@@ -36468,9 +36468,9 @@ function _extends$M() {
|
|
|
36468
36468
|
}
|
|
36469
36469
|
return target;
|
|
36470
36470
|
};
|
|
36471
|
-
return _extends$
|
|
36471
|
+
return _extends$L.apply(this, arguments);
|
|
36472
36472
|
}
|
|
36473
|
-
function _objectWithoutPropertiesLoose$
|
|
36473
|
+
function _objectWithoutPropertiesLoose$x(source2, excluded) {
|
|
36474
36474
|
if (source2 == null)
|
|
36475
36475
|
return {};
|
|
36476
36476
|
var target = {};
|
|
@@ -36493,7 +36493,7 @@ function createValidation(config2) {
|
|
|
36493
36493
|
options: options2,
|
|
36494
36494
|
originalValue,
|
|
36495
36495
|
sync
|
|
36496
|
-
} = _ref3, rest = _objectWithoutPropertiesLoose$
|
|
36496
|
+
} = _ref3, rest = _objectWithoutPropertiesLoose$x(_ref3, ["value", "path", "label", "options", "originalValue", "sync"]);
|
|
36497
36497
|
const {
|
|
36498
36498
|
name,
|
|
36499
36499
|
test: test2,
|
|
@@ -36508,7 +36508,7 @@ function createValidation(config2) {
|
|
|
36508
36508
|
return Reference.isRef(item2) ? item2.getValue(value2, parent, context) : item2;
|
|
36509
36509
|
}
|
|
36510
36510
|
function createError(overrides = {}) {
|
|
36511
|
-
const nextParams = mapValues_1(_extends$
|
|
36511
|
+
const nextParams = mapValues_1(_extends$L({
|
|
36512
36512
|
value: value2,
|
|
36513
36513
|
originalValue,
|
|
36514
36514
|
label: label2,
|
|
@@ -36518,7 +36518,7 @@ function createValidation(config2) {
|
|
|
36518
36518
|
error3.params = nextParams;
|
|
36519
36519
|
return error3;
|
|
36520
36520
|
}
|
|
36521
|
-
let ctx = _extends$
|
|
36521
|
+
let ctx = _extends$L({
|
|
36522
36522
|
path: path2,
|
|
36523
36523
|
parent,
|
|
36524
36524
|
type: name,
|
|
@@ -36649,8 +36649,8 @@ class ReferenceSet {
|
|
|
36649
36649
|
return next2;
|
|
36650
36650
|
}
|
|
36651
36651
|
}
|
|
36652
|
-
function _extends$
|
|
36653
|
-
_extends$
|
|
36652
|
+
function _extends$K() {
|
|
36653
|
+
_extends$K = Object.assign || function(target) {
|
|
36654
36654
|
for (var i = 1; i < arguments.length; i++) {
|
|
36655
36655
|
var source2 = arguments[i];
|
|
36656
36656
|
for (var key2 in source2) {
|
|
@@ -36661,7 +36661,7 @@ function _extends$L() {
|
|
|
36661
36661
|
}
|
|
36662
36662
|
return target;
|
|
36663
36663
|
};
|
|
36664
|
-
return _extends$
|
|
36664
|
+
return _extends$K.apply(this, arguments);
|
|
36665
36665
|
}
|
|
36666
36666
|
class BaseSchema {
|
|
36667
36667
|
constructor(options2) {
|
|
@@ -36681,7 +36681,7 @@ class BaseSchema {
|
|
|
36681
36681
|
this.typeError(mixed.notType);
|
|
36682
36682
|
});
|
|
36683
36683
|
this.type = (options2 == null ? void 0 : options2.type) || "mixed";
|
|
36684
|
-
this.spec = _extends$
|
|
36684
|
+
this.spec = _extends$K({
|
|
36685
36685
|
strip: false,
|
|
36686
36686
|
strict: false,
|
|
36687
36687
|
abortEarly: true,
|
|
@@ -36709,12 +36709,12 @@ class BaseSchema {
|
|
|
36709
36709
|
next2._blacklistError = this._blacklistError;
|
|
36710
36710
|
next2._whitelist = this._whitelist.clone();
|
|
36711
36711
|
next2._blacklist = this._blacklist.clone();
|
|
36712
|
-
next2.exclusiveTests = _extends$
|
|
36712
|
+
next2.exclusiveTests = _extends$K({}, this.exclusiveTests);
|
|
36713
36713
|
next2.deps = [...this.deps];
|
|
36714
36714
|
next2.conditions = [...this.conditions];
|
|
36715
36715
|
next2.tests = [...this.tests];
|
|
36716
36716
|
next2.transforms = [...this.transforms];
|
|
36717
|
-
next2.spec = clone$1(_extends$
|
|
36717
|
+
next2.spec = clone$1(_extends$K({}, this.spec, spec));
|
|
36718
36718
|
return next2;
|
|
36719
36719
|
}
|
|
36720
36720
|
label(label2) {
|
|
@@ -36743,7 +36743,7 @@ class BaseSchema {
|
|
|
36743
36743
|
throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${schema2.type}`);
|
|
36744
36744
|
let base = this;
|
|
36745
36745
|
let combined = schema2.clone();
|
|
36746
|
-
const mergedSpec = _extends$
|
|
36746
|
+
const mergedSpec = _extends$K({}, base.spec, combined.spec);
|
|
36747
36747
|
combined.spec = mergedSpec;
|
|
36748
36748
|
combined._typeError || (combined._typeError = base._typeError);
|
|
36749
36749
|
combined._whitelistError || (combined._whitelistError = base._whitelistError);
|
|
@@ -36777,7 +36777,7 @@ class BaseSchema {
|
|
|
36777
36777
|
return schema2;
|
|
36778
36778
|
}
|
|
36779
36779
|
cast(value2, options2 = {}) {
|
|
36780
|
-
let resolvedSchema = this.resolve(_extends$
|
|
36780
|
+
let resolvedSchema = this.resolve(_extends$K({
|
|
36781
36781
|
value: value2
|
|
36782
36782
|
}, options2));
|
|
36783
36783
|
let result = resolvedSchema._cast(value2, options2);
|
|
@@ -36809,7 +36809,7 @@ attempted value: ${formattedValue}
|
|
|
36809
36809
|
} = options2;
|
|
36810
36810
|
let value2 = _value;
|
|
36811
36811
|
if (!strict) {
|
|
36812
|
-
value2 = this._cast(value2, _extends$
|
|
36812
|
+
value2 = this._cast(value2, _extends$K({
|
|
36813
36813
|
assert: false
|
|
36814
36814
|
}, options2));
|
|
36815
36815
|
}
|
|
@@ -36852,7 +36852,7 @@ attempted value: ${formattedValue}
|
|
|
36852
36852
|
});
|
|
36853
36853
|
}
|
|
36854
36854
|
validate(value2, options2, maybeCb) {
|
|
36855
|
-
let schema2 = this.resolve(_extends$
|
|
36855
|
+
let schema2 = this.resolve(_extends$K({}, options2, {
|
|
36856
36856
|
value: value2
|
|
36857
36857
|
}));
|
|
36858
36858
|
return typeof maybeCb === "function" ? schema2._validate(value2, options2, maybeCb) : new Promise((resolve, reject) => schema2._validate(value2, options2, (err, value3) => {
|
|
@@ -36863,11 +36863,11 @@ attempted value: ${formattedValue}
|
|
|
36863
36863
|
}));
|
|
36864
36864
|
}
|
|
36865
36865
|
validateSync(value2, options2) {
|
|
36866
|
-
let schema2 = this.resolve(_extends$
|
|
36866
|
+
let schema2 = this.resolve(_extends$K({}, options2, {
|
|
36867
36867
|
value: value2
|
|
36868
36868
|
}));
|
|
36869
36869
|
let result;
|
|
36870
|
-
schema2._validate(value2, _extends$
|
|
36870
|
+
schema2._validate(value2, _extends$K({}, options2, {
|
|
36871
36871
|
sync: true
|
|
36872
36872
|
}), (err, value3) => {
|
|
36873
36873
|
if (err)
|
|
@@ -37120,7 +37120,7 @@ for (const method4 of ["validate", "validateSync"])
|
|
|
37120
37120
|
parentPath,
|
|
37121
37121
|
schema: schema2
|
|
37122
37122
|
} = getIn(this, path2, value2, options2.context);
|
|
37123
|
-
return schema2[method4](parent && parent[parentPath], _extends$
|
|
37123
|
+
return schema2[method4](parent && parent[parentPath], _extends$K({}, options2, {
|
|
37124
37124
|
parent,
|
|
37125
37125
|
path: path2
|
|
37126
37126
|
}));
|
|
@@ -37837,8 +37837,8 @@ function sortByKeyOrder(keys3) {
|
|
|
37837
37837
|
return findIndex$3(keys3, a2) - findIndex$3(keys3, b2);
|
|
37838
37838
|
};
|
|
37839
37839
|
}
|
|
37840
|
-
function _extends$
|
|
37841
|
-
_extends$
|
|
37840
|
+
function _extends$J() {
|
|
37841
|
+
_extends$J = Object.assign || function(target) {
|
|
37842
37842
|
for (var i = 1; i < arguments.length; i++) {
|
|
37843
37843
|
var source2 = arguments[i];
|
|
37844
37844
|
for (var key2 in source2) {
|
|
@@ -37849,7 +37849,7 @@ function _extends$K() {
|
|
|
37849
37849
|
}
|
|
37850
37850
|
return target;
|
|
37851
37851
|
};
|
|
37852
|
-
return _extends$
|
|
37852
|
+
return _extends$J.apply(this, arguments);
|
|
37853
37853
|
}
|
|
37854
37854
|
let isObject$3 = (obj) => Object.prototype.toString.call(obj) === "[object Object]";
|
|
37855
37855
|
function unknown(ctx, value2) {
|
|
@@ -37898,7 +37898,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
37898
37898
|
let strip = (_options$stripUnknown = options2.stripUnknown) != null ? _options$stripUnknown : this.spec.noUnknown;
|
|
37899
37899
|
let props = this._nodes.concat(Object.keys(value2).filter((v2) => this._nodes.indexOf(v2) === -1));
|
|
37900
37900
|
let intermediateValue = {};
|
|
37901
|
-
let innerOptions = _extends$
|
|
37901
|
+
let innerOptions = _extends$J({}, options2, {
|
|
37902
37902
|
parent: intermediateValue,
|
|
37903
37903
|
__validating: options2.__validating || false
|
|
37904
37904
|
});
|
|
@@ -37966,7 +37966,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
37966
37966
|
let path2 = key2.indexOf(".") === -1 ? (opts.path ? `${opts.path}.` : "") + key2 : `${opts.path || ""}["${key2}"]`;
|
|
37967
37967
|
let field2 = this.fields[key2];
|
|
37968
37968
|
if (field2 && "validate" in field2) {
|
|
37969
|
-
field2.validate(value2[key2], _extends$
|
|
37969
|
+
field2.validate(value2[key2], _extends$J({}, opts, {
|
|
37970
37970
|
path: path2,
|
|
37971
37971
|
from: from2,
|
|
37972
37972
|
strict: true,
|
|
@@ -37990,7 +37990,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
37990
37990
|
}
|
|
37991
37991
|
clone(spec) {
|
|
37992
37992
|
const next2 = super.clone(spec);
|
|
37993
|
-
next2.fields = _extends$
|
|
37993
|
+
next2.fields = _extends$J({}, this.fields);
|
|
37994
37994
|
next2._nodes = this._nodes;
|
|
37995
37995
|
next2._excludedEdges = this._excludedEdges;
|
|
37996
37996
|
next2._sortErrors = this._sortErrors;
|
|
@@ -38066,7 +38066,7 @@ class ObjectSchema extends BaseSchema {
|
|
|
38066
38066
|
return obj;
|
|
38067
38067
|
let newObj = obj;
|
|
38068
38068
|
if (has_1(obj, from2)) {
|
|
38069
|
-
newObj = _extends$
|
|
38069
|
+
newObj = _extends$J({}, obj);
|
|
38070
38070
|
if (!alias)
|
|
38071
38071
|
delete newObj[from2];
|
|
38072
38072
|
newObj[to2] = fromGetter(obj);
|
|
@@ -38122,8 +38122,8 @@ function create$1(spec) {
|
|
|
38122
38122
|
return new ObjectSchema(spec);
|
|
38123
38123
|
}
|
|
38124
38124
|
create$1.prototype = ObjectSchema.prototype;
|
|
38125
|
-
function _extends$
|
|
38126
|
-
_extends$
|
|
38125
|
+
function _extends$I() {
|
|
38126
|
+
_extends$I = Object.assign || function(target) {
|
|
38127
38127
|
for (var i = 1; i < arguments.length; i++) {
|
|
38128
38128
|
var source2 = arguments[i];
|
|
38129
38129
|
for (var key2 in source2) {
|
|
@@ -38134,7 +38134,7 @@ function _extends$J() {
|
|
|
38134
38134
|
}
|
|
38135
38135
|
return target;
|
|
38136
38136
|
};
|
|
38137
|
-
return _extends$
|
|
38137
|
+
return _extends$I.apply(this, arguments);
|
|
38138
38138
|
}
|
|
38139
38139
|
function create2(type4) {
|
|
38140
38140
|
return new ArraySchema(type4);
|
|
@@ -38170,7 +38170,7 @@ class ArraySchema extends BaseSchema {
|
|
|
38170
38170
|
return value2;
|
|
38171
38171
|
let isChanged = false;
|
|
38172
38172
|
const castArray = value2.map((v2, idx) => {
|
|
38173
|
-
const castElement = this.innerType.cast(v2, _extends$
|
|
38173
|
+
const castElement = this.innerType.cast(v2, _extends$I({}, _opts, {
|
|
38174
38174
|
path: `${_opts.path || ""}[${idx}]`
|
|
38175
38175
|
}));
|
|
38176
38176
|
if (castElement !== v2) {
|
|
@@ -38205,7 +38205,7 @@ class ArraySchema extends BaseSchema {
|
|
|
38205
38205
|
for (let idx = 0; idx < value2.length; idx++) {
|
|
38206
38206
|
let item2 = value2[idx];
|
|
38207
38207
|
let path3 = `${options2.path || ""}[${idx}]`;
|
|
38208
|
-
let innerOptions = _extends$
|
|
38208
|
+
let innerOptions = _extends$I({}, options2, {
|
|
38209
38209
|
path: path3,
|
|
38210
38210
|
strict: true,
|
|
38211
38211
|
parent: value2,
|
|
@@ -40360,7 +40360,7 @@ var cleanCommonProps = function cleanCommonProps2(props) {
|
|
|
40360
40360
|
props.selectProps;
|
|
40361
40361
|
props.setValue;
|
|
40362
40362
|
props.theme;
|
|
40363
|
-
var innerProps = _objectWithoutProperties$
|
|
40363
|
+
var innerProps = _objectWithoutProperties$w(props, _excluded$3$1);
|
|
40364
40364
|
return _objectSpread2$1({}, innerProps);
|
|
40365
40365
|
};
|
|
40366
40366
|
function isDocumentElement(el) {
|
|
@@ -40692,7 +40692,7 @@ var MenuPlacer = /* @__PURE__ */ function(_Component) {
|
|
|
40692
40692
|
MenuPlacer.contextType = PortalPlacementContext;
|
|
40693
40693
|
var Menu$2 = function Menu(props) {
|
|
40694
40694
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
40695
|
-
return jsx("div", _extends$
|
|
40695
|
+
return jsx("div", _extends$Q({
|
|
40696
40696
|
css: getStyles("menu", props),
|
|
40697
40697
|
className: cx({
|
|
40698
40698
|
menu: true
|
|
@@ -40713,7 +40713,7 @@ var menuListCSS = function menuListCSS2(_ref4) {
|
|
|
40713
40713
|
};
|
|
40714
40714
|
var MenuList = function MenuList2(props) {
|
|
40715
40715
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
40716
|
-
return jsx("div", _extends$
|
|
40716
|
+
return jsx("div", _extends$Q({
|
|
40717
40717
|
css: getStyles("menuList", props),
|
|
40718
40718
|
className: cx({
|
|
40719
40719
|
"menu-list": true,
|
|
@@ -40734,7 +40734,7 @@ var noOptionsMessageCSS = noticeCSS;
|
|
|
40734
40734
|
var loadingMessageCSS = noticeCSS;
|
|
40735
40735
|
var NoOptionsMessage = function NoOptionsMessage2(props) {
|
|
40736
40736
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, innerProps = props.innerProps;
|
|
40737
|
-
return jsx("div", _extends$
|
|
40737
|
+
return jsx("div", _extends$Q({
|
|
40738
40738
|
css: getStyles("noOptionsMessage", props),
|
|
40739
40739
|
className: cx({
|
|
40740
40740
|
"menu-notice": true,
|
|
@@ -40747,7 +40747,7 @@ NoOptionsMessage.defaultProps = {
|
|
|
40747
40747
|
};
|
|
40748
40748
|
var LoadingMessage = function LoadingMessage2(props) {
|
|
40749
40749
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, innerProps = props.innerProps;
|
|
40750
|
-
return jsx("div", _extends$
|
|
40750
|
+
return jsx("div", _extends$Q({
|
|
40751
40751
|
css: getStyles("loadingMessage", props),
|
|
40752
40752
|
className: cx({
|
|
40753
40753
|
"menu-notice": true,
|
|
@@ -40814,7 +40814,7 @@ var MenuPortal = function MenuPortal2(_ref7) {
|
|
|
40814
40814
|
}, [runAutoUpdate]);
|
|
40815
40815
|
if (!appendTo && menuPosition !== "fixed" || !computedPosition)
|
|
40816
40816
|
return null;
|
|
40817
|
-
var menuWrapper = jsx("div", _extends$
|
|
40817
|
+
var menuWrapper = jsx("div", _extends$Q({
|
|
40818
40818
|
ref: setMenuPortalElement,
|
|
40819
40819
|
css: getStyles("menuPortal", {
|
|
40820
40820
|
offset: computedPosition.offset,
|
|
@@ -40842,7 +40842,7 @@ var containerCSS = function containerCSS2(_ref3) {
|
|
|
40842
40842
|
};
|
|
40843
40843
|
var SelectContainer = function SelectContainer2(props) {
|
|
40844
40844
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
40845
|
-
return jsx("div", _extends$
|
|
40845
|
+
return jsx("div", _extends$Q({
|
|
40846
40846
|
css: getStyles("container", props),
|
|
40847
40847
|
className: cx({
|
|
40848
40848
|
"--is-disabled": isDisabled,
|
|
@@ -40865,7 +40865,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref22) {
|
|
|
40865
40865
|
};
|
|
40866
40866
|
var ValueContainer = function ValueContainer2(props) {
|
|
40867
40867
|
var children = props.children, className = props.className, cx = props.cx, innerProps = props.innerProps, isMulti = props.isMulti, getStyles = props.getStyles, hasValue2 = props.hasValue;
|
|
40868
|
-
return jsx("div", _extends$
|
|
40868
|
+
return jsx("div", _extends$Q({
|
|
40869
40869
|
css: getStyles("valueContainer", props),
|
|
40870
40870
|
className: cx({
|
|
40871
40871
|
"value-container": true,
|
|
@@ -40884,7 +40884,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
|
|
|
40884
40884
|
};
|
|
40885
40885
|
var IndicatorsContainer = function IndicatorsContainer2(props) {
|
|
40886
40886
|
var children = props.children, className = props.className, cx = props.cx, innerProps = props.innerProps, getStyles = props.getStyles;
|
|
40887
|
-
return jsx("div", _extends$
|
|
40887
|
+
return jsx("div", _extends$Q({
|
|
40888
40888
|
css: getStyles("indicatorsContainer", props),
|
|
40889
40889
|
className: cx({
|
|
40890
40890
|
indicators: true
|
|
@@ -40898,8 +40898,8 @@ var _ref2$1 = {
|
|
|
40898
40898
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
|
|
40899
40899
|
};
|
|
40900
40900
|
var Svg = function Svg2(_ref3) {
|
|
40901
|
-
var size = _ref3.size, props = _objectWithoutProperties$
|
|
40902
|
-
return jsx("svg", _extends$
|
|
40901
|
+
var size = _ref3.size, props = _objectWithoutProperties$w(_ref3, _excluded$2$1);
|
|
40902
|
+
return jsx("svg", _extends$Q({
|
|
40903
40903
|
height: size,
|
|
40904
40904
|
width: size,
|
|
40905
40905
|
viewBox: "0 0 20 20",
|
|
@@ -40909,14 +40909,14 @@ var Svg = function Svg2(_ref3) {
|
|
|
40909
40909
|
}, props));
|
|
40910
40910
|
};
|
|
40911
40911
|
var CrossIcon = function CrossIcon2(props) {
|
|
40912
|
-
return jsx(Svg, _extends$
|
|
40912
|
+
return jsx(Svg, _extends$Q({
|
|
40913
40913
|
size: 20
|
|
40914
40914
|
}, props), jsx("path", {
|
|
40915
40915
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
40916
40916
|
}));
|
|
40917
40917
|
};
|
|
40918
40918
|
var DownChevron = function DownChevron2(props) {
|
|
40919
|
-
return jsx(Svg, _extends$
|
|
40919
|
+
return jsx(Svg, _extends$Q({
|
|
40920
40920
|
size: 20
|
|
40921
40921
|
}, props), jsx("path", {
|
|
40922
40922
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -40938,7 +40938,7 @@ var baseCSS = function baseCSS2(_ref3) {
|
|
|
40938
40938
|
var dropdownIndicatorCSS = baseCSS;
|
|
40939
40939
|
var DropdownIndicator = function DropdownIndicator2(props) {
|
|
40940
40940
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, innerProps = props.innerProps;
|
|
40941
|
-
return jsx("div", _extends$
|
|
40941
|
+
return jsx("div", _extends$Q({
|
|
40942
40942
|
css: getStyles("dropdownIndicator", props),
|
|
40943
40943
|
className: cx({
|
|
40944
40944
|
indicator: true,
|
|
@@ -40949,7 +40949,7 @@ var DropdownIndicator = function DropdownIndicator2(props) {
|
|
|
40949
40949
|
var clearIndicatorCSS = baseCSS;
|
|
40950
40950
|
var ClearIndicator = function ClearIndicator2(props) {
|
|
40951
40951
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, innerProps = props.innerProps;
|
|
40952
|
-
return jsx("div", _extends$
|
|
40952
|
+
return jsx("div", _extends$Q({
|
|
40953
40953
|
css: getStyles("clearIndicator", props),
|
|
40954
40954
|
className: cx({
|
|
40955
40955
|
indicator: true,
|
|
@@ -40970,7 +40970,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4) {
|
|
|
40970
40970
|
};
|
|
40971
40971
|
var IndicatorSeparator = function IndicatorSeparator2(props) {
|
|
40972
40972
|
var className = props.className, cx = props.cx, getStyles = props.getStyles, innerProps = props.innerProps;
|
|
40973
|
-
return jsx("span", _extends$
|
|
40973
|
+
return jsx("span", _extends$Q({}, innerProps, {
|
|
40974
40974
|
css: getStyles("indicatorSeparator", props),
|
|
40975
40975
|
className: cx({
|
|
40976
40976
|
"indicator-separator": true
|
|
@@ -41011,7 +41011,7 @@ var LoadingDot = function LoadingDot2(_ref6) {
|
|
|
41011
41011
|
};
|
|
41012
41012
|
var LoadingIndicator = function LoadingIndicator2(props) {
|
|
41013
41013
|
var className = props.className, cx = props.cx, getStyles = props.getStyles, innerProps = props.innerProps, isRtl = props.isRtl;
|
|
41014
|
-
return jsx("div", _extends$
|
|
41014
|
+
return jsx("div", _extends$Q({
|
|
41015
41015
|
css: getStyles("loadingIndicator", props),
|
|
41016
41016
|
className: cx({
|
|
41017
41017
|
indicator: true,
|
|
@@ -41057,7 +41057,7 @@ var css$1 = function css(_ref3) {
|
|
|
41057
41057
|
};
|
|
41058
41058
|
var Control = function Control2(props) {
|
|
41059
41059
|
var children = props.children, cx = props.cx, getStyles = props.getStyles, className = props.className, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
41060
|
-
return jsx("div", _extends$
|
|
41060
|
+
return jsx("div", _extends$Q({
|
|
41061
41061
|
ref: innerRef,
|
|
41062
41062
|
css: getStyles("control", props),
|
|
41063
41063
|
className: cx({
|
|
@@ -41078,12 +41078,12 @@ var groupCSS = function groupCSS2(_ref3) {
|
|
|
41078
41078
|
};
|
|
41079
41079
|
var Group = function Group2(props) {
|
|
41080
41080
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, Heading2 = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label2 = props.label, theme = props.theme, selectProps = props.selectProps;
|
|
41081
|
-
return jsx("div", _extends$
|
|
41081
|
+
return jsx("div", _extends$Q({
|
|
41082
41082
|
css: getStyles("group", props),
|
|
41083
41083
|
className: cx({
|
|
41084
41084
|
group: true
|
|
41085
41085
|
}, className)
|
|
41086
|
-
}, innerProps), jsx(Heading2, _extends$
|
|
41086
|
+
}, innerProps), jsx(Heading2, _extends$Q({}, headingProps, {
|
|
41087
41087
|
selectProps,
|
|
41088
41088
|
theme,
|
|
41089
41089
|
getStyles,
|
|
@@ -41109,8 +41109,8 @@ var GroupHeading = function GroupHeading2(props) {
|
|
|
41109
41109
|
var getStyles = props.getStyles, cx = props.cx, className = props.className;
|
|
41110
41110
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
41111
41111
|
_cleanCommonProps.data;
|
|
41112
|
-
var innerProps = _objectWithoutProperties$
|
|
41113
|
-
return jsx("div", _extends$
|
|
41112
|
+
var innerProps = _objectWithoutProperties$w(_cleanCommonProps, _excluded$1$1);
|
|
41113
|
+
return jsx("div", _extends$Q({
|
|
41114
41114
|
css: getStyles("groupHeading", props),
|
|
41115
41115
|
className: cx({
|
|
41116
41116
|
"group-heading": true
|
|
@@ -41160,14 +41160,14 @@ var inputStyle = function inputStyle2(isHidden2) {
|
|
|
41160
41160
|
};
|
|
41161
41161
|
var Input$2 = function Input(props) {
|
|
41162
41162
|
var className = props.className, cx = props.cx, getStyles = props.getStyles, value2 = props.value;
|
|
41163
|
-
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden2 = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties$
|
|
41163
|
+
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden2 = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties$w(_cleanCommonProps, _excluded$6);
|
|
41164
41164
|
return jsx("div", {
|
|
41165
41165
|
className: cx({
|
|
41166
41166
|
"input-container": true
|
|
41167
41167
|
}, className),
|
|
41168
41168
|
css: getStyles("input", props),
|
|
41169
41169
|
"data-value": value2 || ""
|
|
41170
|
-
}, jsx("input", _extends$
|
|
41170
|
+
}, jsx("input", _extends$Q({
|
|
41171
41171
|
className: cx({
|
|
41172
41172
|
input: true
|
|
41173
41173
|
}, inputClassName),
|
|
@@ -41223,7 +41223,7 @@ var MultiValueContainer = MultiValueGeneric;
|
|
|
41223
41223
|
var MultiValueLabel = MultiValueGeneric;
|
|
41224
41224
|
function MultiValueRemove(_ref5) {
|
|
41225
41225
|
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
41226
|
-
return jsx("div", _extends$
|
|
41226
|
+
return jsx("div", _extends$Q({
|
|
41227
41227
|
role: "button"
|
|
41228
41228
|
}, innerProps), children || jsx(CrossIcon, {
|
|
41229
41229
|
size: 14
|
|
@@ -41283,7 +41283,7 @@ var optionCSS = function optionCSS2(_ref3) {
|
|
|
41283
41283
|
};
|
|
41284
41284
|
var Option = function Option2(props) {
|
|
41285
41285
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
41286
|
-
return jsx("div", _extends$
|
|
41286
|
+
return jsx("div", _extends$Q({
|
|
41287
41287
|
css: getStyles("option", props),
|
|
41288
41288
|
className: cx({
|
|
41289
41289
|
option: true,
|
|
@@ -41307,7 +41307,7 @@ var placeholderCSS = function placeholderCSS2(_ref3) {
|
|
|
41307
41307
|
};
|
|
41308
41308
|
var Placeholder = function Placeholder2(props) {
|
|
41309
41309
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, innerProps = props.innerProps;
|
|
41310
|
-
return jsx("div", _extends$
|
|
41310
|
+
return jsx("div", _extends$Q({
|
|
41311
41311
|
css: getStyles("placeholder", props),
|
|
41312
41312
|
className: cx({
|
|
41313
41313
|
placeholder: true
|
|
@@ -41330,7 +41330,7 @@ var css2 = function css3(_ref3) {
|
|
|
41330
41330
|
};
|
|
41331
41331
|
var SingleValue = function SingleValue2(props) {
|
|
41332
41332
|
var children = props.children, className = props.className, cx = props.cx, getStyles = props.getStyles, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
41333
|
-
return jsx("div", _extends$
|
|
41333
|
+
return jsx("div", _extends$Q({
|
|
41334
41334
|
css: getStyles("singleValue", props),
|
|
41335
41335
|
className: cx({
|
|
41336
41336
|
"single-value": true,
|
|
@@ -41370,7 +41370,7 @@ var defaultComponents = function defaultComponents2(props) {
|
|
|
41370
41370
|
};
|
|
41371
41371
|
var _excluded$5 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
41372
41372
|
function useStateManager(_ref3) {
|
|
41373
|
-
var _ref$defaultInputValu = _ref3.defaultInputValue, defaultInputValue = _ref$defaultInputValu === void 0 ? "" : _ref$defaultInputValu, _ref$defaultMenuIsOpe = _ref3.defaultMenuIsOpen, defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, _ref$defaultValue = _ref3.defaultValue, defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, propsInputValue = _ref3.inputValue, propsMenuIsOpen = _ref3.menuIsOpen, propsOnChange = _ref3.onChange, propsOnInputChange = _ref3.onInputChange, propsOnMenuClose = _ref3.onMenuClose, propsOnMenuOpen = _ref3.onMenuOpen, propsValue = _ref3.value, restSelectProps = _objectWithoutProperties$
|
|
41373
|
+
var _ref$defaultInputValu = _ref3.defaultInputValue, defaultInputValue = _ref$defaultInputValu === void 0 ? "" : _ref$defaultInputValu, _ref$defaultMenuIsOpe = _ref3.defaultMenuIsOpen, defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, _ref$defaultValue = _ref3.defaultValue, defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, propsInputValue = _ref3.inputValue, propsMenuIsOpen = _ref3.menuIsOpen, propsOnChange = _ref3.onChange, propsOnInputChange = _ref3.onInputChange, propsOnMenuClose = _ref3.onMenuClose, propsOnMenuOpen = _ref3.onMenuOpen, propsValue = _ref3.value, restSelectProps = _objectWithoutProperties$w(_ref3, _excluded$5);
|
|
41374
41374
|
var _useState = useState(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray$a(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
|
|
41375
41375
|
var _useState3 = useState(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray$a(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
|
|
41376
41376
|
var _useState5 = useState(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray$a(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
|
|
@@ -41464,7 +41464,7 @@ var _ref = {
|
|
|
41464
41464
|
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
|
|
41465
41465
|
};
|
|
41466
41466
|
var A11yText = function A11yText2(props) {
|
|
41467
|
-
return jsx("span", _extends$
|
|
41467
|
+
return jsx("span", _extends$Q({
|
|
41468
41468
|
css: _ref
|
|
41469
41469
|
}, props));
|
|
41470
41470
|
};
|
|
@@ -41909,9 +41909,9 @@ var createFilter = function createFilter2(config2) {
|
|
|
41909
41909
|
};
|
|
41910
41910
|
var _excluded$4 = ["innerRef"];
|
|
41911
41911
|
function DummyInput(_ref3) {
|
|
41912
|
-
var innerRef = _ref3.innerRef, props = _objectWithoutProperties$
|
|
41912
|
+
var innerRef = _ref3.innerRef, props = _objectWithoutProperties$w(_ref3, _excluded$4);
|
|
41913
41913
|
var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
|
|
41914
|
-
return jsx("input", _extends$
|
|
41914
|
+
return jsx("input", _extends$Q({
|
|
41915
41915
|
ref: innerRef
|
|
41916
41916
|
}, filteredProps, {
|
|
41917
41917
|
css: /* @__PURE__ */ css$2({
|
|
@@ -43178,7 +43178,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43178
43178
|
"aria-describedby": this.getElementId("placeholder")
|
|
43179
43179
|
});
|
|
43180
43180
|
if (!isSearchable) {
|
|
43181
|
-
return /* @__PURE__ */ React.createElement(DummyInput, _extends$
|
|
43181
|
+
return /* @__PURE__ */ React.createElement(DummyInput, _extends$Q({
|
|
43182
43182
|
id: id2,
|
|
43183
43183
|
innerRef: this.getInputRef,
|
|
43184
43184
|
onBlur: this.onInputBlur,
|
|
@@ -43191,7 +43191,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43191
43191
|
value: ""
|
|
43192
43192
|
}, ariaAttributes));
|
|
43193
43193
|
}
|
|
43194
|
-
return /* @__PURE__ */ React.createElement(Input3, _extends$
|
|
43194
|
+
return /* @__PURE__ */ React.createElement(Input3, _extends$Q({}, commonProps, {
|
|
43195
43195
|
autoCapitalize: "none",
|
|
43196
43196
|
autoComplete: "off",
|
|
43197
43197
|
autoCorrect: "off",
|
|
@@ -43218,7 +43218,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43218
43218
|
var _this$props9 = this.props, controlShouldRenderValue = _this$props9.controlShouldRenderValue, isDisabled = _this$props9.isDisabled, isMulti = _this$props9.isMulti, inputValue = _this$props9.inputValue, placeholder = _this$props9.placeholder;
|
|
43219
43219
|
var _this$state5 = this.state, selectValue = _this$state5.selectValue, focusedValue = _this$state5.focusedValue, isFocused = _this$state5.isFocused;
|
|
43220
43220
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
43221
|
-
return inputValue ? null : /* @__PURE__ */ React.createElement(Placeholder3, _extends$
|
|
43221
|
+
return inputValue ? null : /* @__PURE__ */ React.createElement(Placeholder3, _extends$Q({}, commonProps, {
|
|
43222
43222
|
key: "placeholder",
|
|
43223
43223
|
isDisabled,
|
|
43224
43224
|
isFocused,
|
|
@@ -43231,7 +43231,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43231
43231
|
return selectValue.map(function(opt, index2) {
|
|
43232
43232
|
var isOptionFocused = opt === focusedValue;
|
|
43233
43233
|
var key2 = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
43234
|
-
return /* @__PURE__ */ React.createElement(MultiValue3, _extends$
|
|
43234
|
+
return /* @__PURE__ */ React.createElement(MultiValue3, _extends$Q({}, commonProps, {
|
|
43235
43235
|
components: {
|
|
43236
43236
|
Container: MultiValueContainer2,
|
|
43237
43237
|
Label: MultiValueLabel2,
|
|
@@ -43260,7 +43260,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43260
43260
|
return null;
|
|
43261
43261
|
}
|
|
43262
43262
|
var singleValue = selectValue[0];
|
|
43263
|
-
return /* @__PURE__ */ React.createElement(SingleValue3, _extends$
|
|
43263
|
+
return /* @__PURE__ */ React.createElement(SingleValue3, _extends$Q({}, commonProps, {
|
|
43264
43264
|
data: singleValue,
|
|
43265
43265
|
isDisabled
|
|
43266
43266
|
}), this.formatOptionLabel(singleValue, "value"));
|
|
@@ -43280,7 +43280,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43280
43280
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
43281
43281
|
"aria-hidden": "true"
|
|
43282
43282
|
};
|
|
43283
|
-
return /* @__PURE__ */ React.createElement(ClearIndicator3, _extends$
|
|
43283
|
+
return /* @__PURE__ */ React.createElement(ClearIndicator3, _extends$Q({}, commonProps, {
|
|
43284
43284
|
innerProps,
|
|
43285
43285
|
isFocused
|
|
43286
43286
|
}));
|
|
@@ -43297,7 +43297,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43297
43297
|
var innerProps = {
|
|
43298
43298
|
"aria-hidden": "true"
|
|
43299
43299
|
};
|
|
43300
|
-
return /* @__PURE__ */ React.createElement(LoadingIndicator3, _extends$
|
|
43300
|
+
return /* @__PURE__ */ React.createElement(LoadingIndicator3, _extends$Q({}, commonProps, {
|
|
43301
43301
|
innerProps,
|
|
43302
43302
|
isDisabled,
|
|
43303
43303
|
isFocused
|
|
@@ -43312,7 +43312,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43312
43312
|
var commonProps = this.commonProps;
|
|
43313
43313
|
var isDisabled = this.props.isDisabled;
|
|
43314
43314
|
var isFocused = this.state.isFocused;
|
|
43315
|
-
return /* @__PURE__ */ React.createElement(IndicatorSeparator3, _extends$
|
|
43315
|
+
return /* @__PURE__ */ React.createElement(IndicatorSeparator3, _extends$Q({}, commonProps, {
|
|
43316
43316
|
isDisabled,
|
|
43317
43317
|
isFocused
|
|
43318
43318
|
}));
|
|
@@ -43331,7 +43331,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43331
43331
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
43332
43332
|
"aria-hidden": "true"
|
|
43333
43333
|
};
|
|
43334
|
-
return /* @__PURE__ */ React.createElement(DropdownIndicator3, _extends$
|
|
43334
|
+
return /* @__PURE__ */ React.createElement(DropdownIndicator3, _extends$Q({}, commonProps, {
|
|
43335
43335
|
innerProps,
|
|
43336
43336
|
isDisabled,
|
|
43337
43337
|
isFocused
|
|
@@ -43364,7 +43364,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43364
43364
|
onMouseOver: onHover,
|
|
43365
43365
|
tabIndex: -1
|
|
43366
43366
|
};
|
|
43367
|
-
return /* @__PURE__ */ React.createElement(Option3, _extends$
|
|
43367
|
+
return /* @__PURE__ */ React.createElement(Option3, _extends$Q({}, commonProps, {
|
|
43368
43368
|
innerProps,
|
|
43369
43369
|
data: data2,
|
|
43370
43370
|
isDisabled,
|
|
@@ -43384,7 +43384,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43384
43384
|
var _data = item2.data, options2 = item2.options, groupIndex = item2.index;
|
|
43385
43385
|
var groupId = "".concat(_this4.getElementId("group"), "-").concat(groupIndex);
|
|
43386
43386
|
var headingId = "".concat(groupId, "-heading");
|
|
43387
|
-
return /* @__PURE__ */ React.createElement(Group3, _extends$
|
|
43387
|
+
return /* @__PURE__ */ React.createElement(Group3, _extends$Q({}, commonProps, {
|
|
43388
43388
|
key: groupId,
|
|
43389
43389
|
data: _data,
|
|
43390
43390
|
options: options2,
|
|
@@ -43423,9 +43423,9 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43423
43423
|
menuPosition,
|
|
43424
43424
|
menuShouldScrollIntoView
|
|
43425
43425
|
};
|
|
43426
|
-
var menuElement = /* @__PURE__ */ React.createElement(MenuPlacer, _extends$
|
|
43426
|
+
var menuElement = /* @__PURE__ */ React.createElement(MenuPlacer, _extends$Q({}, commonProps, menuPlacementProps), function(_ref4) {
|
|
43427
43427
|
var ref = _ref4.ref, _ref4$placerProps = _ref4.placerProps, placement = _ref4$placerProps.placement, maxHeight = _ref4$placerProps.maxHeight;
|
|
43428
|
-
return /* @__PURE__ */ React.createElement(Menu3, _extends$
|
|
43428
|
+
return /* @__PURE__ */ React.createElement(Menu3, _extends$Q({}, commonProps, menuPlacementProps, {
|
|
43429
43429
|
innerRef: ref,
|
|
43430
43430
|
innerProps: {
|
|
43431
43431
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -43440,7 +43440,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43440
43440
|
onBottomArrive: onMenuScrollToBottom,
|
|
43441
43441
|
lockEnabled: menuShouldBlockScroll
|
|
43442
43442
|
}, function(scrollTargetRef) {
|
|
43443
|
-
return /* @__PURE__ */ React.createElement(MenuList3, _extends$
|
|
43443
|
+
return /* @__PURE__ */ React.createElement(MenuList3, _extends$Q({}, commonProps, {
|
|
43444
43444
|
innerRef: function innerRef(instance2) {
|
|
43445
43445
|
_this4.getMenuListRef(instance2);
|
|
43446
43446
|
scrollTargetRef(instance2);
|
|
@@ -43451,7 +43451,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43451
43451
|
}), menuUI);
|
|
43452
43452
|
}));
|
|
43453
43453
|
});
|
|
43454
|
-
return menuPortalTarget || menuPosition === "fixed" ? /* @__PURE__ */ React.createElement(MenuPortal3, _extends$
|
|
43454
|
+
return menuPortalTarget || menuPosition === "fixed" ? /* @__PURE__ */ React.createElement(MenuPortal3, _extends$Q({}, commonProps, {
|
|
43455
43455
|
appendTo: menuPortalTarget,
|
|
43456
43456
|
controlElement: this.controlRef,
|
|
43457
43457
|
menuPlacement,
|
|
@@ -43505,7 +43505,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43505
43505
|
var commonProps = this.commonProps;
|
|
43506
43506
|
var _this$state6 = this.state, ariaSelection = _this$state6.ariaSelection, focusedOption = _this$state6.focusedOption, focusedValue = _this$state6.focusedValue, isFocused = _this$state6.isFocused, selectValue = _this$state6.selectValue;
|
|
43507
43507
|
var focusableOptions = this.getFocusableOptions();
|
|
43508
|
-
return /* @__PURE__ */ React.createElement(LiveRegion, _extends$
|
|
43508
|
+
return /* @__PURE__ */ React.createElement(LiveRegion, _extends$Q({}, commonProps, {
|
|
43509
43509
|
id: this.getElementId("live-region"),
|
|
43510
43510
|
ariaSelection,
|
|
43511
43511
|
focusedOption,
|
|
@@ -43522,7 +43522,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43522
43522
|
var _this$props14 = this.props, className = _this$props14.className, id2 = _this$props14.id, isDisabled = _this$props14.isDisabled, menuIsOpen = _this$props14.menuIsOpen;
|
|
43523
43523
|
var isFocused = this.state.isFocused;
|
|
43524
43524
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
43525
|
-
return /* @__PURE__ */ React.createElement(SelectContainer3, _extends$
|
|
43525
|
+
return /* @__PURE__ */ React.createElement(SelectContainer3, _extends$Q({}, commonProps, {
|
|
43526
43526
|
className,
|
|
43527
43527
|
innerProps: {
|
|
43528
43528
|
id: id2,
|
|
@@ -43530,7 +43530,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43530
43530
|
},
|
|
43531
43531
|
isDisabled,
|
|
43532
43532
|
isFocused
|
|
43533
|
-
}), this.renderLiveRegion(), /* @__PURE__ */ React.createElement(Control3, _extends$
|
|
43533
|
+
}), this.renderLiveRegion(), /* @__PURE__ */ React.createElement(Control3, _extends$Q({}, commonProps, {
|
|
43534
43534
|
innerRef: this.getControlRef,
|
|
43535
43535
|
innerProps: {
|
|
43536
43536
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -43539,9 +43539,9 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43539
43539
|
isDisabled,
|
|
43540
43540
|
isFocused,
|
|
43541
43541
|
menuIsOpen
|
|
43542
|
-
}), /* @__PURE__ */ React.createElement(ValueContainer3, _extends$
|
|
43542
|
+
}), /* @__PURE__ */ React.createElement(ValueContainer3, _extends$Q({}, commonProps, {
|
|
43543
43543
|
isDisabled
|
|
43544
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ React.createElement(IndicatorsContainer3, _extends$
|
|
43544
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ React.createElement(IndicatorsContainer3, _extends$Q({}, commonProps, {
|
|
43545
43545
|
isDisabled
|
|
43546
43546
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
43547
43547
|
}
|
|
@@ -43592,7 +43592,7 @@ var Select$2 = /* @__PURE__ */ function(_Component) {
|
|
|
43592
43592
|
Select$2.defaultProps = defaultProps$6;
|
|
43593
43593
|
var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
43594
43594
|
var baseSelectProps = useStateManager(props);
|
|
43595
|
-
return /* @__PURE__ */ React.createElement(Select$2, _extends$
|
|
43595
|
+
return /* @__PURE__ */ React.createElement(Select$2, _extends$Q({
|
|
43596
43596
|
ref
|
|
43597
43597
|
}, baseSelectProps));
|
|
43598
43598
|
});
|
|
@@ -50567,7 +50567,7 @@ function createMemoryHistory(options2) {
|
|
|
50567
50567
|
}
|
|
50568
50568
|
var _options3 = options2, _options3$initialEntr = _options3.initialEntries, initialEntries = _options3$initialEntr === void 0 ? ["/"] : _options3$initialEntr, initialIndex = _options3.initialIndex;
|
|
50569
50569
|
var entries = initialEntries.map(function(entry) {
|
|
50570
|
-
var location3 = readOnly(_extends$
|
|
50570
|
+
var location3 = readOnly(_extends$Q({
|
|
50571
50571
|
pathname: "/",
|
|
50572
50572
|
search: "",
|
|
50573
50573
|
hash: "",
|
|
@@ -50588,7 +50588,7 @@ function createMemoryHistory(options2) {
|
|
|
50588
50588
|
if (state === void 0) {
|
|
50589
50589
|
state = null;
|
|
50590
50590
|
}
|
|
50591
|
-
return readOnly(_extends$
|
|
50591
|
+
return readOnly(_extends$Q({
|
|
50592
50592
|
pathname: location2.pathname,
|
|
50593
50593
|
search: "",
|
|
50594
50594
|
hash: ""
|
|
@@ -51393,8 +51393,8 @@ const Country = ({ id: id2 }) => {
|
|
|
51393
51393
|
const country = countries$1.find((country2) => country2.id === id2);
|
|
51394
51394
|
return /* @__PURE__ */ React__default.createElement("span", null, country == null ? void 0 : country.label);
|
|
51395
51395
|
};
|
|
51396
|
-
function _extends$
|
|
51397
|
-
_extends$
|
|
51396
|
+
function _extends$H() {
|
|
51397
|
+
_extends$H = Object.assign || function(target) {
|
|
51398
51398
|
for (var i = 1; i < arguments.length; i++) {
|
|
51399
51399
|
var source2 = arguments[i];
|
|
51400
51400
|
for (var key2 in source2) {
|
|
@@ -51405,12 +51405,12 @@ function _extends$I() {
|
|
|
51405
51405
|
}
|
|
51406
51406
|
return target;
|
|
51407
51407
|
};
|
|
51408
|
-
return _extends$
|
|
51408
|
+
return _extends$H.apply(this, arguments);
|
|
51409
51409
|
}
|
|
51410
|
-
function _objectWithoutProperties$
|
|
51410
|
+
function _objectWithoutProperties$v(source2, excluded) {
|
|
51411
51411
|
if (source2 == null)
|
|
51412
51412
|
return {};
|
|
51413
|
-
var target = _objectWithoutPropertiesLoose$
|
|
51413
|
+
var target = _objectWithoutPropertiesLoose$w(source2, excluded);
|
|
51414
51414
|
var key2, i;
|
|
51415
51415
|
if (Object.getOwnPropertySymbols) {
|
|
51416
51416
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
|
@@ -51425,7 +51425,7 @@ function _objectWithoutProperties$w(source2, excluded) {
|
|
|
51425
51425
|
}
|
|
51426
51426
|
return target;
|
|
51427
51427
|
}
|
|
51428
|
-
function _objectWithoutPropertiesLoose$
|
|
51428
|
+
function _objectWithoutPropertiesLoose$w(source2, excluded) {
|
|
51429
51429
|
if (source2 == null)
|
|
51430
51430
|
return {};
|
|
51431
51431
|
var target = {};
|
|
@@ -51440,8 +51440,8 @@ function _objectWithoutPropertiesLoose$x(source2, excluded) {
|
|
|
51440
51440
|
return target;
|
|
51441
51441
|
}
|
|
51442
51442
|
var ArrowDown = forwardRef(function(_ref3, ref) {
|
|
51443
|
-
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$
|
|
51444
|
-
return /* @__PURE__ */ React__default.createElement("svg", _extends$
|
|
51443
|
+
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$v(_ref3, ["color", "size"]);
|
|
51444
|
+
return /* @__PURE__ */ React__default.createElement("svg", _extends$H({
|
|
51445
51445
|
ref,
|
|
51446
51446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
51447
51447
|
width: size,
|
|
@@ -51467,8 +51467,8 @@ ArrowDown.propTypes = {
|
|
|
51467
51467
|
};
|
|
51468
51468
|
ArrowDown.displayName = "ArrowDown";
|
|
51469
51469
|
var ArrowDown$1 = ArrowDown;
|
|
51470
|
-
function _extends$
|
|
51471
|
-
_extends$
|
|
51470
|
+
function _extends$G() {
|
|
51471
|
+
_extends$G = Object.assign || function(target) {
|
|
51472
51472
|
for (var i = 1; i < arguments.length; i++) {
|
|
51473
51473
|
var source2 = arguments[i];
|
|
51474
51474
|
for (var key2 in source2) {
|
|
@@ -51479,12 +51479,12 @@ function _extends$H() {
|
|
|
51479
51479
|
}
|
|
51480
51480
|
return target;
|
|
51481
51481
|
};
|
|
51482
|
-
return _extends$
|
|
51482
|
+
return _extends$G.apply(this, arguments);
|
|
51483
51483
|
}
|
|
51484
|
-
function _objectWithoutProperties$
|
|
51484
|
+
function _objectWithoutProperties$u(source2, excluded) {
|
|
51485
51485
|
if (source2 == null)
|
|
51486
51486
|
return {};
|
|
51487
|
-
var target = _objectWithoutPropertiesLoose$
|
|
51487
|
+
var target = _objectWithoutPropertiesLoose$v(source2, excluded);
|
|
51488
51488
|
var key2, i;
|
|
51489
51489
|
if (Object.getOwnPropertySymbols) {
|
|
51490
51490
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
|
@@ -51499,7 +51499,7 @@ function _objectWithoutProperties$v(source2, excluded) {
|
|
|
51499
51499
|
}
|
|
51500
51500
|
return target;
|
|
51501
51501
|
}
|
|
51502
|
-
function _objectWithoutPropertiesLoose$
|
|
51502
|
+
function _objectWithoutPropertiesLoose$v(source2, excluded) {
|
|
51503
51503
|
if (source2 == null)
|
|
51504
51504
|
return {};
|
|
51505
51505
|
var target = {};
|
|
@@ -51514,8 +51514,8 @@ function _objectWithoutPropertiesLoose$w(source2, excluded) {
|
|
|
51514
51514
|
return target;
|
|
51515
51515
|
}
|
|
51516
51516
|
var ArrowUp = forwardRef(function(_ref3, ref) {
|
|
51517
|
-
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$
|
|
51518
|
-
return /* @__PURE__ */ React__default.createElement("svg", _extends$
|
|
51517
|
+
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$u(_ref3, ["color", "size"]);
|
|
51518
|
+
return /* @__PURE__ */ React__default.createElement("svg", _extends$G({
|
|
51519
51519
|
ref,
|
|
51520
51520
|
xmlns: "http://www.w3.org/2000/svg",
|
|
51521
51521
|
width: size,
|
|
@@ -51541,8 +51541,8 @@ ArrowUp.propTypes = {
|
|
|
51541
51541
|
};
|
|
51542
51542
|
ArrowUp.displayName = "ArrowUp";
|
|
51543
51543
|
var ArrowUp$1 = ArrowUp;
|
|
51544
|
-
function _extends$
|
|
51545
|
-
_extends$
|
|
51544
|
+
function _extends$F() {
|
|
51545
|
+
_extends$F = Object.assign || function(target) {
|
|
51546
51546
|
for (var i = 1; i < arguments.length; i++) {
|
|
51547
51547
|
var source2 = arguments[i];
|
|
51548
51548
|
for (var key2 in source2) {
|
|
@@ -51553,12 +51553,12 @@ function _extends$G() {
|
|
|
51553
51553
|
}
|
|
51554
51554
|
return target;
|
|
51555
51555
|
};
|
|
51556
|
-
return _extends$
|
|
51556
|
+
return _extends$F.apply(this, arguments);
|
|
51557
51557
|
}
|
|
51558
|
-
function _objectWithoutProperties$
|
|
51558
|
+
function _objectWithoutProperties$t(source2, excluded) {
|
|
51559
51559
|
if (source2 == null)
|
|
51560
51560
|
return {};
|
|
51561
|
-
var target = _objectWithoutPropertiesLoose$
|
|
51561
|
+
var target = _objectWithoutPropertiesLoose$u(source2, excluded);
|
|
51562
51562
|
var key2, i;
|
|
51563
51563
|
if (Object.getOwnPropertySymbols) {
|
|
51564
51564
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
|
@@ -51573,7 +51573,7 @@ function _objectWithoutProperties$u(source2, excluded) {
|
|
|
51573
51573
|
}
|
|
51574
51574
|
return target;
|
|
51575
51575
|
}
|
|
51576
|
-
function _objectWithoutPropertiesLoose$
|
|
51576
|
+
function _objectWithoutPropertiesLoose$u(source2, excluded) {
|
|
51577
51577
|
if (source2 == null)
|
|
51578
51578
|
return {};
|
|
51579
51579
|
var target = {};
|
|
@@ -51588,8 +51588,8 @@ function _objectWithoutPropertiesLoose$v(source2, excluded) {
|
|
|
51588
51588
|
return target;
|
|
51589
51589
|
}
|
|
51590
51590
|
var Calendar = forwardRef(function(_ref3, ref) {
|
|
51591
|
-
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$
|
|
51592
|
-
return /* @__PURE__ */ React__default.createElement("svg", _extends$
|
|
51591
|
+
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$t(_ref3, ["color", "size"]);
|
|
51592
|
+
return /* @__PURE__ */ React__default.createElement("svg", _extends$F({
|
|
51593
51593
|
ref,
|
|
51594
51594
|
xmlns: "http://www.w3.org/2000/svg",
|
|
51595
51595
|
width: size,
|
|
@@ -51630,8 +51630,8 @@ Calendar.propTypes = {
|
|
|
51630
51630
|
};
|
|
51631
51631
|
Calendar.displayName = "Calendar";
|
|
51632
51632
|
var Calendar$1 = Calendar;
|
|
51633
|
-
function _extends$
|
|
51634
|
-
_extends$
|
|
51633
|
+
function _extends$E() {
|
|
51634
|
+
_extends$E = Object.assign || function(target) {
|
|
51635
51635
|
for (var i = 1; i < arguments.length; i++) {
|
|
51636
51636
|
var source2 = arguments[i];
|
|
51637
51637
|
for (var key2 in source2) {
|
|
@@ -51642,12 +51642,12 @@ function _extends$F() {
|
|
|
51642
51642
|
}
|
|
51643
51643
|
return target;
|
|
51644
51644
|
};
|
|
51645
|
-
return _extends$
|
|
51645
|
+
return _extends$E.apply(this, arguments);
|
|
51646
51646
|
}
|
|
51647
|
-
function _objectWithoutProperties$
|
|
51647
|
+
function _objectWithoutProperties$s(source2, excluded) {
|
|
51648
51648
|
if (source2 == null)
|
|
51649
51649
|
return {};
|
|
51650
|
-
var target = _objectWithoutPropertiesLoose$
|
|
51650
|
+
var target = _objectWithoutPropertiesLoose$t(source2, excluded);
|
|
51651
51651
|
var key2, i;
|
|
51652
51652
|
if (Object.getOwnPropertySymbols) {
|
|
51653
51653
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
|
@@ -51662,7 +51662,7 @@ function _objectWithoutProperties$t(source2, excluded) {
|
|
|
51662
51662
|
}
|
|
51663
51663
|
return target;
|
|
51664
51664
|
}
|
|
51665
|
-
function _objectWithoutPropertiesLoose$
|
|
51665
|
+
function _objectWithoutPropertiesLoose$t(source2, excluded) {
|
|
51666
51666
|
if (source2 == null)
|
|
51667
51667
|
return {};
|
|
51668
51668
|
var target = {};
|
|
@@ -51677,8 +51677,8 @@ function _objectWithoutPropertiesLoose$u(source2, excluded) {
|
|
|
51677
51677
|
return target;
|
|
51678
51678
|
}
|
|
51679
51679
|
var Clock = forwardRef(function(_ref3, ref) {
|
|
51680
|
-
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$
|
|
51681
|
-
return /* @__PURE__ */ React__default.createElement("svg", _extends$
|
|
51680
|
+
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$s(_ref3, ["color", "size"]);
|
|
51681
|
+
return /* @__PURE__ */ React__default.createElement("svg", _extends$E({
|
|
51682
51682
|
ref,
|
|
51683
51683
|
xmlns: "http://www.w3.org/2000/svg",
|
|
51684
51684
|
width: size,
|
|
@@ -51703,75 +51703,6 @@ Clock.propTypes = {
|
|
|
51703
51703
|
};
|
|
51704
51704
|
Clock.displayName = "Clock";
|
|
51705
51705
|
var Clock$1 = Clock;
|
|
51706
|
-
function _extends$E() {
|
|
51707
|
-
_extends$E = Object.assign || function(target) {
|
|
51708
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
51709
|
-
var source2 = arguments[i];
|
|
51710
|
-
for (var key2 in source2) {
|
|
51711
|
-
if (Object.prototype.hasOwnProperty.call(source2, key2)) {
|
|
51712
|
-
target[key2] = source2[key2];
|
|
51713
|
-
}
|
|
51714
|
-
}
|
|
51715
|
-
}
|
|
51716
|
-
return target;
|
|
51717
|
-
};
|
|
51718
|
-
return _extends$E.apply(this, arguments);
|
|
51719
|
-
}
|
|
51720
|
-
function _objectWithoutProperties$s(source2, excluded) {
|
|
51721
|
-
if (source2 == null)
|
|
51722
|
-
return {};
|
|
51723
|
-
var target = _objectWithoutPropertiesLoose$t(source2, excluded);
|
|
51724
|
-
var key2, i;
|
|
51725
|
-
if (Object.getOwnPropertySymbols) {
|
|
51726
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
|
51727
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
51728
|
-
key2 = sourceSymbolKeys[i];
|
|
51729
|
-
if (excluded.indexOf(key2) >= 0)
|
|
51730
|
-
continue;
|
|
51731
|
-
if (!Object.prototype.propertyIsEnumerable.call(source2, key2))
|
|
51732
|
-
continue;
|
|
51733
|
-
target[key2] = source2[key2];
|
|
51734
|
-
}
|
|
51735
|
-
}
|
|
51736
|
-
return target;
|
|
51737
|
-
}
|
|
51738
|
-
function _objectWithoutPropertiesLoose$t(source2, excluded) {
|
|
51739
|
-
if (source2 == null)
|
|
51740
|
-
return {};
|
|
51741
|
-
var target = {};
|
|
51742
|
-
var sourceKeys = Object.keys(source2);
|
|
51743
|
-
var key2, i;
|
|
51744
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
51745
|
-
key2 = sourceKeys[i];
|
|
51746
|
-
if (excluded.indexOf(key2) >= 0)
|
|
51747
|
-
continue;
|
|
51748
|
-
target[key2] = source2[key2];
|
|
51749
|
-
}
|
|
51750
|
-
return target;
|
|
51751
|
-
}
|
|
51752
|
-
var Edit2 = forwardRef(function(_ref3, ref) {
|
|
51753
|
-
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$s(_ref3, ["color", "size"]);
|
|
51754
|
-
return /* @__PURE__ */ React__default.createElement("svg", _extends$E({
|
|
51755
|
-
ref,
|
|
51756
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
51757
|
-
width: size,
|
|
51758
|
-
height: size,
|
|
51759
|
-
viewBox: "0 0 24 24",
|
|
51760
|
-
fill: "none",
|
|
51761
|
-
stroke: color2,
|
|
51762
|
-
strokeWidth: "2",
|
|
51763
|
-
strokeLinecap: "round",
|
|
51764
|
-
strokeLinejoin: "round"
|
|
51765
|
-
}, rest), /* @__PURE__ */ React__default.createElement("path", {
|
|
51766
|
-
d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"
|
|
51767
|
-
}));
|
|
51768
|
-
});
|
|
51769
|
-
Edit2.propTypes = {
|
|
51770
|
-
color: PropTypes$1.string,
|
|
51771
|
-
size: PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.number])
|
|
51772
|
-
};
|
|
51773
|
-
Edit2.displayName = "Edit2";
|
|
51774
|
-
var Edit2$1 = Edit2;
|
|
51775
51706
|
function _extends$D() {
|
|
51776
51707
|
_extends$D = Object.assign || function(target) {
|
|
51777
51708
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -51818,7 +51749,7 @@ function _objectWithoutPropertiesLoose$s(source2, excluded) {
|
|
|
51818
51749
|
}
|
|
51819
51750
|
return target;
|
|
51820
51751
|
}
|
|
51821
|
-
var
|
|
51752
|
+
var Edit2 = forwardRef(function(_ref3, ref) {
|
|
51822
51753
|
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$r(_ref3, ["color", "size"]);
|
|
51823
51754
|
return /* @__PURE__ */ React__default.createElement("svg", _extends$D({
|
|
51824
51755
|
ref,
|
|
@@ -51832,19 +51763,15 @@ var Eye = forwardRef(function(_ref3, ref) {
|
|
|
51832
51763
|
strokeLinecap: "round",
|
|
51833
51764
|
strokeLinejoin: "round"
|
|
51834
51765
|
}, rest), /* @__PURE__ */ React__default.createElement("path", {
|
|
51835
|
-
d: "
|
|
51836
|
-
}), /* @__PURE__ */ React__default.createElement("circle", {
|
|
51837
|
-
cx: "12",
|
|
51838
|
-
cy: "12",
|
|
51839
|
-
r: "3"
|
|
51766
|
+
d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"
|
|
51840
51767
|
}));
|
|
51841
51768
|
});
|
|
51842
|
-
|
|
51769
|
+
Edit2.propTypes = {
|
|
51843
51770
|
color: PropTypes$1.string,
|
|
51844
51771
|
size: PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.number])
|
|
51845
51772
|
};
|
|
51846
|
-
|
|
51847
|
-
var
|
|
51773
|
+
Edit2.displayName = "Edit2";
|
|
51774
|
+
var Edit2$1 = Edit2;
|
|
51848
51775
|
function _extends$C() {
|
|
51849
51776
|
_extends$C = Object.assign || function(target) {
|
|
51850
51777
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -51891,7 +51818,7 @@ function _objectWithoutPropertiesLoose$r(source2, excluded) {
|
|
|
51891
51818
|
}
|
|
51892
51819
|
return target;
|
|
51893
51820
|
}
|
|
51894
|
-
var
|
|
51821
|
+
var Eye = forwardRef(function(_ref3, ref) {
|
|
51895
51822
|
var _ref$color = _ref3.color, color2 = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref3.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties$q(_ref3, ["color", "size"]);
|
|
51896
51823
|
return /* @__PURE__ */ React__default.createElement("svg", _extends$C({
|
|
51897
51824
|
ref,
|
|
@@ -51904,54 +51831,20 @@ var Loader$1 = forwardRef(function(_ref3, ref) {
|
|
|
51904
51831
|
strokeWidth: "2",
|
|
51905
51832
|
strokeLinecap: "round",
|
|
51906
51833
|
strokeLinejoin: "round"
|
|
51907
|
-
}, rest), /* @__PURE__ */ React__default.createElement("
|
|
51908
|
-
|
|
51909
|
-
|
|
51910
|
-
|
|
51911
|
-
|
|
51912
|
-
|
|
51913
|
-
x1: "12",
|
|
51914
|
-
y1: "18",
|
|
51915
|
-
x2: "12",
|
|
51916
|
-
y2: "22"
|
|
51917
|
-
}), /* @__PURE__ */ React__default.createElement("line", {
|
|
51918
|
-
x1: "4.93",
|
|
51919
|
-
y1: "4.93",
|
|
51920
|
-
x2: "7.76",
|
|
51921
|
-
y2: "7.76"
|
|
51922
|
-
}), /* @__PURE__ */ React__default.createElement("line", {
|
|
51923
|
-
x1: "16.24",
|
|
51924
|
-
y1: "16.24",
|
|
51925
|
-
x2: "19.07",
|
|
51926
|
-
y2: "19.07"
|
|
51927
|
-
}), /* @__PURE__ */ React__default.createElement("line", {
|
|
51928
|
-
x1: "2",
|
|
51929
|
-
y1: "12",
|
|
51930
|
-
x2: "6",
|
|
51931
|
-
y2: "12"
|
|
51932
|
-
}), /* @__PURE__ */ React__default.createElement("line", {
|
|
51933
|
-
x1: "18",
|
|
51934
|
-
y1: "12",
|
|
51935
|
-
x2: "22",
|
|
51936
|
-
y2: "12"
|
|
51937
|
-
}), /* @__PURE__ */ React__default.createElement("line", {
|
|
51938
|
-
x1: "4.93",
|
|
51939
|
-
y1: "19.07",
|
|
51940
|
-
x2: "7.76",
|
|
51941
|
-
y2: "16.24"
|
|
51942
|
-
}), /* @__PURE__ */ React__default.createElement("line", {
|
|
51943
|
-
x1: "16.24",
|
|
51944
|
-
y1: "7.76",
|
|
51945
|
-
x2: "19.07",
|
|
51946
|
-
y2: "4.93"
|
|
51834
|
+
}, rest), /* @__PURE__ */ React__default.createElement("path", {
|
|
51835
|
+
d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"
|
|
51836
|
+
}), /* @__PURE__ */ React__default.createElement("circle", {
|
|
51837
|
+
cx: "12",
|
|
51838
|
+
cy: "12",
|
|
51839
|
+
r: "3"
|
|
51947
51840
|
}));
|
|
51948
51841
|
});
|
|
51949
|
-
|
|
51842
|
+
Eye.propTypes = {
|
|
51950
51843
|
color: PropTypes$1.string,
|
|
51951
51844
|
size: PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.number])
|
|
51952
51845
|
};
|
|
51953
|
-
|
|
51954
|
-
var
|
|
51846
|
+
Eye.displayName = "Eye";
|
|
51847
|
+
var Eye$1 = Eye;
|
|
51955
51848
|
function _extends$B() {
|
|
51956
51849
|
_extends$B = Object.assign || function(target) {
|
|
51957
51850
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -78093,8 +77986,8 @@ const StatsCard = ({
|
|
|
78093
77986
|
})
|
|
78094
77987
|
}, comparison2 !== 0 ? arrow : /* @__PURE__ */ React__default.createElement("span", {
|
|
78095
77988
|
style: { height: 20 }
|
|
78096
|
-
}), !loadingComparison ? /* @__PURE__ */ React__default.createElement("span", null, comparison2 === 0 ? "" : `${comparison2} %`) : /* @__PURE__ */ React__default.createElement(
|
|
78097
|
-
size:
|
|
77989
|
+
}), !loadingComparison ? /* @__PURE__ */ React__default.createElement("span", null, comparison2 === 0 ? "" : `${comparison2} %`) : /* @__PURE__ */ React__default.createElement(Spinner, {
|
|
77990
|
+
size: 15
|
|
78098
77991
|
})), children) : /* @__PURE__ */ React__default.createElement(SkeletonStatCard, null));
|
|
78099
77992
|
};
|
|
78100
77993
|
const getCurrentRange = () => {
|
|
@@ -102999,7 +102892,7 @@ const StatsBar = ({ params }) => {
|
|
|
102999
102892
|
const fetchBookingStat = async (payload, cancellations, prevPeriod) => {
|
|
103000
102893
|
const params2 = { ...payload };
|
|
103001
102894
|
if (cancellations) {
|
|
103002
|
-
params2["filters[status]"] = "
|
|
102895
|
+
params2["filters[status]"] = "cancelled";
|
|
103003
102896
|
}
|
|
103004
102897
|
const [, response] = await handlePromise(ReservationAnalyticsService.getBookingItemTotal(params2));
|
|
103005
102898
|
if (!response)
|
|
@@ -103022,7 +102915,7 @@ const StatsBar = ({ params }) => {
|
|
|
103022
102915
|
});
|
|
103023
102916
|
};
|
|
103024
102917
|
const calculatePeriodDates = (params2) => {
|
|
103025
|
-
const period = params2["filters[
|
|
102918
|
+
const period = params2["filters[comparision]"];
|
|
103026
102919
|
const dateFrom = hooks(new Date(params2["filters[from]"]));
|
|
103027
102920
|
const dateTill = hooks(new Date(params2["filters[till]"]));
|
|
103028
102921
|
if (period === "period") {
|
|
@@ -103099,8 +102992,8 @@ const StatsBar = ({ params }) => {
|
|
|
103099
102992
|
data: bookingStats,
|
|
103100
102993
|
type: "bookings"
|
|
103101
102994
|
})) != null ? _b : "-",
|
|
103102
|
-
|
|
103103
|
-
|
|
102995
|
+
loadingComparison: isLoadingPrevBookings,
|
|
102996
|
+
loadingValue: isLoadingBookings
|
|
103104
102997
|
}, /* @__PURE__ */ React__default.createElement("small", null, t2("ComparedPeriod"), ": ", `${periodDates[0] ? periodDates[0] : ""}-${periodDates[1] ? periodDates[1] : ""}`))), /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
103105
102998
|
xs: 24,
|
|
103106
102999
|
sm: 12,
|
|
@@ -103116,7 +103009,7 @@ const StatsBar = ({ params }) => {
|
|
|
103116
103009
|
data: bookingStats,
|
|
103117
103010
|
type: "covers"
|
|
103118
103011
|
})) != null ? _d : "-",
|
|
103119
|
-
|
|
103012
|
+
loadingValue: isLoadingCovers,
|
|
103120
103013
|
loadingComparison: isLoadingPrevCovers
|
|
103121
103014
|
}, /* @__PURE__ */ React__default.createElement("small", null, t2("ComparedPeriod"), ": ", `${periodDates[0] ? periodDates[0] : ""}-${periodDates[1] ? periodDates[1] : ""}`))), /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
103122
103015
|
xs: 24,
|
|
@@ -103133,7 +103026,7 @@ const StatsBar = ({ params }) => {
|
|
|
103133
103026
|
data: bookingStats,
|
|
103134
103027
|
type: "cancelations"
|
|
103135
103028
|
})) != null ? _f : "-",
|
|
103136
|
-
|
|
103029
|
+
loadingValue: isLoadingCancelations,
|
|
103137
103030
|
loadingComparison: isLoadingPrevCancelations
|
|
103138
103031
|
}, /* @__PURE__ */ React__default.createElement("small", null, t2("ComparedPeriod"), ": ", `${periodDates[0] ? periodDates[0] : ""}-${periodDates[1] ? periodDates[1] : ""}`))));
|
|
103139
103032
|
};
|