@kne-components/components-core 0.2.34 → 0.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +130 -130
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.a80a80ff.chunk.css +2 -0
- package/build/static/css/{1151.6f9f72e6.chunk.css.map → 1151.a80a80ff.chunk.css.map} +1 -1
- package/build/static/css/1153.43c11830.chunk.css +2 -0
- package/build/static/css/{1153.cd294a3c.chunk.css.map → 1153.43c11830.chunk.css.map} +1 -1
- package/build/static/css/1154.2813078b.chunk.css +2 -0
- package/build/static/css/{1154.9252ffa2.chunk.css.map → 1154.2813078b.chunk.css.map} +1 -1
- package/build/static/css/1454.72c1c83a.chunk.css +2 -0
- package/build/static/css/{1454.db175b3a.chunk.css.map → 1454.72c1c83a.chunk.css.map} +1 -1
- package/build/static/css/1554.dc6900d7.chunk.css +2 -0
- package/build/static/css/{1554.d20eaef0.chunk.css.map → 1554.dc6900d7.chunk.css.map} +1 -1
- package/build/static/css/{2503.e720c732.chunk.css → 2503.7f8bcae5.chunk.css} +2 -2
- package/build/static/css/{2503.e720c732.chunk.css.map → 2503.7f8bcae5.chunk.css.map} +1 -1
- package/build/static/css/{2517.459bca75.chunk.css → 2517.474ff59f.chunk.css} +2 -2
- package/build/static/css/{2517.459bca75.chunk.css.map → 2517.474ff59f.chunk.css.map} +1 -1
- package/build/static/css/2716.c6d39931.chunk.css +2 -0
- package/build/static/css/{2716.d3ea67ac.chunk.css.map → 2716.c6d39931.chunk.css.map} +1 -1
- package/build/static/css/{2730.679d82b8.chunk.css → 2730.ee227bea.chunk.css} +2 -2
- package/build/static/css/{2730.679d82b8.chunk.css.map → 2730.ee227bea.chunk.css.map} +1 -1
- package/build/static/css/{289.0657d6ec.chunk.css → 289.6b06b33f.chunk.css} +2 -2
- package/build/static/css/{289.0657d6ec.chunk.css.map → 289.6b06b33f.chunk.css.map} +1 -1
- package/build/static/css/{3142.399b3214.chunk.css → 3142.b0539c73.chunk.css} +2 -2
- package/build/static/css/{3142.399b3214.chunk.css.map → 3142.b0539c73.chunk.css.map} +1 -1
- package/build/static/css/{3843.bacf43c4.chunk.css → 3843.09e9528d.chunk.css} +2 -2
- package/build/static/css/{3843.bacf43c4.chunk.css.map → 3843.09e9528d.chunk.css.map} +1 -1
- package/build/static/css/4029.47217019.chunk.css +2 -0
- package/build/static/css/{4029.746f247e.chunk.css.map → 4029.47217019.chunk.css.map} +1 -1
- package/build/static/css/4265.e965e5b4.chunk.css +2 -0
- package/build/static/css/{4265.75886aeb.chunk.css.map → 4265.e965e5b4.chunk.css.map} +1 -1
- package/build/static/css/4666.5b71cb34.chunk.css +2 -0
- package/build/static/css/{4666.935eeb65.chunk.css.map → 4666.5b71cb34.chunk.css.map} +1 -1
- package/build/static/css/5443.18932897.chunk.css +2 -0
- package/build/static/css/{5443.8bd08602.chunk.css.map → 5443.18932897.chunk.css.map} +1 -1
- package/build/static/css/5600.d3c5a68a.chunk.css +2 -0
- package/build/static/css/{5600.4309d9e4.chunk.css.map → 5600.d3c5a68a.chunk.css.map} +1 -1
- package/build/static/css/{5873.ffb9fafb.chunk.css → 5873.892e8327.chunk.css} +2 -2
- package/build/static/css/{5873.ffb9fafb.chunk.css.map → 5873.892e8327.chunk.css.map} +1 -1
- package/build/static/css/{5996.af2eafa7.chunk.css → 5996.bf590434.chunk.css} +2 -2
- package/build/static/css/{5996.af2eafa7.chunk.css.map → 5996.bf590434.chunk.css.map} +1 -1
- package/build/static/css/{6611.ee28b24d.chunk.css → 6611.bebe7241.chunk.css} +2 -2
- package/build/static/css/{6611.ee28b24d.chunk.css.map → 6611.bebe7241.chunk.css.map} +1 -1
- package/build/static/css/6779.132d5098.chunk.css +2 -0
- package/build/static/css/{6779.86223526.chunk.css.map → 6779.132d5098.chunk.css.map} +1 -1
- package/build/static/css/7121.40c7a572.chunk.css +2 -0
- package/build/static/css/{7121.5ddf212a.chunk.css.map → 7121.40c7a572.chunk.css.map} +1 -1
- package/build/static/css/7227.bbafae19.chunk.css +2 -0
- package/build/static/css/{7227.81cc83d9.chunk.css.map → 7227.bbafae19.chunk.css.map} +1 -1
- package/build/static/css/8017.937e8dc0.chunk.css +2 -0
- package/build/static/css/{8017.d6efcf80.chunk.css.map → 8017.937e8dc0.chunk.css.map} +1 -1
- package/build/static/css/8332.2c7068b7.chunk.css +2 -0
- package/build/static/css/{8332.29cb48c7.chunk.css.map → 8332.2c7068b7.chunk.css.map} +1 -1
- package/build/static/css/{8725.30c077a0.chunk.css → 8725.3be892b4.chunk.css} +2 -2
- package/build/static/css/{8725.30c077a0.chunk.css.map → 8725.3be892b4.chunk.css.map} +1 -1
- package/build/static/css/9968.a2b648e8.chunk.css +2 -0
- package/build/static/css/9968.a2b648e8.chunk.css.map +1 -0
- package/build/static/js/{1106.e83ae7ba.chunk.js → 1106.ad05f6e7.chunk.js} +2 -2
- package/build/static/js/{1106.e83ae7ba.chunk.js.map → 1106.ad05f6e7.chunk.js.map} +1 -1
- package/build/static/js/{1153.c7566f18.chunk.js → 1153.05ee5aa0.chunk.js} +3 -3
- package/build/static/js/{1153.c7566f18.chunk.js.map → 1153.05ee5aa0.chunk.js.map} +1 -1
- package/build/static/js/1154.4ce65ed1.chunk.js +2 -0
- package/build/static/js/1154.4ce65ed1.chunk.js.map +1 -0
- package/build/static/js/1454.c6f9daf8.chunk.js +3 -0
- package/build/static/js/{1454.2ff4a01f.chunk.js.map → 1454.c6f9daf8.chunk.js.map} +1 -1
- package/build/static/js/1554.bdd31dbb.chunk.js +3 -0
- package/build/static/js/{1554.04fe0c92.chunk.js.map → 1554.bdd31dbb.chunk.js.map} +1 -1
- package/build/static/js/1797.034fc0a9.chunk.js +3 -0
- package/build/static/js/{1797.ff576e2f.chunk.js.LICENSE.txt → 1797.034fc0a9.chunk.js.LICENSE.txt} +1 -1
- package/build/static/js/1797.034fc0a9.chunk.js.map +1 -0
- package/build/static/js/2503.e5b327f0.chunk.js +2 -0
- package/build/static/js/{2503.db941652.chunk.js.map → 2503.e5b327f0.chunk.js.map} +1 -1
- package/build/static/js/2517.3d0f541e.chunk.js +2 -0
- package/build/static/js/2517.3d0f541e.chunk.js.map +1 -0
- package/build/static/js/2716.47e84492.chunk.js +3 -0
- package/build/static/js/{2716.26e94540.chunk.js.map → 2716.47e84492.chunk.js.map} +1 -1
- package/build/static/js/2730.de30562c.chunk.js +2 -0
- package/build/static/js/{2730.c04f8a9e.chunk.js.map → 2730.de30562c.chunk.js.map} +1 -1
- package/build/static/js/2814.61ec2bae.chunk.js +2 -0
- package/build/static/js/{2814.352ef471.chunk.js.map → 2814.61ec2bae.chunk.js.map} +1 -1
- package/build/static/js/{289.c9a1969e.chunk.js → 289.94b23fdf.chunk.js} +2 -2
- package/build/static/js/{289.c9a1969e.chunk.js.map → 289.94b23fdf.chunk.js.map} +1 -1
- package/build/static/js/{3142.227a8dc3.chunk.js → 3142.c72c7566.chunk.js} +2 -2
- package/build/static/js/{3142.227a8dc3.chunk.js.map → 3142.c72c7566.chunk.js.map} +1 -1
- package/build/static/js/3245.70e0d6b8.chunk.js +3 -0
- package/build/static/js/{3245.1c4f7324.chunk.js.LICENSE.txt → 3245.70e0d6b8.chunk.js.LICENSE.txt} +3 -3
- package/build/static/js/3245.70e0d6b8.chunk.js.map +1 -0
- package/build/static/js/36.7d143ac6.chunk.js +2 -0
- package/build/static/js/36.7d143ac6.chunk.js.map +1 -0
- package/build/static/js/{3843.3f3f9709.chunk.js → 3843.ffa61229.chunk.js} +2 -2
- package/build/static/js/{3843.3f3f9709.chunk.js.map → 3843.ffa61229.chunk.js.map} +1 -1
- package/build/static/js/{4029.bc53d5eb.chunk.js → 4029.0a1d1bca.chunk.js} +2 -2
- package/build/static/js/4029.0a1d1bca.chunk.js.map +1 -0
- package/build/static/js/4265.bdfd330a.chunk.js +2 -0
- package/build/static/js/{4265.73385038.chunk.js.map → 4265.bdfd330a.chunk.js.map} +1 -1
- package/build/static/js/{4344.2ffe71fe.chunk.js → 4344.8cda4565.chunk.js} +2 -2
- package/build/static/js/4344.8cda4565.chunk.js.map +1 -0
- package/build/static/js/{4666.4ecd7ae4.chunk.js → 4666.667cd1c0.chunk.js} +3 -3
- package/build/static/js/{4666.4ecd7ae4.chunk.js.map → 4666.667cd1c0.chunk.js.map} +1 -1
- package/build/static/js/5443.7e2d8f4e.chunk.js +2 -0
- package/build/static/js/{5443.0ca3d6e2.chunk.js.map → 5443.7e2d8f4e.chunk.js.map} +1 -1
- package/build/static/js/5600.c50c4e5d.chunk.js +2 -0
- package/build/static/js/5600.c50c4e5d.chunk.js.map +1 -0
- package/build/static/js/5873.ea3f2834.chunk.js +2 -0
- package/build/static/js/{5873.34795e45.chunk.js.map → 5873.ea3f2834.chunk.js.map} +1 -1
- package/build/static/js/{5996.ebfae5f9.chunk.js → 5996.fd52aa95.chunk.js} +2 -2
- package/build/static/js/{5996.ebfae5f9.chunk.js.map → 5996.fd52aa95.chunk.js.map} +1 -1
- package/build/static/js/{6569.111ba9f6.chunk.js → 6569.34e6dd9b.chunk.js} +2 -2
- package/build/static/js/{6569.111ba9f6.chunk.js.map → 6569.34e6dd9b.chunk.js.map} +1 -1
- package/build/static/js/6611.9697a951.chunk.js +2 -0
- package/build/static/js/{6611.592690ec.chunk.js.map → 6611.9697a951.chunk.js.map} +1 -1
- package/build/static/js/6779.67194918.chunk.js +2 -0
- package/build/static/js/6779.67194918.chunk.js.map +1 -0
- package/build/static/js/6908.80b18ca8.chunk.js +3 -0
- package/build/static/js/6908.80b18ca8.chunk.js.map +1 -0
- package/build/static/js/6915.5b103933.chunk.js +2 -0
- package/build/static/js/{6915.ab57d3af.chunk.js.map → 6915.5b103933.chunk.js.map} +1 -1
- package/build/static/js/7121.4d1c90cb.chunk.js +2 -0
- package/build/static/js/{7121.b4c8bfe9.chunk.js.map → 7121.4d1c90cb.chunk.js.map} +1 -1
- package/build/static/js/7227.c68e1a10.chunk.js +3 -0
- package/build/static/js/{7227.b4d7b90e.chunk.js.map → 7227.c68e1a10.chunk.js.map} +1 -1
- package/build/static/js/{7790.0347818a.chunk.js → 7790.f10cbd46.chunk.js} +2 -2
- package/build/static/js/{7790.0347818a.chunk.js.map → 7790.f10cbd46.chunk.js.map} +1 -1
- package/build/static/js/8017.2330069d.chunk.js +2 -0
- package/build/static/js/{8017.ec95fe9c.chunk.js.map → 8017.2330069d.chunk.js.map} +1 -1
- package/build/static/js/{8332.a5880c43.chunk.js → 8332.499847f0.chunk.js} +2 -2
- package/build/static/js/{8332.a5880c43.chunk.js.map → 8332.499847f0.chunk.js.map} +1 -1
- package/build/static/js/8725.0b5b5995.chunk.js +2 -0
- package/build/static/js/{8725.b7ac3932.chunk.js.map → 8725.0b5b5995.chunk.js.map} +1 -1
- package/build/static/js/9968.889b9521.chunk.js +2 -0
- package/build/static/js/{9968.774c541b.chunk.js.map → 9968.889b9521.chunk.js.map} +1 -1
- package/build/static/js/{main.bd0bd7a6.js → main.e0c812a8.js} +2 -2
- package/build/static/js/{main.bd0bd7a6.js.map → main.e0c812a8.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1151.6f9f72e6.chunk.css +0 -2
- package/build/static/css/1153.cd294a3c.chunk.css +0 -2
- package/build/static/css/1154.9252ffa2.chunk.css +0 -2
- package/build/static/css/1454.db175b3a.chunk.css +0 -2
- package/build/static/css/1554.d20eaef0.chunk.css +0 -2
- package/build/static/css/2716.d3ea67ac.chunk.css +0 -2
- package/build/static/css/4029.746f247e.chunk.css +0 -2
- package/build/static/css/4265.75886aeb.chunk.css +0 -2
- package/build/static/css/4666.935eeb65.chunk.css +0 -2
- package/build/static/css/5443.8bd08602.chunk.css +0 -2
- package/build/static/css/5600.4309d9e4.chunk.css +0 -2
- package/build/static/css/6779.86223526.chunk.css +0 -2
- package/build/static/css/7121.5ddf212a.chunk.css +0 -2
- package/build/static/css/7227.81cc83d9.chunk.css +0 -2
- package/build/static/css/8017.d6efcf80.chunk.css +0 -2
- package/build/static/css/8332.29cb48c7.chunk.css +0 -2
- package/build/static/css/9968.151598dc.chunk.css +0 -2
- package/build/static/css/9968.151598dc.chunk.css.map +0 -1
- package/build/static/js/1154.df7a4b9f.chunk.js +0 -2
- package/build/static/js/1154.df7a4b9f.chunk.js.map +0 -1
- package/build/static/js/1454.2ff4a01f.chunk.js +0 -3
- package/build/static/js/1554.04fe0c92.chunk.js +0 -3
- package/build/static/js/1797.ff576e2f.chunk.js +0 -3
- package/build/static/js/1797.ff576e2f.chunk.js.map +0 -1
- package/build/static/js/2503.db941652.chunk.js +0 -2
- package/build/static/js/2517.b40e69cf.chunk.js +0 -2
- package/build/static/js/2517.b40e69cf.chunk.js.map +0 -1
- package/build/static/js/2716.26e94540.chunk.js +0 -3
- package/build/static/js/2730.c04f8a9e.chunk.js +0 -2
- package/build/static/js/2814.352ef471.chunk.js +0 -2
- package/build/static/js/3245.1c4f7324.chunk.js +0 -3
- package/build/static/js/3245.1c4f7324.chunk.js.map +0 -1
- package/build/static/js/36.d41d1393.chunk.js +0 -2
- package/build/static/js/36.d41d1393.chunk.js.map +0 -1
- package/build/static/js/4029.bc53d5eb.chunk.js.map +0 -1
- package/build/static/js/4265.73385038.chunk.js +0 -2
- package/build/static/js/4344.2ffe71fe.chunk.js.map +0 -1
- package/build/static/js/5443.0ca3d6e2.chunk.js +0 -2
- package/build/static/js/5600.58f930ed.chunk.js +0 -2
- package/build/static/js/5600.58f930ed.chunk.js.map +0 -1
- package/build/static/js/5873.34795e45.chunk.js +0 -2
- package/build/static/js/6611.592690ec.chunk.js +0 -2
- package/build/static/js/6779.802c09a5.chunk.js +0 -2
- package/build/static/js/6779.802c09a5.chunk.js.map +0 -1
- package/build/static/js/6908.d060065f.chunk.js +0 -3
- package/build/static/js/6908.d060065f.chunk.js.map +0 -1
- package/build/static/js/6915.ab57d3af.chunk.js +0 -2
- package/build/static/js/7121.b4c8bfe9.chunk.js +0 -2
- package/build/static/js/7227.b4d7b90e.chunk.js +0 -3
- package/build/static/js/8017.ec95fe9c.chunk.js +0 -2
- package/build/static/js/8725.b7ac3932.chunk.js +0 -2
- package/build/static/js/9968.774c541b.chunk.js +0 -2
- /package/build/static/js/{1153.c7566f18.chunk.js.LICENSE.txt → 1153.05ee5aa0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1454.2ff4a01f.chunk.js.LICENSE.txt → 1454.c6f9daf8.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.04fe0c92.chunk.js.LICENSE.txt → 1554.bdd31dbb.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.26e94540.chunk.js.LICENSE.txt → 2716.47e84492.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.4ecd7ae4.chunk.js.LICENSE.txt → 4666.667cd1c0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6908.d060065f.chunk.js.LICENSE.txt → 6908.80b18ca8.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.b4d7b90e.chunk.js.LICENSE.txt → 7227.c68e1a10.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/5600.58f930ed.chunk.js","mappings":"8MAGA,QAAeA,G,8HCHf,MAOA,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,wDCHJ,QAA0B,8BAA1B,EAAoE,gCAApE,EAA4G,4BAA5G,EAAkJ,8BAAlJ,EAA4L,gC,eCQrL,MAAMG,EAAeC,IAC1B,MAAMC,GAAmBC,EAAAA,EAAAA,gBAAe,CACtCC,WAAY,gBACZC,eACF,GAHyBF,EAIvBG,IAcO,IAdN,MACCC,EAAK,QACLC,EAAO,SACPC,GAAW,EAAI,QACfC,EAAO,SACPC,EAAQ,SACRC,EAAQ,WACRC,EAAU,WACVC,EAAU,QACVC,EAAO,OACPC,EAAM,UACNC,EAAS,aACTC,KACGC,GACJb,EACC,MAAM,cA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zD,EA7BqB3I,IACnB,MAAMG,EAAQ0G,IACd,OAAK7G,EAAMgH,KAUJ3G,EAAAA,EAAAA,KAACoI,EAAAA,EAAW,IAAKzI,EAAO0I,UAAWvI,KARtCE,EAAAA,EAAAA,KAAC6B,EAAAA,OAAM,IACDlC,EACJT,QAASA,KACPY,EAAMH,EAAM2I,WAAW,GAKoB,C","sources":["common/components/SimpleBar.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__Ra8f9\",\"is-danger\":\"style_is-danger__gxyAB__Ra8f9\",\"title\":\"style_title__EEPu2__Ra8f9\",\"content\":\"style_content__mZZg5__Ra8f9\",\"has-title\":\"style_has-title__5+PEt__Ra8f9\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__Ra8f9\",\"large\":\"style_large__iaqVE__Ra8f9\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__Ra8f9\",\"modal-title\":\"style_modal-title__dswaw__Ra8f9\",\"modal-outer\":\"style_modal-outer__r3SkX__Ra8f9\",\"modal-body\":\"style_modal-body__jQJSI__Ra8f9\",\"right-options-modal\":\"style_right-options-modal__FajDP__Ra8f9\",\"right-options-row\":\"style_right-options-row__-mPb9__Ra8f9\",\"right-options-col\":\"style_right-options-col__3ilee__Ra8f9\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__Ra8f9\",\"content\":\"style_content__k6MIF__Ra8f9\",\"modal-footer\":\"style_modal-footer__-prbN__Ra8f9\",\"modal-close\":\"style_modal-close__Oa5Kl__Ra8f9\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__Ra8f9\",\"is-danger\":\"style_is-danger__H5110__Ra8f9\",\"title\":\"style_title__orTym__Ra8f9\",\"has-title\":\"style_has-title__qy0Wp__Ra8f9\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={18} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={6} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst 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\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\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(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n modal(props.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"],"names":["SimpleBar","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","_ref","title","message","isDelete","onClick","onCancel","disabled","showCancel","cancelText","isModal","okText","placement","getContainer","props","formatMessage","useIntl","modal","useConfirmModal","_jsx","e","type","danger","confirmType","id","onOk","Popconfirm","_jsxs","Space","direction","stopPropagation","children","size","align","className","style","Icon","classnames","onConfirm","okButtonProps","overlayClassName","getPopupContainer","defaultProps","ConfirmLink","Typography","Link","ConfirmText","Text","Button","renderWithOptions","footer","options","localeModuleName","RightOptions","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","length","IntlProvider","FormattedMessage","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","useRef","icon","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","confirm","warning","error","success","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5873,9034,7790,4912],{58407:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ConfirmLink:()=>v,ConfirmText:()=>h,default:()=>_,withConfirm:()=>x});s(73884);var a=s(55199);const n=e=>({"en-US":()=>s.e(3275).then(s.bind(s,63275)),"zh-CN":()=>s.e(5181).then(s.bind(s,25181))}[e]());var i=s(64671),l=s(58609),r=s(3382),o=s(83136),c=s.n(o);const d="style_overlay__99t5t__Ra8f9",u="style_is-danger__gxyAB__Ra8f9",p="style_title__EEPu2__Ra8f9",m="style_content__mZZg5__Ra8f9",f="style_has-title__5+PEt__Ra8f9";var g=s(70579);const x=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:n})((t=>{let{title:s,message:n,isDelete:o=!0,onClick:x,onCancel:v,disabled:h,showCancel:_,cancelText:j,isModal:y,okText:N,placement:S,getContainer:C,...w}=t;const{formatMessage:P}=(0,l.useIntl)({moduleName:"ConfirmButton"}),F=(0,r.useConfirmModal)();return y?(0,g.jsx)(e,{...w,disabled:h,onClick:e=>{F({type:"confirm",title:s,getContainer:C,danger:o,confirmType:o?"warning":"info",message:n||P({id:"message"}),okText:N||P(o?{id:"delete"}:{id:"confirm"}),cancelText:j||P({id:"cancel"}),onCancel:v,onOk:x})}}):(0,g.jsx)(a.Popconfirm,{title:(0,g.jsxs)(a.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[s&&(0,g.jsxs)(a.Space,{size:0,align:"start",className:p,children:[o&&(0,g.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),s]}),(0,g.jsxs)(a.Space,{size:0,align:"start",className:c()(m,{[f]:s}),children:[!s&&o?(0,g.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,n||P({id:"message"})]})]}),placement:S,onConfirm:x,okButtonProps:{danger:o},onCancel:v,overlayClassName:c()(d,{[u]:o}),getPopupContainer:C,disabled:h,showCancel:_,cancelText:j,okText:N||P(o?{id:"delete"}:{id:"confirm"}),children:(0,g.jsx)(e,{...w,disabled:h})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},v=x(a.Typography.Link),h=x(a.Typography.Text),_=x(a.Button)},48731:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>x});var a=s(73884),n=s(87558),i=s(63908),l=s(15797),r=s.n(l),o=s(79686),c=s.n(o),d=s(70579);const u=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],p=(0,n.withFetch)((e=>{let{data:t,children:s}=e;return"function"===typeof s?s(t):s||(null===t||void 0===t?void 0:t.description)})),m=r()((e=>new Map(u.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),f=e=>{let{loader:t,...s}=e;const{global:{enumsRef:n}}=(0,i.useGlobalContext)(),l=(0,a.useRef)(null);return(0,d.jsx)(p,{...s,loader:async function(){const e=m(await t(...arguments)),{params:s}=arguments.length<=0?void 0:arguments[0],{moduleName:a,name:i,force:r,locale:o}=s,d=async t=>!0!==r&&l.current===o&&n.current.get(t)||await(async()=>{const s=e.get(t),a=await(async()=>"function"===typeof s?new Map((await s({locale:o})).map((e=>[e.value.toString(),e]))):Array.isArray(s)?new Map(s.map((e=>[e.value.toString(),e]))):"object"===typeof s?new Map(Object.keys(s).map((e=>[e.toString(),s[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return n.current.set(t,a),l.current=o,a})();if(Array.isArray(a))return await Promise.all(a.map((e=>d(e).then((e=>Array.from(e.values()))))));const u=await d(a);return c()(i)?Array.from(u.values()):u.get(i.toString())}})},g=e=>{let{moduleName:t,name:s,force:a,children:n,...l}=e;const r=(0,i.usePreset)();return(0,d.jsx)(f,{...l,params:{moduleName:t,locale:null===r||void 0===r?void 0:r.locale,enums:null===r||void 0===r?void 0:r.enums,name:s,force:a},loader:e=>{let{params:t}=e;return t.enums},children:n})};g.defaultProps={force:!1};const x=g},24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>$,DragAreaOuter:()=>Z,DragButton:()=>V,FileUpload:()=>le,Title:()=>A,UploadButton:()=>X,UploadTips:()=>q,default:()=>se});var a=s(73884),n=s(33097),i=s.n(n),l=s(55199);const r="style_file-list-outer__wPhbb__Ra8f9",o="style_file-list-title__zXM5r__Ra8f9",c="style_container__P4RaF__Ra8f9",d="style_file-preview-inner__cvE72__Ra8f9",u="style_file-preview__M-Asq__Ra8f9",p="style_drag-area__Q+lm7__Ra8f9",m="style_upload-drag-close__u5o8W__Ra8f9",f="style_upload-drag-tips__z7puZ__Ra8f9",g="style_upload-drag-icon__sGGoS__Ra8f9",x="style_upload-drag-title__9Afmb__Ra8f9",v="style_upload-drag-text__o38vS__Ra8f9",h="style_title-group__8IJkS__Ra8f9",_="style_upload-btn__Q+Jxn__Ra8f9",j="style_total-count__z1fyd__Ra8f9",y="style_file-select__mHqyI__Ra8f9",N="style_file-name__QkvMn__Ra8f9",S="style_file-select-info__fOLiM__Ra8f9",C="style_file-select-option__AbDrD__Ra8f9";var w=s(75087),P=s.n(w),F=s(74065),b=s.n(F),L=s(57469),M=s.n(L),T=s(64671),R=s(67390),z=s(58609),E=s(70579);const I=e=>{let{currentTab:t,setCurrentTab:s,previewMap:a,previewList:n,getPermission:i,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:p,getPopupContainer:m}=e;return(0,E.jsx)("div",{className:o,children:(0,E.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,E.jsx)(l.Col,{children:(0,E.jsxs)(l.Space,{className:h,size:4,children:[(0,E.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,E.jsxs)(l.Space,{size:4,children:[(0,E.jsx)(T.default,{type:"icon-shitu-liebiao"}),(0,E.jsx)(z.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,E.jsxs)(l.Space,{size:4,children:[(0,E.jsx)(T.default,{type:"icon-shitu-yulan"}),(0,E.jsx)(z.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&a.get(r)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(l.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:n.map((e=>{let{filename:t,userName:s,date:a,ossId:n}=e;return(0,E.jsx)(l.Select.Option,{className:C,value:n,children:(0,E.jsxs)(l.Space,{direction:"vertical",children:[(0,E.jsxs)(l.Space,{size:4,align:"start",children:[(0,E.jsx)(P(),{type:b()(t.split(".")),size:14}),(0,E.jsx)(l.Typography.Text,{className:N,ellipsis:!0,style:{"--max-width":`${p}px`},children:t})]}),s||a?(0,E.jsxs)(l.Space,{className:S,size:24,children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(z.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,E.jsxs)("div",{children:[(0,E.jsx)(z.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",a&&M()(a).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},n)}))}),(0,E.jsx)(R.OptionButtons,{hasPreview:!1,getPermission:i,item:a.get(r),apis:d}),(0,E.jsx)("div",{className:j,children:(0,E.jsx)(z.FormattedMessage,{id:"totalCount",values:{count:n.length},moduleName:"FileList"})})]})]})}),(0,E.jsx)(l.Col,{children:u})]})})};I.defaultProps={maxWidth:260};const A=I,D=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var k=s(70720),O=s.n(k),U=s(83136),B=s.n(U);const Y=(0,a.createContext)({}),{Provider:G}=Y,W=()=>(0,a.useContext)(Y);var H=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:a}=W();return(0,E.jsx)("div",{ref:a,className:_,onClick:()=>{s((e=>!e))},children:(0,E.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,E.jsx)(T.default,{type:"icon-tuozhuaishangchuan"}),t||(0,E.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:a}=W();return(0,E.jsxs)(H.AG,{className:_,accept:s,multiple:!0,onChange:a,children:[(0,E.jsx)(T.default,{type:"icon-tianjia"}),t]})},Z=e=>{let{title:t,accept:s,fileSize:n,maxLength:i,onFileSelected:o,children:d,className:u}=e;const[p,m]=(0,a.useState)(!1),f=(0,a.useRef)(null),g=O()((e=>{f.current&&(f.current.contains(e.target)||e.target===f.current||m(!1))}));return(0,E.jsx)(z.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,E.jsx)(G,{value:{open:p,onOpenChange:m,accept:s,fileSize:n,maxLength:i,onFileSelected:o,getDragButtonEl:e=>{f.current=e}},children:(0,E.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,E.jsx)("div",{className:B()(c,u),ref:g,onDragEnter:()=>{m(!0)},children:d})]})})})};Z.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const q=e=>{let{icon:t,title:s,renderTips:a}=e;const{accept:n,fileSize:i,maxLength:l}=W(),r=a((0,z.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:n.map((e=>e.replace(/^\./,""))).join("\u3001"),size:i}),{fileSize:i,maxLength:l,accept:n});return(0,E.jsxs)("div",{className:B()(f,"upload-drag-tips"),children:[(0,E.jsx)("div",{className:g,children:t||(0,E.jsx)(T.default,{type:"icon-shangchuan",size:64})}),(0,E.jsx)("div",{className:x,children:s||(0,E.jsx)(z.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,E.jsx)("div",{className:v,children:r})]})};q.defaultProps={renderTips:e=>e};const J=e=>{let{children:t,className:s}=e;const{open:a,accept:n,onOpenChange:i,onFileSelected:r}=W();return a?(0,E.jsxs)("div",{className:B()(p,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;i(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,n)));r(t)},onDragEnd:()=>{i(!1)},children:[(0,E.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,E.jsx)(T.default,{type:"icon-close-bold"}),onClick:()=>{i(!1)}}),t]}):null};J.defaultProps={children:(0,E.jsx)(q,{})};const $=J;var K=s(51714),ee=s(63908);const te=e=>{var t;let{maxLength:s,list:n,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:p,getPermission:m,titleExtra:f,fileSize:g,accept:x,getPopupContainer:v}=e;const{apis:h}=(0,ee.usePreset)(),_=Object.assign({},h,p),{fileList:j,onFileSelected:y}=(0,H.lN)({maxLength:s,multiple:!0,value:n,onChange:r,concurrentCount:1,onAdd:()=>{S("list")},onSave:_.onSave,ossUpload:_.ossUpload}),[N,S]=(0,a.useState)(o),{formatMessage:C}=(0,z.useIntl)({moduleName:"FileList"}),{message:w}=l.App.useApp(),P=(0,a.useMemo)((()=>new Map(n.map((e=>[e.ossId,e])))),[n]),[F,b]=(0,a.useState)(c||i()(n,"[0].ossId",null));(0,a.useEffect)((()=>{F&&P.get(F)||b(i()(n,"[0].ossId",null))}),[n,P,F]);const L={onPreview:e=>{b(e.ossId),S("preview")},onDelete:async e=>{_.onDelete&&await _.onDelete(e),r((t=>{const s=t.slice(0),a=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return a>-1&&s.splice(a,1),s})),w.success(C({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;_.onEdit&&await _.onEdit({formData:t,item:s}),r((e=>{const a=e.slice(0),n=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return n>-1&&a.splice(n,1,Object.assign({},s,{filename:t.name})),a})),w.success(C({id:"successEditFileName"},{name:s.filename}))}},M="function"===typeof f?f({currentPreviewFileId:F,currentTab:N}):f;return(0,E.jsxs)(Z,{title:(0,E.jsx)(A,{currentTab:N,setCurrentTab:S,previewMap:P,previewList:n,getPermission:m,currentPreviewFileId:F,setCurrentPreviewFileId:b,itemApis:L,getPopupContainer:v,children:(0,E.jsxs)(l.Space,{split:(0,E.jsx)(l.Divider,{type:"vertical"}),children:[M,m("add",{})?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(V,{children:(0,E.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,E.jsx)(X,{children:(0,E.jsx)(z.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:y,accept:x,children:["list"===N?(0,E.jsx)(R.List,{dataSource:[...j,...n],getPermission:m,apis:L}):null,"preview"===N?F?(0,E.jsx)("div",{className:d,children:(0,E.jsx)(K.default,{className:u,id:F,apis:_,originName:null===(t=P.get(F))||void 0===t?void 0:t.filename})}):(0,E.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,E.jsx)($,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,E.jsx)(z.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,E.jsx)(te,{...e})});var ae=s(10986),ne=s.n(ae);const ie=e=>{let{maxLength:t,apis:s,getPermission:a,fileSize:n,accept:i,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,u]=ne()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:p,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:u,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,E.jsxs)(Z,{title:(0,E.jsxs)(l.Row,{children:[(0,E.jsx)(l.Col,{flex:1}),(0,E.jsx)(l.Col,{children:(0,E.jsxs)(l.Space,{split:(0,E.jsx)(l.Divider,{type:"vertical"}),children:[(0,E.jsx)(V,{}),(0,E.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:n,maxLength:t,onFileSelected:m,accept:i,children:[(0,E.jsx)(R.List,{dataSource:[...p,...d],getPermission:a,apis:c}),(0,E.jsx)($,{})]})};ie.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const le=ie},94710:e=>{e.exports=function(e,t,s,a){for(var n=-1,i=null==e?0:e.length;++n<i;){var l=e[n];t(a,l,s(l),e)}return a}},32952:(e,t,s)=>{var a=s(45652);e.exports=function(e,t,s,n){return a(e,(function(e,a,i){t(n,e,s(e),i)})),n}},45652:(e,t,s)=>{var a=s(94664),n=s(76516)(a);e.exports=n},99910:e=>{e.exports=function(e,t){for(var s,a=-1,n=e.length;++a<n;){var i=t(e[a]);void 0!==i&&(s=void 0===s?i:s+i)}return s}},19449:(e,t,s)=>{var a=s(94710),n=s(32952),i=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?a:n,c=t?t():{};return o(s,e,i(r,2),c)}}},76516:(e,t,s)=>{var a=s(6571);e.exports=function(e,t){return function(s,n){if(null==s)return s;if(!a(s))return e(s,n);for(var i=s.length,l=t?i:-1,r=Object(s);(t?l--:++l<i)&&!1!==n(r[l],l,r););return s}}},26304:(e,t,s)=>{var a=s(53871),n=s(99140);e.exports=function(e,t,s){var i=null==e?0:e.length;return i?(t=s||void 0===t?1:n(t),a(e,0,(t=i-t)<0?0:t)):[]}},39835:(e,t,s)=>{var a=s(71775),n=s(19449),i=Object.prototype.hasOwnProperty,l=n((function(e,t,s){i.call(e,s)?e[s].push(t):a(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var a=s(26989);e.exports=function(e,t,s){var n=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===n?a(e,t,void 0,s):!!n}},60262:(e,t,s)=>{var a=s(99910),n=s(33279);e.exports=function(e){return e&&e.length?a(e,n):0}},99140:(e,t,s)=>{var a=s(37303);e.exports=function(e){var t=a(e),s=t%1;return t===t?s?t-s:t:0}},17448:()=>{},71975:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5873.34795e45.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6611,9034,3142],{28148:(e,s,t)=>{t.r(s),t.d(s,{default:()=>K});const n={menu:"style_menu__gvIvn__Ra8f9","all-no-start-icon":"style_all-no-start-icon__CA+zR__Ra8f9","no-start-icon":"style_no-start-icon__LnC1S__Ra8f9","has-children":"style_has-children__m9tce__Ra8f9","has-children-node":"style_has-children-node__2bhEB__Ra8f9","is-root":"style_is-root__4hhOc__Ra8f9",title:"style_title__+Hcar__Ra8f9",active:"style_active__WU49K__Ra8f9","no-collapse":"style_no-collapse__aIZBM__Ra8f9","title-content":"style_title-content__cQXpK__Ra8f9",loading:"style_loading__1pU4P__Ra8f9"};var a=t(83136),l=t.n(a),r=t(55199),o=t(94679),i=t(29053),c=t(10986),d=t.n(c),p=t(64671),h=t(73884),u=t(18081),_=t.n(u),y=t(87558),m=t(70579);const f=e=>{const s=(0,o.useNavigate)(),{id:t,className:a,label:c,iconType:d,path:h,request:u,onClick:_,isOpen:f,isSelected:g,onOpenChange:K,children:O,fetchOptions:v,depth:C,onLoad:j,allowCollapsed:k}=e,b=Array.isArray(O)&&O.length>0||v,{refresh:x,isLoading:R}=(0,y.useFetch)(Object.assign({},v,{auto:!k&&v,onRequestSuccess:e=>{j(e)}}));return(0,m.jsx)(i.default,{request:u,children:(0,m.jsxs)("div",{className:l()(a,n["menu-item"]),children:[(0,m.jsxs)("div",{className:l()(n.title,{[n.active]:g,[n["has-children"]]:b,[n["no-collapse"]]:b&&!k,[n["no-start-icon"]]:!d,[n["is-root"]]:0===C}),onClick:n=>{n.stopPropagation(),b||!h?b||v?k&&(v&&x({}),K(!f)):null===_||void 0===_||_(t,e):s(h)},children:[d&&(0,m.jsx)(p.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),b&&k&&(0,m.jsx)(p.default,{type:f?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),b?!k||f&&O?(0,m.jsx)("div",{className:n["children-list"],children:O}):!k||f&&R?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},g=e=>{let{className:s,allowCollapsed:t,pathMatch:a,...r}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[p,u]=d()(r,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[y,g]=d()(r,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:K,defaultOpenKeys:O,links:v,childrenKeys:C,hasStartIcon:j,hasChildren:k}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,a)=>{const{parentKey:l,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},a);return Array.isArray(e)&&e.length>0?e.map(((e,a)=>{const o=`${e.key||`${"root"!==l?`${l}-`:""}node-${a}`}`;s[l]||(s[l]=[]),s[l].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[l].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:l,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(y);let a=!1,l=!1;const r=[],o=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach((e=>{const s=n[e];s.iconType&&(a=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(l=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:a,hasChildren:l}}),[y]);(0,h.useEffect)((()=>{const e=v.find((e=>{let{path:s}=e;return"function"===typeof a?a(s,{pathname:i,search:c}):_()(i.replace(/[#,?].*/,""))===_()(s)||_()(i+c)===_()(s)}));e&&u(e.key)}),[v,i,c,u,a]);const[b,x]=d()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||O}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),R=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:a,selectedKey:l,openKeys:r,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...d}=e;return(0,h.createElement)(f,{...Object.assign({},d),id:i,parentId:n,depth:a,allowCollapsed:t,isSelected:i===l||C[i]&&C[i].indexOf(l)>-1,onClick:u,onLoad:e=>{g((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(r||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{x((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},R(s,{parentKey:n,depth:a+1,selectedKey:l,openKeys:r,paths:[...o,i]}))})):null}),[g,x,u,C,t]);return(0,m.jsx)("div",{className:l()(s,n.menu,{[n["all-no-start-icon"]]:!j,[n["has-children-node"]]:k}),children:R(K,{selectedKey:p,openKeys:b})})};g.defaultProps={defaultItems:[],allowCollapsed:!0};const K=g},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>h,default:()=>m,usePermissions:()=>u,usePermissionsPass:()=>_});var n=t(73884),a=t(55199),l=t(33097),r=t.n(l),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__Ra8f9";var d=t(63908),p=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,d.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,d.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:l,message:r,request:o,children:d,...h}=e;const u=_({request:o});return"function"===typeof d?d({isPass:u,type:s,request:o}):!0===u?d:"error"===s?(0,p.jsx)(a.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,p.jsx)(a.Tooltip,{title:r,children:(0,n.createElement)(l,{...h,className:i()(c,t)},d)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
|
|
2
|
-
//# sourceMappingURL=6611.592690ec.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6779,5600,9034,2517],{17342:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(8762),r=n.n(o);n(46733);const i=r()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),r=n(79889),i=n.n(r),l=n(93950),s=n.n(l),a=n(96418),c=n.n(a);const d=(e,t)=>{const n=(0,o.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const r=(0,o.useRef)(null),l=c()(e);return(0,o.useLayoutEffect)((()=>{const e=r.current,t=()=>window.requestAnimationFrame((()=>{e&&l(e)}));t();const o=new ResizeObserver((n.current.isDebounce?s():i())(t,n.current.time));return e&&o.observe(e),()=>{o.disconnect()}}),[l]),r}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var o=n(73884),r=n(96418),i=n.n(r),l=n(55199),s=n(83136),a=n.n(s),c=n(64671),d=n(81014),u=n(58407),m=n(77964),f=n(22616),p=n.n(f);const h="style_width-container__JfEbg__Ra8f9",_="style_hidden-container__EdySA__Ra8f9",g="style_hidden-inner__vAN59__Ra8f9",y="style_menu-list__VDttR__Ra8f9",x="style_btn-item__mp5MQ__Ra8f9";var v=n(15797),C=n.n(v),b=n(70579);const j=C()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;const l=i?0:["small","middle","large"].indexOf(r.size)>-1?8*(["small","middle","large"].indexOf(r.size)+1):Number.isInteger(r.size)?r.size:8;let s=0,a=0;for(;t>=a+o[s]+s*l&&s<o.length;)a+=o[s],s+=1;for(;t<a+(s-1)*l+(s<o.length?n+l:0)&&s>0;)a-=o[s-1],s-=1;return s}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;return`${t}${n}${o.join(",")}${Object.values(r).join(",")}${i&&i.toString()}`})),w=e=>{let{list:t,more:n,compact:r,...s}=e;const c=p()(s,["size","split","align","style"]),[f,v]=(0,o.useState)(t.length&&1),C=i()((()=>{const e=R.current,t=N.current,n=w.current;if(!e)return;const i=e.querySelectorAll(".button-group-item");if(!i)return;if(0===i.length)return;const l=n.clientWidth,s=t.clientWidth,a=[].map.call(i,(e=>e.offsetWidth)),d=j({amountWidth:l,moreBtnWidth:s,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{v(d)}))})),w=(0,m.A)(C),R=(0,m.A)(C),N=(0,m.A)(C),k=t.slice(f),P=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",x),isDropdown:n});const{className:r,confirm:i,buttonComponent:l,...s}=e,c=i||s.message,m=c?u.default:l||d.default;return(0,o.createElement)(m,{danger:c&&!1!==s.isDelete,...Object.assign({},s,c&&(s.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",x,r)})},T=r?l.Space.Compact:l.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:h,ref:w}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:g,ref:N,children:n}),(0,b.jsx)("div",{className:g,ref:R,children:(0,b.jsx)(T,{...c,children:t.map(P)})})]}),(0,b.jsxs)(T,{...c,children:[t.slice(0,f).map(((e,t)=>P(e,t,!1))),k.length>0&&(0,b.jsx)(l.Dropdown,{overlayClassName:y,menu:{items:k.map(((e,t)=>({key:t,label:P(e,t,!0)})))},children:n})]})]})};w.defaultProps={more:(0,b.jsxs)(l.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const R=w},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>g,ConfirmText:()=>y,default:()=>x,withConfirm:()=>_});n(73884);var o=n(55199);const r=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var i=n(64671),l=n(58609),s=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__Ra8f9",u="style_is-danger__gxyAB__Ra8f9",m="style_title__EEPu2__Ra8f9",f="style_content__mZZg5__Ra8f9",p="style_has-title__5+PEt__Ra8f9";var h=n(70579);const _=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:a=!0,onClick:_,onCancel:g,disabled:y,showCancel:x,cancelText:v,isModal:C,okText:b,placement:j,getContainer:w,...R}=t;const{formatMessage:N}=(0,l.useIntl)({moduleName:"ConfirmButton"}),k=(0,s.useConfirmModal)();return C?(0,h.jsx)(e,{...R,disabled:y,onClick:e=>{k({type:"confirm",title:n,getContainer:w,danger:a,confirmType:a?"warning":"info",message:r||N({id:"message"}),okText:b||N(a?{id:"delete"}:{id:"confirm"}),cancelText:v||N({id:"cancel"}),onCancel:g,onOk:_})}}):(0,h.jsx)(o.Popconfirm,{title:(0,h.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,h.jsxs)(o.Space,{size:0,align:"start",className:m,children:[a&&(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,h.jsxs)(o.Space,{size:0,align:"start",className:c()(f,{[p]:n}),children:[!n&&a?(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,r||N({id:"message"})]})]}),placement:j,onConfirm:_,okButtonProps:{danger:a},onCancel:g,overlayClassName:c()(d,{[u]:a}),getPopupContainer:w,disabled:y,showCancel:x,cancelText:v,okText:b||N(a?{id:"delete"}:{id:"confirm"}),children:(0,h.jsx)(e,{...R,disabled:y})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},g=_(o.Typography.Link),y=_(o.Typography.Text),x=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>A,TabsModal:()=>P,TabsModalButton:()=>S,default:()=>N,useConfirmModal:()=>R,useModal:()=>w,useTabsModal:()=>T});var o=n(73884),r=n(55199),i=n(83136),l=n.n(i);const s={modal:"style_modal__Pm3cF__Ra8f9",large:"style_large__iaqVE__Ra8f9","modal-body-inner":"style_modal-body-inner__4PhpA__Ra8f9","modal-title":"style_modal-title__dswaw__Ra8f9","modal-outer":"style_modal-outer__r3SkX__Ra8f9","modal-body":"style_modal-body__jQJSI__Ra8f9","right-options-modal":"style_right-options-modal__FajDP__Ra8f9","right-options-row":"style_right-options-row__-mPb9__Ra8f9","right-options-col":"style_right-options-col__3ilee__Ra8f9","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__Ra8f9",content:"style_content__k6MIF__Ra8f9","modal-footer":"style_modal-footer__-prbN__Ra8f9","modal-close":"style_modal-close__Oa5Kl__Ra8f9","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__Ra8f9","is-danger":"style_is-danger__H5110__Ra8f9",title:"style_title__orTym__Ra8f9","has-title":"style_has-title__qy0Wp__Ra8f9"},a=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var m=n(81014),f=n(17342),p=n(70579);const h="Modal",_=e=>{let{options:t,children:n}=e;return t?(0,p.jsxs)(r.Row,{wrap:!1,className:s["right-options-row"],children:[(0,p.jsx)(r.Col,{span:18,className:s["right-options-col"],children:n}),(0,p.jsx)(r.Col,{span:6,className:s["right-options-col"],children:t})]}):n},g=(e,t)=>e-48-(t?58:0)+"px",y=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":g(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,t)}}:{width:"1000px",style:{"--min-modal-height":g(500,t)}},x=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:l,onClose:s,targetProps:d}=e;return(0,p.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,p.jsx)(r.Col,{children:(0,p.jsx)(r.Space,{children:(n||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:h})}),onClick:l},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:h})}),onClick:i}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:i=!0,display:l,...a}=e;const c=n||m.default;return(0,o.createElement)(c,{...a,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=await Promise.resolve(r&&r(...t,d));return i&&!1!==o&&s&&s(),o}})}))})})]})},v=e=>{let{title:t,footer:n,disabledScroller:i,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:h,children:_,targetProps:g}=e;const y=(0,o.useRef)(null);return(0,p.jsxs)("div",{className:s["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,p.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:s["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,p.jsx)("div",{className:s["modal-title"],children:t}),(0,p.jsx)(f.A,{className:l()(s["modal-body"],{[s["is-disabled-scroller"]]:i},"modal-body"),ref:y,children:(0,p.jsx)("div",{className:l()(s["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,p.jsx)("div",{className:l()(s["modal-footer"],"modal-footer"),children:(0,p.jsx)(x,{footer:n,footerButtons:a,onConfirm:m,onCancel:h,onClose:c,targetProps:g})}):null]})},C=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:i,onConfirm:l,onCancel:s,footer:a,rightOptions:c,disabledScroller:d,childrenRef:m,children:f}=e;const h=e=>(e=Object.assign({},{title:o},e),(0,p.jsx)(v,{title:u(e.title,{...e,childrenRef:m,close:i}),closable:r,onClose:i,onConfirm:l,onCancel:s,footerButtons:u(n,{...e,close:i}),disabledScroller:d,footer:u(a,{...e,childrenRef:m,close:i}),targetProps:Object.assign({},e,{childrenRef:m,close:i}),children:(0,p.jsx)(_,{options:u(c,{...e,childrenRef:m,close:i}),children:u(f,{...e,childrenRef:m,close:i})})}));return"function"===typeof t?t(h):h({})},b=e=>{let{children:t,rightOptions:n,footer:o,footerButtons:r,className:i,size:d,title:u,onClose:m,onConfirm:f,onCancel:h,closable:_,disabledScroller:g,withDecorator:x,childrenRef:v,...b}=e;return{...b,icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:l()(i,s.modal,s[d],{[s["right-options-modal"]]:n}),...y(d,!(null===o&&!r)),children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:x,title:u,closable:_,onClose:m,onConfirm:f,onCancel:h,footer:o,footerButtons:r,rightOptions:n,disabledScroller:g,children:t,childrenRef:v})})}},j=e=>{const t=(0,o.useRef)(null);return(0,p.jsx)(r.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const w=()=>{const{modal:e}=r.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:r,...i}=b({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:l}=e.info({...i,content:r});return o.close=l,o}},R=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:i,title:a,danger:c,wrapClassName:u,message:m,iconSetting:f={},confirmType:h="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[o]){const{destroy:t}=e[o]({..._,icon:null,wrapClassName:l()(s["confirm-modal-wrap"],u,{[s["is-danger"]]:c}),title:(0,p.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,p.jsxs)(r.Space,{size:0,align:"start",className:s.title,children:[c?(0,p.jsx)(d.default,{className:l()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:i||g["confirm"===o?h:o]}):null,a]})}),content:(0,p.jsxs)(r.Space,{size:0,align:"start",className:l()(s.content,{[s["has-title"]]:a}),children:[!a&&c?(0,p.jsx)(d.default,{className:l()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:i||g["confirm"===o?h:o]}):null,m]})});n.close=t}return n}},N=j,k=e=>{let{items:t,className:n,activeKey:o,withDecorator:i,defaultActiveKey:s,onChange:a,...c}=e;return{...c,className:l()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,p.jsx)(r.Tabs,{items:t.map((t=>{let{withDecorator:o,...r}=t;return Object.assign({},r,{children:"function"===typeof o?o((t=>e(Object.assign({},n,t,{children:r.children})))):e(Object.assign({},n,{children:r.children}))})})),destroyInactiveTabPane:!0,activeKey:o,defaultActiveKey:s,onChange:a});return"function"===typeof i?i(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},P=e=>(0,p.jsx)(N,{...k(e)}),T=()=>{const e=w();return t=>e(k(t))};var M=n(73025);const S=e=>{const t=T();return e.api?(0,p.jsx)(M.A,{...e,modalFunc:t}):(0,p.jsx)(r.Button,{...e,onClick:()=>{t(e.modalProps)}})},A=e=>{const t=w();return e.api?(0,p.jsx)(M.A,{...e,modalFunc:t}):(0,p.jsx)(r.Button,{...e,onClick:()=>{t(e.modalProps)}})}},80755:(e,t,n)=>{var o=n(48895),r=n(77116);e.exports=function e(t,n,i,l,s){var a=-1,c=t.length;for(i||(i=r),s||(s=[]);++a<c;){var d=t[a];n>0&&i(d)?n>1?e(d,n-1,i,l,s):o(s,d):l||(s[s.length]=d)}return s}},94008:(e,t,n)=>{var o=n(27449),r=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return r(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),r=n(9261),i=n(35324);e.exports=function(e,t,n){for(var l=-1,s=t.length,a={};++l<s;){var c=t[l],d=o(e,c);n(d,c)&&r(a,i(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),r=n(35324),i=n(69194),l=n(46686),s=n(70914);e.exports=function(e,t,n,a){if(!l(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var f=s(t[c]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=u){var h=m[f];void 0===(p=a?a(h,f,m):void 0)&&(p=l(h)?h:i(t[c+1])?[]:{})}o(m,f,p),m=m[f]}return e}},15857:(e,t,n)=>{var o=n(20819),r=n(55636),i=n(46350);e.exports=function(e){return i(r(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),r=n(22777),i=n(54052),l=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(l&&e&&e[l])}},93950:(e,t,n)=>{var o=n(46686),r=n(4757),i=n(40801),l=Math.max,s=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,f,p=0,h=!1,_=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=a,o=c;return a=c=void 0,p=t,u=e.apply(o,n)}function x(e){var n=e-f;return void 0===f||n>=t||n<0||_&&e-p>=d}function v(){var e=r();if(x(e))return C(e);m=setTimeout(v,function(e){var n=t-(e-f);return _?s(n,d-(e-p)):n}(e))}function C(e){return m=void 0,g&&a?y(e):(a=c=void 0,u)}function b(){var e=r(),n=x(e);if(a=arguments,c=this,f=e,n){if(void 0===m)return function(e){return p=e,m=setTimeout(v,t),h?y(e):u}(f);if(_)return clearTimeout(m),m=setTimeout(v,t),y(f)}return void 0===m&&(m=setTimeout(v,t)),u}return t=i(t)||0,o(n)&&(h=!!n.leading,d=(_="maxWait"in n)?l(i(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),b.cancel=function(){void 0!==m&&clearTimeout(m),p=0,a=f=c=m=void 0},b.flush=function(){return void 0===m?u:C(r())},b}},20819:(e,t,n)=>{var o=n(80755);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},4757:(e,t,n)=>{var o=n(56552);e.exports=function(){return o.Date.now()}},22616:(e,t,n)=>{var o=n(94008),r=n(15857)((function(e,t){return null==e?{}:o(e,t)}));e.exports=r},79889:(e,t,n)=>{var o=n(93950),r=n(46686);e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),o(e,t,{leading:i,maxWait:t,trailing:l})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=6779.802c09a5.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/6779.802c09a5.chunk.js","mappings":"mNAGA,QAAeA,G,2HCEf,MA+BA,EA/BkBC,CAACC,EAAUC,KAC3B,MAAMC,GAAaC,EAAAA,EAAAA,QAAO,MAC1BD,EAAWE,QAAUC,OAAOC,OAC1B,CAAC,EACD,CAAEC,KAAM,IAAKC,YAAY,GACzBP,GAEF,MAAMQ,GAAMN,EAAAA,EAAAA,QAAO,MAC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SAAS5D,EAAQC,GACnC,OAAiB,MAAVD,EAAiB,CAAC,EAAI2D,EAAS3D,EAAQC,EAChD,IAEAZ,EAAOC,QAAUvL,C,kBCxBjB,IAAI7B,EAAWiN,EAAQ,OACnBqB,EAAWrB,EAAQ,OAmEvBE,EAAOC,QAlBP,SAAkB6B,EAAMU,EAAM7Q,GAC5B,IAAIoR,GAAU,EACVE,GAAW,EAEf,GAAmB,mBAARnB,EACT,MAAM,IAAIoB,UAnDQ,uBAyDpB,OAJI/B,EAASxP,KACXoR,EAAU,YAAapR,IAAYA,EAAQoR,QAAUA,EACrDE,EAAW,aAActR,IAAYA,EAAQsR,SAAWA,GAEnDpQ,EAASiP,EAAMU,EAAM,CAC1B,QAAWO,EACX,QAAWP,EACX,SAAYS,GAEhB,C","sources":["common/components/SimpleBar.js","common/hooks/useResize.js","webpack://@kne-components/components-core/./src/components/ButtonGroup/style.module.scss?7e95","components/ButtonGroup/index.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_basePick.js","../node_modules/lodash/_basePickBy.js","../node_modules/lodash/_baseSet.js","../node_modules/lodash/_flatRest.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/debounce.js","../node_modules/lodash/flatten.js","../node_modules/lodash/now.js","../node_modules/lodash/pick.js","../node_modules/lodash/throttle.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","import { useLayoutEffect, useRef } from \"react\";\nimport throttle from \"lodash/throttle\";\nimport debounce from \"lodash/debounce\";\nimport useRefCallback from \"@kne/use-ref-callback\";\n\nconst useResize = (callback, options) => {\n const optionsRef = useRef(null);\n optionsRef.current = Object.assign(\n {},\n { time: 500, isDebounce: false },\n options\n );\n const ref = useRef(null);\n const callbackHandler = useRefCallback(callback);\n useLayoutEffect(() => {\n const el = ref.current;\n const computed = () => {\n return window.requestAnimationFrame(() => {\n el && callbackHandler(el);\n });\n };\n computed();\n const resizeObserver = new ResizeObserver(\n (optionsRef.current.isDebounce ? debounce : throttle)(\n computed,\n optionsRef.current.time\n )\n );\n el && resizeObserver.observe(el);\n return () => {\n resizeObserver.disconnect();\n };\n }, [callbackHandler]);\n return ref;\n};\n\nexport default useResize;\n","// extracted by mini-css-extract-plugin\nexport default {\"width-container\":\"style_width-container__JfEbg__Ra8f9\",\"hidden-container\":\"style_hidden-container__EdySA__Ra8f9\",\"hidden-inner\":\"style_hidden-inner__vAN59__Ra8f9\",\"menu-list\":\"style_menu-list__VDttR__Ra8f9\",\"btn-item\":\"style_btn-item__mp5MQ__Ra8f9\"};","import { startTransition, useState } from \"react\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport { Button, Dropdown, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport Icon from \"@components/Icon\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport ConfirmButton from \"@components/ConfirmButton\";\nimport useResize from \"@common/hooks/useResize\";\nimport pick from \"lodash/pick\";\nimport style from \"./style.module.scss\";\nimport memoize from \"lodash/memoize\";\n\nconst areaWidthComputed = memoize(\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n const spaceWidth = (() => {\n if (compact) {\n return 0;\n }\n\n if ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) > -1) {\n return ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) + 1) * 8;\n }\n\n if (Number.isInteger(spaceProps.size)) {\n return spaceProps.size;\n }\n return 8;\n })();\n\n let targetLength = 0,\n targetWidth = 0;\n\n // 采取先加后减策略\n while (\n amountWidth >=\n targetWidth +\n buttonWidthList[targetLength] +\n targetLength * spaceWidth &&\n targetLength < buttonWidthList.length\n ) {\n targetWidth += buttonWidthList[targetLength];\n targetLength += 1;\n }\n\n while (\n amountWidth <\n targetWidth +\n (targetLength - 1) * spaceWidth +\n (targetLength < buttonWidthList.length\n ? moreBtnWidth + spaceWidth\n : 0) &&\n targetLength > 0\n ) {\n targetWidth -= buttonWidthList[targetLength - 1];\n targetLength -= 1;\n }\n\n return targetLength;\n },\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n return `${amountWidth}${moreBtnWidth}${buttonWidthList.join(\n \",\"\n )}${Object.values(spaceProps).join(\",\")}${compact && compact.toString()}`;\n }\n);\n\nconst ButtonGroup = ({ list, more, compact, ...props }) => {\n const spaceProps = pick(props, [\"size\", \"split\", \"align\", \"style\"]);\n const [showLength, setShowLength] = useState(list.length && 1);\n const computedLength = useRefCallback(() => {\n const el = targetRef.current,\n moreEl = moreRef.current,\n widthEl = ref.current;\n if (!el) {\n return;\n }\n\n const buttonEls = el.querySelectorAll(\".button-group-item\");\n if (!buttonEls) {\n return;\n }\n if (buttonEls.length === 0) {\n return;\n }\n\n const amountWidth = widthEl.clientWidth,\n moreBtnWidth = moreEl.clientWidth,\n buttonWidthList = [].map.call(buttonEls, (el) => el.offsetWidth);\n const targetLength = areaWidthComputed({\n amountWidth,\n moreBtnWidth,\n buttonWidthList,\n spaceProps,\n compact,\n });\n startTransition(() => {\n setShowLength(targetLength);\n });\n });\n const ref = useResize(computedLength);\n const targetRef = useResize(computedLength);\n const moreRef = useResize(computedLength);\n const otherList = list.slice(showLength);\n\n const renderButton = (renderItem, index, isDropdown) => {\n if (typeof renderItem === \"function\") {\n return renderItem({\n key: index,\n className: classnames(\"button-group-item\", style[\"btn-item\"]),\n isDropdown,\n });\n }\n const { className, confirm, buttonComponent, ...props } = renderItem;\n const isConfirm = confirm || props.message;\n const CurrentButton = isConfirm\n ? ConfirmButton\n : buttonComponent || LoadingButton;\n\n return (\n <CurrentButton\n danger={isConfirm && props.isDelete !== false}\n {...Object.assign(\n {},\n props,\n isConfirm && (props.isModal || isDropdown)\n ? {\n isModal: true,\n }\n : {}\n )}\n key={index}\n className={classnames(\n \"button-group-item\",\n style[\"btn-item\"],\n className\n )}\n />\n );\n };\n\n const SpaceComponent = compact ? Space.Compact : Space;\n\n return (\n <>\n <div className={style[\"width-container\"]} ref={ref} />\n <div className={style[\"hidden-container\"]}>\n <div className={style[\"hidden-inner\"]} ref={moreRef}>\n {more}\n </div>\n <div className={style[\"hidden-inner\"]} ref={targetRef}>\n <SpaceComponent {...spaceProps}>\n {list.map(renderButton)}\n </SpaceComponent>\n </div>\n </div>\n <SpaceComponent {...spaceProps}>\n {list\n .slice(0, showLength)\n .map((item, index) => renderButton(item, index, false))}\n {otherList.length > 0 && (\n <Dropdown\n overlayClassName={style[\"menu-list\"]}\n menu={{\n items: otherList.map((item, index) => {\n return {\n key: index,\n label: renderButton(item, index, true),\n };\n }),\n }}\n >\n {more}\n </Dropdown>\n )}\n </SpaceComponent>\n </>\n );\n};\n\nButtonGroup.defaultProps = {\n more: (\n <Button>\n 更多\n <Icon type=\"icon-arrow-thin-down\" />\n </Button>\n ),\n};\n\nexport default ButtonGroup;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__Ra8f9\",\"is-danger\":\"style_is-danger__gxyAB__Ra8f9\",\"title\":\"style_title__EEPu2__Ra8f9\",\"content\":\"style_content__mZZg5__Ra8f9\",\"has-title\":\"style_has-title__5+PEt__Ra8f9\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__Ra8f9\",\"large\":\"style_large__iaqVE__Ra8f9\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__Ra8f9\",\"modal-title\":\"style_modal-title__dswaw__Ra8f9\",\"modal-outer\":\"style_modal-outer__r3SkX__Ra8f9\",\"modal-body\":\"style_modal-body__jQJSI__Ra8f9\",\"right-options-modal\":\"style_right-options-modal__FajDP__Ra8f9\",\"right-options-row\":\"style_right-options-row__-mPb9__Ra8f9\",\"right-options-col\":\"style_right-options-col__3ilee__Ra8f9\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__Ra8f9\",\"content\":\"style_content__k6MIF__Ra8f9\",\"modal-footer\":\"style_modal-footer__-prbN__Ra8f9\",\"modal-close\":\"style_modal-close__Oa5Kl__Ra8f9\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__Ra8f9\",\"is-danger\":\"style_is-danger__H5110__Ra8f9\",\"title\":\"style_title__orTym__Ra8f9\",\"has-title\":\"style_has-title__qy0Wp__Ra8f9\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={18} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={6} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst 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\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\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(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n modal(props.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","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n","var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["SimpleBar","useResize","callback","options","optionsRef","useRef","current","Object","assign","time","isDebounce","ref","callbackHandler","useRefCallback","useLayoutEffect","el","computed","window","requestAnimationFrame","resizeObserver","ResizeObserver","debounce","throttle","observe","disconnect","areaWidthComputed","memoize","_ref","amountWidth","moreBtnWidth","buttonWidthList","spaceProps","compact","spaceWidth","indexOf","size","Number","isInteger","targetLength","targetWidth","length","_ref2","join","values","toString","ButtonGroup","_ref3","list","more","props","pick","showLength","setShowLength","useState","computedLength","targetRef","moreEl","moreRef","widthEl","buttonEls","querySelectorAll","clientWidth","map","call","offsetWidth","startTransition","otherList","slice","renderButton","renderItem","index","isDropdown","key","className","classnames","style","confirm","buttonComponent","isConfirm","message","CurrentButton","ConfirmButton","LoadingButton","_createElement","danger","isDelete","isModal","SpaceComponent","Space","Compact","_jsxs","_Fragment","children","_jsx","item","Dropdown","overlayClassName","menu","items","label","defaultProps","Button","Icon","type","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","title","onClick","onCancel","disabled","showCancel","cancelText","okText","placement","getContainer","formatMessage","useIntl","modal","useConfirmModal","e","confirmType","id","onOk","Popconfirm","direction","stopPropagation","align","onConfirm","okButtonProps","getPopupContainer","ConfirmLink","Typography","Link","ConfirmText","Text","renderWithOptions","footer","localeModuleName","RightOptions","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","innerWidth","Footer","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","IntlProvider","FormattedMessage","filter","display","ButtonComponent","autoClose","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","icon","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","warning","error","success","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","arrayPush","require","isFlattenable","module","exports","baseFlatten","array","depth","predicate","isStrict","result","value","basePickBy","hasIn","object","paths","path","baseGet","baseSet","castPath","assignValue","isIndex","isObject","toKey","customizer","lastIndex","nested","newValue","objValue","undefined","flatten","overRest","setToString","func","Symbol","isArguments","spreadableSymbol","isConcatSpreadable","now","toNumber","nativeMax","max","nativeMin","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","setTimeout","timeWaiting","remainingWait","debounced","isInvoking","this","leadingEdge","clearTimeout","cancel","flush","root","Date","basePick","flatRest"],"sourceRoot":""}
|