@kne-components/components-core 0.4.28 → 0.4.29
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 +94 -94
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{1996.9cd7f856.chunk.css → 1996.43bc7ac8.chunk.css} +2 -2
- package/build/static/css/{1996.9cd7f856.chunk.css.map → 1996.43bc7ac8.chunk.css.map} +1 -1
- package/build/static/css/2004.f00fb1e5.chunk.css +2 -0
- package/build/static/css/{2004.c8a6363e.chunk.css.map → 2004.f00fb1e5.chunk.css.map} +1 -1
- package/build/static/css/206.5ff3db3b.chunk.css +2 -0
- package/build/static/css/{206.a935dafb.chunk.css.map → 206.5ff3db3b.chunk.css.map} +1 -1
- package/build/static/css/254.0cc2ac03.chunk.css +2 -0
- package/build/static/css/{254.ac648540.chunk.css.map → 254.0cc2ac03.chunk.css.map} +1 -1
- package/build/static/css/2628.7dbb60fa.chunk.css +2 -0
- package/build/static/css/2628.7dbb60fa.chunk.css.map +1 -0
- package/build/static/css/2765.7738b1ac.chunk.css +2 -0
- package/build/static/css/2765.7738b1ac.chunk.css.map +1 -0
- package/build/static/css/3404.8efc1af0.chunk.css +2 -0
- package/build/static/css/{3404.972973d9.chunk.css.map → 3404.8efc1af0.chunk.css.map} +1 -1
- package/build/static/css/{3771.7315c9e5.chunk.css → 3771.fe8455ba.chunk.css} +2 -2
- package/build/static/css/{3771.7315c9e5.chunk.css.map → 3771.fe8455ba.chunk.css.map} +1 -1
- package/build/static/css/{3790.b6d59ea3.chunk.css → 3790.3a189ac3.chunk.css} +2 -2
- package/build/static/css/{3790.b6d59ea3.chunk.css.map → 3790.3a189ac3.chunk.css.map} +1 -1
- package/build/static/css/4741.2ea56851.chunk.css +2 -0
- package/build/static/css/4741.2ea56851.chunk.css.map +1 -0
- package/build/static/css/4834.1a669b34.chunk.css +2 -0
- package/build/static/css/{4834.05644e2c.chunk.css.map → 4834.1a669b34.chunk.css.map} +1 -1
- package/build/static/css/5195.7b081510.chunk.css +2 -0
- package/build/static/css/{5195.fbebf6ec.chunk.css.map → 5195.7b081510.chunk.css.map} +1 -1
- package/build/static/css/{6763.f70c34c0.chunk.css → 6763.bbb39a73.chunk.css} +2 -2
- package/build/static/css/{6763.f70c34c0.chunk.css.map → 6763.bbb39a73.chunk.css.map} +1 -1
- package/build/static/css/7227.3810d45d.chunk.css +2 -0
- package/build/static/css/{7227.95094dfc.chunk.css.map → 7227.3810d45d.chunk.css.map} +1 -1
- package/build/static/css/7371.99d24001.chunk.css +2 -0
- package/build/static/css/{7371.89331e8b.chunk.css.map → 7371.99d24001.chunk.css.map} +1 -1
- package/build/static/css/{7477.487defad.chunk.css → 7477.562ee1e6.chunk.css} +2 -2
- package/build/static/css/7477.562ee1e6.chunk.css.map +1 -0
- package/build/static/css/7548.3c1c3d58.chunk.css +12 -0
- package/build/static/css/{7548.a7c14f30.chunk.css.map → 7548.3c1c3d58.chunk.css.map} +1 -1
- package/build/static/css/{760.a976791a.chunk.css → 760.8700eb0e.chunk.css} +2 -2
- package/build/static/css/{760.a976791a.chunk.css.map → 760.8700eb0e.chunk.css.map} +1 -1
- package/build/static/css/833.ebd053f4.chunk.css +2 -0
- package/build/static/css/833.ebd053f4.chunk.css.map +1 -0
- package/build/static/css/{8593.47127801.chunk.css → 8593.3d7fcbef.chunk.css} +2 -2
- package/build/static/css/{8593.47127801.chunk.css.map → 8593.3d7fcbef.chunk.css.map} +1 -1
- package/build/static/css/9556.8e85bfb0.chunk.css +2 -0
- package/build/static/css/{9556.5a5a795a.chunk.css.map → 9556.8e85bfb0.chunk.css.map} +1 -1
- package/build/static/js/1996.cfbb75ac.chunk.js +2 -0
- package/build/static/js/{1996.25264cc5.chunk.js.map → 1996.cfbb75ac.chunk.js.map} +1 -1
- package/build/static/js/{2004.7bd49536.chunk.js → 2004.76fed089.chunk.js} +3 -3
- package/build/static/js/{2004.7bd49536.chunk.js.map → 2004.76fed089.chunk.js.map} +1 -1
- package/build/static/js/206.a13ea9ae.chunk.js +2 -0
- package/build/static/js/{206.a5bb3fec.chunk.js.map → 206.a13ea9ae.chunk.js.map} +1 -1
- package/build/static/js/{2242.af66c223.chunk.js → 2242.809ae177.chunk.js} +2 -2
- package/build/static/js/2242.809ae177.chunk.js.map +1 -0
- package/build/static/js/254.7102d494.chunk.js +2 -0
- package/build/static/js/254.7102d494.chunk.js.map +1 -0
- package/build/static/js/{2628.595368d6.chunk.js → 2628.6beedde8.chunk.js} +2 -2
- package/build/static/js/{2628.595368d6.chunk.js.map → 2628.6beedde8.chunk.js.map} +1 -1
- package/build/static/js/{3404.467445f5.chunk.js → 3404.288cf612.chunk.js} +3 -3
- package/build/static/js/{3404.467445f5.chunk.js.map → 3404.288cf612.chunk.js.map} +1 -1
- package/build/static/js/3771.2dde5c0e.chunk.js +2 -0
- package/build/static/js/{3771.e1560eb6.chunk.js.map → 3771.2dde5c0e.chunk.js.map} +1 -1
- package/build/static/js/{3790.948e94e4.chunk.js → 3790.37204b29.chunk.js} +2 -2
- package/build/static/js/{3790.948e94e4.chunk.js.map → 3790.37204b29.chunk.js.map} +1 -1
- package/build/static/js/3856.d05a7f98.chunk.js +2 -0
- package/build/static/js/{3856.5cbe4986.chunk.js.map → 3856.d05a7f98.chunk.js.map} +1 -1
- package/build/static/js/4179.5e756a44.chunk.js +2 -0
- package/build/static/js/4179.5e756a44.chunk.js.map +1 -0
- package/build/static/js/4474.0f2c42b2.chunk.js +2 -0
- package/build/static/js/4474.0f2c42b2.chunk.js.map +1 -0
- package/build/static/js/{4834.e6764c95.chunk.js → 4834.66fa8246.chunk.js} +2 -2
- package/build/static/js/{4834.e6764c95.chunk.js.map → 4834.66fa8246.chunk.js.map} +1 -1
- package/build/static/js/5083.27bf9cd9.chunk.js +3 -0
- package/build/static/js/5083.27bf9cd9.chunk.js.map +1 -0
- package/build/static/js/5195.976970b8.chunk.js +2 -0
- package/build/static/js/{5195.bb6ecaf9.chunk.js.map → 5195.976970b8.chunk.js.map} +1 -1
- package/build/static/js/6763.b5258bfd.chunk.js +2 -0
- package/build/static/js/{6763.28246a09.chunk.js.map → 6763.b5258bfd.chunk.js.map} +1 -1
- package/build/static/js/{7227.88a380c7.chunk.js → 7227.b296507c.chunk.js} +3 -3
- package/build/static/js/{7227.88a380c7.chunk.js.map → 7227.b296507c.chunk.js.map} +1 -1
- package/build/static/js/{7371.268702b8.chunk.js → 7371.b64123b8.chunk.js} +2 -2
- package/build/static/js/{7371.268702b8.chunk.js.map → 7371.b64123b8.chunk.js.map} +1 -1
- package/build/static/js/{7548.69dd9b4f.chunk.js → 7548.52a78bb1.chunk.js} +2 -2
- package/build/static/js/{7548.69dd9b4f.chunk.js.map → 7548.52a78bb1.chunk.js.map} +1 -1
- package/build/static/js/{760.e716cb0c.chunk.js → 760.1e22f7a5.chunk.js} +2 -2
- package/build/static/js/{760.e716cb0c.chunk.js.map → 760.1e22f7a5.chunk.js.map} +1 -1
- package/build/static/js/833.95ec25f4.chunk.js +2 -0
- package/build/static/js/{833.b7aae7b5.chunk.js.map → 833.95ec25f4.chunk.js.map} +1 -1
- package/build/static/js/8593.d13c3854.chunk.js +2 -0
- package/build/static/js/{8593.3ce9f39e.chunk.js.map → 8593.d13c3854.chunk.js.map} +1 -1
- package/build/static/js/{8985.4aa32141.chunk.js → 8985.4cf44dd5.chunk.js} +2 -2
- package/build/static/js/8985.4cf44dd5.chunk.js.map +1 -0
- package/build/static/js/9556.641ea21c.chunk.js +3 -0
- package/build/static/js/{9556.aa1e5558.chunk.js.map → 9556.641ea21c.chunk.js.map} +1 -1
- package/build/static/js/main.7e617c8d.js +2 -0
- package/build/static/js/main.7e617c8d.js.map +1 -0
- package/package.json +3 -3
- package/build/static/css/2004.c8a6363e.chunk.css +0 -2
- package/build/static/css/206.a935dafb.chunk.css +0 -2
- package/build/static/css/254.ac648540.chunk.css +0 -2
- package/build/static/css/2628.02fdbddc.chunk.css +0 -2
- package/build/static/css/2628.02fdbddc.chunk.css.map +0 -1
- package/build/static/css/2765.08ff2d5e.chunk.css +0 -2
- package/build/static/css/2765.08ff2d5e.chunk.css.map +0 -1
- package/build/static/css/3404.972973d9.chunk.css +0 -2
- package/build/static/css/4741.83940f33.chunk.css +0 -2
- package/build/static/css/4741.83940f33.chunk.css.map +0 -1
- package/build/static/css/4834.05644e2c.chunk.css +0 -2
- package/build/static/css/5195.fbebf6ec.chunk.css +0 -2
- package/build/static/css/7227.95094dfc.chunk.css +0 -2
- package/build/static/css/7371.89331e8b.chunk.css +0 -2
- package/build/static/css/7477.487defad.chunk.css.map +0 -1
- package/build/static/css/7548.a7c14f30.chunk.css +0 -12
- package/build/static/css/833.0137cc02.chunk.css +0 -2
- package/build/static/css/833.0137cc02.chunk.css.map +0 -1
- package/build/static/css/9556.5a5a795a.chunk.css +0 -2
- package/build/static/js/1996.25264cc5.chunk.js +0 -2
- package/build/static/js/206.a5bb3fec.chunk.js +0 -2
- package/build/static/js/2242.af66c223.chunk.js.map +0 -1
- package/build/static/js/254.c9ff48c8.chunk.js +0 -2
- package/build/static/js/254.c9ff48c8.chunk.js.map +0 -1
- package/build/static/js/3771.e1560eb6.chunk.js +0 -2
- package/build/static/js/3856.5cbe4986.chunk.js +0 -2
- package/build/static/js/4179.5144a7ef.chunk.js +0 -2
- package/build/static/js/4179.5144a7ef.chunk.js.map +0 -1
- package/build/static/js/4474.a3fb3110.chunk.js +0 -2
- package/build/static/js/4474.a3fb3110.chunk.js.map +0 -1
- package/build/static/js/5195.bb6ecaf9.chunk.js +0 -2
- package/build/static/js/6763.28246a09.chunk.js +0 -2
- package/build/static/js/816.2713b27e.chunk.js +0 -3
- package/build/static/js/816.2713b27e.chunk.js.map +0 -1
- package/build/static/js/833.b7aae7b5.chunk.js +0 -2
- package/build/static/js/8593.3ce9f39e.chunk.js +0 -2
- package/build/static/js/8985.4aa32141.chunk.js.map +0 -1
- package/build/static/js/9556.aa1e5558.chunk.js +0 -3
- package/build/static/js/main.cbb2f5b5.js +0 -2
- package/build/static/js/main.cbb2f5b5.js.map +0 -1
- /package/build/static/js/{2004.7bd49536.chunk.js.LICENSE.txt → 2004.76fed089.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.467445f5.chunk.js.LICENSE.txt → 3404.288cf612.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{816.2713b27e.chunk.js.LICENSE.txt → 5083.27bf9cd9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.88a380c7.chunk.js.LICENSE.txt → 7227.b296507c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.aa1e5558.chunk.js.LICENSE.txt → 9556.641ea21c.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3771.e1560eb6.chunk.js","mappings":"yWACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,0aCOHE,EAAmB,QAEZC,EAAeC,IAAyC,IAAxC,QAACH,EAAO,UAAEI,EAAY,EAAC,SAAEC,GAASF,EAC3D,OAAKH,GAGGM,EAAAA,EAAAA,MAACC,EAAAA,IAAG,CAACC,MAAM,EAAOC,UAAWC,EAAM,qBAAqBL,SAAA,EAC5DM,EAAAA,EAAAA,KAACC,EAAAA,IAAG,CAACC,KAAM,GAAKT,EAAWK,UAAWC,EAAM,qB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Mf,EAAoBzC,K,sCCtCjCgG,EAAmBhG,IAC9B,MAAMiG,EAAYF,IAClB,OAAK/F,EAAM2D,KAUJ9F,EAAAA,EAAAA,KAACqI,EAAAA,GAAW5F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEmG,UAAWF,MARtCpI,EAAAA,EAAAA,KAAC4D,EAAAA,QAAMnB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACDN,GAAK,IACTV,QAASA,KACP2G,EAAUjG,EAAMoG,iBAO1B,EA9BqBpG,IACnB,MAAMwD,EAAQD,IACd,IAAKvD,EAAM2D,IAAK,CACd,MAAM,WAAEyC,GAA0BpG,EAAXqG,GAAMpG,EAAAA,EAAAA,GAAKD,EAAKE,GACvC,OACErC,EAAAA,EAAAA,KAAC4D,EAAAA,QAAMnB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACD+F,GAAM,IACV/G,QAASA,KACPkE,EAAM4C,MAId,CACA,OAAOvI,EAAAA,EAAAA,KAACqI,EAAAA,GAAW5F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEmG,UAAW3C,K,oECf5C,QAAe1B,G","sources":["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","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__ZYqIS\",\"large\":\"style_large__iaqVE__ZYqIS\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__ZYqIS\",\"modal-title\":\"style_modal-title__dswaw__ZYqIS\",\"modal-outer\":\"style_modal-outer__r3SkX__ZYqIS\",\"modal-body\":\"style_modal-body__jQJSI__ZYqIS\",\"right-options-modal\":\"style_right-options-modal__FajDP__ZYqIS\",\"right-options-row\":\"style_right-options-row__-mPb9__ZYqIS\",\"right-options-col\":\"style_right-options-col__3ilee__ZYqIS\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__ZYqIS\",\"content\":\"style_content__k6MIF__ZYqIS\",\"modal-footer\":\"style_modal-footer__-prbN__ZYqIS\",\"modal-close\":\"style_modal-close__Oa5Kl__ZYqIS\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__ZYqIS\",\"is-danger\":\"style_is-danger__H5110__ZYqIS\",\"title\":\"style_title__orTym__ZYqIS\",\"has-title\":\"style_has-title__qy0Wp__ZYqIS\"};","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, rightSpan = 6, children}) => {\n if (!options) {\n return children;\n }\n return (<Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>);\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\", style: {\"--min-modal-height\": calcHeight(300, footer)},\n };\n }\n return {\n width: \"1000px\", style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n};\n\nconst Footer = ({\n footer, footerButtons, onConfirm, onCancel, cancelText, onClose, targetProps,\n }) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{\n children: cancelText || (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onCancel,\n }, {\n type: \"primary\", children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onConfirm,\n },])\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(({\n ButtonComponent, onClick, autoClose = true, display, ...props\n }, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args, targetProps));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\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 cancelText,\n confirmText,\n }) => {\n const modalBodyRef = useRef(null);\n return (<div className={classnames(style[\"modal-outer\"], 'modal-container')} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={classnames(style[\"modal-close\"], \"modal-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(style[\"modal-body\"], {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n }, \"modal-body\")}\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 : (<div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n confirmText={confirmText}\n onCancel={onCancel}\n cancelText={cancelText}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, {title}, props);\n return (<ModalOuter\n title={renderWithOptions(props.title, {\n ...props, childrenRef, close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n confirmText={confirmText}\n onCancel={onCancel}\n cancelText={cancelText}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props, childrenRef, close: onClose,\n })}\n targetProps={Object.assign({}, props, {childrenRef, close: onClose})}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props, childrenRef, close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props, childrenRef, close: onClose,\n })}\n </RightOptions>\n </ModalOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner, {\n childrenRef, close: onClose,\n }) : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: 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 }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, 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, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\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\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","concat","Footer","_ref2","footerButtons","onConfirm","onCancel","cancelText","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","type","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","_objectSpread","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","confirmText","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnHidden","sizeMap","width","Math","min","window","innerWidth","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded4","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded5","typeEnum","confirm","warning","error","success","direction","align","_ref7","_excluded3","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModal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G,GAAMpG,EAAAA,EAAAA,GAAKD,EAAKE,GACvC,OACErC,EAAAA,EAAAA,KAAC4D,EAAAA,QAAMnB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACD+F,GAAM,IACV/G,QAASA,KACPkE,EAAM4C,MAId,CACA,OAAOvI,EAAAA,EAAAA,KAACqI,EAAAA,GAAW5F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEmG,UAAW3C,K,oECf5C,QAAe1B,G","sources":["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","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__upeal\",\"large\":\"style_large__iaqVE__upeal\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__upeal\",\"modal-title\":\"style_modal-title__dswaw__upeal\",\"modal-outer\":\"style_modal-outer__r3SkX__upeal\",\"modal-body\":\"style_modal-body__jQJSI__upeal\",\"right-options-modal\":\"style_right-options-modal__FajDP__upeal\",\"right-options-row\":\"style_right-options-row__-mPb9__upeal\",\"right-options-col\":\"style_right-options-col__3ilee__upeal\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__upeal\",\"content\":\"style_content__k6MIF__upeal\",\"modal-footer\":\"style_modal-footer__-prbN__upeal\",\"modal-close\":\"style_modal-close__Oa5Kl__upeal\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__upeal\",\"is-danger\":\"style_is-danger__H5110__upeal\",\"title\":\"style_title__orTym__upeal\",\"has-title\":\"style_has-title__qy0Wp__upeal\"};","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, rightSpan = 6, children}) => {\n if (!options) {\n return children;\n }\n return (<Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>);\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\", style: {\"--min-modal-height\": calcHeight(300, footer)},\n };\n }\n return {\n width: \"1000px\", style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n};\n\nconst Footer = ({\n footer, footerButtons, onConfirm, onCancel, cancelText, onClose, targetProps,\n }) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{\n children: cancelText || (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onCancel,\n }, {\n type: \"primary\", children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onConfirm,\n },])\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(({\n ButtonComponent, onClick, autoClose = true, display, ...props\n }, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args, targetProps));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\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 cancelText,\n confirmText,\n }) => {\n const modalBodyRef = useRef(null);\n return (<div className={classnames(style[\"modal-outer\"], 'modal-container')} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={classnames(style[\"modal-close\"], \"modal-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(style[\"modal-body\"], {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n }, \"modal-body\")}\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 : (<div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n confirmText={confirmText}\n onCancel={onCancel}\n cancelText={cancelText}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, {title}, props);\n return (<ModalOuter\n title={renderWithOptions(props.title, {\n ...props, childrenRef, close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n confirmText={confirmText}\n onCancel={onCancel}\n cancelText={cancelText}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props, childrenRef, close: onClose,\n })}\n targetProps={Object.assign({}, props, {childrenRef, close: onClose})}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props, childrenRef, close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props, childrenRef, close: onClose,\n })}\n </RightOptions>\n </ModalOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner, {\n childrenRef, close: onClose,\n }) : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: 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 }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, 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, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\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\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","concat","Footer","_ref2","footerButtons","onConfirm","onCancel","cancelText","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","type","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","_objectSpread","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","confirmText","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnHidden","sizeMap","width","Math","min","window","innerWidth","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded4","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded5","typeEnum","confirm","warning","error","success","direction","align","_ref7","_excluded3","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3790],{48731:(e,n,i)=>{i.r(n),i.d(n,{default:()=>
|
|
2
|
-
//# sourceMappingURL=3790.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3790],{48731:(e,n,i)=>{i.r(n),i.d(n,{default:()=>l.a});var a=i(98919),l=i.n(a),s=i(22717),t=i.n(s);(0,a.preset)({base:t()([["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}]]],(e,n)=>{e[n[0]]=n[1]},{})})},75363:(e,n,i)=>{i.r(n),i.d(n,{default:()=>h});const a=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var l=i(47458),s=i(64671),t=i(55199),r=i(83136),c=i.n(r);const o="style_helper-guide__K5xFw__upeal",u="style_inner__bMKeU__upeal",d="style_content__xTfWZ__upeal",p="style_link__93j7O__upeal";var v=i(48731),_=i(70579);const h=e=>{let{name:n,className:i}=e;return(0,_.jsx)(l.IntlProvider,{importMessages:a,moduleName:"HelperGuide",children:(0,_.jsx)(v.default,{moduleName:"helperGuide",name:n,children:e=>e&&e.value&&(0,_.jsx)("div",{className:c()(o,i),children:(0,_.jsxs)(t.Space,{className:u,children:[(0,_.jsx)(s.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,_.jsx)("span",{className:d,children:e.content}),e.url&&(0,_.jsxs)(t.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(s.default,{type:"icon-shuangjiantou-right"})]})]})})})})}}}]);
|
|
2
|
+
//# sourceMappingURL=3790.37204b29.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3790.
|
|
1
|
+
{"version":3,"file":"static/js/3790.37204b29.chunk.js","mappings":"qOAyHAA,EAAAA,EAAAA,QAAO,CACLC,KAAMC,IAvHY,CAClB,CACE,SACA,IAAM,CACJ,CAAEC,MAAO,IAAKC,YAAa,UAC3B,CACED,MAAO,IACPC,YAAa,YAInB,CACE,UACA,IAAM,CACJ,CAAEA,YAAa,eAAMD,MAAO,KAC5B,CACEC,YAAa,eACbD,MAAO,OAIb,CACE,UACA,IAAM,CACJ,CAAEC,YAAa,SAAKD,MAAO,KAC3B,CACEC,YAAa,SACbD,MAAO,OAIb,CACE,YACA,IAAM,CACJ,CAAEC,YAAa,2BAAQD,MAAO,4BAC9B,CACEC,YAAa,2BACbD,MAAO,4BAET,CAAEC,YAAa,eAAMD,MAAO,gBAC5B,CACEC,YAAa,2BACbD,MAAO,8BAIb,CACE,iBACA,IAAM,CACJ,CACEA,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,sBAEf,CACED,MAAO,EACPC,YAAa,wBAInB,CACE,aACA,IAAM,CACJ,CACEA,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,iCACbD,MAAO,IAET,CACEC,YAAa,iCACbD,MAAO,IAET,CACEC,YAAa,qBACbD,MAAO,IAET,CACEC,YAAa,2BACbD,MAAO,QASX,CAACE,EAAQF,KACPE,EAAOF,EAAM,IAAMA,EAAM,IAE3B,CAAC,I,gDC/HL,MAOA,EAPwBG,IACf,CACL,QAASC,IAAM,+BACf,QAASC,IAAM,iCACfF,M,yDCHJ,QAA+B,mCAA/B,EAA0E,4BAA1E,EAAgH,8BAAhH,EAAqJ,2B,0BCOrJ,MAgCA,EAhCoBG,IAA0B,IAAzB,KAAEC,EAAI,UAAEC,GAAWF,EACtC,OACEG,EAAAA,EAAAA,KAACC,EAAAA,aAAY,CAACC,eAAgBA,EAAgBC,WAAW,cAAaC,UACpEJ,EAAAA,EAAAA,KAACK,EAAAA,QAAI,CAACF,WAAW,cAAcL,KAAMA,EAAKM,SACtCE,GAEEA,GACAA,EAAKf,QACHS,EAAAA,EAAAA,KAAA,OAAKD,UAAWQ,IAAWC,EAAuBT,GAAWK,UAC3DK,EAAAA,EAAAA,MAACC,EAAAA,MAAK,CAACX,UAAWS,EAAeJ,SAAA,EAC/BJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACC,UAAQ,EAACC,KAAK,8BACpBb,EAAAA,EAAAA,KAAA,QAAMD,UAAWS,EAAiBJ,SAAEE,EAAKQ,UACxCR,EAAKS,MACJN,EAAAA,EAAAA,MAACO,EAAAA,WAAWC,KAAI,CACdlB,UAAWS,EACXU,KAAMZ,EAAKS,IACXI,OAAO,SAAQf,SAAA,CAChB,4BAECJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACE,KAAK,yC","sources":["components/Enum/index.js","components/HelperGuide/locale/index.js","webpack://@kne-components/components-core/./src/components/HelperGuide/style.module.scss?bc31","components/HelperGuide/index.js"],"sourcesContent":["import { preset } from \"@kne/react-enum\";\nimport transform from \"lodash/transform\";\n\nconst baseLoaders = [\n [\n \"gender\",\n () => [\n { value: \"M\", description: \"男\" },\n {\n value: \"F\",\n description: \"女\",\n },\n ],\n ],\n [\n \"marital\",\n () => [\n { description: \"已婚\", value: \"Y\" },\n {\n description: \"未婚\",\n value: \"N\",\n },\n ],\n ],\n [\n \"confirm\",\n () => [\n { description: \"是\", value: \"Y\" },\n {\n description: \"否\",\n value: \"N\",\n },\n ],\n ],\n [\n \"political\",\n () => [\n { description: \"中共党员\", value: \"中共党员\" },\n {\n description: \"共青团员\",\n value: \"共青团员\",\n },\n { description: \"群众\", value: \"群众\" },\n {\n description: \"其他党派\",\n value: \"其他党派\",\n },\n ],\n ],\n [\n \"phoneStateEnum\",\n () => [\n {\n value: 0,\n description: \"空号\",\n },\n {\n value: 1,\n description: \"实号\",\n },\n {\n value: 2,\n description: \"停机\",\n },\n {\n value: 3,\n description: \"库无\",\n },\n {\n value: 4,\n description: \"沉默号\",\n },\n {\n value: 5,\n description: \"风险号\",\n },\n ],\n ],\n [\n \"degreeEnum\",\n () => [\n {\n description: \"初中\",\n value: 10,\n },\n {\n description: \"中专\",\n value: 20,\n },\n {\n description: \"高中\",\n value: 30,\n },\n {\n description: \"大专\",\n value: 40,\n },\n {\n description: \"本科\",\n value: 50,\n },\n {\n description: \"硕士研究生\",\n value: 60,\n },\n {\n description: \"博士研究生\",\n value: 70,\n },\n {\n description: \"博士后\",\n value: 75,\n },\n {\n description: \"学历不限\",\n value: 999,\n },\n ],\n ],\n];\n\npreset({\n base: transform(\n baseLoaders,\n (result, value) => {\n result[value[0]] = value[1];\n },\n {}\n ),\n});\n\nexport { default } from \"@kne/react-enum\";\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 {\"helper-guide\":\"style_helper-guide__K5xFw__upeal\",\"inner\":\"style_inner__bMKeU__upeal\",\"content\":\"style_content__xTfWZ__upeal\",\"link\":\"style_link__93j7O__upeal\"};","import importMessages from \"./locale\";\nimport { IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport { Space, Typography } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport Enum from \"@components/Enum\";\n\nconst HelperGuide = ({ name, className }) => {\n return (\n <IntlProvider importMessages={importMessages} moduleName=\"HelperGuide\">\n <Enum moduleName=\"helperGuide\" name={name}>\n {(data) => {\n return (\n data &&\n data.value && (\n <div className={classnames(style[\"helper-guide\"], className)}>\n <Space className={style[\"inner\"]}>\n <Icon colorful type=\"icon-color-bangzhuyindao\" />\n <span className={style[\"content\"]}>{data.content}</span>\n {data.url && (\n <Typography.Link\n className={style[\"link\"]}\n href={data.url}\n target=\"_blank\"\n >\n 查看帮助\n <Icon type=\"icon-shuangjiantou-right\" />\n </Typography.Link>\n )}\n </Space>\n </div>\n )\n );\n }}\n </Enum>\n </IntlProvider>\n );\n};\n\nexport default HelperGuide;\n"],"names":["preset","base","transform","value","description","result","locale","en-US","zh-CN","_ref","name","className","_jsx","IntlProvider","importMessages","moduleName","children","Enum","data","classnames","style","_jsxs","Space","Icon","colorful","type","content","url","Typography","Link","href","target"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3856],{3382:(e,t,a)=>{a.r(t),a.d(t,{ModalButton:()=>W,TabsModal:()=>R,TabsModalButton:()=>V,default:()=>I,useConfirmModal:()=>P,useModal:()=>L,useTabsModal:()=>D});var l=a(89379),n=a(53986),s=a(73884),r=a(55199),o=a(83136),i=a.n(o);const c={modal:"style_modal__Pm3cF__upeal",large:"style_large__iaqVE__upeal","modal-body-inner":"style_modal-body-inner__4PhpA__upeal","modal-title":"style_modal-title__dswaw__upeal","modal-outer":"style_modal-outer__r3SkX__upeal","modal-body":"style_modal-body__jQJSI__upeal","right-options-modal":"style_right-options-modal__FajDP__upeal","right-options-row":"style_right-options-row__-mPb9__upeal","right-options-col":"style_right-options-col__3ilee__upeal","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__upeal",content:"style_content__k6MIF__upeal","modal-footer":"style_modal-footer__-prbN__upeal","modal-close":"style_modal-close__Oa5Kl__upeal","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__upeal","is-danger":"style_is-danger__H5110__upeal",title:"style_title__orTym__upeal","has-title":"style_has-title__qy0Wp__upeal"},d=e=>({"en-US":()=>a.e(4628).then(a.bind(a,74628)),"zh-CN":()=>a.e(7478).then(a.bind(a,87478))}[e]());var u=a(47458),p=a(64671);const m=(e,t)=>"function"===typeof e?e(t):e;var h=a(81014),_=a(17342),g=a(70579);const f=["ButtonComponent","onClick","autoClose","display"],x=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","confirmText","onCancel","cancelText","closable","disabledScroller","withDecorator","childrenRef"],A=["size"],y=["children"],v=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],C="Modal",j=e=>{let{options:t,rightSpan:a=6,children:l}=e;return t?(0,g.jsxs)(r.Row,{wrap:!1,className:c["right-options-row"],children:[(0,g.jsx)(r.Col,{span:24-a,className:c["right-options-col"],children:l}),(0,g.jsx)(r.Col,{span:a,className:c["right-options-col"],children:t})]}):l},b=(e,t)=>"".concat(e-48-(t?58:0),"px"),N=e=>{let{footer:t,footerButtons:a,onConfirm:o,onCancel:i,cancelText:c,onClose:p,targetProps:m}=e;return(0,g.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,g.jsx)(r.Col,{flex:1,children:t}),Array.isArray(a)&&0===a.length?null:(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Space,{children:(a||[{children:c||(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Cancel",moduleName:C})}),onClick:i},{type:"primary",children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Confirm",moduleName:C})}),onClick:o}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,t)=>{let{ButtonComponent:a,onClick:r,autoClose:o=!0,display:i}=e,c=(0,n.A)(e,f);const d=a||h.default;return(0,s.createElement)(d,(0,l.A)((0,l.A)({},c),{},{key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];const l=await Promise.resolve(r&&r(...t,m));return o&&!1!==l&&p&&p(),l}}))})})})]})},S=e=>{let{title:t,footer:a,disabledScroller:l,footerButtons:n,onClose:o,closable:d,onConfirm:u,onCancel:m,children:h,targetProps:f,cancelText:x,confirmText:A}=e;const y=(0,s.useRef)(null);return(0,g.jsxs)("div",{className:i()(c["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===d?null:(0,g.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:i()(c["modal-close"],"modal-close"),type:"text",icon:(0,g.jsx)(p.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),o&&o()}}),t&&(0,g.jsx)("div",{className:c["modal-title"],children:t}),(0,g.jsx)(_.A,{className:i()(c["modal-body"],{[c["is-disabled-scroller"]]:l},"modal-body"),ref:y,children:(0,g.jsx)("div",{className:i()(c["modal-body-inner"],"modal-body-inner"),children:h})}),null!==a||n?(0,g.jsx)("div",{className:i()(c["modal-footer"],"modal-footer"),children:(0,g.jsx)(N,{footer:a,footerButtons:n,onConfirm:u,confirmText:A,onCancel:m,cancelText:x,onClose:o,targetProps:f})}):null]})},w=e=>{let{withDecorator:t,footerButtons:a,title:n,closable:s,onClose:r,onConfirm:o,confirmText:i,onCancel:c,cancelText:d,footer:u,rightOptions:p,rightSpan:h,disabledScroller:_,childrenRef:f,children:x}=e;const A=e=>(e=Object.assign({},{title:n},e),(0,g.jsx)(S,{title:m(e.title,(0,l.A)((0,l.A)({},e),{},{childrenRef:f,close:r})),closable:s,onClose:r,onConfirm:o,confirmText:i,onCancel:c,cancelText:d,footerButtons:m(a,(0,l.A)((0,l.A)({},e),{},{close:r})),disabledScroller:_,footer:m(u,(0,l.A)((0,l.A)({},e),{},{childrenRef:f,close:r})),targetProps:Object.assign({},e,{childrenRef:f,close:r}),children:(0,g.jsx)(j,{rightSpan:h,options:m(p,(0,l.A)((0,l.A)({},e),{},{childrenRef:f,close:r})),children:m(x,(0,l.A)((0,l.A)({},e),{},{childrenRef:f,close:r}))})}));return"function"===typeof t?t(A,{childrenRef:f,close:r}):A({})},O=e=>{let{children:t,rightOptions:a,rightSpan:s,footer:r,footerButtons:o,className:p,size:m,title:h,onClose:_,onConfirm:f,confirmText:A,onCancel:y,cancelText:v,closable:C,disabledScroller:j,withDecorator:N,childrenRef:S}=e,O=(0,n.A)(e,x);return(0,l.A)((0,l.A)((0,l.A)({},O),{},{icon:null,centered:!0,title:null,maskClosable:!!O.hasOwnProperty("maskClosable")&&O.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:_,className:i()(p,c.modal,c[m],{[c["right-options-modal"]]:a})},((e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":b(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":b(300,t)}}:{width:"1000px",style:{"--min-modal-height":b(500,t)}})(m,!(null===r&&!o))),{},{children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Modal",children:w({withDecorator:N,title:h,closable:C,onClose:_,onConfirm:f,confirmText:A,onCancel:y,cancelText:v,footer:r,footerButtons:o,rightOptions:a,rightSpan:s,disabledScroller:j,children:t,childrenRef:S})})})},L=()=>{const{modal:e}=r.App.useApp(),t=(0,s.useRef)(null);return a=>{const s={},r=O((0,l.A)({onClose:()=>s.close(),childrenRef:t},a)),{children:o}=r,i=(0,n.A)(r,y),{destroy:c}=e.info((0,l.A)((0,l.A)({},i),{},{content:o}));return s.close=c,s}},P=()=>{const{modal:e}=r.App.useApp();return t=>{const a={},s=(0,l.A)({onClose:()=>a.close(),maskClosable:!1},t),{type:o,icon:d,title:u,danger:m,wrapClassName:h,message:_,iconSetting:f={},confirmType:x="info"}=s,A=(0,n.A)(s,v),y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[o]){const{destroy:t}=e[o]((0,l.A)((0,l.A)({},A),{},{icon:null,wrapClassName:i()(c["confirm-modal-wrap"],h,{[c["is-danger"]]:m}),title:(0,g.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:u&&(0,g.jsxs)(r.Space,{size:0,align:"start",className:c.title,children:[m?(0,g.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||y["confirm"===o?x:o]}):null,u]})}),content:(0,g.jsxs)(r.Space,{size:0,align:"start",className:i()(c.content,{[c["has-title"]]:u}),children:[!u&&m?(0,g.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||y["confirm"===o?x:o]}):null,_]})}));a.close=t}return a}},I=e=>{let{size:t="default"}=e,a=(0,n.A)(e,A);const o=(0,s.useRef)(null);return(0,g.jsx)(r.Modal,(0,l.A)({},O(Object.assign({},a,{size:t,childrenRef:o}))))},k=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],F=["withDecorator"],T=["children"],M=e=>{let{items:t,className:a,activeKey:s,withDecorator:o,defaultActiveKey:c,onChange:d}=e,u=(0,n.A)(e,k);return(0,l.A)((0,l.A)({},u),{},{className:i()(a,"tabs-modal"),withDecorator:e=>{const a=a=>(0,g.jsx)(r.Tabs,{items:t.map(t=>{let{withDecorator:l}=t,s=(0,n.A)(t,F);return Object.assign({},s,{children:"function"===typeof l?l(t=>e(Object.assign({},a,t,{children:s.children}))):e(Object.assign({},a,{children:s.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof o?o(a):a()},children:e=>{let{children:t}=e,a=(0,n.A)(e,T);return"function"===typeof t?t(a):t}})},R=e=>(0,g.jsx)(I,(0,l.A)({},M(e))),D=()=>{const e=L();return t=>e(M(t))};var E=a(73025);const z=["modalProps"],V=e=>{const t=D();return e.api?(0,g.jsx)(E.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:t})):(0,g.jsx)(r.Button,(0,l.A)((0,l.A)({},e),{},{onClick:()=>{t(e.modalProps)}}))},W=e=>{const t=L();if(!e.api){const{modalProps:a}=e,s=(0,n.A)(e,z);return(0,g.jsx)(r.Button,(0,l.A)((0,l.A)({},s),{},{onClick:()=>{t(a)}}))}return(0,g.jsx)(E.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:t}))}},12392:(e,t,a)=>{a.d(t,{Bm:()=>U,Eo:()=>K,NR:()=>w,Ay:()=>q});var l=a(55199),n=a(83136),s=a.n(n),r=a(89379),o=a(53986),i=a(30509),c=a(25438),d=a(78784),u=a(33097),p=a.n(u),m=a(34677),h=a.n(m);const _="create-list_scroll-loader__zoaS7__upeal",g="create-list_is-popup__t3d-G__upeal",f="create-list_is-not-full__FXtX1__upeal",x="create-list_search-input__tV3vf__upeal",A="create-list_left__EXr3i__upeal",y="create-list_list-header__3xeJa__upeal",v="create-list_is-modal__BMfya__upeal";var C=a(73161),j=a(47458),b=a(70579);const N=["extra"],S=i.A.useContext,w=e=>{let{renderList:t,defaultProps:a}=e;const n=e=>{let{value:a,setValue:n}=e;const{fetchApi:r,searchText:o,setSearchText:i,props:u,mapping:m}=S(),N=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},u.pagination),w=p()(r.requestParams,[N.paramsType,N.current],1),O=p()(r.requestParams,[N.paramsType,N.pageSizeName])||N.pageSize,{formatMessage:L}=(0,j.useIntl)({moduleName:"Common"}),P=u.dataFormat(r.data),{right:I,leftBottom:k,leftSpan:F=24}=u,T=1===a.length&&"all"===a[0];return(0,b.jsxs)(l.Row,{wrap:!1,className:I?s()("is-not-full",f):"",children:[(0,b.jsxs)(l.Col,{span:F,className:s()(A,"advance-select-left"),children:[u.getSearchProps?(0,b.jsx)(C.A,{isPopup:u.isPopup,className:s()(x,c.A["search-input"],{[c.A["is-popup"]]:u.isPopup}),placeholder:u.searchPlaceholder||L({id:"search"}),value:o,onSearch:e=>{r.reload(u.getSearchProps(e)),i(e)}}):null,u.single||!u.showSelectedCount&&!u.allowSelectAll?null:(0,b.jsxs)(l.Flex,{className:s()(y,{[v]:!u.isPopup}),justify:"space-between",children:[u.showSelectedCount?(0,b.jsxs)(l.Space,{children:[(0,b.jsx)(l.Typography,{children:"\u5df2\u9009:"}),(0,b.jsx)(l.Typography.Link,{children:T?u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"}):"".concat(a.length).concat(u.countUnit||L({id:"items"}))})]}):(0,b.jsx)("div",{}),u.allowSelectAll?(0,b.jsx)("div",{children:(0,b.jsx)(l.Checkbox,{checked:T,onChange:e=>{n(e.target.checked?[u.allValue||"all"]:[])},children:(0,b.jsx)(j.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,b.jsx)("div",{})]}),(0,b.jsx)(d.default,{completeTips:"",isLoading:!r.isComplete,className:s()(_,{[g]:u.isPopup}),noMore:!P.total||w*O>=P.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(h()({[N.paramsType]:{[N.pageSizeName]:O,[N.current]:w+1}},u.getSearchProps&&u.getSearchProps(o)),u.mergeList)},children:(()=>{const e={props:u,value:a,setValue:n,list:P.list,data:r.data,fetchApi:r,itemIsSelected:e=>a.indexOf(e.value)>-1,isSelectedAll:T,onSelect:e=>{if(u.single)return void n([e.value]);const t=a.slice(0),l=t.indexOf(e.value);l>-1?t.splice(l,1):t.push(e.value),n(t)}},l=t(e);return"function"===typeof u.dropdownRender?u.dropdownRender(Object.assign({},e,{children:l})):l})()}),k&&k({fetchApi:r,value:a,mapping:m})]}),I&&I({value:a,mapping:m,fetchApi:r})]})},u=e=>{let{extra:t}=e,a=(0,o.A)(e,N);return(0,b.jsx)(i.A,(0,r.A)((0,r.A)({},a),{},{extra:t,children:e=>{let{value:t,setValue:a}=e;return(0,b.jsx)(n,{value:t,setValue:a})}}))};return u.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},a),u},O="list_list__TGynD__upeal",L="list_list-item__WSswf__upeal",P="list_is-selected__6Wkgt__upeal",I="list_item-label__bYzhe__upeal",k="list_item-des__2nsEn__upeal",F="list_is-disabled__qxCvO__upeal",T="list_is-selected-all__Mp-hG__upeal";var M=a(40438),R=a(64671);const D="user_list-inner__V508e__upeal",E="user_list-info__y2nWo__upeal",z="user_selected-icon__9OQJL__upeal",V="user_item-des__o+7UR__upeal",W="user_is-selected-all__2q0VZ__upeal",K=w({renderList:e=>{let{list:t,onSelect:a,itemIsSelected:n,isSelectedAll:o}=e;return(0,b.jsx)(l.List,{size:"small",className:s()(O,{[T]:o,[W]:o}),dataSource:t,renderItem:e=>{const t=n(e);return(0,b.jsx)(l.List.Item,{className:s()(L,{[P]:t}),onClick:()=>a(e),children:(0,b.jsxs)(l.Row,{wrap:!1,align:"middle",className:D,children:[(0,b.jsx)(l.Col,{children:(0,b.jsx)(M.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e.avatar)),{},{size:40,gender:"M"}))}),(0,b.jsx)(l.Col,{className:E,flex:1,children:(0,b.jsxs)(l.Space,{direction:"vertical",children:[(0,b.jsx)("span",{className:I,children:e.label}),e.description&&(0,b.jsx)("span",{className:V,children:e.description})]})}),(0,b.jsx)(l.Col,{children:o||t?(0,b.jsx)(R.default,{className:z,type:"icon-gouxuan"}):null})]})})}})}}),B={"is-selected-all":"table_is-selected-all__IwXUY__upeal"},U=w({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:a,onSelect:n,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,b.jsx)(l.Table,{className:s()(B.list,O,{[T]:c,[B["is-selected-all"]]:c}),size:"small",dataSource:a,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:a.map(e=>{let{value:t}=e;return t}),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>n(e)})})}}),q=w({renderList:e=>{let{props:t,list:a,itemIsSelected:n,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,b.jsx)(l.List,{className:s()(O,i,{[T]:r}),size:"small",dataSource:a,renderItem:e=>{var a;const i=n(e);return(0,b.jsxs)(l.List.Item,{className:s()(L,{[P]:t.single&&i,[F]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,b.jsxs)(l.Row,{wrap:!1,children:[t.single?null:(0,b.jsx)(l.Col,{children:(0,b.jsx)(l.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,b.jsx)(l.Col,{children:(0,b.jsxs)(l.Space,{className:null!==(a=null===e||void 0===e?void 0:e.className)&&void 0!==a?a:"",children:[(0,b.jsx)("span",{className:I,children:e.label}),e.description&&(0,b.jsx)("span",{className:k,children:e.description})]})})]}),i&&c]})}})}})},17342:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(34581),n=a.n(l);a(46733);const s=n()},17508:(e,t,a)=>{a.d(t,{AG:()=>y,Ay:()=>f,FI:()=>A,Zi:()=>x,lN:()=>s.useFileUpload});var l=a(89379),n=a(53986),s=a(36125),r=a(55199),o=a(83136),i=a.n(o),c=a(70579);const d=["className","multiple","accept","onChange","children"],u=["children"],p=["children"],m=["className","multiple","accept","onChange","children"],h=["children"],_=["className","multiple","accept","onChange","children"],g=["children"],f=e=>t=>{let{className:a,multiple:r,accept:o,onChange:i,children:p}=t,m=(0,n.A)(t,d);return(0,c.jsx)(s.FileInput,{className:a,multiple:r,accept:o,onChange:i,children:t=>{let{children:a}=t,s=(0,n.A)(t,u);return(0,c.jsxs)(e,(0,l.A)((0,l.A)({},Object.assign({},m,s)),{},{children:[p,a]}))}})},x=e=>{let{children:t}=e,a=(0,n.A)(e,p);return(0,c.jsx)(s.FileInput,(0,l.A)((0,l.A)({},a),{},{buttonText:t}))},A=e=>{let{className:t,multiple:a,accept:o,onChange:i,children:d}=e,u=(0,n.A)(e,m);return(0,c.jsx)(s.FileInput,{className:t,multiple:a,accept:o,onChange:i,children:e=>{let{children:t}=e,a=(0,n.A)(e,h);return(0,c.jsxs)(r.Typography.Link,(0,l.A)((0,l.A)({},Object.assign({},u,a)),{},{children:[d,t]}))}})},y=e=>{let{className:t,multiple:a,accept:o,onChange:d,children:u}=e,p=(0,n.A)(e,_);return(0,c.jsx)(s.FileInput,{className:i()(t,"ant-btn"),multiple:a,accept:o,onChange:d,children:e=>{let{children:t}=e,a=(0,n.A)(e,g);return(0,c.jsxs)(r.Typography.Text,(0,l.A)((0,l.A)({},Object.assign({},p,a)),{},{children:[u,t]}))}})}},18411:(e,t,a)=>{a.d(t,{A:()=>l});a(73884);const l=a.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},20492:(e,t,a)=>{a.d(t,{A:()=>l});const l=e=>({"en-US":()=>a.e(3086).then(a.bind(a,13086)),"zh-CN":()=>a.e(4308).then(a.bind(a,84308))}[e]())},21485:(e,t,a)=>{a.d(t,{A:()=>p});var l=a(89379),n=a(53986),s=a(73884),r=a(71298),o=a.n(r),i=a(96418),c=a.n(i),d=a(70579);const u=["children","onScroll","options","onReady"],p=(0,s.forwardRef)((e,t)=>{let{children:a,onScroll:r,options:i,onReady:p}=e,m=(0,n.A)(e,u);const h=(0,s.useRef)(null),_=(0,s.useRef)(null),g=(0,s.useRef)(i),f=c()(p),x=c()(r);return(0,s.useImperativeHandle)(t,()=>_.current),(0,s.useEffect)(()=>{const e=new(o())(h.current,g.current);return _.current=e.getScrollElement(),_.current.addEventListener("scroll",x),f(_.current),()=>{_.current.removeEventListener("scroll",x)}},[x,f,a]),(0,d.jsx)("div",(0,l.A)((0,l.A)({},m),{},{ref:h,children:a}))})},25438:(e,t,a)=>{a.d(t,{A:()=>l});const l={"search-input":"common_search-input__P6qLg__upeal","is-popup":"common_is-popup__fJq+g__upeal",list:"common_list__TKFzS__upeal","list-item":"common_list-item__ASse7__upeal","is-selected":"common_is-selected__-PU4Y__upeal","item-label":"common_item-label__u+qz1__upeal","item-des":"common_item-des__no2z0__upeal"}},27047:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(83694),n=a(33097),s=a.n(n);const r=()=>{const e=(0,l.useGlobalContext)();return s()(e,"preset",{apis:{}})}},30509:(e,t,a)=>{a.d(t,{A:()=>X});var l=a(89379),n=a(53986);const s={"ant-tag":"style_ant-tag__nNp8-__upeal",overlay:"style_overlay__La5mO__upeal",input:"style_input__SpJTE__upeal","is-disabled":"style_is-disabled__joxdl__upeal","input-icon":"style_input-icon__vVd8R__upeal",large:"style_large__En6mL__upeal",small:"style_small__DY0AQ__upeal","input-inner":"style_input-inner__PWy27__upeal","input-custom":"style_input-custom__ktsWD__upeal","display-content":"style_display-content__hIKo+__upeal","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__upeal","selected-tag":"style_selected-tag__zXZZO__upeal","selected-tag-list":"style_selected-tag-list__xUIms__upeal","selected-tag-inner":"style_selected-tag-inner__Z5gPL__upeal","text-inner":"style_text-inner__H24hY__upeal",placeholder:"style_placeholder__x0ccE__upeal","is-modal":"style_is-modal__JU+uq__upeal","overlay-content":"style_overlay-content__WKqp+__upeal"};var r=a(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,r.A)();var u=a(73884),p=a(10986),m=a.n(p),h=a(87558),_=a(33097),g=a.n(_),f=a(55199),x=a(83136),A=a.n(x),y=a(3382),v=a(64671),C=a(79686),j=a.n(C),b=a(41740),N=a.n(b),S=a(74065),w=a.n(S),O=a(21485),L=a(96418),P=a.n(L),I=a(77964),k=a(91176),F=a(47458),T=a(20492),M=a(27047),R=a(70579);const D=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],E=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName","overlayClassName","disabled"],z=["setFetchApi","wrapClassName","getContentRef"],V=["api","className","displayItems","wrapClassName"],W=e=>{let{maxLength:t,single:a,setValue:l,value:n,message:s}=e;return e=>l(!a&&Number.isInteger(t)&&t>0&&e.length>t?(s(),n):e)},K=e=>{let{single:t,value:a,mapping:l,allValue:n,allLabel:r,onClose:o}=e;return a&&Array.isArray(a)&&0!==a.length?t?(0,R.jsx)("span",{className:s["text-inner"],children:g()(l.get(a[0]),"label")||a[0]}):1===a.length&&a[0]===(n||"all")?(0,R.jsx)("span",{className:s["text-inner"],children:r||(0,R.jsx)(F.FormattedMessage,{id:"all",moduleName:"Common"})}):a.map(e=>{const t=l.get(e);return(0,R.jsx)(f.Tag,{className:s["display-tag"],closable:!0,onClose:a=>{a.preventDefault(),o(e,t)},children:(0,R.jsx)("span",{className:s["tag-inner"],children:g()(t,"label")||e})},e)}):null},B=(0,u.forwardRef)((e,t)=>{let{value:a,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,n.A)(e,D);const[m,h]=(0,u.useState)(a),_=(0,u.useRef)(a),{formatMessage:g}=(0,F.useIntl)({moduleName:"Common"});_.current=a;const[x,A]=(0,u.useState)(!1),v=e=>{var t;A(e),null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},{message:C}=f.App.useApp(),j=W({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:()=>C.error(g({id:"maxSelectedCount"},{count:p.maxLength}))});return(0,u.useEffect)(()=>{x&&h(_.current)},[x]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{v(!0)},close:()=>{v(!1)}})),(0,R.jsx)(y.default,(0,l.A)((0,l.A)({},p),{},{open:x,onConfirm:()=>{r(m)},onClose:()=>{v(!1)},footer:(0,R.jsxs)(f.Space,{direction:"vertical",className:s["overlay-footer"],children:[o&&(0,R.jsx)("div",{className:s["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:j})]}),children:"function"===typeof d?d({value:m,setValue:j}):d}))}),U=(0,u.forwardRef)((e,t)=>{let{value:a,setValue:r,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:_,wrapClassName:g,overlayClassName:x,disabled:y}=e,v=(0,n.A)(e,E);const[C,j]=(0,u.useState)(!1),b=P()(e=>{var t;j(e),null===(t=v.onOpenChange)||void 0===t||t.call(v,e)});return(0,u.useImperativeHandle)(t,()=>({close:()=>{b(!1)}}),[b]),y?(0,R.jsx)("div",{className:s["input-inner"],children:p}):(0,R.jsx)(f.Popover,(0,l.A)((0,l.A)({},v),{},{open:C,onOpenChange:b,transitionName:"ant-slide-up",overlayClassName:A()(s.overlay,x),arrow:!1,content:(0,R.jsxs)("div",{style:_?{"--overlay-width":_}:{},className:A()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,R.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof o?o({value:a,setValue:e=>{(!m||a[0]!==e[0])&&r(e),m&&b(!1)}}):o}),(c||h)&&(0,R.jsxs)("div",{className:s["overlay-footer"],children:[h&&(0,R.jsx)("div",{className:s["overlay-footer-extra"],children:h}),c&&i({value:a,setValue:r})]})]}),trigger:"click",placement:d,children:(0,R.jsx)("div",{className:s["input-inner"],children:p})}))}),q=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:a,getContentRef:l}=e,r=(0,n.A)(e,z);const[o,c]=(0,u.useState)(!1),d=(0,u.useRef)(null),p=(0,u.useRef)(null),m=i(),{valueState:h,mapping:_,props:g,inputWidth:x}=m,[y,C]=h,{formatMessage:j}=(0,F.useIntl)({moduleName:"Common"}),{single:b,placement:N,getPopupContainer:S,placeholder:w,isPopup:L,disabled:I,showSelectedTag:T,extra:M,inputContent:D,allowClear:E,overlayClassName:V}=g,W=(0,u.useRef)(r);W.current=r;const q=P()(l);(0,u.useEffect)(()=>{q(L?p:d)},[L,q]),(0,u.useEffect)(()=>{t(Object.assign({},W.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const Q=K({single:b,value:y,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{C(t=>{const a=t.slice(0),l=t.indexOf(e);return l>-1&&a.splice(l,1),a})}}),H=e=>{let{value:t,setValue:a}=e;return(0,R.jsxs)(f.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,R.jsxs)("div",{children:[(0,R.jsx)(F.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,R.jsx)(O.A,{className:s["selected-tag-list"],children:(0,R.jsx)("div",{className:s["selected-tag-inner"],children:K({value:t,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{a(t=>{const a=t.slice(0),l=t.indexOf(e);return l>-1&&a.splice(l,1),a})}})})})]})},X=D?D(m):(0,R.jsxs)(f.Space,{className:s["display-content"],onMouseOver:()=>{c(!0)},onMouseOut:()=>{c(!1)},children:[(0,R.jsx)("div",{children:Q||(0,R.jsx)("span",{className:s.placeholder,children:w||j({id:"pleaseSelect"})})}),o&&y&&y.length>0&&!I&&E?(0,R.jsx)(v.default,{className:A()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),C([])}}):(0,R.jsx)(v.default,{className:A()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return L?(0,R.jsx)(U,{ref:p,overlayWidth:(0,k.v)(Math.max(x,(0,k.j)(g.overlayWidth))),value:y,setValue:C,single:b,disabled:I,inputContent:X,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof M?M({close:()=>p.current.close(),context:m}):M,renderSelectedContent:H,showSelectedTag:T,trigger:"click",placement:N,getPopupContainer:S,children:g.children}):(0,R.jsxs)("div",{className:s["input-inner"],onClick:()=>{I||d.current.modalOpen()},children:[(0,R.jsx)(B,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:A()(s.overlay,s["is-modal"],a),title:g.placeholder||j({id:"pleaseSelect"}),value:y,onChange:C,extra:"function"===typeof M?M({close:()=>d.current.close(),context:m}):M,showSelectedTag:T,renderSelectedContent:H,children:g.children}),X]})}),Q=e=>{let{api:t,className:a,displayItems:r,wrapClassName:o}=e,i=(0,n.A)(e,V);const{locale:d}=(0,M.A)(),[p,h]=(0,u.useState)(""),[_,x]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),{formatMessage:y}=(0,F.useIntl)({moduleName:"Common"}),[v,C]=(0,u.useState)(0),b=(0,I.A)(e=>{C(e.clientWidth)}),[S,O]=(0,u.useState)({}),{message:L}=f.App.useApp(),P=e=>{const t=e.filter(e=>_.get(e.value)!==e);0!==t.length&&x(e=>{const a=N()(e);return t.forEach(e=>{a.set(e.value,e)}),a})},k=e=>((e,t)=>Array.isArray(e)&&e.every(e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label"))?(t(e),e.map(e=>e.value)):e)(i.single?j()(e)?[]:[e]:e||[],P,i.valueType),[T,D]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,a)=>"all"!==a?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,_,i.valueType);i.onChange&&i.onChange(i.single?w()(t):t)}},"value"in i?{value:k(i.value)}:{defaultValue:k(i.defaultValue)})),E=W({maxLength:i.maxLength,single:i.single,setValue:D,value:T,message:()=>L.error(y({id:"maxSelectedCount"},{count:i.maxLength}))}),z=(0,u.useRef)(null);return(0,R.jsx)(c,{value:{inputWidth:v,mapping:_,searchText:p,setSearchText:h,appendMapping:P,setItems:e=>{S.setData(e),P(g()(i.dataFormat(e,{locale:d}),"list",[]))},getContentApi:()=>z.current,fetchApi:S,valueState:[T,E],props:i},children:(0,R.jsx)("div",{ref:b,className:A()(s["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],{"select-input-disabled":!!i.disabled},a),children:(0,R.jsx)(q,(0,l.A)((0,l.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:O,getContentRef:e=>{e.current&&(z.current=e.current)},onRequestSuccess:e=>{P(g()(i.dataFormat(e,{locale:d}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};Q.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const H=(0,F.createWithIntl)({importMessages:T.A,moduleName:"Common"})(Q);H.useContext=i;const X=H},40438:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var l=a(89379),n=a(53986),s=a(87558),r=a.n(s),o=a(97211),i=a(64671),c=a(83136),d=a.n(c),u=a(55199),p=a(73884);const m=e=>{let{params:t}=e;const{data:a}=t;return new Promise((e,t)=>{const l=new window.Image;l.src=a,l.addEventListener("load",()=>{e(a)}),l.addEventListener("error",e=>{t(e)})})},h="style_img-outer__4QLY5__upeal",_="style_img__PSExq__upeal",g="style_loading__WCOwA__upeal",f="style_error__+ECgZ__upeal";var x=a(18411),A=a(63743),y=a(70579);const v=["id","src","alt","onClick","loading","error","className","apis"],C=["id","src","alt","gender","loading","error","className","gap","icon","children","shape","size","width","height","defaultAvatar","apis"],j=e=>{let{data:t,className:a,alt:l,innerLoading:n,loading:s=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,y.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:c,children:p,onClick:h,staticUrl:g}=e;const{staticUrl:f}=(0,A.usePreset)(),x=g||f||"";return(0,y.jsx)(r(),{loader:m,params:{data:/^https?:\/\//.test(t)?t:x+t},error:c||o,loading:n||s,render:e=>{let{data:t}=e;return"function"===typeof p?p({alt:l,className:d()(a,_),src:t}):(0,y.jsx)("img",{alt:l,className:d()(a,_),src:t,onClick:h})}})},b=(0,o.A)(j),N=e=>{let{loading:t,error:a,src:l,id:n,alt:s,className:r,children:o,apis:i,onClick:c}=e;const d=t&&(0,p.cloneElement)(t,{className:g}),u=a&&(0,p.cloneElement)(a,{className:f});return l?(0,y.jsx)(j,{alt:s,className:r,data:l,loading:d,error:u,onClick:c,children:o}):n?(0,y.jsx)(b,{alt:s,className:r,id:n,loading:d,innerLoading:d,error:u,innerError:u,apis:i,onClick:c,children:o}):u},S=e=>{let{id:t,src:a,alt:s,onClick:r,loading:o=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,y.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,apis:m}=e,_=(0,n.A)(e,v);return(0,y.jsx)("div",(0,l.A)((0,l.A)({},_),{},{"data-testid":"components-core-image",className:d()(p,h),children:N({loading:o,error:c,src:a,id:t,alt:s,className:p,apis:m,onClick:r})}))};S.Avatar=e=>{let{id:t,src:a,alt:s,gender:r,loading:o=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,y.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,gap:m,icon:_,children:g,shape:f,size:A=100,width:v,height:j,defaultAvatar:b=x.A,apis:S}=e,w=(0,n.A)(e,C);const O=(()=>{const e=v&&j?{style:{width:v,height:j}}:{size:A};if(v&&v!==j&&(f="square"),t||a)return N({loading:o,error:c,src:a,defaultAvatar:b,id:t,alt:s,className:p,apis:S,children:t=>(0,y.jsx)(u.Avatar,(0,l.A)((0,l.A)({},t),{},{gap:m,shape:f},e))});if(r){const t=r&&["F","female","f"].indexOf(r)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,y.jsx)(u.Avatar,(0,l.A)((0,l.A)({},w),{},{src:(0,y.jsx)(i.default,{role:"touxiang",colorful:!0,type:t}),gap:m,shape:f},e))}return(0,y.jsx)(u.Avatar,(0,l.A)((0,l.A)((0,l.A)({},w),{},{gap:m,icon:_,shape:f,size:A,src:b},e),{},{children:g}))})();return(0,y.jsx)("div",(0,l.A)((0,l.A)({},w),{},{"data-testid":"components-core-image-avatar",className:d()(p,h),style:{width:v&&j?v:A,height:v&&j?j:A},children:O}))};const w=S},41654:(e,t,a)=>{a.d(t,{A:()=>f,K:()=>g});var l=a(89379),n=a(53986),s=a(45776),r=a(27047),o=a(33097),i=a.n(o),c=a(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m=()=>a.e(719).then(a.t.bind(a,10719,19)).then(e=>e.__esModule?e.default:e),h={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:m},_=e=>{let{apis:t}=e,a=(0,n.A)(e,d);const{apis:o,locale:i}=(0,r.A)(),u=Object.assign({},{functionData:h},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.Ay,(0,l.A)((0,l.A)({},a),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:a}=(0,s.ON)(new Map(t.map(e=>[e.code,(0,l.A)((0,l.A)({},e),{},{id:e.code,label:p(e,i),parentId:e.parentCode||null})])));return a}},u.functionData)}))};_.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},_.defaultData=m;const g=e=>{let{apis:t}=e,a=(0,n.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{functionData:h},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,l.A)((0,l.A)((0,l.A)({},a),d.functionData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};_.FunctionEnum=_.Enum=g;const f=_},43856:(e,t,a)=>{a.r(t),a.d(t,{AddressEnum:()=>m.qn,AddressInputField:()=>m.TM,AddressSelectField:()=>m.Ay,AdvancedSelectField:()=>h.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FetchScrollLoader:()=>o.FetchScrollLoader,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>p.Zi,InputFileLink:()=>p.FI,InputFileText:()=>p.AG,ScrollLoader:()=>o.default,SearchInput:()=>d.A,SelectInnerInput:()=>u.A,SimpleBar:()=>c.A,SuperSelectField:()=>_.Ay,SuperSelectTableListField:()=>_.e0,SuperSelectTreeField:()=>_.ec,SuperSelectUserField:()=>_.$9,TableField:()=>h.Bm,TypeDateRangePickerField:()=>A.A,UserField:()=>h.Eo,accept:()=>v.A,changeMoneyToChinese:()=>l.A,createAddressApi:()=>m.LH,createDeferred:()=>j(),createListField:()=>h.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>n.c,getPopupContainer:()=>s,getScrollEl:()=>n.h,isNotEmpty:()=>b.A,numberToPx:()=>N.v,pxToNumber:()=>N.j,useFileUpload:()=>p.lN,useResize:()=>y.A,withAddressApi:()=>m.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var l=a(69484),n=a(76801);const s=e=>{const t=e=>{const a=(0,n.h)();if(!e||e===a||!e.parentElement)return a;return[].slice.call(e.classList,0).find(e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1)?e:t(e.parentElement)};return t(e)};var r=a(97211),o=a(78784),i=a(73025),c=a(17342),d=a(73161),u=a(30509),p=a(17508),m=a(93761),h=a(12392),_=a(60586),g=a(45776),f=a(41654),x=a(53392),A=a(89319),y=a(77964),v=a(81348),C=a(1582),j=a.n(C),b=a(55490),N=a(91176)},45776:(e,t,a)=>{a.d(t,{yK:()=>T,ON:()=>g,Ay:()=>V});var l=a(53986),n=a(89379),s=a(30509),r=a(73884),o=a(96418),i=a.n(o),c=a(55199),d=a(64671),u=a(73161),p=a(33097),m=a.n(p),h=a(79686),_=a.n(h);const g=e=>{const t=Array.from(e.values()),a=t.filter(e=>null===e.parentId),l=(e,t)=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)},n=t=>{const a=[],l=t=>{const n=e.get(t);n&&Array.isArray(n.children)&&n.children.length>0&&(a.push(...n.children),n.children.forEach(e=>{l(e.id)}))};return l(t),a},s=(t,a)=>{const l=t=>{const n=e.get(t);return n?a(n)?n:_()(n.parentId)?null:l(n.parentId):null};return l(t)},r=t=>{const l=e.get(t);if(!l)return[];const n=l.parentId;if(_()(n))return a;return e.get(n).children},o=(()=>{const e=a=>Array.isArray(a)&&a.length>0?a.map(a=>{const l=t.filter(e=>e.parentId===a.id);return Object.assign({},a,{children:e(l)})}):null;return e(a)})();return{mapping:e,getSelectedQueue:t=>{const a=e.get(t);if(!a)return[];const l=e=>{if(e.children&&e.children.length>0)return l(e.children.find(t=>t.children&&e.children.length>0)||m()(e.children,"0"));const t=n(e.parentId).find(e=>e.children&&e.children.length>0);return t?l(t):e},s=function(t){const a=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],l=e.get(t);return!l||_()(l.parentId)?a:s(l.parentId,a)},r=l(a);return s(m()(r,"id"))},getAllChildren:n,computedCheckboxStatus:function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,e=>a.indexOf(e.id)>-1))return{checked:!0,indeterminate:!1};const l=(t=>{const l=t=>{const n=e.get(t);return n?(s=n,a.indexOf(s.id)>-1?n:Array.isArray(n.children)&&n.children.length>0?n.children.find(e=>!!l(e.id)):void 0):null;var s};return!!l(t)})(t);return l?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;a.push(t),n(t).forEach(e=>{l(a,e.id)});const i=r(t),c=i.every(e=>a.indexOf(e.id)>-1);o.parentId&&c&&(i.forEach(e=>{l(a,e.id)}),s(o.parentId))};return s(t),a},setNodeUnchecked:function(t){const a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),n=t=>{const s=e.get(t);if(!s)return;if(a.indexOf(s.id)>-1)return void l(a,s.id);const o=r(t);s.parentId&&(o.forEach(e=>{t!==e.id&&a.push(e.id)}),n(s.parentId))};return n(t),a},treeData:o,treeMapping:new Map(o.map(e=>[e.id,e]))}};var f=a(74065),x=a.n(f),A=a(19853),y=a.n(A),v=a(17342),C=a(83136),j=a.n(C);const b={content:"style_content__Hxlt9__upeal",columns:"style_columns__FmtPF__upeal","content-item":"style_content-item__i6HCO__upeal","last-level-area":"style_last-level-area__2y7jQ__upeal","is-popup":"style_is-popup__+r3Mn__upeal",menu:"style_menu__WZUVE__upeal","scroll-plus-box":"style_scroll-plus-box__QcTst__upeal","menu-label":"style_menu-label__iGt0Z__upeal","menu-item":"style_menu-item__hXHfm__upeal","checkbox-hidden":"style_checkbox-hidden__Xpx7J__upeal",loading:"style_loading__ZwrVe__upeal"};var N=a(87558),S=a(47458),w=a(25438),O=a(70579),L=a(27047);const P=["data","name","type","cache","children","getLabel"],I=new Map,k=(0,N.withFetch)(e=>{let{data:t,name:a,type:s,cache:o,children:i,getLabel:c}=e,d=(0,l.A)(e,P);const u=(0,r.useMemo)(()=>new Map(t.map(e=>[e.code,(0,n.A)((0,n.A)({},e),{},{id:e.code,label:c?c(e):e.chName,parentId:e.parentCode||null})])),[t,c]).get(a);return I.set("".concat(a,"_").concat(s),u),i(u,d)}),F=e=>{const{locale:t}=(0,L.A)(),a="".concat(t,"_").concat(e.name,"_").concat(e.type),l=I.get(a);return l&&!e.force?e.children(l):(0,O.jsx)(k,(0,n.A)({},e))};F.defaultProps={children:e=>m()(e,"label","")};const T=F,M=["maxLength","nodeFormat","dataFormat"],R=s.A.useContext,D=(0,N.withFetch)(e=>{let{data:t,computedIsChecked:a,onSelect:l}=e;return(0,O.jsx)(v.A,{className:b["scroll-plus-box"],children:(0,O.jsx)(c.List,{className:w.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=a(e);return(0,O.jsx)(c.List.Item,{className:j()(w.A["list-item"],{[w.A["is-selected"]]:t}),onClick:()=>l(e,t),children:(0,O.jsx)("span",{className:w.A["item-label"],children:e.label})})}})})}),E=e=>{let{value:t,setValue:a,size:l,selectLevel:s}=e;const{fetchApi:o,props:p}=R(),[h,_]=(0,r.useState)(""),f=i()(p.dataFormat),{formatMessage:A}=(0,S.useIntl)({moduleName:"Common"}),C=o.data,N=(0,r.useMemo)(()=>new Map(f(C).list.map(e=>[e.value,e])),[C,f]),L=(0,r.useMemo)(()=>g(N),[N]),P=(0,r.useRef)({});P.current={createMergeTree:p.createMergeTree,loadMore:o.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:L};const[I,k]=(0,r.useState)(()=>{const e=t.find(e=>!!N.get(e));return L.getSelectedQueue(e||m()(o.data.find(e=>e.children&&e.children.length>0),"id")||m()(o.data,"[0].id"),N)});(0,r.useEffect)(()=>{const{openLoadData:e,loadMore:t,parentIdKey:a,createMergeTree:l,treeUtils:n}=P.current;if(!e)return;const s=N.get(x()(I));if(!s)return;const r=n.getSelectedQueue(s.id);y()(I,r)?s.hasOwnProperty("children")||t({data:{[a]:s.id}},l(s.id)):k(r)},[I,N]);const F=(e,n)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(n),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(n),1),e}return e?L.setNodeChecked(n,t):L.setNodeUnchecked(n,t)})();s.length>l?c.message.error(A({id:"maxSelectedCount"},{count:l})):a(p.single&&s.length>0?[x()(s)]:s)},T=e=>{const t=N.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},M=!p.openLoadData&&"function"===typeof p.onSearch,E=M&&h&&(0,O.jsx)(D,{data:{searchText:h},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:N})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{F(!t,e.id),!t&&k(L.getSelectedQueue(e.id,N)),_("")}});return(0,O.jsxs)("div",{className:j()(b.content,{[b["is-popup"]]:p.isPopup,[b["has-search"]]:M}),style:{"--menu-item-width":p.menuItemWidth},children:[M&&(0,O.jsx)(u.A,{isPopup:p.isPopup,className:j()(w.A["search-input"],{[w.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||A({id:"search"}),value:h,onSearch:e=>{_(e)}}),E||(0,O.jsx)("div",{children:(0,O.jsx)(v.A,{className:b.scroller,options:{autoHide:!1},children:(0,O.jsxs)("div",{className:b.columns,children:[I.map((e,a)=>{const l=N.get(e),o=L.getSiblingNode(e),i=!T(null===l||void 0===l?void 0:l.id)&&a>0;return(0,O.jsx)(v.A,{className:j()(b["content-item"],{[b["last-level-area"]]:i}),children:i?(0,O.jsx)(c.Space,{wrap:!0,children:o.map(e=>(0,r.createElement)(c.Checkbox,(0,n.A)((0,n.A)({},L.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>F(t.target.checked,e.id)}),e.label))}):(0,O.jsx)(c.Menu,{className:j()(b.menu),onSelect:e=>{const a=N.get(e.key);if(a)if(T(a.id))k(L.getSelectedQueue(a.id,N));else{const{checked:e}=L.computedCheckboxStatus(a.id,t);F(!e,a.id)}},selectedKeys:a===I.length-1?[]:I,items:o.map(e=>({key:e.id,label:(0,O.jsxs)(c.Space,{className:j()(b["menu-item"],{[b["checkbox-hidden"]]:p.onlyAllowLastLevel&&T(e.id)}),children:[!p.onlyAllowLastLevel&&(0,O.jsx)(c.Checkbox,(0,n.A)((0,n.A)({},L.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>F(t.target.checked,e.id)})),(0,O.jsx)("div",{className:b["menu-label"],children:e.label}),T(e.id)&&(0,O.jsx)(d.default,{className:b["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},m()(o,"[0].id",a))}),o.isComplete?null:(0,O.jsx)("div",{className:b.loading,children:(0,O.jsx)(c.Spin,{size:"small"})})]})})})]})},z=e=>{let{maxLength:t,nodeFormat:a,dataFormat:r}=e,o=(0,l.A)(e,M);return(0,O.jsx)(s.A,(0,n.A)((0,n.A)({},o),{},{dataFormat:e=>r(e,a),children:e=>{let{value:a,setValue:l}=e;return(0,O.jsx)(E,(0,n.A)((0,n.A)({},o),{},{size:t,value:a,setValue:l}))}}))};z.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:a}=t;return Array.from(a.values()).filter(t=>t.label.indexOf(e)>-1)},dataFormat:(e,t)=>{const a=(e,l)=>{const n=[];return n.push(...(e||[]).map(e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&n.push(...a(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:l})))),n};return{list:a(e,null)}},createMergeTree:e=>(t,a)=>{const l=t=>t.map(t=>t.id===e?Object.assign({},t,{children:a&&a.map(t=>Object.assign({},t,{parentId:e}))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:l(t.children)}):t);return l(t)}};const V=z},53392:(e,t,a)=>{a.d(t,{A:()=>g,W:()=>_});var l=a(89379),n=a(53986),s=a(45776),r=a(27047),o=a(33097),i=a.n(o),c=a(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>a.e(7183).then(a.t.bind(a,57183,19)).then(e=>e.__esModule?e.default:e)},h=e=>{let{apis:t}=e,a=(0,n.A)(e,d);const{apis:o,locale:i}=(0,r.A)(),u=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.Ay,(0,l.A)((0,l.A)({},a),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:a}=(0,s.ON)(new Map(t.filter(e=>"000"!==e.code).map(e=>[e.code,(0,l.A)((0,l.A)({},e),{},{id:e.code,label:p(e,i),parentId:e.parentCode||null})])));return a}},u.industryData)}))};h.defaultProps={overlayWidth:"635px"};const _=e=>{let{apis:t}=e,a=(0,n.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,l.A)((0,l.A)((0,l.A)({},a),d.industryData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};h.IndustryEnum=h.Enum=_;const g=h},55490:(e,t,a)=>{a.d(t,{A:()=>l.isNotEmpty});var l=a(39129)},60586:(e,t,a)=>{a.d(t,{e0:()=>A,ec:()=>y,$9:()=>v,Ay:()=>x});var l=a(89379),n=a(73884),s=a(54176),r=a.n(s),o=a(3382),i=a(40438),c=a(55199);const d="style_select-list-item-description__ndJSX__upeal",u="style_select-list-item-label__gyGnt__upeal",p="style_select-list-item-content__2VJnt__upeal";var m=a(83136),h=a.n(m),_=(a(96316),a(70579));const g=e=>{const{props:t,open:a,onOpenChange:l,value:n,onComplete:r}=e,{placeholder:i,children:c,showSelectedTag:d,onConfirm:u}=t;return(0,_.jsx)(o.default,{title:i,open:a,onClose:()=>{l(!1)},footer:d&&(0,_.jsx)(s.SelectedTagList,{}),onConfirm:()=>{if(r(),"function"===typeof u)return u(n)},children:c(e)})},f=(0,n.forwardRef)((e,t)=>{const a=Object.assign({},{children:e=>{let{components:t}=e;return(0,_.jsxs)(c.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,t.footer,!1!==a.isPopup&&t.selectedTag]})},renderModal:g},e);return(0,_.jsx)(r(),(0,l.A)((0,l.A)({},a),{},{ref:t}))}),x=f,A=(0,n.forwardRef)((e,t)=>{const a=Object.assign({},{renderModal:g},e);return(0,_.jsx)(s.SelectTableList,(0,l.A)((0,l.A)({},a),{},{ref:t}))}),y=(0,n.forwardRef)((e,t)=>{const a=Object.assign({},{renderModal:g},e);return(0,_.jsx)(s.SelectTree,(0,l.A)((0,l.A)({},a),{},{ref:t}))}),v=(0,n.forwardRef)((e,t)=>(0,_.jsx)(f,(0,l.A)((0,l.A)({},e),{},{ref:t,renderItemContent:e=>{let{item:t,props:a}=e;const{labelKey:n,avatarKey:s,descriptionKey:r}=a,o=t[s||"avatar"];return(0,_.jsxs)(c.Flex,{gap:8,children:[(0,_.jsx)(i.default.Avatar,(0,l.A)((0,l.A)({},Object.assign({},"string"===typeof o?{id:o}:o)),{},{size:32,gender:"M"})),(0,_.jsxs)(c.Flex,{vertical:!0,gap:8,className:p,align:"flex-start",children:[(0,_.jsx)("div",{className:h()(u,"select-list-item-label"),children:t[n]}),t[r||"description"]&&(0,_.jsx)("div",{className:h()(d,"select-list-item-description"),title:t[r||"description"],children:t[r||"description"]})]})]})}})))},69484:(e,t,a)=>{a.d(t,{A:()=>n,e:()=>l});const l=1e15,n=e=>{let t,a,n,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=l)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,a=""):(n=e.split("."),t=n[0],a=n[1].substr(0,4)),parseInt(t,10)>0){let e=0,a=t.length;for(let l=0;l<a;l++){let n=t.substr(l,1),i=a-l-1,d=i/4,u=i%4;"0"===n?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(n)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==a){let e=a.length;for(let t=0;t<e;t++){let e=a.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===a&&(c+="\u6574"),c=d+c,c}},73161:(e,t,a)=>{a.d(t,{A:()=>_});var l=a(89379),n=a(53986),s=a(55199),r=a(83136),o=a.n(r);const i="style_search-input__8aH1G__upeal",c="style_is-popup__L0973__upeal";var d=a(64671),u=a(73884),p=a(51941),m=a(70579);const h=["value","debounce","onSearch","isPopup","placeholder","className"],_=e=>{let{value:t,debounce:a=500,onSearch:r,isPopup:_,placeholder:g,className:f}=e,x=(0,n.A)(e,h);const[A,y]=(0,u.useState)(t),v=(0,u.useRef)(t),C=(0,p.useDebouncedCallback)(r,a);return(0,u.useEffect)(()=>{t!==v.current&&(y(t),v.current=t)},[t]),(0,m.jsx)(s.Input.Search,(0,l.A)((0,l.A)({},x),{},{allowClear:!0,className:o()(f,i,{[c]:_}),value:A,placeholder:g,prefix:(0,m.jsx)(d.default,{type:"icon-sousuo"}),enterButton:(0,m.jsx)(d.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;v.current=t,y(t),C(t.trim())},onSearch:e=>{C(e.trim())}}))}},74981:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(73884);const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,l.createContext)(e),{Provider:a,Consumer:n}=t;return{context:t,Provider:a,Consumer:n,useContext:()=>(0,l.useContext)(t)}}},77964:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(73884),n=a(79889),s=a.n(n),r=a(93950),o=a.n(r),i=a(96418),c=a.n(i);const d=(e,t)=>{const a=(0,l.useRef)(null);a.current=Object.assign({},{time:500,isDebounce:!1},t);const n=(0,l.useRef)(null),r=c()(e);return(0,l.useLayoutEffect)(()=>{const e=n.current,t=()=>window.requestAnimationFrame(()=>{e&&r(e)});t();const l=new ResizeObserver((a.current.isDebounce?o():s())(t,a.current.time));return e&&l.observe(e),()=>{l.disconnect()}},[r]),n}},78784:(e,t,a)=>{a.d(t,{default:()=>n.a});a(21219);var l=a(95183),n=a.n(l);a.o(l,"FetchScrollLoader")&&a.d(t,{FetchScrollLoader:function(){return l.FetchScrollLoader}})},81348:(e,t,a)=>{a.d(t,{A:()=>l.computedAccept});var l=a(36125)},89319:(e,t,a)=>{a.d(t,{A:()=>m});var l=a(89379),n=a(20454),s=a(55199),r=a(10986),o=a.n(r),i=a(57469),c=a.n(i),d=a(20492),u=a(47458),p=a(70579);const m=(0,u.createWithIntl)({importMessages:d.A,moduleName:"Common"})(e=>{let t=Object.assign({},((0,n.A)(e),e));const{formatMessage:a}=(0,u.useIntl)({moduleName:"Common"}),r=new Map([["date",a({id:"customTime"})],["month",a({id:"monthly"})],["week",a({id:"weekly"})]]),[i,d]=o()(t);return(0,p.jsxs)(s.Space.Compact,{children:[(0,p.jsx)(s.Select,{style:{width:"120px"},value:(null===i||void 0===i?void 0:i.type)||"date",onChange:e=>{d(t=>{var a;return{value:null!==t&&void 0!==t&&null!==(a=t.value)&&void 0!==a&&a.length?[c()(t.value[0]).startOf(e||"date"),c()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}})},options:Array.from(r).map(e=>{let[t,a]=e;return{label:a,value:t}})}),(0,p.jsx)(s.DatePicker.RangePicker,(0,l.A)((0,l.A)({},t),{},{picker:(null===i||void 0===i?void 0:i.type)||"date",value:Array.isArray(null===i||void 0===i?void 0:i.value)&&2===i.value.length&&i.value.map(e=>e&&c()(e)),onChange:e=>{d(t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})))}}))]})})},91176:(e,t,a)=>{a.d(t,{j:()=>n,v:()=>l});const l=e=>"number"===typeof e?"".concat(e,"px"):e,n=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},93761:(e,t,a)=>{a.d(t,{qn:()=>W,TM:()=>te,LH:()=>R,Ay:()=>B,NY:()=>D,DF:()=>K});var l=a(53986),n=a(89379),s=a(30509),r=a(25438),o=a(55199),i=a(27047),c=a(83136),d=a.n(c),u=a(64671),p=a(73884),m=a(21485),h=a(56434),_=a.n(h),g=a(15797),f=a.n(g),x=a(33097),A=a.n(x);const y="style_address__DIuRX__upeal",v="style_is-popup__tqVvp__upeal",C="style_title__FAe12__upeal",j="style_scroll-box__JWiDl__upeal",b="style_scroll-plus-box__lidEW__upeal",N="style_content__lAARZ__upeal",S="style_col-left__WPfeS__upeal",w="style_col-right__z0e9-__upeal";var O=a(87558),L=a.n(O);const P=e=>({"en-US":()=>a.e(3691).then(a.bind(a,83691)),"zh-CN":()=>a.e(2253).then(a.bind(a,32253))}[e]());var I=a(47458),k=a(70579);const F=["name","data","getAddressApi","children"],T=["data"],M=s.A.useContext,R=e=>{let{city:t,province:a,country:l}=e;const n=f()(()=>{const e=[];return["gangaotai","municipality"].forEach(a=>{e.push(...t.relations[a])}),["provinces","continents"].forEach(a=>{t.relations[a].forEach(a=>{e.push(a),e.push(...t.relations[a])})}),e.map(e=>t.list[e])});return{getCity:f()(e=>{const a=t.list[e];return a?{city:a,parent:a.parentCode?t.list[a.parentCode]:null}:{city:null,parent:null}}),getChinaHotCities:f()(()=>t.relations[2].map(e=>t.list[e])),getChinaCities:f()(()=>["2",...a.relations.municipality,...a.relations.provinces,"gangaotai"].map(e=>Object.assign({id:e},t.list[e]))),getCountries:f()(()=>["1",...l.relations.continents].map(e=>Object.assign({id:e},l.list[e]))),getList:f()((e,n)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},n);if("gangaotai"===e)return a.relations.gangaotai.map(e=>t.list[e]);const o=Object.assign({},t.list[e]);if(a.relations.municipality.indexOf(e)>-1)return o.name="".concat(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map(e=>t.list[e]);return a.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),l.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i}),getNationalityList:f()(e=>{let a=_()(t);return"1"===e&&a.relations[1].unshift("410"),"350"===e&&a.relations[350].unshift("410"),a.relations[e].filter(e=>a.list[e]).map(e=>a.list[e])}),getCityByName:f()(e=>{const t=n();let a;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find(e=>(a=t.find(e),a)),a}),combineCities:f()((e,a)=>[...a.filter(a=>t.list[a].parentCode!==e&&t.list[e].parentCode!==a&&e!==a),e]),searchCities:f()(e=>{if(!e)return[];return n().filter(t=>["pinyin","name","enName","spelling"].some(a=>t[a].toUpperCase().indexOf(e.toUpperCase())>-1)).map(e=>{const a=e.parentCode?t.list[e.parentCode]:null;return{label:a?"".concat(a.name,"\xb7").concat(e.name):e.name,value:e.code}})})}},D=(e,t)=>"en-US"===t?A()(e,"enName"):A()(e,"name"),E={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>a.e(7820).then(a.t.bind(a,37820,19)).then(e=>e.__esModule?e.default:e)},z=e=>{let{value:t,setValue:a}=e;const{fetchApi:l,props:n}=M(),[s,c]=(0,p.useState)(""),[h,_]=(0,p.useState)("2"),{formatMessage:g}=(0,I.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,i.A)(),{getCity:x,getChinaCities:A,getCountries:O,getList:L,searchCities:P}=(0,p.useMemo)(()=>R(l.data),[l.data]),F=e=>{if(n.single)return void a([e]);const l=t.slice(0),s=l.indexOf(e);s>-1?l.splice(s,1):l.push(e),a(l)},T=s&&(0,k.jsx)(m.A,{className:b,children:(0,k.jsx)(o.List,{className:r.A.list,size:"small",dataSource:P(s),rowKey:"value",renderItem:e=>(0,k.jsx)(o.List.Item,{className:r.A["list-item"],onClick:()=>{F(e.value),c("")},children:(0,k.jsx)("span",{className:r.A["item-label"],children:e.label})})})});return(0,k.jsxs)("div",{className:d()(y,{[v]:n.isPopup}),children:[(0,k.jsx)(o.Input.Search,{className:d()(r.A["search-input"],{[r.A["is-popup"]]:n.isPopup}),placeholder:n.searchPlaceholder||g({id:"searchCity"}),prefix:(0,k.jsx)(u.default,{type:"icon-sousuo"}),enterButton:(0,k.jsx)(u.default,{type:"icon-sousuo"}),value:s,allowClear:!0,onChange:e=>{const t=e.target.value;c(t)},onSearch:e=>{c(e)}}),(0,k.jsx)("div",{className:N,children:T||(0,k.jsxs)(o.Row,{wrap:!1,children:[(0,k.jsx)(o.Col,{className:S,children:(0,k.jsx)(o.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,k.jsx)(I.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,k.jsx)(m.A,{className:j,children:(0,k.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:A().map(e=>({label:D(e,f),key:e.id}))})})},{key:"1",label:(0,k.jsx)(I.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,k.jsx)(m.A,{className:j,children:(0,k.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:O().map(e=>({label:D(e,f),key:e.id}))})})}]})}),(0,k.jsxs)(o.Col,{flex:1,className:w,children:[(0,k.jsx)(o.Divider,{className:C,orientation:"left",children:D(x(h).city,f)}),(0,k.jsx)(m.A,{className:j,children:(0,k.jsx)(o.Space,{wrap:!0,children:L(h,{showChinaQuan:n.showChinaQuan,showForeignQuan:n.showForeignQuan}).map(e=>(0,k.jsx)(o.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{F(e.code)},children:D(e,f)},e.code))})})]})]})})]})},V=e=>(0,k.jsx)(s.A,(0,n.A)((0,n.A)({},e),{},{children:e=>{let{value:t,setValue:a}=e;return(0,k.jsx)(I.IntlProvider,{moduleName:"AddressSelect",importMessages:P,children:(0,k.jsx)(z,{value:t,setValue:a})})}}));V.defaultProps={overlayWidth:"500px",isPopup:!0,api:E,dataFormat:(e,t)=>{let{city:a}=e;const{locale:l}=Object.assign({},t);return{list:Object.values(a.list).map(e=>Object.assign({},e,{value:e.code,label:D(e,l)}))}}};const W=(0,O.withFetch)(e=>{let{name:t,data:a,getAddressApi:n,children:s}=e,r=(0,l.A)(e,F);const{locale:o}=(0,i.A)(),c=(0,p.useMemo)(()=>R(a),[a]);return n?s(c):(0,k.jsx)(L(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:a}=t;return new Promise(e=>{setTimeout(()=>{e(c.getCity(a))},0)})},render:e=>{let{data:t}=e;return s(t,Object.assign({},r,{locale:o}))}})});W.defaultProps=(0,n.A)((0,n.A)({},E),{},{displayParent:!1,children:(e,t)=>{let{city:a,parent:l}=e,{displayParent:n,locale:s}=t;return n&&l?"".concat(D(l,s),"\xb7").concat(D(a,s)):D(a,s)}});const K=e=>{const t=(0,O.withFetch)(t=>{let{data:a}=t,s=(0,l.A)(t,T);const r=(0,p.useMemo)(()=>R(a),[a]);return(0,k.jsx)(e,(0,n.A)((0,n.A)({},s),{},{addressApi:r}))});return t.defaultProps=(0,n.A)({},E),t};V.AddressEnum=V.Enum=W,V.createAddressApi=R,V.withAddressApi=K,V.getLabelForLocal=D;const B=V;var U=a(10986),q=a.n(U),Q=a(78491),H=a.n(Q),X=a(20492),Z=a(22616),J=a.n(Z),Y=a(1488),G=a.n(Y);const $=["isPopup","size","disabled","inputPlaceholder","onBlur","className"],ee=e=>{const{isPopup:t,size:a,disabled:s,inputPlaceholder:r,onBlur:i,className:c}=e,d=(0,l.A)(e,$),[u,p]=q()(e),m=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:h}=(0,I.useIntl)({moduleName:"Common"}),_=H()(e=>{i&&i(e)});return(0,k.jsx)("div",{ref:_,children:(0,k.jsxs)(o.Row,{gutter:10,children:[(0,k.jsx)(o.Col,{span:12,children:(0,k.jsx)(B,(0,n.A)((0,n.A)({},J()(d,m)),{},{className:c,disabled:s,single:!0,size:a,value:A()(u,"city"),onChange:e=>{p({city:e,detail:A()(u,"detail")})}}))}),(0,k.jsx)(o.Col,{span:12,children:(0,k.jsx)(o.Input,(0,n.A)((0,n.A)({},G()(d,m)),{},{className:c,placeholder:r||h({id:"pleaseInput"}),disabled:s,size:a,value:A()(u,"detail"),onChange:e=>{p({city:A()(u,"city"),detail:e.target.value})}}))})]})})};ee.defaultProps={};const te=(0,I.createWithIntl)({importMessages:X.A,moduleName:"Common"})(ee)},97211:(e,t,a)=>{a.d(t,{A:()=>l.withOSSFile});var l=a(36125)}}]);
|
|
2
|
+
//# sourceMappingURL=3856.d05a7f98.chunk.js.map
|