@kne-components/components-core 0.4.10 → 0.4.12

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 (159) hide show
  1. package/build/asset-manifest.json +108 -108
  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/196.5f0ce7a6.chunk.css +2 -0
  6. package/build/static/css/196.5f0ce7a6.chunk.css.map +1 -0
  7. package/build/static/css/{1996.aa6f5d0d.chunk.css → 1996.b1436cc8.chunk.css} +2 -2
  8. package/build/static/css/{1996.aa6f5d0d.chunk.css.map → 1996.b1436cc8.chunk.css.map} +1 -1
  9. package/build/static/css/2004.c035d26e.chunk.css +2 -0
  10. package/build/static/css/{2004.4a5cbde6.chunk.css.map → 2004.c035d26e.chunk.css.map} +1 -1
  11. package/build/static/css/206.c2648b4c.chunk.css +2 -0
  12. package/build/static/css/{206.dd5f61e8.chunk.css.map → 206.c2648b4c.chunk.css.map} +1 -1
  13. package/build/static/css/254.a12729ab.chunk.css +2 -0
  14. package/build/static/css/{254.3dbd0c4a.chunk.css.map → 254.a12729ab.chunk.css.map} +1 -1
  15. package/build/static/css/2628.3188c686.chunk.css +2 -0
  16. package/build/static/css/{2628.1116e838.chunk.css.map → 2628.3188c686.chunk.css.map} +1 -1
  17. package/build/static/css/3404.b9717d24.chunk.css +2 -0
  18. package/build/static/css/{3404.4d8903c0.chunk.css.map → 3404.b9717d24.chunk.css.map} +1 -1
  19. package/build/static/css/3652.86f3b6bb.chunk.css +2 -0
  20. package/build/static/css/3652.86f3b6bb.chunk.css.map +1 -0
  21. package/build/static/css/3771.446d3735.chunk.css +2 -0
  22. package/build/static/css/3771.446d3735.chunk.css.map +1 -0
  23. package/build/static/css/{3790.7a8f4cd7.chunk.css → 3790.d1b530a4.chunk.css} +2 -2
  24. package/build/static/css/{3790.7a8f4cd7.chunk.css.map → 3790.d1b530a4.chunk.css.map} +1 -1
  25. package/build/static/css/{4277.7a464159.chunk.css → 4277.3194c080.chunk.css} +2 -2
  26. package/build/static/css/{4277.7a464159.chunk.css.map → 4277.3194c080.chunk.css.map} +1 -1
  27. package/build/static/css/4741.5a84abe3.chunk.css +2 -0
  28. package/build/static/css/4741.5a84abe3.chunk.css.map +1 -0
  29. package/build/static/css/4832.ee29b4d5.chunk.css +2 -0
  30. package/build/static/css/{4832.974e8486.chunk.css.map → 4832.ee29b4d5.chunk.css.map} +1 -1
  31. package/build/static/css/5195.9d6bb120.chunk.css +2 -0
  32. package/build/static/css/5195.9d6bb120.chunk.css.map +1 -0
  33. package/build/static/css/{6178.c5793d83.chunk.css → 6178.a2a6d255.chunk.css} +2 -2
  34. package/build/static/css/6178.a2a6d255.chunk.css.map +1 -0
  35. package/build/static/css/{6763.55fbdd0e.chunk.css → 6763.42d76eb7.chunk.css} +2 -2
  36. package/build/static/css/{6763.55fbdd0e.chunk.css.map → 6763.42d76eb7.chunk.css.map} +1 -1
  37. package/build/static/css/6980.f5424a2c.chunk.css +12 -0
  38. package/build/static/css/{6980.eb55fb81.chunk.css.map → 6980.f5424a2c.chunk.css.map} +1 -1
  39. package/build/static/css/7227.e83fd744.chunk.css +2 -0
  40. package/build/static/css/{7227.cf7ece1c.chunk.css.map → 7227.e83fd744.chunk.css.map} +1 -1
  41. package/build/static/css/{760.94252ab2.chunk.css → 760.7efd69c3.chunk.css} +2 -2
  42. package/build/static/css/{760.94252ab2.chunk.css.map → 760.7efd69c3.chunk.css.map} +1 -1
  43. package/build/static/css/{8593.567480a8.chunk.css → 8593.df922b83.chunk.css} +2 -2
  44. package/build/static/css/{8593.567480a8.chunk.css.map → 8593.df922b83.chunk.css.map} +1 -1
  45. package/build/static/css/9556.3024763d.chunk.css +2 -0
  46. package/build/static/css/{9556.440a6f96.chunk.css.map → 9556.3024763d.chunk.css.map} +1 -1
  47. package/build/static/css/9772.e21859cf.chunk.css +2 -0
  48. package/build/static/css/{9772.345329b3.chunk.css.map → 9772.e21859cf.chunk.css.map} +1 -1
  49. package/build/static/js/{1014.6694d625.chunk.js → 1014.ac7e07be.chunk.js} +1 -1
  50. package/build/static/js/{1064.790d5547.chunk.js → 1064.7507f2b7.chunk.js} +2 -2
  51. package/build/static/js/1064.7507f2b7.chunk.js.map +1 -0
  52. package/build/static/js/{196.35f273fd.chunk.js → 196.56c2cd89.chunk.js} +1 -1
  53. package/build/static/js/{1996.56a71628.chunk.js → 1996.1779e813.chunk.js} +2 -2
  54. package/build/static/js/{1996.56a71628.chunk.js.map → 1996.1779e813.chunk.js.map} +1 -1
  55. package/build/static/js/{2004.3cd5c9c5.chunk.js → 2004.182c7c0f.chunk.js} +3 -3
  56. package/build/static/js/{2004.3cd5c9c5.chunk.js.map → 2004.182c7c0f.chunk.js.map} +1 -1
  57. package/build/static/js/206.870edee0.chunk.js +2 -0
  58. package/build/static/js/{206.fdafdeaa.chunk.js.map → 206.870edee0.chunk.js.map} +1 -1
  59. package/build/static/js/{2097.17021c85.chunk.js → 2097.0567ed2b.chunk.js} +2 -2
  60. package/build/static/js/2097.0567ed2b.chunk.js.map +1 -0
  61. package/build/static/js/254.238ab8af.chunk.js +2 -0
  62. package/build/static/js/254.238ab8af.chunk.js.map +1 -0
  63. package/build/static/js/{2628.5fab54cd.chunk.js → 2628.13f2cd3d.chunk.js} +2 -2
  64. package/build/static/js/{2628.5fab54cd.chunk.js.map → 2628.13f2cd3d.chunk.js.map} +1 -1
  65. package/build/static/js/{3404.1217b7c4.chunk.js → 3404.1b947536.chunk.js} +3 -3
  66. package/build/static/js/{3404.1217b7c4.chunk.js.map → 3404.1b947536.chunk.js.map} +1 -1
  67. package/build/static/js/{3652.707426a5.chunk.js → 3652.5d13bc4c.chunk.js} +2 -2
  68. package/build/static/js/{3652.707426a5.chunk.js.map → 3652.5d13bc4c.chunk.js.map} +1 -1
  69. package/build/static/js/3771.60b0504e.chunk.js +2 -0
  70. package/build/static/js/{3771.10914c71.chunk.js.map → 3771.60b0504e.chunk.js.map} +1 -1
  71. package/build/static/js/{3790.b9b0756b.chunk.js → 3790.72c7a465.chunk.js} +2 -2
  72. package/build/static/js/{3790.b9b0756b.chunk.js.map → 3790.72c7a465.chunk.js.map} +1 -1
  73. package/build/static/js/3856.29d5e528.chunk.js +2 -0
  74. package/build/static/js/3856.29d5e528.chunk.js.map +1 -0
  75. package/build/static/js/4277.de810104.chunk.js +2 -0
  76. package/build/static/js/{4277.7406d163.chunk.js.map → 4277.de810104.chunk.js.map} +1 -1
  77. package/build/static/js/4474.dfb83cf2.chunk.js +2 -0
  78. package/build/static/js/4474.dfb83cf2.chunk.js.map +1 -0
  79. package/build/static/js/{4832.1d4b6d35.chunk.js → 4832.cf55c52c.chunk.js} +2 -2
  80. package/build/static/js/{4832.1d4b6d35.chunk.js.map → 4832.cf55c52c.chunk.js.map} +1 -1
  81. package/build/static/js/5195.9ac8caa0.chunk.js +2 -0
  82. package/build/static/js/5195.9ac8caa0.chunk.js.map +1 -0
  83. package/build/static/js/{6183.b7c1076d.chunk.js → 6183.23d57d24.chunk.js} +2 -2
  84. package/build/static/js/6183.23d57d24.chunk.js.map +1 -0
  85. package/build/static/js/{6454.2d3bc0d5.chunk.js → 6454.d8a2bc1e.chunk.js} +1 -1
  86. package/build/static/js/{6617.5ff2d3a7.chunk.js → 6617.94f51cff.chunk.js} +1 -1
  87. package/build/static/js/{6629.f017e421.chunk.js → 6629.42f5a044.chunk.js} +2 -2
  88. package/build/static/js/6629.42f5a044.chunk.js.map +1 -0
  89. package/build/static/js/{6763.a4f7fc9c.chunk.js → 6763.97f4747b.chunk.js} +2 -2
  90. package/build/static/js/{6763.a4f7fc9c.chunk.js.map → 6763.97f4747b.chunk.js.map} +1 -1
  91. package/build/static/js/6980.5b98fb8f.chunk.js +2 -0
  92. package/build/static/js/6980.5b98fb8f.chunk.js.map +1 -0
  93. package/build/static/js/{7227.6bc944fe.chunk.js → 7227.65b21900.chunk.js} +3 -3
  94. package/build/static/js/{7227.6bc944fe.chunk.js.map → 7227.65b21900.chunk.js.map} +1 -1
  95. package/build/static/js/{7338.696be797.chunk.js → 7338.0c458623.chunk.js} +2 -2
  96. package/build/static/js/{7338.696be797.chunk.js.map → 7338.0c458623.chunk.js.map} +1 -1
  97. package/build/static/js/{760.2fe65d3d.chunk.js → 760.bc8726da.chunk.js} +2 -2
  98. package/build/static/js/{760.2fe65d3d.chunk.js.map → 760.bc8726da.chunk.js.map} +1 -1
  99. package/build/static/js/{8593.35a15f30.chunk.js → 8593.a7cfca38.chunk.js} +2 -2
  100. package/build/static/js/{8593.35a15f30.chunk.js.map → 8593.a7cfca38.chunk.js.map} +1 -1
  101. package/build/static/js/{8601.414f9621.chunk.js → 8601.05ca91fd.chunk.js} +2 -2
  102. package/build/static/js/8601.05ca91fd.chunk.js.map +1 -0
  103. package/build/static/js/8683.b6590c10.chunk.js +2 -0
  104. package/build/static/js/8683.b6590c10.chunk.js.map +1 -0
  105. package/build/static/js/9556.bd02b06f.chunk.js +3 -0
  106. package/build/static/js/{9556.770616c3.chunk.js.map → 9556.bd02b06f.chunk.js.map} +1 -1
  107. package/build/static/js/9772.8953d82a.chunk.js +2 -0
  108. package/build/static/js/9772.8953d82a.chunk.js.map +1 -0
  109. package/build/static/js/{main.ecea222c.js → main.83f21429.js} +2 -2
  110. package/build/static/js/{main.ecea222c.js.map → main.83f21429.js.map} +1 -1
  111. package/package.json +4 -4
  112. package/build/static/css/196.8c09be8b.chunk.css +0 -2
  113. package/build/static/css/196.8c09be8b.chunk.css.map +0 -1
  114. package/build/static/css/2004.4a5cbde6.chunk.css +0 -2
  115. package/build/static/css/206.dd5f61e8.chunk.css +0 -2
  116. package/build/static/css/254.3dbd0c4a.chunk.css +0 -2
  117. package/build/static/css/2628.1116e838.chunk.css +0 -2
  118. package/build/static/css/3404.4d8903c0.chunk.css +0 -2
  119. package/build/static/css/3652.4142dbe0.chunk.css +0 -2
  120. package/build/static/css/3652.4142dbe0.chunk.css.map +0 -1
  121. package/build/static/css/3771.61d6e394.chunk.css +0 -2
  122. package/build/static/css/3771.61d6e394.chunk.css.map +0 -1
  123. package/build/static/css/4741.ff9e2120.chunk.css +0 -2
  124. package/build/static/css/4741.ff9e2120.chunk.css.map +0 -1
  125. package/build/static/css/4832.974e8486.chunk.css +0 -2
  126. package/build/static/css/5195.371f4543.chunk.css +0 -2
  127. package/build/static/css/5195.371f4543.chunk.css.map +0 -1
  128. package/build/static/css/6178.c5793d83.chunk.css.map +0 -1
  129. package/build/static/css/6980.eb55fb81.chunk.css +0 -12
  130. package/build/static/css/7227.cf7ece1c.chunk.css +0 -2
  131. package/build/static/css/9556.440a6f96.chunk.css +0 -2
  132. package/build/static/css/9772.345329b3.chunk.css +0 -2
  133. package/build/static/js/1064.790d5547.chunk.js.map +0 -1
  134. package/build/static/js/206.fdafdeaa.chunk.js +0 -2
  135. package/build/static/js/2097.17021c85.chunk.js.map +0 -1
  136. package/build/static/js/254.b819cc37.chunk.js +0 -2
  137. package/build/static/js/254.b819cc37.chunk.js.map +0 -1
  138. package/build/static/js/3771.10914c71.chunk.js +0 -2
  139. package/build/static/js/3856.499ef4d7.chunk.js +0 -2
  140. package/build/static/js/3856.499ef4d7.chunk.js.map +0 -1
  141. package/build/static/js/4277.7406d163.chunk.js +0 -2
  142. package/build/static/js/4474.a6f64125.chunk.js +0 -2
  143. package/build/static/js/4474.a6f64125.chunk.js.map +0 -1
  144. package/build/static/js/5195.4063c73c.chunk.js +0 -2
  145. package/build/static/js/5195.4063c73c.chunk.js.map +0 -1
  146. package/build/static/js/6183.b7c1076d.chunk.js.map +0 -1
  147. package/build/static/js/6629.f017e421.chunk.js.map +0 -1
  148. package/build/static/js/6980.b8e66dd1.chunk.js +0 -2
  149. package/build/static/js/6980.b8e66dd1.chunk.js.map +0 -1
  150. package/build/static/js/8601.414f9621.chunk.js.map +0 -1
  151. package/build/static/js/8683.de4b667d.chunk.js +0 -2
  152. package/build/static/js/8683.de4b667d.chunk.js.map +0 -1
  153. package/build/static/js/9556.770616c3.chunk.js +0 -3
  154. package/build/static/js/9772.973df1f5.chunk.js +0 -2
  155. package/build/static/js/9772.973df1f5.chunk.js.map +0 -1
  156. /package/build/static/js/{2004.3cd5c9c5.chunk.js.LICENSE.txt → 2004.182c7c0f.chunk.js.LICENSE.txt} +0 -0
  157. /package/build/static/js/{3404.1217b7c4.chunk.js.LICENSE.txt → 3404.1b947536.chunk.js.LICENSE.txt} +0 -0
  158. /package/build/static/js/{7227.6bc944fe.chunk.js.LICENSE.txt → 7227.65b21900.chunk.js.LICENSE.txt} +0 -0
  159. /package/build/static/js/{9556.770616c3.chunk.js.LICENSE.txt → 9556.bd02b06f.chunk.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/3771.10914c71.chunk.js","mappings":"mVACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,qCCOT,MAAME,EAAmB,QAEZC,EAAeC,IAAyC,IAAxC,QAACH,EAAO,UAAEI,EAAY,EAAC,SAAEC,GAASF,EAC3D,OAAKH,GAGGM,EAAAA,EAAAA,MAACC,EAAAA,IAAG,CAACC,MAAM,EAAOC,UAAWC,EAAM,qBAAqBL,SAAA,EAC5DM,EAAAA,EAAAA,KAACC,EAAAA,IAAG,CAACC,KAAM,GAAKT,EAAWK,UAAWC,EAAM,qBAAqBL,SAC5DA,KAELM,EAAAA,EAAAA,KAACC,EAAAA,IAAG,CAACC,K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5C,GAAU6C,EAAMR,EAAoBrC,K,eCtD9C,MAgBagF,EAAmBhF,IAC9B,MAAMiF,EAAYF,IAClB,OAAK/E,EAAMgD,KAUJvF,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWF,KARtCxH,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDrB,EACJT,QAASA,KACP0F,EAAUjF,EAAMoF,gBAO1B,EA9BqBpF,IACnB,MAAM6C,EAAQD,IACd,IAAK5C,EAAMgD,IAAK,CACd,MAAM,WAAEoC,KAAeC,GAAWrF,EAClC,OACEvC,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDgE,EACJ9F,QAASA,KACPsD,EAAMuC,KAId,CACA,OAAO3H,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWtC,I,oECf5C,QAAenB,G","sources":["webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__FdtSJ\",\"large\":\"style_large__iaqVE__FdtSJ\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__FdtSJ\",\"modal-title\":\"style_modal-title__dswaw__FdtSJ\",\"modal-outer\":\"style_modal-outer__r3SkX__FdtSJ\",\"modal-body\":\"style_modal-body__jQJSI__FdtSJ\",\"right-options-modal\":\"style_right-options-modal__FajDP__FdtSJ\",\"right-options-row\":\"style_right-options-row__-mPb9__FdtSJ\",\"right-options-col\":\"style_right-options-col__3ilee__FdtSJ\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__FdtSJ\",\"content\":\"style_content__k6MIF__FdtSJ\",\"modal-footer\":\"style_modal-footer__-prbN__FdtSJ\",\"modal-close\":\"style_modal-close__Oa5Kl__FdtSJ\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__FdtSJ\",\"is-danger\":\"style_is-danger__H5110__FdtSJ\",\"title\":\"style_title__orTym__FdtSJ\",\"has-title\":\"style_has-title__qy0Wp__FdtSJ\"};","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 destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const {modal} = App.useApp();\n return (props) => {\n const api = {};\n const {\n type, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnClose","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","_ref7","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/3771.60b0504e.chunk.js","mappings":"mVACA,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBA,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0B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EtC,OAAOC,OAAO,CAAC,EAAGnC,EAAO,CAAE7C,SAAUsC,EAAKtC,gBAItD0H,wBAAsB,EACtBR,UAAWA,EACXC,iBAAkBA,EAClBC,SAAUA,IAGd,MAAgC,oBAAlBzC,EACVA,EAAc2C,GACdA,KAENtH,SAAUyC,IAA6B,IAA5B,SAAEzC,KAAa6C,GAAOJ,EAC/B,MAA2B,oBAAbzC,EAA0BA,EAAS6C,GAAS7C,KAShE,EAJmB6C,IACVvC,EAAAA,EAAAA,KAACqH,EAAK,IAAKzC,EAAoBrC,KAK3B+E,EAAeA,KAC1B,MAAMlC,EAAQD,IACd,OAAQ5C,GAAU6C,EAAMR,EAAoBrC,K,eCtD9C,MAgBagF,EAAmBhF,IAC9B,MAAMiF,EAAYF,IAClB,OAAK/E,EAAMgD,KAUJvF,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWF,KARtCxH,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDrB,EACJT,QAASA,KACP0F,EAAUjF,EAAMoF,gBAO1B,EA9BqBpF,IACnB,MAAM6C,EAAQD,IACd,IAAK5C,EAAMgD,IAAK,CACd,MAAM,WAAEoC,KAAeC,GAAWrF,EAClC,OACEvC,EAAAA,EAAAA,KAAC4D,EAAAA,OAAM,IACDgE,EACJ9F,QAASA,KACPsD,EAAMuC,KAId,CACA,OAAO3H,EAAAA,EAAAA,KAACyH,EAAAA,EAAW,IAAKlF,EAAOmF,UAAWtC,I,oECf5C,QAAenB,G","sources":["webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__RltKb\",\"large\":\"style_large__iaqVE__RltKb\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__RltKb\",\"modal-title\":\"style_modal-title__dswaw__RltKb\",\"modal-outer\":\"style_modal-outer__r3SkX__RltKb\",\"modal-body\":\"style_modal-body__jQJSI__RltKb\",\"right-options-modal\":\"style_right-options-modal__FajDP__RltKb\",\"right-options-row\":\"style_right-options-row__-mPb9__RltKb\",\"right-options-col\":\"style_right-options-col__3ilee__RltKb\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__RltKb\",\"content\":\"style_content__k6MIF__RltKb\",\"modal-footer\":\"style_modal-footer__-prbN__RltKb\",\"modal-close\":\"style_modal-close__Oa5Kl__RltKb\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__RltKb\",\"is-danger\":\"style_is-danger__H5110__RltKb\",\"title\":\"style_title__orTym__RltKb\",\"has-title\":\"style_has-title__qy0Wp__RltKb\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, {useRef} from \"react\";\nimport {App, Button, Col, Modal as AntdModal, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {FormattedMessage, IntlProvider} from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({options, rightSpan = 6, children}) => {\n if (!options) {\n return children;\n }\n return (<Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>);\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\", style: {\"--min-modal-height\": calcHeight(300, footer)},\n };\n }\n return {\n width: \"1000px\", style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n};\n\nconst Footer = ({\n footer, footerButtons, onConfirm, onCancel, onClose, targetProps,\n }) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{\n children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onCancel,\n }, {\n type: \"primary\", children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onConfirm,\n },])\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(({\n ButtonComponent, onClick, autoClose = true, display, ...props\n }, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args, targetProps));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n }) => {\n const modalBodyRef = useRef(null);\n return (<div className={classnames(style[\"modal-outer\"], 'modal-container')} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={classnames(style[\"modal-close\"], \"modal-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(style[\"modal-body\"], {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n }, \"modal-body\")}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (<div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, {title}, props);\n return (<ModalOuter\n title={renderWithOptions(props.title, {\n ...props, childrenRef, close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props, childrenRef, close: onClose,\n })}\n targetProps={Object.assign({}, props, {childrenRef, close: onClose})}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props, childrenRef, close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props, childrenRef, close: onClose,\n })}\n </RightOptions>\n </ModalOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner, {\n childrenRef, close: onClose,\n }) : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const {modal} = App.useApp();\n return (props) => {\n const api = {};\n const {\n type, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","sizeMap","type","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","centered","maskClosable","hasOwnProperty","destroyOnHidden","useModal","modal","App","useApp","api","otherProps","destroy","info","content","useConfirmModal","danger","wrapClassName","message","iconSetting","confirmType","typeEnum","confirm","warning","error","success","direction","align","_ref7","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
@@ -1,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:()=>t.a});var s=i(60922),t=i.n(s),a=i(22717),l=i.n(a);(0,s.preset)({base:l()([["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 t=i(47458),a=i(64671),l=i(55199),r=i(83136),c=i.n(r);const o="style_helper-guide__K5xFw__FdtSJ",d="style_inner__bMKeU__FdtSJ",u="style_content__xTfWZ__FdtSJ",p="style_link__93j7O__FdtSJ";var v=i(48731),_=i(70579);const h=e=>{let{name:n,className:i}=e;return(0,_.jsx)(t.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)(l.Space,{className:d,children:[(0,_.jsx)(a.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,_.jsx)("span",{className:u,children:e.content}),e.url&&(0,_.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(a.default,{type:"icon-shuangjiantou-right"})]})]})})})})}}}]);
2
- //# sourceMappingURL=3790.b9b0756b.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:()=>s.a});var l=i(60922),s=i.n(l),t=i(22717),a=i.n(t);(0,l.preset)({base:a()([["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 l=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var s=i(47458),t=i(64671),a=i(55199),r=i(83136),c=i.n(r);const o="style_helper-guide__K5xFw__RltKb",d="style_inner__bMKeU__RltKb",u="style_content__xTfWZ__RltKb",p="style_link__93j7O__RltKb";var v=i(48731),_=i(70579);const h=e=>{let{name:n,className:i}=e;return(0,_.jsx)(s.IntlProvider,{importMessages:l,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)(a.Space,{className:d,children:[(0,_.jsx)(t.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,_.jsx)("span",{className:u,children:e.content}),e.url&&(0,_.jsxs)(a.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(t.default,{type:"icon-shuangjiantou-right"})]})]})})})})}}}]);
2
+ //# sourceMappingURL=3790.72c7a465.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/3790.b9b0756b.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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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__FdtSJ\",\"inner\":\"style_inner__bMKeU__FdtSJ\",\"content\":\"style_content__xTfWZ__FdtSJ\",\"link\":\"style_link__93j7O__FdtSJ\"};","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.72c7a465.chunk.js","mappings":"qOAyHAA,EAAAA,EAAAA,QAAO,CACLC,KAAMC,IAvHY,CAClB,CACE,SACA,IAAM,CACJ,CAAEC,MAAO,IAAKC,YAAa,UAC3B,CACED,MAAO,IACPC,YAAa,YAInB,CACE,UACA,IAAM,CACJ,CAAEA,YAAa,eAAMD,MAAO,KAC5B,CACEC,YAAa,eACbD,MAAO,OAIb,CACE,UACA,IAAM,CACJ,CAAEC,YAAa,SAAKD,MAAO,KAC3B,CACEC,YAAa,SACbD,MAAO,OAIb,CACE,YACA,IAAM,CACJ,CAAEC,YAAa,2BAAQD,MAAO,4BAC9B,CACEC,YAAa,2BACbD,MAAO,4BAET,CAAEC,YAAa,eAAMD,MAAO,gBAC5B,CACEC,YAAa,2BACbD,MAAO,8BAIb,CACE,iBACA,IAAM,CACJ,CACEA,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,gBAEf,CACED,MAAO,EACPC,YAAa,sBAEf,CACED,MAAO,EACPC,YAAa,wBAInB,CACE,aACA,IAAM,CACJ,CACEA,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,eACbD,MAAO,IAET,CACEC,YAAa,iCACbD,MAAO,IAET,CACEC,YAAa,iCACbD,MAAO,IAET,CACEC,YAAa,qBACbD,MAAO,IAET,CACEC,YAAa,2BACbD,MAAO,QASX,CAACE,EAAQF,KACPE,EAAOF,EAAM,IAAMA,EAAM,IAE3B,CAAC,I,gDC/HL,MAOA,EAPwBG,IACf,CACL,QAASC,IAAM,+BACf,QAASC,IAAM,iCACfF,M,yDCHJ,QAA+B,mCAA/B,EAA0E,4BAA1E,EAAgH,8BAAhH,EAAqJ,2B,0BCOrJ,MAgCA,EAhCoBG,IAA0B,IAAzB,KAAEC,EAAI,UAAEC,GAAWF,EACtC,OACEG,EAAAA,EAAAA,KAACC,EAAAA,aAAY,CAACC,eAAgBA,EAAgBC,WAAW,cAAaC,UACpEJ,EAAAA,EAAAA,KAACK,EAAAA,QAAI,CAACF,WAAW,cAAcL,KAAMA,EAAKM,SACtCE,GAEEA,GACAA,EAAKf,QACHS,EAAAA,EAAAA,KAAA,OAAKD,UAAWQ,IAAWC,EAAuBT,GAAWK,UAC3DK,EAAAA,EAAAA,MAACC,EAAAA,MAAK,CAACX,UAAWS,EAAeJ,SAAA,EAC/BJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACC,UAAQ,EAACC,KAAK,8BACpBb,EAAAA,EAAAA,KAAA,QAAMD,UAAWS,EAAiBJ,SAAEE,EAAKQ,UACxCR,EAAKS,MACJN,EAAAA,EAAAA,MAACO,EAAAA,WAAWC,KAAI,CACdlB,UAAWS,EACXU,KAAMZ,EAAKS,IACXI,OAAO,SAAQf,SAAA,CAChB,4BAECJ,EAAAA,EAAAA,KAACW,EAAAA,QAAI,CAACE,KAAK,yC","sources":["components/Enum/index.js","components/HelperGuide/locale/index.js","webpack://@kne-components/components-core/./src/components/HelperGuide/style.module.scss?bc31","components/HelperGuide/index.js"],"sourcesContent":["import { preset } from \"@kne/react-enum\";\nimport transform from \"lodash/transform\";\n\nconst baseLoaders = [\n [\n \"gender\",\n () => [\n { value: \"M\", description: \"男\" },\n {\n value: \"F\",\n description: \"女\",\n },\n ],\n ],\n [\n \"marital\",\n () => [\n { description: \"已婚\", value: \"Y\" },\n {\n description: \"未婚\",\n value: \"N\",\n },\n ],\n ],\n [\n \"confirm\",\n () => [\n { description: \"是\", value: \"Y\" },\n {\n description: \"否\",\n value: \"N\",\n },\n ],\n ],\n [\n \"political\",\n () => [\n { description: \"中共党员\", value: \"中共党员\" },\n {\n description: \"共青团员\",\n value: \"共青团员\",\n },\n { description: \"群众\", value: \"群众\" },\n {\n description: \"其他党派\",\n value: \"其他党派\",\n },\n ],\n ],\n [\n \"phoneStateEnum\",\n () => [\n {\n value: 0,\n description: \"空号\",\n },\n {\n value: 1,\n description: \"实号\",\n },\n {\n value: 2,\n description: \"停机\",\n },\n {\n value: 3,\n description: \"库无\",\n },\n {\n value: 4,\n description: \"沉默号\",\n },\n {\n value: 5,\n description: \"风险号\",\n },\n ],\n ],\n [\n \"degreeEnum\",\n () => [\n {\n description: \"初中\",\n value: 10,\n },\n {\n description: \"中专\",\n value: 20,\n },\n {\n description: \"高中\",\n value: 30,\n },\n {\n description: \"大专\",\n value: 40,\n },\n {\n description: \"本科\",\n value: 50,\n },\n {\n description: \"硕士研究生\",\n value: 60,\n },\n {\n description: \"博士研究生\",\n value: 70,\n },\n {\n description: \"博士后\",\n value: 75,\n },\n {\n description: \"学历不限\",\n value: 999,\n },\n ],\n ],\n];\n\npreset({\n base: transform(\n baseLoaders,\n (result, value) => {\n result[value[0]] = value[1];\n },\n {}\n ),\n});\n\nexport { default } from \"@kne/react-enum\";\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"helper-guide\":\"style_helper-guide__K5xFw__RltKb\",\"inner\":\"style_inner__bMKeU__RltKb\",\"content\":\"style_content__xTfWZ__RltKb\",\"link\":\"style_link__93j7O__RltKb\"};","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,l)=>{l.r(t),l.d(t,{ModalButton:()=>I,TabsModal:()=>R,TabsModalButton:()=>O,default:()=>N,useConfirmModal:()=>A,useModal:()=>C,useTabsModal:()=>w});var n=l(73884),a=l(55199),s=l(83136),r=l.n(s);const o={modal:"style_modal__Pm3cF__RltKb",large:"style_large__iaqVE__RltKb","modal-body-inner":"style_modal-body-inner__4PhpA__RltKb","modal-title":"style_modal-title__dswaw__RltKb","modal-outer":"style_modal-outer__r3SkX__RltKb","modal-body":"style_modal-body__jQJSI__RltKb","right-options-modal":"style_right-options-modal__FajDP__RltKb","right-options-row":"style_right-options-row__-mPb9__RltKb","right-options-col":"style_right-options-col__3ilee__RltKb","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__RltKb",content:"style_content__k6MIF__RltKb","modal-footer":"style_modal-footer__-prbN__RltKb","modal-close":"style_modal-close__Oa5Kl__RltKb","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__RltKb","is-danger":"style_is-danger__H5110__RltKb",title:"style_title__orTym__RltKb","has-title":"style_has-title__qy0Wp__RltKb"},i=e=>({"en-US":()=>l.e(4628).then(l.bind(l,74628)),"zh-CN":()=>l.e(7478).then(l.bind(l,87478))}[e]());var c=l(47458),d=l(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var p=l(81014),m=l(17342),h=l(70579);const _="Modal",g=e=>{let{options:t,rightSpan:l=6,children:n}=e;return t?(0,h.jsxs)(a.Row,{wrap:!1,className:o["right-options-row"],children:[(0,h.jsx)(a.Col,{span:24-l,className:o["right-options-col"],children:n}),(0,h.jsx)(a.Col,{span:l,className:o["right-options-col"],children:t})]}):n},f=(e,t)=>e-48-(t?58:0)+"px",x=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":f(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":f(300,t)}}:{width:"1000px",style:{"--min-modal-height":f(500,t)}},y=e=>{let{footer:t,footerButtons:l,onConfirm:s,onCancel:r,onClose:o,targetProps:d}=e;return(0,h.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(a.Col,{flex:1,children:t}),Array.isArray(l)&&0===l.length?null:(0,h.jsx)(a.Col,{children:(0,h.jsx)(a.Space,{children:(l||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:r},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:_})}),onClick:s}]).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:l,onClick:a,autoClose:s=!0,display:r,...i}=e;const c=l||p.default;return(0,n.createElement)(c,{...i,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];const n=await Promise.resolve(a&&a(...t,d));return s&&!1!==n&&o&&o(),n}})})})})]})},v=e=>{let{title:t,footer:l,disabledScroller:s,footerButtons:i,onClose:c,closable:u,onConfirm:p,onCancel:_,children:g,targetProps:f}=e;const x=(0,n.useRef)(null);return(0,h.jsxs)("div",{className:r()(o["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(a.Button,{"data-testid":"components-core-modal-close-btn",className:r()(o["modal-close"],"modal-close"),type:"text",icon:(0,h.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,h.jsx)("div",{className:o["modal-title"],children:t}),(0,h.jsx)(m.A,{className:r()(o["modal-body"],{[o["is-disabled-scroller"]]:s},"modal-body"),ref:x,children:(0,h.jsx)("div",{className:r()(o["modal-body-inner"],"modal-body-inner"),children:g})}),null!==l||i?(0,h.jsx)("div",{className:r()(o["modal-footer"],"modal-footer"),children:(0,h.jsx)(y,{footer:l,footerButtons:i,onConfirm:p,onCancel:_,onClose:c,targetProps:f})}):null]})},b=e=>{let{withDecorator:t,footerButtons:l,title:n,closable:a,onClose:s,onConfirm:r,onCancel:o,footer:i,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:m,children:_}=e;const f=e=>(e=Object.assign({},{title:n},e),(0,h.jsx)(v,{title:u(e.title,{...e,childrenRef:m,close:s}),closable:a,onClose:s,onConfirm:r,onCancel:o,footerButtons:u(l,{...e,close:s}),disabledScroller:p,footer:u(i,{...e,childrenRef:m,close:s}),targetProps:Object.assign({},e,{childrenRef:m,close:s}),children:(0,h.jsx)(g,{rightSpan:d,options:u(c,{...e,childrenRef:m,close:s}),children:u(_,{...e,childrenRef:m,close:s})})}));return"function"===typeof t?t(f,{childrenRef:m,close:s}):f({})},j=e=>{let{children:t,rightOptions:l,rightSpan:n,footer:a,footerButtons:s,className:d,size:u,title:p,onClose:m,onConfirm:_,onCancel:g,closable:f,disabledScroller:y,withDecorator:v,childrenRef:j,...C}=e;return{...C,icon:null,centered:!0,title:null,maskClosable:!!C.hasOwnProperty("maskClosable")&&C.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:m,className:r()(d,o.modal,o[u],{[o["right-options-modal"]]:l}),...x(u,!(null===a&&!s)),children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:"Modal",children:b({withDecorator:v,title:p,closable:f,onClose:m,onConfirm:_,onCancel:g,footer:a,footerButtons:s,rightOptions:l,rightSpan:n,disabledScroller:y,children:t,childrenRef:j})})}},C=()=>{const{modal:e}=a.App.useApp(),t=(0,n.useRef)(null);return l=>{const n={},{children:a,...s}=j({onClose:()=>n.close(),childrenRef:t,...l}),{destroy:r}=e.info({...s,content:a});return n.close=r,n}},A=()=>{const{modal:e}=a.App.useApp();return t=>{const l={},{type:n,icon:s,title:i,danger:c,wrapClassName:u,message:p,iconSetting:m={},confirmType:_="info",...g}={onClose:()=>l.close(),maskClosable:!1,...t},f=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},m);if(e[n]){const{destroy:t}=e[n]({...g,icon:null,wrapClassName:r()(o["confirm-modal-wrap"],u,{[o["is-danger"]]:c}),title:(0,h.jsx)(a.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:i&&(0,h.jsxs)(a.Space,{size:0,align:"start",className:o.title,children:[c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===n?_:n}`),type:s||f["confirm"===n?_:n]}):null,i]})}),content:(0,h.jsxs)(a.Space,{size:0,align:"start",className:r()(o.content,{[o["has-title"]]:i}),children:[!i&&c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===n?_:n}`),type:s||f["confirm"===n?_:n]}):null,p]})});l.close=t}return l}},N=e=>{let{size:t="default",...l}=e;const s=(0,n.useRef)(null);return(0,h.jsx)(a.Modal,{...j(Object.assign({},l,{size:t,childrenRef:s}))})},S=e=>{let{items:t,className:l,activeKey:n,withDecorator:s,defaultActiveKey:o,onChange:i,...c}=e;return{...c,className:r()(l,"tabs-modal"),withDecorator:e=>{const l=l=>(0,h.jsx)(a.Tabs,{items:t.map(t=>{let{withDecorator:n,...a}=t;return Object.assign({},a,{children:"function"===typeof n?n(t=>e(Object.assign({},l,t,{children:a.children}))):e(Object.assign({},l,{children:a.children}))})}),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:o,onChange:i});return"function"===typeof s?s(l):l()},children:e=>{let{children:t,...l}=e;return"function"===typeof t?t(l):t}}},R=e=>(0,h.jsx)(N,{...S(e)}),w=()=>{const e=C();return t=>e(S(t))};var K=l(73025);const O=e=>{const t=w();return e.api?(0,h.jsx)(K.A,{...e,modalFunc:t}):(0,h.jsx)(a.Button,{...e,onClick:()=>{t(e.modalProps)}})},I=e=>{const t=C();if(!e.api){const{modalProps:l,...n}=e;return(0,h.jsx)(a.Button,{...n,onClick:()=>{t(l)}})}return(0,h.jsx)(K.A,{...e,modalFunc:t})}},12392:(e,t,l)=>{l.d(t,{Bm:()=>V,Eo:()=>E,NR:()=>A,Ay:()=>W});var n=l(55199),a=l(83136),s=l.n(a),r=l(30509),o=l(25438),i=l(78784),c=l(33097),d=l.n(c),u=l(34677),p=l.n(u);const m="create-list_scroll-loader__zoaS7__RltKb",h="create-list_is-popup__t3d-G__RltKb",_="create-list_is-not-full__FXtX1__RltKb",g="create-list_search-input__tV3vf__RltKb",f="create-list_left__EXr3i__RltKb",x="create-list_list-header__3xeJa__RltKb",y="create-list_is-modal__BMfya__RltKb";var v=l(73161),b=l(47458),j=l(70579);const C=r.A.useContext,A=e=>{let{renderList:t,defaultProps:l}=e;const a=e=>{let{value:l,setValue:a}=e;const{fetchApi:r,searchText:c,setSearchText:u,props:A,mapping:N}=C(),S=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},A.pagination),R=d()(r.requestParams,[S.paramsType,S.current],1),w=d()(r.requestParams,[S.paramsType,S.pageSizeName])||S.pageSize,{formatMessage:K}=(0,b.useIntl)({moduleName:"Common"}),O=A.dataFormat(r.data),{right:I,leftBottom:L,leftSpan:P=24}=A,k=1===l.length&&"all"===l[0];return(0,j.jsxs)(n.Row,{wrap:!1,className:I?s()("is-not-full",_):"",children:[(0,j.jsxs)(n.Col,{span:P,className:s()(f,"advance-select-left"),children:[A.getSearchProps?(0,j.jsx)(v.A,{isPopup:A.isPopup,className:s()(g,o.A["search-input"],{[o.A["is-popup"]]:A.isPopup}),placeholder:A.searchPlaceholder||K({id:"search"}),value:c,onSearch:e=>{r.reload(A.getSearchProps(e)),u(e)}}):null,A.single||!A.showSelectedCount&&!A.allowSelectAll?null:(0,j.jsxs)(n.Flex,{className:s()(x,{[y]:!A.isPopup}),justify:"space-between",children:[A.showSelectedCount?(0,j.jsxs)(n.Space,{children:[(0,j.jsx)(n.Typography,{children:"\u5df2\u9009:"}),(0,j.jsx)(n.Typography.Link,{children:k?A.allLabel||(0,j.jsx)(b.FormattedMessage,{id:"all",moduleName:"Common"}):`${l.length}${A.countUnit||K({id:"items"})}`})]}):(0,j.jsx)("div",{}),A.allowSelectAll?(0,j.jsx)("div",{children:(0,j.jsx)(n.Checkbox,{checked:k,onChange:e=>{a(e.target.checked?[A.allValue||"all"]:[])},children:(0,j.jsx)(b.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:A.allLabel||(0,j.jsx)(b.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,j.jsx)("div",{})]}),(0,j.jsx)(i.default,{completeTips:"",isLoading:!r.isComplete,className:s()(m,{[h]:A.isPopup}),noMore:!O.total||R*w>=O.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(p()({[S.paramsType]:{[S.pageSizeName]:w,[S.current]:R+1}},A.getSearchProps&&A.getSearchProps(c)),A.mergeList)},children:(()=>{const e={props:A,value:l,setValue:a,list:O.list,data:r.data,fetchApi:r,itemIsSelected:e=>l.indexOf(e.value)>-1,isSelectedAll:k,onSelect:e=>{if(A.single)return void a([e.value]);const t=l.slice(0),n=t.indexOf(e.value);n>-1?t.splice(n,1):t.push(e.value),a(t)}},n=t(e);return"function"===typeof A.dropdownRender?A.dropdownRender(Object.assign({},e,{children:n})):n})()}),L&&L({fetchApi:r,value:l,mapping:N})]}),I&&I({value:l,mapping:N,fetchApi:r})]})},c=e=>{let{extra:t,...l}=e;return(0,j.jsx)(r.A,{...l,extra:t,children:e=>{let{value:t,setValue:l}=e;return(0,j.jsx)(a,{value:t,setValue:l})}})};return c.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},l),c},N="list_list__TGynD__RltKb",S="list_list-item__WSswf__RltKb",R="list_is-selected__6Wkgt__RltKb",w="list_item-label__bYzhe__RltKb",K="list_item-des__2nsEn__RltKb",O="list_is-disabled__qxCvO__RltKb",I="list_is-selected-all__Mp-hG__RltKb";var L=l(40438),P=l(64671);const k="user_list-inner__V508e__RltKb",F="user_list-info__y2nWo__RltKb",M="user_selected-icon__9OQJL__RltKb",T="user_item-des__o+7UR__RltKb",D="user_is-selected-all__2q0VZ__RltKb",E=A({renderList:e=>{let{list:t,onSelect:l,itemIsSelected:a,isSelectedAll:r}=e;return(0,j.jsx)(n.List,{size:"small",className:s()(N,{[I]:r,[D]:r}),dataSource:t,renderItem:e=>{const t=a(e);return(0,j.jsx)(n.List.Item,{className:s()(S,{[R]:t}),onClick:()=>l(e),children:(0,j.jsxs)(n.Row,{wrap:!1,align:"middle",className:k,children:[(0,j.jsx)(n.Col,{children:(0,j.jsx)(L.default.Avatar,{...Object.assign({},e.avatar),size:40,gender:"M"})}),(0,j.jsx)(n.Col,{className:F,flex:1,children:(0,j.jsxs)(n.Space,{direction:"vertical",children:[(0,j.jsx)("span",{className:w,children:e.label}),e.description&&(0,j.jsx)("span",{className:T,children:e.description})]})}),(0,j.jsx)(n.Col,{children:r||t?(0,j.jsx)(P.default,{className:M,type:"icon-gouxuan"}):null})]})})}})}}),z={"is-selected-all":"table_is-selected-all__IwXUY__RltKb"},V=A({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:l,onSelect:a,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,j.jsx)(n.Table,{className:s()(z.list,N,{[I]:c,[z["is-selected-all"]]:c}),size:"small",dataSource:l,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:l.map(e=>{let{value:t}=e;return t}),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>a(e)})})}}),W=A({renderList:e=>{let{props:t,list:l,itemIsSelected:a,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,j.jsx)(n.List,{className:s()(N,i,{[I]:r}),size:"small",dataSource:l,renderItem:e=>{var l;const i=a(e);return(0,j.jsxs)(n.List.Item,{className:s()(S,{[R]:t.single&&i,[O]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,j.jsxs)(n.Row,{wrap:!1,children:[t.single?null:(0,j.jsx)(n.Col,{children:(0,j.jsx)(n.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,j.jsx)(n.Col,{children:(0,j.jsxs)(n.Space,{className:null!==(l=null===e||void 0===e?void 0:e.className)&&void 0!==l?l:"",children:[(0,j.jsx)("span",{className:w,children:e.label}),e.description&&(0,j.jsx)("span",{className:K,children:e.description})]})})]}),i&&c]})}})}})},17342:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(34581),a=l.n(n);l(46733);const s=a()},17508:(e,t,l)=>{l.d(t,{AG:()=>u,Ay:()=>i,FI:()=>d,Zi:()=>c,lN:()=>n.useFileUpload});var n=l(68827),a=l(55199),s=l(83136),r=l.n(s),o=l(70579);const i=e=>t=>{let{className:l,multiple:a,accept:s,onChange:r,children:i,...c}=t;return(0,o.jsx)(n.FileInput,{className:l,multiple:a,accept:s,onChange:r,children:t=>{let{children:l,...n}=t;return(0,o.jsxs)(e,{...Object.assign({},c,n),children:[i,l]})}})},c=e=>{let{children:t,...l}=e;return(0,o.jsx)(n.FileInput,{...l,buttonText:t})},d=e=>{let{className:t,multiple:l,accept:s,onChange:r,children:i,...c}=e;return(0,o.jsx)(n.FileInput,{className:t,multiple:l,accept:s,onChange:r,children:e=>{let{children:t,...l}=e;return(0,o.jsxs)(a.Typography.Link,{...Object.assign({},c,l),children:[i,t]})}})},u=e=>{let{className:t,multiple:l,accept:s,onChange:i,children:c,...d}=e;return(0,o.jsx)(n.FileInput,{className:r()(t,"ant-btn"),multiple:l,accept:s,onChange:i,children:e=>{let{children:t,...l}=e;return(0,o.jsxs)(a.Typography.Text,{...Object.assign({},d,l),children:[c,t]})}})}},18411:(e,t,l)=>{l.d(t,{A:()=>n});l(73884);const n=l.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},20492:(e,t,l)=>{l.d(t,{A:()=>n});const n=e=>({"en-US":()=>l.e(3086).then(l.bind(l,13086)),"zh-CN":()=>l.e(4308).then(l.bind(l,84308))}[e]())},21485:(e,t,l)=>{l.d(t,{A:()=>c});var n=l(73884),a=l(71298),s=l.n(a),r=l(96418),o=l.n(r),i=l(70579);const c=(0,n.forwardRef)((e,t)=>{let{children:l,onScroll:a,options:r,onReady:c,...d}=e;const u=(0,n.useRef)(null),p=(0,n.useRef)(null),m=(0,n.useRef)(r),h=o()(c),_=o()(a);return(0,n.useImperativeHandle)(t,()=>p.current),(0,n.useEffect)(()=>{const e=new(s())(u.current,m.current);return p.current=e.getScrollElement(),p.current.addEventListener("scroll",_),h(p.current),()=>{p.current.removeEventListener("scroll",_)}},[_,h,l]),(0,i.jsx)("div",{...d,ref:u,children:l})})},25438:(e,t,l)=>{l.d(t,{A:()=>n});const n={"search-input":"common_search-input__P6qLg__RltKb","is-popup":"common_is-popup__fJq+g__RltKb",list:"common_list__TKFzS__RltKb","list-item":"common_list-item__ASse7__RltKb","is-selected":"common_is-selected__-PU4Y__RltKb","item-label":"common_item-label__u+qz1__RltKb","item-des":"common_item-des__no2z0__RltKb"}},27047:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(83694),a=l(33097),s=l.n(a);const r=()=>{const e=(0,n.useGlobalContext)();return s()(e,"preset",{apis:{}})}},30509:(e,t,l)=>{l.d(t,{A:()=>W});const n={"ant-tag":"style_ant-tag__nNp8-__RltKb",overlay:"style_overlay__La5mO__RltKb",input:"style_input__SpJTE__RltKb","is-disabled":"style_is-disabled__joxdl__RltKb","input-icon":"style_input-icon__vVd8R__RltKb",large:"style_large__En6mL__RltKb",small:"style_small__DY0AQ__RltKb","input-inner":"style_input-inner__PWy27__RltKb","input-custom":"style_input-custom__ktsWD__RltKb","display-content":"style_display-content__hIKo+__RltKb","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__RltKb","selected-tag":"style_selected-tag__zXZZO__RltKb","selected-tag-list":"style_selected-tag-list__xUIms__RltKb","selected-tag-inner":"style_selected-tag-inner__Z5gPL__RltKb","text-inner":"style_text-inner__H24hY__RltKb",placeholder:"style_placeholder__x0ccE__RltKb","is-modal":"style_is-modal__JU+uq__RltKb","overlay-content":"style_overlay-content__WKqp+__RltKb"};var a=l(74981);const{context:s,useContext:r,Provider:o,Consumer:i}=(0,a.A)();var c=l(73884),d=l(10986),u=l.n(d),p=l(87558),m=l(33097),h=l.n(m),_=l(55199),g=l(83136),f=l.n(g),x=l(3382),y=l(64671),v=l(79686),b=l.n(v),j=l(41740),C=l.n(j),A=l(74065),N=l.n(A),S=l(21485),R=l(96418),w=l.n(R),K=l(77964),O=l(91176),I=l(47458),L=l(20492),P=l(27047),k=l(70579);const F=e=>{let{maxLength:t,single:l,setValue:n,value:a,message:s}=e;return e=>n(!l&&Number.isInteger(t)&&t>0&&e.length>t?(s(),a):e)},M=e=>{let{single:t,value:l,mapping:a,allValue:s,allLabel:r,onClose:o}=e;return l&&Array.isArray(l)&&0!==l.length?t?(0,k.jsx)("span",{className:n["text-inner"],children:h()(a.get(l[0]),"label")||l[0]}):1===l.length&&l[0]===(s||"all")?(0,k.jsx)("span",{className:n["text-inner"],children:r||(0,k.jsx)(I.FormattedMessage,{id:"all",moduleName:"Common"})}):l.map(e=>{const t=a.get(e);return(0,k.jsx)(_.Tag,{className:n["display-tag"],closable:!0,onClose:l=>{l.preventDefault(),o(e,t)},children:(0,k.jsx)("span",{className:n["tag-inner"],children:h()(t,"label")||e})},e)}):null},T=(0,c.forwardRef)((e,t)=>{let{value:l,onChange:a,extra:s,showSelectedTag:r,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(l),m=(0,c.useRef)(l),{formatMessage:h}=(0,I.useIntl)({moduleName:"Common"});m.current=l;const[g,f]=(0,c.useState)(!1),y=e=>{var t;f(e),null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},{message:v}=_.App.useApp(),b=F({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:()=>v.error(h({id:"maxSelectedCount"},{count:d.maxLength}))});return(0,c.useEffect)(()=>{g&&p(m.current)},[g]),(0,c.useImperativeHandle)(t,()=>({modalOpen:()=>{y(!0)},close:()=>{y(!1)}})),(0,k.jsx)(x.default,{...d,open:g,onConfirm:()=>{a(u)},onClose:()=>{y(!1)},footer:(0,k.jsxs)(_.Space,{direction:"vertical",className:n["overlay-footer"],children:[s&&(0,k.jsx)("div",{className:n["overlay-footer-extra"],children:s}),r&&o({value:u,setValue:b})]}),children:"function"===typeof i?i({value:u,setValue:b}):i})}),D=(0,c.forwardRef)((e,t)=>{let{value:l,setValue:a,children:s,renderSelectedContent:r,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,overlayClassName:g,disabled:x,...y}=e;const[v,b]=(0,c.useState)(!1),j=w()(e=>{var t;b(e),null===(t=y.onOpenChange)||void 0===t||t.call(y,e)});return(0,c.useImperativeHandle)(t,()=>({close:()=>{j(!1)}}),[j]),x?(0,k.jsx)("div",{className:n["input-inner"],children:d}):(0,k.jsx)(_.Popover,{...y,open:v,onOpenChange:j,transitionName:"ant-slide-up",overlayClassName:f()(n.overlay,g),arrow:!1,content:(0,k.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:f()(n["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,k.jsx)("div",{className:n["overlay-inner"],children:"function"===typeof s?s({value:l,setValue:e=>{(!u||l[0]!==e[0])&&a(e),u&&j(!1)}}):s}),(o||p)&&(0,k.jsxs)("div",{className:n["overlay-footer"],children:[p&&(0,k.jsx)("div",{className:n["overlay-footer-extra"],children:p}),o&&r({value:l,setValue:a})]})]}),trigger:"click",placement:i,children:(0,k.jsx)("div",{className:n["input-inner"],children:d})})}),E=(0,p.withFetch)(e=>{let{setFetchApi:t,wrapClassName:l,getContentRef:a,...s}=e;const[o,i]=(0,c.useState)(!1),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=r(),{valueState:m,mapping:h,props:g,inputWidth:x}=p,[v,b]=m,{formatMessage:j}=(0,I.useIntl)({moduleName:"Common"}),{single:C,placement:A,getPopupContainer:N,placeholder:R,isPopup:K,disabled:L,showSelectedTag:P,extra:F,inputContent:E,allowClear:z,overlayClassName:V}=g,W=(0,c.useRef)(s);W.current=s;const U=w()(a);(0,c.useEffect)(()=>{U(K?u:d)},[K,U]),(0,c.useEffect)(()=>{t(Object.assign({},W.current,{data:s.data,isComplete:s.isComplete}))},[s.data,t,s.isComplete]);const B=M({single:C,value:v,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{b(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}}),q=e=>{let{value:t,setValue:l}=e;return(0,k.jsxs)(_.Space,{className:n["selected-tag"],align:"center",wrap:!1,children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(I.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,k.jsx)(S.A,{className:n["selected-tag-list"],children:(0,k.jsx)("div",{className:n["selected-tag-inner"],children:M({value:t,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{l(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}})})})]})},$=E?E(p):(0,k.jsxs)(_.Space,{className:n["display-content"],onMouseOver:()=>{i(!0)},onMouseOut:()=>{i(!1)},children:[(0,k.jsx)("div",{children:B||(0,k.jsx)("span",{className:n.placeholder,children:R||j({id:"pleaseSelect"})})}),o&&v&&v.length>0&&!L&&z?(0,k.jsx)(y.default,{className:f()(n.close,n["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),b([])}}):(0,k.jsx)(y.default,{className:f()(n["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return K?(0,k.jsx)(D,{ref:u,overlayWidth:(0,O.v)(Math.max(x,(0,O.j)(g.overlayWidth))),value:v,setValue:b,single:C,disabled:L,inputContent:$,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof F?F({close:()=>u.current.close(),context:p}):F,renderSelectedContent:q,showSelectedTag:P,trigger:"click",placement:A,getPopupContainer:N,children:g.children}):(0,k.jsxs)("div",{className:n["input-inner"],onClick:()=>{L||d.current.modalOpen()},children:[(0,k.jsx)(T,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:f()(n.overlay,n["is-modal"],l),title:g.placeholder||j({id:"pleaseSelect"}),value:v,onChange:b,extra:"function"===typeof F?F({close:()=>d.current.close(),context:p}):F,showSelectedTag:P,renderSelectedContent:q,children:g.children}),$]})}),z=e=>{let{api:t,className:l,displayItems:a,wrapClassName:s,...r}=e;const{locale:i}=(0,P.A)(),[d,p]=(0,c.useState)(""),[m,g]=(0,c.useState)(new Map(a.map(e=>[e.value,e]))),{formatMessage:x}=(0,I.useIntl)({moduleName:"Common"}),[y,v]=(0,c.useState)(0),j=(0,K.A)(e=>{v(e.clientWidth)}),[A,S]=(0,c.useState)({}),{message:R}=_.App.useApp(),w=e=>{const t=e.filter(e=>m.get(e.value)!==e);0!==t.length&&g(e=>{const l=C()(e);return t.forEach(e=>{l.set(e.value,e)}),l})},O=e=>((e,t)=>Array.isArray(e)&&e.every(e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label"))?(t(e),e.map(e=>e.value)):e)(r.single?b()(e)?[]:[e]:e||[],w,r.valueType),[L,M]=u()(Object.assign({},r,{onChange:e=>{const t=((e,t,l)=>"all"!==l?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,m,r.valueType);r.onChange&&r.onChange(r.single?N()(t):t)}},"value"in r?{value:O(r.value)}:{defaultValue:O(r.defaultValue)})),T=F({maxLength:r.maxLength,single:r.single,setValue:M,value:L,message:()=>R.error(x({id:"maxSelectedCount"},{count:r.maxLength}))}),D=(0,c.useRef)(null);return(0,k.jsx)(o,{value:{inputWidth:y,mapping:m,searchText:d,setSearchText:p,appendMapping:w,setItems:e=>{A.setData(e),w(h()(r.dataFormat(e,{locale:i}),"list",[]))},getContentApi:()=>D.current,fetchApi:A,valueState:[L,T],props:r},children:(0,k.jsx)("div",{ref:j,className:f()(n["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],{"select-input-disabled":!!r.disabled},l),children:(0,k.jsx)(E,{...t,wrapClassName:s,loading:null,setFetchApi:S,getContentRef:e=>{e.current&&(D.current=e.current)},onRequestSuccess:e=>{w(h()(r.dataFormat(e,{locale:i}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};z.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const V=(0,I.createWithIntl)({importMessages:L.A,moduleName:"Common"})(z);V.useContext=r;const W=V},40438:(e,t,l)=>{l.r(t),l.d(t,{default:()=>C});var n=l(87558),a=l.n(n),s=l(97211),r=l(64671),o=l(83136),i=l.n(o),c=l(55199),d=l(73884);const u=e=>{let{params:t}=e;const{data:l}=t;return new Promise((e,t)=>{const n=new window.Image;n.src=l,n.addEventListener("load",()=>{e(l)}),n.addEventListener("error",e=>{t(e)})})},p="style_img-outer__4QLY5__RltKb",m="style_img__PSExq__RltKb",h="style_loading__WCOwA__RltKb",_="style_error__+ECgZ__RltKb";var g=l(18411),f=l(63743),x=l(70579);const y=e=>{let{data:t,className:l,alt:n,innerLoading:s,loading:o=(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0}),error:d=(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:p,children:h,onClick:_,staticUrl:g}=e;const{staticUrl:y}=(0,f.usePreset)(),v=g||y||"";return(0,x.jsx)(a(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:v+t},error:p||d,loading:s||o,render:e=>{let{data:t}=e;return"function"===typeof h?h({alt:n,className:i()(l,m),src:t}):(0,x.jsx)("img",{alt:n,className:i()(l,m),src:t,onClick:_})}})},v=(0,s.A)(y),b=e=>{let{loading:t,error:l,src:n,id:a,alt:s,className:r,children:o,apis:i,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:h}),p=l&&(0,d.cloneElement)(l,{className:_});return n?(0,x.jsx)(y,{alt:s,className:r,data:n,loading:u,error:p,onClick:c,children:o}):a?(0,x.jsx)(v,{alt:s,className:r,id:a,loading:u,innerLoading:u,error:p,innerError:p,apis:i,onClick:c,children:o}):p},j=e=>{let{id:t,src:l,alt:n,onClick:a,loading:s=(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:d,apis:u,...m}=e;return(0,x.jsx)("div",{...m,"data-testid":"components-core-image",className:i()(d,p),children:b({loading:s,error:o,src:l,id:t,alt:n,className:d,apis:u,onClick:a})})};j.Avatar=e=>{let{id:t,src:l,alt:n,gender:a,loading:s=(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:d,gap:u,icon:m,children:h,shape:_,size:f=100,width:y,height:v,defaultAvatar:j=g.A,apis:C,...A}=e;const N=(()=>{const e=y&&v?{style:{width:y,height:v}}:{size:f};if(y&&y!==v&&(_="square"),t||l)return b({loading:s,error:o,src:l,defaultAvatar:j,id:t,alt:n,className:d,apis:C,children:t=>(0,x.jsx)(c.Avatar,{...t,gap:u,shape:_,...e})});if(a){const t=a&&["F","female","f"].indexOf(a)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,x.jsx)(c.Avatar,{...A,src:(0,x.jsx)(r.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:_,...e})}return(0,x.jsx)(c.Avatar,{...A,gap:u,icon:m,shape:_,size:f,src:j,...e,children:h})})();return(0,x.jsx)("div",{...A,"data-testid":"components-core-image-avatar",className:i()(d,p),style:{width:y&&v?y:f,height:y&&v?v:f},children:N})};const C=j},41654:(e,t,l)=>{l.d(t,{A:()=>m,K:()=>p});var n=l(45776),a=l(27047),s=l(33097),r=l.n(s),o=l(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c=()=>l.e(719).then(l.t.bind(l,10719,19)).then(e=>e.__esModule?e.default:e),d={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:c},u=e=>{let{apis:t,...l}=e;const{apis:s,locale:r}=(0,a.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(n.Ay,{...l,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:l}=(0,n.ON)(new Map(t.map(e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}])));return l}},c.functionData)})};u.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},u.defaultData=c;const p=e=>{let{apis:t,...l}=e;const{apis:s,locale:r}=(0,a.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(n.yK,{...l,...c.functionData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};u.FunctionEnum=u.Enum=p;const m=u},43856:(e,t,l)=>{l.r(t),l.d(t,{AddressEnum:()=>m.qn,AddressInputField:()=>m.TM,AddressSelectField:()=>m.Ay,AdvancedSelectField:()=>h.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FetchScrollLoader:()=>o.FetchScrollLoader,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>p.Zi,InputFileLink:()=>p.FI,InputFileText:()=>p.AG,ScrollLoader:()=>o.default,SearchInput:()=>d.A,SelectInnerInput:()=>u.A,SimpleBar:()=>c.A,SuperSelectField:()=>_.Ay,SuperSelectTableListField:()=>_.e0,SuperSelectUserField:()=>_.$9,TableField:()=>h.Bm,TypeDateRangePickerField:()=>y.A,UserField:()=>h.Eo,accept:()=>b.A,changeMoneyToChinese:()=>n.A,createAddressApi:()=>m.LH,createDeferred:()=>C(),createListField:()=>h.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>a.c,getPopupContainer:()=>s,getScrollEl:()=>a.h,isNotEmpty:()=>A.A,numberToPx:()=>N.v,pxToNumber:()=>N.j,useFileUpload:()=>p.lN,useResize:()=>v.A,withAddressApi:()=>m.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var n=l(69484),a=l(76801);const s=e=>{const t=e=>{const l=(0,a.h)();if(!e||e===l||!e.parentElement)return l;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=l(97211),o=l(78784),i=l(73025),c=l(17342),d=l(73161),u=l(30509),p=l(17508),m=l(93761),h=l(12392),_=l(60586),g=l(45776),f=l(41654),x=l(53392),y=l(89319),v=l(77964),b=l(81348),j=l(1582),C=l.n(j),A=l(55490),N=l(91176)},45776:(e,t,l)=>{l.d(t,{yK:()=>I,ON:()=>h,Ay:()=>M});var n=l(30509),a=l(73884),s=l(96418),r=l.n(s),o=l(55199),i=l(64671),c=l(73161),d=l(33097),u=l.n(d),p=l(79686),m=l.n(p);const h=e=>{const t=Array.from(e.values()),l=t.filter(e=>null===e.parentId),n=(e,t)=>{const l=e.indexOf(t);l>-1&&e.splice(l,1)},a=t=>{const l=[],n=t=>{const a=e.get(t);a&&Array.isArray(a.children)&&a.children.length>0&&(l.push(...a.children),a.children.forEach(e=>{n(e.id)}))};return n(t),l},s=(t,l)=>{const n=t=>{const a=e.get(t);return a?l(a)?a:m()(a.parentId)?null:n(a.parentId):null};return n(t)},r=t=>{const n=e.get(t);if(!n)return[];const a=n.parentId;if(m()(a))return l;return e.get(a).children},o=(()=>{const e=l=>Array.isArray(l)&&l.length>0?l.map(l=>{const n=t.filter(e=>e.parentId===l.id);return Object.assign({},l,{children:e(n)})}):null;return e(l)})();return{mapping:e,getSelectedQueue:t=>{const l=e.get(t);if(!l)return[];const n=e=>{if(e.children&&e.children.length>0)return n(e.children.find(t=>t.children&&e.children.length>0)||u()(e.children,"0"));const t=a(e.parentId).find(e=>e.children&&e.children.length>0);return t?n(t):e},s=function(t){const l=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],n=e.get(t);return!n||m()(n.parentId)?l:s(n.parentId,l)},r=n(l);return s(u()(r,"id"))},getAllChildren:a,computedCheckboxStatus:function(t){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,e=>l.indexOf(e.id)>-1))return{checked:!0,indeterminate:!1};const n=(t=>{const n=t=>{const a=e.get(t);return a?(s=a,l.indexOf(s.id)>-1?a:Array.isArray(a.children)&&a.children.length>0?a.children.find(e=>!!n(e.id)):void 0):null;var s};return!!n(t)})(t);return n?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const l=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;l.push(t),a(t).forEach(e=>{n(l,e.id)});const i=r(t),c=i.every(e=>l.indexOf(e.id)>-1);o.parentId&&c&&(i.forEach(e=>{n(l,e.id)}),s(o.parentId))};return s(t),l},setNodeUnchecked:function(t){const l=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),a=t=>{const s=e.get(t);if(!s)return;if(l.indexOf(s.id)>-1)return void n(l,s.id);const o=r(t);s.parentId&&(o.forEach(e=>{t!==e.id&&l.push(e.id)}),a(s.parentId))};return a(t),l},treeData:o,treeMapping:new Map(o.map(e=>[e.id,e]))}};var _=l(74065),g=l.n(_),f=l(19853),x=l.n(f),y=l(17342),v=l(83136),b=l.n(v);const j={content:"style_content__Hxlt9__RltKb",columns:"style_columns__FmtPF__RltKb","content-item":"style_content-item__i6HCO__RltKb","last-level-area":"style_last-level-area__2y7jQ__RltKb","is-popup":"style_is-popup__+r3Mn__RltKb",menu:"style_menu__WZUVE__RltKb","scroll-plus-box":"style_scroll-plus-box__QcTst__RltKb","menu-label":"style_menu-label__iGt0Z__RltKb","menu-item":"style_menu-item__hXHfm__RltKb","checkbox-hidden":"style_checkbox-hidden__Xpx7J__RltKb",loading:"style_loading__ZwrVe__RltKb"};var C=l(87558),A=l(47458),N=l(25438),S=l(70579),R=l(27047);const w=new Map,K=(0,C.withFetch)(e=>{let{data:t,name:l,type:n,cache:s,children:r,getLabel:o,...i}=e;const c=(0,a.useMemo)(()=>new Map(t.map(e=>[e.code,{...e,id:e.code,label:o?o(e):e.chName,parentId:e.parentCode||null}])),[t,o]).get(l);return w.set(`${l}_${n}`,c),r(c,i)}),O=e=>{const{locale:t}=(0,R.A)(),l=`${t}_${e.name}_${e.type}`,n=w.get(l);return n&&!e.force?e.children(n):(0,S.jsx)(K,{...e})};O.defaultProps={children:e=>u()(e,"label","")};const I=O,L=n.A.useContext,P=(0,C.withFetch)(e=>{let{data:t,computedIsChecked:l,onSelect:n}=e;return(0,S.jsx)(y.A,{className:j["scroll-plus-box"],children:(0,S.jsx)(o.List,{className:N.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=l(e);return(0,S.jsx)(o.List.Item,{className:b()(N.A["list-item"],{[N.A["is-selected"]]:t}),onClick:()=>n(e,t),children:(0,S.jsx)("span",{className:N.A["item-label"],children:e.label})})}})})}),k=e=>{let{value:t,setValue:l,size:n,selectLevel:s}=e;const{fetchApi:d,props:p}=L(),[m,_]=(0,a.useState)(""),f=r()(p.dataFormat),{formatMessage:v}=(0,A.useIntl)({moduleName:"Common"}),C=d.data,R=(0,a.useMemo)(()=>new Map(f(C).list.map(e=>[e.value,e])),[C,f]),w=(0,a.useMemo)(()=>h(R),[R]),K=(0,a.useRef)({});K.current={createMergeTree:p.createMergeTree,loadMore:d.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:w};const[O,I]=(0,a.useState)(()=>{const e=t.find(e=>!!R.get(e));return w.getSelectedQueue(e||u()(d.data.find(e=>e.children&&e.children.length>0),"id")||u()(d.data,"[0].id"),R)});(0,a.useEffect)(()=>{const{openLoadData:e,loadMore:t,parentIdKey:l,createMergeTree:n,treeUtils:a}=K.current;if(!e)return;const s=R.get(g()(O));if(!s)return;const r=a.getSelectedQueue(s.id);x()(O,r)?s.hasOwnProperty("children")||t({data:{[l]:s.id}},n(s.id)):I(r)},[O,R]);const k=(e,a)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(a),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(a),1),e}return e?w.setNodeChecked(a,t):w.setNodeUnchecked(a,t)})();s.length>n?o.message.error(v({id:"maxSelectedCount"},{count:n})):l(p.single&&s.length>0?[g()(s)]:s)},F=e=>{const t=R.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},M=!p.openLoadData&&"function"===typeof p.onSearch,T=M&&m&&(0,S.jsx)(P,{data:{searchText:m},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:R})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{k(!t,e.id),!t&&I(w.getSelectedQueue(e.id,R)),_("")}});return(0,S.jsxs)("div",{className:b()(j.content,{[j["is-popup"]]:p.isPopup,[j["has-search"]]:M}),style:{"--menu-item-width":p.menuItemWidth},children:[M&&(0,S.jsx)(c.A,{isPopup:p.isPopup,className:b()(N.A["search-input"],{[N.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||v({id:"search"}),value:m,onSearch:e=>{_(e)}}),T||(0,S.jsx)("div",{children:(0,S.jsx)(y.A,{className:j.scroller,options:{autoHide:!1},children:(0,S.jsxs)("div",{className:j.columns,children:[O.map((e,l)=>{const n=R.get(e),r=w.getSiblingNode(e),c=!F(null===n||void 0===n?void 0:n.id)&&l>0;return(0,S.jsx)(y.A,{className:b()(j["content-item"],{[j["last-level-area"]]:c}),children:c?(0,S.jsx)(o.Space,{wrap:!0,children:r.map(e=>(0,a.createElement)(o.Checkbox,{...w.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=>k(t.target.checked,e.id)},e.label))}):(0,S.jsx)(o.Menu,{className:b()(j.menu),onSelect:e=>{const l=R.get(e.key);if(l)if(F(l.id))I(w.getSelectedQueue(l.id,R));else{const{checked:e}=w.computedCheckboxStatus(l.id,t);k(!e,l.id)}},selectedKeys:l===O.length-1?[]:O,items:r.map(e=>({key:e.id,label:(0,S.jsxs)(o.Space,{className:b()(j["menu-item"],{[j["checkbox-hidden"]]:p.onlyAllowLastLevel&&F(e.id)}),children:[!p.onlyAllowLastLevel&&(0,S.jsx)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>k(t.target.checked,e.id)}),(0,S.jsx)("div",{className:j["menu-label"],children:e.label}),F(e.id)&&(0,S.jsx)(i.default,{className:j["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},u()(r,"[0].id",l))}),d.isComplete?null:(0,S.jsx)("div",{className:j.loading,children:(0,S.jsx)(o.Spin,{size:"small"})})]})})})]})},F=e=>{let{maxLength:t,nodeFormat:l,dataFormat:a,...s}=e;return(0,S.jsx)(n.A,{...s,dataFormat:e=>a(e,l),children:e=>{let{value:l,setValue:n}=e;return(0,S.jsx)(k,{...s,size:t,value:l,setValue:n})}})};F.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:l}=t;return Array.from(l.values()).filter(t=>t.label.indexOf(e)>-1)},dataFormat:(e,t)=>{const l=(e,n)=>{const a=[];return a.push(...(e||[]).map(e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&a.push(...l(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:n})))),a};return{list:l(e,null)}},createMergeTree:e=>(t,l)=>{const n=t=>t.map(t=>t.id===e?Object.assign({},t,{children:l&&l.map(t=>Object.assign({},t,{parentId:e}))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:n(t.children)}):t);return n(t)}};const M=F},53392:(e,t,l)=>{l.d(t,{A:()=>p,W:()=>u});var n=l(45776),a=l(27047),s=l(33097),r=l.n(s),o=l(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>l.e(7183).then(l.t.bind(l,57183,19)).then(e=>e.__esModule?e.default:e)},d=e=>{let{apis:t,...l}=e;const{apis:s,locale:r}=(0,a.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(n.Ay,{...l,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:l}=(0,n.ON)(new Map(t.filter(e=>"000"!==e.code).map(e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}])));return l}},d.industryData)})};d.defaultProps={overlayWidth:"635px"};const u=e=>{let{apis:t,...l}=e;const{apis:s,locale:r}=(0,a.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(n.yK,{...l,...d.industryData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};d.IndustryEnum=d.Enum=u;const p=d},55490:(e,t,l)=>{l.d(t,{A:()=>n.isNotEmpty});var n=l(39129)},60586:(e,t,l)=>{l.d(t,{e0:()=>g,$9:()=>f,Ay:()=>_});var n=l(73884),a=l(82146),s=l.n(a),r=l(3382),o=l(40438),i=l(55199);const c="style_select-list-item-description__ndJSX__RltKb",d="style_select-list-item-label__gyGnt__RltKb";var u=l(83136),p=l.n(u),m=(l(96316),l(70579));const h=(0,n.forwardRef)((e,t)=>{const l=Object.assign({},{children:e=>{let{components:t}=e;return(0,m.jsxs)(i.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,!1!==l.isPopup&&t.selectedTag]})},renderModal:e=>{const{props:t,open:l,onOpenChange:n,value:s,onComplete:o}=e,{placeholder:i,children:c,showSelectedTag:d,onConfirm:u}=t;return(0,m.jsx)(r.default,{title:i,open:l,onClose:()=>{n(!1)},footer:d&&(0,m.jsx)(a.SelectedTagList,{}),onConfirm:()=>{if(o(),"function"===typeof u)return u(s)},children:c(e)})}},e);return(0,m.jsx)(s(),{...l,ref:t})}),_=h,g=(0,n.forwardRef)((e,t)=>{const l=Object.assign({},{renderModal:e=>{const{props:t,open:l,value:n,onOpenChange:a,onComplete:s}=e,{placeholder:o,children:i,onConfirm:c}=t;return(0,m.jsx)(r.default,{title:o,open:l,onClose:()=>{a(!1)},onConfirm:()=>{if(s(),"function"===typeof c)return c(n)},children:i(e)})}},e);return(0,m.jsx)(a.SelectTableList,{...l,ref:t})}),f=(0,n.forwardRef)((e,t)=>(0,m.jsx)(h,{...e,ref:t,renderItemContent:e=>{let{item:t,props:l}=e;const{labelKey:n,avatarKey:a,descriptionKey:s}=l,r=t[a||"avatar"];return(0,m.jsxs)(i.Flex,{gap:8,children:[(0,m.jsx)(o.default.Avatar,{...Object.assign({},"string"===typeof r?{id:r}:r),size:32,gender:"M"}),(0,m.jsxs)(i.Flex,{vertical:!0,gap:8,align:"center",children:[(0,m.jsx)("div",{className:p()(d,"select-list-item-label"),children:t[n]}),t[s||"description"]&&(0,m.jsx)("div",{className:p()(c,"select-list-item-description"),children:t[s||"description"]})]})]})}}))},69484:(e,t,l)=>{l.d(t,{A:()=>a,e:()=>n});const n=1e15,a=e=>{let t,l,a,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=n)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,l=""):(a=e.split("."),t=a[0],l=a[1].substr(0,4)),parseInt(t,10)>0){let e=0,l=t.length;for(let n=0;n<l;n++){let a=t.substr(n,1),i=l-n-1,d=i/4,u=i%4;"0"===a?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(a)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==l){let e=l.length;for(let t=0;t<e;t++){let e=l.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===l&&(c+="\u6574"),c=d+c,c}},73161:(e,t,l)=>{l.d(t,{A:()=>p});var n=l(55199),a=l(83136),s=l.n(a);const r="style_search-input__8aH1G__RltKb",o="style_is-popup__L0973__RltKb";var i=l(64671),c=l(73884),d=l(51941),u=l(70579);const p=e=>{let{value:t,debounce:l=500,onSearch:a,isPopup:p,placeholder:m,className:h,..._}=e;const[g,f]=(0,c.useState)(t),x=(0,c.useRef)(t),y=(0,d.useDebouncedCallback)(a,l);return(0,c.useEffect)(()=>{t!==x.current&&(f(t),x.current=t)},[t]),(0,u.jsx)(n.Input.Search,{..._,allowClear:!0,className:s()(h,r,{[o]:p}),value:g,placeholder:m,prefix:(0,u.jsx)(i.default,{type:"icon-sousuo"}),enterButton:(0,u.jsx)(i.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;x.current=t,f(t),y(t)},onSearch:e=>{y(e)}})}},74981:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(73884);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,n.createContext)(e),{Provider:l,Consumer:a}=t;return{context:t,Provider:l,Consumer:a,useContext:()=>(0,n.useContext)(t)}}},77964:(e,t,l)=>{l.d(t,{A:()=>d});var n=l(73884),a=l(79889),s=l.n(a),r=l(93950),o=l.n(r),i=l(96418),c=l.n(i);const d=(e,t)=>{const l=(0,n.useRef)(null);l.current=Object.assign({},{time:500,isDebounce:!1},t);const a=(0,n.useRef)(null),r=c()(e);return(0,n.useLayoutEffect)(()=>{const e=a.current,t=()=>window.requestAnimationFrame(()=>{e&&r(e)});t();const n=new ResizeObserver((l.current.isDebounce?o():s())(t,l.current.time));return e&&n.observe(e),()=>{n.disconnect()}},[r]),a}},78784:(e,t,l)=>{l.d(t,{default:()=>a.a});l(21219);var n=l(95183),a=l.n(n);l.o(n,"FetchScrollLoader")&&l.d(t,{FetchScrollLoader:function(){return n.FetchScrollLoader}})},81348:(e,t,l)=>{l.d(t,{A:()=>n.computedAccept});var n=l(68827)},89319:(e,t,l)=>{l.d(t,{A:()=>u});var n=l(55199),a=l(10986),s=l.n(a),r=l(57469),o=l.n(r),i=l(20492),c=l(47458),d=l(70579);const u=(0,c.createWithIntl)({importMessages:i.A,moduleName:"Common"})(e=>{let{...t}=e;const{formatMessage:l}=(0,c.useIntl)({moduleName:"Common"}),a=new Map([["date",l({id:"customTime"})],["month",l({id:"monthly"})],["week",l({id:"weekly"})]]),[r,i]=s()(t);return(0,d.jsxs)(n.Space.Compact,{children:[(0,d.jsx)(n.Select,{style:{width:"120px"},value:(null===r||void 0===r?void 0:r.type)||"date",onChange:e=>{i(t=>{var l;return{value:null!==t&&void 0!==t&&null!==(l=t.value)&&void 0!==l&&l.length?[o()(t.value[0]).startOf(e||"date"),o()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}})},options:Array.from(a).map(e=>{let[t,l]=e;return{label:l,value:t}})}),(0,d.jsx)(n.DatePicker.RangePicker,{...t,picker:(null===r||void 0===r?void 0:r.type)||"date",value:Array.isArray(null===r||void 0===r?void 0:r.value)&&2===r.value.length&&r.value.map(e=>e&&o()(e)),onChange:e=>{i(t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})))}})]})})},91176:(e,t,l)=>{l.d(t,{j:()=>a,v:()=>n});const n=e=>"number"===typeof e?`${e}px`:e,a=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},93761:(e,t,l)=>{l.d(t,{qn:()=>T,TM:()=>Z,LH:()=>L,Ay:()=>E,NY:()=>P,DF:()=>D});var n=l(30509),a=l(25438),s=l(55199),r=l(27047),o=l(83136),i=l.n(o),c=l(64671),d=l(73884),u=l(21485),p=l(56434),m=l.n(p),h=l(15797),_=l.n(h),g=l(33097),f=l.n(g);const x="style_address__DIuRX__RltKb",y="style_is-popup__tqVvp__RltKb",v="style_title__FAe12__RltKb",b="style_scroll-box__JWiDl__RltKb",j="style_scroll-plus-box__lidEW__RltKb",C="style_content__lAARZ__RltKb",A="style_col-left__WPfeS__RltKb",N="style_col-right__z0e9-__RltKb";var S=l(87558),R=l.n(S);const w=e=>({"en-US":()=>l.e(3691).then(l.bind(l,83691)),"zh-CN":()=>l.e(2253).then(l.bind(l,32253))}[e]());var K=l(47458),O=l(70579);const I=n.A.useContext,L=e=>{let{city:t,province:l,country:n}=e;const a=_()(()=>{const e=[];return["gangaotai","municipality"].forEach(l=>{e.push(...t.relations[l])}),["provinces","continents"].forEach(l=>{t.relations[l].forEach(l=>{e.push(l),e.push(...t.relations[l])})}),e.map(e=>t.list[e])});return{getCity:_()(e=>{const l=t.list[e];return l?{city:l,parent:l.parentCode?t.list[l.parentCode]:null}:{city:null,parent:null}}),getChinaHotCities:_()(()=>t.relations[2].map(e=>t.list[e])),getChinaCities:_()(()=>["2",...l.relations.municipality,...l.relations.provinces,"gangaotai"].map(e=>Object.assign({id:e},t.list[e]))),getCountries:_()(()=>["1",...n.relations.continents].map(e=>Object.assign({id:e},n.list[e]))),getList:_()((e,a)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},a);if("gangaotai"===e)return l.relations.gangaotai.map(e=>t.list[e]);const o=Object.assign({},t.list[e]);if(l.relations.municipality.indexOf(e)>-1)return o.name=""+(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map(e=>t.list[e]);return l.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),n.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i}),getNationalityList:_()(e=>{let l=m()(t);return"1"===e&&l.relations[1].unshift("410"),"350"===e&&l.relations[350].unshift("410"),l.relations[e].filter(e=>l.list[e]).map(e=>l.list[e])}),getCityByName:_()(e=>{const t=a();let l;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find(e=>(l=t.find(e),l)),l}),combineCities:_()((e,l)=>[...l.filter(l=>t.list[l].parentCode!==e&&t.list[e].parentCode!==l&&e!==l),e]),searchCities:_()(e=>{if(!e)return[];return a().filter(t=>["pinyin","name","enName","spelling"].some(l=>t[l].toUpperCase().indexOf(e.toUpperCase())>-1)).map(e=>{const l=e.parentCode?t.list[e.parentCode]:null;return{label:l?`${l.name}\xb7${e.name}`:e.name,value:e.code}})})}},P=(e,t)=>"en-US"===t?f()(e,"enName"):f()(e,"name"),k={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>l.e(7820).then(l.t.bind(l,37820,19)).then(e=>e.__esModule?e.default:e)},F=e=>{let{value:t,setValue:l}=e;const{fetchApi:n,props:o}=I(),[p,m]=(0,d.useState)(""),[h,_]=(0,d.useState)("2"),{formatMessage:g}=(0,K.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,r.A)(),{getCity:S,getChinaCities:R,getCountries:w,getList:k,searchCities:F}=(0,d.useMemo)(()=>L(n.data),[n.data]),M=e=>{if(o.single)return void l([e]);const n=t.slice(0),a=n.indexOf(e);a>-1?n.splice(a,1):n.push(e),l(n)},T=p&&(0,O.jsx)(u.A,{className:j,children:(0,O.jsx)(s.List,{className:a.A.list,size:"small",dataSource:F(p),rowKey:"value",renderItem:e=>(0,O.jsx)(s.List.Item,{className:a.A["list-item"],onClick:()=>{M(e.value),m("")},children:(0,O.jsx)("span",{className:a.A["item-label"],children:e.label})})})});return(0,O.jsxs)("div",{className:i()(x,{[y]:o.isPopup}),children:[(0,O.jsx)(s.Input.Search,{className:i()(a.A["search-input"],{[a.A["is-popup"]]:o.isPopup}),placeholder:o.searchPlaceholder||g({id:"searchCity"}),prefix:(0,O.jsx)(c.default,{type:"icon-sousuo"}),enterButton:(0,O.jsx)(c.default,{type:"icon-sousuo"}),value:p,allowClear:!0,onChange:e=>{const t=e.target.value;m(t)},onSearch:e=>{m(e)}}),(0,O.jsx)("div",{className:C,children:T||(0,O.jsxs)(s.Row,{wrap:!1,children:[(0,O.jsx)(s.Col,{className:A,children:(0,O.jsx)(s.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,O.jsx)(K.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,O.jsx)(u.A,{className:b,children:(0,O.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:R().map(e=>({label:P(e,f),key:e.id}))})})},{key:"1",label:(0,O.jsx)(K.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,O.jsx)(u.A,{className:b,children:(0,O.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map(e=>({label:P(e,f),key:e.id}))})})}]})}),(0,O.jsxs)(s.Col,{flex:1,className:N,children:[(0,O.jsx)(s.Divider,{className:v,orientation:"left",children:P(S(h).city,f)}),(0,O.jsx)(u.A,{className:b,children:(0,O.jsx)(s.Space,{wrap:!0,children:k(h,{showChinaQuan:o.showChinaQuan,showForeignQuan:o.showForeignQuan}).map(e=>(0,O.jsx)(s.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{M(e.code)},children:P(e,f)},e.code))})})]})]})})]})},M=e=>(0,O.jsx)(n.A,{...e,children:e=>{let{value:t,setValue:l}=e;return(0,O.jsx)(K.IntlProvider,{moduleName:"AddressSelect",importMessages:w,children:(0,O.jsx)(F,{value:t,setValue:l})})}});M.defaultProps={overlayWidth:"500px",isPopup:!0,api:k,dataFormat:(e,t)=>{let{city:l}=e;const{locale:n}=Object.assign({},t);return{list:Object.values(l.list).map(e=>Object.assign({},e,{value:e.code,label:P(e,n)}))}}};const T=(0,S.withFetch)(e=>{let{name:t,data:l,getAddressApi:n,children:a,...s}=e;const{locale:o}=(0,r.A)(),i=(0,d.useMemo)(()=>L(l),[l]);return n?a(i):(0,O.jsx)(R(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:l}=t;return new Promise(e=>{setTimeout(()=>{e(i.getCity(l))},0)})},render:e=>{let{data:t}=e;return a(t,Object.assign({},s,{locale:o}))}})});T.defaultProps={...k,displayParent:!1,children:(e,t)=>{let{city:l,parent:n}=e,{displayParent:a,locale:s}=t;return a&&n?`${P(n,s)}\xb7${P(l,s)}`:P(l,s)}};const D=e=>{const t=(0,S.withFetch)(t=>{let{data:l,...n}=t;const a=(0,d.useMemo)(()=>L(l),[l]);return(0,O.jsx)(e,{...n,addressApi:a})});return t.defaultProps={...k},t};M.AddressEnum=M.Enum=T,M.createAddressApi=L,M.withAddressApi=D,M.getLabelForLocal=P;const E=M;var z=l(10986),V=l.n(z),W=l(78491),U=l.n(W),B=l(20492),q=l(22616),$=l.n(q),Q=l(1488),H=l.n(Q);const X=e=>{const{isPopup:t,size:l,disabled:n,inputPlaceholder:a,onBlur:r,className:o,...i}=e,[c,d]=V()(e),u=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:p}=(0,K.useIntl)({moduleName:"Common"}),m=U()(e=>{r&&r(e)});return(0,O.jsx)("div",{ref:m,children:(0,O.jsxs)(s.Row,{gutter:10,children:[(0,O.jsx)(s.Col,{span:12,children:(0,O.jsx)(E,{...$()(i,u),className:o,disabled:n,single:!0,size:l,value:f()(c,"city"),onChange:e=>{d({city:e,detail:f()(c,"detail")})}})}),(0,O.jsx)(s.Col,{span:12,children:(0,O.jsx)(s.Input,{...H()(i,u),className:o,placeholder:a||p({id:"pleaseInput"}),disabled:n,size:l,value:f()(c,"detail"),onChange:e=>{d({city:f()(c,"city"),detail:e.target.value})}})})]})})};X.defaultProps={};const Z=(0,K.createWithIntl)({importMessages:B.A,moduleName:"Common"})(X)},97211:(e,t,l)=>{l.d(t,{A:()=>n.withOSSFile});var n=l(68827)}}]);
2
+ //# sourceMappingURL=3856.29d5e528.chunk.js.map