@kne-components/components-core 0.1.44 → 0.1.45
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/build/asset-manifest.json +120 -120
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.b83efc6d.chunk.css +2 -0
- package/build/static/css/{1151.2de251fd.chunk.css.map → 1151.b83efc6d.chunk.css.map} +1 -1
- package/build/static/css/1153.d211205e.chunk.css +2 -0
- package/build/static/css/1153.d211205e.chunk.css.map +1 -0
- package/build/static/css/1454.f7186781.chunk.css +2 -0
- package/build/static/css/{1454.f2b001d5.chunk.css.map → 1454.f7186781.chunk.css.map} +1 -1
- package/build/static/css/1554.b7cfc023.chunk.css +2 -0
- package/build/static/css/{1554.130a0be3.chunk.css.map → 1554.b7cfc023.chunk.css.map} +1 -1
- package/build/static/css/2503.acb88450.chunk.css +2 -0
- package/build/static/css/{2503.40a53285.chunk.css.map → 2503.acb88450.chunk.css.map} +1 -1
- package/build/static/css/2517.3f0d1ef8.chunk.css +2 -0
- package/build/static/css/{2517.3f9310a9.chunk.css.map → 2517.3f0d1ef8.chunk.css.map} +1 -1
- package/build/static/css/2526.3e327202.chunk.css +2 -0
- package/build/static/css/{2526.9e9f6829.chunk.css.map → 2526.3e327202.chunk.css.map} +1 -1
- package/build/static/css/2716.46dd401c.chunk.css +2 -0
- package/build/static/css/{2716.c017e660.chunk.css.map → 2716.46dd401c.chunk.css.map} +1 -1
- package/build/static/css/2730.731593bc.chunk.css +2 -0
- package/build/static/css/{2730.743bf485.chunk.css.map → 2730.731593bc.chunk.css.map} +1 -1
- package/build/static/css/289.47dca2c4.chunk.css +2 -0
- package/build/static/css/{289.b70fc01c.chunk.css.map → 289.47dca2c4.chunk.css.map} +1 -1
- package/build/static/css/2999.a610dbcb.chunk.css +2 -0
- package/build/static/css/2999.a610dbcb.chunk.css.map +1 -0
- package/build/static/css/3040.cd70a558.chunk.css +2 -0
- package/build/static/css/3040.cd70a558.chunk.css.map +1 -0
- package/build/static/css/3333.20308c86.chunk.css +2 -0
- package/build/static/css/{3333.6e0323d9.chunk.css.map → 3333.20308c86.chunk.css.map} +1 -1
- package/build/static/css/{3843.453f8046.chunk.css → 3843.69ad2a7c.chunk.css} +2 -2
- package/build/static/css/{3843.453f8046.chunk.css.map → 3843.69ad2a7c.chunk.css.map} +1 -1
- package/build/static/css/4666.e03f5a2f.chunk.css +2 -0
- package/build/static/css/{4666.10374084.chunk.css.map → 4666.e03f5a2f.chunk.css.map} +1 -1
- package/build/static/css/5600.92bd0867.chunk.css +2 -0
- package/build/static/css/{5600.09a82d80.chunk.css.map → 5600.92bd0867.chunk.css.map} +1 -1
- package/build/static/css/5846.5bccb785.chunk.css +2 -0
- package/build/static/css/5846.5bccb785.chunk.css.map +1 -0
- package/build/static/css/5868.5c823973.chunk.css +2 -0
- package/build/static/css/5868.5c823973.chunk.css.map +1 -0
- package/build/static/css/{5996.94c46f47.chunk.css → 5996.312bfdb2.chunk.css} +2 -2
- package/build/static/css/{5996.94c46f47.chunk.css.map → 5996.312bfdb2.chunk.css.map} +1 -1
- package/build/static/css/6779.df40dab5.chunk.css +2 -0
- package/build/static/css/{6779.7e52a007.chunk.css.map → 6779.df40dab5.chunk.css.map} +1 -1
- package/build/static/css/7227.0eb404fe.chunk.css +2 -0
- package/build/static/css/{7227.fe01cb7e.chunk.css.map → 7227.0eb404fe.chunk.css.map} +1 -1
- package/build/static/css/8148.8ad972cf.chunk.css +2 -0
- package/build/static/css/{8148.e8367579.chunk.css.map → 8148.8ad972cf.chunk.css.map} +1 -1
- package/build/static/css/8393.ea223dee.chunk.css +2 -0
- package/build/static/css/8393.ea223dee.chunk.css.map +1 -0
- package/build/static/css/{8725.a25f5a9b.chunk.css → 8725.17a179fb.chunk.css} +2 -2
- package/build/static/css/{8725.a25f5a9b.chunk.css.map → 8725.17a179fb.chunk.css.map} +1 -1
- package/build/static/css/9053.57fba7d8.chunk.css +2 -0
- package/build/static/css/{9053.00325cfb.chunk.css.map → 9053.57fba7d8.chunk.css.map} +1 -1
- package/build/static/css/931.2f2b5b26.chunk.css +2 -0
- package/build/static/css/931.2f2b5b26.chunk.css.map +1 -0
- package/build/static/css/9449.46f6888c.chunk.css +2 -0
- package/build/static/css/{9449.630164de.chunk.css.map → 9449.46f6888c.chunk.css.map} +1 -1
- package/build/static/css/9689.c17769d6.chunk.css +2 -0
- package/build/static/css/9689.c17769d6.chunk.css.map +1 -0
- package/build/static/js/1153.0dd6423b.chunk.js +3 -0
- package/build/static/js/{1153.1b385582.chunk.js.map → 1153.0dd6423b.chunk.js.map} +1 -1
- package/build/static/js/1454.0556a15d.chunk.js +3 -0
- package/build/static/js/{1454.9376af39.chunk.js.map → 1454.0556a15d.chunk.js.map} +1 -1
- package/build/static/js/1554.44c98ff2.chunk.js +3 -0
- package/build/static/js/{1554.df76694a.chunk.js.map → 1554.44c98ff2.chunk.js.map} +1 -1
- package/build/static/js/{1664.f65c3887.chunk.js → 1664.4c500116.chunk.js} +2 -2
- package/build/static/js/{1664.f65c3887.chunk.js.map → 1664.4c500116.chunk.js.map} +1 -1
- package/build/static/js/{2503.b0da3407.chunk.js → 2503.e05663f8.chunk.js} +2 -2
- package/build/static/js/{2503.b0da3407.chunk.js.map → 2503.e05663f8.chunk.js.map} +1 -1
- package/build/static/js/2517.1c1b3756.chunk.js +2 -0
- package/build/static/js/{2517.60fa3ca0.chunk.js.map → 2517.1c1b3756.chunk.js.map} +1 -1
- package/build/static/js/2526.1a3d5789.chunk.js +2 -0
- package/build/static/js/2526.1a3d5789.chunk.js.map +1 -0
- package/build/static/js/2716.5cbf7666.chunk.js +3 -0
- package/build/static/js/{2716.13f53bb9.chunk.js.map → 2716.5cbf7666.chunk.js.map} +1 -1
- package/build/static/js/2730.a72fbc35.chunk.js +2 -0
- package/build/static/js/{2730.9a379e7c.chunk.js.map → 2730.a72fbc35.chunk.js.map} +1 -1
- package/build/static/js/{289.98f36318.chunk.js → 289.a59d9b5e.chunk.js} +2 -2
- package/build/static/js/{289.98f36318.chunk.js.map → 289.a59d9b5e.chunk.js.map} +1 -1
- package/build/static/js/2999.00d2f675.chunk.js +2 -0
- package/build/static/js/2999.00d2f675.chunk.js.map +1 -0
- package/build/static/js/{3040.0844bcd2.chunk.js → 3040.2748ff61.chunk.js} +2 -2
- package/build/static/js/3040.2748ff61.chunk.js.map +1 -0
- package/build/static/js/{3333.635de308.chunk.js → 3333.f06988cc.chunk.js} +2 -2
- package/build/static/js/{3333.635de308.chunk.js.map → 3333.f06988cc.chunk.js.map} +1 -1
- package/build/static/js/{36.59b1c2e6.chunk.js → 36.b7c48937.chunk.js} +2 -2
- package/build/static/js/{36.59b1c2e6.chunk.js.map → 36.b7c48937.chunk.js.map} +1 -1
- package/build/static/js/{3843.3a7a3664.chunk.js → 3843.ca525275.chunk.js} +2 -2
- package/build/static/js/{3843.3a7a3664.chunk.js.map → 3843.ca525275.chunk.js.map} +1 -1
- package/build/static/js/{4666.9c2d99d1.chunk.js → 4666.d1136d85.chunk.js} +3 -3
- package/build/static/js/{4666.9c2d99d1.chunk.js.map → 4666.d1136d85.chunk.js.map} +1 -1
- package/build/static/js/5600.0caa92c6.chunk.js +2 -0
- package/build/static/js/{5600.6a4301c7.chunk.js.map → 5600.0caa92c6.chunk.js.map} +1 -1
- package/build/static/js/{5846.1a712109.chunk.js → 5846.1174f098.chunk.js} +2 -2
- package/build/static/js/{5846.1a712109.chunk.js.map → 5846.1174f098.chunk.js.map} +1 -1
- package/build/static/js/{5868.f832af28.chunk.js → 5868.ce2a2970.chunk.js} +2 -2
- package/build/static/js/{5868.f832af28.chunk.js.map → 5868.ce2a2970.chunk.js.map} +1 -1
- package/build/static/js/{5996.3e33c84f.chunk.js → 5996.79124fa8.chunk.js} +2 -2
- package/build/static/js/{5996.3e33c84f.chunk.js.map → 5996.79124fa8.chunk.js.map} +1 -1
- package/build/static/js/{6779.0d548a74.chunk.js → 6779.c39d5d55.chunk.js} +2 -2
- package/build/static/js/{6779.0d548a74.chunk.js.map → 6779.c39d5d55.chunk.js.map} +1 -1
- package/build/static/js/7227.ca0a8f6c.chunk.js +3 -0
- package/build/static/js/{7227.6e7e364e.chunk.js.map → 7227.ca0a8f6c.chunk.js.map} +1 -1
- package/build/static/js/7777.ad532f7d.chunk.js +2 -0
- package/build/static/js/{7777.84cb0414.chunk.js.map → 7777.ad532f7d.chunk.js.map} +1 -1
- package/build/static/js/{8148.7f5cd5c2.chunk.js → 8148.b15aa10e.chunk.js} +3 -3
- package/build/static/js/{8148.7f5cd5c2.chunk.js.map → 8148.b15aa10e.chunk.js.map} +1 -1
- package/build/static/js/{8393.d420e8bc.chunk.js → 8393.a78505f7.chunk.js} +2 -2
- package/build/static/js/8393.a78505f7.chunk.js.map +1 -0
- package/build/static/js/8643.2199b202.chunk.js +3 -0
- package/build/static/js/8643.2199b202.chunk.js.map +1 -0
- package/build/static/js/8725.55799c34.chunk.js +2 -0
- package/build/static/js/{8725.bf9e6302.chunk.js.map → 8725.55799c34.chunk.js.map} +1 -1
- package/build/static/js/{9053.be7c1bfc.chunk.js → 9053.8d32ad5e.chunk.js} +3 -3
- package/build/static/js/{9053.be7c1bfc.chunk.js.map → 9053.8d32ad5e.chunk.js.map} +1 -1
- package/build/static/js/{931.c810fc10.chunk.js → 931.9083d558.chunk.js} +2 -2
- package/build/static/js/{931.c810fc10.chunk.js.map → 931.9083d558.chunk.js.map} +1 -1
- package/build/static/js/9449.9aa5e43c.chunk.js +2 -0
- package/build/static/js/{9449.ac02b596.chunk.js.map → 9449.9aa5e43c.chunk.js.map} +1 -1
- package/build/static/js/{main.757b4a7a.js → main.5a20df0c.js} +2 -2
- package/build/static/js/{main.757b4a7a.js.map → main.5a20df0c.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1151.2de251fd.chunk.css +0 -2
- package/build/static/css/1153.8ef999ec.chunk.css +0 -2
- package/build/static/css/1153.8ef999ec.chunk.css.map +0 -1
- package/build/static/css/1454.f2b001d5.chunk.css +0 -2
- package/build/static/css/1554.130a0be3.chunk.css +0 -2
- package/build/static/css/2503.40a53285.chunk.css +0 -2
- package/build/static/css/2517.3f9310a9.chunk.css +0 -2
- package/build/static/css/2526.9e9f6829.chunk.css +0 -2
- package/build/static/css/2716.c017e660.chunk.css +0 -2
- package/build/static/css/2730.743bf485.chunk.css +0 -2
- package/build/static/css/289.b70fc01c.chunk.css +0 -2
- package/build/static/css/2999.3d1a5ce8.chunk.css +0 -2
- package/build/static/css/2999.3d1a5ce8.chunk.css.map +0 -1
- package/build/static/css/3040.122c6a8b.chunk.css +0 -2
- package/build/static/css/3040.122c6a8b.chunk.css.map +0 -1
- package/build/static/css/3333.6e0323d9.chunk.css +0 -2
- package/build/static/css/4666.10374084.chunk.css +0 -2
- package/build/static/css/5600.09a82d80.chunk.css +0 -2
- package/build/static/css/5846.275440f8.chunk.css +0 -2
- package/build/static/css/5846.275440f8.chunk.css.map +0 -1
- package/build/static/css/5868.5a388acc.chunk.css +0 -2
- package/build/static/css/5868.5a388acc.chunk.css.map +0 -1
- package/build/static/css/6779.7e52a007.chunk.css +0 -2
- package/build/static/css/7227.fe01cb7e.chunk.css +0 -2
- package/build/static/css/8148.e8367579.chunk.css +0 -2
- package/build/static/css/8393.a6650919.chunk.css +0 -2
- package/build/static/css/8393.a6650919.chunk.css.map +0 -1
- package/build/static/css/9053.00325cfb.chunk.css +0 -2
- package/build/static/css/931.94011498.chunk.css +0 -2
- package/build/static/css/931.94011498.chunk.css.map +0 -1
- package/build/static/css/9449.630164de.chunk.css +0 -2
- package/build/static/css/9689.9184c0c4.chunk.css +0 -2
- package/build/static/css/9689.9184c0c4.chunk.css.map +0 -1
- package/build/static/js/1153.1b385582.chunk.js +0 -3
- package/build/static/js/1454.9376af39.chunk.js +0 -3
- package/build/static/js/1554.df76694a.chunk.js +0 -3
- package/build/static/js/2517.60fa3ca0.chunk.js +0 -2
- package/build/static/js/2526.58910221.chunk.js +0 -2
- package/build/static/js/2526.58910221.chunk.js.map +0 -1
- package/build/static/js/2716.13f53bb9.chunk.js +0 -3
- package/build/static/js/2730.9a379e7c.chunk.js +0 -2
- package/build/static/js/2999.67c0b936.chunk.js +0 -2
- package/build/static/js/2999.67c0b936.chunk.js.map +0 -1
- package/build/static/js/3040.0844bcd2.chunk.js.map +0 -1
- package/build/static/js/5600.6a4301c7.chunk.js +0 -2
- package/build/static/js/7227.6e7e364e.chunk.js +0 -3
- package/build/static/js/7777.84cb0414.chunk.js +0 -2
- package/build/static/js/8393.d420e8bc.chunk.js.map +0 -1
- package/build/static/js/8643.edd3d789.chunk.js +0 -3
- package/build/static/js/8643.edd3d789.chunk.js.map +0 -1
- package/build/static/js/8725.bf9e6302.chunk.js +0 -2
- package/build/static/js/9449.ac02b596.chunk.js +0 -2
- /package/build/static/js/{1153.1b385582.chunk.js.LICENSE.txt → 1153.0dd6423b.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1454.9376af39.chunk.js.LICENSE.txt → 1454.0556a15d.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.df76694a.chunk.js.LICENSE.txt → 1554.44c98ff2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.13f53bb9.chunk.js.LICENSE.txt → 2716.5cbf7666.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.9c2d99d1.chunk.js.LICENSE.txt → 4666.d1136d85.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.6e7e364e.chunk.js.LICENSE.txt → 7227.ca0a8f6c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{8148.7f5cd5c2.chunk.js.LICENSE.txt → 8148.b15aa10e.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{8643.edd3d789.chunk.js.LICENSE.txt → 8643.2199b202.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9053.be7c1bfc.chunk.js.LICENSE.txt → 9053.8d32ad5e.chunk.js.LICENSE.txt}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ack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__St-+1\",\"is-danger\":\"style_is-danger__gxyAB__St-+1\",\"title\":\"style_title__EEPu2__St-+1\",\"content\":\"style_content__mZZg5__St-+1\",\"has-title\":\"style_has-title__5+PEt__St-+1\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__St-+1\",\"large\":\"style_large__iaqVE__St-+1\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__St-+1\",\"modal-title\":\"style_modal-title__dswaw__St-+1\",\"modal-outer\":\"style_modal-outer__r3SkX__St-+1\",\"modal-body\":\"style_modal-body__jQJSI__St-+1\",\"right-options-modal\":\"style_right-options-modal__FajDP__St-+1\",\"right-options-col\":\"style_right-options-col__3ilee__St-+1\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__St-+1\",\"modal-footer\":\"style_modal-footer__-prbN__St-+1\",\"modal-close\":\"style_modal-close__Oa5Kl__St-+1\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__St-+1\",\"is-danger\":\"style_is-danger__H5110__St-+1\",\"title\":\"style_title__orTym__St-+1\",\"content\":\"style_content__k6MIF__St-+1\",\"has-title\":\"style_has-title__qy0Wp__St-+1\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === 'function') {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false}>\n <Col span={18} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={6} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return { width: `${Math.min(window.innerWidth - 64, 1500)}px` };\n }\n if (type === \"small\") {\n return { width: \"600px\" };\n }\n return { width: \"1000px\" };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n disabledScroller,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, { ...props, close: onClose })}\n targetProps={props}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n disabledScroller,\n children,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n return <AntdModal {...computedCommonProps(props)} />;\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n )}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","_ref","title","message","isDelete","onClick","onCancel","disabled","showCancel","cancelText","isModal","okText","placement","getContainer","props","formatMessage","useIntl","modal","useConfirmModal","_jsx","e","type","danger","id","onOk","Popconfirm","_jsxs","Space","direction","stopPropagation","children","size","align","className","style","Icon","classnames","onConfirm","okButtonProps","overlayClassName","getPopupContainer","defaultProps","ConfirmLink","Typography","Link","ConfirmText","Text","Button","renderWithOptions","footer","options","localeModuleName","RightOptions","Row","wrap","Col","span","Footer","_ref2","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","length","IntlProvider","FormattedMessage","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","useRef","icon","ref","runWithDecorator","_ref5","withDecorator","rightOptions","getInner","Object","assign","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","width","concat","Math","min","window","innerWidth","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","confirmType","typeEnum","confirm","warning","error","success","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/5600.0caa92c6.chunk.js","mappings":"8MAGA,QAAeA,G,8HCHf,MAOA,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,wDCHJ,QAA0B,8BAA1B,EAAoE,gCAApE,EAA4G,4BAA5G,EAAkJ,8BAAlJ,EAA4L,gC,eCQrL,MAAMG,EAAeC,IAC1B,MAAMC,GAAmBC,EAAAA,EAAAA,gBAAe,CACtCC,WAAY,gBACZC,eACF,GAHyBF,EAIvBG,IAcO,IAdN,MACCC,EAAK,QACLC,EAAO,SACPC,GAAW,EAAI,QACfC,EAAO,SACPC,EAAQ,SACRC,EAAQ,WACRC,EAAU,WACVC,EAAU,QACVC,EAAO,OACPC,EAAM,UACNC,EAAS,aACTC,KACGC,GACJb,EACC,MAAM,cAAEc,IAAkBC,EAAAA,EAAAA,SAAQ,CAAEjB,WAAY,kBAC1CkB,GAAQC,EAAAA,EAAAA,mBACd,OAAIR,GAEAS,EAAAA,EAAAA,KAACvB,EAAgB,IACXkB,EACJT,QAAUe,IACRH,EAAM,CACJI,KAAM,UACNnB,MAAOA,EACPW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,oBAAb3C,EAA0BA,EAAShB,GAASgB,CAAQ,EAErE,EAOH,EAJmBhB,IACVK,EAAAA,EAAAA,KAACkG,EAAK,IAAKZ,EAAoB3F,KAK3BmI,EAAeA,KAC1B,MAAMhI,EAAQsG,IACd,OAAQzG,GAAUG,EAAMwF,EAAoB3F,GAAO,E,eCvDrD,MAKaoI,EAAmBpI,IAC9B,MAAMqI,EAAYF,IAClB,OAAO9H,EAAAA,EAAAA,KAACiI,EAAAA,EAAW,IAAKtI,EAAOuI,UAAWF,GAAa,EAEzD,EATqBrI,IACnB,MAAMG,EAAQsG,IACd,OAAOpG,EAAAA,EAAAA,KAACiI,EAAAA,EAAW,IAAKtI,EAAOuI,UAAWpI,GAAS,C","sources":["common/components/SimpleBar.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__0pAcf\",\"is-danger\":\"style_is-danger__gxyAB__0pAcf\",\"title\":\"style_title__EEPu2__0pAcf\",\"content\":\"style_content__mZZg5__0pAcf\",\"has-title\":\"style_has-title__5+PEt__0pAcf\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__0pAcf\",\"large\":\"style_large__iaqVE__0pAcf\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__0pAcf\",\"modal-title\":\"style_modal-title__dswaw__0pAcf\",\"modal-outer\":\"style_modal-outer__r3SkX__0pAcf\",\"modal-body\":\"style_modal-body__jQJSI__0pAcf\",\"right-options-modal\":\"style_right-options-modal__FajDP__0pAcf\",\"right-options-col\":\"style_right-options-col__3ilee__0pAcf\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__0pAcf\",\"modal-footer\":\"style_modal-footer__-prbN__0pAcf\",\"modal-close\":\"style_modal-close__Oa5Kl__0pAcf\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__0pAcf\",\"is-danger\":\"style_is-danger__H5110__0pAcf\",\"title\":\"style_title__orTym__0pAcf\",\"content\":\"style_content__k6MIF__0pAcf\",\"has-title\":\"style_has-title__qy0Wp__0pAcf\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === 'function') {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false}>\n <Col span={18} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={6} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return { width: `${Math.min(window.innerWidth - 64, 1500)}px` };\n }\n if (type === \"small\") {\n return { width: \"600px\" };\n }\n return { width: \"1000px\" };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n disabledScroller,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, { ...props, close: onClose })}\n targetProps={props}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n disabledScroller,\n children,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n return <AntdModal {...computedCommonProps(props)} />;\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n )}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","_ref","title","message","isDelete","onClick","onCancel","disabled","showCancel","cancelText","isModal","okText","placement","getContainer","props","formatMessage","useIntl","modal","useConfirmModal","_jsx","e","type","danger","id","onOk","Popconfirm","_jsxs","Space","direction","stopPropagation","children","size","align","className","style","Icon","classnames","onConfirm","okButtonProps","overlayClassName","getPopupContainer","defaultProps","ConfirmLink","Typography","Link","ConfirmText","Text","Button","renderWithOptions","footer","options","localeModuleName","RightOptions","Row","wrap","Col","span","Footer","_ref2","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","length","IntlProvider","FormattedMessage","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","useRef","icon","ref","runWithDecorator","_ref5","withDecorator","rightOptions","getInner","Object","assign","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","width","concat","Math","min","window","innerWidth","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","confirmType","typeEnum","confirm","warning","error","success","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5846],{58407:(e,t,n)=>{n.r(t),n.d(t,{ConfirmLink:()=>_,ConfirmText:()=>x,default:()=>y,withConfirm:()=>g});n(73884);var a=n(55199);const r=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var s=n(64671),l=n(58609),o=n(3382),i=n(83136),c=n.n(i);const d="style_overlay__99t5t__St-+1",u="style_is-danger__gxyAB__St-+1",p="style_title__EEPu2__St-+1",m="style_content__mZZg5__St-+1",h="style_has-title__5+PEt__St-+1";var f=n(70579);const g=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:i=!0,onClick:g,onCancel:_,disabled:x,showCancel:y,cancelText:v,isModal:j,okText:N,placement:S,getContainer:b,...A}=t;const{formatMessage:C}=(0,l.useIntl)({moduleName:"ConfirmButton"}),w=(0,o.useConfirmModal)();return j?(0,f.jsx)(e,{...A,onClick:e=>{w({type:"confirm",title:n,getContainer:b,danger:i,message:r||C({id:"message"}),okText:N||C(i?{id:"delete"}:{id:"confirm"}),cancelText:v||C({id:"cancel"}),onCancel:_,onOk:g})}}):(0,f.jsx)(a.Popconfirm,{title:(0,f.jsxs)(a.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,f.jsxs)(a.Space,{size:0,align:"start",className:p,children:[(0,f.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,f.jsxs)(a.Space,{size:0,align:"start",className:c()(m,{[h]:n}),children:[!n&&(0,f.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),r||C({id:"message"})]})]}),placement:S,onConfirm:g,okButtonProps:{danger:i},onCancel:_,overlayClassName:c()(d,{[u]:i}),getPopupContainer:b,disabled:x,showCancel:y,cancelText:v,okText:N||C(i?{id:"delete"}:{id:"confirm"}),children:(0,f.jsx)(e,{...A,disabled:x})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},_=g(a.Typography.Link),x=g(a.Typography.Text),y=g(a.Button)},48731:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var a=n(73884),r=n(87558),s=n(76329),l=n(15797),o=n.n(l),i=n(79686),c=n.n(i),d=n(70579);const u=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],p=(0,r.withFetch)((e=>{let{data:t,children:n}=e;return"function"===typeof n?n(t):n||(null===t||void 0===t?void 0:t.description)})),m=o()((e=>new Map(u.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),h=e=>{let{loader:t,...n}=e;const{global:{enumsRef:r}}=(0,s.useGlobalContext)(),l=(0,a.useRef)(null);return(0,d.jsx)(p,{...n,loader:async function(){const e=m(await t(...arguments)),{params:n}=arguments.length<=0?void 0:arguments[0],{moduleName:a,name:s,force:o,locale:i}=n,d=async t=>!0!==o&&l.current===i&&r.current.get(t)||await(async()=>{const n=e.get(t),a=await(async()=>"function"===typeof n?new Map((await n({locale:i})).map((e=>[e.value.toString(),e]))):Array.isArray(n)?new Map(n.map((e=>[e.value.toString(),e]))):"object"===typeof n?new Map(Object.keys(n).map((e=>[e.toString(),n[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return r.current.set(t,a),l.current=i,a})();if(Array.isArray(a))return await Promise.all(a.map((e=>d(e).then((e=>Array.from(e.values()))))));const u=await d(a);return c()(s)?Array.from(u.values()):u.get(s.toString())}})},f=e=>{let{moduleName:t,name:n,force:a,children:r,...l}=e;const o=(0,s.usePreset)();return(0,d.jsx)(h,{...l,params:{moduleName:t,locale:null===o||void 0===o?void 0:o.locale,enums:null===o||void 0===o?void 0:o.enums,name:n,force:a},loader:e=>{let{params:t}=e;return t.enums},children:r})};f.defaultProps={force:!1};const g=f},67390:(e,t,n)=>{n.r(t),n.d(t,{Download:()=>x,FileLink:()=>K,List:()=>G,OptionButtons:()=>R,default:()=>q,downloadBlobFile:()=>f,useDownload:()=>g,useFileModal:()=>M});var a=n(33097),r=n.n(a),s=n(89946),l=n.n(s),o=n(55199),i=n(76329),c=n(64671),d=n(87558),u=n(73884),p=n(96418),m=n.n(p),h=n(70579);const f=async(e,t)=>{const n=e=>{const n=document.createElement("a"),a=new MouseEvent("click");n.download=t,n.href=e,n.dispatchEvent(a)};if(!e)throw new Error("\u672a\u83b7\u53d6\u5230\u4e0b\u8f7d\u7684\u6587\u4ef6\u4fe1\u606f");if("string"===typeof e&&/blob:http(s)?:/.test(e))return void n(e);if("[object Blob]"===Object.prototype.toString.call(e)){const t=new Blob([e],{type:r()(e,"type")});return void n(URL.createObjectURL(t))}const{data:a}=await l()({url:e,responseType:"blob"});n(URL.createObjectURL(new Blob([a],{type:r()(a,"type")})))},g=e=>{let{id:t,filename:n,apis:a,onError:r,onSuccess:s}=e;const{message:l}=o.App.useApp(),{apis:c}=(0,i.usePreset)(),p=Object.assign({},c,a),[h,g]=(0,u.useState)(!1),{isLoading:_,data:x,error:y,refresh:v,...j}=(0,d.useFetch)(Object.assign({},p.oss,{auto:!1})),N=m()(r||l.error),S=m()(s);return(0,u.useEffect)((()=>{_||(y?N(y):x&&(g(!0),f(x,n).then(S).catch((e=>{N(e.message)})).then((()=>{g(!1)}))))}),[_,y,x,n,N,S]),{...j,isLoading:_||h,download:()=>v(t&&{params:{id:t}})}},_=e=>{let{id:t,filename:n,api:a,onSuccess:r,onError:s,onClick:l,...i}=e;const{isLoading:d,download:u}=g({id:t,filename:n,api:a,onError:s,onSuccess:r});return(0,h.jsx)(o.Button,{icon:(0,h.jsx)(c.default,{type:"icon-xiazai"}),...i,loading:d,onClick:function(){l&&l(...arguments),u()}})};_.defaultProps={filename:"\u672a\u547d\u540d\u4e0b\u8f7d\u6587\u4ef6"},_.useDownload=g,_.downloadBlobFile=f;const x=_;var y=n(75087),v=n.n(y),j=n(58407),N=n(96252),S=n(58609),b=n(74065),A=n.n(b),C=n(26304),w=n.n(C),P=n(3382),F=n(10419);const I="style_file-modal-outer__1guNh__St-+1",k="style_file-title__8bnUq__St-+1",T="style_ellipse__kDaLC__St-+1",M=()=>{const e=(0,P.useModal)(),{message:t}=o.App.useApp();return(0,u.useCallback)((n=>{let{title:a,id:r,originName:s,apis:l,openDownload:i=!0,...c}=n;return e(Object.assign({footer:null},c,{title:(0,h.jsxs)(o.Space,{size:10,className:k,children:[(0,h.jsx)("span",{className:T,children:a||s}),i&&(0,h.jsx)(x,{className:"btn-no-padding",type:"link",id:r,apis:l,filename:s,onSuccess:()=>{t.success("\u4e0b\u8f7d\u6210\u529f")}})]}),children:(0,h.jsx)("div",{className:I,children:(0,h.jsx)(F.default,{id:r,originName:s,apis:l})})}))}),[e,t])},E=e=>({"en-US":()=>n.e(5645).then(n.bind(n,75645)),"zh-CN":()=>n.e(6707).then(n.bind(n,26707))}[e]()),O=(0,S.createWithIntl)({moduleName:"File",importMessages:E})((e=>{let{item:t,hasPreview:n,getPermission:a,apis:r}=e;const{filename:s,id:l}=t,{formatMessage:i}=(0,S.useIntl)({moduleName:"File"}),d=(0,N.useFormModal)(),u=M();return(0,h.jsxs)(o.Space,{size:0,children:[n&&a("preview",t)&&(0,h.jsx)(o.Button,{type:"text",icon:(0,h.jsx)(c.default,{type:"icon-yulan"}),onClick:()=>{r.onPreview?r.onPreview(t):u({id:l,originName:s,apis:r})}}),a("edit",t)&&(0,h.jsx)(o.Button,{type:"text",icon:(0,h.jsx)(c.default,{type:"icon-bianji"}),onClick:()=>{const e=d({size:"small",title:i({id:"editDocumentName"}),formProps:{data:{name:w()(t.filename.split(".")).join(".")},onSubmit:async n=>{!1!==(r.onEdit&&await r.onEdit({formData:Object.assign({},n,{name:"".concat(n.name,".").concat(A()(t.filename.split(".")))}),item:t}))&&e.close()}},children:(0,h.jsx)(N.default,{column:1,list:[(0,h.jsx)(N.Input,{name:"name",label:i({id:"documentName"}),rule:"REQ LEN-0-100"})]})})}}),a("download",t)&&(0,h.jsx)(x,{type:"text",id:l,filename:s}),a("delete",t)&&(0,h.jsx)(j.default,{type:"text",icon:(0,h.jsx)(c.default,{type:"icon-shanchu"}),onClick:()=>r.onDelete&&r.onDelete(t)})]})}));O.defaultProps={hasPreview:!0,apis:{},getPermission:(e,t)=>!0};const R=O;var L=n(57469),D=n.n(L);const z="style_list-item-outer__0jlCN__St-+1",B="style_list-item__nmPCB__St-+1",U="style_split__kgSlH__St-+1",W="style_loading__kQUX5__St-+1",V="style_list-options__aEila__St-+1",H=e=>{let{className:t,dataSource:n,getPermission:a,infoItemRenders:r,apis:s}=e;return(0,h.jsx)(S.IntlProvider,{importMessages:E,moduleName:"File",children:(0,h.jsx)(o.List,{className:t,dataSource:n.map(((e,t)=>(e.index=t,e))),rowKey:e=>"item_".concat(e.uuid&&"uuid_".concat(e.uuid)||e.id&&"id_".concat(e.id)),renderItem:e=>{const{type:t,filename:n}=e;return(0,h.jsx)(o.List.Item,{className:z,children:(0,h.jsxs)(o.Row,{justify:"space-between",wrap:!1,className:B,children:[(0,h.jsxs)(o.Col,{flex:1,children:[(0,h.jsx)("div",{className:U}),(0,h.jsxs)(o.Space,{className:"is-block",align:"start",size:4,children:[(0,h.jsx)(v(),{type:A()(null===n||void 0===n?void 0:n.split(".")),size:14}),n]})]}),r&&r.map(((n,a)=>(0,h.jsxs)(o.Col,{span:n.span||4,children:["uploading"!==t&&("function"===typeof n?n:n.render)(e),(0,h.jsx)("div",{className:U})]},a))),(0,h.jsx)(o.Col,{className:V,children:"uploading"!==t?(0,h.jsx)(R,{getPermission:a,item:e,apis:s}):(0,h.jsxs)(o.Space,{className:W,children:[(0,h.jsx)(o.Spin,{size:"small"}),(0,h.jsx)(o.Typography.Link,{children:(0,h.jsx)(S.FormattedMessage,{id:"uploading",moduleName:"File"})})]})})]})})},bordered:!0})})};H.defaultProps={infoItemRenders:[e=>e.userName?(0,h.jsx)(o.Typography.Text,{children:e.userName}):null,e=>e.date?(0,h.jsx)(o.Typography.Text,{children:D()(e.date).format("YYYY-MM-DD HH:mm:ss")}):null]};const G=H;const q=(0,n(97211).A)((e=>{let{data:t,children:n,...a}=e;return n({url:t,...a})})),Q=e=>{let{id:t,originName:n,openDownload:a,children:r,modalProps:s,...l}=e;const i=M();return(0,h.jsx)(o.Typography.Link,{...l,onClick:()=>{i({...s,id:t,originName:n,openDownload:a})},children:r||n})};Q.defaultProps={openDownload:!0};const K=Q},10419:(e,t,n)=>{n.r(t),n.d(t,{HtmlPreview:()=>g,ImagePreview:()=>k,OSSFilePreview:()=>O,OfficePreview:()=>y,PdfPreview:()=>b,TextPreview:()=>F,UnknownPreview:()=>I,default:()=>R});var a=n(63114),r=n.n(a),s=n(73884),l=n(13050),o=n(83136),i=n.n(o);const c="style_container__9Fu-3__St-+1",d="style_loading__r3aiE__St-+1",u="style_text-outer__TzhuG__St-+1",p="style_error__wSaxt__St-+1";var m=n(87558),h=n(70579);const f=(0,m.createWithFetch)({transformResponse:e=>{let{data:t}=e;return{data:{code:200,results:t}}}})((e=>{let{data:t}=e;const n=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const e=(new DOMParser).parseFromString(t,"text/html");e.querySelectorAll("script").forEach((e=>{e.parentElement.removeChild(e)}));const a=(0,l.getPublicPath)("components-core")+"/iframeResizer.contentWindow.js",r=document.createElement("script");r.src=a,e.head.appendChild(r);const s=document.createElement("style");s.innerText="html,body{height:auto!important;}body{pointer-events: none;background: #FFFFFF;}",e.head.appendChild(s),n.current.srcdoc=e.documentElement.outerHTML}),[t]),(0,s.useEffect)((()=>{r().iframeResize({checkOrigin:!1},n.current)}),[]),(0,h.jsx)("iframe",{title:"\u7b80\u5386\u9884\u89c8",frameBorder:"0",width:"100%",ref:n})})),g=e=>{let{className:t,url:n,maxWidth:a}=e;return(0,h.jsx)("div",{className:i()(t,c),style:{maxWidth:a},children:(0,h.jsx)(f,{url:n})})};var _=n(76329);const x=(0,m.createWithFetch)({cache:"office-preview"})((e=>{let{data:t,className:n,...a}=e;const{data:r}=t;return r.map((e=>{let{url:t}=e;const r=E(t);return(0,s.createElement)(r,{...a,url:t,key:t,className:n})}))})),y=e=>{let{id:t,apis:n,className:a,...r}=e;const{apis:s}=(0,_.usePreset)(),l=Object.assign({},s,n);return(0,h.jsx)(x,{...r,...l.previewOffice,data:{id:t},className:a})};var v=n(55199),j=n(39165),N=(n(71975),n(36));const S=(0,s.memo)((e=>{let{url:t,maxWidth:n,scale:a,rotate:r,className:o}=e;const[u,p]=(0,s.useState)(0);j.pdfjs.GlobalWorkerOptions.workerSrc=(0,l.getPublicPath)("components-core")+"/pdfjs/build/pdf.worker.js";const[m,f]=(0,s.useState)(n),g=(0,N.useResize)((()=>{g.current.clientWidth&&f(Math.min(g.current.clientWidth,n))}));return(0,h.jsx)("div",{ref:g,className:i()(o,c),style:{maxWidth:n},children:(0,h.jsx)(j.Document,{file:{url:t},options:{standardFontDataUrl:(0,l.getPublicPath)("components-core")+"/pdfjs/standard_fonts/",cMapUrl:(0,l.getPublicPath)("components-core")+"/pdfjs/cmaps/",cMapPacked:!0},error:"PDF\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25",loading:(0,h.jsx)("div",{className:d,children:(0,h.jsx)(v.Spin,{})}),noData:"\u672a\u6307\u5b9aPDF\u6587\u4ef6",onLoadSuccess:e=>{let{numPages:t}=e;p(t),console.log("onLoadSuccess")},onLoadError:e=>{console.log("onLoadError",e)},onSourceError:e=>{console.log("onSourceError",e)},children:(0,h.jsx)(v.Space,{direction:"vertical",children:u>=1&&Array.from(new Array(u),((e,t)=>(0,h.jsx)(j.Page,{className:"preview-item",scale:a/100,rotate:r,pageNumber:t+1,width:m,loading:null,renderAnnotationLayer:!1,renderTextLayer:!0,noData:"\u672a\u6307\u5b9a\u9875\u9762"},"page_".concat(t))))})})})}));S.defaultProps={autoSize:!0,renderTextLayer:!1,scale:100,rotate:0,maxWidth:1200};const b=S;var A=n(91409),C=n.n(A),w=n(89946),P=n.n(w);const F=e=>{let{url:t,className:n,maxWidth:a}=e;const[r,l]=(0,s.useState)(""),[o,m]=(0,s.useState)(!0),[f,g]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{P().get(t).then((e=>{let{data:t}=e;l(t),m(!1)}),(()=>{m(!1),g(!0)}))}),[t]),(0,h.jsxs)("div",{className:i()(n,c),style:{maxWidth:a},children:[o?(0,h.jsx)("div",{className:d,children:(0,h.jsx)(v.Spin,{})}):null,(0,h.jsx)("div",{className:u,children:f?(0,h.jsx)("div",{className:p,children:"\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25"}):(0,h.jsx)(C(),{text:r})})]})},I=e=>{let{maxWidth:t}=e;return(0,h.jsx)("div",{className:c,style:{maxWidth:t},children:(0,h.jsx)("div",{className:u,children:(0,h.jsx)(v.Result,{status:"500",title:"\u4e0d\u652f\u6301\u7684\u6587\u4ef6\u7c7b\u578b",subTitle:"\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u6587\u4ef6\u7c7b\u578b\u9884\u89c8\uff0c\u8bf7\u4e0b\u8f7d\u5230\u672c\u5730\u540e\u8fdb\u884c\u9884\u89c8"})})})},k=e=>{let{url:t,scale:n,rotate:a,className:r,maxWidth:l}=e;const[o,u]=(0,s.useState)(!0),[m,f]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const e=new Image;e.src=t;const n=()=>{u(!1)},a=()=>{u(!1),f(!0)};return e.addEventListener("load",n),e.addEventListener("error",a),()=>{e.removeEventListener("load",n),e.removeEventListener("error",a)}}),[t,n,a]),(0,h.jsxs)("div",{className:i()(r,c),style:{maxWidth:l},children:[o?(0,h.jsx)("div",{className:d,children:(0,h.jsx)(v.Spin,{})}):null,m?(0,h.jsx)("div",{className:p,children:"\u56fe\u7247\u52a0\u8f7d\u5931\u8d25"}):(0,h.jsx)("img",{src:t,alt:"\u7b80\u5386\u9884\u89c8"})]})},T=e=>{const t=(e||"").split("?")[0].toLowerCase();return/.txt$/.test(t)?"txt":/.pdf$/.test(t)?"pdf":/.(png|jpg|jpeg)$/.test(t)?"image":/.(html|htm)$/.test(t)?"html":/.(doc|docx|xls|xlsx|ppt|pptx)$/.test(t)?"office":"unknown"},M=T,E=e=>({txt:F,pdf:b,image:k,html:g,office:y,unknown:I}[T(e)]);const O=(0,n(97211).A)((e=>{let{data:t,id:n,className:a,...r}=e;const s=E(t);return"office"===M(t)?(0,h.jsx)(y,{...r,id:n,className:a}):(0,h.jsx)(s,{...r,className:a,url:t})})),R=e=>{let{id:t,originName:n,...a}=e;return"office"===M(n)?(0,h.jsx)(y,{...a,id:t,originName:n}):(0,h.jsx)(O,{...a,id:t,originName:n})}},330:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y,useFlexBox:()=>g});var a=n(77964),r=n(74065),s=n.n(r),l=n(73884),o=n(55199),i=n(87558),c=n.n(i),d=n(19853),u=n.n(d),p=n(83136),m=n.n(p),h=n(70579);const f=[{width:786,col:1,size:15},{width:960,col:2,size:12},{width:1360,col:3,size:12},{width:1680,col:4,size:12},{width:1920,col:5,size:15}],g=e=>{const{columns:t,onChange:n}=Object.assign({},{columns:f},e),[r,o]=(0,l.useState)(null),i=(0,l.useRef)(null),c=(0,a.A)((e=>{const a=e.clientWidth,r=t.find(((e,t)=>e.width>=a))||s()(t);u()(r,i.current)||(o(r),i.current&&n&&n(r),i.current=r)}));return{ref:c,column:r}},_=e=>{let{columns:t,outerClassName:n,gutter:a,...r}=e;const{ref:s,column:l}=g({columns:t});return(0,h.jsx)("div",{ref:s,className:n,children:l&&(0,h.jsx)(o.List,{...r,grid:{gutter:a,column:l.col}})})};_.defaultProps={gutter:16,columns:f},_.Item=o.List.Item;const x=(0,l.forwardRef)(((e,t)=>{let{columns:n,api:a,getFetchApi:r,outerClassName:s,className:l,gutter:i,dataFormat:d,...u}=e;const{ref:p,column:f}=g({columns:n});return(0,h.jsx)("div",{ref:p,className:s,children:f&&(0,h.jsx)(c(),{...a||r(f),ref:t,render:e=>{let{data:t,isComplete:n}=e;return(0,h.jsx)(o.List,{...u,className:m()(l,"loading-container",{"is-loading":!n}),dataSource:d(t),grid:{gutter:i,column:f.col}})}})})}));x.defaultProps={gutter:16,columns:f,dataFormat:e=>e.pageData},_.Fetch=x;const y=_},45053:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(98434),r=n(55199),s=n(73884),l=n(83136),o=n.n(l),i=n(70720),c=n.n(i),d=n(47094),u=n(70579);const p=e=>{let{name:t,groupName:n,overlayClassName:l,errorRender:i,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:n,groupIndex:r}=e;const{emitter:l,formState:o}=(0,a.useFormContext)(),i=(0,s.useRef)({name:t,groupName:n,groupIndex:r});i.current={name:t,groupName:n,groupIndex:r};const c=(0,s.useRef)(o);c.current=o;const[d,u]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const e=l.addListener("form-field-validate-complete",(e=>{let{id:t,validate:n}=e;const r=c.current[t];if(!r)return;const s=i.current;r.name!==s.name||s.groupName&&(r.groupName!==s.groupName||r.groupIndex!==s.groupIndex)||u(2===n.status?Object.assign({},n,{label:r.label,errMsg:a.util.compileErrMsg(n.msg,r.label)}):null)}));return()=>{e&&e.remove()}}),[l]),d})({name:t,groupName:n,groupIndex:p}),[f,g]=(0,s.useState)(!1),_=h&&f&&i(Object.assign({},h,{closeHover:()=>g(!1)})),x=(0,s.useRef)(null),y=(0,s.useRef)(null);c()((()=>{g(!1)})).current={contains:e=>x.current.contains(e)||y.current&&y.current.contains(e)};const[v,j]=(0,s.useState)(0);return(0,s.useLayoutEffect)((()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&j(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const n=new MutationObserver(e);return n.observe(x.current,{subtree:!0,childList:!0}),()=>{n.disconnect(),t.disconnect()}}),[]),(0,u.jsx)(r.Popover,{open:!!_,overlayClassName:o()(l,d.A["error-tip-overlay"]),content:_&&(0,u.jsx)("div",{ref:y,style:{width:v},className:o()(d.A["error-tip-overlay-content"]),children:_}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{g(!0)},children:m})})};p.defaultProps={errorRender:()=>null};const m=p},83560:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(55199),r=n(98434),s=n(63361),l=n(73884),o=n(10486),i=n(21554),c=n(64671),d=n(83136),u=n.n(d),p=n(47094),m=n(70579);const h=e=>{let{list:t,groupArgs:n,itemRender:d}=e;const h=(0,r.useFormContext)(),f=Object.assign({},h,n?{groupArgs:n}:{}),g=(0,l.useRef)(null),[_,x]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{x(!0)}),[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{ref:g,style:{display:"none"}}),t.filter((e=>"function"===typeof e.props.display?e.props.display(f):!1!==e.props.display)).map(((e,r)=>{const h=e.props.name+r||n&&n[0]+r||r,x={key:h,list:t,props:e.props},y=Object.assign({},e.props),v=e.type;["display","block","hidden","setExtraProps","isBlock","featureId","tips"].forEach((t=>{e.props.hasOwnProperty(t)&&(x[t]=e.props[t]),delete y[t]})),x.hasOwnProperty("isBlock")&&(y.block=x.isBlock);const j=(0,m.jsx)(v,{...Object.assign({},y,"function"===typeof x.setExtraProps?x.setExtraProps({props:y,contextApi:f}):{}),onChange:function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return e.props.onChange&&e.props.onChange(...n,f)}}),N=x.hidden?_&&(0,o.createPortal)(j,g.current):d(x.tips?(0,m.jsxs)(a.Row,{gutter:8,align:"top",children:[(0,m.jsx)(a.Col,{flex:1,children:j}),(0,m.jsx)(a.Col,{children:(0,m.jsx)(i.default,{content:x.tips,children:(0,m.jsx)("span",{className:u()(p.A["field-tips"],{[p.A["label-hidden"]]:y.labelHidden}),children:(0,m.jsx)(c.default,{type:"icon-xinxi-miaobian"})})})})]}):j,x);return(0,m.jsx)(l.Fragment,{children:x.hasOwnProperty("featureId")?(0,m.jsx)(s.default,{id:x.featureId,children:N},h):N},h)}))]})}},85696:(e,t,n)=>{n.d(t,{A:()=>v});var a=n(73884),r=n(76329),s=n(33097),l=n.n(s),o=n(64261),i=n(58609),c=n(55431),d=n(46237),u=n(1454),p=n(46732),m=n(98434),h=n(83136),f=n.n(h),g=n(47094),_=n(70579);const x=e=>{let{children:t}=e;const[n,s]=(0,a.useState)(!1),i=(0,r.usePreset)(),c=l()(i,"formInfo",{}),d=l()(i,"locale");return(0,a.useEffect)((()=>{Promise.resolve((0,o.A)(c,{locale:d})).then((()=>{s(!0)}))}),[c,d]),n?t:null},y=(0,a.forwardRef)(((e,t)=>{let{className:n,helperGuideName:a,children:r,lang:s,...l}=e;return(0,_.jsx)(i.IntlProvider,{importMessages:c.A,moduleName:"FormInfo",children:(0,_.jsx)(d.Ay,{value:s,children:(0,_.jsx)(u.default,{children:(0,_.jsx)(p.K,{value:a,children:(0,_.jsx)(m.FormAntd,{...l,ref:t,className:f()(n,g.A["form-outer"]),children:(0,_.jsx)(x,{children:r})})})})})})}));y.defaultProps={type:"inner"};const v=y},35774:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(98434),r=n(81014),s=n(70579);const l=e=>{let{onClick:t,...n}=e;const l=(0,a.useFormContext)();return(0,s.jsx)(r.default,{...n,onClick:e=>t(l,e)})}},48221:(e,t,n)=>{n.d(t,{Ay:()=>h,WJ:()=>g,Xy:()=>f});var a=n(25963),r=n(83136),s=n.n(r),l=n(98434),o=n(73025),i=n(58609),c=n(47094),d=n(55431),u=n(70579);const p=[{children:"\u53d6\u6d88",ButtonComponent:l.CancelButton},{type:"primary",children:"\u4fdd\u5b58",ButtonComponent:l.SubmitButton,autoClose:!1}],m=e=>{let{className:t,withDecorator:n,footerButtons:a=p,formProps:r,...o}=e;return{...o,footerButtons:a,className:s()(t,c.A["form-outer"],c.A["form-drawer"]),withDecorator:e=>{const t=t=>{const n="function"===typeof r?r(t):r;return(0,u.jsx)(l.FormAntd,{...n,children:(0,u.jsx)(i.IntlProvider,{importMessages:d.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof n?n(t):t()}}},h=e=>(0,u.jsx)(a.default,{...m(e)}),f=()=>{const e=(0,a.useDrawer)();return t=>e(m(t))},g=e=>{const t=f();return(0,u.jsx)(o.A,{...e,modalFunc:t})}},2196:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(55199),r=n(1454),s=n(330),l=n(83560),o=n(47094),i=n(83136),c=n.n(i),d=n(70579);const u=e=>{let{list:t,groupArgs:n,column:i,gap:u,className:p,...m}=e;const h=!(Number.isInteger(i)&&i>0),{ref:f,column:g}=(0,s.useFlexBox)(h?i:{}),_=(e,r)=>(0,d.jsx)(a.Row,{gutter:[u||24,0],className:c()({[o.A["column-not-layout"]]:r}),children:(0,d.jsx)(l.A,{list:t,groupArgs:n,itemRender:(t,n)=>(0,d.jsx)(a.Col,{span:!0===n.block?24:Math.round(24/(e||1)),children:t})})});return(0,d.jsxs)(r.default.Part,{...m,className:c()(p,o.A["form-info"]),children:[(0,d.jsx)("div",{ref:f}),h?g?_(g.col):_(2,!0):_(i)]})};u.defaultProps={column:2,list:[]};const p=u},30891:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(98434);const r=e=>{let{children:t}=e;const{openApi:n,formData:r}=(0,a.useFormContext)();return t({...n,formData:r})}},46237:(e,t,n)=>{n.d(t,{Ay:()=>i,oc:()=>o});var a=n(73884);const r=(0,a.createContext)([]),{Provider:s,Consumer:l}=r,o=()=>(0,a.useContext)(r),i=s},5995:(e,t,n)=>{n.d(t,{Ay:()=>f,Vl:()=>g,W6:()=>_});var a=n(3382),r=n(83136),s=n.n(r),l=n(98434),o=n(83799),i=n(73025),c=n(58609),d=n(47094),u=n(55431),p=n(70579);const m="FormInfo",h=e=>{let{className:t,withDecorator:n,footerButtons:a,formProps:r,...i}=e;return{...i,footerButtons:a||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:m,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:m})}),ButtonComponent:l.CancelButton},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:m,children:(0,p.jsx)(c.FormattedMessage,{id:"Save",moduleName:m})}),ButtonComponent:l.SubmitButton,autoClose:!1}],className:s()(t,d.A["form-outer"],d.A["form-modal"]),withDecorator:e=>{const t=t=>{const n="function"===typeof r?r(t):r;return(0,p.jsx)(o.lV,{...n,children:(0,p.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof n?n(t):t()}}},f=e=>(0,p.jsx)(a.default,{...h(e)}),g=()=>{const e=(0,a.useModal)();return t=>e(h(t))},_=e=>{const t=g();return(0,p.jsx)(i.A,{...e,modalFunc:t})}},94005:(e,t,n)=>{n.d(t,{$X:()=>u,Ay:()=>d,Wp:()=>p});var a=n(5995),r=n(55199),s=n(73884),l=n(98434),o=n(70579);const i=e=>{let{setCurrent:t,current:n,items:a,setStepData:s,stepData:i}=e;const c=a[n],{formData:d}=(0,l.useFormContext)();return(0,o.jsxs)(r.Space,{className:"full-space",direction:"vertical",children:[(0,o.jsx)(r.Steps,{current:n,onChange:e=>{s((t=>{const n=t.slice(0);return n[e]=d,n})),t(e)},items:a}),c.children]})},c=()=>{const[e,t]=(0,s.useState)([]),[n,a]=(0,s.useState)(0);return r=>{var s;let{items:c,formProps:d}=r;const u=n===c.length-1;return{stepData:e,formProps:Object.assign({},d,{data:Object.assign({},null===(s=d.data)||void 0===s?void 0:s[n],e[n]),onSubmit:r=>{const s=e.slice(0);if(s[n]=r,t(s),u)return null===d||void 0===d?void 0:d.onSubmit(e);a(n+1)}}),children:(0,o.jsx)(i,{items:c,current:n,setCurrent:a,stepData:e,setStepData:t}),footerButtons:[{children:"\u53d6\u6d88",ButtonComponent:l.CancelButton},{type:"primary",children:u?"\u4fdd\u5b58":"\u4e0b\u4e00\u6b65",ButtonComponent:l.SubmitButton,autoClose:!1}]}}},d=e=>{const t=c(),{footerButtons:n,children:r,formProps:s}=t(e);return(0,o.jsx)(a.Ay,{...e,formProps:s,footerButtons:n,children:r})},u=()=>{const e=(0,a.Vl)(),t=c();return n=>{const{footerButtons:a,children:r,formProps:s}=t(n);return e({...n,formProps:s,footerButtons:a,children:r})}},p=e=>{let{modalProps:t,...n}=e;const r=c(),{footerButtons:s,children:l,formProps:i}=r(t);return(0,o.jsx)(a.W6,{...n,modalProps:Object.assign({},t,{formProps:i,footerButtons:s,children:l})})}},46732:(e,t,n)=>{n.d(t,{A:()=>d,K:()=>c});var a=n(75363),r=n(73884),s=n(98434),l=n(47094),o=n(70579);const i=(0,r.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const n=(0,r.useContext)(i),c=(0,s.useGroup)();return n&&(0,o.jsx)(a.default,{className:l.A["helper-guide-field"],name:n+"-"+(c.name?c.name+"-":"")+t})}},85846:(e,t,n)=>{n.d(t,{A:()=>y});var a=n(73884),r=n(55199),s=n(58407),l=n(64671),o=n(1454),i=n(98434),c=n(2196),d=n(83136),u=n.n(d),p=n(55431),m=n(58609),h=n(33097),f=n.n(h),g=n(47094),_=n(70579);const x=(0,m.createWithIntl)({moduleName:"FormInfo",importMessages:p.A})((e=>{let{title:t,addText:n,minLength:o,isUnshift:d,maxLength:p,defaultLength:h,label:x,name:y,beforeAdd:v,afterDelete:j,column:N,list:S,listRender:b,itemTitle:A,outer:C,renderChildren:w,className:P,important:F,deleteButtonProps:I}=e;const k=(0,a.useRef)(null),T=(0,i.useFormContext)(),{formData:M}=T,E=!(p&&p<=f()(M,"".concat(y,".length"),0)),{formatMessage:O}=(0,m.useIntl)({moduleName:"FormInfo"}),R=()=>{"function"===typeof v&&!1===v(y,T,{isUnshift:d,group:k.current})||k.current.onAdd({isUnshift:d})};return(0,_.jsxs)(_.Fragment,{children:[(0,a.cloneElement)(C,{title:t,addText:n,className:u()(P,g.A["list-part"]),allowAdd:d&&E,add:R},w((0,_.jsx)(i.GroupList,{name:y,defaultLength:h,ref:k,children:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];const[i,{index:d,onRemove:p,length:h}]=n,f={key:i,column:N,list:"function"===typeof S?S(...n,T):S,title:"function"===typeof A?A({index:d,key:i,onRemove:p}):A,groupArgs:n,extra:(0,_.jsx)(m.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>o&&o>=h?null:(0,_.jsx)(s.default,{danger:!0,className:"btn-no-padding",message:O({id:"delConfirm"},{name:x||t}),type:"link",onClick:()=>{p(i),j&&j(...n,T)},...Object.assign({},I),children:null!==I&&void 0!==I&&I.children?null===I||void 0===I?void 0:I.children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l.default,{type:"icon-shanchu"}),e]})})})};return(0,_.jsxs)("div",{className:u()(g.A["list-item"],{[g.A["is-important"]]:F}),children:["function"===typeof b?b(f):(0,_.jsx)(c.A,{...f,className:g.A["list-item-part"],gap:16}),(0,_.jsx)(r.Divider,{})]},i)}}))),!d&&E?(0,_.jsx)(m.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsxs)(r.Button,{onClick:R,children:[(0,_.jsx)(l.default,{type:"icon-tianjia"}),n||e]})}):null]})}));x.defaultProps={minLength:0,isUnshift:!0,defaultLength:1,outer:(0,_.jsx)((e=>{let{add:t,addText:n,className:a,allowAdd:s,...i}=e;return(0,_.jsx)(o.default.Part,{...i,className:a,extra:s&&(0,_.jsx)(m.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsxs)(r.Typography.Text,{className:g.A["list-btn"],onClick:t,children:[(0,_.jsx)(l.default,{type:"icon-tianjia"}),n||e]})})})}),{}),renderChildren:e=>e};const y=x},18936:(e,t,n)=>{n.d(t,{A:()=>E});const a={"ant-tag":"style_ant-tag__7ct2q__St-+1",overlay:"style_overlay__CXfU5__St-+1",input:"style_input__+OpvV__St-+1","is-disabled":"style_is-disabled__uX4qq__St-+1","input-icon":"style_input-icon__E3NjK__St-+1",large:"style_large__vMozz__St-+1",small:"style_small__ubqQ+__St-+1","input-inner":"style_input-inner__sY-6k__St-+1","input-custom":"style_input-custom__Kxq3n__St-+1","display-content":"style_display-content__qA1jn__St-+1","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__St-+1","selected-tag":"style_selected-tag__BZsMM__St-+1","selected-tag-list":"style_selected-tag-list__As0ho__St-+1","selected-tag-inner":"style_selected-tag-inner__2NH59__St-+1","text-inner":"style_text-inner__Bq2Ji__St-+1",placeholder:"style_placeholder__odotY__St-+1","is-modal":"style_is-modal__4cj8L__St-+1","overlay-content":"style_overlay-content__kpGRn__St-+1"};var r=n(74981);const{context:s,useContext:l,Provider:o,Consumer:i}=(0,r.A)();var c=n(73884),d=n(10986),u=n.n(d),p=n(87558),m=n(33097),h=n.n(m),f=n(55199),g=n(83136),_=n.n(g),x=n(3382),y=n(64671),v=n(79686),j=n.n(v),N=n(41740),S=n.n(N),b=n(74065),A=n.n(b),C=n(17342),w=n(70579);const P=e=>{let{maxLength:t,single:n,setValue:a,value:r,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),r):e)},F=e=>{let{single:t,value:n,mapping:r,onClose:s}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,w.jsx)("span",{className:a["text-inner"],children:h()(r.get(n[0]),"label")||n[0]}):n.map((e=>{const t=r.get(e);return(0,w.jsx)(f.Tag,{className:a["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),s(e,t)},children:(0,w.jsx)("span",{className:a["tag-inner"],children:h()(t,"label")||e})},e)})):null},I=(0,c.forwardRef)(((e,t)=>{let{value:n,onChange:r,extra:s,showSelectedTag:l,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n);m.current=n;const[h,g]=(0,c.useState)(!1),{message:_}=f.App.useApp(),y=P({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:_.error});return(0,c.useEffect)((()=>{h&&p(m.current)}),[h]),(0,c.useImperativeHandle)(t,(()=>({modalOpen:()=>{g(!0)},close:()=>{g(!1)}}))),(0,w.jsx)(x.default,{...d,open:h,onConfirm:()=>{r(u)},onClose:()=>{g(!1)},footer:(l||s)&&(0,w.jsxs)(f.Space,{direction:"vertical",className:a["overlay-footer"],children:[s&&(0,w.jsx)("div",{className:a["overlay-footer-extra"],children:s}),l&&o({value:u,setValue:y})]}),children:"function"===typeof i?i({value:u,setValue:y}):i})})),k=(0,c.forwardRef)(((e,t)=>{let{value:n,setValue:r,children:s,renderSelectedContent:l,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,...g}=e;const[_,x]=(0,c.useState)(!1);return(0,c.useImperativeHandle)(t,(()=>({close:()=>{x(!1)}})),[]),(0,w.jsx)(f.Popover,{...g,open:_,onOpenChange:x,overlayClassName:a.overlay,arrow:!1,content:(0,w.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:a["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,w.jsx)("div",{className:a["overlay-inner"],children:"function"===typeof s?s({value:n,setValue:e=>{(!u||n[0]!==e[0])&&r(e),u&&x(!1)}}):s}),(o||p)&&(0,w.jsxs)("div",{className:a["overlay-footer"],children:[p&&(0,w.jsx)("div",{className:a["overlay-footer-extra"],children:p}),o&&l({value:n,setValue:r})]})]}),trigger:"click",placement:i,children:(0,w.jsx)("div",{className:a["input-inner"],children:d})})})),T=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,...r}=e;const[s,o]=(0,c.useState)(!1),i=(0,c.useRef)(null),d=(0,c.useRef)(null),u=l(),{valueState:p,mapping:m,props:h}=u,[g,x]=p,{single:v,placement:j,getPopupContainer:N,placeholder:S,isPopup:b,disabled:A,showSelectedTag:P,extra:T,inputContent:M}=h,E=(0,c.useRef)(r);E.current=r,(0,c.useEffect)((()=>{t(Object.assign({},E.current,{data:r.data,isComplete:r.isComplete}))}),[r.data,t,r.isComplete]);const O=F({single:v,value:g,mapping:m,onClose:e=>{x((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}}),R=e=>{let{value:t,setValue:n}=e;return(0,w.jsxs)(f.Space,{className:a["selected-tag"],align:"center",wrap:!0,children:[(0,w.jsxs)("div",{children:["\u5df2\u9009",!h.single&&Number.isInteger(h.maxLength)&&h.maxLength>0?"(".concat(t.length,"/").concat(h.maxLength,")"):"",":"]}),(0,w.jsx)(C.A,{className:a["selected-tag-list"],children:(0,w.jsx)("div",{className:a["selected-tag-inner"],children:F({value:t,mapping:m,onClose:e=>{n((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}})})})]})},L=M?M(u):(0,w.jsxs)(f.Space,{className:a["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,w.jsx)("div",{children:O||(0,w.jsx)("span",{className:a.placeholder,children:S})}),s&&g&&g.length>0&&!A?(0,w.jsx)(y.default,{className:_()(a.close,a["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,w.jsx)(y.default,{className:_()(a["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return b?(0,w.jsx)(k,{ref:d,overlayWidth:h.overlayWidth,value:g,setValue:x,single:v,inputContent:L,extra:"function"===typeof T?T({close:()=>d.current.close(),context:u}):T,renderSelectedContent:R,showSelectedTag:P,trigger:"click",placement:j,getPopupContainer:N,children:h.children}):(0,w.jsxs)("div",{className:a["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,w.jsx)(I,{size:h.modalSize,ref:i,single:h.single,maxLength:h.maxLength,disabledScroller:!0,wrapClassName:_()(a.overlay,a["is-modal"],n),title:h.placeholder,value:g,onChange:x,extra:"function"===typeof T?T({close:()=>i.current.close(),context:u}):T,showSelectedTag:P,renderSelectedContent:R,children:h.children}),L]})})),M=e=>{let{api:t,className:n,displayItems:r,wrapClassName:s,...l}=e;const[i,d]=(0,c.useState)(""),[p,m]=(0,c.useState)(new Map(r.map((e=>[e.value,e])))),[g,x]=(0,c.useState)({}),{message:y}=f.App.useApp(),v=e=>{const t=e.filter((e=>p.get(e.value)!==e));0!==t.length&&m((e=>{const n=S()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},N=e=>((e,t,n)=>"all"!==n?e:(t(e),e.map((e=>e.value))))(l.single?j()(e)?[]:[e]:e||[],v,l.valueType),[b,C]=u()(Object.assign({},l,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map((e=>t.get(e))))(e,p,l.valueType);l.onChange&&l.onChange(l.single?A()(t):t)}},"value"in l?{value:N(l.value)}:{defaultValue:N(l.defaultValue)})),F=P({maxLength:l.maxLength,single:l.single,setValue:C,value:b,message:y.error});return(0,w.jsx)(o,{value:{mapping:p,searchText:i,setSearchText:d,appendMapping:v,setItems:e=>{g.setData(e),v(h()(l.dataFormat(e),"list",[]))},fetchApi:g,valueState:[b,F],props:l},children:(0,w.jsx)("div",{className:_()(a["input".concat(l.inputContent&&"function"===typeof l.inputContent?"-custom":"")],n),children:(0,w.jsx)(T,{...t,wrapClassName:s,loading:null,setFetchApi:x,onRequestSuccess:e=>{v(h()(l.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};M.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},M.useContext=l;const E=M},97056:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(85846),r=n(83560),s=n(55199),l=n(41740),o=n.n(l),i=n(73884),c=n(83136),d=n.n(c),u=n(47094),p=n(70579);const m=(0,i.forwardRef)(((e,t)=>{const[n,a]=(0,i.useState)(new Map);return(0,i.useImperativeHandle)(t,(()=>e=>{setTimeout((()=>{a((t=>{if(t.has(e.key))return t;const n=o()(t);return n.set(e.key,e.props),n}))}))}),[]),(0,p.jsxs)(s.Row,{wrap:!1,className:u.A["table-list-header"],style:{"--col-width":"".concat(100/n.size,"%")},children:[Array.from(n).map((e=>{let[t,{label:n,rule:a}]=e;return(0,p.jsx)(s.Col,{className:d()({[u.A["is-req"]]:0===(a||"").split(" ").indexOf("REQ")}),children:n},t)})),(0,p.jsx)(s.Col,{className:u.A["table-list-extra"]})]})})),h=e=>{let{list:t,className:n,...l}=e;const o=(0,i.useRef)(null);return(0,p.jsx)(a.A,{...l,className:d()(n,u.A["table-list"]),list:t,renderChildren:e=>(0,p.jsxs)("div",{className:u.A["table-list-inner"],children:[(0,p.jsx)(m,{ref:o}),e]}),listRender:e=>{let{list:t,groupArgs:n,extra:a,key:l}=e;return(0,p.jsxs)(s.Row,{wrap:!1,align:"top",style:{"--col-width":"".concat(100/t.length,"%")},children:[(0,p.jsx)(r.A,{list:t,groupArgs:n,itemRender:(e,t)=>(o.current(t),(0,p.jsx)(s.Col,{className:u.A["table-list-field"],flex:1,children:e}))}),(0,p.jsx)(s.Col,{className:u.A["table-list-extra"],children:a})]},l)}})}},1904:(e,t,n)=>{n.d(t,{A:()=>i,N:()=>c});var a=n(98434),r=n(36);const{useOnChange:s,useDecorator:l}=a.hooks,o=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.AddressSelectField);o.Field=r.AddressSelectField,o.AddressEnum=r.AddressSelectField.AddressEnum,o.createAddressApi=r.AddressSelectField.createAddressApi,o.withAddressApi=r.AddressSelectField.withAddressApi;const i=o,c=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(r.AddressInputField);c.Field=r.AddressInputField},30096:(e,t,n)=>{n.d(t,{Ay:()=>d});var a=n(98434),r=n(36);const{useOnChange:s}=a.hooks,l=e=>{const t=t=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=l(r.UserField),i=l(r.TableField),c=l(r.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:n}=e;return l((0,r.createListField)({renderList:t,defaultProps:n}))},c.User=o,c.Table=i;const d=c},96339:(e,t,n)=>{n.d(t,{A:()=>z});var a=n(73884),r=n(29574),s=n(40438),l=n(76329),o=n(3382),i=n(64671),c=n(55199),d=n(53202),u=n.n(d),p=n(33097),m=n.n(p),h=n(83136),f=n.n(h),g=n(51941),_=n(98434),x=n(34677),y=n.n(x);const v="style_upload-btn__-6XtP__St-+1",j="style_square__UPkfA__St-+1",N="style_is-loading__wx6Pd__St-+1",S="style_upload-btn-tips__YtxWz__St-+1",b="style_drop-tips__N-v59__St-+1",A="style_preview-area__aV3SN__St-+1";var C=n(18411),w=n(58609),P=n(55431),F=n(70579);const{useOnChange:I}=_.hooks,k=s.default.Avatar,T="FormInfo",M=(0,r.Ay)((e=>{let{className:t,icon:n,loading:a,value:r,gender:s,width:l,height:o,children:d,shape:u,defaultAvatar:p,apis:h}=e;const g=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(k,{id:m()(r,"id"),gender:s,width:64*l/o,height:64,shape:u,defaultAvatar:p,apis:h}),(0,F.jsx)("div",{className:S,children:n||(0,F.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),d]});return(0,F.jsx)("div",{className:f()(t,v,{[N]:a,[j]:"square"===u||!(l&&l===o)}),style:{width:64*l/o},children:a?(0,F.jsx)(c.Spin,{children:g}):g})})),E=e=>{let t=e.split(","),n=t[1].substring(0,t[1].length-2),a=t[0].match(/:(.*?);/)[1],r=atob(n),s=r.length,l=new Uint8Array(s);for(;s--;)l[s]=r.charCodeAt(s);return new Blob([l],{type:a})},O=(0,a.forwardRef)(((e,t)=>{let{image:n,width:s,height:l,borderRadius:o,preview:d,fileSize:p,accept:m,renderTips:h,getApi:f,shape:_,border:x,...y}=e;const v=(0,w.useIntl)({moduleName:T}),[j,N]=(0,a.useState)(0),S=(0,a.useRef)(null),[C,P]=(0,a.useState)(n),[I,k]=(0,a.useState)(1),[M,O]=(0,a.useState)(0),[R,L]=(0,a.useState)(""),D=(0,a.useRef)(null);(0,a.useLayoutEffect)((()=>{N(2*S.current.clientWidth/3)}),[]),f({getImage:()=>{const e=D.current.getImage(),t=document.createElement("canvas"),n=t.getContext("2d");return t.width=s,t.height=l,n.drawImage(e,0,0,t.width,t.height),new window.File([E(t.toDataURL())],C.name,{type:C.type})}});const z=()=>{L(D.current.getImage().toDataURL())},B=(0,g.useDebouncedCallback)(z,500);return(0,F.jsx)("div",{ref:S,children:(0,F.jsxs)(c.Row,{wrap:!1,align:"middle",children:[(0,F.jsx)(c.Col,{span:d?16:24,children:j&&(0,F.jsxs)(c.Space,{direction:"vertical",children:[(0,F.jsx)(u(),{...y,ref:D,image:C,scale:I,rotate:M,width:j-2*x,height:l*j/s-2*x*l/s,border:x,color:[0,0,0,.6],borderRadius:o*j/s,onImageReady:z,onImageChange:B}),(0,F.jsx)("div",{className:b,children:h("".concat(v.formatMessage({id:"PictureFormat"})).concat(m.map((e=>e.replace(/^\./,""))).join(" ")," ").concat(v.formatMessage({id:"ImageSize"})).concat(v.formatMessage({id:"NotExceeding"},{size:p})),{accept:m,fileSize:p})}),(0,F.jsxs)(c.Row,{gutter:14,align:"middle",children:[(0,F.jsx)(c.Col,{children:(0,F.jsx)(c.Tooltip,{title:v.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{O((e=>(e-90)%360))}})})}),(0,F.jsx)(c.Col,{children:(0,F.jsx)(c.Tooltip,{title:v.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-chongman",onClick:()=>{k(1)}})})}),(0,F.jsx)(c.Col,{flex:1,children:(0,F.jsx)(c.Slider,{tooltip:{placement:"bottom",formatter:()=>v.formatMessage({id:"Size"})},value:I,step:.05,min:.2,max:3,onChange:k})}),(0,F.jsx)(c.Col,{children:(0,F.jsx)(r.FI,{accept:m,onChange:e=>{e[0].size>1024*p*1024?c.message.error(v.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:p})):(O(0),k(1),P(e[0]))},children:(0,F.jsx)(w.FormattedMessage,{id:"ReUpload",moduleName:T})})})]})]})}),d&&(0,F.jsx)(c.Col,{span:8,children:(0,F.jsx)("div",{className:A,children:(0,F.jsxs)(c.Space,{direction:"vertical",children:[(0,F.jsx)(c.Avatar,{src:R,shape:_,style:{width:j/2-36,height:(j/2-36)*l/s}}),(0,F.jsx)("div",{style:{textAlign:"center"},children:(0,F.jsx)(w.FormattedMessage,{id:"Preview",moduleName:T})})]})})})]})})}));O.defaultProps={border:1};const R=()=>{const e=(0,o.useModal)();return t=>{const{image:n,width:a,height:r,borderRadius:s,getApi:l,preview:o,fileSize:i,accept:c,renderTips:d,border:u,dropModalSize:p,...m}=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t);return e({...m,size:p,children:(0,F.jsx)(O,{preview:o,fileSize:i,accept:c,getApi:l,renderTips:d,width:a,height:r,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:s,image:n,border:u,scale:1,rotate:0})})}},L=e=>{let{value:t,gender:n,fileSize:r,accept:s,openEditor:o,apis:i,renderTips:d,onChange:u,shape:p,width:m,height:h,title:f,border:g,icon:_,dropModalSize:x,defaultAvatar:v}=e;const[j,N]=(0,a.useState)(!1),{apis:S}=(0,l.usePreset)(),b=y()({},S,i),{ossUpload:A}=b,C=(0,a.useRef)(null),P=R(),I=(0,w.useIntl)({moduleName:T});return(0,F.jsx)(M,{value:t,gender:n,accept:s,width:m,height:h,shape:p,icon:_,loading:j,defaultAvatar:v,apis:b,onChange:e=>{if(e[0].size>1024*r*1024)return void c.message.error(I.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:r}));const t=e=>(N(!0),A({file:e}).then((e=>{let{data:t}=e;0===t.code?u(t.data):c.message.error(I.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))})).finally((()=>{N(!1)})));o?P({image:e[0],width:m,height:h,title:f,shape:p,border:g,dropModalSize:x,getApi:e=>C.current=e,fileSize:r,accept:s,renderTips:d,onConfirm:()=>{t(C.current.getImage())}}):t(e[0])}})};L.defaultProps={defaultAvatar:C.A,openEditor:!0,fileSize:2,width:200,height:200,dropModalSize:"small",border:1,title:(0,F.jsx)(w.IntlProvider,{importMessages:P.A,moduleName:"FormInfo",children:(0,F.jsx)(w.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),accept:[".jpg",".png",".jpeg"],renderTips:e=>e,shape:"circle"};const D=e=>I(e)(L);D.defaultProps={},D.Field=D,D.useDropModal=R;const z=D},83230:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(98434),r=n(36);const{useOnChange:s}=a.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.CascaderField);l.Field=r.CascaderField,l.createTreeUtils=r.createTreeUtils;const o=l},81026:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(36),r=n(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.FunctionSelectField);l.Field=a.FunctionSelectField,l.Enum=a.FunctionSelectField.Enum;const o=l},78756:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(36),r=n(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.IndustrySelectField);l.Field=a.IndustrySelectField,l.Enum=a.IndustrySelectField.Enum;const o=l},15209:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(55199),r=n(10986),s=n.n(r),l=n(13050),o=n(70579);const i=e=>{let{...t}=e;const[n,r]=s()(t);return(0,o.jsx)(a.Input,{...t,value:n,onChange:e=>{r(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},c=(0,l.createWithRemoteLoader)({modules:["FormInfo@formModule"]})((e=>{let{remoteModules:t,...n}=e;const[a]=t,{hooks:r}=a,{useDecorator:s}=r;return s(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||"")},n))(i)}));c.field=i;const d=c},92328:(e,t,n)=>{n.d(t,{A:()=>v});var a=n(10986),r=n.n(a),s=n(98434),l=n(55199),o=n(69484);const i="style_money-input__Pyur7__St-+1",c="style_money-description__9pFk4__St-+1";var d=n(83136),u=n.n(d),p=n(34677),m=n.n(p),h=n(73884),f=n(70579);const{isNotEmpty:g}=s.util,{useOnChange:_}=s.hooks,x=e=>{let{chineseEmpty:t,className:n,showError:a,errorDesc:s,transformMoneyToChinese:d,onBlur:p,moneyFormat:_,...x}=e;const[y,v]=(0,h.useState)(""),[j,N]=r()(x),S=m()({controls:!1,precision:2,addonAfter:"\u5143"},x,{max:g(x.max)?x.max>o.e?o.e:x.max:o.e});return(0,f.jsxs)("div",{className:u()(n,"money-input",i),children:[(0,f.jsx)(l.InputNumber,{...S,status:y,formatter:_?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=_?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return g(t)?(Number(t)>Number(S.max)||g(S.min)&&Number(t)<Number(S.min))&&v("error"):v(""),g(t)?Number(t):null},onChange:e=>{N(e)},onBlur:e=>{p&&p(e,v)}}),(0,f.jsx)("div",{className:u()(c),children:"error"===y&&a?s:g(j)?(0,o.A)(d?d(j):j):t})]})},y=e=>_(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(x);y.Field=x,y.toChineseCharacter=o.A;const v=y},88893:(e,t,n)=>{n.d(t,{N:()=>y,A:()=>v});var a=n(88701),r=n(55199),s=n(98434),l=n(78491),o=n.n(l),i=n(10986),c=n.n(i),d=n(33097),u=n.n(d);const p={"country-select":"style_country-select__Ztf-V__St-+1","flag-img":"style_flag-img__RGhcM__St-+1"};var m=n(13050),h=n(70579);const{useDecorator:f}=s.hooks,g=(0,m.createWithRemoteLoader)({modules:["components-iconfont:CountyFlag"]})((e=>{let{remoteModules:t,value:n,onChange:a}=e;const[s]=t;return(0,h.jsx)(s,{children:e=>{let{list:t}=e;return(0,h.jsx)(r.Select,{popupMatchSelectWidth:300,className:p["country-select"],value:n||"CN",onChange:a,placeholder:"\u8bf7\u9009\u62e9\u56fd\u5bb6",showSearch:!0,filterOption:(e,t)=>t.name.indexOf(e)>-1,optionLabelProp:"code",options:t.map((e=>{let{country_name_cn:t,country_code:n,ab:a}=e;return{value:a,code:"(+".concat(n,")"),name:t,label:(0,h.jsxs)(r.Space,{align:"center",children:[(0,h.jsx)("span",{className:p["country-name"],children:t}),(0,h.jsxs)("div",{children:["(+",n,")"]})]})}}))})}})})),_=e=>{const{className:t,onBlur:n,name:s,...l}=e,[i,d]=c()(e),p=o()(n||(()=>{})),m=e=>new a.AsYouType(u()(e,"code","CN")).input(u()(e,"value",""));return(0,h.jsx)("div",{className:t,ref:p,children:(0,h.jsx)(r.Input,{...l,addonBefore:(0,h.jsx)(g,{value:u()(i,"code","CN"),onChange:e=>{d&&d(Object.assign({},i,{code:e,value:m({code:e,value:u()(i,"value","")})})),n&&n()}}),value:u()(i,"value",""),onChange:e=>{d&&d(Object.assign({code:"CN"},i,{value:e.target.value,code:u()(i,"code","CN")}))},onBlur:e=>{d&&d(Object.assign({code:"CN"},i,{value:m({value:e.target.value,code:u()(i,"code","CN")})})),n&&n()}})})},x=e=>{let{rule:t,...n}=e;const a=f(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||""),rule:(e=>{const t=(e||"").split(" "),n=t.indexOf("REQ");return n>-1?t.splice(n+1,0,"PHONE_NUMBER"):t.unshift("PHONE_NUMBER"),t.join(" ")})(t)},n));return a(_)};x.Field=_,x.defaultProps={},x.format=e=>{let{code:t,value:n}=e;const r=t?(0,a.getCountryCallingCode)(t):null;return r&&n?"+".concat(r," ").concat(n):""},x.parsePhoneNumber=e=>{let{phoneNumber:t}=e;const{country:n,countryCallingCode:r,nationalNumber:s}=t?(0,a.parsePhoneNumber)(t):null;return s&&t?{country:n,countryCallingCode:r,nationalNumber:s}:""};const y=async(e,t)=>{let{field:a}=t;if((a.rule||"").split(" ").indexOf("REQ")>-1&&!u()(e,"value"))return{result:!1,errMsg:"%s\u4e0d\u80fd\u4e3a\u7a7a"};if(!u()(e,"value"))return{result:!0};return{result:await Promise.all([n.e(8481),n.e(6900)]).then(n.bind(n,6900)).then((t=>{let{isValidPhoneNumber:n}=t;return n(u()(e,"value",""),{defaultCountry:u()(e,"code","CN"),extract:!0})})),errMsg:"%s\u683c\u5f0f\u4e0d\u6b63\u786e"}},v=x},6179:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(55199),r=n(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({placeholder:"\u8bf7\u9009\u62e9".concat(e.label||"")},e))(a.Rate);l.defaultProps={fieldName:"rate"};const o=l},36972:(e,t,n)=>{n.d(t,{A:()=>F});var a=n(73884),r=n(98434),s=n(78491),l=n.n(s),o=n(55199);const i="style_salary__sUOtT__St-+1",c="style_salary-type__Sl1LC__St-+1",d="style_input-number__eoEZr__St-+1",u="style_full__NPqJm__St-+1",p="style_input-group__toLB7__St-+1",m="style_input-group-no-mb__C4nzh__St-+1";var h=n(58609),f=n(55431),g=n(48731),_=n(10986),x=n.n(_),y=n(21079),v=n(70579);const{field:j}=r.Select.Fetch,{useDecorator:N,useUIDecorator:S}=r.hooks,b=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},A=e=>{let{children:t,isError:n}=e;return(0,v.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(n?"is-error":""),children:(0,v.jsx)("div",{className:"react-form__field-main",children:(0,v.jsx)("div",{className:"react-form__field-input",children:(0,a.cloneElement)(t,{className:"react-form__field-component"})})})})},C=e=>{let{getPopupContainer:t,onBlur:n,api:a,isRange:r=!0,placeholder:s,disabled:f,showMonth:_,remindUnit:N,req:S,...C}=e;const[w,P]=x()(C),{formatMessage:F}=(0,h.useIntl)({moduleName:"FormInfo"}),I=F({id:"defaultSelectPlaceholder"},{label:""}),k=F({id:"defaultInputPlaceholder"},{label:""}),T=[6].indexOf((0,y.get)(w,"type"))>-1,M=1===(0,y.get)(w,"type"),E=7===(0,y.get)(w,"type"),O=e=>{if(e)return T?e/1e4:e},R=l()(n||(()=>{}));return(0,v.jsx)("div",{ref:R,className:i,children:(0,v.jsxs)(o.Row,{wrap:!1,gutter:10,children:[(0,v.jsx)(o.Col,{children:(0,v.jsx)(j,{className:c,...a,value:(0,y.get)(w,"type"),onChange:e=>{P&&P(Object.assign({},M?{}:w,{type:e,min:"",max:""}))},placeholder:s||I,getPopupContainer:t,disabled:f,children:e=>{let{data:t}=e;return{options:t||[]}}})}),M?null:(0,v.jsxs)(o.Col,{flex:1,children:[r&&(0,v.jsxs)(o.Row,{className:N&&[5,6].includes(null===w||void 0===w?void 0:w.type)?p:m,wrap:!1,children:[(0,v.jsx)(o.Col,{flex:1,children:(0,v.jsx)(A,{isError:!(0,y.get)(w,"min")&&S,children:(0,v.jsx)(o.InputNumber,{disabled:f,placeholder:k,formatter:b,value:O((0,y.get)(w,"min")),style:{textAlign:"center"},onChange:e=>{P(Object.assign({},w,{min:T?1e4*e:e}))},description:N&&[5,6].includes(null===w||void 0===w?void 0:w.type)?(0,v.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,v.jsx)(g.default,{name:null===w||void 0===w?void 0:w.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",T?F({id:"thousand"}):E?"":F({id:"yuan"})]}):null})})}),(0,v.jsx)(o.Col,{children:(0,v.jsx)(o.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,v.jsx)(o.Col,{flex:1,children:(0,v.jsx)(A,{isError:!(0,y.get)(w,"max")&&S,children:(0,v.jsx)(o.InputNumber,{disabled:f,placeholder:k,formatter:b,value:O((0,y.get)(w,"max")),style:{textAlign:"center"},addonAfter:T?F({id:"thousand"}):E?"":F({id:"yuan"}),onChange:e=>{P(Object.assign({},w,{max:T?1e4*e:e}))}})})}),5===(0,y.get)(w,"type")&&_&&(0,v.jsx)(o.Col,{children:(0,v.jsxs)("span",{className:(0,y.get)(w,"max")&&(0,y.get)(w,"min")&&!(0,y.get)(w,"month")&&S?"error":"",children:[(0,v.jsx)("span",{className:d,children:"X"}),(0,v.jsx)(o.InputNumber,{min:12,disabled:f,value:(0,y.get)(w,"month"),onChange:e=>{P(Object.assign({},w,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!r&&!E&&(0,v.jsx)(o.InputNumber,{disabled:f,min:0,max:1e8,placeholder:k,className:u,formatter:b,value:O((0,y.get)(w,"max")),style:{textAlign:"center"},addonAfter:T?F({id:"thousand"}):E?"":F({id:"yuan"}),onChange:e=>{P(Object.assign({},w,{max:T?1e4*e:e}))}}),!r&&E&&(0,v.jsx)(o.Input,{disabled:f,placeholder:k,className:u,onChange:e=>{P(Object.assign({},w,{max:e.target.value}))},value:(0,y.get)(w,"max"),style:{textAlign:"center"}})]})]})})},w=e=>(0,v.jsx)(h.IntlProvider,{moduleName:"FormInfo",importMessages:f.A,children:(0,v.jsx)(C,{...e})});w.defaultProps={api:{loader:()=>[{value:1,label:"\u9762\u8bae"},{value:2,label:"\u65f6\u85aa"},{value:3,label:"\u65e5\u85aa"},{value:4,label:"\u5468\u85aa"},{value:5,label:"\u6708\u85aa"},{value:6,label:"\u5e74\u85aa"}]},defaultValue:{type:5,min:"",max:"",month:12}};const P=e=>{var t;return N({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(w)};P.Field=w;const F=P},50192:(e,t,n)=>{n.d(t,{A:()=>x});var a=n(87558),r=n(83136),s=n.n(r);const l="style_table__A9nBK__St-+1";var o=n(21079),i=n(27777),c=n(98434),d=n(10986),u=n.n(d),p=n(73884),m=n(70579);const{useOnChange:h}=c.hooks,f=(0,a.withFetch)((e=>{let{...t}=e;const[n,a]=u()(t),r=["isLoading","isComplete","data","requestParams","error","send","refresh","reload","loadMore","setData"],c=(0,o.pick)(t,r),d=(0,o.omit)(t,r),{rowKey:h="id",columns:f,className:g,innerName:_,headerRender:x,footerRender:y}=d,v=t.dataFormat(c.data),j=(e,t,n)=>{let{current:r,rowKeyValue:s,dataIndex:l}=n;const o={},i=e.slice(0).map((e=>{if(e[h]===s)return o[e[h]]={...e,[l]:r},{...e,[l]:r};{const n=t[e[h]];return o[e[h]]=Object.assign({},e,n),Object.assign({},e,n)}})),d={pageData:i,totalCount:i.length};c.setData(d),a&&a(o)},N=(0,p.useRef)(null);return N.current=j,(0,p.useEffect)((()=>{v.list.every((e=>{const t=n[e[h]]||{};return Object.keys(e).every((e=>t.hasOwnProperty(e)))}))&&Object.keys(n).length===v.list.length||!c.isComplete||N.current(v.list,n,{})}),[c.isComplete,n,v.list,h]),(0,m.jsxs)("div",{children:[x&&x(c),(0,m.jsx)(i.Table,{...d,className:s()(l,g),rowKey:h,dataSource:v.list,pagination:!1,columns:f.map((e=>{const t={...e};return t.dataIndex?Object.assign({},t,{render:(e,a,r)=>{const s=!t.editable||("function"===typeof t.editable?t.editable(e,a,r,v.list):t.editable),l=a[h],i=n[l],d=(0,o.get)(i,t.dataIndex)||e;if(s&&t.field){var u,p;if(null!==(u=t.field)&&void 0!==u&&u.render)return(0,m.jsx)(m.Fragment,{children:t.field.render({value:d,name:"".concat(_,".").concat(l,".").concat(t.dataIndex),label:" ",labelHidden:t.labelHidden,onChange:function(){for(var e,a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];const o=null!==(e=t.field)&&void 0!==e&&e.getValue?t.field.getValue(r[0]):r[0];return j(v.list,n,{current:o,rowKeyValue:l,dataIndex:t.dataIndex}),t.field.onChange&&t.field.onChange(...r,c)}},a,r,c)});const e=null===(p=t.field)||void 0===p?void 0:p.type;return(0,m.jsx)(e,{...(0,o.omit)(t.field,["type","getValue"]),value:d,name:"".concat(_,".").concat(l,".").concat(t.dataIndex),label:" ",labelHidden:t.labelHidden,onChange:function(){for(var e,a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];const o=null!==(e=t.field)&&void 0!==e&&e.getValue?t.field.getValue(r[0]):r[0];return j(v.list,n,{current:o,rowKeyValue:l,dataIndex:t.dataIndex}),t.field.onChange&&t.field.onChange(...r,c)}})}return t.render?t.render(d,a,r):d}}):t}))}),y&&y(c)]})}));f.defaultProps={mergeList:(e,t)=>Object.assign({},t,{pageData:(e.pageData||[]).concat(t.pageData||[])}),dataFormat:e=>({list:e.pageData,total:e.totalCount})};const g=e=>{let{api:t,...n}=e;return(0,m.jsx)(f,{...n,...t})};g.defaultProps={api:{},value:{}};const _=e=>h(Object.assign({placeholder:"\u8bf7\u9009\u62e9".concat(e.label),innerName:e.name},e))(g);_.Field=g;const x=_},56259:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(89319),r=n(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{},e))(a.A);l.Field=a.A;const o=l},89099:(e,t,n)=>{n.d(t,{A:()=>j});var a=n(55199),r=n(83136),s=n.n(r),l=n(10986),o=n.n(l);const i="style_upload__t422Q__St-+1",c="style_upload-list__Q9HDc__St-+1",d="style_tips__3Gpnu__St-+1";var u=n(64671),p=n(67390),m=n(98434),h=n(1488),f=n.n(h),g=n(29574),_=n(70579);const{useOnChange:x}=m.hooks,y=e=>{let{className:t,fileSize:n,maxLength:r,multiple:l,size:u,accept:m,children:h,renderTips:x,showUploadList:y,onSave:v,ossUpload:j,getPermission:N,...S}=e;const[b,A]=o()(S),C=b||[],{fileList:w,onFileSelected:P}=(0,g.lN)({multiple:l,onSave:v,ossUpload:j,fileSize:n,maxLength:r,value:C,onChange:A,concurrentCount:10}),F=[...w,...C],I=x("\u652f\u6301\u6269\u5c55\u540d".concat(m.map((e=>e.replace(/^\./,""))).join("\u3001"),",\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\u4e0d\u8d85\u8fc7").concat(n,"M\uff0c\u6700\u591a\u4e0a\u4f20").concat(r,"\u4e2a\u9644\u4ef6"),{fileSize:n,maxLength:r,accept:m});return(0,_.jsxs)(a.Space,{direction:"vertical",children:[(0,_.jsxs)(a.Space,{children:[(0,_.jsx)(g.Zi,{...f()(S,["value","onChange"]),size:u,multiple:l,accept:m,className:s()(i,t),onChange:P,children:h}),I&&(0,_.jsx)("div",{className:d,children:I})]}),y&&F.length>0&&(0,_.jsx)(p.List,{className:c,dataSource:F,infoItemRenders:[],getPermission:N||(e=>"delete"===e),apis:{onDelete:e=>{const t=C.slice(0),n=t.indexOf(e);n>-1&&t.splice(n,1),A(t)}}})]})};y.defaultProps={defaultValue:[],children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u.default,{type:"icon-shangchuanfujian"}),"\u4e0a\u4f20\u9644\u4ef6"]}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30};const v=e=>x(e)(y);v.defaultProps={interceptor:"file-format"},v.Field=y;const j=v},10328:(e,t,n)=>{n.d(t,{A:()=>O,E:()=>R});var a=n(98434),r=n(30096),s=n(1904),l=n(83230),o=n(81026),i=n(78756),c=n(92328),d=n(88893),u=n(89099),p=n(96339),m=n(36972),h=n(15209),f=n(50192),g=n(6179),_=n(74529),x=n.n(_),y=n(73884),v=n(58609),j=n(33097),N=n.n(j),S=n(21079),b=n(46237),A=n(56259),C=n(70579);const w=e=>t=>{const n=x()(...e)((e=>{let{forwardedRef:n,...a}=e;return(0,C.jsx)(t,{...a,ref:n})})),a=(0,y.forwardRef)(((e,t)=>(0,C.jsx)(n,{...e,forwardedRef:t})));return Object.keys(t).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((e=>{a[e]=t[e]})),a},P=e=>t=>{let{placeholder:n,label:a,...r}=t;return(0,C.jsx)(v.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,C.jsx)(e,{...r,label:a,placeholder:n||t})})},F=e=>t=>{let{placeholder:n,label:a,...r}=t;return(0,C.jsx)(v.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,C.jsx)(e,{...r,label:a,placeholder:n||t})})},I=e=>t=>{const n=(0,a.useGroup)(),r=N()(n,"name"),s=(0,S.get)(n,"index"),l=(0,b.oc)();return l&&Array.isArray(l)&&l.length>0?l.map((n=>{if("string"===typeof n)return(0,y.createElement)(e,{...t,key:n});const{name:a,label:l,options:o}=n,i=N()(o,"ignore",[]),c=N()(o,"disabled",[]),d=N()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==r)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==s);if(i.length>0&&i.find(u))return null;if(d.length>0&&!d.find(u))return null;let p=Object.assign({},t,{name:N()(o,"nameTransform",((e,t)=>"".concat(e).concat(t)))(t.name,a),label:N()(o,"labelTransform",((e,t)=>e&&"".concat(e).concat(t)))(t.label,l)});return c.length>0&&c.find(u)&&(p.disabled=!0,p.rule=""),(0,y.createElement)(e,{...p,key:a})})):(0,C.jsx)(e,{...t})},k=w([I,P])(a.Input),T=w([I,P])(a.InputNumber);k.Password=w([I,P])(a.Input.Password);const M=w([I,F])(a.DatePicker);M.MonthPicker=w([I,F])(a.DatePicker.MonthPicker),M.RangePicker=w([I,F])(a.DatePicker.RangePicker),M.WeekPicker=w([I,F])(a.DatePicker.WeekPicker);const E=w([I,F])(a.TimePicker);E.RangePicker=w([I,F])(a.TimePicker.RangePicker);const O={Input:k,InputNumber:T,DatePicker:M,TimePicker:E,DatePickerToday:w([I])((e=>{let{placeholder:t,label:n,soFarText:r,...s}=e;const{formatMessage:l}=(0,v.useIntl)({moduleName:"FormInfo"});return(0,C.jsx)(a.DatePickerToday,{...s,label:n,placeholder:[l({id:"startDate"}),l({id:"endDate"})],soFarText:r||l({id:"soFarText"})})})),RadioGroup:w([I])(a.RadioGroup),CheckboxGroup:w([I])(a.CheckboxGroup),Rate:w([I])(g.A),TableInput:w([I])(f.A),SalaryInput:w([I])(m.A),TypeDateRangePicker:w([I])(A.A),MoneyInput:w([I])(c.A),PhoneNumber:w([I])(d.A),Upload:w([I])(u.A),Avatar:w([I])(p.A),FunctionSelect:w([I,F])(o.A),IndustrySelect:w([I,F])(i.A),Cascader:w([I,F])(l.A),AddressSelect:w([I,F])(s.A),AddressInput:w([I,F])(s.N),TreeSelect:w([I,F])(a.TreeSelect),ReactInputNumber:w([I,P])(a.InputNumber),InputUpperCase:w([I,P])(h.A),Select:w([I,F])(a.Select),TextArea:w([I,P])(a.TextArea),AdvancedSelect:w([I,F])(r.Ay)},R={createWithFieldDecorator:w,withInputDefaultPlaceholder:P,withSelectDefaultPlaceholder:F,withLang:I}},83799:(e,t,n)=>{n.d(t,{NI:()=>O,TQ:()=>d.A,JL:()=>E,eu:()=>_.A,vx:()=>u.A,lr:()=>H,s3:()=>G,lV:()=>r.A,d4:()=>p.A,ZN:()=>m.A,pd:()=>L,YI:()=>U,h2:()=>R,F0:()=>h.A,go:()=>f.A,tt:()=>I.A,lu:()=>x.A,l6:()=>B,N:()=>j.A,EY:()=>F,fs:()=>D,AG:()=>V,f7:()=>W,w5:()=>v.A,_O:()=>g.A,nk:()=>q});var a=n(98434),r=n(85696),s=n(58609),l=n(73884),o=n(30891),i=n(47094),c=n(30096),d=n(1904),u=n(83230),p=n(81026),m=n(78756),h=n(92328),f=n(88893),g=n(89099),_=n(96339),x=n(36972),y=n(15209),v=n(56259),j=n(50192),N=n(55199),S=n(10986),b=n.n(S),A=n(70579);const{useDecorator:C}=a.hooks,w=e=>{let{children:t,...n}=e;const[a]=b()(n);return(0,A.jsxs)(N.Typography.Text,{...n,children:[(0,A.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,A.jsx)(N.Input,{value:a})}),t||a]})},P=e=>C(e)(w);P.Field=w;const F=P;var I=n(6179),k=n(45053);const T=e=>{const t=(0,l.forwardRef)(((t,n)=>{let{placeholder:a,label:r,...l}=t;return(0,A.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,A.jsx)(e,{...l,ref:n,label:r,placeholder:a||t})})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},M=e=>{const t=(0,l.forwardRef)(((t,n)=>{let{placeholder:a,label:r,...l}=t;return(0,A.jsx)(s.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,A.jsx)(e,{...l,ref:n,label:r,placeholder:a||t})})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},E=M(c.Ay),O=M(d.N),R=T(y.A),L=T(a.Input);L.Password=T(a.Input.Password);const D=(z=a.TextArea,e=>{let{placeholder:t,label:n,className:a,...r}=e;return(0,A.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:e=>(0,A.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,A.jsx)(z,{...r,label:n,placeholder:t||e})})})});var z;const B=M(a.Select);B.Fetch=M(a.Select.Fetch),B.Fetch.field=a.Select.Fetch.field;const U=T(a.InputNumber),W=M(a.TreeSelect);W.Fetch=M(a.TreeSelect.Fetch),W.Fetch.field=a.TreeSelect.Fetch.field;const V=M(a.TimePicker);V.RangePicker=M(a.TimePicker.RangePicker);const H=M(a.DatePicker);H.MonthPicker=M(a.DatePicker.MonthPicker),H.RangePicker=M(a.DatePicker.RangePicker),H.WeekPicker=M(a.DatePicker.WeekPicker);const G=e=>{let{placeholder:t,label:n,soFarText:r,...l}=e;const{formatMessage:o}=(0,s.useIntl)({moduleName:"FormInfo"});return(0,A.jsx)(a.DatePickerToday,{...l,label:n,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:r||o({id:"soFarText"})})},q=Object.assign({},a,{Input:L,InputUpperCase:R,TextArea:D,Select:B,InputNumber:U,TreeSelect:W,TimePicker:V,DatePicker:H,DatePickerToday:G,Form:r.A,FormItem:o.A,AdvancedSelect:E,AddressSelect:d.A,AddressInput:O,MoneyInput:h.A,PhoneNumber:f.A,Cascader:u.A,FunctionSelect:p.A,IndustrySelect:m.A,TypeDateRangePicker:v.A,Upload:g.A,Avatar:_.A,SalaryInput:x.A,TableInput:j.A,Text:F,Rate:I.A,ErrorTip:k.A})},96252:(e,t,n)=>{n.r(t),n.d(t,{AddressInput:()=>_.NI,AddressSelect:()=>_.TQ,AdvancedSelect:()=>_.JL,Avatar:()=>_.eu,Cascader:()=>_.vx,DatePicker:()=>_.lr,DatePickerToday:()=>_.s3,ErrorTip:()=>h.A,Form:()=>p.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>m.A,FormModal:()=>c.Ay,FormModalButton:()=>c.W6,FormStepModal:()=>d.Ay,FormStepModalButton:()=>d.Wp,FunctionSelect:()=>_.d4,IndustrySelect:()=>_.ZN,Input:()=>_.pd,InputNumber:()=>_.YI,InputUpperCase:()=>_.h2,List:()=>l.A,MoneyInput:()=>_.F0,PhoneNumber:()=>_.go,Rate:()=>_.tt,SalaryInput:()=>_.lu,Select:()=>_.l6,SelectInnerInput:()=>x.A,TableInput:()=>_.N,TableList:()=>o.A,Text:()=>_.EY,TextArea:()=>_.fs,TimePicker:()=>_.AG,TreeSelect:()=>_.f7,TypeDateRangePicker:()=>_.w5,Upload:()=>_._O,default:()=>y,fieldDecorator:()=>s.E,fields:()=>s.A,formModule:()=>_.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var a=n(64261),r=n(2196),s=n(10328),l=n(85846),o=n(97056),i=n(35774),c=n(5995),d=n(94005),u=n(48221),p=n(85696),m=n(30891),h=n(45053),f=n(98434),g={};for(const v in f)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","SelectInnerInput"].indexOf(v)<0&&(g[v]=()=>f[v]);n.d(t,g);var _=n(83799),x=n(18936);(0,a.A)(),r.A.fields=s.A,r.A.List=l.A,r.A.TableList=o.A,r.A.FormApiButton=i.A,r.A.FormModal=c.Ay,r.A.useFormModal=c.Vl,r.A.FormModalButton=c.W6,r.A.FormStepModal=d.Ay,r.A.useFormStepModal=d.$X,r.A.FormStepModalButton=d.Wp,r.A.FormDrawer=u.Ay,r.A.useFormDrawer=u.Xy,r.A.FormDrawerButton=u.WJ,r.A.Form=p.A,r.A.FormItem=m.A,r.A.ErrorTip=h.A,r.A.SubmitButton=f.SubmitButton,r.A.CancelButton=f.CancelButton,r.A.fieldDecorator=s.E;const y=r.A},55431:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(1649).then(n.bind(n,21649)),"zh-CN":()=>n.e(711).then(n.bind(n,80711))}[e]())},64261:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(98434),r=n(57469),s=n.n(r),l=n(34677),o=n.n(l),i=n(33097),c=n.n(i),d=(n(17448),n(88893)),u=n(46732),p=n(13050),m=n(70579);const h=async(e,t)=>{const{locale:n}=Object.assign({},t);a.interceptors.input.use("photo-string",(e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e})),a.interceptors.output.use("photo-string",(e=>{var t,n;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(n=t.split("?"))||void 0===n?void 0:n[0])||e.id:e})),a.interceptors.input.use("to-array",(e=>Array.isArray(e)?e[0]:e)),a.interceptors.output.use("to-array",(e=>[e])),a.interceptors.input.use("array-single",(e=>e?[e]:[])),a.interceptors.output.use("array-single",(e=>e?e[0]:null)),a.interceptors.input.use("date-string",(e=>e?s()(e):null)),a.interceptors.output.use("date-string",(e=>e?new Date(e.valueOf()).toISOString():"")),a.interceptors.input.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(s()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(s()(e[1])),t})),a.interceptors.output.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t})),a.interceptors.output.use("file-format",(e=>Array.isArray(e)?e.map((e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename}))):[])),a.interceptors.input.use("file-format",(e=>Array.isArray(e)?e.map((e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename}))):[]));const{default:r}=await(0,p.loadModule)("components-iconfont:CountyFlag@load"),l=await r(),i=new Map(l.map((e=>{let{ab:t,country_code:n}=e;return[t,n]}))),h=new Map(l.map((e=>{let{ab:t,country_code:n}=e;return[n,t]})));a.interceptors.output.use("phone-number-string",(e=>e.code&&e.value?"+".concat(i.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):"")),a.interceptors.input.use("phone-number-string",(e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t.length<3?{}:{code:h.get(Number(t[1])),value:t[2]}}));const f=a.RULES.REQ,g=a.RULES.LEN,_=(e,t)=>{t=Object.assign({},t);const a={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},LENGTH_EQUAL:{"zh-CN":"%s\u5fc5\u987b\u7b49\u4e8e".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},r=c()(a,"".concat(e,".").concat(n));return r||c()(a,"".concat(e,".zh-CN"))};(0,a.preset)(o()({},{rules:{REQ:function(){return Object.assign({},f(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[a,r,s]=t;let l="";return s===r&&a.length!==Number(s)&&(l="LENGTH_EQUAL"),a.length<r&&(l="LENGTH_MORE"),s&&a.length>s&&(l="LENGTH_LESS"),Object.assign({},g(...t),{errMsg:_(l,{start:r,end:s})})},PHONE_NUMBER:d.N,ARRAY_LENGTH:(e,t,n)=>n===t&&e.length!==Number(n)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:n})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:n})}:n&&e.length>n?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:n})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,m.jsx)(u.A,{...e})}},"function"===typeof e?e({interceptors:a.interceptors,RULES:a.RULES}):e))}},75363:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});const a=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var r=n(58609),s=n(64671),l=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__St-+1",d="style_inner__bMKeU__St-+1",u="style_content__xTfWZ__St-+1",p="style_link__93j7O__St-+1";var m=n(48731),h=n(70579);const f=e=>{let{name:t,className:n}=e;return(0,h.jsx)(r.IntlProvider,{importMessages:a,moduleName:"HelperGuide",children:(0,h.jsx)(m.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,n),children:(0,h.jsxs)(l.Space,{className:d,children:[(0,h.jsx)(s.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:u,children:e.content}),e.url&&(0,h.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(s.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},1454:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var a=n(55199),r=n(83136),s=n.n(r),l=n(64671);const o="style_part__+Vw3+__St-+1",i="style_part-title__Uw+4K__St-+1",c="style_collapse__ARl-O__St-+1",d="style_is-active__i1zHH__St-+1",u="style_part-title-sub__fcxT7__St-+1";var p=n(70579);const m=e=>{let{children:t,className:n,...r}=e;return(0,p.jsx)(a.Collapse,{...r,className:s()(c,"collapse",n),expandIcon:e=>{let{isActive:t}=e;return(0,p.jsx)(l.default,{size:12,className:s()({[d]:t,"is-active":t}),type:"icon-triangle-right"})},children:t})};m.Panel=a.Collapse.Panel;const h=m,f=e=>{let{className:t,children:n,...r}=e;return(0,p.jsx)(a.Space,{...r,className:t,direction:"vertical",size:24,children:n})};f.Part=e=>{let{className:t,title:n,subTitle:r,extra:l,children:c,...d}=e;return(0,p.jsx)(a.Card,{className:s()(o,"part",t,{"no-title":!n}),bordered:!1,title:n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:s()("part-title",i),children:n}),r&&(0,p.jsx)("div",{className:s()("part-title-sub",u),children:r})]}),extra:l,...d,children:c})},f.Collapse=h;const g=f},21554:(e,t,n)=>{n.r(t),n.d(t,{TooltipFetch:()=>F,TooltipInfoLabel:()=>A,default:()=>S});var a=n(55199),r=n(83136),s=n.n(r);const l="style_tooltip__zHGMI__St-+1",o="style_large__lvmsm__St-+1",i="style_small__nUt0r__St-+1",c="style_popup-content__-rKQN__St-+1",d="style_title__1EQPq__St-+1",u="style_important-info__qTSZY__St-+1",p="style_error__yTTq3__St-+1",m="style_warning__CMJxz__St-+1",h="style_success__AvJVx__St-+1",f="style_sub-title__uD8CH__St-+1",g="style_content__lzgUz__St-+1",_="style_alone__q6q82__St-+1",x="style_fetch-content__tEOEV__St-+1",y="style_fetch-loading__tN-WB__St-+1",v="style_title-info-icon__iY8Q+__St-+1";var j=n(70579);const N=e=>{let{overlayClassName:t,title:n,size:r,subtitle:x,content:y,importantInfo:v,importantInfoType:N,moreInfo:S,...b}=e;return(0,j.jsx)(a.Tooltip,{...b,overlayClassName:s()(t,l,{[i]:"small"===r,[o]:"large"===r}),title:(0,j.jsxs)(a.Space,{direction:"vertical",className:c,children:[n&&(0,j.jsx)("div",{className:d,children:n}),v&&(0,j.jsx)("div",{className:s()(u,{[h]:"success"===N,[m]:"warning"===N,[p]:"error"===N}),children:v}),x&&(0,j.jsx)("div",{className:f,children:x}),y&&(0,j.jsx)("div",{className:s()(g,{[_]:[n,x,v,S].every((e=>!e))}),children:y}),S&&(0,j.jsx)("div",{children:S})]})})};N.defaultProps={};const S=N;var b=n(64671);const A=e=>{let{title:t,tooltipTitle:n}=e;return(0,j.jsxs)("div",{children:[t,n?(0,j.jsx)(S,{...n,children:(0,j.jsx)("span",{children:(0,j.jsx)(b.default,{type:"icon-xinxi-miaobian",className:v,size:14})})}):null]})};var C=n(73884),w=n(87558);const P=e=>{let{api:t,children:n,fetchContent:r,showLoading:l,loadingClassName:o,force:i,...c}=e;const[d,u]=(0,C.useState)(!1),p=(0,w.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:m,isLoading:h,data:f,send:g}=p;return(0,j.jsx)(S,{...Object.assign({},c,m?r(f,p):{}),open:d,onOpenChange:async e=>{!e||m&&!i||await g({type:"refresh"}),u(e)},children:(0,j.jsxs)("span",{className:x,children:[n,l&&h?(0,j.jsx)(a.Spin,{size:"small",className:s()(o,y)}):null]})})};P.defaultProps={showLoading:!0};const F=P},47094:(e,t,n)=>{n.d(t,{A:()=>a});const a={"form-outer":"style_form-outer__IWUs0__St-+1","form-drawer":"style_form-drawer__uYDXS__St-+1","table-list":"style_table-list__6lp-A__St-+1","list-item":"style_list-item__hVzQa__St-+1","table-list-inner":"style_table-list-inner__uc8DK__St-+1","table-list-field":"style_table-list-field__JSJfB__St-+1","table-list-header":"style_table-list-header__KXvKa__St-+1","is-req":"style_is-req__LfXQf__St-+1","table-list-extra":"style_table-list-extra__faYTK__St-+1","list-btn":"style_list-btn__WKYkm__St-+1","form-info":"style_form-info__B8bAP__St-+1","list-part":"style_list-part__Ld0GA__St-+1","is-important":"style_is-important__vaBk1__St-+1","list-item-part":"style_list-item-part__MzKP7__St-+1","money-input":"style_money-input__J86Pb__St-+1","money-description":"style_money-description__Gz3p7__St-+1","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__St-+1","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__St-+1","helper-guide-field":"style_helper-guide-field__Wke3w__St-+1","field-tips":"style_field-tips__7CIJi__St-+1","label-hidden":"style_label-hidden__FzFEN__St-+1","error-tip-overlay":"style_error-tip-overlay__aNCGc__St-+1","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__St-+1","column-not-layout":"style_column-not-layout__+SXC+__St-+1"}}}]);
|
|
2
|
-
//# sourceMappingURL=5846.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5846],{58407:(e,t,n)=>{n.r(t),n.d(t,{ConfirmLink:()=>_,ConfirmText:()=>x,default:()=>y,withConfirm:()=>g});n(73884);var a=n(55199);const r=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var s=n(64671),l=n(58609),o=n(3382),i=n(83136),c=n.n(i);const d="style_overlay__99t5t__0pAcf",u="style_is-danger__gxyAB__0pAcf",p="style_title__EEPu2__0pAcf",m="style_content__mZZg5__0pAcf",h="style_has-title__5+PEt__0pAcf";var f=n(70579);const g=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:i=!0,onClick:g,onCancel:_,disabled:x,showCancel:y,cancelText:v,isModal:A,okText:j,placement:N,getContainer:b,...C}=t;const{formatMessage:w}=(0,l.useIntl)({moduleName:"ConfirmButton"}),S=(0,o.useConfirmModal)();return A?(0,f.jsx)(e,{...C,onClick:e=>{S({type:"confirm",title:n,getContainer:b,danger:i,message:r||w({id:"message"}),okText:j||w(i?{id:"delete"}:{id:"confirm"}),cancelText:v||w({id:"cancel"}),onCancel:_,onOk:g})}}):(0,f.jsx)(a.Popconfirm,{title:(0,f.jsxs)(a.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,f.jsxs)(a.Space,{size:0,align:"start",className:p,children:[(0,f.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,f.jsxs)(a.Space,{size:0,align:"start",className:c()(m,{[h]:n}),children:[!n&&(0,f.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),r||w({id:"message"})]})]}),placement:N,onConfirm:g,okButtonProps:{danger:i},onCancel:_,overlayClassName:c()(d,{[u]:i}),getPopupContainer:b,disabled:x,showCancel:y,cancelText:v,okText:j||w(i?{id:"delete"}:{id:"confirm"}),children:(0,f.jsx)(e,{...C,disabled:x})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},_=g(a.Typography.Link),x=g(a.Typography.Text),y=g(a.Button)},48731:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var a=n(73884),r=n(87558),s=n(76329),l=n(15797),o=n.n(l),i=n(79686),c=n.n(i),d=n(70579);const u=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],p=(0,r.withFetch)((e=>{let{data:t,children:n}=e;return"function"===typeof n?n(t):n||(null===t||void 0===t?void 0:t.description)})),m=o()((e=>new Map(u.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),h=e=>{let{loader:t,...n}=e;const{global:{enumsRef:r}}=(0,s.useGlobalContext)(),l=(0,a.useRef)(null);return(0,d.jsx)(p,{...n,loader:async function(){const e=m(await t(...arguments)),{params:n}=arguments.length<=0?void 0:arguments[0],{moduleName:a,name:s,force:o,locale:i}=n,d=async t=>!0!==o&&l.current===i&&r.current.get(t)||await(async()=>{const n=e.get(t),a=await(async()=>"function"===typeof n?new Map((await n({locale:i})).map((e=>[e.value.toString(),e]))):Array.isArray(n)?new Map(n.map((e=>[e.value.toString(),e]))):"object"===typeof n?new Map(Object.keys(n).map((e=>[e.toString(),n[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return r.current.set(t,a),l.current=i,a})();if(Array.isArray(a))return await Promise.all(a.map((e=>d(e).then((e=>Array.from(e.values()))))));const u=await d(a);return c()(s)?Array.from(u.values()):u.get(s.toString())}})},f=e=>{let{moduleName:t,name:n,force:a,children:r,...l}=e;const o=(0,s.usePreset)();return(0,d.jsx)(h,{...l,params:{moduleName:t,locale:null===o||void 0===o?void 0:o.locale,enums:null===o||void 0===o?void 0:o.enums,name:n,force:a},loader:e=>{let{params:t}=e;return t.enums},children:r})};f.defaultProps={force:!1};const g=f},67390:(e,t,n)=>{n.r(t),n.d(t,{Download:()=>x,FileLink:()=>K,List:()=>G,OptionButtons:()=>R,default:()=>q,downloadBlobFile:()=>f,useDownload:()=>g,useFileModal:()=>M});var a=n(33097),r=n.n(a),s=n(89946),l=n.n(s),o=n(55199),i=n(76329),c=n(64671),d=n(87558),u=n(73884),p=n(96418),m=n.n(p),h=n(70579);const f=async(e,t)=>{const n=e=>{const n=document.createElement("a"),a=new MouseEvent("click");n.download=t,n.href=e,n.dispatchEvent(a)};if(!e)throw new Error("\u672a\u83b7\u53d6\u5230\u4e0b\u8f7d\u7684\u6587\u4ef6\u4fe1\u606f");if("string"===typeof e&&/blob:http(s)?:/.test(e))return void n(e);if("[object Blob]"===Object.prototype.toString.call(e)){const t=new Blob([e],{type:r()(e,"type")});return void n(URL.createObjectURL(t))}const{data:a}=await l()({url:e,responseType:"blob"});n(URL.createObjectURL(new Blob([a],{type:r()(a,"type")})))},g=e=>{let{id:t,filename:n,apis:a,onError:r,onSuccess:s}=e;const{message:l}=o.App.useApp(),{apis:c}=(0,i.usePreset)(),p=Object.assign({},c,a),[h,g]=(0,u.useState)(!1),{isLoading:_,data:x,error:y,refresh:v,...A}=(0,d.useFetch)(Object.assign({},p.oss,{auto:!1})),j=m()(r||l.error),N=m()(s);return(0,u.useEffect)((()=>{_||(y?j(y):x&&(g(!0),f(x,n).then(N).catch((e=>{j(e.message)})).then((()=>{g(!1)}))))}),[_,y,x,n,j,N]),{...A,isLoading:_||h,download:()=>v(t&&{params:{id:t}})}},_=e=>{let{id:t,filename:n,api:a,onSuccess:r,onError:s,onClick:l,...i}=e;const{isLoading:d,download:u}=g({id:t,filename:n,api:a,onError:s,onSuccess:r});return(0,h.jsx)(o.Button,{icon:(0,h.jsx)(c.default,{type:"icon-xiazai"}),...i,loading:d,onClick:function(){l&&l(...arguments),u()}})};_.defaultProps={filename:"\u672a\u547d\u540d\u4e0b\u8f7d\u6587\u4ef6"},_.useDownload=g,_.downloadBlobFile=f;const x=_;var y=n(75087),v=n.n(y),A=n(58407),j=n(96252),N=n(58609),b=n(74065),C=n.n(b),w=n(26304),S=n.n(w),P=n(3382),F=n(10419);const I="style_file-modal-outer__1guNh__0pAcf",k="style_file-title__8bnUq__0pAcf",T="style_ellipse__kDaLC__0pAcf",M=()=>{const e=(0,P.useModal)(),{message:t}=o.App.useApp();return(0,u.useCallback)((n=>{let{title:a,id:r,originName:s,apis:l,openDownload:i=!0,...c}=n;return e(Object.assign({footer:null},c,{title:(0,h.jsxs)(o.Space,{size:10,className:k,children:[(0,h.jsx)("span",{className:T,children:a||s}),i&&(0,h.jsx)(x,{className:"btn-no-padding",type:"link",id:r,apis:l,filename:s,onSuccess:()=>{t.success("\u4e0b\u8f7d\u6210\u529f")}})]}),children:(0,h.jsx)("div",{className:I,children:(0,h.jsx)(F.default,{id:r,originName:s,apis:l})})}))}),[e,t])},E=e=>({"en-US":()=>n.e(5645).then(n.bind(n,75645)),"zh-CN":()=>n.e(6707).then(n.bind(n,26707))}[e]()),O=(0,N.createWithIntl)({moduleName:"File",importMessages:E})((e=>{let{item:t,hasPreview:n,getPermission:a,apis:r}=e;const{filename:s,id:l}=t,{formatMessage:i}=(0,N.useIntl)({moduleName:"File"}),d=(0,j.useFormModal)(),u=M();return(0,h.jsxs)(o.Space,{size:0,children:[n&&a("preview",t)&&(0,h.jsx)(o.Button,{type:"text",icon:(0,h.jsx)(c.default,{type:"icon-yulan"}),onClick:()=>{r.onPreview?r.onPreview(t):u({id:l,originName:s,apis:r})}}),a("edit",t)&&(0,h.jsx)(o.Button,{type:"text",icon:(0,h.jsx)(c.default,{type:"icon-bianji"}),onClick:()=>{const e=d({size:"small",title:i({id:"editDocumentName"}),formProps:{data:{name:S()(t.filename.split(".")).join(".")},onSubmit:async n=>{!1!==(r.onEdit&&await r.onEdit({formData:Object.assign({},n,{name:"".concat(n.name,".").concat(C()(t.filename.split(".")))}),item:t}))&&e.close()}},children:(0,h.jsx)(j.default,{column:1,list:[(0,h.jsx)(j.Input,{name:"name",label:i({id:"documentName"}),rule:"REQ LEN-0-100"})]})})}}),a("download",t)&&(0,h.jsx)(x,{type:"text",id:l,filename:s}),a("delete",t)&&(0,h.jsx)(A.default,{type:"text",icon:(0,h.jsx)(c.default,{type:"icon-shanchu"}),onClick:()=>r.onDelete&&r.onDelete(t)})]})}));O.defaultProps={hasPreview:!0,apis:{},getPermission:(e,t)=>!0};const R=O;var L=n(57469),D=n.n(L);const z="style_list-item-outer__0jlCN__0pAcf",B="style_list-item__nmPCB__0pAcf",U="style_split__kgSlH__0pAcf",W="style_loading__kQUX5__0pAcf",V="style_list-options__aEila__0pAcf",H=e=>{let{className:t,dataSource:n,getPermission:a,infoItemRenders:r,apis:s}=e;return(0,h.jsx)(N.IntlProvider,{importMessages:E,moduleName:"File",children:(0,h.jsx)(o.List,{className:t,dataSource:n.map(((e,t)=>(e.index=t,e))),rowKey:e=>"item_".concat(e.uuid&&"uuid_".concat(e.uuid)||e.id&&"id_".concat(e.id)),renderItem:e=>{const{type:t,filename:n}=e;return(0,h.jsx)(o.List.Item,{className:z,children:(0,h.jsxs)(o.Row,{justify:"space-between",wrap:!1,className:B,children:[(0,h.jsxs)(o.Col,{flex:1,children:[(0,h.jsx)("div",{className:U}),(0,h.jsxs)(o.Space,{className:"is-block",align:"start",size:4,children:[(0,h.jsx)(v(),{type:C()(null===n||void 0===n?void 0:n.split(".")),size:14}),n]})]}),r&&r.map(((n,a)=>(0,h.jsxs)(o.Col,{span:n.span||4,children:["uploading"!==t&&("function"===typeof n?n:n.render)(e),(0,h.jsx)("div",{className:U})]},a))),(0,h.jsx)(o.Col,{className:V,children:"uploading"!==t?(0,h.jsx)(R,{getPermission:a,item:e,apis:s}):(0,h.jsxs)(o.Space,{className:W,children:[(0,h.jsx)(o.Spin,{size:"small"}),(0,h.jsx)(o.Typography.Link,{children:(0,h.jsx)(N.FormattedMessage,{id:"uploading",moduleName:"File"})})]})})]})})},bordered:!0})})};H.defaultProps={infoItemRenders:[e=>e.userName?(0,h.jsx)(o.Typography.Text,{children:e.userName}):null,e=>e.date?(0,h.jsx)(o.Typography.Text,{children:D()(e.date).format("YYYY-MM-DD HH:mm:ss")}):null]};const G=H;const q=(0,n(97211).A)((e=>{let{data:t,children:n,...a}=e;return n({url:t,...a})})),Q=e=>{let{id:t,originName:n,openDownload:a,children:r,modalProps:s,...l}=e;const i=M();return(0,h.jsx)(o.Typography.Link,{...l,onClick:()=>{i({...s,id:t,originName:n,openDownload:a})},children:r||n})};Q.defaultProps={openDownload:!0};const K=Q},10419:(e,t,n)=>{n.r(t),n.d(t,{HtmlPreview:()=>g,ImagePreview:()=>k,OSSFilePreview:()=>O,OfficePreview:()=>y,PdfPreview:()=>b,TextPreview:()=>F,UnknownPreview:()=>I,default:()=>R});var a=n(63114),r=n.n(a),s=n(73884),l=n(13050),o=n(83136),i=n.n(o);const c="style_container__9Fu-3__0pAcf",d="style_loading__r3aiE__0pAcf",u="style_text-outer__TzhuG__0pAcf",p="style_error__wSaxt__0pAcf";var m=n(87558),h=n(70579);const f=(0,m.createWithFetch)({transformResponse:e=>{let{data:t}=e;return{data:{code:200,results:t}}}})((e=>{let{data:t}=e;const n=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const e=(new DOMParser).parseFromString(t,"text/html");e.querySelectorAll("script").forEach((e=>{e.parentElement.removeChild(e)}));const a=(0,l.getPublicPath)("components-core")+"/iframeResizer.contentWindow.js",r=document.createElement("script");r.src=a,e.head.appendChild(r);const s=document.createElement("style");s.innerText="html,body{height:auto!important;}body{pointer-events: none;background: #FFFFFF;}",e.head.appendChild(s),n.current.srcdoc=e.documentElement.outerHTML}),[t]),(0,s.useEffect)((()=>{r().iframeResize({checkOrigin:!1},n.current)}),[]),(0,h.jsx)("iframe",{title:"\u7b80\u5386\u9884\u89c8",frameBorder:"0",width:"100%",ref:n})})),g=e=>{let{className:t,url:n,maxWidth:a}=e;return(0,h.jsx)("div",{className:i()(t,c),style:{maxWidth:a},children:(0,h.jsx)(f,{url:n})})};var _=n(76329);const x=(0,m.createWithFetch)({cache:"office-preview"})((e=>{let{data:t,className:n,...a}=e;const{data:r}=t;return r.map((e=>{let{url:t}=e;const r=E(t);return(0,s.createElement)(r,{...a,url:t,key:t,className:n})}))})),y=e=>{let{id:t,apis:n,className:a,...r}=e;const{apis:s}=(0,_.usePreset)(),l=Object.assign({},s,n);return(0,h.jsx)(x,{...r,...l.previewOffice,data:{id:t},className:a})};var v=n(55199),A=n(39165),j=(n(71975),n(36));const N=(0,s.memo)((e=>{let{url:t,maxWidth:n,scale:a,rotate:r,className:o}=e;const[u,p]=(0,s.useState)(0);A.pdfjs.GlobalWorkerOptions.workerSrc=(0,l.getPublicPath)("components-core")+"/pdfjs/build/pdf.worker.js";const[m,f]=(0,s.useState)(n),g=(0,j.useResize)((()=>{g.current.clientWidth&&f(Math.min(g.current.clientWidth,n))}));return(0,h.jsx)("div",{ref:g,className:i()(o,c),style:{maxWidth:n},children:(0,h.jsx)(A.Document,{file:{url:t},options:{standardFontDataUrl:(0,l.getPublicPath)("components-core")+"/pdfjs/standard_fonts/",cMapUrl:(0,l.getPublicPath)("components-core")+"/pdfjs/cmaps/",cMapPacked:!0},error:"PDF\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25",loading:(0,h.jsx)("div",{className:d,children:(0,h.jsx)(v.Spin,{})}),noData:"\u672a\u6307\u5b9aPDF\u6587\u4ef6",onLoadSuccess:e=>{let{numPages:t}=e;p(t),console.log("onLoadSuccess")},onLoadError:e=>{console.log("onLoadError",e)},onSourceError:e=>{console.log("onSourceError",e)},children:(0,h.jsx)(v.Space,{direction:"vertical",children:u>=1&&Array.from(new Array(u),((e,t)=>(0,h.jsx)(A.Page,{className:"preview-item",scale:a/100,rotate:r,pageNumber:t+1,width:m,loading:null,renderAnnotationLayer:!1,renderTextLayer:!0,noData:"\u672a\u6307\u5b9a\u9875\u9762"},"page_".concat(t))))})})})}));N.defaultProps={autoSize:!0,renderTextLayer:!1,scale:100,rotate:0,maxWidth:1200};const b=N;var C=n(91409),w=n.n(C),S=n(89946),P=n.n(S);const F=e=>{let{url:t,className:n,maxWidth:a}=e;const[r,l]=(0,s.useState)(""),[o,m]=(0,s.useState)(!0),[f,g]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{P().get(t).then((e=>{let{data:t}=e;l(t),m(!1)}),(()=>{m(!1),g(!0)}))}),[t]),(0,h.jsxs)("div",{className:i()(n,c),style:{maxWidth:a},children:[o?(0,h.jsx)("div",{className:d,children:(0,h.jsx)(v.Spin,{})}):null,(0,h.jsx)("div",{className:u,children:f?(0,h.jsx)("div",{className:p,children:"\u6587\u4ef6\u52a0\u8f7d\u5931\u8d25"}):(0,h.jsx)(w(),{text:r})})]})},I=e=>{let{maxWidth:t}=e;return(0,h.jsx)("div",{className:c,style:{maxWidth:t},children:(0,h.jsx)("div",{className:u,children:(0,h.jsx)(v.Result,{status:"500",title:"\u4e0d\u652f\u6301\u7684\u6587\u4ef6\u7c7b\u578b",subTitle:"\u7cfb\u7edf\u4e0d\u652f\u6301\u8be5\u6587\u4ef6\u7c7b\u578b\u9884\u89c8\uff0c\u8bf7\u4e0b\u8f7d\u5230\u672c\u5730\u540e\u8fdb\u884c\u9884\u89c8"})})})},k=e=>{let{url:t,scale:n,rotate:a,className:r,maxWidth:l}=e;const[o,u]=(0,s.useState)(!0),[m,f]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const e=new Image;e.src=t;const n=()=>{u(!1)},a=()=>{u(!1),f(!0)};return e.addEventListener("load",n),e.addEventListener("error",a),()=>{e.removeEventListener("load",n),e.removeEventListener("error",a)}}),[t,n,a]),(0,h.jsxs)("div",{className:i()(r,c),style:{maxWidth:l},children:[o?(0,h.jsx)("div",{className:d,children:(0,h.jsx)(v.Spin,{})}):null,m?(0,h.jsx)("div",{className:p,children:"\u56fe\u7247\u52a0\u8f7d\u5931\u8d25"}):(0,h.jsx)("img",{src:t,alt:"\u7b80\u5386\u9884\u89c8"})]})},T=e=>{const t=(e||"").split("?")[0].toLowerCase();return/.txt$/.test(t)?"txt":/.pdf$/.test(t)?"pdf":/.(png|jpg|jpeg)$/.test(t)?"image":/.(html|htm)$/.test(t)?"html":/.(doc|docx|xls|xlsx|ppt|pptx)$/.test(t)?"office":"unknown"},M=T,E=e=>({txt:F,pdf:b,image:k,html:g,office:y,unknown:I}[T(e)]);const O=(0,n(97211).A)((e=>{let{data:t,id:n,className:a,...r}=e;const s=E(t);return"office"===M(t)?(0,h.jsx)(y,{...r,id:n,className:a}):(0,h.jsx)(s,{...r,className:a,url:t})})),R=e=>{let{id:t,originName:n,...a}=e;return"office"===M(n)?(0,h.jsx)(y,{...a,id:t,originName:n}):(0,h.jsx)(O,{...a,id:t,originName:n})}},330:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y,useFlexBox:()=>g});var a=n(77964),r=n(74065),s=n.n(r),l=n(73884),o=n(55199),i=n(87558),c=n.n(i),d=n(19853),u=n.n(d),p=n(83136),m=n.n(p),h=n(70579);const f=[{width:786,col:1,size:15},{width:960,col:2,size:12},{width:1360,col:3,size:12},{width:1680,col:4,size:12},{width:1920,col:5,size:15}],g=e=>{const{columns:t,onChange:n}=Object.assign({},{columns:f},e),[r,o]=(0,l.useState)(null),i=(0,l.useRef)(null),c=(0,a.A)((e=>{const a=e.clientWidth,r=t.find(((e,t)=>e.width>=a))||s()(t);u()(r,i.current)||(o(r),i.current&&n&&n(r),i.current=r)}));return{ref:c,column:r}},_=e=>{let{columns:t,outerClassName:n,gutter:a,...r}=e;const{ref:s,column:l}=g({columns:t});return(0,h.jsx)("div",{ref:s,className:n,children:l&&(0,h.jsx)(o.List,{...r,grid:{gutter:a,column:l.col}})})};_.defaultProps={gutter:16,columns:f},_.Item=o.List.Item;const x=(0,l.forwardRef)(((e,t)=>{let{columns:n,api:a,getFetchApi:r,outerClassName:s,className:l,gutter:i,dataFormat:d,...u}=e;const{ref:p,column:f}=g({columns:n});return(0,h.jsx)("div",{ref:p,className:s,children:f&&(0,h.jsx)(c(),{...a||r(f),ref:t,render:e=>{let{data:t,isComplete:n}=e;return(0,h.jsx)(o.List,{...u,className:m()(l,"loading-container",{"is-loading":!n}),dataSource:d(t),grid:{gutter:i,column:f.col}})}})})}));x.defaultProps={gutter:16,columns:f,dataFormat:e=>e.pageData},_.Fetch=x;const y=_},45053:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(98434),r=n(55199),s=n(73884),l=n(83136),o=n.n(l),i=n(70720),c=n.n(i),d=n(47094),u=n(70579);const p=e=>{let{name:t,groupName:n,overlayClassName:l,errorRender:i,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:n,groupIndex:r}=e;const{emitter:l,formState:o}=(0,a.useFormContext)(),i=(0,s.useRef)({name:t,groupName:n,groupIndex:r});i.current={name:t,groupName:n,groupIndex:r};const c=(0,s.useRef)(o);c.current=o;const[d,u]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const e=l.addListener("form-field-validate-complete",(e=>{let{id:t,validate:n}=e;const r=c.current[t];if(!r)return;const s=i.current;r.name!==s.name||s.groupName&&(r.groupName!==s.groupName||r.groupIndex!==s.groupIndex)||u(2===n.status?Object.assign({},n,{label:r.label,errMsg:a.util.compileErrMsg(n.msg,r.label)}):null)}));return()=>{e&&e.remove()}}),[l]),d})({name:t,groupName:n,groupIndex:p}),[f,g]=(0,s.useState)(!1),_=h&&f&&i(Object.assign({},h,{closeHover:()=>g(!1)})),x=(0,s.useRef)(null),y=(0,s.useRef)(null);c()((()=>{g(!1)})).current={contains:e=>x.current.contains(e)||y.current&&y.current.contains(e)};const[v,A]=(0,s.useState)(0);return(0,s.useLayoutEffect)((()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&A(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const n=new MutationObserver(e);return n.observe(x.current,{subtree:!0,childList:!0}),()=>{n.disconnect(),t.disconnect()}}),[]),(0,u.jsx)(r.Popover,{open:!!_,overlayClassName:o()(l,d.A["error-tip-overlay"]),content:_&&(0,u.jsx)("div",{ref:y,style:{width:v},className:o()(d.A["error-tip-overlay-content"]),children:_}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{g(!0)},children:m})})};p.defaultProps={errorRender:()=>null};const m=p},83560:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(55199),r=n(98434),s=n(63361),l=n(73884),o=n(10486),i=n(21554),c=n(64671),d=n(83136),u=n.n(d),p=n(47094),m=n(70579);const h=e=>{let{list:t,groupArgs:n,itemRender:d}=e;const h=(0,r.useFormContext)(),f=Object.assign({},h,n?{groupArgs:n}:{}),g=(0,l.useRef)(null),[_,x]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{x(!0)}),[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{ref:g,style:{display:"none"}}),t.filter((e=>"function"===typeof e.props.display?e.props.display(f):!1!==e.props.display)).map(((e,r)=>{const h=e.props.name+r||n&&n[0]+r||r,x={key:h,list:t,props:e.props},y=Object.assign({},e.props),v=e.type;["display","block","hidden","setExtraProps","isBlock","featureId","tips"].forEach((t=>{e.props.hasOwnProperty(t)&&(x[t]=e.props[t]),delete y[t]})),x.hasOwnProperty("isBlock")&&(y.block=x.isBlock);const A=(0,m.jsx)(v,{...Object.assign({},y,"function"===typeof x.setExtraProps?x.setExtraProps({props:y,contextApi:f}):{}),onChange:function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return e.props.onChange&&e.props.onChange(...n,f)}}),j=x.hidden?_&&(0,o.createPortal)(A,g.current):d(x.tips?(0,m.jsxs)(a.Row,{gutter:8,align:"top",children:[(0,m.jsx)(a.Col,{flex:1,children:A}),(0,m.jsx)(a.Col,{children:(0,m.jsx)(i.default,{content:x.tips,children:(0,m.jsx)("span",{className:u()(p.A["field-tips"],{[p.A["label-hidden"]]:y.labelHidden}),children:(0,m.jsx)(c.default,{type:"icon-xinxi-miaobian"})})})})]}):A,x);return(0,m.jsx)(l.Fragment,{children:x.hasOwnProperty("featureId")?(0,m.jsx)(s.default,{id:x.featureId,children:j},h):j},h)}))]})}},85696:(e,t,n)=>{n.d(t,{A:()=>v});var a=n(73884),r=n(76329),s=n(33097),l=n.n(s),o=n(64261),i=n(58609),c=n(55431),d=n(46237),u=n(1454),p=n(46732),m=n(98434),h=n(83136),f=n.n(h),g=n(47094),_=n(70579);const x=e=>{let{children:t}=e;const[n,s]=(0,a.useState)(!1),i=(0,r.usePreset)(),c=l()(i,"formInfo",{}),d=l()(i,"locale");return(0,a.useEffect)((()=>{Promise.resolve((0,o.A)(c,{locale:d})).then((()=>{s(!0)}))}),[c,d]),n?t:null},y=(0,a.forwardRef)(((e,t)=>{let{className:n,helperGuideName:a,children:r,lang:s,...l}=e;return(0,_.jsx)(i.IntlProvider,{importMessages:c.A,moduleName:"FormInfo",children:(0,_.jsx)(d.Ay,{value:s,children:(0,_.jsx)(u.default,{children:(0,_.jsx)(p.K,{value:a,children:(0,_.jsx)(m.FormAntd,{...l,ref:t,className:f()(n,g.A["form-outer"]),children:(0,_.jsx)(x,{children:r})})})})})})}));y.defaultProps={type:"inner"};const v=y},35774:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(98434),r=n(81014),s=n(70579);const l=e=>{let{onClick:t,...n}=e;const l=(0,a.useFormContext)();return(0,s.jsx)(r.default,{...n,onClick:e=>t(l,e)})}},48221:(e,t,n)=>{n.d(t,{Ay:()=>h,WJ:()=>g,Xy:()=>f});var a=n(25963),r=n(83136),s=n.n(r),l=n(98434),o=n(73025),i=n(58609),c=n(47094),d=n(55431),u=n(70579);const p=[{children:"\u53d6\u6d88",ButtonComponent:l.CancelButton},{type:"primary",children:"\u4fdd\u5b58",ButtonComponent:l.SubmitButton,autoClose:!1}],m=e=>{let{className:t,withDecorator:n,footerButtons:a=p,formProps:r,...o}=e;return{...o,footerButtons:a,className:s()(t,c.A["form-outer"],c.A["form-drawer"]),withDecorator:e=>{const t=t=>{const n="function"===typeof r?r(t):r;return(0,u.jsx)(l.FormAntd,{...n,children:(0,u.jsx)(i.IntlProvider,{importMessages:d.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof n?n(t):t()}}},h=e=>(0,u.jsx)(a.default,{...m(e)}),f=()=>{const e=(0,a.useDrawer)();return t=>e(m(t))},g=e=>{const t=f();return(0,u.jsx)(o.A,{...e,modalFunc:t})}},2196:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(55199),r=n(1454),s=n(330),l=n(83560),o=n(47094),i=n(83136),c=n.n(i),d=n(70579);const u=e=>{let{list:t,groupArgs:n,column:i,gap:u,className:p,...m}=e;const h=!(Number.isInteger(i)&&i>0),{ref:f,column:g}=(0,s.useFlexBox)(h?i:{}),_=(e,r)=>(0,d.jsx)(a.Row,{gutter:[u||24,0],className:c()({[o.A["column-not-layout"]]:r}),children:(0,d.jsx)(l.A,{list:t,groupArgs:n,itemRender:(t,n)=>(0,d.jsx)(a.Col,{span:!0===n.block?24:Math.round(24/(e||1)),children:t})})});return(0,d.jsxs)(r.default.Part,{...m,className:c()(p,o.A["form-info"]),children:[(0,d.jsx)("div",{ref:f}),h?g?_(g.col):_(2,!0):_(i)]})};u.defaultProps={column:2,list:[]};const p=u},30891:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(98434);const r=e=>{let{children:t}=e;const{openApi:n,formData:r}=(0,a.useFormContext)();return t({...n,formData:r})}},46237:(e,t,n)=>{n.d(t,{Ay:()=>i,oc:()=>o});var a=n(73884);const r=(0,a.createContext)([]),{Provider:s,Consumer:l}=r,o=()=>(0,a.useContext)(r),i=s},5995:(e,t,n)=>{n.d(t,{Ay:()=>f,Vl:()=>g,W6:()=>_});var a=n(3382),r=n(83136),s=n.n(r),l=n(98434),o=n(83799),i=n(73025),c=n(58609),d=n(47094),u=n(55431),p=n(70579);const m="FormInfo",h=e=>{let{className:t,withDecorator:n,footerButtons:a,formProps:r,...i}=e;return{...i,footerButtons:a||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:m,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:m})}),ButtonComponent:l.CancelButton},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:m,children:(0,p.jsx)(c.FormattedMessage,{id:"Save",moduleName:m})}),ButtonComponent:l.SubmitButton,autoClose:!1}],className:s()(t,d.A["form-outer"],d.A["form-modal"]),withDecorator:e=>{const t=t=>{const n="function"===typeof r?r(t):r;return(0,p.jsx)(o.lV,{...n,children:(0,p.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof n?n(t):t()}}},f=e=>(0,p.jsx)(a.default,{...h(e)}),g=()=>{const e=(0,a.useModal)();return t=>e(h(t))},_=e=>{const t=g();return(0,p.jsx)(i.A,{...e,modalFunc:t})}},94005:(e,t,n)=>{n.d(t,{$X:()=>u,Ay:()=>d,Wp:()=>p});var a=n(5995),r=n(55199),s=n(73884),l=n(98434),o=n(70579);const i=e=>{let{setCurrent:t,current:n,items:a,setStepData:s,stepData:i}=e;const c=a[n],{formData:d}=(0,l.useFormContext)();return(0,o.jsxs)(r.Space,{className:"full-space",direction:"vertical",children:[(0,o.jsx)(r.Steps,{current:n,onChange:e=>{s((t=>{const n=t.slice(0);return n[e]=d,n})),t(e)},items:a}),c.children]})},c=()=>{const[e,t]=(0,s.useState)([]),[n,a]=(0,s.useState)(0);return r=>{var s;let{items:c,formProps:d}=r;const u=n===c.length-1;return{stepData:e,formProps:Object.assign({},d,{data:Object.assign({},null===(s=d.data)||void 0===s?void 0:s[n],e[n]),onSubmit:r=>{const s=e.slice(0);if(s[n]=r,t(s),u)return null===d||void 0===d?void 0:d.onSubmit(e);a(n+1)}}),children:(0,o.jsx)(i,{items:c,current:n,setCurrent:a,stepData:e,setStepData:t}),footerButtons:[{children:"\u53d6\u6d88",ButtonComponent:l.CancelButton},{type:"primary",children:u?"\u4fdd\u5b58":"\u4e0b\u4e00\u6b65",ButtonComponent:l.SubmitButton,autoClose:!1}]}}},d=e=>{const t=c(),{footerButtons:n,children:r,formProps:s}=t(e);return(0,o.jsx)(a.Ay,{...e,formProps:s,footerButtons:n,children:r})},u=()=>{const e=(0,a.Vl)(),t=c();return n=>{const{footerButtons:a,children:r,formProps:s}=t(n);return e({...n,formProps:s,footerButtons:a,children:r})}},p=e=>{let{modalProps:t,...n}=e;const r=c(),{footerButtons:s,children:l,formProps:i}=r(t);return(0,o.jsx)(a.W6,{...n,modalProps:Object.assign({},t,{formProps:i,footerButtons:s,children:l})})}},46732:(e,t,n)=>{n.d(t,{A:()=>d,K:()=>c});var a=n(75363),r=n(73884),s=n(98434),l=n(47094),o=n(70579);const i=(0,r.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const n=(0,r.useContext)(i),c=(0,s.useGroup)();return n&&(0,o.jsx)(a.default,{className:l.A["helper-guide-field"],name:n+"-"+(c.name?c.name+"-":"")+t})}},85846:(e,t,n)=>{n.d(t,{A:()=>y});var a=n(73884),r=n(55199),s=n(58407),l=n(64671),o=n(1454),i=n(98434),c=n(2196),d=n(83136),u=n.n(d),p=n(55431),m=n(58609),h=n(33097),f=n.n(h),g=n(47094),_=n(70579);const x=(0,m.createWithIntl)({moduleName:"FormInfo",importMessages:p.A})((e=>{let{title:t,addText:n,minLength:o,isUnshift:d,maxLength:p,defaultLength:h,label:x,name:y,beforeAdd:v,afterDelete:A,column:j,list:N,listRender:b,itemTitle:C,outer:w,renderChildren:S,className:P,important:F,deleteButtonProps:I}=e;const k=(0,a.useRef)(null),T=(0,i.useFormContext)(),{formData:M}=T,E=!(p&&p<=f()(M,"".concat(y,".length"),0)),{formatMessage:O}=(0,m.useIntl)({moduleName:"FormInfo"}),R=()=>{"function"===typeof v&&!1===v(y,T,{isUnshift:d,group:k.current})||k.current.onAdd({isUnshift:d})};return(0,_.jsxs)(_.Fragment,{children:[(0,a.cloneElement)(w,{title:t,addText:n,className:u()(P,g.A["list-part"]),allowAdd:d&&E,add:R},S((0,_.jsx)(i.GroupList,{name:y,defaultLength:h,ref:k,children:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];const[i,{index:d,onRemove:p,length:h}]=n,f={key:i,column:j,list:"function"===typeof N?N(...n,T):N,title:"function"===typeof C?C({index:d,key:i,onRemove:p}):C,groupArgs:n,extra:(0,_.jsx)(m.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>o&&o>=h?null:(0,_.jsx)(s.default,{danger:!0,className:"btn-no-padding",message:O({id:"delConfirm"},{name:x||t}),type:"link",onClick:()=>{p(i),A&&A(...n,T)},...Object.assign({},I),children:null!==I&&void 0!==I&&I.children?null===I||void 0===I?void 0:I.children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l.default,{type:"icon-shanchu"}),e]})})})};return(0,_.jsxs)("div",{className:u()(g.A["list-item"],{[g.A["is-important"]]:F}),children:["function"===typeof b?b(f):(0,_.jsx)(c.A,{...f,className:g.A["list-item-part"],gap:16}),(0,_.jsx)(r.Divider,{})]},i)}}))),!d&&E?(0,_.jsx)(m.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsxs)(r.Button,{onClick:R,children:[(0,_.jsx)(l.default,{type:"icon-tianjia"}),n||e]})}):null]})}));x.defaultProps={minLength:0,isUnshift:!0,defaultLength:1,outer:(0,_.jsx)((e=>{let{add:t,addText:n,className:a,allowAdd:s,...i}=e;return(0,_.jsx)(o.default.Part,{...i,className:a,extra:s&&(0,_.jsx)(m.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsxs)(r.Typography.Text,{className:g.A["list-btn"],onClick:t,children:[(0,_.jsx)(l.default,{type:"icon-tianjia"}),n||e]})})})}),{}),renderChildren:e=>e};const y=x},18936:(e,t,n)=>{n.d(t,{A:()=>E});const a={"ant-tag":"style_ant-tag__7ct2q__0pAcf",overlay:"style_overlay__CXfU5__0pAcf",input:"style_input__+OpvV__0pAcf","is-disabled":"style_is-disabled__uX4qq__0pAcf","input-icon":"style_input-icon__E3NjK__0pAcf",large:"style_large__vMozz__0pAcf",small:"style_small__ubqQ+__0pAcf","input-inner":"style_input-inner__sY-6k__0pAcf","input-custom":"style_input-custom__Kxq3n__0pAcf","display-content":"style_display-content__qA1jn__0pAcf","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__0pAcf","selected-tag":"style_selected-tag__BZsMM__0pAcf","selected-tag-list":"style_selected-tag-list__As0ho__0pAcf","selected-tag-inner":"style_selected-tag-inner__2NH59__0pAcf","text-inner":"style_text-inner__Bq2Ji__0pAcf",placeholder:"style_placeholder__odotY__0pAcf","is-modal":"style_is-modal__4cj8L__0pAcf","overlay-content":"style_overlay-content__kpGRn__0pAcf"};var r=n(74981);const{context:s,useContext:l,Provider:o,Consumer:i}=(0,r.A)();var c=n(73884),d=n(10986),u=n.n(d),p=n(87558),m=n(33097),h=n.n(m),f=n(55199),g=n(83136),_=n.n(g),x=n(3382),y=n(64671),v=n(79686),A=n.n(v),j=n(41740),N=n.n(j),b=n(74065),C=n.n(b),w=n(17342),S=n(70579);const P=e=>{let{maxLength:t,single:n,setValue:a,value:r,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),r):e)},F=e=>{let{single:t,value:n,mapping:r,onClose:s}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,S.jsx)("span",{className:a["text-inner"],children:h()(r.get(n[0]),"label")||n[0]}):n.map((e=>{const t=r.get(e);return(0,S.jsx)(f.Tag,{className:a["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),s(e,t)},children:(0,S.jsx)("span",{className:a["tag-inner"],children:h()(t,"label")||e})},e)})):null},I=(0,c.forwardRef)(((e,t)=>{let{value:n,onChange:r,extra:s,showSelectedTag:l,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n);m.current=n;const[h,g]=(0,c.useState)(!1),{message:_}=f.App.useApp(),y=P({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:_.error});return(0,c.useEffect)((()=>{h&&p(m.current)}),[h]),(0,c.useImperativeHandle)(t,(()=>({modalOpen:()=>{g(!0)},close:()=>{g(!1)}}))),(0,S.jsx)(x.default,{...d,open:h,onConfirm:()=>{r(u)},onClose:()=>{g(!1)},footer:(l||s)&&(0,S.jsxs)(f.Space,{direction:"vertical",className:a["overlay-footer"],children:[s&&(0,S.jsx)("div",{className:a["overlay-footer-extra"],children:s}),l&&o({value:u,setValue:y})]}),children:"function"===typeof i?i({value:u,setValue:y}):i})})),k=(0,c.forwardRef)(((e,t)=>{let{value:n,setValue:r,children:s,renderSelectedContent:l,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,...g}=e;const[_,x]=(0,c.useState)(!1);return(0,c.useImperativeHandle)(t,(()=>({close:()=>{x(!1)}})),[]),(0,S.jsx)(f.Popover,{...g,open:_,onOpenChange:x,overlayClassName:a.overlay,arrow:!1,content:(0,S.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:a["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,S.jsx)("div",{className:a["overlay-inner"],children:"function"===typeof s?s({value:n,setValue:e=>{(!u||n[0]!==e[0])&&r(e),u&&x(!1)}}):s}),(o||p)&&(0,S.jsxs)("div",{className:a["overlay-footer"],children:[p&&(0,S.jsx)("div",{className:a["overlay-footer-extra"],children:p}),o&&l({value:n,setValue:r})]})]}),trigger:"click",placement:i,children:(0,S.jsx)("div",{className:a["input-inner"],children:d})})})),T=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,...r}=e;const[s,o]=(0,c.useState)(!1),i=(0,c.useRef)(null),d=(0,c.useRef)(null),u=l(),{valueState:p,mapping:m,props:h}=u,[g,x]=p,{single:v,placement:A,getPopupContainer:j,placeholder:N,isPopup:b,disabled:C,showSelectedTag:P,extra:T,inputContent:M}=h,E=(0,c.useRef)(r);E.current=r,(0,c.useEffect)((()=>{t(Object.assign({},E.current,{data:r.data,isComplete:r.isComplete}))}),[r.data,t,r.isComplete]);const O=F({single:v,value:g,mapping:m,onClose:e=>{x((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}}),R=e=>{let{value:t,setValue:n}=e;return(0,S.jsxs)(f.Space,{className:a["selected-tag"],align:"center",wrap:!0,children:[(0,S.jsxs)("div",{children:["\u5df2\u9009",!h.single&&Number.isInteger(h.maxLength)&&h.maxLength>0?"(".concat(t.length,"/").concat(h.maxLength,")"):"",":"]}),(0,S.jsx)(w.A,{className:a["selected-tag-list"],children:(0,S.jsx)("div",{className:a["selected-tag-inner"],children:F({value:t,mapping:m,onClose:e=>{n((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}})})})]})},L=M?M(u):(0,S.jsxs)(f.Space,{className:a["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,S.jsx)("div",{children:O||(0,S.jsx)("span",{className:a.placeholder,children:N})}),s&&g&&g.length>0&&!C?(0,S.jsx)(y.default,{className:_()(a.close,a["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,S.jsx)(y.default,{className:_()(a["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return b?(0,S.jsx)(k,{ref:d,overlayWidth:h.overlayWidth,value:g,setValue:x,single:v,inputContent:L,extra:"function"===typeof T?T({close:()=>d.current.close(),context:u}):T,renderSelectedContent:R,showSelectedTag:P,trigger:"click",placement:A,getPopupContainer:j,children:h.children}):(0,S.jsxs)("div",{className:a["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,S.jsx)(I,{size:h.modalSize,ref:i,single:h.single,maxLength:h.maxLength,disabledScroller:!0,wrapClassName:_()(a.overlay,a["is-modal"],n),title:h.placeholder,value:g,onChange:x,extra:"function"===typeof T?T({close:()=>i.current.close(),context:u}):T,showSelectedTag:P,renderSelectedContent:R,children:h.children}),L]})})),M=e=>{let{api:t,className:n,displayItems:r,wrapClassName:s,...l}=e;const[i,d]=(0,c.useState)(""),[p,m]=(0,c.useState)(new Map(r.map((e=>[e.value,e])))),[g,x]=(0,c.useState)({}),{message:y}=f.App.useApp(),v=e=>{const t=e.filter((e=>p.get(e.value)!==e));0!==t.length&&m((e=>{const n=N()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},j=e=>((e,t,n)=>"all"!==n?e:(t(e),e.map((e=>e.value))))(l.single?A()(e)?[]:[e]:e||[],v,l.valueType),[b,w]=u()(Object.assign({},l,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map((e=>t.get(e))))(e,p,l.valueType);l.onChange&&l.onChange(l.single?C()(t):t)}},"value"in l?{value:j(l.value)}:{defaultValue:j(l.defaultValue)})),F=P({maxLength:l.maxLength,single:l.single,setValue:w,value:b,message:y.error});return(0,S.jsx)(o,{value:{mapping:p,searchText:i,setSearchText:d,appendMapping:v,setItems:e=>{g.setData(e),v(h()(l.dataFormat(e),"list",[]))},fetchApi:g,valueState:[b,F],props:l},children:(0,S.jsx)("div",{className:_()(a["input".concat(l.inputContent&&"function"===typeof l.inputContent?"-custom":"")],n),children:(0,S.jsx)(T,{...t,wrapClassName:s,loading:null,setFetchApi:x,onRequestSuccess:e=>{v(h()(l.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};M.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},M.useContext=l;const E=M},97056:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(85846),r=n(83560),s=n(55199),l=n(41740),o=n.n(l),i=n(73884),c=n(83136),d=n.n(c),u=n(47094),p=n(70579);const m=(0,i.forwardRef)(((e,t)=>{const[n,a]=(0,i.useState)(new Map);return(0,i.useImperativeHandle)(t,(()=>e=>{setTimeout((()=>{a((t=>{if(t.has(e.key))return t;const n=o()(t);return n.set(e.key,e.props),n}))}))}),[]),(0,p.jsxs)(s.Row,{wrap:!1,className:u.A["table-list-header"],style:{"--col-width":"".concat(100/n.size,"%")},children:[Array.from(n).map((e=>{let[t,{label:n,rule:a}]=e;return(0,p.jsx)(s.Col,{className:d()({[u.A["is-req"]]:0===(a||"").split(" ").indexOf("REQ")}),children:n},t)})),(0,p.jsx)(s.Col,{className:u.A["table-list-extra"]})]})})),h=e=>{let{list:t,className:n,...l}=e;const o=(0,i.useRef)(null);return(0,p.jsx)(a.A,{...l,className:d()(n,u.A["table-list"]),list:t,renderChildren:e=>(0,p.jsxs)("div",{className:u.A["table-list-inner"],children:[(0,p.jsx)(m,{ref:o}),e]}),listRender:e=>{let{list:t,groupArgs:n,extra:a,key:l}=e;return(0,p.jsxs)(s.Row,{wrap:!1,align:"top",style:{"--col-width":"".concat(100/t.length,"%")},children:[(0,p.jsx)(r.A,{list:t,groupArgs:n,itemRender:(e,t)=>(o.current(t),(0,p.jsx)(s.Col,{className:u.A["table-list-field"],flex:1,children:e}))}),(0,p.jsx)(s.Col,{className:u.A["table-list-extra"],children:a})]},l)}})}},1904:(e,t,n)=>{n.d(t,{A:()=>i,N:()=>c});var a=n(98434),r=n(36);const{useOnChange:s,useDecorator:l}=a.hooks,o=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.AddressSelectField);o.Field=r.AddressSelectField,o.AddressEnum=r.AddressSelectField.AddressEnum,o.createAddressApi=r.AddressSelectField.createAddressApi,o.withAddressApi=r.AddressSelectField.withAddressApi;const i=o,c=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(r.AddressInputField);c.Field=r.AddressInputField},30096:(e,t,n)=>{n.d(t,{Ay:()=>d});var a=n(98434),r=n(36);const{useOnChange:s}=a.hooks,l=e=>{const t=t=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=l(r.UserField),i=l(r.TableField),c=l(r.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:n}=e;return l((0,r.createListField)({renderList:t,defaultProps:n}))},c.User=o,c.Table=i;const d=c},96339:(e,t,n)=>{n.d(t,{A:()=>z});var a=n(73884),r=n(29574),s=n(40438),l=n(76329),o=n(3382),i=n(64671),c=n(55199),d=n(53202),u=n.n(d),p=n(33097),m=n.n(p),h=n(83136),f=n.n(h),g=n(51941),_=n(98434),x=n(34677),y=n.n(x);const v="style_upload-btn__-6XtP__0pAcf",A="style_square__UPkfA__0pAcf",j="style_is-loading__wx6Pd__0pAcf",N="style_upload-btn-tips__YtxWz__0pAcf",b="style_drop-tips__N-v59__0pAcf",C="style_preview-area__aV3SN__0pAcf";var w=n(18411),S=n(58609),P=n(55431),F=n(70579);const{useOnChange:I}=_.hooks,k=s.default.Avatar,T="FormInfo",M=(0,r.Ay)((e=>{let{className:t,icon:n,loading:a,value:r,gender:s,width:l,height:o,children:d,shape:u,defaultAvatar:p,apis:h}=e;const g=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(k,{id:m()(r,"id"),gender:s,width:64*l/o,height:64,shape:u,defaultAvatar:p,apis:h}),(0,F.jsx)("div",{className:N,children:n||(0,F.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),d]});return(0,F.jsx)("div",{className:f()(t,v,{[j]:a,[A]:"square"===u||!(l&&l===o)}),style:{width:64*l/o},children:a?(0,F.jsx)(c.Spin,{children:g}):g})})),E=e=>{let t=e.split(","),n=t[1].substring(0,t[1].length-2),a=t[0].match(/:(.*?);/)[1],r=atob(n),s=r.length,l=new Uint8Array(s);for(;s--;)l[s]=r.charCodeAt(s);return new Blob([l],{type:a})},O=(0,a.forwardRef)(((e,t)=>{let{image:n,width:s,height:l,borderRadius:o,preview:d,fileSize:p,accept:m,renderTips:h,getApi:f,shape:_,border:x,...y}=e;const v=(0,S.useIntl)({moduleName:T}),[A,j]=(0,a.useState)(0),N=(0,a.useRef)(null),[w,P]=(0,a.useState)(n),[I,k]=(0,a.useState)(1),[M,O]=(0,a.useState)(0),[R,L]=(0,a.useState)(""),D=(0,a.useRef)(null);(0,a.useLayoutEffect)((()=>{j(2*N.current.clientWidth/3)}),[]),f({getImage:()=>{const e=D.current.getImage(),t=document.createElement("canvas"),n=t.getContext("2d");return t.width=s,t.height=l,n.drawImage(e,0,0,t.width,t.height),new window.File([E(t.toDataURL())],w.name,{type:w.type})}});const z=()=>{L(D.current.getImage().toDataURL())},B=(0,g.useDebouncedCallback)(z,500);return(0,F.jsx)("div",{ref:N,children:(0,F.jsxs)(c.Row,{wrap:!1,align:"middle",children:[(0,F.jsx)(c.Col,{span:d?16:24,children:A&&(0,F.jsxs)(c.Space,{direction:"vertical",children:[(0,F.jsx)(u(),{...y,ref:D,image:w,scale:I,rotate:M,width:A-2*x,height:l*A/s-2*x*l/s,border:x,color:[0,0,0,.6],borderRadius:o*A/s,onImageReady:z,onImageChange:B}),(0,F.jsx)("div",{className:b,children:h("".concat(v.formatMessage({id:"PictureFormat"})).concat(m.map((e=>e.replace(/^\./,""))).join(" ")," ").concat(v.formatMessage({id:"ImageSize"})).concat(v.formatMessage({id:"NotExceeding"},{size:p})),{accept:m,fileSize:p})}),(0,F.jsxs)(c.Row,{gutter:14,align:"middle",children:[(0,F.jsx)(c.Col,{children:(0,F.jsx)(c.Tooltip,{title:v.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{O((e=>(e-90)%360))}})})}),(0,F.jsx)(c.Col,{children:(0,F.jsx)(c.Tooltip,{title:v.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-chongman",onClick:()=>{k(1)}})})}),(0,F.jsx)(c.Col,{flex:1,children:(0,F.jsx)(c.Slider,{tooltip:{placement:"bottom",formatter:()=>v.formatMessage({id:"Size"})},value:I,step:.05,min:.2,max:3,onChange:k})}),(0,F.jsx)(c.Col,{children:(0,F.jsx)(r.FI,{accept:m,onChange:e=>{e[0].size>1024*p*1024?c.message.error(v.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:p})):(O(0),k(1),P(e[0]))},children:(0,F.jsx)(S.FormattedMessage,{id:"ReUpload",moduleName:T})})})]})]})}),d&&(0,F.jsx)(c.Col,{span:8,children:(0,F.jsx)("div",{className:C,children:(0,F.jsxs)(c.Space,{direction:"vertical",children:[(0,F.jsx)(c.Avatar,{src:R,shape:_,style:{width:A/2-36,height:(A/2-36)*l/s}}),(0,F.jsx)("div",{style:{textAlign:"center"},children:(0,F.jsx)(S.FormattedMessage,{id:"Preview",moduleName:T})})]})})})]})})}));O.defaultProps={border:1};const R=()=>{const e=(0,o.useModal)();return t=>{const{image:n,width:a,height:r,borderRadius:s,getApi:l,preview:o,fileSize:i,accept:c,renderTips:d,border:u,dropModalSize:p,...m}=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t);return e({...m,size:p,children:(0,F.jsx)(O,{preview:o,fileSize:i,accept:c,getApi:l,renderTips:d,width:a,height:r,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:s,image:n,border:u,scale:1,rotate:0})})}},L=e=>{let{value:t,gender:n,fileSize:r,accept:s,openEditor:o,apis:i,renderTips:d,onChange:u,shape:p,width:m,height:h,title:f,border:g,icon:_,dropModalSize:x,defaultAvatar:v}=e;const[A,j]=(0,a.useState)(!1),{apis:N}=(0,l.usePreset)(),b=y()({},N,i),{ossUpload:C}=b,w=(0,a.useRef)(null),P=R(),I=(0,S.useIntl)({moduleName:T});return(0,F.jsx)(M,{value:t,gender:n,accept:s,width:m,height:h,shape:p,icon:_,loading:A,defaultAvatar:v,apis:b,onChange:e=>{if(e[0].size>1024*r*1024)return void c.message.error(I.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:r}));const t=e=>(j(!0),C({file:e}).then((e=>{let{data:t}=e;0===t.code?u(t.data):c.message.error(I.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))})).finally((()=>{j(!1)})));o?P({image:e[0],width:m,height:h,title:f,shape:p,border:g,dropModalSize:x,getApi:e=>w.current=e,fileSize:r,accept:s,renderTips:d,onConfirm:()=>{t(w.current.getImage())}}):t(e[0])}})};L.defaultProps={defaultAvatar:w.A,openEditor:!0,fileSize:2,width:200,height:200,dropModalSize:"small",border:1,title:(0,F.jsx)(S.IntlProvider,{importMessages:P.A,moduleName:"FormInfo",children:(0,F.jsx)(S.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),accept:[".jpg",".png",".jpeg"],renderTips:e=>e,shape:"circle"};const D=e=>I(e)(L);D.defaultProps={},D.Field=D,D.useDropModal=R;const z=D},83230:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(98434),r=n(36);const{useOnChange:s}=a.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.CascaderField);l.Field=r.CascaderField,l.createTreeUtils=r.createTreeUtils;const o=l},81026:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(36),r=n(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.FunctionSelectField);l.Field=a.FunctionSelectField,l.Enum=a.FunctionSelectField.Enum;const o=l},78756:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(36),r=n(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.IndustrySelectField);l.Field=a.IndustrySelectField,l.Enum=a.IndustrySelectField.Enum;const o=l},15209:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(55199),r=n(10986),s=n.n(r),l=n(13050),o=n(70579);const i=e=>{let{...t}=e;const[n,r]=s()(t);return(0,o.jsx)(a.Input,{...t,value:n,onChange:e=>{r(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},c=(0,l.createWithRemoteLoader)({modules:["FormInfo@formModule"]})((e=>{let{remoteModules:t,...n}=e;const[a]=t,{hooks:r}=a,{useDecorator:s}=r;return s(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||"")},n))(i)}));c.field=i;const d=c},92328:(e,t,n)=>{n.d(t,{A:()=>v});var a=n(10986),r=n.n(a),s=n(98434),l=n(55199),o=n(69484);const i="style_money-input__Pyur7__0pAcf",c="style_money-description__9pFk4__0pAcf";var d=n(83136),u=n.n(d),p=n(34677),m=n.n(p),h=n(73884),f=n(70579);const{isNotEmpty:g}=s.util,{useOnChange:_}=s.hooks,x=e=>{let{chineseEmpty:t,className:n,showError:a,errorDesc:s,transformMoneyToChinese:d,onBlur:p,moneyFormat:_,...x}=e;const[y,v]=(0,h.useState)(""),[A,j]=r()(x),N=m()({controls:!1,precision:2,addonAfter:"\u5143"},x,{max:g(x.max)?x.max>o.e?o.e:x.max:o.e});return(0,f.jsxs)("div",{className:u()(n,"money-input",i),children:[(0,f.jsx)(l.InputNumber,{...N,status:y,formatter:_?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=_?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return g(t)?(Number(t)>Number(N.max)||g(N.min)&&Number(t)<Number(N.min))&&v("error"):v(""),g(t)?Number(t):null},onChange:e=>{j(e)},onBlur:e=>{p&&p(e,v)}}),(0,f.jsx)("div",{className:u()(c),children:"error"===y&&a?s:g(A)?(0,o.A)(d?d(A):A):t})]})},y=e=>_(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(x);y.Field=x,y.toChineseCharacter=o.A;const v=y},88893:(e,t,n)=>{n.d(t,{N:()=>y,A:()=>v});var a=n(88701),r=n(55199),s=n(98434),l=n(78491),o=n.n(l),i=n(10986),c=n.n(i),d=n(33097),u=n.n(d);const p={"country-select":"style_country-select__Ztf-V__0pAcf","flag-img":"style_flag-img__RGhcM__0pAcf"};var m=n(13050),h=n(70579);const{useDecorator:f}=s.hooks,g=(0,m.createWithRemoteLoader)({modules:["components-iconfont:CountyFlag"]})((e=>{let{remoteModules:t,value:n,onChange:a}=e;const[s]=t;return(0,h.jsx)(s,{children:e=>{let{list:t}=e;return(0,h.jsx)(r.Select,{popupMatchSelectWidth:300,className:p["country-select"],value:n||"CN",onChange:a,placeholder:"\u8bf7\u9009\u62e9\u56fd\u5bb6",showSearch:!0,filterOption:(e,t)=>t.name.indexOf(e)>-1,optionLabelProp:"code",options:t.map((e=>{let{country_name_cn:t,country_code:n,ab:a}=e;return{value:a,code:"(+".concat(n,")"),name:t,label:(0,h.jsxs)(r.Space,{align:"center",children:[(0,h.jsx)("span",{className:p["country-name"],children:t}),(0,h.jsxs)("div",{children:["(+",n,")"]})]})}}))})}})})),_=e=>{const{className:t,onBlur:n,name:s,...l}=e,[i,d]=c()(e),p=o()(n||(()=>{})),m=e=>new a.AsYouType(u()(e,"code","CN")).input(u()(e,"value",""));return(0,h.jsx)("div",{className:t,ref:p,children:(0,h.jsx)(r.Input,{...l,addonBefore:(0,h.jsx)(g,{value:u()(i,"code","CN"),onChange:e=>{d&&d(Object.assign({},i,{code:e,value:m({code:e,value:u()(i,"value","")})})),n&&n()}}),value:u()(i,"value",""),onChange:e=>{d&&d(Object.assign({code:"CN"},i,{value:e.target.value,code:u()(i,"code","CN")}))},onBlur:e=>{d&&d(Object.assign({code:"CN"},i,{value:m({value:e.target.value,code:u()(i,"code","CN")})})),n&&n()}})})},x=e=>{let{rule:t,...n}=e;const a=f(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||""),rule:(e=>{const t=(e||"").split(" "),n=t.indexOf("REQ");return n>-1?t.splice(n+1,0,"PHONE_NUMBER"):t.unshift("PHONE_NUMBER"),t.join(" ")})(t)},n));return a(_)};x.Field=_,x.defaultProps={},x.format=e=>{let{code:t,value:n}=e;const r=t?(0,a.getCountryCallingCode)(t):null;return r&&n?"+".concat(r," ").concat(n):""},x.parsePhoneNumber=e=>{let{phoneNumber:t}=e;const{country:n,countryCallingCode:r,nationalNumber:s}=t?(0,a.parsePhoneNumber)(t):null;return s&&t?{country:n,countryCallingCode:r,nationalNumber:s}:""};const y=async(e,t)=>{let{field:a}=t;if((a.rule||"").split(" ").indexOf("REQ")>-1&&!u()(e,"value"))return{result:!1,errMsg:"%s\u4e0d\u80fd\u4e3a\u7a7a"};if(!u()(e,"value"))return{result:!0};return{result:await Promise.all([n.e(8481),n.e(6900)]).then(n.bind(n,6900)).then((t=>{let{isValidPhoneNumber:n}=t;return n(u()(e,"value",""),{defaultCountry:u()(e,"code","CN"),extract:!0})})),errMsg:"%s\u683c\u5f0f\u4e0d\u6b63\u786e"}},v=x},6179:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(55199),r=n(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({placeholder:"\u8bf7\u9009\u62e9".concat(e.label||"")},e))(a.Rate);l.defaultProps={fieldName:"rate"};const o=l},36972:(e,t,n)=>{n.d(t,{A:()=>F});var a=n(73884),r=n(98434),s=n(78491),l=n.n(s),o=n(55199);const i="style_salary__sUOtT__0pAcf",c="style_salary-type__Sl1LC__0pAcf",d="style_input-number__eoEZr__0pAcf",u="style_full__NPqJm__0pAcf",p="style_input-group__toLB7__0pAcf",m="style_input-group-no-mb__C4nzh__0pAcf";var h=n(58609),f=n(55431),g=n(48731),_=n(10986),x=n.n(_),y=n(21079),v=n(70579);const{field:A}=r.Select.Fetch,{useDecorator:j,useUIDecorator:N}=r.hooks,b=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},C=e=>{let{children:t,isError:n}=e;return(0,v.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(n?"is-error":""),children:(0,v.jsx)("div",{className:"react-form__field-main",children:(0,v.jsx)("div",{className:"react-form__field-input",children:(0,a.cloneElement)(t,{className:"react-form__field-component"})})})})},w=e=>{let{getPopupContainer:t,onBlur:n,api:a,isRange:r=!0,placeholder:s,disabled:f,showMonth:_,remindUnit:j,req:N,...w}=e;const[S,P]=x()(w),{formatMessage:F}=(0,h.useIntl)({moduleName:"FormInfo"}),I=F({id:"defaultSelectPlaceholder"},{label:""}),k=F({id:"defaultInputPlaceholder"},{label:""}),T=[6].indexOf((0,y.get)(S,"type"))>-1,M=1===(0,y.get)(S,"type"),E=7===(0,y.get)(S,"type"),O=e=>{if(e)return T?e/1e4:e},R=l()(n||(()=>{}));return(0,v.jsx)("div",{ref:R,className:i,children:(0,v.jsxs)(o.Row,{wrap:!1,gutter:10,children:[(0,v.jsx)(o.Col,{children:(0,v.jsx)(A,{className:c,...a,value:(0,y.get)(S,"type"),onChange:e=>{P&&P(Object.assign({},M?{}:S,{type:e,min:"",max:""}))},placeholder:s||I,getPopupContainer:t,disabled:f,children:e=>{let{data:t}=e;return{options:t||[]}}})}),M?null:(0,v.jsxs)(o.Col,{flex:1,children:[r&&(0,v.jsxs)(o.Row,{className:j&&[5,6].includes(null===S||void 0===S?void 0:S.type)?p:m,wrap:!1,children:[(0,v.jsx)(o.Col,{flex:1,children:(0,v.jsx)(C,{isError:!(0,y.get)(S,"min")&&N,children:(0,v.jsx)(o.InputNumber,{disabled:f,placeholder:k,formatter:b,value:O((0,y.get)(S,"min")),style:{textAlign:"center"},onChange:e=>{P(Object.assign({},S,{min:T?1e4*e:e}))},description:j&&[5,6].includes(null===S||void 0===S?void 0:S.type)?(0,v.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,v.jsx)(g.default,{name:null===S||void 0===S?void 0:S.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",T?F({id:"thousand"}):E?"":F({id:"yuan"})]}):null})})}),(0,v.jsx)(o.Col,{children:(0,v.jsx)(o.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,v.jsx)(o.Col,{flex:1,children:(0,v.jsx)(C,{isError:!(0,y.get)(S,"max")&&N,children:(0,v.jsx)(o.InputNumber,{disabled:f,placeholder:k,formatter:b,value:O((0,y.get)(S,"max")),style:{textAlign:"center"},addonAfter:T?F({id:"thousand"}):E?"":F({id:"yuan"}),onChange:e=>{P(Object.assign({},S,{max:T?1e4*e:e}))}})})}),5===(0,y.get)(S,"type")&&_&&(0,v.jsx)(o.Col,{children:(0,v.jsxs)("span",{className:(0,y.get)(S,"max")&&(0,y.get)(S,"min")&&!(0,y.get)(S,"month")&&N?"error":"",children:[(0,v.jsx)("span",{className:d,children:"X"}),(0,v.jsx)(o.InputNumber,{min:12,disabled:f,value:(0,y.get)(S,"month"),onChange:e=>{P(Object.assign({},S,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!r&&!E&&(0,v.jsx)(o.InputNumber,{disabled:f,min:0,max:1e8,placeholder:k,className:u,formatter:b,value:O((0,y.get)(S,"max")),style:{textAlign:"center"},addonAfter:T?F({id:"thousand"}):E?"":F({id:"yuan"}),onChange:e=>{P(Object.assign({},S,{max:T?1e4*e:e}))}}),!r&&E&&(0,v.jsx)(o.Input,{disabled:f,placeholder:k,className:u,onChange:e=>{P(Object.assign({},S,{max:e.target.value}))},value:(0,y.get)(S,"max"),style:{textAlign:"center"}})]})]})})},S=e=>(0,v.jsx)(h.IntlProvider,{moduleName:"FormInfo",importMessages:f.A,children:(0,v.jsx)(w,{...e})});S.defaultProps={api:{loader:()=>[{value:1,label:"\u9762\u8bae"},{value:2,label:"\u65f6\u85aa"},{value:3,label:"\u65e5\u85aa"},{value:4,label:"\u5468\u85aa"},{value:5,label:"\u6708\u85aa"},{value:6,label:"\u5e74\u85aa"}]},defaultValue:{type:5,min:"",max:"",month:12}};const P=e=>{var t;return j({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(S)};P.Field=S;const F=P},50192:(e,t,n)=>{n.d(t,{A:()=>x});var a=n(87558),r=n(83136),s=n.n(r);const l="style_table__A9nBK__0pAcf";var o=n(21079),i=n(27777),c=n(98434),d=n(10986),u=n.n(d),p=n(73884),m=n(70579);const{useOnChange:h}=c.hooks,f=(0,a.withFetch)((e=>{let{...t}=e;const[n,a]=u()(t),r=["isLoading","isComplete","data","requestParams","error","send","refresh","reload","loadMore","setData"],c=(0,o.pick)(t,r),d=(0,o.omit)(t,r),{rowKey:h="id",columns:f,className:g,innerName:_,headerRender:x,footerRender:y}=d,v=t.dataFormat(c.data),A=(e,t,n)=>{let{current:r,rowKeyValue:s,dataIndex:l}=n;const o={},i=e.slice(0).map((e=>{if(e[h]===s)return o[e[h]]={...e,[l]:r},{...e,[l]:r};{const n=t[e[h]];return o[e[h]]=Object.assign({},e,n),Object.assign({},e,n)}})),d={pageData:i,totalCount:i.length};c.setData(d),a&&a(o)},j=(0,p.useRef)(null);return j.current=A,(0,p.useEffect)((()=>{v.list.every((e=>{const t=n[e[h]]||{};return Object.keys(e).every((e=>t.hasOwnProperty(e)))}))&&Object.keys(n).length===v.list.length||!c.isComplete||j.current(v.list,n,{})}),[c.isComplete,n,v.list,h]),(0,m.jsxs)("div",{children:[x&&x(c),(0,m.jsx)(i.Table,{...d,className:s()(l,g),rowKey:h,dataSource:v.list,pagination:!1,columns:f.map((e=>{const t={...e};return t.dataIndex?Object.assign({},t,{render:(e,a,r)=>{const s=!t.editable||("function"===typeof t.editable?t.editable(e,a,r,v.list):t.editable),l=a[h],i=n[l],d=(0,o.get)(i,t.dataIndex)||e;if(s&&t.field){var u,p;if(null!==(u=t.field)&&void 0!==u&&u.render)return(0,m.jsx)(m.Fragment,{children:t.field.render({value:d,name:"".concat(_,".").concat(l,".").concat(t.dataIndex),label:" ",labelHidden:t.labelHidden,onChange:function(){for(var e,a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];const o=null!==(e=t.field)&&void 0!==e&&e.getValue?t.field.getValue(r[0]):r[0];return A(v.list,n,{current:o,rowKeyValue:l,dataIndex:t.dataIndex}),t.field.onChange&&t.field.onChange(...r,c)}},a,r,c)});const e=null===(p=t.field)||void 0===p?void 0:p.type;return(0,m.jsx)(e,{...(0,o.omit)(t.field,["type","getValue"]),value:d,name:"".concat(_,".").concat(l,".").concat(t.dataIndex),label:" ",labelHidden:t.labelHidden,onChange:function(){for(var e,a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];const o=null!==(e=t.field)&&void 0!==e&&e.getValue?t.field.getValue(r[0]):r[0];return A(v.list,n,{current:o,rowKeyValue:l,dataIndex:t.dataIndex}),t.field.onChange&&t.field.onChange(...r,c)}})}return t.render?t.render(d,a,r):d}}):t}))}),y&&y(c)]})}));f.defaultProps={mergeList:(e,t)=>Object.assign({},t,{pageData:(e.pageData||[]).concat(t.pageData||[])}),dataFormat:e=>({list:e.pageData,total:e.totalCount})};const g=e=>{let{api:t,...n}=e;return(0,m.jsx)(f,{...n,...t})};g.defaultProps={api:{},value:{}};const _=e=>h(Object.assign({placeholder:"\u8bf7\u9009\u62e9".concat(e.label),innerName:e.name},e))(g);_.Field=g;const x=_},56259:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(89319),r=n(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{},e))(a.A);l.Field=a.A;const o=l},89099:(e,t,n)=>{n.d(t,{A:()=>A});var a=n(55199),r=n(83136),s=n.n(r),l=n(10986),o=n.n(l);const i="style_upload__t422Q__0pAcf",c="style_upload-list__Q9HDc__0pAcf",d="style_tips__3Gpnu__0pAcf";var u=n(64671),p=n(67390),m=n(98434),h=n(1488),f=n.n(h),g=n(29574),_=n(70579);const{useOnChange:x}=m.hooks,y=e=>{let{className:t,fileSize:n,maxLength:r,multiple:l,size:u,accept:m,children:h,renderTips:x,showUploadList:y,onSave:v,ossUpload:A,getPermission:j,...N}=e;const[b,C]=o()(N),w=b||[],{fileList:S,onFileSelected:P}=(0,g.lN)({multiple:l,onSave:v,ossUpload:A,fileSize:n,maxLength:r,value:w,onChange:C,concurrentCount:10}),F=[...S,...w],I=x("\u652f\u6301\u6269\u5c55\u540d".concat(m.map((e=>e.replace(/^\./,""))).join("\u3001"),",\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\u4e0d\u8d85\u8fc7").concat(n,"M\uff0c\u6700\u591a\u4e0a\u4f20").concat(r,"\u4e2a\u9644\u4ef6"),{fileSize:n,maxLength:r,accept:m});return(0,_.jsxs)(a.Space,{direction:"vertical",children:[(0,_.jsxs)(a.Space,{children:[(0,_.jsx)(g.Zi,{...f()(N,["value","onChange"]),size:u,multiple:l,accept:m,className:s()(i,t),onChange:P,children:h}),I&&(0,_.jsx)("div",{className:d,children:I})]}),y&&F.length>0&&(0,_.jsx)(p.List,{className:c,dataSource:F,infoItemRenders:[],getPermission:j||(e=>"delete"===e),apis:{onDelete:e=>{const t=w.slice(0),n=t.indexOf(e);n>-1&&t.splice(n,1),C(t)}}})]})};y.defaultProps={defaultValue:[],children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(u.default,{type:"icon-shangchuanfujian"}),"\u4e0a\u4f20\u9644\u4ef6"]}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30};const v=e=>x(e)(y);v.defaultProps={interceptor:"file-format"},v.Field=y;const A=v},10328:(e,t,n)=>{n.d(t,{A:()=>O,E:()=>R});var a=n(98434),r=n(30096),s=n(1904),l=n(83230),o=n(81026),i=n(78756),c=n(92328),d=n(88893),u=n(89099),p=n(96339),m=n(36972),h=n(15209),f=n(50192),g=n(6179),_=n(74529),x=n.n(_),y=n(73884),v=n(58609),A=n(33097),j=n.n(A),N=n(21079),b=n(46237),C=n(56259),w=n(70579);const S=e=>t=>{const n=x()(...e)((e=>{let{forwardedRef:n,...a}=e;return(0,w.jsx)(t,{...a,ref:n})})),a=(0,y.forwardRef)(((e,t)=>(0,w.jsx)(n,{...e,forwardedRef:t})));return Object.keys(t).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((e=>{a[e]=t[e]})),a},P=e=>t=>{let{placeholder:n,label:a,...r}=t;return(0,w.jsx)(v.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,w.jsx)(e,{...r,label:a,placeholder:n||t})})},F=e=>t=>{let{placeholder:n,label:a,...r}=t;return(0,w.jsx)(v.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,w.jsx)(e,{...r,label:a,placeholder:n||t})})},I=e=>t=>{const n=(0,a.useGroup)(),r=j()(n,"name"),s=(0,N.get)(n,"index"),l=(0,b.oc)();return l&&Array.isArray(l)&&l.length>0?l.map((n=>{if("string"===typeof n)return(0,y.createElement)(e,{...t,key:n});const{name:a,label:l,options:o}=n,i=j()(o,"ignore",[]),c=j()(o,"disabled",[]),d=j()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==r)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==s);if(i.length>0&&i.find(u))return null;if(d.length>0&&!d.find(u))return null;let p=Object.assign({},t,{name:j()(o,"nameTransform",((e,t)=>"".concat(e).concat(t)))(t.name,a),label:j()(o,"labelTransform",((e,t)=>e&&"".concat(e).concat(t)))(t.label,l)});return c.length>0&&c.find(u)&&(p.disabled=!0,p.rule=""),(0,y.createElement)(e,{...p,key:a})})):(0,w.jsx)(e,{...t})},k=S([I,P])(a.Input),T=S([I,P])(a.InputNumber);k.Password=S([I,P])(a.Input.Password);const M=S([I,F])(a.DatePicker);M.MonthPicker=S([I,F])(a.DatePicker.MonthPicker),M.RangePicker=S([I,F])(a.DatePicker.RangePicker),M.WeekPicker=S([I,F])(a.DatePicker.WeekPicker);const E=S([I,F])(a.TimePicker);E.RangePicker=S([I,F])(a.TimePicker.RangePicker);const O={Input:k,InputNumber:T,DatePicker:M,TimePicker:E,DatePickerToday:S([I])((e=>{let{placeholder:t,label:n,soFarText:r,...s}=e;const{formatMessage:l}=(0,v.useIntl)({moduleName:"FormInfo"});return(0,w.jsx)(a.DatePickerToday,{...s,label:n,placeholder:[l({id:"startDate"}),l({id:"endDate"})],soFarText:r||l({id:"soFarText"})})})),RadioGroup:S([I])(a.RadioGroup),CheckboxGroup:S([I])(a.CheckboxGroup),Rate:S([I])(g.A),TableInput:S([I])(f.A),SalaryInput:S([I])(m.A),TypeDateRangePicker:S([I])(C.A),MoneyInput:S([I])(c.A),PhoneNumber:S([I])(d.A),Upload:S([I])(u.A),Avatar:S([I])(p.A),FunctionSelect:S([I,F])(o.A),IndustrySelect:S([I,F])(i.A),Cascader:S([I,F])(l.A),AddressSelect:S([I,F])(s.A),AddressInput:S([I,F])(s.N),TreeSelect:S([I,F])(a.TreeSelect),ReactInputNumber:S([I,P])(a.InputNumber),InputUpperCase:S([I,P])(h.A),Select:S([I,F])(a.Select),TextArea:S([I,P])(a.TextArea),AdvancedSelect:S([I,F])(r.Ay)},R={createWithFieldDecorator:S,withInputDefaultPlaceholder:P,withSelectDefaultPlaceholder:F,withLang:I}},83799:(e,t,n)=>{n.d(t,{NI:()=>O,TQ:()=>d.A,JL:()=>E,eu:()=>_.A,vx:()=>u.A,lr:()=>H,s3:()=>G,lV:()=>r.A,d4:()=>p.A,ZN:()=>m.A,pd:()=>L,YI:()=>U,h2:()=>R,F0:()=>h.A,go:()=>f.A,tt:()=>I.A,lu:()=>x.A,l6:()=>B,N:()=>A.A,EY:()=>F,fs:()=>D,AG:()=>V,f7:()=>W,w5:()=>v.A,_O:()=>g.A,nk:()=>q});var a=n(98434),r=n(85696),s=n(58609),l=n(73884),o=n(30891),i=n(47094),c=n(30096),d=n(1904),u=n(83230),p=n(81026),m=n(78756),h=n(92328),f=n(88893),g=n(89099),_=n(96339),x=n(36972),y=n(15209),v=n(56259),A=n(50192),j=n(55199),N=n(10986),b=n.n(N),C=n(70579);const{useDecorator:w}=a.hooks,S=e=>{let{children:t,...n}=e;const[a]=b()(n);return(0,C.jsxs)(j.Typography.Text,{...n,children:[(0,C.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,C.jsx)(j.Input,{value:a})}),t||a]})},P=e=>w(e)(S);P.Field=S;const F=P;var I=n(6179),k=n(45053);const T=e=>{const t=(0,l.forwardRef)(((t,n)=>{let{placeholder:a,label:r,...l}=t;return(0,C.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,C.jsx)(e,{...l,ref:n,label:r,placeholder:a||t})})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},M=e=>{const t=(0,l.forwardRef)(((t,n)=>{let{placeholder:a,label:r,...l}=t;return(0,C.jsx)(s.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,C.jsx)(e,{...l,ref:n,label:r,placeholder:a||t})})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},E=M(c.Ay),O=M(d.N),R=T(y.A),L=T(a.Input);L.Password=T(a.Input.Password);const D=(z=a.TextArea,e=>{let{placeholder:t,label:n,className:a,...r}=e;return(0,C.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:e=>(0,C.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,C.jsx)(z,{...r,label:n,placeholder:t||e})})})});var z;const B=M(a.Select);B.Fetch=M(a.Select.Fetch),B.Fetch.field=a.Select.Fetch.field;const U=T(a.InputNumber),W=M(a.TreeSelect);W.Fetch=M(a.TreeSelect.Fetch),W.Fetch.field=a.TreeSelect.Fetch.field;const V=M(a.TimePicker);V.RangePicker=M(a.TimePicker.RangePicker);const H=M(a.DatePicker);H.MonthPicker=M(a.DatePicker.MonthPicker),H.RangePicker=M(a.DatePicker.RangePicker),H.WeekPicker=M(a.DatePicker.WeekPicker);const G=e=>{let{placeholder:t,label:n,soFarText:r,...l}=e;const{formatMessage:o}=(0,s.useIntl)({moduleName:"FormInfo"});return(0,C.jsx)(a.DatePickerToday,{...l,label:n,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:r||o({id:"soFarText"})})},q=Object.assign({},a,{Input:L,InputUpperCase:R,TextArea:D,Select:B,InputNumber:U,TreeSelect:W,TimePicker:V,DatePicker:H,DatePickerToday:G,Form:r.A,FormItem:o.A,AdvancedSelect:E,AddressSelect:d.A,AddressInput:O,MoneyInput:h.A,PhoneNumber:f.A,Cascader:u.A,FunctionSelect:p.A,IndustrySelect:m.A,TypeDateRangePicker:v.A,Upload:g.A,Avatar:_.A,SalaryInput:x.A,TableInput:A.A,Text:F,Rate:I.A,ErrorTip:k.A})},96252:(e,t,n)=>{n.r(t),n.d(t,{AddressInput:()=>_.NI,AddressSelect:()=>_.TQ,AdvancedSelect:()=>_.JL,Avatar:()=>_.eu,Cascader:()=>_.vx,DatePicker:()=>_.lr,DatePickerToday:()=>_.s3,ErrorTip:()=>h.A,Form:()=>p.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>m.A,FormModal:()=>c.Ay,FormModalButton:()=>c.W6,FormStepModal:()=>d.Ay,FormStepModalButton:()=>d.Wp,FunctionSelect:()=>_.d4,IndustrySelect:()=>_.ZN,Input:()=>_.pd,InputNumber:()=>_.YI,InputUpperCase:()=>_.h2,List:()=>l.A,MoneyInput:()=>_.F0,PhoneNumber:()=>_.go,Rate:()=>_.tt,SalaryInput:()=>_.lu,Select:()=>_.l6,SelectInnerInput:()=>x.A,TableInput:()=>_.N,TableList:()=>o.A,Text:()=>_.EY,TextArea:()=>_.fs,TimePicker:()=>_.AG,TreeSelect:()=>_.f7,TypeDateRangePicker:()=>_.w5,Upload:()=>_._O,default:()=>y,fieldDecorator:()=>s.E,fields:()=>s.A,formModule:()=>_.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var a=n(64261),r=n(2196),s=n(10328),l=n(85846),o=n(97056),i=n(35774),c=n(5995),d=n(94005),u=n(48221),p=n(85696),m=n(30891),h=n(45053),f=n(98434),g={};for(const v in f)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","SelectInnerInput"].indexOf(v)<0&&(g[v]=()=>f[v]);n.d(t,g);var _=n(83799),x=n(18936);(0,a.A)(),r.A.fields=s.A,r.A.List=l.A,r.A.TableList=o.A,r.A.FormApiButton=i.A,r.A.FormModal=c.Ay,r.A.useFormModal=c.Vl,r.A.FormModalButton=c.W6,r.A.FormStepModal=d.Ay,r.A.useFormStepModal=d.$X,r.A.FormStepModalButton=d.Wp,r.A.FormDrawer=u.Ay,r.A.useFormDrawer=u.Xy,r.A.FormDrawerButton=u.WJ,r.A.Form=p.A,r.A.FormItem=m.A,r.A.ErrorTip=h.A,r.A.SubmitButton=f.SubmitButton,r.A.CancelButton=f.CancelButton,r.A.fieldDecorator=s.E;const y=r.A},55431:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(1649).then(n.bind(n,21649)),"zh-CN":()=>n.e(711).then(n.bind(n,80711))}[e]())},64261:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(98434),r=n(57469),s=n.n(r),l=n(34677),o=n.n(l),i=n(33097),c=n.n(i),d=(n(17448),n(88893)),u=n(46732),p=n(13050),m=n(70579);const h=async(e,t)=>{const{locale:n}=Object.assign({},t);a.interceptors.input.use("photo-string",(e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e})),a.interceptors.output.use("photo-string",(e=>{var t,n;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(n=t.split("?"))||void 0===n?void 0:n[0])||e.id:e})),a.interceptors.input.use("to-array",(e=>Array.isArray(e)?e[0]:e)),a.interceptors.output.use("to-array",(e=>[e])),a.interceptors.input.use("array-single",(e=>e?[e]:[])),a.interceptors.output.use("array-single",(e=>e?e[0]:null)),a.interceptors.input.use("date-string",(e=>e?s()(e):null)),a.interceptors.output.use("date-string",(e=>e?new Date(e.valueOf()).toISOString():"")),a.interceptors.input.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(s()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(s()(e[1])),t})),a.interceptors.output.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t})),a.interceptors.output.use("file-format",(e=>Array.isArray(e)?e.map((e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename}))):[])),a.interceptors.input.use("file-format",(e=>Array.isArray(e)?e.map((e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename}))):[]));const{default:r}=await(0,p.loadModule)("components-iconfont:CountyFlag@load"),l=await r(),i=new Map(l.map((e=>{let{ab:t,country_code:n}=e;return[t,n]}))),h=new Map(l.map((e=>{let{ab:t,country_code:n}=e;return[n,t]})));a.interceptors.output.use("phone-number-string",(e=>e.code&&e.value?"+".concat(i.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):"")),a.interceptors.input.use("phone-number-string",(e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t.length<3?{}:{code:h.get(Number(t[1])),value:t[2]}}));const f=a.RULES.REQ,g=a.RULES.LEN,_=(e,t)=>{t=Object.assign({},t);const a={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},LENGTH_EQUAL:{"zh-CN":"%s\u5fc5\u987b\u7b49\u4e8e".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},r=c()(a,"".concat(e,".").concat(n));return r||c()(a,"".concat(e,".zh-CN"))};(0,a.preset)(o()({},{rules:{REQ:function(){return Object.assign({},f(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[a,r,s]=t;let l="";return s===r&&a.length!==Number(s)&&(l="LENGTH_EQUAL"),a.length<r&&(l="LENGTH_MORE"),s&&a.length>s&&(l="LENGTH_LESS"),Object.assign({},g(...t),{errMsg:_(l,{start:r,end:s})})},PHONE_NUMBER:d.N,ARRAY_LENGTH:(e,t,n)=>n===t&&e.length!==Number(n)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:n})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:n})}:n&&e.length>n?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:n})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,m.jsx)(u.A,{...e})}},"function"===typeof e?e({interceptors:a.interceptors,RULES:a.RULES}):e))}},75363:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});const a=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var r=n(58609),s=n(64671),l=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__0pAcf",d="style_inner__bMKeU__0pAcf",u="style_content__xTfWZ__0pAcf",p="style_link__93j7O__0pAcf";var m=n(48731),h=n(70579);const f=e=>{let{name:t,className:n}=e;return(0,h.jsx)(r.IntlProvider,{importMessages:a,moduleName:"HelperGuide",children:(0,h.jsx)(m.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,n),children:(0,h.jsxs)(l.Space,{className:d,children:[(0,h.jsx)(s.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:u,children:e.content}),e.url&&(0,h.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(s.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},1454:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var a=n(55199),r=n(83136),s=n.n(r),l=n(64671);const o="style_part__+Vw3+__0pAcf",i="style_part-title__Uw+4K__0pAcf",c="style_collapse__ARl-O__0pAcf",d="style_is-active__i1zHH__0pAcf",u="style_part-title-sub__fcxT7__0pAcf";var p=n(70579);const m=e=>{let{children:t,className:n,...r}=e;return(0,p.jsx)(a.Collapse,{...r,className:s()(c,"collapse",n),expandIcon:e=>{let{isActive:t}=e;return(0,p.jsx)(l.default,{size:12,className:s()({[d]:t,"is-active":t}),type:"icon-triangle-right"})},children:t})};m.Panel=a.Collapse.Panel;const h=m,f=e=>{let{className:t,children:n,...r}=e;return(0,p.jsx)(a.Space,{...r,className:t,direction:"vertical",size:24,children:n})};f.Part=e=>{let{className:t,title:n,subTitle:r,extra:l,children:c,...d}=e;return(0,p.jsx)(a.Card,{className:s()(o,"part",t,{"no-title":!n}),bordered:!1,title:n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:s()("part-title",i),children:n}),r&&(0,p.jsx)("div",{className:s()("part-title-sub",u),children:r})]}),extra:l,...d,children:c})},f.Collapse=h;const g=f},21554:(e,t,n)=>{n.r(t),n.d(t,{TooltipFetch:()=>F,TooltipInfoLabel:()=>C,default:()=>N});var a=n(55199),r=n(83136),s=n.n(r);const l="style_tooltip__zHGMI__0pAcf",o="style_large__lvmsm__0pAcf",i="style_small__nUt0r__0pAcf",c="style_popup-content__-rKQN__0pAcf",d="style_title__1EQPq__0pAcf",u="style_important-info__qTSZY__0pAcf",p="style_error__yTTq3__0pAcf",m="style_warning__CMJxz__0pAcf",h="style_success__AvJVx__0pAcf",f="style_sub-title__uD8CH__0pAcf",g="style_content__lzgUz__0pAcf",_="style_alone__q6q82__0pAcf",x="style_fetch-content__tEOEV__0pAcf",y="style_fetch-loading__tN-WB__0pAcf",v="style_title-info-icon__iY8Q+__0pAcf";var A=n(70579);const j=e=>{let{overlayClassName:t,title:n,size:r,subtitle:x,content:y,importantInfo:v,importantInfoType:j,moreInfo:N,...b}=e;return(0,A.jsx)(a.Tooltip,{...b,overlayClassName:s()(t,l,{[i]:"small"===r,[o]:"large"===r}),title:(0,A.jsxs)(a.Space,{direction:"vertical",className:c,children:[n&&(0,A.jsx)("div",{className:d,children:n}),v&&(0,A.jsx)("div",{className:s()(u,{[h]:"success"===j,[m]:"warning"===j,[p]:"error"===j}),children:v}),x&&(0,A.jsx)("div",{className:f,children:x}),y&&(0,A.jsx)("div",{className:s()(g,{[_]:[n,x,v,N].every((e=>!e))}),children:y}),N&&(0,A.jsx)("div",{children:N})]})})};j.defaultProps={};const N=j;var b=n(64671);const C=e=>{let{title:t,tooltipTitle:n}=e;return(0,A.jsxs)("div",{children:[t,n?(0,A.jsx)(N,{...n,children:(0,A.jsx)("span",{children:(0,A.jsx)(b.default,{type:"icon-xinxi-miaobian",className:v,size:14})})}):null]})};var w=n(73884),S=n(87558);const P=e=>{let{api:t,children:n,fetchContent:r,showLoading:l,loadingClassName:o,force:i,...c}=e;const[d,u]=(0,w.useState)(!1),p=(0,S.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:m,isLoading:h,data:f,send:g}=p;return(0,A.jsx)(N,{...Object.assign({},c,m?r(f,p):{}),open:d,onOpenChange:async e=>{!e||m&&!i||await g({type:"refresh"}),u(e)},children:(0,A.jsxs)("span",{className:x,children:[n,l&&h?(0,A.jsx)(a.Spin,{size:"small",className:s()(o,y)}):null]})})};P.defaultProps={showLoading:!0};const F=P},47094:(e,t,n)=>{n.d(t,{A:()=>a});const a={"form-outer":"style_form-outer__IWUs0__0pAcf","form-drawer":"style_form-drawer__uYDXS__0pAcf","table-list":"style_table-list__6lp-A__0pAcf","list-item":"style_list-item__hVzQa__0pAcf","table-list-inner":"style_table-list-inner__uc8DK__0pAcf","table-list-field":"style_table-list-field__JSJfB__0pAcf","table-list-header":"style_table-list-header__KXvKa__0pAcf","is-req":"style_is-req__LfXQf__0pAcf","table-list-extra":"style_table-list-extra__faYTK__0pAcf","list-btn":"style_list-btn__WKYkm__0pAcf","form-info":"style_form-info__B8bAP__0pAcf","list-part":"style_list-part__Ld0GA__0pAcf","is-important":"style_is-important__vaBk1__0pAcf","list-item-part":"style_list-item-part__MzKP7__0pAcf","money-input":"style_money-input__J86Pb__0pAcf","money-description":"style_money-description__Gz3p7__0pAcf","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__0pAcf","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__0pAcf","helper-guide-field":"style_helper-guide-field__Wke3w__0pAcf","field-tips":"style_field-tips__7CIJi__0pAcf","label-hidden":"style_label-hidden__FzFEN__0pAcf","error-tip-overlay":"style_error-tip-overlay__aNCGc__0pAcf","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__0pAcf","column-not-layout":"style_column-not-layout__+SXC+__0pAcf"}}}]);
|
|
2
|
+
//# sourceMappingURL=5846.1174f098.chunk.js.map
|