@kne-components/components-core 0.4.12 → 0.4.13
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 +95 -95
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1996.b4f38679.chunk.css +2 -0
- package/build/static/css/{1996.b1436cc8.chunk.css.map → 1996.b4f38679.chunk.css.map} +1 -1
- package/build/static/css/2004.99fe0683.chunk.css +2 -0
- package/build/static/css/{2004.c035d26e.chunk.css.map → 2004.99fe0683.chunk.css.map} +1 -1
- package/build/static/css/206.05852c5d.chunk.css +2 -0
- package/build/static/css/206.05852c5d.chunk.css.map +1 -0
- package/build/static/css/254.10beca73.chunk.css +2 -0
- package/build/static/css/{254.a12729ab.chunk.css.map → 254.10beca73.chunk.css.map} +1 -1
- package/build/static/css/2628.21fc08fe.chunk.css +2 -0
- package/build/static/css/{2628.3188c686.chunk.css.map → 2628.21fc08fe.chunk.css.map} +1 -1
- package/build/static/css/3404.67a9e351.chunk.css +2 -0
- package/build/static/css/{3404.b9717d24.chunk.css.map → 3404.67a9e351.chunk.css.map} +1 -1
- package/build/static/css/3652.e8f881ae.chunk.css +2 -0
- package/build/static/css/{3652.86f3b6bb.chunk.css.map → 3652.e8f881ae.chunk.css.map} +1 -1
- package/build/static/css/3771.53c92dd6.chunk.css +2 -0
- package/build/static/css/{3771.446d3735.chunk.css.map → 3771.53c92dd6.chunk.css.map} +1 -1
- package/build/static/css/{3790.d1b530a4.chunk.css → 3790.0bd5dcca.chunk.css} +2 -2
- package/build/static/css/{3790.d1b530a4.chunk.css.map → 3790.0bd5dcca.chunk.css.map} +1 -1
- package/build/static/css/{4277.3194c080.chunk.css → 4277.1e6d3ee3.chunk.css} +2 -2
- package/build/static/css/{4277.3194c080.chunk.css.map → 4277.1e6d3ee3.chunk.css.map} +1 -1
- package/build/static/css/4741.8c1069d9.chunk.css +2 -0
- package/build/static/css/{4741.5a84abe3.chunk.css.map → 4741.8c1069d9.chunk.css.map} +1 -1
- package/build/static/css/4832.01d63eb8.chunk.css +2 -0
- package/build/static/css/4832.01d63eb8.chunk.css.map +1 -0
- package/build/static/css/5195.5df3263a.chunk.css +2 -0
- package/build/static/css/5195.5df3263a.chunk.css.map +1 -0
- package/build/static/css/6763.dd66ef2f.chunk.css +2 -0
- package/build/static/css/{6763.42d76eb7.chunk.css.map → 6763.dd66ef2f.chunk.css.map} +1 -1
- package/build/static/css/6980.5f0b0cb2.chunk.css +12 -0
- package/build/static/css/{6980.f5424a2c.chunk.css.map → 6980.5f0b0cb2.chunk.css.map} +1 -1
- package/build/static/css/7227.748fb9a1.chunk.css +2 -0
- package/build/static/css/{7227.e83fd744.chunk.css.map → 7227.748fb9a1.chunk.css.map} +1 -1
- package/build/static/css/760.aed85987.chunk.css +2 -0
- package/build/static/css/{760.7efd69c3.chunk.css.map → 760.aed85987.chunk.css.map} +1 -1
- package/build/static/css/8593.44f6d410.chunk.css +2 -0
- package/build/static/css/{8593.df922b83.chunk.css.map → 8593.44f6d410.chunk.css.map} +1 -1
- package/build/static/css/9556.e0c6c7f6.chunk.css +2 -0
- package/build/static/css/{9556.3024763d.chunk.css.map → 9556.e0c6c7f6.chunk.css.map} +1 -1
- package/build/static/css/9772.94f5f083.chunk.css +2 -0
- package/build/static/css/{9772.e21859cf.chunk.css.map → 9772.94f5f083.chunk.css.map} +1 -1
- package/build/static/js/{1014.ac7e07be.chunk.js → 1014.e5b4dfc7.chunk.js} +1 -1
- package/build/static/js/{1996.1779e813.chunk.js → 1996.3a236927.chunk.js} +2 -2
- package/build/static/js/{1996.1779e813.chunk.js.map → 1996.3a236927.chunk.js.map} +1 -1
- package/build/static/js/{2004.182c7c0f.chunk.js → 2004.f8dd7cdf.chunk.js} +3 -3
- package/build/static/js/{2004.182c7c0f.chunk.js.map → 2004.f8dd7cdf.chunk.js.map} +1 -1
- package/build/static/js/206.6d11e36b.chunk.js +2 -0
- package/build/static/js/{206.870edee0.chunk.js.map → 206.6d11e36b.chunk.js.map} +1 -1
- package/build/static/js/{2097.0567ed2b.chunk.js → 2097.cb0ebbbb.chunk.js} +2 -2
- package/build/static/js/{2097.0567ed2b.chunk.js.map → 2097.cb0ebbbb.chunk.js.map} +1 -1
- package/build/static/js/254.bb219d2f.chunk.js +2 -0
- package/build/static/js/{254.238ab8af.chunk.js.map → 254.bb219d2f.chunk.js.map} +1 -1
- package/build/static/js/{2628.13f2cd3d.chunk.js → 2628.f675039d.chunk.js} +2 -2
- package/build/static/js/{2628.13f2cd3d.chunk.js.map → 2628.f675039d.chunk.js.map} +1 -1
- package/build/static/js/{3404.1b947536.chunk.js → 3404.94f6275b.chunk.js} +3 -3
- package/build/static/js/{3404.1b947536.chunk.js.map → 3404.94f6275b.chunk.js.map} +1 -1
- package/build/static/js/{3652.5d13bc4c.chunk.js → 3652.e5a28adc.chunk.js} +2 -2
- package/build/static/js/{3652.5d13bc4c.chunk.js.map → 3652.e5a28adc.chunk.js.map} +1 -1
- package/build/static/js/{3771.60b0504e.chunk.js → 3771.998da4f9.chunk.js} +2 -2
- package/build/static/js/{3771.60b0504e.chunk.js.map → 3771.998da4f9.chunk.js.map} +1 -1
- package/build/static/js/{3790.72c7a465.chunk.js → 3790.effe004b.chunk.js} +2 -2
- package/build/static/js/{3790.72c7a465.chunk.js.map → 3790.effe004b.chunk.js.map} +1 -1
- package/build/static/js/3856.d51e240b.chunk.js +2 -0
- package/build/static/js/{3856.29d5e528.chunk.js.map → 3856.d51e240b.chunk.js.map} +1 -1
- package/build/static/js/4277.c0f74e50.chunk.js +2 -0
- package/build/static/js/{4277.de810104.chunk.js.map → 4277.c0f74e50.chunk.js.map} +1 -1
- package/build/static/js/4474.8524d82a.chunk.js +2 -0
- package/build/static/js/{4474.dfb83cf2.chunk.js.map → 4474.8524d82a.chunk.js.map} +1 -1
- package/build/static/js/4832.e478f6cf.chunk.js +2 -0
- package/build/static/js/{4832.cf55c52c.chunk.js.map → 4832.e478f6cf.chunk.js.map} +1 -1
- package/build/static/js/5195.c7f2e172.chunk.js +2 -0
- package/build/static/js/{5195.9ac8caa0.chunk.js.map → 5195.c7f2e172.chunk.js.map} +1 -1
- package/build/static/js/{6183.23d57d24.chunk.js → 6183.9f9ecead.chunk.js} +2 -2
- package/build/static/js/6183.9f9ecead.chunk.js.map +1 -0
- package/build/static/js/{6454.d8a2bc1e.chunk.js → 6454.1dea34c5.chunk.js} +1 -1
- package/build/static/js/{6617.94f51cff.chunk.js → 6617.1cb118cb.chunk.js} +1 -1
- package/build/static/js/{6763.97f4747b.chunk.js → 6763.c0930523.chunk.js} +2 -2
- package/build/static/js/{6763.97f4747b.chunk.js.map → 6763.c0930523.chunk.js.map} +1 -1
- package/build/static/js/{6980.5b98fb8f.chunk.js → 6980.eb0ca6af.chunk.js} +2 -2
- package/build/static/js/6980.eb0ca6af.chunk.js.map +1 -0
- package/build/static/js/7227.6e355494.chunk.js +3 -0
- package/build/static/js/{7227.65b21900.chunk.js.map → 7227.6e355494.chunk.js.map} +1 -1
- package/build/static/js/{7338.0c458623.chunk.js → 7338.18d781f2.chunk.js} +2 -2
- package/build/static/js/{7338.0c458623.chunk.js.map → 7338.18d781f2.chunk.js.map} +1 -1
- package/build/static/js/{760.bc8726da.chunk.js → 760.0e9d9610.chunk.js} +2 -2
- package/build/static/js/{760.bc8726da.chunk.js.map → 760.0e9d9610.chunk.js.map} +1 -1
- package/build/static/js/8593.c2266549.chunk.js +2 -0
- package/build/static/js/{8593.a7cfca38.chunk.js.map → 8593.c2266549.chunk.js.map} +1 -1
- package/build/static/js/9556.e0e3aa34.chunk.js +3 -0
- package/build/static/js/{9556.bd02b06f.chunk.js.map → 9556.e0e3aa34.chunk.js.map} +1 -1
- package/build/static/js/{9772.8953d82a.chunk.js → 9772.2e6315a6.chunk.js} +2 -2
- package/build/static/js/9772.2e6315a6.chunk.js.map +1 -0
- package/build/static/js/{main.83f21429.js → main.d69b3bad.js} +2 -2
- package/build/static/js/{main.83f21429.js.map → main.d69b3bad.js.map} +1 -1
- package/package.json +2 -2
- package/build/static/css/1996.b1436cc8.chunk.css +0 -2
- package/build/static/css/2004.c035d26e.chunk.css +0 -2
- package/build/static/css/206.c2648b4c.chunk.css +0 -2
- package/build/static/css/206.c2648b4c.chunk.css.map +0 -1
- package/build/static/css/254.a12729ab.chunk.css +0 -2
- package/build/static/css/2628.3188c686.chunk.css +0 -2
- package/build/static/css/3404.b9717d24.chunk.css +0 -2
- package/build/static/css/3652.86f3b6bb.chunk.css +0 -2
- package/build/static/css/3771.446d3735.chunk.css +0 -2
- package/build/static/css/4741.5a84abe3.chunk.css +0 -2
- package/build/static/css/4832.ee29b4d5.chunk.css +0 -2
- package/build/static/css/4832.ee29b4d5.chunk.css.map +0 -1
- package/build/static/css/5195.9d6bb120.chunk.css +0 -2
- package/build/static/css/5195.9d6bb120.chunk.css.map +0 -1
- package/build/static/css/6763.42d76eb7.chunk.css +0 -2
- package/build/static/css/6980.f5424a2c.chunk.css +0 -12
- package/build/static/css/7227.e83fd744.chunk.css +0 -2
- package/build/static/css/760.7efd69c3.chunk.css +0 -2
- package/build/static/css/8593.df922b83.chunk.css +0 -2
- package/build/static/css/9556.3024763d.chunk.css +0 -2
- package/build/static/css/9772.e21859cf.chunk.css +0 -2
- package/build/static/js/206.870edee0.chunk.js +0 -2
- package/build/static/js/254.238ab8af.chunk.js +0 -2
- package/build/static/js/3856.29d5e528.chunk.js +0 -2
- package/build/static/js/4277.de810104.chunk.js +0 -2
- package/build/static/js/4474.dfb83cf2.chunk.js +0 -2
- package/build/static/js/4832.cf55c52c.chunk.js +0 -2
- package/build/static/js/5195.9ac8caa0.chunk.js +0 -2
- package/build/static/js/6183.23d57d24.chunk.js.map +0 -1
- package/build/static/js/6980.5b98fb8f.chunk.js.map +0 -1
- package/build/static/js/7227.65b21900.chunk.js +0 -3
- package/build/static/js/8593.a7cfca38.chunk.js +0 -2
- package/build/static/js/9556.bd02b06f.chunk.js +0 -3
- package/build/static/js/9772.8953d82a.chunk.js.map +0 -1
- /package/build/static/js/{2004.182c7c0f.chunk.js.LICENSE.txt → 2004.f8dd7cdf.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.1b947536.chunk.js.LICENSE.txt → 3404.94f6275b.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.65b21900.chunk.js.LICENSE.txt → 7227.6e355494.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.bd02b06f.chunk.js.LICENSE.txt → 9556.e0e3aa34.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3771.60b0504e.chunk.js","mappings":"mVACA,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,qCCOT,MAAME,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,qBAAqBL,SAC5DA,KAELM,EAAAA,EAAAA,KAACC,EAAAA,IAAG,CAACC,KAAMT,EAAWK,UAAWC,EAAM,qBAAqBL,SACv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MAgBagF,EAAmBhF,IAC9B,MAAMiF,EAAYF,IAClB,OAAK/E,EAAMgD,KAUJvF,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWF,KARtCxH,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDrB,EACJT,QAASA,KACP0F,EAAUjF,EAAMoF,gBAO1B,EA9BqBpF,IACnB,MAAM6C,EAAQD,IACd,IAAK5C,EAAMgD,IAAK,CACd,MAAM,WAAEoC,KAAeC,GAAWrF,EAClC,OACEvC,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDgE,EACJ9F,QAASA,KACPsD,EAAMuC,KAId,CACA,OAAO3H,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWtC,I,oECf5C,QAAenB,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__RltKb\",\"large\":\"style_large__iaqVE__RltKb\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__RltKb\",\"modal-title\":\"style_modal-title__dswaw__RltKb\",\"modal-outer\":\"style_modal-outer__r3SkX__RltKb\",\"modal-body\":\"style_modal-body__jQJSI__RltKb\",\"right-options-modal\":\"style_right-options-modal__FajDP__RltKb\",\"right-options-row\":\"style_right-options-row__-mPb9__RltKb\",\"right-options-col\":\"style_right-options-col__3ilee__RltKb\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__RltKb\",\"content\":\"style_content__k6MIF__RltKb\",\"modal-footer\":\"style_modal-footer__-prbN__RltKb\",\"modal-close\":\"style_modal-close__Oa5Kl__RltKb\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__RltKb\",\"is-danger\":\"style_is-danger__H5110__RltKb\",\"title\":\"style_title__orTym__RltKb\",\"has-title\":\"style_has-title__qy0Wp__RltKb\"};","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, 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: (<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 }) => {\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 onCancel={onCancel}\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 onCancel,\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 onCancel={onCancel}\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 onCancel,\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 onCancel,\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","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnHidden","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","_ref7","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/3771.998da4f9.chunk.js","mappings":"mVACA,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,qCCOT,MAAME,EAAmB,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H,wBAAsB,EACtBR,UAAWA,EACXC,iBAAkBA,EAClBC,SAAUA,IAGd,MAAgC,oBAAlBzC,EACVA,EAAc2C,GACdA,KAENtH,SAAUyC,IAA6B,IAA5B,SAAEzC,KAAa6C,GAAOJ,EAC/B,MAA2B,oBAAbzC,EAA0BA,EAAS6C,GAAS7C,KAShE,EAJmB6C,IACVvC,EAAAA,EAAAA,KAACqH,EAAK,IAAKzC,EAAoBrC,KAK3B+E,EAAeA,KAC1B,MAAMlC,EAAQD,IACd,OAAQ5C,GAAU6C,EAAMR,EAAoBrC,K,eCtD9C,MAgBagF,EAAmBhF,IAC9B,MAAMiF,EAAYF,IAClB,OAAK/E,EAAMgD,KAUJvF,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWF,KARtCxH,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDrB,EACJT,QAASA,KACP0F,EAAUjF,EAAMoF,gBAO1B,EA9BqBpF,IACnB,MAAM6C,EAAQD,IACd,IAAK5C,EAAMgD,IAAK,CACd,MAAM,WAAEoC,KAAeC,GAAWrF,EAClC,OACEvC,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDgE,EACJ9F,QAASA,KACPsD,EAAMuC,KAId,CACA,OAAO3H,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWtC,I,oECf5C,QAAenB,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__DHs+D\",\"large\":\"style_large__iaqVE__DHs+D\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__DHs+D\",\"modal-title\":\"style_modal-title__dswaw__DHs+D\",\"modal-outer\":\"style_modal-outer__r3SkX__DHs+D\",\"modal-body\":\"style_modal-body__jQJSI__DHs+D\",\"right-options-modal\":\"style_right-options-modal__FajDP__DHs+D\",\"right-options-row\":\"style_right-options-row__-mPb9__DHs+D\",\"right-options-col\":\"style_right-options-col__3ilee__DHs+D\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__DHs+D\",\"content\":\"style_content__k6MIF__DHs+D\",\"modal-footer\":\"style_modal-footer__-prbN__DHs+D\",\"modal-close\":\"style_modal-close__Oa5Kl__DHs+D\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__DHs+D\",\"is-danger\":\"style_is-danger__H5110__DHs+D\",\"title\":\"style_title__orTym__DHs+D\",\"has-title\":\"style_has-title__qy0Wp__DHs+D\"};","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, 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: (<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 }) => {\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 onCancel={onCancel}\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 onCancel,\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 onCancel={onCancel}\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 onCancel,\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 onCancel,\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","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnHidden","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","_ref7","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:()=>a.a});var s=i(60922),a=i.n(s),l=i(22717),t=i.n(l);(0,s.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 s=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var a=i(47458),l=i(64671),t=i(55199),r=i(83136),c=i.n(r);const o="style_helper-guide__K5xFw__DHs+D",d="style_inner__bMKeU__DHs+D",u="style_content__xTfWZ__DHs+D",p="style_link__93j7O__DHs+D";var v=i(48731),_=i(70579);const h=e=>{let{name:n,className:i}=e;return(0,_.jsx)(a.IntlProvider,{importMessages:s,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:d,children:[(0,_.jsx)(l.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,_.jsx)("span",{className:u,children:e.content}),e.url&&(0,_.jsxs)(t.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(l.default,{type:"icon-shuangjiantou-right"})]})]})})})})}}}]);
|
|
2
|
+
//# sourceMappingURL=3790.effe004b.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3790.
|
|
1
|
+
{"version":3,"file":"static/js/3790.effe004b.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,MAA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ACXU,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__DHs+D\",\"inner\":\"style_inner__bMKeU__DHs+D\",\"content\":\"style_content__xTfWZ__DHs+D\",\"link\":\"style_link__93j7O__DHs+D\"};","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,n)=>{n.r(t),n.d(t,{ModalButton:()=>I,TabsModal:()=>S,TabsModalButton:()=>H,default:()=>A,useConfirmModal:()=>b,useModal:()=>D,useTabsModal:()=>w});var s=n(73884),l=n(55199),a=n(83136),r=n.n(a);const o={modal:"style_modal__Pm3cF__DHs+D",large:"style_large__iaqVE__DHs+D","modal-body-inner":"style_modal-body-inner__4PhpA__DHs+D","modal-title":"style_modal-title__dswaw__DHs+D","modal-outer":"style_modal-outer__r3SkX__DHs+D","modal-body":"style_modal-body__jQJSI__DHs+D","right-options-modal":"style_right-options-modal__FajDP__DHs+D","right-options-row":"style_right-options-row__-mPb9__DHs+D","right-options-col":"style_right-options-col__3ilee__DHs+D","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__DHs+D",content:"style_content__k6MIF__DHs+D","modal-footer":"style_modal-footer__-prbN__DHs+D","modal-close":"style_modal-close__Oa5Kl__DHs+D","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__DHs+D","is-danger":"style_is-danger__H5110__DHs+D",title:"style_title__orTym__DHs+D","has-title":"style_has-title__qy0Wp__DHs+D"},i=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(47458),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var p=n(81014),m=n(17342),h=n(70579);const _="Modal",g=e=>{let{options:t,rightSpan:n=6,children:s}=e;return t?(0,h.jsxs)(l.Row,{wrap:!1,className:o["right-options-row"],children:[(0,h.jsx)(l.Col,{span:24-n,className:o["right-options-col"],children:s}),(0,h.jsx)(l.Col,{span:n,className:o["right-options-col"],children:t})]}):s},f=(e,t)=>e-48-(t?58:0)+"px",x=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":f(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":f(300,t)}}:{width:"1000px",style:{"--min-modal-height":f(500,t)}},y=e=>{let{footer:t,footerButtons:n,onConfirm:a,onCancel:r,onClose:o,targetProps:d}=e;return(0,h.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(l.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,h.jsx)(l.Col,{children:(0,h.jsx)(l.Space,{children:(n||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:r},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:_})}),onClick:a}]).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:n,onClick:l,autoClose:a=!0,display:r,...i}=e;const c=n||p.default;return(0,s.createElement)(c,{...i,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const s=await Promise.resolve(l&&l(...t,d));return a&&!1!==s&&o&&o(),s}})})})})]})},v=e=>{let{title:t,footer:n,disabledScroller:a,footerButtons:i,onClose:c,closable:u,onConfirm:p,onCancel:_,children:g,targetProps:f}=e;const x=(0,s.useRef)(null);return(0,h.jsxs)("div",{className:r()(o["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:r()(o["modal-close"],"modal-close"),type:"text",icon:(0,h.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,h.jsx)("div",{className:o["modal-title"],children:t}),(0,h.jsx)(m.A,{className:r()(o["modal-body"],{[o["is-disabled-scroller"]]:a},"modal-body"),ref:x,children:(0,h.jsx)("div",{className:r()(o["modal-body-inner"],"modal-body-inner"),children:g})}),null!==n||i?(0,h.jsx)("div",{className:r()(o["modal-footer"],"modal-footer"),children:(0,h.jsx)(y,{footer:n,footerButtons:i,onConfirm:p,onCancel:_,onClose:c,targetProps:f})}):null]})},j=e=>{let{withDecorator:t,footerButtons:n,title:s,closable:l,onClose:a,onConfirm:r,onCancel:o,footer:i,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:m,children:_}=e;const f=e=>(e=Object.assign({},{title:s},e),(0,h.jsx)(v,{title:u(e.title,{...e,childrenRef:m,close:a}),closable:l,onClose:a,onConfirm:r,onCancel:o,footerButtons:u(n,{...e,close:a}),disabledScroller:p,footer:u(i,{...e,childrenRef:m,close:a}),targetProps:Object.assign({},e,{childrenRef:m,close:a}),children:(0,h.jsx)(g,{rightSpan:d,options:u(c,{...e,childrenRef:m,close:a}),children:u(_,{...e,childrenRef:m,close:a})})}));return"function"===typeof t?t(f,{childrenRef:m,close:a}):f({})},C=e=>{let{children:t,rightOptions:n,rightSpan:s,footer:l,footerButtons:a,className:d,size:u,title:p,onClose:m,onConfirm:_,onCancel:g,closable:f,disabledScroller:y,withDecorator:v,childrenRef:C,...D}=e;return{...D,icon:null,centered:!0,title:null,maskClosable:!!D.hasOwnProperty("maskClosable")&&D.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:m,className:r()(d,o.modal,o[u],{[o["right-options-modal"]]:n}),...x(u,!(null===l&&!a)),children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:"Modal",children:j({withDecorator:v,title:p,closable:f,onClose:m,onConfirm:_,onCancel:g,footer:l,footerButtons:a,rightOptions:n,rightSpan:s,disabledScroller:y,children:t,childrenRef:C})})}},D=()=>{const{modal:e}=l.App.useApp(),t=(0,s.useRef)(null);return n=>{const s={},{children:l,...a}=C({onClose:()=>s.close(),childrenRef:t,...n}),{destroy:r}=e.info({...a,content:l});return s.close=r,s}},b=()=>{const{modal:e}=l.App.useApp();return t=>{const n={},{type:s,icon:a,title:i,danger:c,wrapClassName:u,message:p,iconSetting:m={},confirmType:_="info",...g}={onClose:()=>n.close(),maskClosable:!1,...t},f=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},m);if(e[s]){const{destroy:t}=e[s]({...g,icon:null,wrapClassName:r()(o["confirm-modal-wrap"],u,{[o["is-danger"]]:c}),title:(0,h.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:i&&(0,h.jsxs)(l.Space,{size:0,align:"start",className:o.title,children:[c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===s?_:s}`),type:a||f["confirm"===s?_:s]}):null,i]})}),content:(0,h.jsxs)(l.Space,{size:0,align:"start",className:r()(o.content,{[o["has-title"]]:i}),children:[!i&&c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===s?_:s}`),type:a||f["confirm"===s?_:s]}):null,p]})});n.close=t}return n}},A=e=>{let{size:t="default",...n}=e;const a=(0,s.useRef)(null);return(0,h.jsx)(l.Modal,{...C(Object.assign({},n,{size:t,childrenRef:a}))})},N=e=>{let{items:t,className:n,activeKey:s,withDecorator:a,defaultActiveKey:o,onChange:i,...c}=e;return{...c,className:r()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,h.jsx)(l.Tabs,{items:t.map(t=>{let{withDecorator:s,...l}=t;return Object.assign({},l,{children:"function"===typeof s?s(t=>e(Object.assign({},n,t,{children:l.children}))):e(Object.assign({},n,{children:l.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:o,onChange:i});return"function"===typeof a?a(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},S=e=>(0,h.jsx)(A,{...N(e)}),w=()=>{const e=D();return t=>e(N(t))};var O=n(73025);const H=e=>{const t=w();return e.api?(0,h.jsx)(O.A,{...e,modalFunc:t}):(0,h.jsx)(l.Button,{...e,onClick:()=>{t(e.modalProps)}})},I=e=>{const t=D();if(!e.api){const{modalProps:n,...s}=e;return(0,h.jsx)(l.Button,{...s,onClick:()=>{t(n)}})}return(0,h.jsx)(O.A,{...e,modalFunc:t})}},12392:(e,t,n)=>{n.d(t,{Bm:()=>V,Eo:()=>E,NR:()=>b,Ay:()=>W});var s=n(55199),l=n(83136),a=n.n(l),r=n(30509),o=n(25438),i=n(78784),c=n(33097),d=n.n(c),u=n(34677),p=n.n(u);const m="create-list_scroll-loader__zoaS7__DHs+D",h="create-list_is-popup__t3d-G__DHs+D",_="create-list_is-not-full__FXtX1__DHs+D",g="create-list_search-input__tV3vf__DHs+D",f="create-list_left__EXr3i__DHs+D",x="create-list_list-header__3xeJa__DHs+D",y="create-list_is-modal__BMfya__DHs+D";var v=n(73161),j=n(47458),C=n(70579);const D=r.A.useContext,b=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:c,setSearchText:u,props:b,mapping:A}=D(),N=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},b.pagination),S=d()(r.requestParams,[N.paramsType,N.current],1),w=d()(r.requestParams,[N.paramsType,N.pageSizeName])||N.pageSize,{formatMessage:O}=(0,j.useIntl)({moduleName:"Common"}),H=b.dataFormat(r.data),{right:I,leftBottom:L,leftSpan:P=24}=b,k=1===n.length&&"all"===n[0];return(0,C.jsxs)(s.Row,{wrap:!1,className:I?a()("is-not-full",_):"",children:[(0,C.jsxs)(s.Col,{span:P,className:a()(f,"advance-select-left"),children:[b.getSearchProps?(0,C.jsx)(v.A,{isPopup:b.isPopup,className:a()(g,o.A["search-input"],{[o.A["is-popup"]]:b.isPopup}),placeholder:b.searchPlaceholder||O({id:"search"}),value:c,onSearch:e=>{r.reload(b.getSearchProps(e)),u(e)}}):null,b.single||!b.showSelectedCount&&!b.allowSelectAll?null:(0,C.jsxs)(s.Flex,{className:a()(x,{[y]:!b.isPopup}),justify:"space-between",children:[b.showSelectedCount?(0,C.jsxs)(s.Space,{children:[(0,C.jsx)(s.Typography,{children:"\u5df2\u9009:"}),(0,C.jsx)(s.Typography.Link,{children:k?b.allLabel||(0,C.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"}):`${n.length}${b.countUnit||O({id:"items"})}`})]}):(0,C.jsx)("div",{}),b.allowSelectAll?(0,C.jsx)("div",{children:(0,C.jsx)(s.Checkbox,{checked:k,onChange:e=>{l(e.target.checked?[b.allValue||"all"]:[])},children:(0,C.jsx)(j.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:b.allLabel||(0,C.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,C.jsx)("div",{})]}),(0,C.jsx)(i.default,{completeTips:"",isLoading:!r.isComplete,className:a()(m,{[h]:b.isPopup}),noMore:!H.total||S*w>=H.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(p()({[N.paramsType]:{[N.pageSizeName]:w,[N.current]:S+1}},b.getSearchProps&&b.getSearchProps(c)),b.mergeList)},children:(()=>{const e={props:b,value:n,setValue:l,list:H.list,data:r.data,fetchApi:r,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:k,onSelect:e=>{if(b.single)return void l([e.value]);const t=n.slice(0),s=t.indexOf(e.value);s>-1?t.splice(s,1):t.push(e.value),l(t)}},s=t(e);return"function"===typeof b.dropdownRender?b.dropdownRender(Object.assign({},e,{children:s})):s})()}),L&&L({fetchApi:r,value:n,mapping:A})]}),I&&I({value:n,mapping:A,fetchApi:r})]})},c=e=>{let{extra:t,...n}=e;return(0,C.jsx)(r.A,{...n,extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,C.jsx)(l,{value:t,setValue:n})}})};return c.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})},n),c},A="list_list__TGynD__DHs+D",N="list_list-item__WSswf__DHs+D",S="list_is-selected__6Wkgt__DHs+D",w="list_item-label__bYzhe__DHs+D",O="list_item-des__2nsEn__DHs+D",H="list_is-disabled__qxCvO__DHs+D",I="list_is-selected-all__Mp-hG__DHs+D";var L=n(40438),P=n(64671);const k="user_list-inner__V508e__DHs+D",F="user_list-info__y2nWo__DHs+D",M="user_selected-icon__9OQJL__DHs+D",T="user_item-des__o+7UR__DHs+D",R="user_is-selected-all__2q0VZ__DHs+D",E=b({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:r}=e;return(0,C.jsx)(s.List,{size:"small",className:a()(A,{[I]:r,[R]:r}),dataSource:t,renderItem:e=>{const t=l(e);return(0,C.jsx)(s.List.Item,{className:a()(N,{[S]:t}),onClick:()=>n(e),children:(0,C.jsxs)(s.Row,{wrap:!1,align:"middle",className:k,children:[(0,C.jsx)(s.Col,{children:(0,C.jsx)(L.default.Avatar,{...Object.assign({},e.avatar),size:40,gender:"M"})}),(0,C.jsx)(s.Col,{className:F,flex:1,children:(0,C.jsxs)(s.Space,{direction:"vertical",children:[(0,C.jsx)("span",{className:w,children:e.label}),e.description&&(0,C.jsx)("span",{className:T,children:e.description})]})}),(0,C.jsx)(s.Col,{children:r||t?(0,C.jsx)(P.default,{className:M,type:"icon-gouxuan"}):null})]})})}})}}),z={"is-selected-all":"table_is-selected-all__IwXUY__DHs+D"},V=b({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,C.jsx)(s.Table,{className:a()(z.list,A,{[I]:c,[z["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>a()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map(e=>{let{value:t}=e;return t}),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),W=b({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,C.jsx)(s.List,{className:a()(A,i,{[I]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const i=l(e);return(0,C.jsxs)(s.List.Item,{className:a()(N,{[S]:t.single&&i,[H]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,C.jsxs)(s.Row,{wrap:!1,children:[t.single?null:(0,C.jsx)(s.Col,{children:(0,C.jsx)(s.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,C.jsx)(s.Col,{children:(0,C.jsxs)(s.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,C.jsx)("span",{className:w,children:e.label}),e.description&&(0,C.jsx)("span",{className:O,children:e.description})]})})]}),i&&c]})}})}})},17342:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(34581),l=n.n(s);n(46733);const a=l()},17508:(e,t,n)=>{n.d(t,{AG:()=>u,Ay:()=>i,FI:()=>d,Zi:()=>c,lN:()=>s.useFileUpload});var s=n(68827),l=n(55199),a=n(83136),r=n.n(a),o=n(70579);const i=e=>t=>{let{className:n,multiple:l,accept:a,onChange:r,children:i,...c}=t;return(0,o.jsx)(s.FileInput,{className:n,multiple:l,accept:a,onChange:r,children:t=>{let{children:n,...s}=t;return(0,o.jsxs)(e,{...Object.assign({},c,s),children:[i,n]})}})},c=e=>{let{children:t,...n}=e;return(0,o.jsx)(s.FileInput,{...n,buttonText:t})},d=e=>{let{className:t,multiple:n,accept:a,onChange:r,children:i,...c}=e;return(0,o.jsx)(s.FileInput,{className:t,multiple:n,accept:a,onChange:r,children:e=>{let{children:t,...n}=e;return(0,o.jsxs)(l.Typography.Link,{...Object.assign({},c,n),children:[i,t]})}})},u=e=>{let{className:t,multiple:n,accept:a,onChange:i,children:c,...d}=e;return(0,o.jsx)(s.FileInput,{className:r()(t,"ant-btn"),multiple:n,accept:a,onChange:i,children:e=>{let{children:t,...n}=e;return(0,o.jsxs)(l.Typography.Text,{...Object.assign({},d,n),children:[c,t]})}})}},18411:(e,t,n)=>{n.d(t,{A:()=>s});n(73884);const s=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},20492:(e,t,n)=>{n.d(t,{A:()=>s});const s=e=>({"en-US":()=>n.e(3086).then(n.bind(n,13086)),"zh-CN":()=>n.e(4308).then(n.bind(n,84308))}[e]())},21485:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(73884),l=n(71298),a=n.n(l),r=n(96418),o=n.n(r),i=n(70579);const c=(0,s.forwardRef)((e,t)=>{let{children:n,onScroll:l,options:r,onReady:c,...d}=e;const u=(0,s.useRef)(null),p=(0,s.useRef)(null),m=(0,s.useRef)(r),h=o()(c),_=o()(l);return(0,s.useImperativeHandle)(t,()=>p.current),(0,s.useEffect)(()=>{const e=new(a())(u.current,m.current);return p.current=e.getScrollElement(),p.current.addEventListener("scroll",_),h(p.current),()=>{p.current.removeEventListener("scroll",_)}},[_,h,n]),(0,i.jsx)("div",{...d,ref:u,children:n})})},25438:(e,t,n)=>{n.d(t,{A:()=>s});const s={"search-input":"common_search-input__P6qLg__DHs+D","is-popup":"common_is-popup__fJq+g__DHs+D",list:"common_list__TKFzS__DHs+D","list-item":"common_list-item__ASse7__DHs+D","is-selected":"common_is-selected__-PU4Y__DHs+D","item-label":"common_item-label__u+qz1__DHs+D","item-des":"common_item-des__no2z0__DHs+D"}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(83694),l=n(33097),a=n.n(l);const r=()=>{const e=(0,s.useGlobalContext)();return a()(e,"preset",{apis:{}})}},30509:(e,t,n)=>{n.d(t,{A:()=>W});const s={"ant-tag":"style_ant-tag__nNp8-__DHs+D",overlay:"style_overlay__La5mO__DHs+D",input:"style_input__SpJTE__DHs+D","is-disabled":"style_is-disabled__joxdl__DHs+D","input-icon":"style_input-icon__vVd8R__DHs+D",large:"style_large__En6mL__DHs+D",small:"style_small__DY0AQ__DHs+D","input-inner":"style_input-inner__PWy27__DHs+D","input-custom":"style_input-custom__ktsWD__DHs+D","display-content":"style_display-content__hIKo+__DHs+D","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__DHs+D","selected-tag":"style_selected-tag__zXZZO__DHs+D","selected-tag-list":"style_selected-tag-list__xUIms__DHs+D","selected-tag-inner":"style_selected-tag-inner__Z5gPL__DHs+D","text-inner":"style_text-inner__H24hY__DHs+D",placeholder:"style_placeholder__x0ccE__DHs+D","is-modal":"style_is-modal__JU+uq__DHs+D","overlay-content":"style_overlay-content__WKqp+__DHs+D"};var l=n(74981);const{context:a,useContext:r,Provider:o,Consumer:i}=(0,l.A)();var c=n(73884),d=n(10986),u=n.n(d),p=n(87558),m=n(33097),h=n.n(m),_=n(55199),g=n(83136),f=n.n(g),x=n(3382),y=n(64671),v=n(79686),j=n.n(v),C=n(41740),D=n.n(C),b=n(74065),A=n.n(b),N=n(21485),S=n(96418),w=n.n(S),O=n(77964),H=n(91176),I=n(47458),L=n(20492),P=n(27047),k=n(70579);const F=e=>{let{maxLength:t,single:n,setValue:s,value:l,message:a}=e;return e=>s(!n&&Number.isInteger(t)&&t>0&&e.length>t?(a(),l):e)},M=e=>{let{single:t,value:n,mapping:l,allValue:a,allLabel:r,onClose:o}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,k.jsx)("span",{className:s["text-inner"],children:h()(l.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(a||"all")?(0,k.jsx)("span",{className:s["text-inner"],children:r||(0,k.jsx)(I.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map(e=>{const t=l.get(e);return(0,k.jsx)(_.Tag,{className:s["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,k.jsx)("span",{className:s["tag-inner"],children:h()(t,"label")||e})},e)}):null},T=(0,c.forwardRef)((e,t)=>{let{value:n,onChange:l,extra:a,showSelectedTag:r,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n),{formatMessage:h}=(0,I.useIntl)({moduleName:"Common"});m.current=n;const[g,f]=(0,c.useState)(!1),y=e=>{var t;f(e),null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},{message:v}=_.App.useApp(),j=F({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:()=>v.error(h({id:"maxSelectedCount"},{count:d.maxLength}))});return(0,c.useEffect)(()=>{g&&p(m.current)},[g]),(0,c.useImperativeHandle)(t,()=>({modalOpen:()=>{y(!0)},close:()=>{y(!1)}})),(0,k.jsx)(x.default,{...d,open:g,onConfirm:()=>{l(u)},onClose:()=>{y(!1)},footer:(0,k.jsxs)(_.Space,{direction:"vertical",className:s["overlay-footer"],children:[a&&(0,k.jsx)("div",{className:s["overlay-footer-extra"],children:a}),r&&o({value:u,setValue:j})]}),children:"function"===typeof i?i({value:u,setValue:j}):i})}),R=(0,c.forwardRef)((e,t)=>{let{value:n,setValue:l,children:a,renderSelectedContent:r,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,overlayClassName:g,disabled:x,...y}=e;const[v,j]=(0,c.useState)(!1),C=w()(e=>{var t;j(e),null===(t=y.onOpenChange)||void 0===t||t.call(y,e)});return(0,c.useImperativeHandle)(t,()=>({close:()=>{C(!1)}}),[C]),x?(0,k.jsx)("div",{className:s["input-inner"],children:d}):(0,k.jsx)(_.Popover,{...y,open:v,onOpenChange:C,transitionName:"ant-slide-up",overlayClassName:f()(s.overlay,g),arrow:!1,content:(0,k.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:f()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,k.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof a?a({value:n,setValue:e=>{(!u||n[0]!==e[0])&&l(e),u&&C(!1)}}):a}),(o||p)&&(0,k.jsxs)("div",{className:s["overlay-footer"],children:[p&&(0,k.jsx)("div",{className:s["overlay-footer-extra"],children:p}),o&&r({value:n,setValue:l})]})]}),trigger:"click",placement:i,children:(0,k.jsx)("div",{className:s["input-inner"],children:d})})}),E=(0,p.withFetch)(e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:l,...a}=e;const[o,i]=(0,c.useState)(!1),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=r(),{valueState:m,mapping:h,props:g,inputWidth:x}=p,[v,j]=m,{formatMessage:C}=(0,I.useIntl)({moduleName:"Common"}),{single:D,placement:b,getPopupContainer:A,placeholder:S,isPopup:O,disabled:L,showSelectedTag:P,extra:F,inputContent:E,allowClear:z,overlayClassName:V}=g,W=(0,c.useRef)(a);W.current=a;const K=w()(l);(0,c.useEffect)(()=>{K(O?u:d)},[O,K]),(0,c.useEffect)(()=>{t(Object.assign({},W.current,{data:a.data,isComplete:a.isComplete}))},[a.data,t,a.isComplete]);const U=M({single:D,value:v,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{j(t=>{const n=t.slice(0),s=t.indexOf(e);return s>-1&&n.splice(s,1),n})}}),B=e=>{let{value:t,setValue:n}=e;return(0,k.jsxs)(_.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(I.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,k.jsx)(N.A,{className:s["selected-tag-list"],children:(0,k.jsx)("div",{className:s["selected-tag-inner"],children:M({value:t,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n(t=>{const n=t.slice(0),s=t.indexOf(e);return s>-1&&n.splice(s,1),n})}})})})]})},q=E?E(p):(0,k.jsxs)(_.Space,{className:s["display-content"],onMouseOver:()=>{i(!0)},onMouseOut:()=>{i(!1)},children:[(0,k.jsx)("div",{children:U||(0,k.jsx)("span",{className:s.placeholder,children:S||C({id:"pleaseSelect"})})}),o&&v&&v.length>0&&!L&&z?(0,k.jsx)(y.default,{className:f()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),j([])}}):(0,k.jsx)(y.default,{className:f()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return O?(0,k.jsx)(R,{ref:u,overlayWidth:(0,H.v)(Math.max(x,(0,H.j)(g.overlayWidth))),value:v,setValue:j,single:D,disabled:L,inputContent:q,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof F?F({close:()=>u.current.close(),context:p}):F,renderSelectedContent:B,showSelectedTag:P,trigger:"click",placement:b,getPopupContainer:A,children:g.children}):(0,k.jsxs)("div",{className:s["input-inner"],onClick:()=>{L||d.current.modalOpen()},children:[(0,k.jsx)(T,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:f()(s.overlay,s["is-modal"],n),title:g.placeholder||C({id:"pleaseSelect"}),value:v,onChange:j,extra:"function"===typeof F?F({close:()=>d.current.close(),context:p}):F,showSelectedTag:P,renderSelectedContent:B,children:g.children}),q]})}),z=e=>{let{api:t,className:n,displayItems:l,wrapClassName:a,...r}=e;const{locale:i}=(0,P.A)(),[d,p]=(0,c.useState)(""),[m,g]=(0,c.useState)(new Map(l.map(e=>[e.value,e]))),{formatMessage:x}=(0,I.useIntl)({moduleName:"Common"}),[y,v]=(0,c.useState)(0),C=(0,O.A)(e=>{v(e.clientWidth)}),[b,N]=(0,c.useState)({}),{message:S}=_.App.useApp(),w=e=>{const t=e.filter(e=>m.get(e.value)!==e);0!==t.length&&g(e=>{const n=D()(e);return t.forEach(e=>{n.set(e.value,e)}),n})},H=e=>((e,t)=>Array.isArray(e)&&e.every(e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label"))?(t(e),e.map(e=>e.value)):e)(r.single?j()(e)?[]:[e]:e||[],w,r.valueType),[L,M]=u()(Object.assign({},r,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,m,r.valueType);r.onChange&&r.onChange(r.single?A()(t):t)}},"value"in r?{value:H(r.value)}:{defaultValue:H(r.defaultValue)})),T=F({maxLength:r.maxLength,single:r.single,setValue:M,value:L,message:()=>S.error(x({id:"maxSelectedCount"},{count:r.maxLength}))}),R=(0,c.useRef)(null);return(0,k.jsx)(o,{value:{inputWidth:y,mapping:m,searchText:d,setSearchText:p,appendMapping:w,setItems:e=>{b.setData(e),w(h()(r.dataFormat(e,{locale:i}),"list",[]))},getContentApi:()=>R.current,fetchApi:b,valueState:[L,T],props:r},children:(0,k.jsx)("div",{ref:C,className:f()(s["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],{"select-input-disabled":!!r.disabled},n),children:(0,k.jsx)(E,{...t,wrapClassName:a,loading:null,setFetchApi:N,getContentRef:e=>{e.current&&(R.current=e.current)},onRequestSuccess:e=>{w(h()(r.dataFormat(e,{locale:i}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};z.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const V=(0,I.createWithIntl)({importMessages:L.A,moduleName:"Common"})(z);V.useContext=r;const W=V},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>D});var s=n(87558),l=n.n(s),a=n(97211),r=n(64671),o=n(83136),i=n.n(o),c=n(55199),d=n(73884);const u=e=>{let{params:t}=e;const{data:n}=t;return new Promise((e,t)=>{const s=new window.Image;s.src=n,s.addEventListener("load",()=>{e(n)}),s.addEventListener("error",e=>{t(e)})})},p="style_img-outer__4QLY5__DHs+D",m="style_img__PSExq__DHs+D",h="style_loading__WCOwA__DHs+D",_="style_error__+ECgZ__DHs+D";var g=n(18411),f=n(63743),x=n(70579);const y=e=>{let{data:t,className:n,alt:s,innerLoading:a,loading:o=(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0}),error:d=(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:p,children:h,onClick:_,staticUrl:g}=e;const{staticUrl:y}=(0,f.usePreset)(),v=g||y||"";return(0,x.jsx)(l(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:v+t},error:p||d,loading:a||o,render:e=>{let{data:t}=e;return"function"===typeof h?h({alt:s,className:i()(n,m),src:t}):(0,x.jsx)("img",{alt:s,className:i()(n,m),src:t,onClick:_})}})},v=(0,a.A)(y),j=e=>{let{loading:t,error:n,src:s,id:l,alt:a,className:r,children:o,apis:i,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:h}),p=n&&(0,d.cloneElement)(n,{className:_});return s?(0,x.jsx)(y,{alt:a,className:r,data:s,loading:u,error:p,onClick:c,children:o}):l?(0,x.jsx)(v,{alt:a,className:r,id:l,loading:u,innerLoading:u,error:p,innerError:p,apis:i,onClick:c,children:o}):p},C=e=>{let{id:t,src:n,alt:s,onClick:l,loading:a=(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:d,apis:u,...m}=e;return(0,x.jsx)("div",{...m,"data-testid":"components-core-image",className:i()(d,p),children:j({loading:a,error:o,src:n,id:t,alt:s,className:d,apis:u,onClick:l})})};C.Avatar=e=>{let{id:t,src:n,alt:s,gender:l,loading:a=(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:d,gap:u,icon:m,children:h,shape:_,size:f=100,width:y,height:v,defaultAvatar:C=g.A,apis:D,...b}=e;const A=(()=>{const e=y&&v?{style:{width:y,height:v}}:{size:f};if(y&&y!==v&&(_="square"),t||n)return j({loading:a,error:o,src:n,defaultAvatar:C,id:t,alt:s,className:d,apis:D,children:t=>(0,x.jsx)(c.Avatar,{...t,gap:u,shape:_,...e})});if(l){const t=l&&["F","female","f"].indexOf(l)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,x.jsx)(c.Avatar,{...b,src:(0,x.jsx)(r.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:_,...e})}return(0,x.jsx)(c.Avatar,{...b,gap:u,icon:m,shape:_,size:f,src:C,...e,children:h})})();return(0,x.jsx)("div",{...b,"data-testid":"components-core-image-avatar",className:i()(d,p),style:{width:y&&v?y:f,height:y&&v?v:f},children:A})};const D=C},41654:(e,t,n)=>{n.d(t,{A:()=>m,K:()=>p});var s=n(45776),l=n(27047),a=n(33097),r=n.n(a),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c=()=>n.e(719).then(n.t.bind(n,10719,19)).then(e=>e.__esModule?e.default:e),d={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:c},u=e=>{let{apis:t,...n}=e;const{apis:a,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===a||void 0===a?void 0:a.staticData,t);return(0,o.jsx)(s.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.map(e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}])));return n}},c.functionData)})};u.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},u.defaultData=c;const p=e=>{let{apis:t,...n}=e;const{apis:a,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===a||void 0===a?void 0:a.staticData,t);return(0,o.jsx)(s.yK,{...n,...c.functionData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};u.FunctionEnum=u.Enum=p;const m=u},43856:(e,t,n)=>{n.r(t),n.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,SuperSelectUserField:()=>_.$9,TableField:()=>h.Bm,TypeDateRangePickerField:()=>y.A,UserField:()=>h.Eo,accept:()=>j.A,changeMoneyToChinese:()=>s.A,createAddressApi:()=>m.LH,createDeferred:()=>D(),createListField:()=>h.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>a,getScrollEl:()=>l.h,isNotEmpty:()=>b.A,numberToPx:()=>A.v,pxToNumber:()=>A.j,useFileUpload:()=>p.lN,useResize:()=>v.A,withAddressApi:()=>m.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var s=n(69484),l=n(76801);const a=e=>{const t=e=>{const n=(0,l.h)();if(!e||e===n||!e.parentElement)return n;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=n(97211),o=n(78784),i=n(73025),c=n(17342),d=n(73161),u=n(30509),p=n(17508),m=n(93761),h=n(12392),_=n(60586),g=n(45776),f=n(41654),x=n(53392),y=n(89319),v=n(77964),j=n(81348),C=n(1582),D=n.n(C),b=n(55490),A=n(91176)},45776:(e,t,n)=>{n.d(t,{yK:()=>I,ON:()=>h,Ay:()=>M});var s=n(30509),l=n(73884),a=n(96418),r=n.n(a),o=n(55199),i=n(64671),c=n(73161),d=n(33097),u=n.n(d),p=n(79686),m=n.n(p);const h=e=>{const t=Array.from(e.values()),n=t.filter(e=>null===e.parentId),s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],s=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach(e=>{s(e.id)}))};return s(t),n},a=(t,n)=>{const s=t=>{const l=e.get(t);return l?n(l)?l:m()(l.parentId)?null:s(l.parentId):null};return s(t)},r=t=>{const s=e.get(t);if(!s)return[];const l=s.parentId;if(m()(l))return n;return e.get(l).children},o=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map(n=>{const s=t.filter(e=>e.parentId===n.id);return Object.assign({},n,{children:e(s)})}):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const s=e=>{if(e.children&&e.children.length>0)return s(e.children.find(t=>t.children&&e.children.length>0)||u()(e.children,"0"));const t=l(e.parentId).find(e=>e.children&&e.children.length>0);return t?s(t):e},a=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],s=e.get(t);return!s||m()(s.parentId)?n:a(s.parentId,n)},r=s(n);return a(u()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(a(t,e=>n.indexOf(e.id)>-1))return{checked:!0,indeterminate:!1};const s=(t=>{const s=t=>{const l=e.get(t);return l?(a=l,n.indexOf(a.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find(e=>!!s(e.id)):void 0):null;var a};return!!s(t)})(t);return s?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:a,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),a=t=>{const o=e.get(t);if(!o)return;n.push(t),l(t).forEach(e=>{s(n,e.id)});const i=r(t),c=i.every(e=>n.indexOf(e.id)>-1);o.parentId&&c&&(i.forEach(e=>{s(n,e.id)}),a(o.parentId))};return a(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const a=e.get(t);if(!a)return;if(n.indexOf(a.id)>-1)return void s(n,a.id);const o=r(t);a.parentId&&(o.forEach(e=>{t!==e.id&&n.push(e.id)}),l(a.parentId))};return l(t),n},treeData:o,treeMapping:new Map(o.map(e=>[e.id,e]))}};var _=n(74065),g=n.n(_),f=n(19853),x=n.n(f),y=n(17342),v=n(83136),j=n.n(v);const C={content:"style_content__Hxlt9__DHs+D",columns:"style_columns__FmtPF__DHs+D","content-item":"style_content-item__i6HCO__DHs+D","last-level-area":"style_last-level-area__2y7jQ__DHs+D","is-popup":"style_is-popup__+r3Mn__DHs+D",menu:"style_menu__WZUVE__DHs+D","scroll-plus-box":"style_scroll-plus-box__QcTst__DHs+D","menu-label":"style_menu-label__iGt0Z__DHs+D","menu-item":"style_menu-item__hXHfm__DHs+D","checkbox-hidden":"style_checkbox-hidden__Xpx7J__DHs+D",loading:"style_loading__ZwrVe__DHs+D"};var D=n(87558),b=n(47458),A=n(25438),N=n(70579),S=n(27047);const w=new Map,O=(0,D.withFetch)(e=>{let{data:t,name:n,type:s,cache:a,children:r,getLabel:o,...i}=e;const c=(0,l.useMemo)(()=>new Map(t.map(e=>[e.code,{...e,id:e.code,label:o?o(e):e.chName,parentId:e.parentCode||null}])),[t,o]).get(n);return w.set(`${n}_${s}`,c),r(c,i)}),H=e=>{const{locale:t}=(0,S.A)(),n=`${t}_${e.name}_${e.type}`,s=w.get(n);return s&&!e.force?e.children(s):(0,N.jsx)(O,{...e})};H.defaultProps={children:e=>u()(e,"label","")};const I=H,L=s.A.useContext,P=(0,D.withFetch)(e=>{let{data:t,computedIsChecked:n,onSelect:s}=e;return(0,N.jsx)(y.A,{className:C["scroll-plus-box"],children:(0,N.jsx)(o.List,{className:A.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,N.jsx)(o.List.Item,{className:j()(A.A["list-item"],{[A.A["is-selected"]]:t}),onClick:()=>s(e,t),children:(0,N.jsx)("span",{className:A.A["item-label"],children:e.label})})}})})}),k=e=>{let{value:t,setValue:n,size:s,selectLevel:a}=e;const{fetchApi:d,props:p}=L(),[m,_]=(0,l.useState)(""),f=r()(p.dataFormat),{formatMessage:v}=(0,b.useIntl)({moduleName:"Common"}),D=d.data,S=(0,l.useMemo)(()=>new Map(f(D).list.map(e=>[e.value,e])),[D,f]),w=(0,l.useMemo)(()=>h(S),[S]),O=(0,l.useRef)({});O.current={createMergeTree:p.createMergeTree,loadMore:d.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:w};const[H,I]=(0,l.useState)(()=>{const e=t.find(e=>!!S.get(e));return w.getSelectedQueue(e||u()(d.data.find(e=>e.children&&e.children.length>0),"id")||u()(d.data,"[0].id"),S)});(0,l.useEffect)(()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:s,treeUtils:l}=O.current;if(!e)return;const a=S.get(g()(H));if(!a)return;const r=l.getSelectedQueue(a.id);x()(H,r)?a.hasOwnProperty("children")||t({data:{[n]:a.id}},s(a.id)):I(r)},[H,S]);const k=(e,l)=>{const a=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?w.setNodeChecked(l,t):w.setNodeUnchecked(l,t)})();a.length>s?o.message.error(v({id:"maxSelectedCount"},{count:s})):n(p.single&&a.length>0?[g()(a)]:a)},F=e=>{const t=S.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},M=!p.openLoadData&&"function"===typeof p.onSearch,T=M&&m&&(0,N.jsx)(P,{data:{searchText:m},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:S})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{k(!t,e.id),!t&&I(w.getSelectedQueue(e.id,S)),_("")}});return(0,N.jsxs)("div",{className:j()(C.content,{[C["is-popup"]]:p.isPopup,[C["has-search"]]:M}),style:{"--menu-item-width":p.menuItemWidth},children:[M&&(0,N.jsx)(c.A,{isPopup:p.isPopup,className:j()(A.A["search-input"],{[A.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||v({id:"search"}),value:m,onSearch:e=>{_(e)}}),T||(0,N.jsx)("div",{children:(0,N.jsx)(y.A,{className:C.scroller,options:{autoHide:!1},children:(0,N.jsxs)("div",{className:C.columns,children:[H.map((e,n)=>{const s=S.get(e),r=w.getSiblingNode(e),c=!F(null===s||void 0===s?void 0:s.id)&&n>0;return(0,N.jsx)(y.A,{className:j()(C["content-item"],{[C["last-level-area"]]:c}),children:c?(0,N.jsx)(o.Space,{wrap:!0,children:r.map(e=>(0,l.createElement)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:a>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>k(t.target.checked,e.id)},e.label))}):(0,N.jsx)(o.Menu,{className:j()(C.menu),onSelect:e=>{const n=S.get(e.key);if(n)if(F(n.id))I(w.getSelectedQueue(n.id,S));else{const{checked:e}=w.computedCheckboxStatus(n.id,t);k(!e,n.id)}},selectedKeys:n===H.length-1?[]:H,items:r.map(e=>({key:e.id,label:(0,N.jsxs)(o.Space,{className:j()(C["menu-item"],{[C["checkbox-hidden"]]:p.onlyAllowLastLevel&&F(e.id)}),children:[!p.onlyAllowLastLevel&&(0,N.jsx)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:a>1&&t.indexOf(e.parentCode)>-1,onChange:t=>k(t.target.checked,e.id)}),(0,N.jsx)("div",{className:C["menu-label"],children:e.label}),F(e.id)&&(0,N.jsx)(i.default,{className:C["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},u()(r,"[0].id",n))}),d.isComplete?null:(0,N.jsx)("div",{className:C.loading,children:(0,N.jsx)(o.Spin,{size:"small"})})]})})})]})},F=e=>{let{maxLength:t,nodeFormat:n,dataFormat:l,...a}=e;return(0,N.jsx)(s.A,{...a,dataFormat:e=>l(e,n),children:e=>{let{value:n,setValue:s}=e;return(0,N.jsx)(k,{...a,size:t,value:n,setValue:s})}})};F.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:n}=t;return Array.from(n.values()).filter(t=>t.label.indexOf(e)>-1)},dataFormat:(e,t)=>{const n=(e,s)=>{const l=[];return l.push(...(e||[]).map(e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...n(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:s})))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const s=t=>t.map(t=>t.id===e?Object.assign({},t,{children:n&&n.map(t=>Object.assign({},t,{parentId:e}))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:s(t.children)}):t);return s(t)}};const M=F},53392:(e,t,n)=>{n.d(t,{A:()=>p,W:()=>u});var s=n(45776),l=n(27047),a=n(33097),r=n.n(a),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7183).then(n.t.bind(n,57183,19)).then(e=>e.__esModule?e.default:e)},d=e=>{let{apis:t,...n}=e;const{apis:a,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===a||void 0===a?void 0:a.staticData,t);return(0,o.jsx)(s.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.filter(e=>"000"!==e.code).map(e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}])));return n}},d.industryData)})};d.defaultProps={overlayWidth:"635px"};const u=e=>{let{apis:t,...n}=e;const{apis:a,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===a||void 0===a?void 0:a.staticData,t);return(0,o.jsx)(s.yK,{...n,...d.industryData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};d.IndustryEnum=d.Enum=u;const p=d},55490:(e,t,n)=>{n.d(t,{A:()=>s.isNotEmpty});var s=n(39129)},60586:(e,t,n)=>{n.d(t,{e0:()=>g,$9:()=>f,Ay:()=>_});var s=n(73884),l=n(82146),a=n.n(l),r=n(3382),o=n(40438),i=n(55199);const c="style_select-list-item-description__ndJSX__DHs+D",d="style_select-list-item-label__gyGnt__DHs+D";var u=n(83136),p=n.n(u),m=(n(96316),n(70579));const h=(0,s.forwardRef)((e,t)=>{const n=Object.assign({},{children:e=>{let{components:t}=e;return(0,m.jsxs)(i.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,!1!==n.isPopup&&t.selectedTag]})},renderModal:e=>{const{props:t,open:n,onOpenChange:s,value:a,onComplete:o}=e,{placeholder:i,children:c,showSelectedTag:d,onConfirm:u}=t;return(0,m.jsx)(r.default,{title:i,open:n,onClose:()=>{s(!1)},footer:d&&(0,m.jsx)(l.SelectedTagList,{}),onConfirm:()=>{if(o(),"function"===typeof u)return u(a)},children:c(e)})}},e);return(0,m.jsx)(a(),{...n,ref:t})}),_=h,g=(0,s.forwardRef)((e,t)=>{const n=Object.assign({},{renderModal:e=>{const{props:t,open:n,value:s,onOpenChange:l,onComplete:a}=e,{placeholder:o,children:i,onConfirm:c}=t;return(0,m.jsx)(r.default,{title:o,open:n,onClose:()=>{l(!1)},onConfirm:()=>{if(a(),"function"===typeof c)return c(s)},children:i(e)})}},e);return(0,m.jsx)(l.SelectTableList,{...n,ref:t})}),f=(0,s.forwardRef)((e,t)=>(0,m.jsx)(h,{...e,ref:t,renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:s,avatarKey:l,descriptionKey:a}=n,r=t[l||"avatar"];return(0,m.jsxs)(i.Flex,{gap:8,children:[(0,m.jsx)(o.default.Avatar,{...Object.assign({},"string"===typeof r?{id:r}:r),size:32,gender:"M"}),(0,m.jsxs)(i.Flex,{vertical:!0,gap:8,align:"center",children:[(0,m.jsx)("div",{className:p()(d,"select-list-item-label"),children:t[s]}),t[a||"description"]&&(0,m.jsx)("div",{className:p()(c,"select-list-item-description"),children:t[a||"description"]})]})]})}}))},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>s});const s=1e15,l=e=>{let t,n,l,a=["\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))>=s)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=a[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(l=e.split("."),t=l[0],n=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let s=0;s<n;s++){let l=t.substr(s,1),i=n-s-1,d=i/4,u=i%4;"0"===l?e++:(e>0&&(c+=a[0]),e=0,c+=a[parseInt(l)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!==e&&(c+=a[Number(e)]+i[t])}}return""===c?c+=a[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},73161:(e,t,n)=>{n.d(t,{A:()=>p});var s=n(55199),l=n(83136),a=n.n(l);const r="style_search-input__8aH1G__DHs+D",o="style_is-popup__L0973__DHs+D";var i=n(64671),c=n(73884),d=n(51941),u=n(70579);const p=e=>{let{value:t,debounce:n=500,onSearch:l,isPopup:p,placeholder:m,className:h,..._}=e;const[g,f]=(0,c.useState)(t),x=(0,c.useRef)(t),y=(0,d.useDebouncedCallback)(l,n);return(0,c.useEffect)(()=>{t!==x.current&&(f(t),x.current=t)},[t]),(0,u.jsx)(s.Input.Search,{..._,allowClear:!0,className:a()(h,r,{[o]:p}),value:g,placeholder:m,prefix:(0,u.jsx)(i.default,{type:"icon-sousuo"}),enterButton:(0,u.jsx)(i.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;x.current=t,f(t),y(t)},onSearch:e=>{y(e)}})}},74981:(e,t,n)=>{n.d(t,{A:()=>l});var s=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,s.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,s.useContext)(t)}}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(73884),l=n(79889),a=n.n(l),r=n(93950),o=n.n(r),i=n(96418),c=n.n(i);const d=(e,t)=>{const n=(0,s.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,s.useRef)(null),r=c()(e);return(0,s.useLayoutEffect)(()=>{const e=l.current,t=()=>window.requestAnimationFrame(()=>{e&&r(e)});t();const s=new ResizeObserver((n.current.isDebounce?o():a())(t,n.current.time));return e&&s.observe(e),()=>{s.disconnect()}},[r]),l}},78784:(e,t,n)=>{n.d(t,{default:()=>l.a});n(21219);var s=n(95183),l=n.n(s);n.o(s,"FetchScrollLoader")&&n.d(t,{FetchScrollLoader:function(){return s.FetchScrollLoader}})},81348:(e,t,n)=>{n.d(t,{A:()=>s.computedAccept});var s=n(68827)},89319:(e,t,n)=>{n.d(t,{A:()=>u});var s=n(55199),l=n(10986),a=n.n(l),r=n(57469),o=n.n(r),i=n(20492),c=n(47458),d=n(70579);const u=(0,c.createWithIntl)({importMessages:i.A,moduleName:"Common"})(e=>{let{...t}=e;const{formatMessage:n}=(0,c.useIntl)({moduleName:"Common"}),l=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[r,i]=a()(t);return(0,d.jsxs)(s.Space.Compact,{children:[(0,d.jsx)(s.Select,{style:{width:"120px"},value:(null===r||void 0===r?void 0:r.type)||"date",onChange:e=>{i(t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[o()(t.value[0]).startOf(e||"date"),o()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}})},options:Array.from(l).map(e=>{let[t,n]=e;return{label:n,value:t}})}),(0,d.jsx)(s.DatePicker.RangePicker,{...t,picker:(null===r||void 0===r?void 0:r.type)||"date",value:Array.isArray(null===r||void 0===r?void 0:r.value)&&2===r.value.length&&r.value.map(e=>e&&o()(e)),onChange:e=>{i(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,n)=>{n.d(t,{j:()=>l,v:()=>s});const s=e=>"number"===typeof e?`${e}px`:e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},93761:(e,t,n)=>{n.d(t,{qn:()=>T,TM:()=>Z,LH:()=>L,Ay:()=>E,NY:()=>P,DF:()=>R});var s=n(30509),l=n(25438),a=n(55199),r=n(27047),o=n(83136),i=n.n(o),c=n(64671),d=n(73884),u=n(21485),p=n(56434),m=n.n(p),h=n(15797),_=n.n(h),g=n(33097),f=n.n(g);const x="style_address__DIuRX__DHs+D",y="style_is-popup__tqVvp__DHs+D",v="style_title__FAe12__DHs+D",j="style_scroll-box__JWiDl__DHs+D",C="style_scroll-plus-box__lidEW__DHs+D",D="style_content__lAARZ__DHs+D",b="style_col-left__WPfeS__DHs+D",A="style_col-right__z0e9-__DHs+D";var N=n(87558),S=n.n(N);const w=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var O=n(47458),H=n(70579);const I=s.A.useContext,L=e=>{let{city:t,province:n,country:s}=e;const l=_()(()=>{const e=[];return["gangaotai","municipality"].forEach(n=>{e.push(...t.relations[n])}),["provinces","continents"].forEach(n=>{t.relations[n].forEach(n=>{e.push(n),e.push(...t.relations[n])})}),e.map(e=>t.list[e])});return{getCity:_()(e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}}),getChinaHotCities:_()(()=>t.relations[2].map(e=>t.list[e])),getChinaCities:_()(()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map(e=>Object.assign({id:e},t.list[e]))),getCountries:_()(()=>["1",...s.relations.continents].map(e=>Object.assign({id:e},s.list[e]))),getList:_()((e,l)=>{const{showChinaQuan:a,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map(e=>t.list[e]);const o=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return o.name=""+(a?"\u5168":"")+o.name,[o];const i=t.relations[e].map(e=>t.list[e]);return n.relations.provinces.indexOf(e)>-1&&a&&(o.name="\u5168"+o.name,i.splice(0,0,o)),s.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i}),getNationalityList:_()(e=>{let n=m()(t);return"1"===e&&n.relations[1].unshift("410"),"350"===e&&n.relations[350].unshift("410"),n.relations[e].filter(e=>n.list[e]).map(e=>n.list[e])}),getCityByName:_()(e=>{const t=l();let n;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find(e=>(n=t.find(e),n)),n}),combineCities:_()((e,n)=>[...n.filter(n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n),e]),searchCities:_()(e=>{if(!e)return[];return l().filter(t=>["pinyin","name","enName","spelling"].some(n=>t[n].toUpperCase().indexOf(e.toUpperCase())>-1)).map(e=>{const n=e.parentCode?t.list[e.parentCode]:null;return{label:n?`${n.name}\xb7${e.name}`:e.name,value:e.code}})})}},P=(e,t)=>"en-US"===t?f()(e,"enName"):f()(e,"name"),k={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7820).then(n.t.bind(n,37820,19)).then(e=>e.__esModule?e.default:e)},F=e=>{let{value:t,setValue:n}=e;const{fetchApi:s,props:o}=I(),[p,m]=(0,d.useState)(""),[h,_]=(0,d.useState)("2"),{formatMessage:g}=(0,O.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,r.A)(),{getCity:N,getChinaCities:S,getCountries:w,getList:k,searchCities:F}=(0,d.useMemo)(()=>L(s.data),[s.data]),M=e=>{if(o.single)return void n([e]);const s=t.slice(0),l=s.indexOf(e);l>-1?s.splice(l,1):s.push(e),n(s)},T=p&&(0,H.jsx)(u.A,{className:C,children:(0,H.jsx)(a.List,{className:l.A.list,size:"small",dataSource:F(p),rowKey:"value",renderItem:e=>(0,H.jsx)(a.List.Item,{className:l.A["list-item"],onClick:()=>{M(e.value),m("")},children:(0,H.jsx)("span",{className:l.A["item-label"],children:e.label})})})});return(0,H.jsxs)("div",{className:i()(x,{[y]:o.isPopup}),children:[(0,H.jsx)(a.Input.Search,{className:i()(l.A["search-input"],{[l.A["is-popup"]]:o.isPopup}),placeholder:o.searchPlaceholder||g({id:"searchCity"}),prefix:(0,H.jsx)(c.default,{type:"icon-sousuo"}),enterButton:(0,H.jsx)(c.default,{type:"icon-sousuo"}),value:p,allowClear:!0,onChange:e=>{const t=e.target.value;m(t)},onSearch:e=>{m(e)}}),(0,H.jsx)("div",{className:D,children:T||(0,H.jsxs)(a.Row,{wrap:!1,children:[(0,H.jsx)(a.Col,{className:b,children:(0,H.jsx)(a.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,H.jsx)(O.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,H.jsx)(u.A,{className:j,children:(0,H.jsx)(a.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:S().map(e=>({label:P(e,f),key:e.id}))})})},{key:"1",label:(0,H.jsx)(O.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,H.jsx)(u.A,{className:j,children:(0,H.jsx)(a.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map(e=>({label:P(e,f),key:e.id}))})})}]})}),(0,H.jsxs)(a.Col,{flex:1,className:A,children:[(0,H.jsx)(a.Divider,{className:v,orientation:"left",children:P(N(h).city,f)}),(0,H.jsx)(u.A,{className:j,children:(0,H.jsx)(a.Space,{wrap:!0,children:k(h,{showChinaQuan:o.showChinaQuan,showForeignQuan:o.showForeignQuan}).map(e=>(0,H.jsx)(a.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{M(e.code)},children:P(e,f)},e.code))})})]})]})})]})},M=e=>(0,H.jsx)(s.A,{...e,children:e=>{let{value:t,setValue:n}=e;return(0,H.jsx)(O.IntlProvider,{moduleName:"AddressSelect",importMessages:w,children:(0,H.jsx)(F,{value:t,setValue:n})})}});M.defaultProps={overlayWidth:"500px",isPopup:!0,api:k,dataFormat:(e,t)=>{let{city:n}=e;const{locale:s}=Object.assign({},t);return{list:Object.values(n.list).map(e=>Object.assign({},e,{value:e.code,label:P(e,s)}))}}};const T=(0,N.withFetch)(e=>{let{name:t,data:n,getAddressApi:s,children:l,...a}=e;const{locale:o}=(0,r.A)(),i=(0,d.useMemo)(()=>L(n),[n]);return s?l(i):(0,H.jsx)(S(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise(e=>{setTimeout(()=>{e(i.getCity(n))},0)})},render:e=>{let{data:t}=e;return l(t,Object.assign({},a,{locale:o}))}})});T.defaultProps={...k,displayParent:!1,children:(e,t)=>{let{city:n,parent:s}=e,{displayParent:l,locale:a}=t;return l&&s?`${P(s,a)}\xb7${P(n,a)}`:P(n,a)}};const R=e=>{const t=(0,N.withFetch)(t=>{let{data:n,...s}=t;const l=(0,d.useMemo)(()=>L(n),[n]);return(0,H.jsx)(e,{...s,addressApi:l})});return t.defaultProps={...k},t};M.AddressEnum=M.Enum=T,M.createAddressApi=L,M.withAddressApi=R,M.getLabelForLocal=P;const E=M;var z=n(10986),V=n.n(z),W=n(78491),K=n.n(W),U=n(20492),B=n(22616),q=n.n(B),$=n(1488),Q=n.n($);const X=e=>{const{isPopup:t,size:n,disabled:s,inputPlaceholder:l,onBlur:r,className:o,...i}=e,[c,d]=V()(e),u=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:p}=(0,O.useIntl)({moduleName:"Common"}),m=K()(e=>{r&&r(e)});return(0,H.jsx)("div",{ref:m,children:(0,H.jsxs)(a.Row,{gutter:10,children:[(0,H.jsx)(a.Col,{span:12,children:(0,H.jsx)(E,{...q()(i,u),className:o,disabled:s,single:!0,size:n,value:f()(c,"city"),onChange:e=>{d({city:e,detail:f()(c,"detail")})}})}),(0,H.jsx)(a.Col,{span:12,children:(0,H.jsx)(a.Input,{...Q()(i,u),className:o,placeholder:l||p({id:"pleaseInput"}),disabled:s,size:n,value:f()(c,"detail"),onChange:e=>{d({city:f()(c,"city"),detail:e.target.value})}})})]})})};X.defaultProps={};const Z=(0,O.createWithIntl)({importMessages:U.A,moduleName:"Common"})(X)},97211:(e,t,n)=>{n.d(t,{A:()=>s.withOSSFile});var s=n(68827)}}]);
|
|
2
|
+
//# sourceMappingURL=3856.d51e240b.chunk.js.map
|