@kne-components/components-core 0.4.19 → 0.4.20

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.
Files changed (123) hide show
  1. package/build/asset-manifest.json +88 -88
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/{1996.2e5446bd.chunk.css → 1996.669fbbe4.chunk.css} +2 -2
  6. package/build/static/css/{1996.2e5446bd.chunk.css.map → 1996.669fbbe4.chunk.css.map} +1 -1
  7. package/build/static/css/2004.b82ff9af.chunk.css +2 -0
  8. package/build/static/css/{2004.5a5f5050.chunk.css.map → 2004.b82ff9af.chunk.css.map} +1 -1
  9. package/build/static/css/206.a943eeec.chunk.css +2 -0
  10. package/build/static/css/{206.87cc50f7.chunk.css.map → 206.a943eeec.chunk.css.map} +1 -1
  11. package/build/static/css/254.ebe3daf6.chunk.css +2 -0
  12. package/build/static/css/{254.7e1a9cae.chunk.css.map → 254.ebe3daf6.chunk.css.map} +1 -1
  13. package/build/static/css/2628.34a09969.chunk.css +2 -0
  14. package/build/static/css/{2628.4b2fa5e7.chunk.css.map → 2628.34a09969.chunk.css.map} +1 -1
  15. package/build/static/css/3404.01f4e121.chunk.css +2 -0
  16. package/build/static/css/{3404.ab96a91e.chunk.css.map → 3404.01f4e121.chunk.css.map} +1 -1
  17. package/build/static/css/3652.f33d39bc.chunk.css +2 -0
  18. package/build/static/css/{3652.94c4a057.chunk.css.map → 3652.f33d39bc.chunk.css.map} +1 -1
  19. package/build/static/css/{3771.848b3542.chunk.css → 3771.d54ca80c.chunk.css} +2 -2
  20. package/build/static/css/{3771.848b3542.chunk.css.map → 3771.d54ca80c.chunk.css.map} +1 -1
  21. package/build/static/css/{3790.cbbb1d11.chunk.css → 3790.49dd4665.chunk.css} +2 -2
  22. package/build/static/css/{3790.cbbb1d11.chunk.css.map → 3790.49dd4665.chunk.css.map} +1 -1
  23. package/build/static/css/4244.0b449249.chunk.css +2 -0
  24. package/build/static/css/{4244.e15399ee.chunk.css.map → 4244.0b449249.chunk.css.map} +1 -1
  25. package/build/static/css/{4277.224c3e71.chunk.css → 4277.f50cb4fe.chunk.css} +2 -2
  26. package/build/static/css/{4277.224c3e71.chunk.css.map → 4277.f50cb4fe.chunk.css.map} +1 -1
  27. package/build/static/css/{4741.92851600.chunk.css → 4741.d037d214.chunk.css} +2 -2
  28. package/build/static/css/{4741.92851600.chunk.css.map → 4741.d037d214.chunk.css.map} +1 -1
  29. package/build/static/css/5195.56e71eae.chunk.css +2 -0
  30. package/build/static/css/{5195.fe9e1bec.chunk.css.map → 5195.56e71eae.chunk.css.map} +1 -1
  31. package/build/static/css/{6763.bf02c54a.chunk.css → 6763.955247ee.chunk.css} +2 -2
  32. package/build/static/css/{6763.bf02c54a.chunk.css.map → 6763.955247ee.chunk.css.map} +1 -1
  33. package/build/static/css/6980.eaa63357.chunk.css +12 -0
  34. package/build/static/css/{6980.130af877.chunk.css.map → 6980.eaa63357.chunk.css.map} +1 -1
  35. package/build/static/css/7227.134cb112.chunk.css +2 -0
  36. package/build/static/css/{7227.b7452b3a.chunk.css.map → 7227.134cb112.chunk.css.map} +1 -1
  37. package/build/static/css/{760.8472541b.chunk.css → 760.940979da.chunk.css} +2 -2
  38. package/build/static/css/{760.8472541b.chunk.css.map → 760.940979da.chunk.css.map} +1 -1
  39. package/build/static/css/{8593.f35a8aa6.chunk.css → 8593.db4e73b8.chunk.css} +2 -2
  40. package/build/static/css/{8593.f35a8aa6.chunk.css.map → 8593.db4e73b8.chunk.css.map} +1 -1
  41. package/build/static/css/9556.b4cf60cd.chunk.css +2 -0
  42. package/build/static/css/{9556.cf902901.chunk.css.map → 9556.b4cf60cd.chunk.css.map} +1 -1
  43. package/build/static/css/9772.618ab97d.chunk.css +2 -0
  44. package/build/static/css/{9772.4a475b09.chunk.css.map → 9772.618ab97d.chunk.css.map} +1 -1
  45. package/build/static/js/1996.03851a05.chunk.js +2 -0
  46. package/build/static/js/{1996.ca9b00d5.chunk.js.map → 1996.03851a05.chunk.js.map} +1 -1
  47. package/build/static/js/{2004.085d943f.chunk.js → 2004.35b53879.chunk.js} +3 -3
  48. package/build/static/js/{2004.085d943f.chunk.js.map → 2004.35b53879.chunk.js.map} +1 -1
  49. package/build/static/js/206.8d606f29.chunk.js +2 -0
  50. package/build/static/js/{206.92fa9c1f.chunk.js.map → 206.8d606f29.chunk.js.map} +1 -1
  51. package/build/static/js/254.9697112f.chunk.js +2 -0
  52. package/build/static/js/{254.11755151.chunk.js.map → 254.9697112f.chunk.js.map} +1 -1
  53. package/build/static/js/{2628.8834a75f.chunk.js → 2628.de13331a.chunk.js} +2 -2
  54. package/build/static/js/{2628.8834a75f.chunk.js.map → 2628.de13331a.chunk.js.map} +1 -1
  55. package/build/static/js/{3404.77db51dc.chunk.js → 3404.753081f6.chunk.js} +3 -3
  56. package/build/static/js/{3404.77db51dc.chunk.js.map → 3404.753081f6.chunk.js.map} +1 -1
  57. package/build/static/js/{3652.7e815933.chunk.js → 3652.094bc015.chunk.js} +2 -2
  58. package/build/static/js/{3652.7e815933.chunk.js.map → 3652.094bc015.chunk.js.map} +1 -1
  59. package/build/static/js/3771.21de0446.chunk.js +2 -0
  60. package/build/static/js/{3771.6baa72b9.chunk.js.map → 3771.21de0446.chunk.js.map} +1 -1
  61. package/build/static/js/{3790.435a94b8.chunk.js → 3790.331aee9a.chunk.js} +2 -2
  62. package/build/static/js/{3790.435a94b8.chunk.js.map → 3790.331aee9a.chunk.js.map} +1 -1
  63. package/build/static/js/3856.ef83565d.chunk.js +2 -0
  64. package/build/static/js/3856.ef83565d.chunk.js.map +1 -0
  65. package/build/static/js/4244.7b8c33e7.chunk.js +2 -0
  66. package/build/static/js/{4244.d1666f2b.chunk.js.map → 4244.7b8c33e7.chunk.js.map} +1 -1
  67. package/build/static/js/4277.71e9c264.chunk.js +2 -0
  68. package/build/static/js/{4277.f953fa5c.chunk.js.map → 4277.71e9c264.chunk.js.map} +1 -1
  69. package/build/static/js/4474.ae9cc1df.chunk.js +2 -0
  70. package/build/static/js/{4474.bd07c69e.chunk.js.map → 4474.ae9cc1df.chunk.js.map} +1 -1
  71. package/build/static/js/5195.c442c6a9.chunk.js +2 -0
  72. package/build/static/js/{5195.ff2ecd55.chunk.js.map → 5195.c442c6a9.chunk.js.map} +1 -1
  73. package/build/static/js/{6075.4cb6c645.chunk.js → 6075.0cce58de.chunk.js} +2 -2
  74. package/build/static/js/{6075.4cb6c645.chunk.js.map → 6075.0cce58de.chunk.js.map} +1 -1
  75. package/build/static/js/6763.d8d67bc8.chunk.js +2 -0
  76. package/build/static/js/{6763.4a72ce83.chunk.js.map → 6763.d8d67bc8.chunk.js.map} +1 -1
  77. package/build/static/js/{6980.4c035b4e.chunk.js → 6980.9317c11e.chunk.js} +2 -2
  78. package/build/static/js/6980.9317c11e.chunk.js.map +1 -0
  79. package/build/static/js/{7227.5563cb7e.chunk.js → 7227.19cb906d.chunk.js} +3 -3
  80. package/build/static/js/{7227.5563cb7e.chunk.js.map → 7227.19cb906d.chunk.js.map} +1 -1
  81. package/build/static/js/{760.d53179f5.chunk.js → 760.9091d738.chunk.js} +2 -2
  82. package/build/static/js/{760.d53179f5.chunk.js.map → 760.9091d738.chunk.js.map} +1 -1
  83. package/build/static/js/8593.06ee7e92.chunk.js +2 -0
  84. package/build/static/js/{8593.b8fbccf4.chunk.js.map → 8593.06ee7e92.chunk.js.map} +1 -1
  85. package/build/static/js/9556.573b6a87.chunk.js +3 -0
  86. package/build/static/js/{9556.4b2d6baa.chunk.js.map → 9556.573b6a87.chunk.js.map} +1 -1
  87. package/build/static/js/9772.317c43ec.chunk.js +2 -0
  88. package/build/static/js/9772.317c43ec.chunk.js.map +1 -0
  89. package/build/static/js/{main.74e21614.js → main.1ca47a52.js} +2 -2
  90. package/build/static/js/{main.74e21614.js.map → main.1ca47a52.js.map} +1 -1
  91. package/package.json +2 -2
  92. package/build/static/css/2004.5a5f5050.chunk.css +0 -2
  93. package/build/static/css/206.87cc50f7.chunk.css +0 -2
  94. package/build/static/css/254.7e1a9cae.chunk.css +0 -2
  95. package/build/static/css/2628.4b2fa5e7.chunk.css +0 -2
  96. package/build/static/css/3404.ab96a91e.chunk.css +0 -2
  97. package/build/static/css/3652.94c4a057.chunk.css +0 -2
  98. package/build/static/css/4244.e15399ee.chunk.css +0 -2
  99. package/build/static/css/5195.fe9e1bec.chunk.css +0 -2
  100. package/build/static/css/6980.130af877.chunk.css +0 -12
  101. package/build/static/css/7227.b7452b3a.chunk.css +0 -2
  102. package/build/static/css/9556.cf902901.chunk.css +0 -2
  103. package/build/static/css/9772.4a475b09.chunk.css +0 -2
  104. package/build/static/js/1996.ca9b00d5.chunk.js +0 -2
  105. package/build/static/js/206.92fa9c1f.chunk.js +0 -2
  106. package/build/static/js/254.11755151.chunk.js +0 -2
  107. package/build/static/js/3771.6baa72b9.chunk.js +0 -2
  108. package/build/static/js/3856.69b5b484.chunk.js +0 -2
  109. package/build/static/js/3856.69b5b484.chunk.js.map +0 -1
  110. package/build/static/js/4244.d1666f2b.chunk.js +0 -2
  111. package/build/static/js/4277.f953fa5c.chunk.js +0 -2
  112. package/build/static/js/4474.bd07c69e.chunk.js +0 -2
  113. package/build/static/js/5195.ff2ecd55.chunk.js +0 -2
  114. package/build/static/js/6763.4a72ce83.chunk.js +0 -2
  115. package/build/static/js/6980.4c035b4e.chunk.js.map +0 -1
  116. package/build/static/js/8593.b8fbccf4.chunk.js +0 -2
  117. package/build/static/js/9556.4b2d6baa.chunk.js +0 -3
  118. package/build/static/js/9772.b80d84c8.chunk.js +0 -2
  119. package/build/static/js/9772.b80d84c8.chunk.js.map +0 -1
  120. /package/build/static/js/{2004.085d943f.chunk.js.LICENSE.txt → 2004.35b53879.chunk.js.LICENSE.txt} +0 -0
  121. /package/build/static/js/{3404.77db51dc.chunk.js.LICENSE.txt → 3404.753081f6.chunk.js.LICENSE.txt} +0 -0
  122. /package/build/static/js/{7227.5563cb7e.chunk.js.LICENSE.txt → 7227.19cb906d.chunk.js.LICENSE.txt} +0 -0
  123. /package/build/static/js/{9556.4b2d6baa.chunk.js.LICENSE.txt → 9556.573b6a87.chunk.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/3771.6baa72b9.chunk.js","mappings":"yWACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,+YCOHE,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,SACvDL,OAPEK,GAYTS,EAAaA,CAACC,EAAQhB,IAClB,GAANiB,OAAUD,EAAS,IAAMhB,EAAS,GAAK,GAAE,MAoBvCkB,EAASC,IAEQ,IAFP,OACInB,EAAM,cAAEoB,EAAa,UAAEC,EAAS,SAAEC,EAAQ,QAAEC,EAAO,YAAEC,GACxDL,EACb,OAAQZ,EAAAA,EAAAA,MAACC,EAAAA,I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MlB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACD8F,GAAM,IACV9G,QAASA,KACPiE,EAAM4C,MAId,CACA,OAAOrI,EAAAA,EAAAA,KAACmI,EAAAA,GAAW3F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEkG,UAAW3C,K,oECf5C,QAAe1B,G","sources":["webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__bxpL6\",\"large\":\"style_large__iaqVE__bxpL6\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__bxpL6\",\"modal-title\":\"style_modal-title__dswaw__bxpL6\",\"modal-outer\":\"style_modal-outer__r3SkX__bxpL6\",\"modal-body\":\"style_modal-body__jQJSI__bxpL6\",\"right-options-modal\":\"style_right-options-modal__FajDP__bxpL6\",\"right-options-row\":\"style_right-options-row__-mPb9__bxpL6\",\"right-options-col\":\"style_right-options-col__3ilee__bxpL6\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__bxpL6\",\"content\":\"style_content__k6MIF__bxpL6\",\"modal-footer\":\"style_modal-footer__-prbN__bxpL6\",\"modal-close\":\"style_modal-close__Oa5Kl__bxpL6\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__bxpL6\",\"is-danger\":\"style_is-danger__H5110__bxpL6\",\"title\":\"style_title__orTym__bxpL6\",\"has-title\":\"style_has-title__qy0Wp__bxpL6\"};","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","concat","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","type","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","_objectSpread","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnHidden","sizeMap","width","Math","min","window","innerWidth","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded4","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded5","typeEnum","confirm","warning","error","success","direction","align","_ref7","_excluded3","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/3771.21de0446.chunk.js","mappings":"yWACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,+YCOHE,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,E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AAA,EAAAA,KAACmI,EAAAA,GAAW3F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEkG,UAAWF,MARtClI,EAAAA,EAAAA,KAAC0D,EAAAA,QAAMlB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACDN,GAAK,IACTV,QAASA,KACP0G,EAAUhG,EAAMmG,iBAO1B,EA9BqBnG,IACnB,MAAMuD,EAAQD,IACd,IAAKtD,EAAM0D,IAAK,CACd,MAAM,WAAEyC,GAA0BnG,EAAXoG,GAAMnG,EAAAA,EAAAA,GAAKD,EAAKE,GACvC,OACEpC,EAAAA,EAAAA,KAAC0D,EAAAA,QAAMlB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACD8F,GAAM,IACV9G,QAASA,KACPiE,EAAM4C,MAId,CACA,OAAOrI,EAAAA,EAAAA,KAACmI,EAAAA,GAAW3F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEkG,UAAW3C,K,oECf5C,QAAe1B,G","sources":["webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__RknBi\",\"large\":\"style_large__iaqVE__RknBi\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__RknBi\",\"modal-title\":\"style_modal-title__dswaw__RknBi\",\"modal-outer\":\"style_modal-outer__r3SkX__RknBi\",\"modal-body\":\"style_modal-body__jQJSI__RknBi\",\"right-options-modal\":\"style_right-options-modal__FajDP__RknBi\",\"right-options-row\":\"style_right-options-row__-mPb9__RknBi\",\"right-options-col\":\"style_right-options-col__3ilee__RknBi\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__RknBi\",\"content\":\"style_content__k6MIF__RknBi\",\"modal-footer\":\"style_modal-footer__-prbN__RknBi\",\"modal-close\":\"style_modal-close__Oa5Kl__RknBi\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__RknBi\",\"is-danger\":\"style_is-danger__H5110__RknBi\",\"title\":\"style_title__orTym__RknBi\",\"has-title\":\"style_has-title__qy0Wp__RknBi\"};","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","concat","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","type","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","_objectSpread","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnHidden","sizeMap","width","Math","min","window","innerWidth","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded4","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded5","typeEnum","confirm","warning","error","success","direction","align","_ref7","_excluded3","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3790],{48731:(e,n,i)=>{i.r(n),i.d(n,{default:()=>a.a});var s=i(45090),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__bxpL6",d="style_inner__bMKeU__bxpL6",p="style_content__xTfWZ__bxpL6",u="style_link__93j7O__bxpL6";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:p,children:e.content}),e.url&&(0,_.jsxs)(t.Typography.Link,{className:u,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(l.default,{type:"icon-shuangjiantou-right"})]})]})})})})}}}]);
2
- //# sourceMappingURL=3790.435a94b8.chunk.js.map
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(98919),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__RknBi",d="style_inner__bMKeU__RknBi",u="style_content__xTfWZ__RknBi",p="style_link__93j7O__RknBi";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.331aee9a.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/3790.435a94b8.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,2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K,8BACpBb,EAAAA,EAAAA,KAAA,QAAMD,UAAWS,EAAiBJ,SAAEE,EAAKQ,UACxCR,EAAKS,MACJN,EAAAA,EAAAA,MAACO,EAAAA,WAAWC,KAAI,CACdlB,UAAWS,EACXU,KAAMZ,EAAKS,IACXI,OAAO,SAAQf,SAAA,CAChB,4BAECJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACE,KAAK,yC","sources":["components/Enum/index.js","components/HelperGuide/locale/index.js","webpack://@kne-components/components-core/./src/components/HelperGuide/style.module.scss?bc31","components/HelperGuide/index.js"],"sourcesContent":["import { preset } from \"@kne/react-enum\";\nimport transform from \"lodash/transform\";\n\nconst baseLoaders = [\n [\n \"gender\",\n () => [\n { value: \"M\", description: \"男\" },\n {\n value: \"F\",\n description: \"女\",\n },\n ],\n ],\n [\n \"marital\",\n () => [\n { description: \"已婚\", value: \"Y\" },\n {\n description: \"未婚\",\n value: \"N\",\n },\n ],\n ],\n [\n \"confirm\",\n () => [\n { description: \"是\", value: \"Y\" },\n {\n description: \"否\",\n value: \"N\",\n },\n ],\n ],\n [\n \"political\",\n () => [\n { description: \"中共党员\", value: \"中共党员\" },\n {\n description: \"共青团员\",\n value: \"共青团员\",\n },\n { description: \"群众\", value: \"群众\" },\n {\n description: \"其他党派\",\n value: \"其他党派\",\n },\n ],\n ],\n [\n \"phoneStateEnum\",\n () => [\n {\n value: 0,\n description: \"空号\",\n },\n {\n value: 1,\n description: \"实号\",\n },\n {\n value: 2,\n description: \"停机\",\n },\n {\n value: 3,\n description: \"库无\",\n },\n {\n value: 4,\n description: \"沉默号\",\n },\n {\n value: 5,\n description: \"风险号\",\n },\n ],\n ],\n [\n \"degreeEnum\",\n () => [\n {\n description: \"初中\",\n value: 10,\n },\n {\n description: \"中专\",\n value: 20,\n },\n {\n description: \"高中\",\n value: 30,\n },\n {\n description: \"大专\",\n value: 40,\n },\n {\n description: \"本科\",\n value: 50,\n },\n {\n description: \"硕士研究生\",\n value: 60,\n },\n {\n description: \"博士研究生\",\n value: 70,\n },\n {\n description: \"博士后\",\n value: 75,\n },\n {\n description: \"学历不限\",\n value: 999,\n },\n ],\n ],\n];\n\npreset({\n base: transform(\n baseLoaders,\n (result, value) => {\n result[value[0]] = value[1];\n },\n {}\n ),\n});\n\nexport { default } from \"@kne/react-enum\";\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"helper-guide\":\"style_helper-guide__K5xFw__bxpL6\",\"inner\":\"style_inner__bMKeU__bxpL6\",\"content\":\"style_content__xTfWZ__bxpL6\",\"link\":\"style_link__93j7O__bxpL6\"};","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":""}
1
+ {"version":3,"file":"static/js/3790.331aee9a.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C,GAAWF,EACtC,OACEG,EAAAA,EAAAA,KAACC,EAAAA,aAAY,CAACC,eAAgBA,EAAgBC,WAAW,cAAaC,UACpEJ,EAAAA,EAAAA,KAACK,EAAAA,QAAI,CAACF,WAAW,cAAcL,KAAMA,EAAKM,SACtCE,GAEEA,GACAA,EAAKf,QACHS,EAAAA,EAAAA,KAAA,OAAKD,UAAWQ,IAAWC,EAAuBT,GAAWK,UAC3DK,EAAAA,EAAAA,MAACC,EAAAA,MAAK,CAACX,UAAWS,EAAeJ,SAAA,EAC/BJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACC,UAAQ,EAACC,KAAK,8BACpBb,EAAAA,EAAAA,KAAA,QAAMD,UAAWS,EAAiBJ,SAAEE,EAAKQ,UACxCR,EAAKS,MACJN,EAAAA,EAAAA,MAACO,EAAAA,WAAWC,KAAI,CACdlB,UAAWS,EACXU,KAAMZ,EAAKS,IACXI,OAAO,SAAQf,SAAA,CAChB,4BAECJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACE,KAAK,yC","sources":["components/Enum/index.js","components/HelperGuide/locale/index.js","webpack://@kne-components/components-core/./src/components/HelperGuide/style.module.scss?bc31","components/HelperGuide/index.js"],"sourcesContent":["import { preset } from \"@kne/react-enum\";\nimport transform from \"lodash/transform\";\n\nconst baseLoaders = [\n [\n \"gender\",\n () => [\n { value: \"M\", description: \"男\" },\n {\n value: \"F\",\n description: \"女\",\n },\n ],\n ],\n [\n \"marital\",\n () => [\n { description: \"已婚\", value: \"Y\" },\n {\n description: \"未婚\",\n value: \"N\",\n },\n ],\n ],\n [\n \"confirm\",\n () => [\n { description: \"是\", value: \"Y\" },\n {\n description: \"否\",\n value: \"N\",\n },\n ],\n ],\n [\n \"political\",\n () => [\n { description: \"中共党员\", value: \"中共党员\" },\n {\n description: \"共青团员\",\n value: \"共青团员\",\n },\n { description: \"群众\", value: \"群众\" },\n {\n description: \"其他党派\",\n value: \"其他党派\",\n },\n ],\n ],\n [\n \"phoneStateEnum\",\n () => [\n {\n value: 0,\n description: \"空号\",\n },\n {\n value: 1,\n description: \"实号\",\n },\n {\n value: 2,\n description: \"停机\",\n },\n {\n value: 3,\n description: \"库无\",\n },\n {\n value: 4,\n description: \"沉默号\",\n },\n {\n value: 5,\n description: \"风险号\",\n },\n ],\n ],\n [\n \"degreeEnum\",\n () => [\n {\n description: \"初中\",\n value: 10,\n },\n {\n description: \"中专\",\n value: 20,\n },\n {\n description: \"高中\",\n value: 30,\n },\n {\n description: \"大专\",\n value: 40,\n },\n {\n description: \"本科\",\n value: 50,\n },\n {\n description: \"硕士研究生\",\n value: 60,\n },\n {\n description: \"博士研究生\",\n value: 70,\n },\n {\n description: \"博士后\",\n value: 75,\n },\n {\n description: \"学历不限\",\n value: 999,\n },\n ],\n ],\n];\n\npreset({\n base: transform(\n baseLoaders,\n (result, value) => {\n result[value[0]] = value[1];\n },\n {}\n ),\n});\n\nexport { default } from \"@kne/react-enum\";\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"helper-guide\":\"style_helper-guide__K5xFw__RknBi\",\"inner\":\"style_inner__bMKeU__RknBi\",\"content\":\"style_content__xTfWZ__RknBi\",\"link\":\"style_link__93j7O__RknBi\"};","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:()=>V,TabsModal:()=>M,TabsModalButton:()=>z,default:()=>O,useConfirmModal:()=>B,useModal:()=>R,useTabsModal:()=>T});var a=n(89379),l=n(53986),s=n(73884),r=n(55199),i=n(83136),o=n.n(i);const c={modal:"style_modal__Pm3cF__RknBi",large:"style_large__iaqVE__RknBi","modal-body-inner":"style_modal-body-inner__4PhpA__RknBi","modal-title":"style_modal-title__dswaw__RknBi","modal-outer":"style_modal-outer__r3SkX__RknBi","modal-body":"style_modal-body__jQJSI__RknBi","right-options-modal":"style_right-options-modal__FajDP__RknBi","right-options-row":"style_right-options-row__-mPb9__RknBi","right-options-col":"style_right-options-col__3ilee__RknBi","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__RknBi",content:"style_content__k6MIF__RknBi","modal-footer":"style_modal-footer__-prbN__RknBi","modal-close":"style_modal-close__Oa5Kl__RknBi","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__RknBi","is-danger":"style_is-danger__H5110__RknBi",title:"style_title__orTym__RknBi","has-title":"style_has-title__qy0Wp__RknBi"},d=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var u=n(47458),p=n(64671);const m=(e,t)=>"function"===typeof e?e(t):e;var h=n(81014),_=n(17342),g=n(70579);const f=["ButtonComponent","onClick","autoClose","display"],x=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator","childrenRef"],A=["size"],y=["children"],v=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],C="Modal",j=e=>{let{options:t,rightSpan:n=6,children:a}=e;return t?(0,g.jsxs)(r.Row,{wrap:!1,className:c["right-options-row"],children:[(0,g.jsx)(r.Col,{span:24-n,className:c["right-options-col"],children:a}),(0,g.jsx)(r.Col,{span:n,className:c["right-options-col"],children:t})]}):a},b=(e,t)=>"".concat(e-48-(t?58:0),"px"),N=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:o,onClose:c,targetProps:p}=e;return(0,g.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,g.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Space,{children:(n||[{children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Cancel",moduleName:C})}),onClick:o},{type:"primary",children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Confirm",moduleName:C})}),onClick:i}]).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:r,autoClose:i=!0,display:o}=e,d=(0,l.A)(e,f);const u=n||h.default;return(0,s.createElement)(u,(0,a.A)((0,a.A)({},d),{},{key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=await Promise.resolve(r&&r(...t,p));return i&&!1!==a&&c&&c(),a}}))})})})]})},S=e=>{let{title:t,footer:n,disabledScroller:a,footerButtons:l,onClose:i,closable:d,onConfirm:u,onCancel:m,children:h,targetProps:f}=e;const x=(0,s.useRef)(null);return(0,g.jsxs)("div",{className:o()(c["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===d?null:(0,g.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:o()(c["modal-close"],"modal-close"),type:"text",icon:(0,g.jsx)(p.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),i&&i()}}),t&&(0,g.jsx)("div",{className:c["modal-title"],children:t}),(0,g.jsx)(_.A,{className:o()(c["modal-body"],{[c["is-disabled-scroller"]]:a},"modal-body"),ref:x,children:(0,g.jsx)("div",{className:o()(c["modal-body-inner"],"modal-body-inner"),children:h})}),null!==n||l?(0,g.jsx)("div",{className:o()(c["modal-footer"],"modal-footer"),children:(0,g.jsx)(N,{footer:n,footerButtons:l,onConfirm:u,onCancel:m,onClose:i,targetProps:f})}):null]})},k=e=>{let{withDecorator:t,footerButtons:n,title:l,closable:s,onClose:r,onConfirm:i,onCancel:o,footer:c,rightOptions:d,rightSpan:u,disabledScroller:p,childrenRef:h,children:_}=e;const f=e=>(e=Object.assign({},{title:l},e),(0,g.jsx)(S,{title:m(e.title,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r})),closable:s,onClose:r,onConfirm:i,onCancel:o,footerButtons:m(n,(0,a.A)((0,a.A)({},e),{},{close:r})),disabledScroller:p,footer:m(c,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r})),targetProps:Object.assign({},e,{childrenRef:h,close:r}),children:(0,g.jsx)(j,{rightSpan:u,options:m(d,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r})),children:m(_,(0,a.A)((0,a.A)({},e),{},{childrenRef:h,close:r}))})}));return"function"===typeof t?t(f,{childrenRef:h,close:r}):f({})},w=e=>{let{children:t,rightOptions:n,rightSpan:s,footer:r,footerButtons:i,className:p,size:m,title:h,onClose:_,onConfirm:f,onCancel:A,closable:y,disabledScroller:v,withDecorator:C,childrenRef:j}=e,N=(0,l.A)(e,x);return(0,a.A)((0,a.A)((0,a.A)({},N),{},{icon:null,centered:!0,title:null,maskClosable:!!N.hasOwnProperty("maskClosable")&&N.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:_,className:o()(p,c.modal,c[m],{[c["right-options-modal"]]:n})},((e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":b(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":b(300,t)}}:{width:"1000px",style:{"--min-modal-height":b(500,t)}})(m,!(null===r&&!i))),{},{children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Modal",children:k({withDecorator:C,title:h,closable:y,onClose:_,onConfirm:f,onCancel:A,footer:r,footerButtons:i,rightOptions:n,rightSpan:s,disabledScroller:v,children:t,childrenRef:j})})})},R=()=>{const{modal:e}=r.App.useApp(),t=(0,s.useRef)(null);return n=>{const s={},r=w((0,a.A)({onClose:()=>s.close(),childrenRef:t},n)),{children:i}=r,o=(0,l.A)(r,y),{destroy:c}=e.info((0,a.A)((0,a.A)({},o),{},{content:i}));return s.close=c,s}},B=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},s=(0,a.A)({onClose:()=>n.close(),maskClosable:!1},t),{type:i,icon:d,title:u,danger:m,wrapClassName:h,message:_,iconSetting:f={},confirmType:x="info"}=s,A=(0,l.A)(s,v),y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[i]){const{destroy:t}=e[i]((0,a.A)((0,a.A)({},A),{},{icon:null,wrapClassName:o()(c["confirm-modal-wrap"],h,{[c["is-danger"]]:m}),title:(0,g.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:u&&(0,g.jsxs)(r.Space,{size:0,align:"start",className:c.title,children:[m?(0,g.jsx)(p.default,{className:o()("title-icon","title-icon-".concat("confirm"===i?x:i)),type:d||y["confirm"===i?x:i]}):null,u]})}),content:(0,g.jsxs)(r.Space,{size:0,align:"start",className:o()(c.content,{[c["has-title"]]:u}),children:[!u&&m?(0,g.jsx)(p.default,{className:o()("title-icon","title-icon-".concat("confirm"===i?x:i)),type:d||y["confirm"===i?x:i]}):null,_]})}));n.close=t}return n}},O=e=>{let{size:t="default"}=e,n=(0,l.A)(e,A);const i=(0,s.useRef)(null);return(0,g.jsx)(r.Modal,(0,a.A)({},w(Object.assign({},n,{size:t,childrenRef:i}))))},L=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],P=["withDecorator"],I=["children"],F=e=>{let{items:t,className:n,activeKey:s,withDecorator:i,defaultActiveKey:c,onChange:d}=e,u=(0,l.A)(e,L);return(0,a.A)((0,a.A)({},u),{},{className:o()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,g.jsx)(r.Tabs,{items:t.map(t=>{let{withDecorator:a}=t,s=(0,l.A)(t,P);return Object.assign({},s,{children:"function"===typeof a?a(t=>e(Object.assign({},n,t,{children:s.children}))):e(Object.assign({},n,{children:s.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof i?i(n):n()},children:e=>{let{children:t}=e,n=(0,l.A)(e,I);return"function"===typeof t?t(n):t}})},M=e=>(0,g.jsx)(O,(0,a.A)({},F(e))),T=()=>{const e=R();return t=>e(F(t))};var D=n(73025);const E=["modalProps"],z=e=>{const t=T();return e.api?(0,g.jsx)(D.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t})):(0,g.jsx)(r.Button,(0,a.A)((0,a.A)({},e),{},{onClick:()=>{t(e.modalProps)}}))},V=e=>{const t=R();if(!e.api){const{modalProps:n}=e,s=(0,l.A)(e,E);return(0,g.jsx)(r.Button,(0,a.A)((0,a.A)({},s),{},{onClick:()=>{t(n)}}))}return(0,g.jsx)(D.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t}))}},12392:(e,t,n)=>{n.d(t,{Bm:()=>U,Eo:()=>W,NR:()=>k,Ay:()=>q});var a=n(55199),l=n(83136),s=n.n(l),r=n(89379),i=n(53986),o=n(30509),c=n(25438),d=n(78784),u=n(33097),p=n.n(u),m=n(34677),h=n.n(m);const _="create-list_scroll-loader__zoaS7__RknBi",g="create-list_is-popup__t3d-G__RknBi",f="create-list_is-not-full__FXtX1__RknBi",x="create-list_search-input__tV3vf__RknBi",A="create-list_left__EXr3i__RknBi",y="create-list_list-header__3xeJa__RknBi",v="create-list_is-modal__BMfya__RknBi";var C=n(73161),j=n(47458),b=n(70579);const N=["extra"],S=o.A.useContext,k=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:i,setSearchText:o,props:u,mapping:m}=S(),N=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},u.pagination),k=p()(r.requestParams,[N.paramsType,N.current],1),w=p()(r.requestParams,[N.paramsType,N.pageSizeName])||N.pageSize,{formatMessage:R}=(0,j.useIntl)({moduleName:"Common"}),B=u.dataFormat(r.data),{right:O,leftBottom:L,leftSpan:P=24}=u,I=1===n.length&&"all"===n[0];return(0,b.jsxs)(a.Row,{wrap:!1,className:O?s()("is-not-full",f):"",children:[(0,b.jsxs)(a.Col,{span:P,className:s()(A,"advance-select-left"),children:[u.getSearchProps?(0,b.jsx)(C.A,{isPopup:u.isPopup,className:s()(x,c.A["search-input"],{[c.A["is-popup"]]:u.isPopup}),placeholder:u.searchPlaceholder||R({id:"search"}),value:i,onSearch:e=>{r.reload(u.getSearchProps(e)),o(e)}}):null,u.single||!u.showSelectedCount&&!u.allowSelectAll?null:(0,b.jsxs)(a.Flex,{className:s()(y,{[v]:!u.isPopup}),justify:"space-between",children:[u.showSelectedCount?(0,b.jsxs)(a.Space,{children:[(0,b.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,b.jsx)(a.Typography.Link,{children:I?u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"}):"".concat(n.length).concat(u.countUnit||R({id:"items"}))})]}):(0,b.jsx)("div",{}),u.allowSelectAll?(0,b.jsx)("div",{children:(0,b.jsx)(a.Checkbox,{checked:I,onChange:e=>{l(e.target.checked?[u.allValue||"all"]:[])},children:(0,b.jsx)(j.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,b.jsx)("div",{})]}),(0,b.jsx)(d.default,{completeTips:"",isLoading:!r.isComplete,className:s()(_,{[g]:u.isPopup}),noMore:!B.total||k*w>=B.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(h()({[N.paramsType]:{[N.pageSizeName]:w,[N.current]:k+1}},u.getSearchProps&&u.getSearchProps(i)),u.mergeList)},children:(()=>{const e={props:u,value:n,setValue:l,list:B.list,data:r.data,fetchApi:r,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:I,onSelect:e=>{if(u.single)return void l([e.value]);const t=n.slice(0),a=t.indexOf(e.value);a>-1?t.splice(a,1):t.push(e.value),l(t)}},a=t(e);return"function"===typeof u.dropdownRender?u.dropdownRender(Object.assign({},e,{children:a})):a})()}),L&&L({fetchApi:r,value:n,mapping:m})]}),O&&O({value:n,mapping:m,fetchApi:r})]})},u=e=>{let{extra:t}=e,n=(0,i.A)(e,N);return(0,b.jsx)(o.A,(0,r.A)((0,r.A)({},n),{},{extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,b.jsx)(l,{value:t,setValue:n})}}))};return u.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},n),u},w="list_list__TGynD__RknBi",R="list_list-item__WSswf__RknBi",B="list_is-selected__6Wkgt__RknBi",O="list_item-label__bYzhe__RknBi",L="list_item-des__2nsEn__RknBi",P="list_is-disabled__qxCvO__RknBi",I="list_is-selected-all__Mp-hG__RknBi";var F=n(40438),M=n(64671);const T="user_list-inner__V508e__RknBi",D="user_list-info__y2nWo__RknBi",E="user_selected-icon__9OQJL__RknBi",z="user_item-des__o+7UR__RknBi",V="user_is-selected-all__2q0VZ__RknBi",W=k({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:i}=e;return(0,b.jsx)(a.List,{size:"small",className:s()(w,{[I]:i,[V]:i}),dataSource:t,renderItem:e=>{const t=l(e);return(0,b.jsx)(a.List.Item,{className:s()(R,{[B]:t}),onClick:()=>n(e),children:(0,b.jsxs)(a.Row,{wrap:!1,align:"middle",className:T,children:[(0,b.jsx)(a.Col,{children:(0,b.jsx)(F.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e.avatar)),{},{size:40,gender:"M"}))}),(0,b.jsx)(a.Col,{className:D,flex:1,children:(0,b.jsxs)(a.Space,{direction:"vertical",children:[(0,b.jsx)("span",{className:O,children:e.label}),e.description&&(0,b.jsx)("span",{className:z,children:e.description})]})}),(0,b.jsx)(a.Col,{children:i||t?(0,b.jsx)(M.default,{className:E,type:"icon-gouxuan"}):null})]})})}})}}),K={"is-selected-all":"table_is-selected-all__IwXUY__RknBi"},U=k({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:i,itemIsSelected:o,isSelectedAll:c}=e;return(0,b.jsx)(a.Table,{className:s()(K.list,w,{[I]:c,[K["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":o(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=>{i(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),q=k({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:i}=e;const{listClassName:o="",selectIcon:c=null}=t||{};return(0,b.jsx)(a.List,{className:s()(w,o,{[I]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const o=l(e);return(0,b.jsxs)(a.List.Item,{className:s()(R,{[B]:t.single&&o,[P]:r||e.disabled}),onClick:()=>{e.disabled||i(e)},children:[(0,b.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,b.jsx)(a.Col,{children:(0,b.jsx)(a.Checkbox,{checked:r||o,disabled:r||e.disabled})}),(0,b.jsx)(a.Col,{children:(0,b.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,b.jsx)("span",{className:O,children:e.label}),e.description&&(0,b.jsx)("span",{className:L,children:e.description})]})})]}),o&&c]})}})}})},17342:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(34581),l=n.n(a);n(46733);const s=l()},17508:(e,t,n)=>{n.d(t,{AG:()=>y,Ay:()=>f,FI:()=>A,Zi:()=>x,lN:()=>s.useFileUpload});var a=n(89379),l=n(53986),s=n(68827),r=n(55199),i=n(83136),o=n.n(i),c=n(70579);const d=["className","multiple","accept","onChange","children"],u=["children"],p=["children"],m=["className","multiple","accept","onChange","children"],h=["children"],_=["className","multiple","accept","onChange","children"],g=["children"],f=e=>t=>{let{className:n,multiple:r,accept:i,onChange:o,children:p}=t,m=(0,l.A)(t,d);return(0,c.jsx)(s.FileInput,{className:n,multiple:r,accept:i,onChange:o,children:t=>{let{children:n}=t,s=(0,l.A)(t,u);return(0,c.jsxs)(e,(0,a.A)((0,a.A)({},Object.assign({},m,s)),{},{children:[p,n]}))}})},x=e=>{let{children:t}=e,n=(0,l.A)(e,p);return(0,c.jsx)(s.FileInput,(0,a.A)((0,a.A)({},n),{},{buttonText:t}))},A=e=>{let{className:t,multiple:n,accept:i,onChange:o,children:d}=e,u=(0,l.A)(e,m);return(0,c.jsx)(s.FileInput,{className:t,multiple:n,accept:i,onChange:o,children:e=>{let{children:t}=e,n=(0,l.A)(e,h);return(0,c.jsxs)(r.Typography.Link,(0,a.A)((0,a.A)({},Object.assign({},u,n)),{},{children:[d,t]}))}})},y=e=>{let{className:t,multiple:n,accept:i,onChange:d,children:u}=e,p=(0,l.A)(e,_);return(0,c.jsx)(s.FileInput,{className:o()(t,"ant-btn"),multiple:n,accept:i,onChange:d,children:e=>{let{children:t}=e,n=(0,l.A)(e,g);return(0,c.jsxs)(r.Typography.Text,(0,a.A)((0,a.A)({},Object.assign({},p,n)),{},{children:[u,t]}))}})}},18411:(e,t,n)=>{n.d(t,{A:()=>a});n(73884);const a=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},20492:(e,t,n)=>{n.d(t,{A:()=>a});const a=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:()=>p});var a=n(89379),l=n(53986),s=n(73884),r=n(71298),i=n.n(r),o=n(96418),c=n.n(o),d=n(70579);const u=["children","onScroll","options","onReady"],p=(0,s.forwardRef)((e,t)=>{let{children:n,onScroll:r,options:o,onReady:p}=e,m=(0,l.A)(e,u);const h=(0,s.useRef)(null),_=(0,s.useRef)(null),g=(0,s.useRef)(o),f=c()(p),x=c()(r);return(0,s.useImperativeHandle)(t,()=>_.current),(0,s.useEffect)(()=>{const e=new(i())(h.current,g.current);return _.current=e.getScrollElement(),_.current.addEventListener("scroll",x),f(_.current),()=>{_.current.removeEventListener("scroll",x)}},[x,f,n]),(0,d.jsx)("div",(0,a.A)((0,a.A)({},m),{},{ref:h,children:n}))})},25438:(e,t,n)=>{n.d(t,{A:()=>a});const a={"search-input":"common_search-input__P6qLg__RknBi","is-popup":"common_is-popup__fJq+g__RknBi",list:"common_list__TKFzS__RknBi","list-item":"common_list-item__ASse7__RknBi","is-selected":"common_is-selected__-PU4Y__RknBi","item-label":"common_item-label__u+qz1__RknBi","item-des":"common_item-des__no2z0__RknBi"}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(83694),l=n(33097),s=n.n(l);const r=()=>{const e=(0,a.useGlobalContext)();return s()(e,"preset",{apis:{}})}},30509:(e,t,n)=>{n.d(t,{A:()=>X});var a=n(89379),l=n(53986);const s={"ant-tag":"style_ant-tag__nNp8-__RknBi",overlay:"style_overlay__La5mO__RknBi",input:"style_input__SpJTE__RknBi","is-disabled":"style_is-disabled__joxdl__RknBi","input-icon":"style_input-icon__vVd8R__RknBi",large:"style_large__En6mL__RknBi",small:"style_small__DY0AQ__RknBi","input-inner":"style_input-inner__PWy27__RknBi","input-custom":"style_input-custom__ktsWD__RknBi","display-content":"style_display-content__hIKo+__RknBi","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__RknBi","selected-tag":"style_selected-tag__zXZZO__RknBi","selected-tag-list":"style_selected-tag-list__xUIms__RknBi","selected-tag-inner":"style_selected-tag-inner__Z5gPL__RknBi","text-inner":"style_text-inner__H24hY__RknBi",placeholder:"style_placeholder__x0ccE__RknBi","is-modal":"style_is-modal__JU+uq__RknBi","overlay-content":"style_overlay-content__WKqp+__RknBi"};var r=n(74981);const{context:i,useContext:o,Provider:c,Consumer:d}=(0,r.A)();var u=n(73884),p=n(10986),m=n.n(p),h=n(87558),_=n(33097),g=n.n(_),f=n(55199),x=n(83136),A=n.n(x),y=n(3382),v=n(64671),C=n(79686),j=n.n(C),b=n(41740),N=n.n(b),S=n(74065),k=n.n(S),w=n(21485),R=n(96418),B=n.n(R),O=n(77964),L=n(91176),P=n(47458),I=n(20492),F=n(27047),M=n(70579);const T=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],D=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName","overlayClassName","disabled"],E=["setFetchApi","wrapClassName","getContentRef"],z=["api","className","displayItems","wrapClassName"],V=e=>{let{maxLength:t,single:n,setValue:a,value:l,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s(),l):e)},W=e=>{let{single:t,value:n,mapping:a,allValue:l,allLabel:r,onClose:i}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,M.jsx)("span",{className:s["text-inner"],children:g()(a.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(l||"all")?(0,M.jsx)("span",{className:s["text-inner"],children:r||(0,M.jsx)(P.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map(e=>{const t=a.get(e);return(0,M.jsx)(f.Tag,{className:s["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),i(e,t)},children:(0,M.jsx)("span",{className:s["tag-inner"],children:g()(t,"label")||e})},e)}):null},K=(0,u.forwardRef)((e,t)=>{let{value:n,onChange:r,extra:i,showSelectedTag:o,renderSelectedContent:c,children:d}=e,p=(0,l.A)(e,T);const[m,h]=(0,u.useState)(n),_=(0,u.useRef)(n),{formatMessage:g}=(0,P.useIntl)({moduleName:"Common"});_.current=n;const[x,A]=(0,u.useState)(!1),v=e=>{var t;A(e),null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},{message:C}=f.App.useApp(),j=V({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:()=>C.error(g({id:"maxSelectedCount"},{count:p.maxLength}))});return(0,u.useEffect)(()=>{x&&h(_.current)},[x]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{v(!0)},close:()=>{v(!1)}})),(0,M.jsx)(y.default,(0,a.A)((0,a.A)({},p),{},{open:x,onConfirm:()=>{r(m)},onClose:()=>{v(!1)},footer:(0,M.jsxs)(f.Space,{direction:"vertical",className:s["overlay-footer"],children:[i&&(0,M.jsx)("div",{className:s["overlay-footer-extra"],children:i}),o&&c({value:m,setValue:j})]}),children:"function"===typeof d?d({value:m,setValue:j}):d}))}),U=(0,u.forwardRef)((e,t)=>{let{value:n,setValue:r,children:i,renderSelectedContent:o,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:_,wrapClassName:g,overlayClassName:x,disabled:y}=e,v=(0,l.A)(e,D);const[C,j]=(0,u.useState)(!1),b=B()(e=>{var t;j(e),null===(t=v.onOpenChange)||void 0===t||t.call(v,e)});return(0,u.useImperativeHandle)(t,()=>({close:()=>{b(!1)}}),[b]),y?(0,M.jsx)("div",{className:s["input-inner"],children:p}):(0,M.jsx)(f.Popover,(0,a.A)((0,a.A)({},v),{},{open:C,onOpenChange:b,transitionName:"ant-slide-up",overlayClassName:A()(s.overlay,x),arrow:!1,content:(0,M.jsxs)("div",{style:_?{"--overlay-width":_}:{},className:A()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,M.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof i?i({value:n,setValue:e=>{(!m||n[0]!==e[0])&&r(e),m&&b(!1)}}):i}),(c||h)&&(0,M.jsxs)("div",{className:s["overlay-footer"],children:[h&&(0,M.jsx)("div",{className:s["overlay-footer-extra"],children:h}),c&&o({value:n,setValue:r})]})]}),trigger:"click",placement:d,children:(0,M.jsx)("div",{className:s["input-inner"],children:p})}))}),q=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:a}=e,r=(0,l.A)(e,E);const[i,c]=(0,u.useState)(!1),d=(0,u.useRef)(null),p=(0,u.useRef)(null),m=o(),{valueState:h,mapping:_,props:g,inputWidth:x}=m,[y,C]=h,{formatMessage:j}=(0,P.useIntl)({moduleName:"Common"}),{single:b,placement:N,getPopupContainer:S,placeholder:k,isPopup:R,disabled:O,showSelectedTag:I,extra:F,inputContent:T,allowClear:D,overlayClassName:z}=g,V=(0,u.useRef)(r);V.current=r;const q=B()(a);(0,u.useEffect)(()=>{q(R?p:d)},[R,q]),(0,u.useEffect)(()=>{t(Object.assign({},V.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const Q=W({single:b,value:y,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{C(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}}),H=e=>{let{value:t,setValue:n}=e;return(0,M.jsxs)(f.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,M.jsxs)("div",{children:[(0,M.jsx)(P.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,M.jsx)(w.A,{className:s["selected-tag-list"],children:(0,M.jsx)("div",{className:s["selected-tag-inner"],children:W({value:t,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}})})})]})},X=T?T(m):(0,M.jsxs)(f.Space,{className:s["display-content"],onMouseOver:()=>{c(!0)},onMouseOut:()=>{c(!1)},children:[(0,M.jsx)("div",{children:Q||(0,M.jsx)("span",{className:s.placeholder,children:k||j({id:"pleaseSelect"})})}),i&&y&&y.length>0&&!O&&D?(0,M.jsx)(v.default,{className:A()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),C([])}}):(0,M.jsx)(v.default,{className:A()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return R?(0,M.jsx)(U,{ref:p,overlayWidth:(0,L.v)(Math.max(x,(0,L.j)(g.overlayWidth))),value:y,setValue:C,single:b,disabled:O,inputContent:X,onOpenChange:g.onOpenChange,overlayClassName:z,extra:"function"===typeof F?F({close:()=>p.current.close(),context:m}):F,renderSelectedContent:H,showSelectedTag:I,trigger:"click",placement:N,getPopupContainer:S,children:g.children}):(0,M.jsxs)("div",{className:s["input-inner"],onClick:()=>{O||d.current.modalOpen()},children:[(0,M.jsx)(K,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:A()(s.overlay,s["is-modal"],n),title:g.placeholder||j({id:"pleaseSelect"}),value:y,onChange:C,extra:"function"===typeof F?F({close:()=>d.current.close(),context:m}):F,showSelectedTag:I,renderSelectedContent:H,children:g.children}),X]})}),Q=e=>{let{api:t,className:n,displayItems:r,wrapClassName:i}=e,o=(0,l.A)(e,z);const{locale:d}=(0,F.A)(),[p,h]=(0,u.useState)(""),[_,x]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),{formatMessage:y}=(0,P.useIntl)({moduleName:"Common"}),[v,C]=(0,u.useState)(0),b=(0,O.A)(e=>{C(e.clientWidth)}),[S,w]=(0,u.useState)({}),{message:R}=f.App.useApp(),B=e=>{const t=e.filter(e=>_.get(e.value)!==e);0!==t.length&&x(e=>{const n=N()(e);return t.forEach(e=>{n.set(e.value,e)}),n})},L=e=>((e,t)=>Array.isArray(e)&&e.every(e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label"))?(t(e),e.map(e=>e.value)):e)(o.single?j()(e)?[]:[e]:e||[],B,o.valueType),[I,T]=m()(Object.assign({},o,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,_,o.valueType);o.onChange&&o.onChange(o.single?k()(t):t)}},"value"in o?{value:L(o.value)}:{defaultValue:L(o.defaultValue)})),D=V({maxLength:o.maxLength,single:o.single,setValue:T,value:I,message:()=>R.error(y({id:"maxSelectedCount"},{count:o.maxLength}))}),E=(0,u.useRef)(null);return(0,M.jsx)(c,{value:{inputWidth:v,mapping:_,searchText:p,setSearchText:h,appendMapping:B,setItems:e=>{S.setData(e),B(g()(o.dataFormat(e,{locale:d}),"list",[]))},getContentApi:()=>E.current,fetchApi:S,valueState:[I,D],props:o},children:(0,M.jsx)("div",{ref:b,className:A()(s["input".concat(o.inputContent&&"function"===typeof o.inputContent?"-custom":"")],{"select-input-disabled":!!o.disabled},n),children:(0,M.jsx)(q,(0,a.A)((0,a.A)({},t),{},{wrapClassName:i,loading:null,setFetchApi:w,getContentRef:e=>{e.current&&(E.current=e.current)},onRequestSuccess:e=>{B(g()(o.dataFormat(e,{locale:d}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};Q.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const H=(0,P.createWithIntl)({importMessages:I.A,moduleName:"Common"})(Q);H.useContext=o;const X=H},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var a=n(89379),l=n(53986),s=n(87558),r=n.n(s),i=n(97211),o=n(64671),c=n(83136),d=n.n(c),u=n(55199),p=n(73884);const m=e=>{let{params:t}=e;const{data:n}=t;return new Promise((e,t)=>{const a=new window.Image;a.src=n,a.addEventListener("load",()=>{e(n)}),a.addEventListener("error",e=>{t(e)})})},h="style_img-outer__4QLY5__RknBi",_="style_img__PSExq__RknBi",g="style_loading__WCOwA__RknBi",f="style_error__+ECgZ__RknBi";var x=n(18411),A=n(63743),y=n(70579);const v=["id","src","alt","onClick","loading","error","className","apis"],C=["id","src","alt","gender","loading","error","className","gap","icon","children","shape","size","width","height","defaultAvatar","apis"],j=e=>{let{data:t,className:n,alt:a,innerLoading:l,loading:s=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:i=(0,y.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:c,children:p,onClick:h,staticUrl:g}=e;const{staticUrl:f}=(0,A.usePreset)(),x=g||f||"";return(0,y.jsx)(r(),{loader:m,params:{data:/^https?:\/\//.test(t)?t:x+t},error:c||i,loading:l||s,render:e=>{let{data:t}=e;return"function"===typeof p?p({alt:a,className:d()(n,_),src:t}):(0,y.jsx)("img",{alt:a,className:d()(n,_),src:t,onClick:h})}})},b=(0,i.A)(j),N=e=>{let{loading:t,error:n,src:a,id:l,alt:s,className:r,children:i,apis:o,onClick:c}=e;const d=t&&(0,p.cloneElement)(t,{className:g}),u=n&&(0,p.cloneElement)(n,{className:f});return a?(0,y.jsx)(j,{alt:s,className:r,data:a,loading:d,error:u,onClick:c,children:i}):l?(0,y.jsx)(b,{alt:s,className:r,id:l,loading:d,innerLoading:d,error:u,innerError:u,apis:o,onClick:c,children:i}):u},S=e=>{let{id:t,src:n,alt:s,onClick:r,loading:i=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,y.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,apis:m}=e,_=(0,l.A)(e,v);return(0,y.jsx)("div",(0,a.A)((0,a.A)({},_),{},{"data-testid":"components-core-image",className:d()(p,h),children:N({loading:i,error:c,src:n,id:t,alt:s,className:p,apis:m,onClick:r})}))};S.Avatar=e=>{let{id:t,src:n,alt:s,gender:r,loading:i=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,y.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,gap:m,icon:_,children:g,shape:f,size:A=100,width:v,height:j,defaultAvatar:b=x.A,apis:S}=e,k=(0,l.A)(e,C);const w=(()=>{const e=v&&j?{style:{width:v,height:j}}:{size:A};if(v&&v!==j&&(f="square"),t||n)return N({loading:i,error:c,src:n,defaultAvatar:b,id:t,alt:s,className:p,apis:S,children:t=>(0,y.jsx)(u.Avatar,(0,a.A)((0,a.A)({},t),{},{gap:m,shape:f},e))});if(r){const t=r&&["F","female","f"].indexOf(r)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,y.jsx)(u.Avatar,(0,a.A)((0,a.A)({},k),{},{src:(0,y.jsx)(o.default,{role:"touxiang",colorful:!0,type:t}),gap:m,shape:f},e))}return(0,y.jsx)(u.Avatar,(0,a.A)((0,a.A)((0,a.A)({},k),{},{gap:m,icon:_,shape:f,size:A,src:b},e),{},{children:g}))})();return(0,y.jsx)("div",(0,a.A)((0,a.A)({},k),{},{"data-testid":"components-core-image-avatar",className:d()(p,h),style:{width:v&&j?v:A,height:v&&j?j:A},children:w}))};const k=S},41654:(e,t,n)=>{n.d(t,{A:()=>f,K:()=>g});var a=n(89379),l=n(53986),s=n(45776),r=n(27047),i=n(33097),o=n.n(i),c=n(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?o()(e,"enName"):o()(e,"chName"),m=()=>n.e(719).then(n.t.bind(n,10719,19)).then(e=>e.__esModule?e.default:e),h={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:m},_=e=>{let{apis:t}=e,n=(0,l.A)(e,d);const{apis:i,locale:o}=(0,r.A)(),u=Object.assign({},{functionData:h},null===i||void 0===i?void 0:i.staticData,t);return(0,c.jsx)(s.Ay,(0,a.A)((0,a.A)({},n),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.map(e=>[e.code,(0,a.A)((0,a.A)({},e),{},{id:e.code,label:p(e,o),parentId:e.parentCode||null})])));return n}},u.functionData)}))};_.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},_.defaultData=m;const g=e=>{let{apis:t}=e,n=(0,l.A)(e,u);const{apis:i,locale:o}=(0,r.A)(),d=Object.assign({},{functionData:h},null===i||void 0===i?void 0:i.staticData,t);return(0,c.jsx)(s.yK,(0,a.A)((0,a.A)((0,a.A)({},n),d.functionData),{},{type:"function",getLabel:e=>p(e,o),transformData:e=>{let{data:t}=e;return t}}))};_.FunctionEnum=_.Enum=g;const f=_},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:()=>o.A,FetchScrollLoader:()=>i.FetchScrollLoader,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>p.Zi,InputFileLink:()=>p.FI,InputFileText:()=>p.AG,ScrollLoader:()=>i.default,SearchInput:()=>d.A,SelectInnerInput:()=>u.A,SimpleBar:()=>c.A,SuperSelectField:()=>_.Ay,SuperSelectTableListField:()=>_.e0,SuperSelectTreeField:()=>_.ec,SuperSelectUserField:()=>_.$9,TableField:()=>h.Bm,TypeDateRangePickerField:()=>A.A,UserField:()=>h.Eo,accept:()=>v.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>m.LH,createDeferred:()=>j(),createListField:()=>h.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>b.A,numberToPx:()=>N.v,pxToNumber:()=>N.j,useFileUpload:()=>p.lN,useResize:()=>y.A,withAddressApi:()=>m.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var a=n(69484),l=n(76801);const s=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),i=n(78784),o=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),A=n(89319),y=n(77964),v=n(81348),C=n(1582),j=n.n(C),b=n(55490),N=n(91176)},45776:(e,t,n)=>{n.d(t,{yK:()=>I,ON:()=>g,Ay:()=>z});var a=n(53986),l=n(89379),s=n(30509),r=n(73884),i=n(96418),o=n.n(i),c=n(55199),d=n(64671),u=n(73161),p=n(33097),m=n.n(p),h=n(79686),_=n.n(h);const g=e=>{const t=Array.from(e.values()),n=t.filter(e=>null===e.parentId),a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],a=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach(e=>{a(e.id)}))};return a(t),n},s=(t,n)=>{const a=t=>{const l=e.get(t);return l?n(l)?l:_()(l.parentId)?null:a(l.parentId):null};return a(t)},r=t=>{const a=e.get(t);if(!a)return[];const l=a.parentId;if(_()(l))return n;return e.get(l).children},i=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map(n=>{const a=t.filter(e=>e.parentId===n.id);return Object.assign({},n,{children:e(a)})}):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const a=e=>{if(e.children&&e.children.length>0)return a(e.children.find(t=>t.children&&e.children.length>0)||m()(e.children,"0"));const t=l(e.parentId).find(e=>e.children&&e.children.length>0);return t?a(t):e},s=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],a=e.get(t);return!a||_()(a.parentId)?n:s(a.parentId,n)},r=a(n);return s(m()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,e=>n.indexOf(e.id)>-1))return{checked:!0,indeterminate:!1};const a=(t=>{const a=t=>{const l=e.get(t);return l?(s=l,n.indexOf(s.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find(e=>!!a(e.id)):void 0):null;var s};return!!a(t)})(t);return a?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const i=e.get(t);if(!i)return;n.push(t),l(t).forEach(e=>{a(n,e.id)});const o=r(t),c=o.every(e=>n.indexOf(e.id)>-1);i.parentId&&c&&(o.forEach(e=>{a(n,e.id)}),s(i.parentId))};return s(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const s=e.get(t);if(!s)return;if(n.indexOf(s.id)>-1)return void a(n,s.id);const i=r(t);s.parentId&&(i.forEach(e=>{t!==e.id&&n.push(e.id)}),l(s.parentId))};return l(t),n},treeData:i,treeMapping:new Map(i.map(e=>[e.id,e]))}};var f=n(74065),x=n.n(f),A=n(19853),y=n.n(A),v=n(17342),C=n(83136),j=n.n(C);const b={content:"style_content__Hxlt9__RknBi",columns:"style_columns__FmtPF__RknBi","content-item":"style_content-item__i6HCO__RknBi","last-level-area":"style_last-level-area__2y7jQ__RknBi","is-popup":"style_is-popup__+r3Mn__RknBi",menu:"style_menu__WZUVE__RknBi","scroll-plus-box":"style_scroll-plus-box__QcTst__RknBi","menu-label":"style_menu-label__iGt0Z__RknBi","menu-item":"style_menu-item__hXHfm__RknBi","checkbox-hidden":"style_checkbox-hidden__Xpx7J__RknBi",loading:"style_loading__ZwrVe__RknBi"};var N=n(87558),S=n(47458),k=n(25438),w=n(70579),R=n(27047);const B=["data","name","type","cache","children","getLabel"],O=new Map,L=(0,N.withFetch)(e=>{let{data:t,name:n,type:s,cache:i,children:o,getLabel:c}=e,d=(0,a.A)(e,B);const u=(0,r.useMemo)(()=>new Map(t.map(e=>[e.code,(0,l.A)((0,l.A)({},e),{},{id:e.code,label:c?c(e):e.chName,parentId:e.parentCode||null})])),[t,c]).get(n);return O.set("".concat(n,"_").concat(s),u),o(u,d)}),P=e=>{const{locale:t}=(0,R.A)(),n="".concat(t,"_").concat(e.name,"_").concat(e.type),a=O.get(n);return a&&!e.force?e.children(a):(0,w.jsx)(L,(0,l.A)({},e))};P.defaultProps={children:e=>m()(e,"label","")};const I=P,F=["maxLength","nodeFormat","dataFormat"],M=s.A.useContext,T=(0,N.withFetch)(e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,w.jsx)(v.A,{className:b["scroll-plus-box"],children:(0,w.jsx)(c.List,{className:k.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,w.jsx)(c.List.Item,{className:j()(k.A["list-item"],{[k.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,w.jsx)("span",{className:k.A["item-label"],children:e.label})})}})})}),D=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:i,props:p}=M(),[h,_]=(0,r.useState)(""),f=o()(p.dataFormat),{formatMessage:A}=(0,S.useIntl)({moduleName:"Common"}),C=i.data,N=(0,r.useMemo)(()=>new Map(f(C).list.map(e=>[e.value,e])),[C,f]),R=(0,r.useMemo)(()=>g(N),[N]),B=(0,r.useRef)({});B.current={createMergeTree:p.createMergeTree,loadMore:i.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:R};const[O,L]=(0,r.useState)(()=>{const e=t.find(e=>!!N.get(e));return R.getSelectedQueue(e||m()(i.data.find(e=>e.children&&e.children.length>0),"id")||m()(i.data,"[0].id"),N)});(0,r.useEffect)(()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:a,treeUtils:l}=B.current;if(!e)return;const s=N.get(x()(O));if(!s)return;const r=l.getSelectedQueue(s.id);y()(O,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):L(r)},[O,N]);const P=(e,l)=>{const s=(()=>{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?R.setNodeChecked(l,t):R.setNodeUnchecked(l,t)})();s.length>a?c.message.error(A({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[x()(s)]:s)},I=e=>{const t=N.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},F=!p.openLoadData&&"function"===typeof p.onSearch,D=F&&h&&(0,w.jsx)(T,{data:{searchText:h},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:N})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{P(!t,e.id),!t&&L(R.getSelectedQueue(e.id,N)),_("")}});return(0,w.jsxs)("div",{className:j()(b.content,{[b["is-popup"]]:p.isPopup,[b["has-search"]]:F}),style:{"--menu-item-width":p.menuItemWidth},children:[F&&(0,w.jsx)(u.A,{isPopup:p.isPopup,className:j()(k.A["search-input"],{[k.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||A({id:"search"}),value:h,onSearch:e=>{_(e)}}),D||(0,w.jsx)("div",{children:(0,w.jsx)(v.A,{className:b.scroller,options:{autoHide:!1},children:(0,w.jsxs)("div",{className:b.columns,children:[O.map((e,n)=>{const a=N.get(e),i=R.getSiblingNode(e),o=!I(null===a||void 0===a?void 0:a.id)&&n>0;return(0,w.jsx)(v.A,{className:j()(b["content-item"],{[b["last-level-area"]]:o}),children:o?(0,w.jsx)(c.Space,{wrap:!0,children:i.map(e=>(0,r.createElement)(c.Checkbox,(0,l.A)((0,l.A)({},R.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>P(t.target.checked,e.id)}),e.label))}):(0,w.jsx)(c.Menu,{className:j()(b.menu),onSelect:e=>{const n=N.get(e.key);if(n)if(I(n.id))L(R.getSelectedQueue(n.id,N));else{const{checked:e}=R.computedCheckboxStatus(n.id,t);P(!e,n.id)}},selectedKeys:n===O.length-1?[]:O,items:i.map(e=>({key:e.id,label:(0,w.jsxs)(c.Space,{className:j()(b["menu-item"],{[b["checkbox-hidden"]]:p.onlyAllowLastLevel&&I(e.id)}),children:[!p.onlyAllowLastLevel&&(0,w.jsx)(c.Checkbox,(0,l.A)((0,l.A)({},R.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>P(t.target.checked,e.id)})),(0,w.jsx)("div",{className:b["menu-label"],children:e.label}),I(e.id)&&(0,w.jsx)(d.default,{className:b["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},m()(i,"[0].id",n))}),i.isComplete?null:(0,w.jsx)("div",{className:b.loading,children:(0,w.jsx)(c.Spin,{size:"small"})})]})})})]})},E=e=>{let{maxLength:t,nodeFormat:n,dataFormat:r}=e,i=(0,a.A)(e,F);return(0,w.jsx)(s.A,(0,l.A)((0,l.A)({},i),{},{dataFormat:e=>r(e,n),children:e=>{let{value:n,setValue:a}=e;return(0,w.jsx)(D,(0,l.A)((0,l.A)({},i),{},{size:t,value:n,setValue:a}))}}))};E.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,a)=>{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:a})))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const a=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:a(t.children)}):t);return a(t)}};const z=E},53392:(e,t,n)=>{n.d(t,{A:()=>g,W:()=>_});var a=n(89379),l=n(53986),s=n(45776),r=n(27047),i=n(33097),o=n.n(i),c=n(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?o()(e,"enName"):o()(e,"chName"),m={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)},h=e=>{let{apis:t}=e,n=(0,l.A)(e,d);const{apis:i,locale:o}=(0,r.A)(),u=Object.assign({},{industryData:m},null===i||void 0===i?void 0:i.staticData,t);return(0,c.jsx)(s.Ay,(0,a.A)((0,a.A)({},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,(0,a.A)((0,a.A)({},e),{},{id:e.code,label:p(e,o),parentId:e.parentCode||null})])));return n}},u.industryData)}))};h.defaultProps={overlayWidth:"635px"};const _=e=>{let{apis:t}=e,n=(0,l.A)(e,u);const{apis:i,locale:o}=(0,r.A)(),d=Object.assign({},{industryData:m},null===i||void 0===i?void 0:i.staticData,t);return(0,c.jsx)(s.yK,(0,a.A)((0,a.A)((0,a.A)({},n),d.industryData),{},{type:"function",getLabel:e=>p(e,o),transformData:e=>{let{data:t}=e;return t}}))};h.IndustryEnum=h.Enum=_;const g=h},55490:(e,t,n)=>{n.d(t,{A:()=>a.isNotEmpty});var a=n(39129)},60586:(e,t,n)=>{n.d(t,{e0:()=>A,ec:()=>y,$9:()=>v,Ay:()=>x});var a=n(89379),l=n(73884),s=n(12460),r=n.n(s),i=n(3382),o=n(40438),c=n(55199);const d="style_select-list-item-description__ndJSX__RknBi",u="style_select-list-item-label__gyGnt__RknBi",p="style_select-list-item-content__2VJnt__RknBi";var m=n(83136),h=n.n(m),_=(n(96316),n(70579));const g=e=>{const{props:t,open:n,onOpenChange:a,value:l,onComplete:r}=e,{placeholder:o,children:c,showSelectedTag:d,onConfirm:u}=t;return(0,_.jsx)(i.default,{title:o,open:n,onClose:()=>{a(!1)},footer:d&&(0,_.jsx)(s.SelectedTagList,{}),onConfirm:()=>{if(r(),"function"===typeof u)return u(l)},children:c(e)})},f=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{children:e=>{let{components:t}=e;return(0,_.jsxs)(c.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,!1!==n.isPopup&&t.selectedTag]})},renderModal:g},e);return(0,_.jsx)(r(),(0,a.A)((0,a.A)({},n),{},{ref:t}))}),x=f,A=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{renderModal:g},e);return(0,_.jsx)(s.SelectTableList,(0,a.A)((0,a.A)({},n),{},{ref:t}))}),y=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{renderModal:g},e);return(0,_.jsx)(s.SelectTree,(0,a.A)((0,a.A)({},n),{},{ref:t}))}),v=(0,l.forwardRef)((e,t)=>(0,_.jsx)(f,(0,a.A)((0,a.A)({},e),{},{ref:t,renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:l,avatarKey:s,descriptionKey:r}=n,i=t[s||"avatar"];return(0,_.jsxs)(c.Flex,{gap:8,children:[(0,_.jsx)(o.default.Avatar,(0,a.A)((0,a.A)({},Object.assign({},"string"===typeof i?{id:i}:i)),{},{size:32,gender:"M"})),(0,_.jsxs)(c.Flex,{vertical:!0,gap:8,className:p,children:[(0,_.jsx)("div",{className:h()(u,"select-list-item-label"),children:t[l]}),t[r||"description"]&&(0,_.jsx)("div",{className:h()(d,"select-list-item-description"),children:t[r||"description"]})]})]})}})))},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>a});const a=1e15,l=e=>{let t,n,l,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],i=["","\u4e07","\u4ebf","\u5146"],o=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=a)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,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 a=0;a<n;a++){let l=t.substr(a,1),o=n-a-1,d=o/4,u=o%4;"0"===l?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(l)]+r[u]),0===u&&e<4&&(c+=i[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+=s[Number(e)]+o[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},73161:(e,t,n)=>{n.d(t,{A:()=>_});var a=n(89379),l=n(53986),s=n(55199),r=n(83136),i=n.n(r);const o="style_search-input__8aH1G__RknBi",c="style_is-popup__L0973__RknBi";var d=n(64671),u=n(73884),p=n(51941),m=n(70579);const h=["value","debounce","onSearch","isPopup","placeholder","className"],_=e=>{let{value:t,debounce:n=500,onSearch:r,isPopup:_,placeholder:g,className:f}=e,x=(0,l.A)(e,h);const[A,y]=(0,u.useState)(t),v=(0,u.useRef)(t),C=(0,p.useDebouncedCallback)(r,n);return(0,u.useEffect)(()=>{t!==v.current&&(y(t),v.current=t)},[t]),(0,m.jsx)(s.Input.Search,(0,a.A)((0,a.A)({},x),{},{allowClear:!0,className:i()(f,o,{[c]:_}),value:A,placeholder:g,prefix:(0,m.jsx)(d.default,{type:"icon-sousuo"}),enterButton:(0,m.jsx)(d.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;v.current=t,y(t),C(t)},onSearch:e=>{C(e)}}))}},74981:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,a.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,a.useContext)(t)}}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(73884),l=n(79889),s=n.n(l),r=n(93950),i=n.n(r),o=n(96418),c=n.n(o);const d=(e,t)=>{const n=(0,a.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,a.useRef)(null),r=c()(e);return(0,a.useLayoutEffect)(()=>{const e=l.current,t=()=>window.requestAnimationFrame(()=>{e&&r(e)});t();const a=new ResizeObserver((n.current.isDebounce?i():s())(t,n.current.time));return e&&a.observe(e),()=>{a.disconnect()}},[r]),l}},78784:(e,t,n)=>{n.d(t,{default:()=>l.a});n(21219);var a=n(95183),l=n.n(a);n.o(a,"FetchScrollLoader")&&n.d(t,{FetchScrollLoader:function(){return a.FetchScrollLoader}})},81348:(e,t,n)=>{n.d(t,{A:()=>a.computedAccept});var a=n(68827)},89319:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(89379),l=n(20454),s=n(55199),r=n(10986),i=n.n(r),o=n(57469),c=n.n(o),d=n(20492),u=n(47458),p=n(70579);const m=(0,u.createWithIntl)({importMessages:d.A,moduleName:"Common"})(e=>{let t=Object.assign({},((0,l.A)(e),e));const{formatMessage:n}=(0,u.useIntl)({moduleName:"Common"}),r=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[o,d]=i()(t);return(0,p.jsxs)(s.Space.Compact,{children:[(0,p.jsx)(s.Select,{style:{width:"120px"},value:(null===o||void 0===o?void 0:o.type)||"date",onChange:e=>{d(t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[c()(t.value[0]).startOf(e||"date"),c()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}})},options:Array.from(r).map(e=>{let[t,n]=e;return{label:n,value:t}})}),(0,p.jsx)(s.DatePicker.RangePicker,(0,a.A)((0,a.A)({},t),{},{picker:(null===o||void 0===o?void 0:o.type)||"date",value:Array.isArray(null===o||void 0===o?void 0:o.value)&&2===o.value.length&&o.value.map(e=>e&&c()(e)),onChange:e=>{d(t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})))}}))]})})},91176:(e,t,n)=>{n.d(t,{j:()=>l,v:()=>a});const a=e=>"number"===typeof e?"".concat(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:()=>V,TM:()=>te,LH:()=>M,Ay:()=>K,NY:()=>T,DF:()=>W});var a=n(53986),l=n(89379),s=n(30509),r=n(25438),i=n(55199),o=n(27047),c=n(83136),d=n.n(c),u=n(64671),p=n(73884),m=n(21485),h=n(56434),_=n.n(h),g=n(15797),f=n.n(g),x=n(33097),A=n.n(x);const y="style_address__DIuRX__RknBi",v="style_is-popup__tqVvp__RknBi",C="style_title__FAe12__RknBi",j="style_scroll-box__JWiDl__RknBi",b="style_scroll-plus-box__lidEW__RknBi",N="style_content__lAARZ__RknBi",S="style_col-left__WPfeS__RknBi",k="style_col-right__z0e9-__RknBi";var w=n(87558),R=n.n(w);const B=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),L=n(70579);const P=["name","data","getAddressApi","children"],I=["data"],F=s.A.useContext,M=e=>{let{city:t,province:n,country:a}=e;const l=f()(()=>{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:f()(e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}}),getChinaHotCities:f()(()=>t.relations[2].map(e=>t.list[e])),getChinaCities:f()(()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map(e=>Object.assign({id:e},t.list[e]))),getCountries:f()(()=>["1",...a.relations.continents].map(e=>Object.assign({id:e},a.list[e]))),getList:f()((e,l)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map(e=>t.list[e]);const i=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return i.name="".concat(s?"\u5168":"")+i.name,[i];const o=t.relations[e].map(e=>t.list[e]);return n.relations.provinces.indexOf(e)>-1&&s&&(i.name="\u5168"+i.name,o.splice(0,0,i)),a.relations.continents.indexOf(e)>-1&&r&&(i.name="\u5168"+i.name,o.splice(0,0,i)),o}),getNationalityList:f()(e=>{let n=_()(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:f()(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:f()((e,n)=>[...n.filter(n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n),e]),searchCities:f()(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?"".concat(n.name,"\xb7").concat(e.name):e.name,value:e.code}})})}},T=(e,t)=>"en-US"===t?A()(e,"enName"):A()(e,"name"),D={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)},E=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:l}=F(),[s,c]=(0,p.useState)(""),[h,_]=(0,p.useState)("2"),{formatMessage:g}=(0,O.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,o.A)(),{getCity:x,getChinaCities:A,getCountries:w,getList:R,searchCities:B}=(0,p.useMemo)(()=>M(a.data),[a.data]),P=e=>{if(l.single)return void n([e]);const a=t.slice(0),s=a.indexOf(e);s>-1?a.splice(s,1):a.push(e),n(a)},I=s&&(0,L.jsx)(m.A,{className:b,children:(0,L.jsx)(i.List,{className:r.A.list,size:"small",dataSource:B(s),rowKey:"value",renderItem:e=>(0,L.jsx)(i.List.Item,{className:r.A["list-item"],onClick:()=>{P(e.value),c("")},children:(0,L.jsx)("span",{className:r.A["item-label"],children:e.label})})})});return(0,L.jsxs)("div",{className:d()(y,{[v]:l.isPopup}),children:[(0,L.jsx)(i.Input.Search,{className:d()(r.A["search-input"],{[r.A["is-popup"]]:l.isPopup}),placeholder:l.searchPlaceholder||g({id:"searchCity"}),prefix:(0,L.jsx)(u.default,{type:"icon-sousuo"}),enterButton:(0,L.jsx)(u.default,{type:"icon-sousuo"}),value:s,allowClear:!0,onChange:e=>{const t=e.target.value;c(t)},onSearch:e=>{c(e)}}),(0,L.jsx)("div",{className:N,children:I||(0,L.jsxs)(i.Row,{wrap:!1,children:[(0,L.jsx)(i.Col,{className:S,children:(0,L.jsx)(i.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,L.jsx)(O.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(i.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:A().map(e=>({label:T(e,f),key:e.id}))})})},{key:"1",label:(0,L.jsx)(O.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(i.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map(e=>({label:T(e,f),key:e.id}))})})}]})}),(0,L.jsxs)(i.Col,{flex:1,className:k,children:[(0,L.jsx)(i.Divider,{className:C,orientation:"left",children:T(x(h).city,f)}),(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(i.Space,{wrap:!0,children:R(h,{showChinaQuan:l.showChinaQuan,showForeignQuan:l.showForeignQuan}).map(e=>(0,L.jsx)(i.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{P(e.code)},children:T(e,f)},e.code))})})]})]})})]})},z=e=>(0,L.jsx)(s.A,(0,l.A)((0,l.A)({},e),{},{children:e=>{let{value:t,setValue:n}=e;return(0,L.jsx)(O.IntlProvider,{moduleName:"AddressSelect",importMessages:B,children:(0,L.jsx)(E,{value:t,setValue:n})})}}));z.defaultProps={overlayWidth:"500px",isPopup:!0,api:D,dataFormat:(e,t)=>{let{city:n}=e;const{locale:a}=Object.assign({},t);return{list:Object.values(n.list).map(e=>Object.assign({},e,{value:e.code,label:T(e,a)}))}}};const V=(0,w.withFetch)(e=>{let{name:t,data:n,getAddressApi:l,children:s}=e,r=(0,a.A)(e,P);const{locale:i}=(0,o.A)(),c=(0,p.useMemo)(()=>M(n),[n]);return l?s(c):(0,L.jsx)(R(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise(e=>{setTimeout(()=>{e(c.getCity(n))},0)})},render:e=>{let{data:t}=e;return s(t,Object.assign({},r,{locale:i}))}})});V.defaultProps=(0,l.A)((0,l.A)({},D),{},{displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?"".concat(T(a,s),"\xb7").concat(T(n,s)):T(n,s)}});const W=e=>{const t=(0,w.withFetch)(t=>{let{data:n}=t,s=(0,a.A)(t,I);const r=(0,p.useMemo)(()=>M(n),[n]);return(0,L.jsx)(e,(0,l.A)((0,l.A)({},s),{},{addressApi:r}))});return t.defaultProps=(0,l.A)({},D),t};z.AddressEnum=z.Enum=V,z.createAddressApi=M,z.withAddressApi=W,z.getLabelForLocal=T;const K=z;var U=n(10986),q=n.n(U),Q=n(78491),H=n.n(Q),X=n(20492),Z=n(22616),J=n.n(Z),Y=n(1488),G=n.n(Y);const $=["isPopup","size","disabled","inputPlaceholder","onBlur","className"],ee=e=>{const{isPopup:t,size:n,disabled:s,inputPlaceholder:r,onBlur:o,className:c}=e,d=(0,a.A)(e,$),[u,p]=q()(e),m=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:h}=(0,O.useIntl)({moduleName:"Common"}),_=H()(e=>{o&&o(e)});return(0,L.jsx)("div",{ref:_,children:(0,L.jsxs)(i.Row,{gutter:10,children:[(0,L.jsx)(i.Col,{span:12,children:(0,L.jsx)(K,(0,l.A)((0,l.A)({},J()(d,m)),{},{className:c,disabled:s,single:!0,size:n,value:A()(u,"city"),onChange:e=>{p({city:e,detail:A()(u,"detail")})}}))}),(0,L.jsx)(i.Col,{span:12,children:(0,L.jsx)(i.Input,(0,l.A)((0,l.A)({},G()(d,m)),{},{className:c,placeholder:r||h({id:"pleaseInput"}),disabled:s,size:n,value:A()(u,"detail"),onChange:e=>{p({city:A()(u,"city"),detail:e.target.value})}}))})]})})};ee.defaultProps={};const te=(0,O.createWithIntl)({importMessages:X.A,moduleName:"Common"})(ee)},97211:(e,t,n)=>{n.d(t,{A:()=>a.withOSSFile});var a=n(68827)}}]);
2
+ //# sourceMappingURL=3856.ef83565d.chunk.js.map