1(window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([[38],{ 2 3/***/ "Lyp1": 4/***/ (function(module, __webpack_exports__, __webpack_require__) { 5 6"use strict"; 7 8// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js 9var objectSpread2 = __webpack_require__("VTBJ"); 10 11// EXTERNAL MODULE: ./node_modules/react/index.js 12var react = __webpack_require__("q1tI"); 13 14// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/QuestionCircleOutlined.js 15// This icon file is generated automatically. 16var QuestionCircleOutlined_QuestionCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, "name": "question-circle", "theme": "outlined" }; 17/* harmony default export */ var asn_QuestionCircleOutlined = (QuestionCircleOutlined_QuestionCircleOutlined); 18 19// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 3 modules 20var AntdIcon = __webpack_require__("6VBw"); 21 22// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js 23 24// GENERATE BY ./scripts/generate.ts 25// DON NOT EDIT IT MANUALLY 26 27 28 29var icons_QuestionCircleOutlined_QuestionCircleOutlined = function QuestionCircleOutlined(props, ref) { 30 return /*#__PURE__*/react["createElement"](AntdIcon["a" /* default */], Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, props), {}, { 31 ref: ref, 32 icon: asn_QuestionCircleOutlined 33 })); 34}; 35icons_QuestionCircleOutlined_QuestionCircleOutlined.displayName = 'QuestionCircleOutlined'; 36/* harmony default export */ var icons_QuestionCircleOutlined = __webpack_exports__["a"] = (/*#__PURE__*/react["forwardRef"](icons_QuestionCircleOutlined_QuestionCircleOutlined)); 37 38/***/ }), 39 40/***/ "Vl3Y": 41/***/ (function(module, __webpack_exports__, __webpack_require__) { 42 43"use strict"; 44 45// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js 46var form_context = __webpack_require__("ihLV"); 47 48// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js 49var defineProperty = __webpack_require__("rePB"); 50 51// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js 52var esm_extends = __webpack_require__("wx14"); 53 54// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules 55var toConsumableArray = __webpack_require__("KQm4"); 56 57// EXTERNAL MODULE: ./node_modules/classnames/index.js 58var classnames = __webpack_require__("TSYQ"); 59var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); 60 61// EXTERNAL MODULE: ./node_modules/rc-motion/es/index.js + 11 modules 62var es = __webpack_require__("8XRh"); 63 64// EXTERNAL MODULE: ./node_modules/react/index.js 65var react = __webpack_require__("q1tI"); 66 67// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js 68var config_provider_context = __webpack_require__("H84U"); 69 70// EXTERNAL MODULE: ./node_modules/antd/es/_util/motion.js 71var motion = __webpack_require__("EXcs"); 72 73// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules 74var slicedToArray = __webpack_require__("ODXe"); 75 76// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useDebounce.js 77 78 79function useDebounce(value) { 80 var _React$useState = react["useState"](value), 81 _React$useState2 = Object(slicedToArray["a" /* default */])(_React$useState, 2), 82 cacheValue = _React$useState2[0], 83 setCacheValue = _React$useState2[1]; 84 react["useEffect"](function () { 85 var timeout = setTimeout(function () { 86 setCacheValue(value); 87 }, value.length ? 0 : 10); 88 return function () { 89 clearTimeout(timeout); 90 }; 91 }, [value]); 92 return cacheValue; 93} 94// CONCATENATED MODULE: ./node_modules/antd/es/form/ErrorList.js 95 96 97 98 99 100 101 102 103 104 105var EMPTY_LIST = []; 106function toErrorEntity(error, errorStatus, prefix) { 107 var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; 108 return { 109 key: typeof error === 'string' ? error : "".concat(prefix, "-").concat(index), 110 error: error, 111 errorStatus: errorStatus 112 }; 113} 114function ErrorList(_ref) { 115 var help = _ref.help, 116 helpStatus = _ref.helpStatus, 117 _ref$errors = _ref.errors, 118 errors = _ref$errors === void 0 ? EMPTY_LIST : _ref$errors, 119 _ref$warnings = _ref.warnings, 120 warnings = _ref$warnings === void 0 ? EMPTY_LIST : _ref$warnings, 121 rootClassName = _ref.className, 122 fieldId = _ref.fieldId, 123 onVisibleChanged = _ref.onVisibleChanged; 124 var _React$useContext = react["useContext"](form_context["c" /* FormItemPrefixContext */]), 125 prefixCls = _React$useContext.prefixCls; 126 var _React$useContext2 = react["useContext"](config_provider_context["b" /* ConfigContext */]), 127 getPrefixCls = _React$useContext2.getPrefixCls; 128 var baseClassName = "".concat(prefixCls, "-item-explain"); 129 var rootPrefixCls = getPrefixCls(); 130 // We have to debounce here again since somewhere use ErrorList directly still need no shaking 131 // ref: https://github.com/ant-design/ant-design/issues/36336 132 var debounceErrors = useDebounce(errors); 133 var debounceWarnings = useDebounce(warnings); 134 var fullKeyList = react["useMemo"](function () { 135 if (help !== undefined && help !== null) { 136 return [toErrorEntity(help, helpStatus, 'help')]; 137 } 138 return [].concat(Object(toConsumableArray["a" /* default */])(debounceErrors.map(function (error, index) { 139 return toErrorEntity(error, 'error', 'error', index); 140 })), Object(toConsumableArray["a" /* default */])(debounceWarnings.map(function (warning, index) { 141 return toErrorEntity(warning, 'warning', 'warning', index); 142 }
142))); 143 }, [help, helpStatus, debounceErrors, debounceWarnings]); 144 var helpProps = {}; 145 if (fieldId) { 146 helpProps.id = "".concat(fieldId, "_help"); 147 } 148 return /*#__PURE__*/react["createElement"](es["default"], { 149 motionDeadline: motion["a" /* default */].motionDeadline, 150 motionName: "".concat(rootPrefixCls, "-show-help"), 151 visible: !!fullKeyList.length, 152 onVisibleChanged: onVisibleChanged 153 }, function (holderProps) { 154 var holderClassName = holderProps.className, 155 holderStyle = holderProps.style; 156 return /*#__PURE__*/react["createElement"]("div", Object(esm_extends["a" /* default */])({}, helpProps, { 157 className: classnames_default()(baseClassName, holderClassName, rootClassName), 158 style: holderStyle, 159 role: "alert" 160 }), /*#__PURE__*/react["createElement"](es["CSSMotionList"], Object(esm_extends["a" /* default */])({ 161 keys: fullKeyList 162 }, motion["a" /* default */], { 163 motionName: "".concat(rootPrefixCls, "-show-help-item"), 164 component: false 165 }), function (itemProps) { 166 var key = itemProps.key, 167 error = itemProps.error, 168 errorStatus = itemProps.errorStatus, 169 itemClassName = itemProps.className, 170 itemStyle = itemProps.style; 171 return /*#__PURE__*/react["createElement"]("div", { 172 key: key, 173 className: classnames_default()(itemClassName, Object(defineProperty["a" /* default */])({}, "".concat(baseClassName, "-").concat(errorStatus), errorStatus)), 174 style: itemStyle 175 }, error); 176 })); 177 }); 178} 179// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js 180var esm_typeof = __webpack_require__("U8pU"); 181 182// EXTERNAL MODULE: ./node_modules/rc-field-form/es/index.js + 17 modules 183var rc_field_form_es = __webpack_require__("85Yc"); 184 185// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/DisabledContext.js 186var DisabledContext = __webpack_require__("caoh"); 187 188// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/SizeContext.js 189var SizeContext = __webpack_require__("3Nzz"); 190 191// EXTERNAL MODULE: ./node_modules/scroll-into-view-if-needed/es/index.js + 1 modules 192var scroll_into_view_if_needed_es = __webpack_require__("ZpRC"); 193 194// CONCATENATED MODULE: ./node_modules/antd/es/form/util.js 195// form item name black list. in form ,you can use form.id get the form item element. 196// use object hasOwnProperty will get better performance if black list is longer. 197var formItemNameBlackList = ['parentNode']; 198// default form item id prefix. 199var defaultItemNamePrefixCls = 'form_item'; 200function toArray(candidate) { 201 if (candidate === undefined || candidate === false) return []; 202 return Array.isArray(candidate) ? candidate : [candidate]; 203} 204function getFieldId(namePath, formName) { 205 if (!namePath.length) return undefined; 206 var mergedId = namePath.join('_'); 207 if (formName) { 208 return "".concat(formName, "_").concat(mergedId); 209 } 210 var isIllegalName = formItemNameBlackList.includes(mergedId); 211 return isIllegalName ? "".concat(defaultItemNamePrefixCls, "_").concat(mergedId) : mergedId; 212} 213// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useForm.js 214 215 216 217 218 219 220function toNamePathStr(name) { 221 var namePath = toArray(name); 222 return namePath.join('_'); 223} 224function useForm(form) { 225 var _useRcForm = Object(rc_field_form_es["useForm"])(), 226 _useRcForm2 = Object(slicedToArray["a" /* default */])(_useRcForm, 1), 227 rcForm = _useRcForm2[0]; 228 var itemsRef = react["useRef"]({}); 229 var wrapForm = react["useMemo"](function () { 230 return form !== null && form !== void 0 ? form : Object(esm_extends["a" /* default */])(Object(esm_extends["a" /* default */])({}, rcForm), { 231 __INTERNAL__: { 232 itemRef: function itemRef(name) { 233 return function (node) { 234 var namePathStr = toNamePathStr(name); 235 if (node) { 236 itemsRef.current[namePathStr] = node; 237 } else { 238 delete itemsRef.current[namePathStr]; 239 } 240 }; 241 } 242 }, 243 scrollToField: function scrollToField(name) { 244 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 245 var namePath = toArray(name); 246 var fieldId = getFieldId(namePath, wrapForm.__INTERNAL__.name); 247 var node = fieldId ? document.getElementById(fieldId) : null; 248 if (node) { 249 Object(scroll_into_view_if_needed_es["default"])(node, Object(esm_extends["a" /* default */])({ 250 scrollMode: 'if-needed', 251 block: 'nearest' 252 }, options)); 253 } 254 }, 255 getFieldInstance: function getFieldInstance(name) { 256 var namePathStr = toNamePathStr(name); 257 return itemsRef.current[namePathStr]; 258 } 259 }); 260 }, [form, rcForm]); 261 return [wrapForm]; 262} 263// CONCATENATED MODULE: ./node_modules/antd/es/form/Form.js 264 265 266 267 268var __rest = undefined && undefined.__rest || function (s, e) { 269 var t = {}; 270 for (var p in s) { 271 if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; 272 } 273 if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { 274 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; 275 } 276 return t; 277}; 278 279 280 281 282 283 284 285 286 287var Form_InternalForm = function InternalForm(props, ref) { 288 var _classNames; 289 var contextSize = react["useContext"](SizeContext["b" /* default */]); 290 var contextDisabled = react["useContext"](DisabledContext["b" /* default */]); 291 var _React$useContext = react["useContext"](config_provider_context["b" /* ConfigContext */]), 292 getPrefixCls = _React$useContext.getPrefixCls, 293 direction = _React$useContext.direction, 294 contextForm = _React$useContext.form; 295 var customizePrefixCls = props.prefixCls, 296 _props$className = props.className, 297 className = _props$className === void 0 ? '' : _props$className, 298 _props$size = props.size, 299 size = _props$size === void 0 ? contextSize : _props$size, 300 _props$disabled = props.disabled, 301 disabled = _props$disabled === void 0 ? contextDisabled : _props$disabled, 302 form = props.form, 303 colon = props.colon, 304 labelAlign = props.labelAlign, 305 labelWrap = props.labelWrap, 306 labelCol = props.labelCol, 307 wrapperCol = props.wrapperCol, 308 hideRequiredMark = props.hideRequiredMark, 309 _props$layout = props.layout, 310 layout = _props$layout === void 0 ? 'horizontal' : _props$layout, 311 scrollToFirstError = props.scrollToFirstError, 312 requiredMark = props.requiredMark, 313 onFinishFailed = props.onFinishFailed, 314 name = props.name, 315 restFormProps = __rest(props, ["prefixCls", "className", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name"]); 316 var mergedRequiredMark = Object(react["useMemo"])(function () { 317 if (requiredMark !== undefined) { 318 return requiredMark; 319 } 320 if (contextForm && contextForm.requiredMark !== undefined) { 321 return contextForm.requiredMark; 322 } 323 if (hideRequiredMark) { 324 return false;
325 } 326 return true; 327 }, [hideRequiredMark, requiredMark, contextForm]); 328 var mergedColon = colon !== null && colon !== void 0 ? colon : contextForm === null || contextForm === void 0 ? void 0 : contextForm.colon; 329 var prefixCls = getPrefixCls('form', customizePrefixCls); 330 var formClassName = classnames_default()(prefixCls, (_classNames = {}, Object(defineProperty["a" /* default */])(_classNames, "".concat(prefixCls, "-").concat(layout), true), Object(defineProperty["a" /* default */])(_classNames, "".concat(prefixCls, "-hide-required-mark"), mergedRequiredMark === false), Object(defineProperty["a" /* default */])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), Object(defineProperty["a" /* default */])(_classNames, "".concat(prefixCls, "-").concat(size), size), _classNames), className); 331 var _useForm = useForm(form), 332 _useForm2 = Object(slicedToArray["a" /* default */])(_useForm, 1), 333 wrapForm = _useForm2[0]; 334 var __INTERNAL__ = wrapForm.__INTERNAL__; 335 __INTERNAL__.name = name; 336 var formContextValue = Object(react["useMemo"])(function () { 337 return { 338 name: name, 339 labelAlign: labelAlign, 340 labelCol: labelCol, 341 labelWrap: labelWrap, 342 wrapperCol: wrapperCol, 343 vertical: layout === 'vertical', 344 colon: mergedColon, 345 requiredMark: mergedRequiredMark, 346 itemRef: __INTERNAL__.itemRef, 347 form: wrapForm 348 }; 349 }, [name, labelAlign, labelCol, wrapperCol, layout, mergedColon, mergedRequiredMark, wrapForm]); 350 react["useImperativeHandle"](ref, function () { 351 return wrapForm; 352 }); 353 var onInternalFinishFailed = function onInternalFinishFailed(errorInfo) { 354 onFinishFailed === null || onFinishFailed === void 0 ? void 0 : onFinishFailed(errorInfo); 355 var defaultScrollToFirstError = { 356 block: 'nearest' 357 }; 358 if (scrollToFirstError && errorInfo.errorFields.length) { 359 if (Object(esm_typeof["a" /* default */])(scrollToFirstError) === 'object') { 360 defaultScrollToFirstError = scrollToFirstError; 361 } 362 wrapForm.scrollToField(errorInfo.errorFields[0].name, defaultScrollToFirstError); 363 } 364 }; 365 return /*#__PURE__*/react["createElement"](DisabledContext["a" /* DisabledContextProvider */], { 366 disabled: disabled 367 }, /*#__PURE__*/react["createElement"](SizeContext["a" /* SizeContextProvider */], { 368 size: size 369 }, /*#__PURE__*/react["createElement"](form_context["a" /* FormContext */].Provider, { 370 value: formContextValue 371 }, /*#__PURE__*/react["createElement"](rc_field_form_es["default"], Object(esm_extends["a" /* default */])({ 372 id: name 373 }, restFormProps, { 374 name: name, 375 onFinishFailed: onInternalFinishFailed, 376 form: wrapForm, 377 className: formClassName 378 }))))); 379}; 380var Form = /*#__PURE__*/react["forwardRef"](Form_InternalForm); 381 382/* harmony default export */ var form_Form = (Form); 383// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useState.js
384var useState = __webpack_require__("dm2S"); 385 386// EXTERNAL MODULE: ./node_modules/rc-util/es/ref.js 387var es_ref = __webpack_require__("c+Xe"); 388 389// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useFormItemStatus.js 390 391 392 393var useFormItemStatus_useFormItemStatus = function useFormItemStatus() { 394 var _useContext = Object(react["useContext"])(form_context["b" /* FormItemInputContext */]), 395 status = _useContext.status; 396 false ? undefined : void 0; 397 return { 398 status: status 399 }; 400}; 401/* harmony default export */ var hooks_useFormItemStatus = (useFormItemStatus_useFormItemStatus); 402// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js 403var reactNode = __webpack_require__("0n0R"); 404 405// EXTERNAL MODULE: ./node_modules/antd/es/_util/type.js 406var type = __webpack_require__("CWQg"); 407 408// EXTERNAL MODULE: ./node_modules/rc-util/es/raf.js 409var raf = __webpack_require__("wgJM"); 410 411// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useFrameState.js 412 413 414 415 416function useFrameState(defaultValue) { 417 var _React$useState = react["useState"](defaultValue), 418 _React$useState2 = Object(slicedToArray["a" /* default */])(_React$useState, 2), 419 value = _React$useState2[0], 420 setValue = _React$useState2[1]; 421 var frameRef = Object(react["useRef"])(null); 422 var batchRef = Object(react["useRef"])([]); 423 var destroyRef = Object(react["useRef"])(false); 424 react["useEffect"](function () { 425 destroyRef.current = false; 426 return function () { 427 destroyRef.current = true; 428 raf["a" /* default */].cancel(frameRef.current); 429 frameRef.current = null; 430 }; 431 }, []); 432 function setFrameValue(updater) { 433 if (destroyRef.current) { 434 return; 435 } 436 if (frameRef.current === null) { 437 batchRef.current = []; 438 frameRef.current = Object(raf["a" /* default */])(function () { 439 frameRef.current = null; 440 setValue(function (prevValue) { 441 var current = prevValue; 442 batchRef.current.forEach(function (func) { 443 current = func(current); 444 }); 445 return current; 446 }); 447 }); 448 } 449 batchRef.current.push(updater); 450 } 451 return [value, setFrameValue]; 452} 453// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useItemRef.js 454 455 456 457 458function useItemRef() { 459 var _React$useContext = react["useContext"](form_context["a" /* FormContext */]), 460 itemRef = _React$useContext.itemRef; 461 var cacheRef = react["useRef"]({}); 462 function getRef(name, children) { 463 var childrenRef = children && Object(esm_typeof["a" /* default */])(children) === 'object' && children.ref; 464 var nameStr = name.join('_'); 465 if (cacheRef.current.name !== nameStr || cacheRef.current.originRef !== childrenRef) { 466 cacheRef.current.name = nameStr; 467 cacheRef.current.originRef = childrenRef; 468 cacheRef.current.ref = Object(es_ref["a" /* composeRef */])(itemRef(name), childrenRef); 469 } 470 return cacheRef.current.ref; 471 } 472 return getRef; 473} 474// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CheckCircleFilled.js + 1 modules 475var CheckCircleFilled = __webpack_require__("jO45"); 476 477// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules 478var CloseCircleFilled = __webpack_require__("jN4g"); 479 480// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.js + 1 modules 481var ExclamationCircleFilled = __webpack_require__("IMoZ"); 482 483// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules 484var LoadingOutlined = __webpack_require__("ye1Q"); 485 486// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useLayoutEffect.js 487var useLayoutEffect = __webpack_require__("TNol"); 488 489// EXTERNAL MODULE: ./node_modules/rc-util/es/omit.js 490var omit = __webpack_require__("bT9E"); 491 492// EXTERNAL MODULE: ./node_modules/antd/es/grid/row.js 493var row = __webpack_require__("qrJ5"); 494 495// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/QuestionCircleOutlined.js + 1 modules 496var QuestionCircleOutlined = __webpack_require__("Lyp1"); 497 498// EXTERNAL MODULE: ./node_modules/antd/es/grid/col.js 499var col = __webpack_require__("/kpp"); 500 501// EXTERNAL MODULE: ./node_modules/antd/es/locale-provider/LocaleReceiver.js + 1 modules 502var LocaleReceiver = __webpack_require__("YMnH"); 503 504// EXTERNAL MODULE: ./node_modules/antd/es/locale/default.js 505var locale_default = __webpack_require__("ZvpZ"); 506 507// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js 508var es_tooltip = __webpack_require__("3S7+"); 509 510// CONCATENATED MODULE: ./node_modules/antd/es/form/FormItemLabel.js 511 512 513 514 515var FormItemLabel_rest = undefined && undefined.__rest || function (s, e) { 516 var t = {}; 517 for (var p in s) { 518 if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; 519 } 520 if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { 521 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; 522 } 523 return t; 524}; 525 526 527 528 529 530 531 532 533function toTooltipProps(tooltip) { 534 if (!tooltip) { 535 return null; 536 } 537 if (Object(esm_typeof["a" /* default */])(tooltip) === 'object' && ! /*#__PURE__*/react["isValidElement"](tooltip)) { 538 return tooltip; 539 } 540 return { 541 title: tooltip 542 }; 543} 544var FormItemLabel_FormItemLabel = function FormItemLabel(_ref) { 545 var prefixCls = _ref.prefixCls, 546 label = _ref.label, 547 htmlFor = _ref.htmlFor, 548 labelCol = _ref.labelCol, 549 labelAlign = _ref.labelAlign, 550 colon = _ref.colon, 551 required = _ref.required, 552 requiredMark = _ref.requiredMark, 553 tooltip = _ref.tooltip;
554 var _useLocaleReceiver = Object(LocaleReceiver["b" /* useLocaleReceiver */])('Form'), 555 _useLocaleReceiver2 = Object(slicedToArray["a" /* default */])(_useLocaleReceiver, 1), 556 formLocale = _useLocaleReceiver2[0]; 557 if (!label) return null; 558 return /*#__PURE__*/react["createElement"](form_context["a" /* FormContext */].Consumer, { 559 key: "label" 560 }, function (_ref2) { 561 var _classNames2; 562 var vertical = _ref2.vertical, 563 contextLabelAlign = _ref2.labelAlign, 564 contextLabelCol = _ref2.labelCol, 565 labelWrap = _ref2.labelWrap, 566 contextColon = _ref2.colon; 567 var _a; 568 var mergedLabelCol = labelCol || contextLabelCol || {}; 569 var mergedLabelAlign = labelAlign || contextLabelAlign; 570 var labelClsBasic = "".concat(prefixCls, "-item-label"); 571 var labelColClassName = classnames_default()(labelClsBasic, mergedLabelAlign === 'left' && "".concat(labelClsBasic, "-left"), mergedLabelCol.className, Object(defineProperty["a" /* default */])({}, "".concat(labelClsBasic, "-wrap"), !!labelWrap)); 572 var labelChildren = label; 573 // Keep label is original where there should have no colon 574 var computedColon = colon === true || contextColon !== false && colon !== false; 575 var haveColon = computedColon && !vertical; 576 // Remove duplicated user input colon 577 if (haveColon && typeof label === 'string' && label.trim() !== '') { 578 labelChildren = label.replace(/[:|:]\s*$/, ''); 579 } 580 // Tooltip 581 var tooltipProps = toTooltipProps(tooltip); 582 if (tooltipProps) { 583 var _tooltipProps$icon = tooltipProps.icon, 584 icon = _tooltipProps$icon === void 0 ? /*#__PURE__*/react["createElement"](QuestionCircleOutlined["a" /* default */], null) : _tooltipProps$icon, 585 restTooltipProps = FormItemLabel_rest(tooltipProps, ["icon"]); 586 var tooltipNode = /*#__PURE__*/react["createElement"](es_tooltip["a" /* default */], Object(esm_extends["a" /* default */])({}, restTooltipProps), /*#__PURE__*/react["cloneElement"](icon, { 587 className: "".concat(prefixCls, "-item-tooltip"), 588 title: '' 589 })); 590 labelChildren = /*#__PURE__*/react["createElement"](react["Fragment"], null, labelChildren, tooltipNode); 591 } 592 // Add required mark if optional 593 if (requiredMark === 'optional' && !required) { 594 labelChildren = /*#__PURE__*/react["createElement"](react["Fragment"], null, labelChildren, /*#__PURE__*/react["createElement"]("span", { 595 className: "".concat(prefixCls, "-item-optional"), 596 title: "" 597 }, (formLocale === null || formLocale === void 0 ? void 0 : formLocale.optional) || ((_a = locale_default["a" /* default */].Form) === null || _a === void 0 ? void 0 : _a.optional))); 598 } 599 var labelClassName = classnames_default()((_classNames2 = {}, Object(defineProperty["a" /* default */])(_classNames2, "".concat(prefixCls, "-item-required"), required), Object(defineProperty["a" /* default */])(_classNames2, "".concat(prefixCls, "-item-required-mark-optional"), requiredMark === 'optional'), Object(defineProperty["a" /* default */])(_classNames2, "".concat(prefixCls, "-item-no-colon"), !computedColon), _classNames2)); 600 return /*#__PURE__*/react["createElement"](col["a" /* default */], Object(esm_extends["a" /* default */])({}, mergedLabelCol, { 601 className: labelColClassName 602 }), /*#__PURE__*/react["createElement"]("label", { 603 htmlFor: htmlFor, 604 className: labelClassName, 605 title: typeof label === 'string' ? label : '' 606 }, labelChildren)); 607 }); 608}; 609/* harmony default export */ var form_FormItemLabel = (FormItemLabel_FormItemLabel); 610// CONCATENATED MODULE: ./node_modules/antd/es/form/FormItemInput.js 611 612 613 614 615 616 617var FormItemInput_FormItemInput = function FormItemInput(props) { 618 var prefixCls = props.prefixCls, 619 status = props.status, 620 wrapperCol = props.wrapperCol, 621 children = props.children, 622 errors = props.errors, 623 warnings = props.warnings, 624 formItemRender = props._internalItemRender, 625 extra = props.extra, 626 help = props.help, 627 fieldId = props.fieldId, 628 marginBottom = props.marginBottom, 629 onErrorVisibleChanged = props.onErrorVisibleChanged; 630 var baseClassName = "".concat(prefixCls, "-item"); 631 var formContext = react["useContext"](form_context["a" /* FormContext */]); 632 var mergedWrapperCol = wrapperCol || formContext.wrapperCol || {}; 633 var className = classnames_default()("".concat(baseClassName, "-control"), mergedWrapperCol.className); 634 // Pass to sub FormItem should not with col info 635 var subFormContext = react["useMemo"](function () { 636 return Object(esm_extends["a" /* default */])({}, formContext); 637 }, [formContext]); 638 delete subFormContext.labelCol;
639 delete subFormContext.wrapperCol; 640 var inputDom = /*#__PURE__*/react["createElement"]("div", { 641 className: "".concat(baseClassName, "-control-input") 642 }, /*#__PURE__*/react["createElement"]("div", { 643 className: "".concat(baseClassName, "-control-input-content") 644 }, children)); 645 var formItemContext = react["useMemo"](function () { 646 return { 647 prefixCls: prefixCls, 648 status: status 649 }; 650 }, [prefixCls, status]); 651 var errorListDom = marginBottom !== null || errors.length || warnings.length ? /*#__PURE__*/react["createElement"]("div", { 652 style: { 653 display: 'flex', 654 flexWrap: 'nowrap' 655 } 656 }, /*#__PURE__*/react["createElement"](form_context["c" /* FormItemPrefixContext */].Provider, { 657 value: formItemContext 658 }, /*#__PURE__*/react["createElement"](ErrorList, { 659 fieldId: fieldId, 660 errors: errors, 661 warnings: warnings, 662 help: help, 663 helpStatus: status, 664 className: "".concat(baseClassName, "-explain-connected"), 665 onVisibleChanged: onErrorVisibleChanged 666 })), !!marginBottom && /*#__PURE__*/react["createElement"]("div", { 667 style: { 668 width: 0, 669 height: marginBottom 670 } 671 })) : null; 672 var extraProps = {}; 673 if (fieldId) { 674 extraProps.id = "".concat(fieldId, "_extra"); 675 } 676 // If extra = 0, && will goes wrong 677 // 0&&error -> 0 678 var extraDom = extra ? /*#__PURE__*/react["createElement"]("div", Object(esm_extends["a" /* default */])({}, extraProps, { 679 className: "".concat(baseClassName, "-extra") 680 }), extra) : null; 681 var dom = formItemRender && formItemRender.mark === 'pro_table_render' && formItemRender.render ? formItemRender.render(props, { 682 input: inputDom, 683 errorList: errorListDom, 684 extra: extraDom 685 }) : /*#__PURE__*/react["createElement"](react["Fragment"], null, inputDom, errorListDom, extraDom); 686 return /*#__PURE__*/react["createElement"](form_context["a" /* FormContext */].Provider, { 687 value: subFormContext 688 }, /*#__PURE__*/react["createElement"](col["a" /* default */], Object(esm_extends["a" /* default */])({}, mergedWrapperCol, { 689 className: className 690 }), dom)); 691}; 692/* harmony default export */ var form_FormItemInput = (FormItemInput_FormItemInput); 693// CONCATENATED MODULE: ./node_modules/antd/es/form/FormItem/ItemHolder.js 694 695 696 697var ItemHolder_rest = undefined && undefined.__rest || function (s, e) { 698 var t = {}; 699 for (var p in s) { 700 if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; 701 } 702 if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { 703 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; 704 } 705 return t; 706}; 707 708 709 710 711 712 713 714 715 716 717 718 719 720var iconMap = { 721 success: CheckCircleFilled["a" /* default */], 722 warning: ExclamationCircleFilled["a" /* default */], 723 error: CloseCircleFilled["a" /* default */], 724 validating: LoadingOutlined["a" /* default */] 725}; 726function ItemHolder(props) { 727 var _itemClassName; 728 var prefixCls = props.prefixCls, 729 className = props.className, 730 style = props.style, 731 help = props.help, 732 errors = props.errors, 733 warnings = props.warnings, 734 validateStatus = props.validateStatus, 735 meta = props.meta, 736 hasFeedback = props.hasFeedback, 737 hidden = props.hidden, 738 children = props.children, 739 fieldId = props.fieldId, 740 isRequired = props.isRequired, 741 onSubItemMetaChange = props.onSubItemMetaChange, 742 restProps = ItemHolder_rest(props, ["prefixCls", "className", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "isRequired", "onSubItemMetaChange"]); 743 var itemPrefixCls = "".concat(prefixCls, "-item"); 744 var _React$useContext = react["useContext"](form_context["a" /* FormContext */]), 745 requiredMark = _React$useContext.requiredMark; 746 // ======================== Margin ======================== 747 var itemRef = react["useRef"](null); 748 var debounceErrors = useDebounce(errors); 749 var debounceWarnings = useDebounce(warnings); 750 var hasHelp = help !== undefined && help !== null; 751 var hasError = !!(hasHelp || errors.length || warnings.length); 752 var _React$useState = react["useState"](null), 753 _React$useState2 = Object(slicedToArray["a" /* default */])(_React$useState, 2), 754 marginBottom = _React$useState2[0], 755 setMarginBottom = _React$useState2[1]; 756 Object(useLayoutEffect["a" /* default */])(function () { 757 if (hasError && itemRef.current) { 758 var itemStyle = getComputedStyle(itemRef.current); 759 setMarginBottom(parseInt(itemStyle.marginBottom, 10)); 760 } 761 }, [hasError]); 762 var onErrorVisibleChanged = function onErrorVisibleChanged(nextVisible) { 763 if (!nextVisible) { 764 setMarginBottom(null); 765 } 766 }; 767 // ======================== Status ======================== 768 var mergedValidateStatus = ''; 769 if (validateStatus !== undefined) { 770 mergedValidateStatus = validateStatus; 771 } else if (meta.validating) { 772 mergedValidateStatus = 'validating'; 773 } else if (debounceErrors.length) { 774 mergedValidateStatus = 'error'; 775 } else if (debounceWarnings.length) { 776 mergedValidateStatus = 'warning'; 777 } else if (meta.touched) { 778 mergedValidateStatus = 'success'; 779 } 780 var formItemStatusContext = react["useMemo"](function () { 781 var feedbackIcon; 782 if (hasFeedback) { 783 var IconNode = mergedValidateStatus && iconMap[mergedValidateStatus]; 784 feedbackIcon = IconNode ? /*#__PURE__*/react["createElement"]("span", { 785 className: classnames_default()("".concat(itemPrefixCls, "-feedback-icon"), "".concat(itemPrefixCls, "-feedback-icon-").concat(mergedValidateStatus)) 786 }, /*#__PURE__*/react["createElement"](IconNode, null)) : null; 787 } 788 return { 789 status: mergedValidateStatus, 790 hasFeedback: hasFeedback, 791 feedbackIcon: feedbackIcon, 792 isFormItemInput: true 793 }; 794 }
794, [mergedValidateStatus, hasFeedback]); 795 // ======================== Render ======================== 796 var itemClassName = (_itemClassName = {}, Object(defineProperty["a" /* default */])(_itemClassName, itemPrefixCls, true), Object(defineProperty["a" /* default */])(_itemClassName, "".concat(itemPrefixCls, "-with-help"), hasHelp || debounceErrors.length || debounceWarnings.length), Object(defineProperty["a" /* default */])(_itemClassName, "".concat(className), !!className), Object(defineProperty["a" /* default */])(_itemClassName, "".concat(itemPrefixCls, "-has-feedback"), mergedValidateStatus && hasFeedback), Object(defineProperty["a" /* default */])(_itemClassName, "".concat(itemPrefixCls, "-has-success"), mergedValidateStatus === 'success'), Object(defineProperty["a" /* default */])(_itemClassName, "".concat(itemPrefixCls, "-has-warning"), mergedValidateStatus === 'warning'), Object(defineProperty["a" /* default */])(_itemClassName, "".concat(itemPrefixCls, "-has-error"), mergedValidateStatus === 'error'), Object(defineProperty["a" /* default */])(_itemClassName, "".concat(itemPrefixCls, "-is-validating"), mergedValidateStatus === 'validating'), Object(defineProperty["a" /* default */])(_itemClassName, "".concat(itemPrefixCls, "-hidden"), hidden), _itemClassName); 797 return /*#__PURE__*/react["createElement"]("div", { 798 className: classnames_default()(itemClassName), 799 style: style, 800 ref: itemRef 801 }, /*#__PURE__*/react["createElement"](row["a" /* default */], Object(esm_extends["a" /* default */])({ 802 className: "".concat(itemPrefixCls, "-row") 803 }, Object(omit["a" /* default */])(restProps, ['_internalItemRender', 'colon', 'dependencies', 'extra', 'fieldKey', 'getValueFromEvent', 'getValueProps', 'htmlFor', 'id', 'initialValue', 'isListField', 'label', 'labelAlign', 'labelCol', 'labelWrap', 'messageVariables', 'name', 'normalize', 'noStyle', 'preserve', 'required', 'requiredMark', 'rules', 'shouldUpdate', 'trigger', 'tooltip', 'validateFirst', 'validateTrigger', 'valuePropName', 'wrapperCol'])), /*#__PURE__*/react["createElement"](form_FormItemLabel, Object(esm_extends["a" /* default */])({ 804 htmlFor: fieldId, 805 required: isRequired, 806 requiredMark: requiredMark 807 }, props, { 808 prefixCls: prefixCls 809 })), /*#__PURE__*/react["createElement"](form_FormItemInput, Object(esm_extends["a" /* default */])({}, props, meta, { 810 errors: debounceErrors, 811 warnings: debounceWarnings, 812 prefixCls: prefixCls, 813 status: mergedValidateStatus, 814 help: help, 815 marginBottom: marginBottom, 816 onErrorVisibleChanged: onErrorVisibleChanged 817 }), /*#__PURE__*/react["createElement"](form_context["f" /* NoStyleItemContext */].Provider, { 818 value: onSubItemMetaChange 819 }, /*#__PURE__*/react["createElement"](form_context["b" /* FormItemInputContext */].Provider, { 820 value: formItemStatusContext 821 }, children)))), !!marginBottom && /*#__PURE__*/react["createElement"]("div", { 822 className: "".concat(itemPrefixCls, "-margin-offset"), 823 style: { 824 marginBottom: -marginBottom 825 } 826 })); 827} 828// CONCATENATED MODULE: ./node_modules/antd/es/form/FormItem/index.js 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848var NAME_SPLIT = '__SPLIT__'; 849var ValidateStatuses = Object(type["a" /* tuple */])('success', 'warning', 'error', 'validating', ''); 850var MemoInput = /*#__PURE__*/react["memo"](function (_ref) { 851 var children = _ref.children; 852 return children; 853}, function (prev, next) { 854 return prev.value === next.value && prev.update === next.update && prev.childProps.length === next.childProps.length && prev.childProps.every(function (value, index) { 855 return value === next.childProps[index]; 856 }); 857}); 858function hasValidName(name) { 859 if (name === null) { 860 false ? undefined : void 0; 861 } 862 return !(name === undefined || name === null); 863} 864function genEmptyMeta() { 865 return { 866 errors: [], 867 warnings: [], 868 touched: false, 869 validating: false, 870 name: [] 871 }; 872} 873function InternalFormItem(props) { 874 var name = props.name, 875 noStyle = props.noStyle, 876 dependencies = props.dependencies, 877 customizePrefixCls = props.prefixCls, 878 shouldUpdate = props.shouldUpdate, 879 rules = props.rules, 880 children = props.children, 881 required = props.required, 882 label = props.label, 883 messageVariables = props.messageVariables, 884 _props$trigger = props.trigger, 885 trigger = _props$trigger === void 0 ? 'onChange' : _props$trigger, 886 validateTrigger = props.validateTrigger, 887 hidden = props.hidden; 888 var _useContext = Object(react["useContext"])(config_provider_context["b" /* ConfigContext */]), 889 getPrefixCls = _useContext.getPrefixCls; 890 var _useContext2 = Object(react["useContext"])(form_context["a" /* FormContext */]), 891 formName = _useContext2.name; 892 var isRenderProps = typeof children === 'function'; 893 var notifyParentMetaChange = Object(react["useContext"])(form_context["f" /* NoStyleItem
893Context */]); 894 var _useContext3 = Object(react["useContext"])(rc_field_form_es["FieldContext"]), 895 contextValidateTrigger = _useContext3.validateTrigger; 896 var mergedValidateTrigger = validateTrigger !== undefined ? validateTrigger : contextValidateTrigger; 897 var hasName = hasValidName(name); 898 var prefixCls = getPrefixCls('form', customizePrefixCls); 899 // ========================= MISC ========================= 900 // Get `noStyle` required info 901 var listContext = react["useContext"](rc_field_form_es["ListContext"]); 902 var fieldKeyPathRef = react["useRef"](); 903 // ======================== Errors ======================== 904 // >>>>> Collect sub field errors 905 var _useFrameState = useFrameState({}), 906 _useFrameState2 = Object(slicedToArray["a" /* default */])(_useFrameState, 2), 907 subFieldErrors = _useFrameState2[0], 908 setSubFieldErrors = _useFrameState2[1]; 909 // >>>>> Current field errors 910 var _useState = Object(useState["a" /* default */])(function () { 911 return genEmptyMeta(); 912 }), 913 _useState2 = Object(slicedToArray["a" /* default */])(_useState, 2), 914 meta = _useState2[0], 915 setMeta = _useState2[1]; 916 var onMetaChange = function onMetaChange(nextMeta) { 917 // This keyInfo is not correct when field is removed 918 // Since origin keyManager no longer keep the origin key anymore 919 // Which means we need cache origin one and reuse when removed 920 var keyInfo = listContext === null || listContext === void 0 ? void 0 : listContext.getKey(nextMeta.name); 921 // Destroy will reset all the meta 922 setMeta(nextMeta.destroy ? genEmptyMeta() : nextMeta, true); 923 // Bump to parent since noStyle 924 if (noStyle && notifyParentMetaChange) { 925 var namePath = nextMeta.name; 926 if (!nextMeta.destroy) { 927 if (keyInfo !== undefined) { 928 var _keyInfo = Object(slicedToArray["a" /* default */])(keyInfo, 2), 929 fieldKey = _keyInfo[0], 930 restPath = _keyInfo[1]; 931 namePath = [fieldKey].concat(Object(toConsumableArray["a" /* default */])(restPath)); 932 fieldKeyPathRef.current = namePath; 933 } 934 } else { 935 // Use origin cache data 936 namePath = fieldKeyPathRef.current || namePath; 937 } 938 notifyParentMetaChange(nextMeta, namePath); 939 } 940 }; 941 // >>>>> Collect noStyle Field error to the top FormItem 942 var onSubItemMetaChange = function onSubItemMetaChange(subMeta, uniqueKeys) { 943 // Only `noStyle` sub item will trigger 944 setSubFieldErrors(function (prevSubFieldErrors) { 945 var clone = Object(esm_extends["a" /* default */])({}, prevSubFieldErrors); 946 // name: ['user', 1] + key: [4] = ['user', 4] 947 var mergedNamePath = [].concat(Object(toConsumableArray["a" /* default */])(subMeta.name.slice(0, -1)), Object(toConsumableArray["a" /* default */])(uniqueKeys)); 948 var mergedNameKey = mergedNamePath.join(NAME_SPLIT); 949 if (subMeta.destroy) { 950 // Remove 951 delete clone[mergedNameKey]; 952 } else { 953 // Update 954 clone[mergedNameKey] = subMeta; 955 } 956 return clone; 957 }); 958 }; 959 // >>>>> Get merged errors 960 var _React$useMemo = react["useMemo"](function () { 961 var errorList = Object(toConsumableArray["a" /* default */])(meta.errors); 962 var warningList = Object(toConsumableArray["a" /* default */])(meta.warnings); 963 Object.values(subFieldErrors).forEach(function (subFieldError) { 964 errorList.push.apply(errorList, Object(toConsumableArray["a" /* default */])(subFieldError.errors || [])); 965 warningList.push.apply(warningList, Object(toConsumableArray["a" /* default */])(subFieldError.warnings || [])); 966 }); 967 return [errorList, warningList]; 968 }, [subFieldErrors, meta.errors, meta.warnings]), 969 _React$useMemo2 = Object(slicedToArray["a" /* default */])(_React$useMemo, 2), 970 mergedErrors = _React$useMemo2[0], 971 mergedWarnings = _React$useMemo2[1]; 972 // ===================== Children Ref ===================== 973 var getItemRef = useItemRef(); 974 // ======================== Render ======================== 975 function renderLayout(baseChildren, fieldId, isRequired) { 976 if (noStyle && !hidden) { 977 return baseChildren; 978 } 979 return /*#__PURE__*/react["createElement"](ItemHolder, Object(esm_extends["a" /* default */])({ 980 key: "row" 981 }, props, { 982 prefixCls: prefixCls, 983 fieldId: fieldId, 984 isRequired: isRequired, 985 errors: mergedErrors, 986 warnings: mergedWarnings, 987 meta: meta, 988 onSubItemMetaChange: onSubItemMetaChange 989 }), baseChildren); 990 } 991 if (!hasName && !isRenderProps && !dependencies) { 992 return renderLayout(children); 993 } 994 var variables = {}; 995 if (typeof label === 'string') { 996 variables.label = label; 997 } else if (name) { 998 variables.label = String(name); 999 } 1000 if (messageVariables) { 1001 variables = Object(esm_extends["a" /* default */])(Object(esm_extends["a" /* default */])({}, variables), messageVariables); 1002 } 1003 // >>>>> With Field 1004 return /*#__PURE__*/react["createElement"](rc_field_form_es["Field"], Object(esm_extends["a" /* default */])({}, props, { 1005 messageVariables: variables, 1006 trigger: trigger, 1007 validateTrigger: mergedValidateTrigger, 1008 onMetaChange: onMetaChange 1009 }), function (control, renderMeta, context) { 1010 var mergedName = toArray(name).length && renderMeta ? renderMeta.name : []; 1011 var fieldId = getFieldId(mergedName, formName); 1012 var isRequired = required !== undefined ? required : !!(rules && rules.some(function (rule) { 1013 if (rule && Object(esm_typeof["a" /* default */])(rule) === 'object' && rule.required && !rule.warningOnly) { 1014 return true; 1015 } 1016 if (typeof rule === 'function') { 1017 var ruleEntity = rule(context); 1018 return ruleEntity && ruleEntity.required && !ruleEntity.warningOnly; 1019 } 1020 return false;
1021 })); 1022 // ======================= Children ======================= 1023 var mergedControl = Object(esm_extends["a" /* default */])({}, control); 1024 var childNode = null; 1025 false ? undefined : void 0; 1026 if (Array.isArray(children) && hasName) { 1027 false ? undefined : void 0; 1028 childNode = children; 1029 } else if (isRenderProps && (!(shouldUpdate || dependencies) || hasName)) { 1030 false ? undefined : void 0; 1031 false ? undefined : void 0; 1032 } else if (dependencies && !isRenderProps && !hasName) { 1033 false ? undefined : void 0; 1034 } else if (Object(reactNode["c" /* isValidElement */])(children)) { 1035 false ? undefined : void 0; 1036 var childProps = Object(esm_extends["a" /* default */])(Object(esm_extends["a" /* default */])({}, children.props), mergedControl); 1037 if (!childProps.id) { 1038 childProps.id = fieldId; 1039 } 1040 if (props.help || mergedErrors.length > 0 || mergedWarnings.length > 0 || props.extra) { 1041 var describedbyArr = []; 1042 if (props.help || mergedErrors.length > 0) { 1043 describedbyArr.push("".concat(fieldId, "_help")); 1044 } 1045 if (props.extra) { 1046 describedbyArr.push("".concat(fieldId, "_extra")); 1047 } 1048 childProps['aria-describedby'] = describedbyArr.join(' '); 1049 } 1050 if (mergedErrors.length > 0) { 1051 childProps['aria-invalid'] = 'true'; 1052 } 1053 if (isRequired) { 1054 childProps['aria-required'] = 'true'; 1055 } 1056 if (Object(es_ref["c" /* supportRef */])(children)) { 1057 childProps.ref = getItemRef(mergedName, children); 1058 } 1059 // We should keep user origin event handler 1060 var triggers = new Set([].concat(Object(toConsumableArray["a" /* default */])(toArray(trigger)), Object(toConsumableArray["a" /* default */])(toArray(mergedValidateTrigger)))); 1061 triggers.forEach(function (eventName) { 1062 childProps[eventName] = function () { 1063 var _a2, _c2; 1064 var _a, _b, _c; 1065 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 1066 args[_key] = arguments[_key]; 1067 } 1068 (_a = mergedControl[eventName]) === null || _a === void 0 ? void 0 : (_a2 = _a).call.apply(_a2, [mergedControl].concat(args)); 1069 (_c = (_b = children.props)[eventName]) === null || _c === void 0 ? void 0 : (_c2 = _c).call.apply(_c2, [_b].concat(args)); 1070 }; 1071 }); 1072 // List of props that need to be watched for changes -> if changes are detected in MemoInput -> rerender 1073 var watchingChildProps = [childProps['aria-required'], childProps['aria-invalid'], childProps['aria-describedby']]; 1074 childNode = /*#__PURE__*/react["createElement"](MemoInput, { 1075 value: mergedControl[props.valuePropName || 'value'], 1076 update: children, 1077 childProps: watchingChildProps 1078 }, Object(reactNode["a" /* cloneElement */])(children, childProps)); 1079 } else if (isRenderProps && (shouldUpdate || dependencies) && !hasName) { 1080 childNode = children(context); 1081 } else { 1082 false ? undefined : void 0; 1083 childNode = children; 1084 } 1085 return renderLayout(childNode, fieldId, isRequired); 1086 }); 1087} 1088var FormItem = InternalFormItem; 1089FormItem.useStatus = hooks_useFormItemStatus; 1090/* harmony default export */ var form_FormItem = (FormItem); 1091// CONCATENATED MODULE: ./node_modules/antd/es/form/FormList.js 1092 1093var FormList_rest = undefined && undefined.__rest || function (s, e) { 1094 var t = {}; 1095 for (var p in s) { 1096 if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; 1097 } 1098 if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { 1099 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; 1100 } 1101 return t; 1102}; 1103 1104 1105 1106 1107 1108var FormList_FormList = function FormList(_a) { 1109 var customizePrefixCls = _a.prefixCls, 1110 children = _a.children, 1111 props = FormList_rest(_a, ["prefixCls", "children"]); 1112 false ? undefined : void 0; 1113 var _React$useContext = react["useContext"](config_provider_context["b" /* ConfigContext */]), 1114 getPrefixCls = _React$useContext.getPrefixCls; 1115 var prefixCls = getPrefixCls('form', customizePrefixCls); 1116 var contextValue = react["useMemo"](function () { 1117 return { 1118 prefixCls: prefixCls, 1119 status: 'error' 1120 }; 1121 }, [prefixCls]); 1122 return /*#__PURE__*/react["createElement"](rc_field_form_es["List"], Object(esm_extends["a" /* default */])({}, props), function (fields, operation, meta) { 1123 return /*#__PURE__*/react["createElement"](form_context["c" /* FormItemPrefixContext */].Provider, { 1124 value: contextValue 1125 }, children(fields.map(function (field) { 1126 return Object(esm_extends["a" /* default */])(Object(esm_extends["a" /* default */])({}, field), { 1127 fieldKey: field.key 1128 }); 1129 }), operation, { 1130 errors: meta.errors, 1131 warnings: meta.warnings 1132 })); 1133 }); 1134}; 1135/* harmony default export */ var form_FormList = (FormList_FormList); 1136// CONCATENATED MODULE: ./node_modules/antd/es/form/hooks/useFormInstance.js 1137 1138 1139function useFormInstance() { 1140 var _useContext = Object(react["useContext"])(form_context["a" /* FormContext */]), 1141 form = _useContext.form; 1142 return form; 1143} 1144// CONCATENATED MODULE: ./node_modules/antd/es/form/index.js 1145 1146 1147 1148 1149 1150 1151 1152var es_form_Form = form_Form; 1153es_form_Form.Item = form_FormItem; 1154es_form_Form.List = form_FormList; 1155es_form_Form.ErrorList = ErrorList; 1156es_form_Form.useForm = useForm; 1157es_form_Form.useFormInstance = useFormInstance; 1158es_form_Form.useWatch = rc_field_form_es["useWatch"]; 1159es_form_Form.Provider = form_context["d" /* FormProvider */]; 1160es_form_Form.create = function () { 1161 false ? undefined : void 0; 1162}; 1163/* harmony default export */ var es_form = __webpack_exports__["a"] = (es_form_Form); 1164 1165/***/ }), 1166 1167/***/ "ZpRC": 1168/***/ (function(module, __webpack_exports__, __webpack_require__) { 1169 1170"use strict";
vendor: 5,179 bytes, lines 1171-1248
1171// ESM COMPAT FLAG 1172__webpack_require__.r(__webpack_exports__); 1173 1174// CONCATENATED MODULE: ./node_modules/compute-scroll-into-view/dist/index.mjs 1175function t(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function e(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function r(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}var i=function(e,i){var o=window,l=i.scrollMode,d=i.block,f=i.inline,h=i.boundary,u=i.skipOverflowHiddenElements,s="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var a,c,g=document.scrollingElement||document.documentElement,p=[],m=e;t(m)&&s(m);){if((m=null==(c=(a=m).parentElement)?a.getRootNode().host||null:c)===g){p.push(m);break}null!=m&&m===document.body&&n(m)&&!n(document.documentElement)||null!=m&&n(m,u)&&p.push(m)}for(var w=o.visualViewport?o.visualViewport.width:innerWidth,v=o.visualViewport?o.visualViewport.height:innerHeight,W=window.scrollX||pageXOffset,H=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,E=b.width,M=b.top,V=b.right,x=b.bottom,I=b.left,C="start"===d||"nearest"===d?M:"end"===d?x:M+y/2,R="center"===f?I+E/2:"end"===f?V:I,T=[],k=0;k<p.length;k++){var B=p[k],D=B.getBoundingClientRect(),O=D.height,X=D.width,Y=D.top,L=D.right,S=D.bottom,j=D.left;if("if-needed"===l&&M>=0&&I>=0&&x<=v&&V<=w&&M>=Y&&x<=S&&I>=j&&V<=L)return T;var N=getComputedStyle(B),q=parseInt(N.borderLeftWidth,10),z=parseInt(N.borderTopWidth,10),A=parseInt(N.borderRightWidth,10),F=parseInt(N.borderBottomWidth,10),G=0,J=0,K="offsetWidth"in B?B.offsetWidth-B.clientWidth-q-A:0,P="offsetHeight"in B?B.offsetHeight-B.clientHeight-z-F:0,Q="offsetWidth"in B?0===B.offsetWidth?0:X/B.offsetWidth:0,U="offsetHeight"in B?0===B.offsetHeight?0:O/B.offsetHeight:0;if(g===B)G="start"===d?C:"end"===d?C-v:"nearest"===d?r(H,H+v,v,z,F,H+C,H+C+y,y):C-v/2,J="start"===f?R:"center"===f?R-w/2:"end"===f?R-w:r(W,W+w,w,q,A,W+R,W+R+E,E),G=Math.max(0,G+H),J=Math.max(0,J+W);else{G="start"===d?C-Y-z:"end"===d?C-S+F+P:"nearest"===d?r(Y,S,O,z,F+P,C,C+y,y):C-(Y+O/2)+P/2,J="start"===f?R-j-q:"center"===f?R-(j+X/2)+K/2:"end"===f?R-L+A+K:r(j,L,X,q,A+K,R,R+E,E);var Z=B.scrollLeft,$=B.scrollTop;C+=$-(G=Math.max(0,Math.min($+G/U,B.scrollHeight-O/U+P))),R+=Z-(J=Math.max(0,Math.min(Z+J/Q,B.scrollWidth-X/Q+K)))}T.push({el:B,top:G,left:J})}return T}; 1176//# sourceMappingURL=index.mjs.map 1177 1178// CONCATENATED MODULE: ./node_modules/scroll-into-view-if-needed/es/index.js 1179 1180function isOptionsObject(options) { 1181 return options === Object(options) && Object.keys(options).length !== 0; 1182} 1183function defaultBehavior(actions, behavior) { 1184 if (behavior === void 0) { 1185 behavior = 'auto'; 1186 } 1187 var canSmoothScroll = ('scrollBehavior' in document.body.style); 1188 actions.forEach(function (_ref) { 1189 var el = _ref.el, 1190 top = _ref.top, 1191 left = _ref.left; 1192 if (el.scroll && canSmoothScroll) { 1193 el.scroll({ 1194 top: top, 1195 left: left, 1196 behavior: behavior 1197 }); 1198 } else { 1199 el.scrollTop = top; 1200 el.scrollLeft = left; 1201 } 1202 }); 1203} 1204function getOptions(options) { 1205 if (options === false) { 1206 return { 1207 block: 'end', 1208 inline: 'nearest' 1209 }; 1210 } 1211 if (isOptionsObject(options)) { 1212 return options; 1213 } 1214 return { 1215 block: 'start', 1216 inline: 'nearest' 1217 }; 1218} 1219function scrollIntoView(target, options) { 1220 var isTargetAttached = target.isConnected || target.ownerDocument.documentElement.contains(target); 1221 if (isOptionsObject(options) && typeof options.behavior === 'function') { 1222 return options.behavior(isTargetAttached ? i(target, options) : []); 1223 } 1224 if (!isTargetAttached) { 1225 return; 1226 } 1227 var computeOptions = getOptions(options); 1228 return defaultBehavior(i(target, computeOptions), computeOptions.behavior); 1229} 1230/* harmony default export */ var es = __webpack_exports__["default"] = (scrollIntoView); 1231 1232/***/ }), 1233 1234/***/ "hkKa": 1235/***/ (function(module, __webpack_exports__, __webpack_require__) { 1236 1237"use strict"; 1238/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useForceUpdate; }); 1239/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ODXe"); 1240/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("q1tI"); 1241/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); 1242 1243 1244function useForceUpdate() { 1245 var _React$useReducer = react__WEBPACK_IMPORTED_MODULE_1__["useReducer"](function (x) { 1246 return x + 1; 1247 }, 0), 1248 _React$useReducer2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_React$useReducer, 2),
1249 forceUpdate = _React$useReducer2[1]; 1250 return forceUpdate; 1251} 1252 1253/***/ }) 1254 1255}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.