@kne-components/components-core 0.4.63 → 0.4.64
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 +84 -84
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/2753.abbddab6.chunk.css +2 -0
- package/build/static/css/{2753.b8d1e9f2.chunk.css.map → 2753.abbddab6.chunk.css.map} +1 -1
- package/build/static/css/{3639.fa4e75df.chunk.css → 3639.fd65b57a.chunk.css} +2 -2
- package/build/static/css/{3639.fa4e75df.chunk.css.map → 3639.fd65b57a.chunk.css.map} +1 -1
- package/build/static/css/{3771.91c2425c.chunk.css → 3771.c7c8c5a3.chunk.css} +2 -2
- package/build/static/css/{3771.91c2425c.chunk.css.map → 3771.c7c8c5a3.chunk.css.map} +1 -1
- package/build/static/css/{3790.60d2ceb6.chunk.css → 3790.28edc00f.chunk.css} +2 -2
- package/build/static/css/{3790.60d2ceb6.chunk.css.map → 3790.28edc00f.chunk.css.map} +1 -1
- package/build/static/css/3841.219b9e91.chunk.css +2 -0
- package/build/static/css/{3841.ae72d7a4.chunk.css.map → 3841.219b9e91.chunk.css.map} +1 -1
- package/build/static/css/3874.61a60faa.chunk.css +2 -0
- package/build/static/css/{3874.f47ca7c9.chunk.css.map → 3874.61a60faa.chunk.css.map} +1 -1
- package/build/static/css/{4302.49525f40.chunk.css → 4302.b266e98f.chunk.css} +2 -2
- package/build/static/css/{4302.49525f40.chunk.css.map → 4302.b266e98f.chunk.css.map} +1 -1
- package/build/static/css/4666.83a4e505.chunk.css +2 -0
- package/build/static/css/{4666.e0fdafd4.chunk.css.map → 4666.83a4e505.chunk.css.map} +1 -1
- package/build/static/css/5834.9ab80940.chunk.css +2 -0
- package/build/static/css/{5834.409213d0.chunk.css.map → 5834.9ab80940.chunk.css.map} +1 -1
- package/build/static/css/{6763.787317f6.chunk.css → 6763.f66314c4.chunk.css} +2 -2
- package/build/static/css/{6763.787317f6.chunk.css.map → 6763.f66314c4.chunk.css.map} +1 -1
- package/build/static/css/6890.95408596.chunk.css +2 -0
- package/build/static/css/{6890.d6ccf9f2.chunk.css.map → 6890.95408596.chunk.css.map} +1 -1
- package/build/static/css/7227.e2335b57.chunk.css +2 -0
- package/build/static/css/{7227.8bcf95e0.chunk.css.map → 7227.e2335b57.chunk.css.map} +1 -1
- package/build/static/css/{760.c978e562.chunk.css → 760.063d2f98.chunk.css} +2 -2
- package/build/static/css/{760.c978e562.chunk.css.map → 760.063d2f98.chunk.css.map} +1 -1
- package/build/static/css/7854.1d89881f.chunk.css +2 -0
- package/build/static/css/{7854.81302b72.chunk.css.map → 7854.1d89881f.chunk.css.map} +1 -1
- package/build/static/css/8221.e14f1ecb.chunk.css +2 -0
- package/build/static/css/{8221.494387ff.chunk.css.map → 8221.e14f1ecb.chunk.css.map} +1 -1
- package/build/static/css/{8593.89a28a03.chunk.css → 8593.83a79053.chunk.css} +2 -2
- package/build/static/css/{8593.89a28a03.chunk.css.map → 8593.83a79053.chunk.css.map} +1 -1
- package/build/static/css/9556.ebd5a150.chunk.css +2 -0
- package/build/static/css/{9556.499ce3d6.chunk.css.map → 9556.ebd5a150.chunk.css.map} +1 -1
- package/build/static/css/9666.4cfca091.chunk.css +2 -0
- package/build/static/css/{9666.14ab373a.chunk.css.map → 9666.4cfca091.chunk.css.map} +1 -1
- package/build/static/css/9755.9fbf467d.chunk.css +2 -0
- package/build/static/css/{9755.a8331173.chunk.css.map → 9755.9fbf467d.chunk.css.map} +1 -1
- package/build/static/js/{2833.793511fa.chunk.js → 2833.10809f75.chunk.js} +2 -2
- package/build/static/js/2833.10809f75.chunk.js.map +1 -0
- package/build/static/js/{3639.8f72752d.chunk.js → 3639.d6ad4730.chunk.js} +2 -2
- package/build/static/js/{3639.8f72752d.chunk.js.map → 3639.d6ad4730.chunk.js.map} +1 -1
- package/build/static/js/3771.ff1dabb1.chunk.js +2 -0
- package/build/static/js/{3771.90459c25.chunk.js.map → 3771.ff1dabb1.chunk.js.map} +1 -1
- package/build/static/js/{3790.fa0bb2ec.chunk.js → 3790.522f81cb.chunk.js} +2 -2
- package/build/static/js/{3790.fa0bb2ec.chunk.js.map → 3790.522f81cb.chunk.js.map} +1 -1
- package/build/static/js/{3841.27a47188.chunk.js → 3841.a157ee0a.chunk.js} +2 -2
- package/build/static/js/{3841.27a47188.chunk.js.map → 3841.a157ee0a.chunk.js.map} +1 -1
- package/build/static/js/3856.6c6de252.chunk.js +2 -0
- package/build/static/js/3856.6c6de252.chunk.js.map +1 -0
- package/build/static/js/{3874.86802294.chunk.js → 3874.d84933e3.chunk.js} +3 -3
- package/build/static/js/{3874.86802294.chunk.js.map → 3874.d84933e3.chunk.js.map} +1 -1
- package/build/static/js/4302.70432be0.chunk.js +2 -0
- package/build/static/js/{4302.e10ccec5.chunk.js.map → 4302.70432be0.chunk.js.map} +1 -1
- package/build/static/js/{4474.9318d571.chunk.js → 4474.65aba3bd.chunk.js} +2 -2
- package/build/static/js/{4474.9318d571.chunk.js.map → 4474.65aba3bd.chunk.js.map} +1 -1
- package/build/static/js/{4666.64e67752.chunk.js → 4666.ca6b5d86.chunk.js} +3 -3
- package/build/static/js/{4666.64e67752.chunk.js.map → 4666.ca6b5d86.chunk.js.map} +1 -1
- package/build/static/js/5834.603b25c5.chunk.js +2 -0
- package/build/static/js/{5834.0ffdcc4a.chunk.js.map → 5834.603b25c5.chunk.js.map} +1 -1
- package/build/static/js/6763.f608e6c0.chunk.js +2 -0
- package/build/static/js/{6763.04d4503b.chunk.js.map → 6763.f608e6c0.chunk.js.map} +1 -1
- package/build/static/js/{7227.50b81d09.chunk.js → 7227.038e66d8.chunk.js} +3 -3
- package/build/static/js/{7227.50b81d09.chunk.js.map → 7227.038e66d8.chunk.js.map} +1 -1
- package/build/static/js/{760.b4c97d01.chunk.js → 760.3fe4c6d8.chunk.js} +2 -2
- package/build/static/js/{760.b4c97d01.chunk.js.map → 760.3fe4c6d8.chunk.js.map} +1 -1
- package/build/static/js/7854.f0785042.chunk.js +2 -0
- package/build/static/js/{7854.1ecd2ba7.chunk.js.map → 7854.f0785042.chunk.js.map} +1 -1
- package/build/static/js/{7857.0a1e8f3b.chunk.js → 7857.2c025dc4.chunk.js} +2 -2
- package/build/static/js/{7857.0a1e8f3b.chunk.js.map → 7857.2c025dc4.chunk.js.map} +1 -1
- package/build/static/js/{8221.92f02c77.chunk.js → 8221.0e92b082.chunk.js} +2 -2
- package/build/static/js/{8221.92f02c77.chunk.js.map → 8221.0e92b082.chunk.js.map} +1 -1
- package/build/static/js/8593.cc6d9db5.chunk.js +2 -0
- package/build/static/js/{8593.8f1d700a.chunk.js.map → 8593.cc6d9db5.chunk.js.map} +1 -1
- package/build/static/js/{9556.098e8cb7.chunk.js → 9556.af8681ad.chunk.js} +3 -3
- package/build/static/js/{9556.098e8cb7.chunk.js.map → 9556.af8681ad.chunk.js.map} +1 -1
- package/build/static/js/9666.8c801873.chunk.js +2 -0
- package/build/static/js/{9666.c58faba9.chunk.js.map → 9666.8c801873.chunk.js.map} +1 -1
- package/build/static/js/{9755.6427cfc7.chunk.js → 9755.a2c3d4b9.chunk.js} +2 -2
- package/build/static/js/{9755.6427cfc7.chunk.js.map → 9755.a2c3d4b9.chunk.js.map} +1 -1
- package/build/static/js/{main.e88e88ec.js → main.91a4f0fd.js} +2 -2
- package/build/static/js/{main.e88e88ec.js.map → main.91a4f0fd.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/2753.b8d1e9f2.chunk.css +0 -2
- package/build/static/css/3841.ae72d7a4.chunk.css +0 -2
- package/build/static/css/3874.f47ca7c9.chunk.css +0 -2
- package/build/static/css/4666.e0fdafd4.chunk.css +0 -2
- package/build/static/css/5834.409213d0.chunk.css +0 -2
- package/build/static/css/6890.d6ccf9f2.chunk.css +0 -2
- package/build/static/css/7227.8bcf95e0.chunk.css +0 -2
- package/build/static/css/7854.81302b72.chunk.css +0 -2
- package/build/static/css/8221.494387ff.chunk.css +0 -2
- package/build/static/css/9556.499ce3d6.chunk.css +0 -2
- package/build/static/css/9666.14ab373a.chunk.css +0 -2
- package/build/static/css/9755.a8331173.chunk.css +0 -2
- package/build/static/js/2833.793511fa.chunk.js.map +0 -1
- package/build/static/js/3771.90459c25.chunk.js +0 -2
- package/build/static/js/3856.0622d06c.chunk.js +0 -2
- package/build/static/js/3856.0622d06c.chunk.js.map +0 -1
- package/build/static/js/4302.e10ccec5.chunk.js +0 -2
- package/build/static/js/5834.0ffdcc4a.chunk.js +0 -2
- package/build/static/js/6763.04d4503b.chunk.js +0 -2
- package/build/static/js/7854.1ecd2ba7.chunk.js +0 -2
- package/build/static/js/8593.8f1d700a.chunk.js +0 -2
- package/build/static/js/9666.c58faba9.chunk.js +0 -2
- /package/build/static/js/{3874.86802294.chunk.js.LICENSE.txt → 3874.d84933e3.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.64e67752.chunk.js.LICENSE.txt → 4666.ca6b5d86.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.50b81d09.chunk.js.LICENSE.txt → 7227.038e66d8.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.098e8cb7.chunk.js.LICENSE.txt → 9556.af8681ad.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[368,3639,7987],{6617(o,e,n){n.r(e),n.d(e,{default:()=>r.default});n(9056);var r=n(70703),c={};for(const s in r)"default"!==s&&(c[s]=()=>r[s]);n.d(e,c)},92711(o,e,n){n.d(e,{A:()=>t});var r=n(82284),c=Symbol.for("react.element"),s=Symbol.for("react.transitional.element"),m=Symbol.for("react.fragment");function t(o){return o&&"object"===(0,r.A)(o)&&(o.$$typeof===c||o.$$typeof===s)&&o.type===m}},8151(o,e,n){n.r(e),n.d(e,{default:()=>P,manifest:()=>T});var r=n(22978),c=n(62902),s=n(56026),m=n(73650),t=n(17540),a=n(46631),p=n(20031),i=n(9745),u=n(74199),l=n(91707),b=n(68223),w=n(89896),k=n(32159),h=n(93314),D=n(45426),A=n(85772),f=n(71384),F=n(21763),d=n(45516),g=n(28928),y=n(38799),I=n(28967),S=n(12027),v=n(52616),B=n(70467),G=n(91026);const P={ButtonGroup:r.A,Common:c.A,Drawer:s.A,Enum:m.A,Features:t.A,File:a.A,FileList:p.A,FilePreview:i.A,Filter:u.A,FlexBox:l.A,FormInfo:b.A,Global:w.A,HelperGuide:k.A,HistoryStore:h.A,Icon:D.A,Image:A.A,InfoPage:f.A,Layout:F.A,Menu:d.A,Modal:g.A,Navigation:y.A,Permissions:I.A,StateBar:S.A,StateTag:v.A,Table:B.A,Tooltip:G.A},T={name:"components-core",version:"0.4.
|
|
2
|
-
//# sourceMappingURL=3639.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[368,3639,7987],{6617(o,e,n){n.r(e),n.d(e,{default:()=>r.default});n(9056);var r=n(70703),c={};for(const s in r)"default"!==s&&(c[s]=()=>r[s]);n.d(e,c)},92711(o,e,n){n.d(e,{A:()=>t});var r=n(82284),c=Symbol.for("react.element"),s=Symbol.for("react.transitional.element"),m=Symbol.for("react.fragment");function t(o){return o&&"object"===(0,r.A)(o)&&(o.$$typeof===c||o.$$typeof===s)&&o.type===m}},8151(o,e,n){n.r(e),n.d(e,{default:()=>P,manifest:()=>T});var r=n(22978),c=n(62902),s=n(56026),m=n(73650),t=n(17540),a=n(46631),p=n(20031),i=n(9745),u=n(74199),l=n(91707),b=n(68223),w=n(89896),k=n(32159),h=n(93314),D=n(45426),A=n(85772),f=n(71384),F=n(21763),d=n(45516),g=n(28928),y=n(38799),I=n(28967),S=n(12027),v=n(52616),B=n(70467),G=n(91026);const P={ButtonGroup:r.A,Common:c.A,Drawer:s.A,Enum:m.A,Features:t.A,File:a.A,FileList:p.A,FilePreview:i.A,Filter:u.A,FlexBox:l.A,FormInfo:b.A,Global:w.A,HelperGuide:k.A,HistoryStore:h.A,Icon:D.A,Image:A.A,InfoPage:f.A,Layout:F.A,Menu:d.A,Modal:g.A,Navigation:y.A,Permissions:I.A,StateBar:S.A,StateTag:v.A,Table:B.A,Tooltip:G.A},T={name:"components-core",version:"0.4.64","open-version":!0,"public-url":"/components-core",modules:[{name:"ButtonGroup",baseDir:"/home/runner/work/components-core/components-core/src/components/ButtonGroup"},{name:"Common",baseDir:"/home/runner/work/components-core/components-core/src/components/Common"},{name:"Drawer",baseDir:"/home/runner/work/components-core/components-core/src/components/Drawer"},{name:"Enum",baseDir:"/home/runner/work/components-core/components-core/src/components/Enum"},{name:"Features",baseDir:"/home/runner/work/components-core/components-core/src/components/Features"},{name:"File",baseDir:"/home/runner/work/components-core/components-core/src/components/File"},{name:"FileList",baseDir:"/home/runner/work/components-core/components-core/src/components/FileList"},{name:"FilePreview",baseDir:"/home/runner/work/components-core/components-core/src/components/FilePreview"},{name:"Filter",baseDir:"/home/runner/work/components-core/components-core/src/components/Filter"},{name:"FlexBox",baseDir:"/home/runner/work/components-core/components-core/src/components/FlexBox"},{name:"FormInfo",baseDir:"/home/runner/work/components-core/components-core/src/components/FormInfo"},{name:"Global",baseDir:"/home/runner/work/components-core/components-core/src/components/Global"},{name:"HelperGuide",baseDir:"/home/runner/work/components-core/components-core/src/components/HelperGuide"},{name:"HistoryStore",baseDir:"/home/runner/work/components-core/components-core/src/components/HistoryStore"},{name:"Icon",baseDir:"/home/runner/work/components-core/components-core/src/components/Icon"},{name:"Image",baseDir:"/home/runner/work/components-core/components-core/src/components/Image"},{name:"InfoPage",baseDir:"/home/runner/work/components-core/components-core/src/components/InfoPage"},{name:"Layout",baseDir:"/home/runner/work/components-core/components-core/src/components/Layout"},{name:"Menu",baseDir:"/home/runner/work/components-core/components-core/src/components/Menu"},{name:"Modal",baseDir:"/home/runner/work/components-core/components-core/src/components/Modal"},{name:"Navigation",baseDir:"/home/runner/work/components-core/components-core/src/components/Navigation"},{name:"Permissions",baseDir:"/home/runner/work/components-core/components-core/src/components/Permissions"},{name:"StateBar",baseDir:"/home/runner/work/components-core/components-core/src/components/StateBar"},{name:"StateTag",baseDir:"/home/runner/work/components-core/components-core/src/components/StateTag"},{name:"Table",baseDir:"/home/runner/work/components-core/components-core/src/components/Table"},{name:"Tooltip",baseDir:"/home/runner/work/components-core/components-core/src/components/Tooltip"}]}}}]);
|
|
2
|
+
//# sourceMappingURL=3639.d6ad4730.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3639.
|
|
1
|
+
{"version":3,"file":"static/js/3639.d6ad4730.chunk.js","mappings":"iUACIA,EAAwBC,OAAOC,IAAI,iBACnCC,EAAwBF,OAAOC,IAAI,8BACnCE,EAAsBH,OAAOC,IAAI,kBAKtB,SAASG,EAAWC,GACjC,OAEEA,GAA8B,YAApBC,EAAAA,EAAAA,GAAQD,KAElBA,EAAOE,WAAaR,GAAyBM,EAAOE,WAAaL,IAEjEG,EAAOG,OAASL,CAEpB,C,4VCQoD,SAAgBM,YAAW,IAACC,OAAM,IAACC,OAAM,IAACC,KAAI,IAACC,SAAQ,IAACC,KAAI,IAACC,SAAQ,IAACC,YAAW,IAACC,OAAM,IAACC,QAAO,IAACC,SAAQ,IAACC,OAAM,IAACC,YAAW,IAACC,aAAY,IAACC,KAAI,IAACC,MAAK,IAACC,SAAQ,IAACC,OAAM,IAACC,KAAI,IAACC,MAAK,IAACC,WAAU,IAACC,YAAW,IAACC,SAAQ,IAACC,SAAQ,IAACC,MAAK,IAACC,QAAOA,EAAAA,GAC7QC,EAAW,CAAC,KAAO,kBAAkB,QAAU,SAAS,gBAAe,EAAK,aAAa,mBAAmB,QAAU,CAAC,CAAC,KAAO,cAAc,QAAU,gFAAgF,CAAC,KAAO,SAAS,QAAU,2EAA2E,CAAC,KAAO,SAAS,QAAU,2EAA2E,CAAC,KAAO,OAAO,QAAU,yEAAyE,CAAC,KAAO,WAAW,QAAU,6EAA6E,CAAC,KAAO,OAAO,QAAU,yEAAyE,CAAC,KAAO,WAAW,QAAU,6EAA6E,CAAC,KAAO,cAAc,QAAU,gFAAgF,CAAC,KAAO,SAAS,QAAU,2EAA2E,CAAC,KAAO,UAAU,QAAU,4EAA4E,CAAC,KAAO,WAAW,QAAU,6EAA6E,CAAC,KAAO,SAAS,QAAU,2EAA2E,CAAC,KAAO,cAAc,QAAU,gFAAgF,CAAC,KAAO,eAAe,QAAU,iFAAiF,CAAC,KAAO,OAAO,QAAU,yEAAyE,CAAC,KAAO,QAAQ,QAAU,0EAA0E,CAAC,KAAO,WAAW,QAAU,6EAA6E,CAAC,KAAO,SAAS,QAAU,2EAA2E,CAAC,KAAO,OAAO,QAAU,yEAAyE,CAAC,KAAO,QAAQ,QAAU,0EAA0E,CAAC,KAAO,aAAa,QAAU,+EAA+E,CAAC,KAAO,cAAc,QAAU,gFAAgF,CAAC,KAAO,WAAW,QAAU,6EAA6E,CAAC,KAAO,WAAW,QAAU,6EAA6E,CAAC,KAAO,QAAQ,QAAU,0EAA0E,CAAC,KAAO,UAAU,QAAU,6E","sources":["../node_modules/rc-util/es/React/isFragment.js","../node_modules/readme/modules.js"],"sourcesContent":["import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nvar REACT_ELEMENT_TYPE_18 = Symbol.for('react.element');\nvar REACT_ELEMENT_TYPE_19 = Symbol.for('react.transitional.element');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\n\n/**\n * Compatible with React 18 or 19 to check if node is a Fragment.\n */\nexport default function isFragment(object) {\n return (\n // Base object type\n object && _typeof(object) === 'object' && (\n // React Element type\n object.$$typeof === REACT_ELEMENT_TYPE_18 || object.$$typeof === REACT_ELEMENT_TYPE_19) &&\n // React Fragment type\n object.type === REACT_FRAGMENT_TYPE\n );\n}","import ButtonGroup from '@components/ButtonGroup/README.md';\nimport Common from '@components/Common/README.md';\nimport Drawer from '@components/Drawer/README.md';\nimport Enum from '@components/Enum/README.md';\nimport Features from '@components/Features/README.md';\nimport File from '@components/File/README.md';\nimport FileList from '@components/FileList/README.md';\nimport FilePreview from '@components/FilePreview/README.md';\nimport Filter from '@components/Filter/README.md';\nimport FlexBox from '@components/FlexBox/README.md';\nimport FormInfo from '@components/FormInfo/README.md';\nimport Global from '@components/Global/README.md';\nimport HelperGuide from '@components/HelperGuide/README.md';\nimport HistoryStore from '@components/HistoryStore/README.md';\nimport Icon from '@components/Icon/README.md';\nimport Image from '@components/Image/README.md';\nimport InfoPage from '@components/InfoPage/README.md';\nimport Layout from '@components/Layout/README.md';\nimport Menu from '@components/Menu/README.md';\nimport Modal from '@components/Modal/README.md';\nimport Navigation from '@components/Navigation/README.md';\nimport Permissions from '@components/Permissions/README.md';\nimport StateBar from '@components/StateBar/README.md';\nimport StateTag from '@components/StateTag/README.md';\nimport Table from '@components/Table/README.md';\nimport Tooltip from '@components/Tooltip/README.md';export default {ButtonGroup,Common,Drawer,Enum,Features,File,FileList,FilePreview,Filter,FlexBox,FormInfo,Global,HelperGuide,HistoryStore,Icon,Image,InfoPage,Layout,Menu,Modal,Navigation,Permissions,StateBar,StateTag,Table,Tooltip};\nexport const manifest = {\"name\":\"components-core\",\"version\":\"0.4.64\",\"open-version\":true,\"public-url\":\"/components-core\",\"modules\":[{\"name\":\"ButtonGroup\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/ButtonGroup\"},{\"name\":\"Common\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Common\"},{\"name\":\"Drawer\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Drawer\"},{\"name\":\"Enum\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Enum\"},{\"name\":\"Features\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Features\"},{\"name\":\"File\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/File\"},{\"name\":\"FileList\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/FileList\"},{\"name\":\"FilePreview\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/FilePreview\"},{\"name\":\"Filter\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Filter\"},{\"name\":\"FlexBox\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/FlexBox\"},{\"name\":\"FormInfo\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/FormInfo\"},{\"name\":\"Global\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Global\"},{\"name\":\"HelperGuide\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/HelperGuide\"},{\"name\":\"HistoryStore\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/HistoryStore\"},{\"name\":\"Icon\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Icon\"},{\"name\":\"Image\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Image\"},{\"name\":\"InfoPage\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/InfoPage\"},{\"name\":\"Layout\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Layout\"},{\"name\":\"Menu\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Menu\"},{\"name\":\"Modal\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Modal\"},{\"name\":\"Navigation\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Navigation\"},{\"name\":\"Permissions\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Permissions\"},{\"name\":\"StateBar\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/StateBar\"},{\"name\":\"StateTag\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/StateTag\"},{\"name\":\"Table\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Table\"},{\"name\":\"Tooltip\",\"baseDir\":\"/home/runner/work/components-core/components-core/src/components/Tooltip\"}]};"],"names":["REACT_ELEMENT_TYPE_18","Symbol","for","REACT_ELEMENT_TYPE_19","REACT_FRAGMENT_TYPE","isFragment","object","_typeof","$$typeof","type","ButtonGroup","Common","Drawer","Enum","Features","File","FileList","FilePreview","Filter","FlexBox","FormInfo","Global","HelperGuide","HistoryStore","Icon","Image","InfoPage","Layout","Menu","Modal","Navigation","Permissions","StateBar","StateTag","Table","Tooltip","manifest"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3771],{17342(e,o,t){t.d(o,{A:()=>l});var n=t(34581);t(46733);const l=n.default},3382(e,o,t){t.r(o),t.d(o,{ModalButton:()=>q,TabsModal:()=>z,TabsModalButton:()=>H,default:()=>P,useConfirmModal:()=>S,useModal:()=>T,useTabsModal:()=>F});var n=t(89379),l=t(53986),s=t(73884),a=t(55199),i=t(83136),r=t.n(i);const c={modal:"style_modal__Pm3cF__u6fDa",large:"style_large__iaqVE__u6fDa","modal-body-inner":"style_modal-body-inner__4PhpA__u6fDa","modal-title":"style_modal-title__dswaw__u6fDa","modal-outer":"style_modal-outer__r3SkX__u6fDa","modal-body":"style_modal-body__jQJSI__u6fDa","right-options-modal":"style_right-options-modal__FajDP__u6fDa","right-options-row":"style_right-options-row__-mPb9__u6fDa","right-options-col":"style_right-options-col__3ilee__u6fDa","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__u6fDa",content:"style_content__k6MIF__u6fDa","modal-footer":"style_modal-footer__-prbN__u6fDa","modal-close":"style_modal-close__Oa5Kl__u6fDa","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__u6fDa","is-danger":"style_is-danger__H5110__u6fDa",title:"style_title__orTym__u6fDa","has-title":"style_has-title__qy0Wp__u6fDa"},d=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var m=t(47458),h=t(64671);const f=(e,o)=>"function"===typeof e?e(o):e;var u=t(81014),p=t(17342),_=t(70579);const g=["ButtonComponent","onClick","autoClose","display"],y=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","confirmText","onCancel","cancelText","closable","disabledScroller","withDecorator","childrenRef"],C=["size"],x=["children"],A=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],b="Modal",j=e=>{let{options:o,rightSpan:t=6,children:n}=e;return o?(0,_.jsxs)(a.Row,{wrap:!1,className:c["right-options-row"],children:[(0,_.jsx)(a.Col,{span:24-t,className:c["right-options-col"],children:n}),(0,_.jsx)(a.Col,{span:t,className:c["right-options-col"],children:o})]}):n},w=(e,o)=>"".concat(e-48-(o?58:0),"px"),N=e=>{let{footer:o,footerButtons:t,onConfirm:i,onCancel:r,cancelText:c,onClose:h,targetProps:f}=e;return(0,_.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(a.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(a.Col,{children:(0,_.jsx)(a.Space,{children:(t||[{children:c||(0,_.jsx)(m.IntlProvider,{importMessages:d,moduleName:b,children:(0,_.jsx)(m.FormattedMessage,{id:"Cancel",moduleName:b})}),onClick:r},{type:"primary",children:(0,_.jsx)(m.IntlProvider,{importMessages:d,moduleName:b,children:(0,_.jsx)(m.FormattedMessage,{id:"Confirm",moduleName:b})}),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,o)=>{let{ButtonComponent:t,onClick:a,autoClose:i=!0,display:r}=e,c=(0,l.A)(e,g);const d=t||u.default;return(0,s.createElement)(d,(0,n.A)((0,n.A)({},c),{},{key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(a&&a(...o,f));return i&&!1!==n&&h&&h(),n}}))})})})]})},v=e=>{let{title:o,footer:t,disabledScroller:n,footerButtons:l,onClose:i,closable:d,onConfirm:m,onCancel:f,children:u,targetProps:g,cancelText:y,confirmText:C}=e;const x=(0,s.useRef)(null);return(0,_.jsxs)("div",{className:r()(c["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===d?null:(0,_.jsx)(a.Button,{"data-testid":"components-core-modal-close-btn",className:r()(c["modal-close"],"modal-close"),type:"text",icon:(0,_.jsx)(h.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),i&&i()}}),o&&(0,_.jsx)("div",{className:c["modal-title"],children:o}),(0,_.jsx)(p.A,{className:r()(c["modal-body"],{[c["is-disabled-scroller"]]:n},"modal-body"),ref:x,children:(0,_.jsx)("div",{className:r()(c["modal-body-inner"],"modal-body-inner"),children:u})}),null!==t||l?(0,_.jsx)("div",{className:r()(c["modal-footer"],"modal-footer"),children:(0,_.jsx)(N,{footer:t,footerButtons:l,onConfirm:m,confirmText:C,onCancel:f,cancelText:y,onClose:i,targetProps:g})}):null]})},D=e=>{let{withDecorator:o,footerButtons:t,title:l,closable:s,onClose:a,onConfirm:i,confirmText:r,onCancel:c,cancelText:d,footer:m,rightOptions:h,rightSpan:u,disabledScroller:p,childrenRef:g,children:y}=e;const C=e=>(e=Object.assign({},{title:l},e),(0,_.jsx)(v,{title:f(e.title,(0,n.A)((0,n.A)({},e),{},{childrenRef:g,close:a})),closable:s,onClose:a,onConfirm:i,confirmText:r,onCancel:c,cancelText:d,footerButtons:f(t,(0,n.A)((0,n.A)({},e),{},{close:a})),disabledScroller:p,footer:f(m,(0,n.A)((0,n.A)({},e),{},{childrenRef:g,close:a})),targetProps:Object.assign({},e,{childrenRef:g,close:a}),children:(0,_.jsx)(j,{rightSpan:u,options:f(h,(0,n.A)((0,n.A)({},e),{},{childrenRef:g,close:a})),children:f(y,(0,n.A)((0,n.A)({},e),{},{childrenRef:g,close:a}))})}));return"function"===typeof o?o(C,{childrenRef:g,close:a}):C({})},k=e=>{let{children:o,rightOptions:t,rightSpan:s,footer:a,footerButtons:i,className:h,size:f,title:u,onClose:p,onConfirm:g,confirmText:C,onCancel:x,cancelText:A,closable:b,disabledScroller:j,withDecorator:N,childrenRef:v}=e,k=(0,l.A)(e,y);return(0,n.A)((0,n.A)((0,n.A)({},k),{},{icon:null,centered:!0,title:null,maskClosable:!!k.hasOwnProperty("maskClosable")&&k.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:p,className:r()(h,c.modal,c[f],{[c["right-options-modal"]]:t})},((e,o)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":w(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":w(300,o)}}:{width:"1000px",style:{"--min-modal-height":w(500,o)}})(f,!(null===a&&!i))),{},{children:(0,_.jsx)(m.IntlProvider,{importMessages:d,moduleName:"Modal",children:D({withDecorator:N,title:u,closable:b,onClose:p,onConfirm:g,confirmText:C,onCancel:x,cancelText:A,footer:a,footerButtons:i,rightOptions:t,rightSpan:s,disabledScroller:j,children:o,childrenRef:v})})})},T=()=>{const{modal:e}=a.App.useApp(),o=(0,s.useRef)(null);return t=>{const s={},a=k((0,n.A)({onClose:()=>s.close(),childrenRef:o},t)),{children:i}=a,r=(0,l.A)(a,x),{destroy:c}=e.info((0,n.A)((0,n.A)({},r),{},{content:i}));return s.close=c,s}},S=()=>{const{modal:e}=a.App.useApp();return o=>{const t={},s=(0,n.A)({onClose:()=>t.close(),maskClosable:!1},o),{type:i,icon:d,title:m,danger:f,wrapClassName:u,message:p,iconSetting:g={},confirmType:y="info"}=s,C=(0,l.A)(s,A),x=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},g);if(e[i]){const{destroy:o}=e[i]((0,n.A)((0,n.A)({},C),{},{icon:null,wrapClassName:r()(c["confirm-modal-wrap"],u,{[c["is-danger"]]:f}),title:(0,_.jsx)(a.Space,{orientation:"vertical",onClick:e=>{e.stopPropagation()},children:m&&(0,_.jsxs)(a.Space,{size:0,align:"start",className:c.title,children:[f?(0,_.jsx)(h.default,{className:r()("title-icon","title-icon-".concat("confirm"===i?y:i)),type:d||x["confirm"===i?y:i]}):null,m]})}),content:(0,_.jsxs)(a.Space,{size:0,align:"start",className:r()(c.content,{[c["has-title"]]:m}),children:[!m&&f?(0,_.jsx)(h.default,{className:r()("title-icon","title-icon-".concat("confirm"===i?y:i)),type:d||x["confirm"===i?y:i]}):null,p]})}));t.close=o}return t}},P=e=>{let{size:o="default"}=e,t=(0,l.A)(e,C);const i=(0,s.useRef)(null);return(0,_.jsx)(a.Modal,(0,n.A)({},k(Object.assign({},t,{size:o,childrenRef:i}))))},R=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],M=["withDecorator"],B=["children"],O=e=>{let{items:o,className:t,activeKey:s,withDecorator:i,defaultActiveKey:c,onChange:d}=e,m=(0,l.A)(e,R);return(0,n.A)((0,n.A)({},m),{},{className:r()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.jsx)(a.Tabs,{items:o.map(o=>{let{withDecorator:n}=o,s=(0,l.A)(o,M);return Object.assign({},s,{children:"function"===typeof n?n(o=>e(Object.assign({},t,o,{children:s.children}))):e(Object.assign({},t,{children:s.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof i?i(t):t()},children:e=>{let{children:o}=e,t=(0,l.A)(e,B);return"function"===typeof o?o(t):o}})},z=e=>(0,_.jsx)(P,(0,n.A)({},O(e))),F=()=>{const e=T();return o=>e(O(o))};var I=t(73025);const K=["modalProps"],H=e=>{const o=F();return e.api?(0,_.jsx)(I.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:o})):(0,_.jsx)(a.Button,(0,n.A)((0,n.A)({},e),{},{onClick:()=>{o(e.modalProps)}}))},q=e=>{const o=T();if(!e.api){const{modalProps:t}=e,s=(0,l.A)(e,K);return(0,_.jsx)(a.Button,(0,n.A)((0,n.A)({},s),{},{onClick:()=>{o(t)}}))}return(0,_.jsx)(I.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:o}))}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tD,EAAM0D,IAAK,CACd,MAAM,WAAEyC,GAA0BnG,EAAXoG,GAAMnG,EAAAA,EAAAA,GAAKD,EAAKE,GACvC,OACErC,EAAAA,EAAAA,KAAC4D,EAAAA,QAAMnB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACD8F,GAAM,IACV9G,QAASA,KACPiE,EAAM4C,MAId,CACA,OAAOtI,EAAAA,EAAAA,KAACoI,EAAAA,GAAW3F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEkG,UAAW3C,K","sources":["common/components/SimpleBar.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","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__S130S\",\"large\":\"style_large__iaqVE__S130S\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__S130S\",\"modal-title\":\"style_modal-title__dswaw__S130S\",\"modal-outer\":\"style_modal-outer__r3SkX__S130S\",\"modal-body\":\"style_modal-body__jQJSI__S130S\",\"right-options-modal\":\"style_right-options-modal__FajDP__S130S\",\"right-options-row\":\"style_right-options-row__-mPb9__S130S\",\"right-options-col\":\"style_right-options-col__3ilee__S130S\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__S130S\",\"content\":\"style_content__k6MIF__S130S\",\"modal-footer\":\"style_modal-footer__-prbN__S130S\",\"modal-close\":\"style_modal-close__Oa5Kl__S130S\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__S130S\",\"is-danger\":\"style_is-danger__H5110__S130S\",\"title\":\"style_title__orTym__S130S\",\"has-title\":\"style_has-title__qy0Wp__S130S\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, {useRef} from \"react\";\nimport {App, Button, Col, Modal as AntdModal, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {FormattedMessage, IntlProvider} from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({options, rightSpan = 6, children}) => {\n if (!options) {\n return children;\n }\n return (<Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>);\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\", style: {\"--min-modal-height\": calcHeight(300, footer)},\n };\n }\n return {\n width: \"1000px\", style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n};\n\nconst Footer = ({\n footer, footerButtons, onConfirm, onCancel, cancelText, onClose, targetProps,\n }) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{\n children: cancelText || (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onCancel,\n }, {\n type: \"primary\", children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onConfirm,\n },])\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(({\n ButtonComponent, onClick, autoClose = true, display, ...props\n }, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args, targetProps));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n cancelText,\n confirmText,\n }) => {\n const modalBodyRef = useRef(null);\n return (<div className={classnames(style[\"modal-outer\"], 'modal-container')} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={classnames(style[\"modal-close\"], \"modal-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(style[\"modal-body\"], {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n }, \"modal-body\")}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (<div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n confirmText={confirmText}\n onCancel={onCancel}\n cancelText={cancelText}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, {title}, props);\n return (<ModalOuter\n title={renderWithOptions(props.title, {\n ...props, childrenRef, close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n confirmText={confirmText}\n onCancel={onCancel}\n cancelText={cancelText}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props, childrenRef, close: onClose,\n })}\n targetProps={Object.assign({}, props, {childrenRef, close: onClose})}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props, childrenRef, close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props, childrenRef, close: onClose,\n })}\n </RightOptions>\n </ModalOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner, {\n childrenRef, close: onClose,\n }) : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const {modal} = App.useApp();\n return (props) => {\n const api = {};\n const {\n type, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n orientation=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","concat","Footer","_ref2","footerButtons","onConfirm","onCancel","cancelText","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","type","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","_objectSpread","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","confirmText","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnHidden","sizeMap","width","Math","min","window","innerWidth","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded4","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded5","typeEnum","confirm","warning","error","success","orientation","align","_ref7","_excluded3","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/3771.ff1dabb1.chunk.js","mappings":"8LAGA,QAAeA,EAAS,O,gOCFxB,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBC,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF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C,SAAUA,IAGd,MAAgC,oBAAlBrD,EACVA,EAAcuD,GACdA,KAENjI,SAAUqC,IAA6B,IAA5B,SAAErC,GAAoBqC,EAAPI,GAAKC,EAAAA,EAAAA,GAAAL,EAAAqF,GAC7B,MAA2B,oBAAb1H,EAA0BA,EAASyC,GAASzC,MAShE,EAJmByC,IACVnC,EAAAA,EAAAA,KAACgI,GAAKvF,EAAAA,EAAAA,GAAA,GAAKkC,EAAoBxC,KAK3B8F,EAAeA,KAC1B,MAAMvC,EAAQD,IACd,OAAQtD,GAAUuD,EAAMf,EAAoBxC,K,sCCtCjC+F,EAAmB/F,IAC9B,MAAMgG,EAAYF,IAClB,OAAK9F,EAAM0D,KAUJ7F,EAAAA,EAAAA,KAACoI,EAAAA,GAAW3F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEkG,UAAWF,MARtCnI,EAAAA,EAAAA,KAAC4D,EAAAA,QAAMnB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACDN,GAAK,IACTV,QAASA,KACP0G,EAAUhG,EAAMmG,iBAO1B,EA9BqBnG,IACnB,MAAMuD,EAAQD,IACd,IAAKtD,EAAM0D,IAAK,CACd,MAAM,WAAEyC,GAA0BnG,EAAXoG,GAAMnG,EAAAA,EAAAA,GAAKD,EAAKE,GACvC,OACErC,EAAAA,EAAAA,KAAC4D,EAAAA,QAAMnB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACD8F,GAAM,IACV9G,QAASA,KACPiE,EAAM4C,MAId,CACA,OAAOtI,EAAAA,EAAAA,KAACoI,EAAAA,GAAW3F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEkG,UAAW3C,K","sources":["common/components/SimpleBar.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","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__u6fDa\",\"large\":\"style_large__iaqVE__u6fDa\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__u6fDa\",\"modal-title\":\"style_modal-title__dswaw__u6fDa\",\"modal-outer\":\"style_modal-outer__r3SkX__u6fDa\",\"modal-body\":\"style_modal-body__jQJSI__u6fDa\",\"right-options-modal\":\"style_right-options-modal__FajDP__u6fDa\",\"right-options-row\":\"style_right-options-row__-mPb9__u6fDa\",\"right-options-col\":\"style_right-options-col__3ilee__u6fDa\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__u6fDa\",\"content\":\"style_content__k6MIF__u6fDa\",\"modal-footer\":\"style_modal-footer__-prbN__u6fDa\",\"modal-close\":\"style_modal-close__Oa5Kl__u6fDa\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__u6fDa\",\"is-danger\":\"style_is-danger__H5110__u6fDa\",\"title\":\"style_title__orTym__u6fDa\",\"has-title\":\"style_has-title__qy0Wp__u6fDa\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, {useRef} from \"react\";\nimport {App, Button, Col, Modal as AntdModal, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {FormattedMessage, IntlProvider} from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({options, rightSpan = 6, children}) => {\n if (!options) {\n return children;\n }\n return (<Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>);\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\", style: {\"--min-modal-height\": calcHeight(300, footer)},\n };\n }\n return {\n width: \"1000px\", style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n};\n\nconst Footer = ({\n footer, footerButtons, onConfirm, onCancel, cancelText, onClose, targetProps,\n }) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{\n children: cancelText || (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onCancel,\n }, {\n type: \"primary\", children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onConfirm,\n },])\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(({\n ButtonComponent, onClick, autoClose = true, display, ...props\n }, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args, targetProps));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n cancelText,\n confirmText,\n }) => {\n const modalBodyRef = useRef(null);\n return (<div className={classnames(style[\"modal-outer\"], 'modal-container')} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={classnames(style[\"modal-close\"], \"modal-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(style[\"modal-body\"], {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n }, \"modal-body\")}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (<div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n confirmText={confirmText}\n onCancel={onCancel}\n cancelText={cancelText}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, {title}, props);\n return (<ModalOuter\n title={renderWithOptions(props.title, {\n ...props, childrenRef, close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n confirmText={confirmText}\n onCancel={onCancel}\n cancelText={cancelText}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props, childrenRef, close: onClose,\n })}\n targetProps={Object.assign({}, props, {childrenRef, close: onClose})}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props, childrenRef, close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props, childrenRef, close: onClose,\n })}\n </RightOptions>\n </ModalOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner, {\n childrenRef, close: onClose,\n }) : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n confirmText,\n onCancel,\n cancelText,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const {modal} = App.useApp();\n return (props) => {\n const api = {};\n const {\n type, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n orientation=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","concat","Footer","_ref2","footerButtons","onConfirm","onCancel","cancelText","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","type","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","_objectSpread","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","confirmText","modalBodyRef","useRef","classnames","Button","icon","Icon","e","stopPropagation","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnHidden","sizeMap","width","Math","min","window","innerWidth","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded4","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded5","typeEnum","confirm","warning","error","success","orientation","align","_ref7","_excluded3","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3790,8731],{48731(e,n,i){i.r(n),i.d(n,{default:()=>s.default});var s=i(98919),t=i(22717),a=i.n(t);const l=[{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}],c=[{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"}],o=[["openStatus",[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"closed",description:"\u5173\u95ed",type:"danger"}]],["commonStatus",()=>[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"close",description:"\u5173\u95ed",type:"danger"}]],["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",c],["phoneState",c],["degreeEnum",l],["degree",l]];(0,s.preset)({base:a()(o,(e,n)=>{e[n[0]]=n[1]},{})})},75363(e,n,i){i.r(n),i.d(n,{default:()=>m});const s=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var t=i(47458),a=i(64671),l=i(55199),c=i(83136),o=i.n(c);const r="style_helper-
|
|
2
|
-
//# sourceMappingURL=3790.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3790,8731],{48731(e,n,i){i.r(n),i.d(n,{default:()=>s.default});var s=i(98919),t=i(22717),a=i.n(t);const l=[{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}],c=[{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"}],o=[["openStatus",[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"closed",description:"\u5173\u95ed",type:"danger"}]],["commonStatus",()=>[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"close",description:"\u5173\u95ed",type:"danger"}]],["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",c],["phoneState",c],["degreeEnum",l],["degree",l]];(0,s.preset)({base:a()(o,(e,n)=>{e[n[0]]=n[1]},{})})},75363(e,n,i){i.r(n),i.d(n,{default:()=>m});const s=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var t=i(47458),a=i(64671),l=i(55199),c=i(83136),o=i.n(c);const r="style_helper-guide__K5xFw__u6fDa",u="style_inner__bMKeU__u6fDa",d="style_content__xTfWZ__u6fDa",p="style_link__93j7O__u6fDa";var v=i(48731),_=i(70579);const m=e=>{let{name:n,className:i}=e;return(0,_.jsx)(t.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,_.jsx)(v.default,{moduleName:"helperGuide",name:n,children:e=>e&&e.value&&(0,_.jsx)("div",{className:o()(r,i),children:(0,_.jsxs)(l.Space,{className:u,size:4,children:[(0,_.jsx)(a.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,_.jsx)("span",{className:d,children:e.content}),e.url&&(0,_.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(a.default,{type:"icon-shuangjiantou-right"})]})]})})})})}}}]);
|
|
2
|
+
//# sourceMappingURL=3790.522f81cb.chunk.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BAC7B,CAACD,YAAa,eAAMC,MAAO,gBAAO,CACjCD,YAAa,2BAAQC,MAAO,8BACzB,CAAC,iBAAkBC,GAAa,CAAC,aAAcA,GAAa,CAAC,aAAcH,GAAS,CAAC,SAAUA,KAEtGM,EAAAA,EAAAA,QAAO,CACHC,KAAMC,IAAUJ,EAAa,CAACK,EAAQP,KAClCO,EAAOP,EAAM,IAAMA,EAAM,IAC1B,CAAC,I,6CC5DR,MAOA,EAPwBQ,IACf,CACL,QAASC,IAAM,+BACf,QAASC,IAAM,iCACfF,M,yDCHJ,QAA+B,mCAA/B,EAA0E,4BAA1E,EAAgH,8BAAhH,EAAqJ,2B,0BCOrJ,MAgCA,EAhCoBG,IAA0B,IAAzB,KAAEC,EAAI,UAAEC,GAAWF,EACtC,OACEG,EAAAA,EAAAA,KAACC,EAAAA,aAAY,CAACC,eAAgBA,EAAgBC,WAAW,cAAaC,UACpEJ,EAAAA,EAAAA,KAACK,EAAAA,QAAI,CAACF,WAAW,cAAcL,KAAMA,EAAKM,SACtCE,GAEEA,GACAA,EAAKpB,QACHc,EAAAA,EAAAA,KAAA,OAAKD,UAAWQ,IAAWC,EAAuBT,GAAWK,UAC3DK,EAAAA,EAAAA,MAACC,EAAAA,MAAK,CAACX,UAAWS,EAAgBG,KAAM,EAAEP,SAAA,EACxCJ,EAAAA,EAAAA,KAACY,EAAAA,QAAI,CAACC,UAAQ,EAACxB,KAAK,8BACpBW,EAAAA,EAAAA,KAAA,QAAMD,UAAWS,EAAiBJ,SAAEE,EAAKQ,UACxCR,EAAKS,MACJN,EAAAA,EAAAA,MAACO,EAAAA,WAAWC,KAAI,CACdlB,UAAWS,EACXU,KAAMZ,EAAKS,IACXI,OAAO,SAAQf,SAAA,CAChB,4BAECJ,EAAAA,EAAAA,KAACY,EAAAA,QAAI,CAACvB,KAAK,yC","sources":["components/Enum/index.js","components/HelperGuide/locale/index.js","webpack://@kne-components/components-core/./src/components/HelperGuide/style.module.scss?bc31","components/HelperGuide/index.js"],"sourcesContent":["import {preset} from \"@kne/react-enum\";\nimport transform from \"lodash/transform\";\n\nconst degree = [{\n description: \"初中\", value: 10,\n}, {\n description: \"中专\", value: 20,\n}, {\n description: \"高中\", value: 30,\n}, {\n description: \"大专\", value: 40,\n}, {\n description: \"本科\", value: 50,\n}, {\n description: \"硕士研究生\", value: 60,\n}, {\n description: \"博士研究生\", value: 70,\n}, {\n description: \"博士后\", value: 75,\n}, {\n description: \"学历不限\", value: 999,\n}];\n\nconst phoneState = [{\n value: 0, description: \"空号\",\n}, {\n value: 1, description: \"实号\",\n}, {\n value: 2, description: \"停机\",\n}, {\n value: 3, description: \"库无\",\n}, {\n value: 4, description: \"沉默号\",\n}, {\n value: 5, description: \"风险号\",\n}];\n\nconst openStatus = [{value: 'open', description: '开启', type: 'success',}, {\n value: 'closed', description: '关闭', type: 'danger'\n}];\n\nconst baseLoaders = [['openStatus', openStatus], ['commonStatus', () => [{\n value: 'open', description: '开启', type: 'success',\n}, {\n value: 'close', description: '关闭', type: 'danger'\n}]], [\"gender\", () => [{value: \"M\", description: \"男\"}, {\n value: \"F\", description: \"女\",\n},],], [\"marital\", () => [{description: \"已婚\", value: \"Y\"}, {\n description: \"未婚\", value: \"N\",\n},],], [\"confirm\", () => [{description: \"是\", value: \"Y\"}, {\n description: \"否\", value: \"N\",\n},],], [\"political\", () => [{description: \"中共党员\", value: \"中共党员\"}, {\n description: \"共青团员\", value: \"共青团员\",\n}, {description: \"群众\", value: \"群众\"}, {\n description: \"其他党派\", value: \"其他党派\",\n},],], [\"phoneStateEnum\", phoneState], [\"phoneState\", phoneState], [\"degreeEnum\", degree], [\"degree\", degree]];\n\npreset({\n base: transform(baseLoaders, (result, value) => {\n result[value[0]] = value[1];\n }, {}),\n});\n\nexport {default} from \"@kne/react-enum\";\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"helper-guide\":\"style_helper-guide__K5xFw__u6fDa\",\"inner\":\"style_inner__bMKeU__u6fDa\",\"content\":\"style_content__xTfWZ__u6fDa\",\"link\":\"style_link__93j7O__u6fDa\"};","import importMessages from \"./locale\";\nimport { IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport { Space, Typography } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport Enum from \"@components/Enum\";\n\nconst HelperGuide = ({ name, className }) => {\n return (\n <IntlProvider importMessages={importMessages} moduleName=\"HelperGuide\">\n <Enum moduleName=\"helperGuide\" name={name}>\n {(data) => {\n return (\n data &&\n data.value && (\n <div className={classnames(style[\"helper-guide\"], className)}>\n <Space className={style[\"inner\"]} size={4}>\n <Icon colorful type=\"icon-color-bangzhuyindao\" />\n <span className={style[\"content\"]}>{data.content}</span>\n {data.url && (\n <Typography.Link\n className={style[\"link\"]}\n href={data.url}\n target=\"_blank\"\n >\n 查看帮助\n <Icon type=\"icon-shuangjiantou-right\" />\n </Typography.Link>\n )}\n </Space>\n </div>\n )\n );\n }}\n </Enum>\n </IntlProvider>\n );\n};\n\nexport default HelperGuide;\n"],"names":["degree","description","value","phoneState","baseLoaders","type","preset","base","transform","result","locale","en-US","zh-CN","_ref","name","className","_jsx","IntlProvider","importMessages","moduleName","children","Enum","data","classnames","style","_jsxs","Space","size","Icon","colorful","content","url","Typography","Link","href","target"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3841,8731],{48731(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>t.default});var t=i(98919),s=i(22717),a=i.n(s);const r=[{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}],l=[{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"}],o=[["openStatus",[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"closed",description:"\u5173\u95ed",type:"danger"}]],["commonStatus",()=>[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"close",description:"\u5173\u95ed",type:"danger"}]],["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",l],["phoneState",l],["degreeEnum",r],["degree",r]];(0,t.preset)({base:a()(o,(e,n)=>{e[n[0]]=n[1]},{})})},75363(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>h});const t=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var s=i(47458),a=i(64671),r=i(55199),l=i(83136),o=i.n(l);const c="style_helper-
|
|
2
|
-
//# sourceMappingURL=3841.
|
|
1
|
+
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3841,8731],{48731(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>t.default});var t=i(98919),s=i(22717),a=i.n(s);const r=[{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}],l=[{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"}],o=[["openStatus",[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"closed",description:"\u5173\u95ed",type:"danger"}]],["commonStatus",()=>[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"close",description:"\u5173\u95ed",type:"danger"}]],["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",l],["phoneState",l],["degreeEnum",r],["degree",r]];(0,t.preset)({base:a()(o,(e,n)=>{e[n[0]]=n[1]},{})})},75363(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>h});const t=e=>({"en-US":()=>i.e(9431).then(i.bind(i,9431)),"zh-CN":()=>i.e(1065).then(i.bind(i,81065))}[e]());var s=i(47458),a=i(64671),r=i(55199),l=i(83136),o=i.n(l);const c="style_helper-guide__K5xFw__u6fDa",u="style_inner__bMKeU__u6fDa",d="style_content__xTfWZ__u6fDa",p="style_link__93j7O__u6fDa";var v=i(48731),_=i(70579);const h=e=>{let{name:n,className:i}=e;return(0,_.jsx)(s.IntlProvider,{importMessages:t,moduleName:"HelperGuide",children:(0,_.jsx)(v.default,{moduleName:"helperGuide",name:n,children:e=>e&&e.value&&(0,_.jsx)("div",{className:o()(c,i),children:(0,_.jsxs)(r.Space,{className:u,size:4,children:[(0,_.jsx)(a.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,_.jsx)("span",{className:d,children:e.content}),e.url&&(0,_.jsxs)(r.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,_.jsx)(a.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},26304(e,n,i){var t=i(53871),s=i(99140);e.exports=function(e,n,i){var a=null==e?0:e.length;return a?(n=i||void 0===n?1:s(n),t(e,0,(n=a-n)<0?0:n)):[]}},99140(e,n,i){var t=i(37303);e.exports=function(e){var n=t(e),i=n%1;return n===n?i?n-i:n:0}},39825(){},2885(){},64674(){},17448(){},65176(){}}]);
|
|
2
|
+
//# sourceMappingURL=3841.a157ee0a.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3841.
|
|
1
|
+
{"version":3,"file":"static/js/3841.a157ee0a.chunk.js","mappings":"8NAGA,MAAMA,EAAS,CAAC,CACZC,YAAa,eAAMC,MAAO,IAC3B,CACCD,YAAa,eAAMC,MAAO,IAC3B,CACCD,YAAa,eAAMC,MAAO,IAC3B,CACCD,YAAa,eAAMC,MAAO,IAC3B,CACCD,YAAa,eAAMC,MAAO,IAC3B,CACCD,YAAa,iCAASC,MAAO,IAC9B,CACCD,YAAa,iCAASC,MAAO,IAC9B,CACCD,YAAa,qBAAOC,MAAO,IAC5B,CACCD,YAAa,2BAAQC,MAAO,MAG1BC,EAAa,CAAC,CAChBD,MAAO,EAAGD,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,GAAWF,EACtC,OACEG,EAAAA,EAAAA,KAACC,EAAAA,aAAY,CAACC,eAAgBA,EAAgBC,WAAW,cAAaC,UACpEJ,EAAAA,EAAAA,KAACK,EAAAA,QAAI,CAACF,WAAW,cAAcL,KAAMA,EAAKM,SACtCE,GAEEA,GACAA,EAAKpB,QACHc,EAAAA,EAAAA,KAAA,OAAKD,UAAWQ,IAAWC,EAAuBT,GAAWK,UAC3DK,EAAAA,EAAAA,MAACC,EAAAA,MAAK,CAACX,UAAWS,EAAgBG,KAAM,EAAEP,SAAA,EACxCJ,EAAAA,EAAAA,KAACY,EAAAA,QAAI,CAACC,UAAQ,EAACxB,KAAK,8BACpBW,EAAAA,EAAAA,KAAA,QAAMD,UAAWS,EAAiBJ,SAAEE,EAAKQ,UACxCR,EAAKS,MACJN,EAAAA,EAAAA,MAACO,EAAAA,WAAWC,KAAI,CACdlB,UAAWS,EACXU,KAAMZ,EAAKS,IACXI,OAAO,SAAQf,SAAA,CAChB,4BAECJ,EAAAA,EAAAA,KAACY,EAAAA,QAAI,CAACvB,KAAK,yC,eC3BjC,IAAI+B,EAAYC,EAAQ,OACpBC,EAAYD,EAAQ,OAqCxBE,EAAOC,QAVP,SAAmBC,EAAOC,EAAGC,GAC3B,IAAIC,EAAkB,MAATH,EAAgB,EAAIA,EAAMG,OACvC,OAAKA,GAGLF,EAAKC,QAAeE,IAANH,EAAmB,EAAIJ,EAAUI,GAExCN,EAAUK,EAAO,GADxBC,EAAIE,EAASF,GACkB,EAAI,EAAIA,IAJ9B,EAKX,C,eCpCA,IAAII,EAAWT,EAAQ,OAmCvBE,EAAOC,QAPP,SAAmBtC,GACjB,IAAIO,EAASqC,EAAS5C,GAClB6C,EAAYtC,EAAS,EAEzB,OAAOA,IAAWA,EAAUsC,EAAYtC,EAASsC,EAAYtC,EAAU,CACzE,C","sources":["components/Enum/index.js","components/HelperGuide/locale/index.js","webpack://@kne-components/components-core/./src/components/HelperGuide/style.module.scss?bc31","components/HelperGuide/index.js","../node_modules/lodash/dropRight.js","../node_modules/lodash/toInteger.js"],"sourcesContent":["import {preset} from \"@kne/react-enum\";\nimport transform from \"lodash/transform\";\n\nconst degree = [{\n description: \"初中\", value: 10,\n}, {\n description: \"中专\", value: 20,\n}, {\n description: \"高中\", value: 30,\n}, {\n description: \"大专\", value: 40,\n}, {\n description: \"本科\", value: 50,\n}, {\n description: \"硕士研究生\", value: 60,\n}, {\n description: \"博士研究生\", value: 70,\n}, {\n description: \"博士后\", value: 75,\n}, {\n description: \"学历不限\", value: 999,\n}];\n\nconst phoneState = [{\n value: 0, description: \"空号\",\n}, {\n value: 1, description: \"实号\",\n}, {\n value: 2, description: \"停机\",\n}, {\n value: 3, description: \"库无\",\n}, {\n value: 4, description: \"沉默号\",\n}, {\n value: 5, description: \"风险号\",\n}];\n\nconst openStatus = [{value: 'open', description: '开启', type: 'success',}, {\n value: 'closed', description: '关闭', type: 'danger'\n}];\n\nconst baseLoaders = [['openStatus', openStatus], ['commonStatus', () => [{\n value: 'open', description: '开启', type: 'success',\n}, {\n value: 'close', description: '关闭', type: 'danger'\n}]], [\"gender\", () => [{value: \"M\", description: \"男\"}, {\n value: \"F\", description: \"女\",\n},],], [\"marital\", () => [{description: \"已婚\", value: \"Y\"}, {\n description: \"未婚\", value: \"N\",\n},],], [\"confirm\", () => [{description: \"是\", value: \"Y\"}, {\n description: \"否\", value: \"N\",\n},],], [\"political\", () => [{description: \"中共党员\", value: \"中共党员\"}, {\n description: \"共青团员\", value: \"共青团员\",\n}, {description: \"群众\", value: \"群众\"}, {\n description: \"其他党派\", value: \"其他党派\",\n},],], [\"phoneStateEnum\", phoneState], [\"phoneState\", phoneState], [\"degreeEnum\", degree], [\"degree\", degree]];\n\npreset({\n base: transform(baseLoaders, (result, value) => {\n result[value[0]] = value[1];\n }, {}),\n});\n\nexport {default} from \"@kne/react-enum\";\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"helper-guide\":\"style_helper-guide__K5xFw__u6fDa\",\"inner\":\"style_inner__bMKeU__u6fDa\",\"content\":\"style_content__xTfWZ__u6fDa\",\"link\":\"style_link__93j7O__u6fDa\"};","import importMessages from \"./locale\";\nimport { IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport { Space, Typography } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport Enum from \"@components/Enum\";\n\nconst HelperGuide = ({ name, className }) => {\n return (\n <IntlProvider importMessages={importMessages} moduleName=\"HelperGuide\">\n <Enum moduleName=\"helperGuide\" name={name}>\n {(data) => {\n return (\n data &&\n data.value && (\n <div className={classnames(style[\"helper-guide\"], className)}>\n <Space className={style[\"inner\"]} size={4}>\n <Icon colorful type=\"icon-color-bangzhuyindao\" />\n <span className={style[\"content\"]}>{data.content}</span>\n {data.url && (\n <Typography.Link\n className={style[\"link\"]}\n href={data.url}\n target=\"_blank\"\n >\n 查看帮助\n <Icon type=\"icon-shuangjiantou-right\" />\n </Typography.Link>\n )}\n </Space>\n </div>\n )\n );\n }}\n </Enum>\n </IntlProvider>\n );\n};\n\nexport default HelperGuide;\n","var baseSlice = require('./_baseSlice'),\n toInteger = require('./toInteger');\n\n/**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\nfunction dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n}\n\nmodule.exports = dropRight;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n"],"names":["degree","description","value","phoneState","baseLoaders","type","preset","base","transform","result","locale","en-US","zh-CN","_ref","name","className","_jsx","IntlProvider","importMessages","moduleName","children","Enum","data","classnames","style","_jsxs","Space","size","Icon","colorful","content","url","Typography","Link","href","target","baseSlice","require","toInteger","module","exports","array","n","guard","length","undefined","toFinite","remainder"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3856],{18411(e,t,a){a.d(t,{A:()=>n});a(73884);const n=a.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},93761(e,t,a){a.d(t,{qn:()=>V,TM:()=>J,LH:()=>T,Ay:()=>W,NY:()=>M,DF:()=>K});var n=a(53986),l=a(89379),s=a(30509),r=a(25438),o=a(55199),i=a(27047),c=a(83136),d=a.n(c),u=a(64671),p=a(73884),m=a(21485),h=a(56434),f=a.n(h),g=a(15797),_=a.n(g),x=a(33097),A=a.n(x);const y="style_address__DIuRX__u6fDa",v="style_is-popup__tqVvp__u6fDa",C="style_title__FAe12__u6fDa",j="style_scroll-box__JWiDl__u6fDa",b="style_scroll-plus-box__lidEW__u6fDa",N="style_content__lAARZ__u6fDa",S="style_col-left__WPfeS__u6fDa",D="style_col-right__z0e9-__u6fDa";var w=a(87558);const O=e=>({"en-US":()=>a.e(3691).then(a.bind(a,83691)),"zh-CN":()=>a.e(2253).then(a.bind(a,32253))}[e]());var I=a(47458),L=a(70579);const P=["name","data","getAddressApi","children"],k=["data"],F=s.A.useContext,T=e=>{let{city:t,province:a,country:n}=e;const l=_()(()=>{const e=[];return["gangaotai","municipality"].forEach(a=>{e.push(...t.relations[a])}),["provinces","continents"].forEach(a=>{t.relations[a].forEach(a=>{e.push(a),e.push(...t.relations[a])})}),e.map(e=>t.list[e])}),s={getCity:_()(e=>{const a=t.list[e]||s.getCityByName(e);return a?{city:a,parent:a.parentCode?t.list[a.parentCode]:null}:{city:null,parent:null}}),getChinaHotCities:_()(()=>t.relations[2].map(e=>t.list[e])),getChinaCities:_()(()=>["2",...a.relations.municipality,...a.relations.provinces,"gangaotai"].map(e=>Object.assign({id:e},t.list[e]))),getCountries:_()(()=>["1",...n.relations.continents].map(e=>Object.assign({id:e},n.list[e]))),getList:_()((e,l)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return a.relations.gangaotai.map(e=>t.list[e]);const o=Object.assign({},t.list[e]);if(a.relations.municipality.indexOf(e)>-1)return o.name="".concat(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map(e=>t.list[e]);return a.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),n.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i}),getNationalityList:_()(e=>{let a=f()(t);return"1"===e&&a.relations[1].unshift("410"),"350"===e&&a.relations[350].unshift("410"),a.relations[e].filter(e=>a.list[e]).map(e=>a.list[e])}),getCityByName:_()(e=>{const t=l();let a;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find(e=>(a=t.find(e),a)),a}),combineCities:_()((e,a)=>[...a.filter(a=>t.list[a].parentCode!==e&&t.list[e].parentCode!==a&&e!==a),e]),searchCities:_()(e=>{if(!e)return[];return l().filter(t=>["pinyin","name","enName","spelling"].some(a=>t[a].toUpperCase().indexOf(e.toUpperCase())>-1)).map(e=>{const a=e.parentCode?t.list[e.parentCode]:null;return{label:a?"".concat(a.name,"\xb7").concat(e.name):e.name,value:e.code}})})};return s},M=(e,t)=>"en-US"===t?A()(e,"enName"):A()(e,"name"),R={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>a.e(7820).then(a.t.bind(a,37820,19)).then(e=>e.__esModule?e.default:e)},E=e=>{let{value:t,setValue:a}=e;const{fetchApi:n,props:l}=F(),[s,c]=(0,p.useState)(""),[h,f]=(0,p.useState)("2"),{formatMessage:g}=(0,I.useIntl)({moduleName:"AddressSelect"}),{locale:_}=(0,i.A)(),{getCity:x,getChinaCities:A,getCountries:w,getList:O,searchCities:P}=(0,p.useMemo)(()=>T(n.data),[n.data]),k=e=>{if(l.single)return void a([e]);const n=t.slice(0),s=n.indexOf(e);s>-1?n.splice(s,1):n.push(e),a(n)},R=s&&(0,L.jsx)(m.A,{className:b,children:(0,L.jsx)(o.List,{className:r.A.list,size:"small",dataSource:P(s),rowKey:"value",renderItem:e=>(0,L.jsx)(o.List.Item,{className:r.A["list-item"],onClick:()=>{k(e.value),c("")},children:(0,L.jsx)("span",{className:r.A["item-label"],children:e.label})})})});return(0,L.jsxs)("div",{className:d()(y,{[v]:l.isPopup}),children:[(0,L.jsx)(o.Input.Search,{className:d()(r.A["search-input"],{[r.A["is-popup"]]:l.isPopup}),placeholder:l.searchPlaceholder||g({id:"searchCity"}),prefix:(0,L.jsx)(u.default,{type:"icon-sousuo"}),enterButton:(0,L.jsx)(u.default,{type:"icon-sousuo"}),value:s,allowClear:!0,onChange:e=>{const t=e.target.value;c(t)},onSearch:e=>{c(e)}}),(0,L.jsx)("div",{className:N,children:R||(0,L.jsxs)(o.Row,{wrap:!1,children:[(0,L.jsx)(o.Col,{className:S,children:(0,L.jsx)(o.Tabs,{centered:!0,onChange:e=>{f(e)},items:[{key:"2",label:(0,L.jsx)(I.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{f(e.key)},items:A().map(e=>({label:M(e,_),key:e.id}))})})},{key:"1",label:(0,L.jsx)(I.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{f(e.key)},items:w().map(e=>({label:M(e,_),key:e.id}))})})}]})}),(0,L.jsxs)(o.Col,{flex:1,className:D,children:[(0,L.jsx)(o.Divider,{className:C,orientation:"left",children:M(x(h).city,_)}),(0,L.jsx)(m.A,{className:j,children:(0,L.jsx)(o.Space,{wrap:!0,children:O(h,{showChinaQuan:l.showChinaQuan,showForeignQuan:l.showForeignQuan}).map(e=>(0,L.jsx)(o.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{k(e.code)},children:M(e,_)},e.code))})})]})]})})]})},z=e=>(0,L.jsx)(s.A,(0,l.A)((0,l.A)({},e),{},{children:e=>{let{value:t,setValue:a}=e;return(0,L.jsx)(I.IntlProvider,{moduleName:"AddressSelect",importMessages:O,children:(0,L.jsx)(E,{value:t,setValue:a})})}}));z.defaultProps={overlayWidth:"500px",isPopup:!0,api:R,dataFormat:(e,t)=>{let{city:a}=e;const{locale:n}=Object.assign({},t);return{list:Object.values(a.list).map(e=>Object.assign({},e,{value:e.code,label:M(e,n)}))}}};const V=(0,w.withFetch)(e=>{let{name:t,data:a,getAddressApi:l,children:s}=e,r=(0,n.A)(e,P);const{locale:o}=(0,i.A)(),c=(0,p.useMemo)(()=>T(a),[a]);return l?s(c):(0,L.jsx)(w.default,{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:a}=t;return new Promise(e=>{setTimeout(()=>{e(c.getCity(a))},0)})},render:e=>{let{data:t}=e;return s(t,Object.assign({},r,{locale:o}))}})});V.defaultProps=(0,l.A)((0,l.A)({},R),{},{displayParent:!1,children:(e,t)=>{let{city:a,parent:n}=e,{displayParent:l,locale:s}=t;return l&&n?"".concat(M(n,s),"\xb7").concat(M(a,s)):M(a,s)}});const K=e=>{const t=(0,w.withFetch)(t=>{let{data:a}=t,s=(0,n.A)(t,k);const r=(0,p.useMemo)(()=>T(a),[a]);return(0,L.jsx)(e,(0,l.A)((0,l.A)({},s),{},{addressApi:r}))});return t.defaultProps=(0,l.A)({},R),t};z.AddressEnum=z.Enum=V,z.createAddressApi=T,z.withAddressApi=K,z.getLabelForLocal=M;const W=z;var U=a(10986),B=a(78491),q=a(20492),Q=a(22616),H=a.n(Q),X=a(1488),Y=a.n(X);const Z=["isPopup","size","disabled","inputPlaceholder","onBlur","className"],J=(0,I.createWithIntl)({importMessages:q.A,moduleName:"Common"})(e=>{const{isPopup:t,size:a,disabled:s,inputPlaceholder:r,onBlur:i,className:c}=e,d=(0,n.A)(e,Z),[u,p]=(0,U.default)(e),m=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:h}=(0,I.useIntl)({moduleName:"Common"}),f=(0,B.default)(e=>{i&&i(e)});return(0,L.jsx)("div",{ref:f,children:(0,L.jsxs)(o.Row,{gutter:10,children:[(0,L.jsx)(o.Col,{span:12,children:(0,L.jsx)(W,(0,l.A)((0,l.A)({},H()(d,m)),{},{className:c,disabled:s,single:!0,size:a,value:A()(u,"city"),onChange:e=>{p({city:e,detail:A()(u,"detail")})}}))}),(0,L.jsx)(o.Col,{span:12,children:(0,L.jsx)(o.Input,(0,l.A)((0,l.A)({},Y()(d,m)),{},{className:c,placeholder:r||h({id:"pleaseInput"}),disabled:s,size:a,value:A()(u,"detail"),onChange:e=>{p({city:A()(u,"city"),detail:e.target.value})}}))})]})})})},12392(e,t,a){a.d(t,{Bm:()=>B,Eo:()=>W,NR:()=>D,Ay:()=>q});var n=a(55199),l=a(83136),s=a.n(l),r=a(89379),o=a(53986),i=a(30509),c=a(25438),d=a(78784),u=a(33097),p=a.n(u),m=a(34677),h=a.n(m);const f="create-list_scroll-loader__zoaS7__u6fDa",g="create-list_is-popup__t3d-G__u6fDa",_="create-list_is-not-full__FXtX1__u6fDa",x="create-list_search-input__tV3vf__u6fDa",A="create-list_left__EXr3i__u6fDa",y="create-list_list-header__3xeJa__u6fDa",v="create-list_is-modal__BMfya__u6fDa";var C=a(73161),j=a(47458),b=a(70579);const N=["extra"],S=i.A.useContext,D=e=>{let{renderList:t,defaultProps:a}=e;const l=e=>{let{value:a,setValue:l}=e;const{fetchApi:r,searchText:o,setSearchText:i,props:u,mapping:m}=S(),N=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},u.pagination),D=p()(r.requestParams,[N.paramsType,N.current],1),w=p()(r.requestParams,[N.paramsType,N.pageSizeName])||N.pageSize,{formatMessage:O}=(0,j.useIntl)({moduleName:"Common"}),I=u.dataFormat(r.data),{right:L,leftBottom:P,leftSpan:k=24}=u,F=1===a.length&&"all"===a[0];return(0,b.jsxs)(n.Row,{wrap:!1,className:L?s()("is-not-full",_):"",children:[(0,b.jsxs)(n.Col,{span:k,className:s()(A,"advance-select-left"),children:[u.getSearchProps?(0,b.jsx)(C.A,{isPopup:u.isPopup,className:s()(x,c.A["search-input"],{[c.A["is-popup"]]:u.isPopup}),placeholder:u.searchPlaceholder||O({id:"search"}),value:o,onSearch:e=>{r.reload(u.getSearchProps(e)),i(e)}}):null,u.single||!u.showSelectedCount&&!u.allowSelectAll?null:(0,b.jsxs)(n.Flex,{className:s()(y,{[v]:!u.isPopup}),justify:"space-between",children:[u.showSelectedCount?(0,b.jsxs)(n.Space,{children:[(0,b.jsx)(n.Typography,{children:"\u5df2\u9009:"}),(0,b.jsx)(n.Typography.Link,{children:F?u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"}):"".concat(a.length).concat(u.countUnit||O({id:"items"}))})]}):(0,b.jsx)("div",{}),u.allowSelectAll?(0,b.jsx)("div",{children:(0,b.jsx)(n.Checkbox,{checked:F,onChange:e=>{l(e.target.checked?[u.allValue||"all"]:[])},children:(0,b.jsx)(j.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,b.jsx)("div",{})]}),(0,b.jsx)(d.default,{completeTips:"",isLoading:!r.isComplete,className:s()(f,{[g]:u.isPopup}),noMore:!I.total||D*w>=I.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(h()({[N.paramsType]:{[N.pageSizeName]:w,[N.current]:D+1}},u.getSearchProps&&u.getSearchProps(o)),u.mergeList)},children:(()=>{const e={props:u,value:a,setValue:l,list:I.list,data:r.data,fetchApi:r,itemIsSelected:e=>a.indexOf(e.value)>-1,isSelectedAll:F,onSelect:e=>{if(u.single)return void l([e.value]);const t=a.slice(0),n=t.indexOf(e.value);n>-1?t.splice(n,1):t.push(e.value),l(t)}},n=t(e);return"function"===typeof u.dropdownRender?u.dropdownRender(Object.assign({},e,{children:n})):n})()}),P&&P({fetchApi:r,value:a,mapping:m})]}),L&&L({value:a,mapping:m,fetchApi:r})]})};return e=>{const t=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},a,e),{extra:n}=t,s=(0,o.A)(t,N);return(0,b.jsx)(i.A,(0,r.A)((0,r.A)({},s),{},{extra:n,children:e=>{let{value:t,setValue:a}=e;return(0,b.jsx)(l,{value:t,setValue:a})}}))}},w="list_list__TGynD__u6fDa",O="list_list-item__WSswf__u6fDa",I="list_is-selected__6Wkgt__u6fDa",L="list_item-label__bYzhe__u6fDa",P="list_item-des__2nsEn__u6fDa",k="list_is-disabled__qxCvO__u6fDa",F="list_is-selected-all__Mp-hG__u6fDa";var T=a(40438),M=a(64671);const R="user_list-inner__V508e__u6fDa",E="user_list-info__y2nWo__u6fDa",z="user_selected-icon__9OQJL__u6fDa",V="user_item-des__o+7UR__u6fDa",K="user_is-selected-all__2q0VZ__u6fDa",W=D({renderList:e=>{let{list:t,onSelect:a,itemIsSelected:l,isSelectedAll:o}=e;return(0,b.jsx)(n.List,{size:"small",className:s()(w,{[F]:o,[K]:o}),dataSource:t,renderItem:e=>{const t=l(e);return(0,b.jsx)(n.List.Item,{className:s()(O,{[I]:t}),onClick:()=>a(e),children:(0,b.jsxs)(n.Row,{wrap:!1,align:"middle",className:R,children:[(0,b.jsx)(n.Col,{children:(0,b.jsx)(T.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e.avatar)),{},{size:40,gender:"M"}))}),(0,b.jsx)(n.Col,{className:E,flex:1,children:(0,b.jsxs)(n.Space,{direction:"vertical",children:[(0,b.jsx)("span",{className:L,children:e.label}),e.description&&(0,b.jsx)("span",{className:V,children:e.description})]})}),(0,b.jsx)(n.Col,{children:o||t?(0,b.jsx)(M.default,{className:z,type:"icon-gouxuan"}):null})]})})}})}}),U={"is-selected-all":"table_is-selected-all__IwXUY__u6fDa"},B=D({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:a,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,b.jsx)(n.Table,{className:s()(U.list,w,{[F]:c,[U["is-selected-all"]]:c}),size:"small",dataSource:a,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:a.map(e=>{let{value:t}=e;return t}),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),q=D({renderList:e=>{let{props:t,list:a,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,b.jsx)(n.List,{className:s()(w,i,{[F]:r}),size:"small",dataSource:a,renderItem:e=>{var a;const i=l(e);return(0,b.jsxs)(n.List.Item,{className:s()(O,{[I]:t.single&&i,[k]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,b.jsxs)(n.Row,{wrap:!1,children:[t.single?null:(0,b.jsx)(n.Col,{children:(0,b.jsx)(n.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,b.jsx)(n.Col,{children:(0,b.jsxs)(n.Space,{className:null!==(a=null===e||void 0===e?void 0:e.className)&&void 0!==a?a:"",children:[(0,b.jsx)("span",{className:L,children:e.label}),e.description&&(0,b.jsx)("span",{className:P,children:e.description})]})})]}),i&&c]})}})}})},45776(e,t,a){a.d(t,{yK:()=>k,ON:()=>f,Ay:()=>z});var n=a(53986),l=a(89379),s=a(30509),r=a(73884),o=a(96418),i=a(55199),c=a(64671),d=a(73161),u=a(33097),p=a.n(u),m=a(79686),h=a.n(m);const f=e=>{const t=Array.from(e.values()),a=t.filter(e=>null===e.parentId),n=(e,t)=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)},l=t=>{const a=[],n=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(a.push(...l.children),l.children.forEach(e=>{n(e.id)}))};return n(t),a},s=(t,a)=>{const n=t=>{const l=e.get(t);return l?a(l)?l:h()(l.parentId)?null:n(l.parentId):null};return n(t)},r=t=>{const n=e.get(t);if(!n)return[];const l=n.parentId;if(h()(l))return a;return e.get(l).children},o=(()=>{const e=a=>Array.isArray(a)&&a.length>0?a.map(a=>{const n=t.filter(e=>e.parentId===a.id);return Object.assign({},a,{children:e(n)})}):null;return e(a)})();return{mapping:e,getSelectedQueue:t=>{const a=e.get(t);if(!a)return[];const n=e=>{if(e.children&&e.children.length>0)return n(e.children.find(t=>t.children&&e.children.length>0)||p()(e.children,"0"));const t=l(e.parentId).find(e=>e.children&&e.children.length>0);return t?n(t):e},s=function(t){const a=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],n=e.get(t);return!n||h()(n.parentId)?a:s(n.parentId,a)},r=n(a);return s(p()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,e=>a.indexOf(e.id)>-1))return{checked:!0,indeterminate:!1};const n=(t=>{const n=t=>{const l=e.get(t);return l?(s=l,a.indexOf(s.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find(e=>!!n(e.id)):void 0):null;var s};return!!n(t)})(t);return n?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;a.push(t),l(t).forEach(e=>{n(a,e.id)});const i=r(t),c=i.every(e=>a.indexOf(e.id)>-1);o.parentId&&c&&(i.forEach(e=>{n(a,e.id)}),s(o.parentId))};return s(t),a},setNodeUnchecked:function(t){const a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const s=e.get(t);if(!s)return;if(a.indexOf(s.id)>-1)return void n(a,s.id);const o=r(t);s.parentId&&(o.forEach(e=>{t!==e.id&&a.push(e.id)}),l(s.parentId))};return l(t),a},treeData:o,treeMapping:new Map((o||[]).map(e=>[e.id,e]))}};var g=a(74065),_=a.n(g),x=a(19853),A=a.n(x),y=a(17342),v=a(83136),C=a.n(v);const j={content:"style_content__Hxlt9__u6fDa",columns:"style_columns__FmtPF__u6fDa","content-item":"style_content-item__i6HCO__u6fDa","last-level-area":"style_last-level-area__2y7jQ__u6fDa","is-popup":"style_is-popup__+r3Mn__u6fDa",menu:"style_menu__WZUVE__u6fDa","scroll-plus-box":"style_scroll-plus-box__QcTst__u6fDa","menu-label":"style_menu-label__iGt0Z__u6fDa","menu-item":"style_menu-item__hXHfm__u6fDa","checkbox-hidden":"style_checkbox-hidden__Xpx7J__u6fDa",loading:"style_loading__ZwrVe__u6fDa"};var b=a(87558),N=a(47458),S=a(25438),D=a(70579),w=a(27047);const O=["data","name","type","cache","children","getLabel"],I=new Map,L=(0,b.withFetch)(e=>{let{data:t,name:a,type:s,cache:o,children:i,getLabel:c}=e,d=(0,n.A)(e,O);const u=(0,r.useMemo)(()=>new Map(t.map(e=>[e.code,(0,l.A)((0,l.A)({},e),{},{id:e.code,label:c?c(e):e.chName,parentId:e.parentCode||null})])),[t,c]).get(a);return I.set("".concat(a,"_").concat(s),u),i(u,d)}),P=e=>{const{locale:t}=(0,w.A)(),a="".concat(t,"_").concat(e.name,"_").concat(e.type),n=I.get(a);return n&&!e.force?e.children(n):(0,D.jsx)(L,(0,l.A)({},e))};P.defaultProps={children:e=>p()(e,"label","")};const k=P,F=["maxLength","nodeFormat","dataFormat"],T=s.A.useContext,M=(0,b.withFetch)(e=>{let{data:t,computedIsChecked:a,onSelect:n}=e;return(0,D.jsx)(y.A,{className:j["scroll-plus-box"],children:(0,D.jsx)(i.List,{className:S.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=a(e);return(0,D.jsx)(i.List.Item,{className:C()(S.A["list-item"],{[S.A["is-selected"]]:t}),onClick:()=>n(e,t),children:(0,D.jsx)("span",{className:S.A["item-label"],children:e.label})})}})})}),R=e=>{let{value:t,setValue:a,size:n,selectLevel:s}=e;const{fetchApi:u,props:m}=T(),[h,g]=(0,r.useState)(""),x=(0,o.default)(m.dataFormat),{formatMessage:v}=(0,N.useIntl)({moduleName:"Common"}),b=u.data,w=(0,r.useMemo)(()=>new Map(x(b).list.map(e=>[e.value,e])),[b,x]),O=(0,r.useMemo)(()=>f(w),[w]),I=(0,r.useRef)({});I.current={createMergeTree:m.createMergeTree,loadMore:u.loadMore,openLoadData:m.openLoadData,parentIdKey:m.parentIdKey,treeUtils:O};const[L,P]=(0,r.useState)(()=>{const e=t.find(e=>!!w.get(e));return O.getSelectedQueue(e||p()(u.data.find(e=>e.children&&e.children.length>0),"id")||p()(u.data,"[0].id"),w)});(0,r.useEffect)(()=>{const{openLoadData:e,loadMore:t,parentIdKey:a,createMergeTree:n,treeUtils:l}=I.current;if(!e)return;const s=w.get(_()(L));if(!s)return;const r=l.getSelectedQueue(s.id);A()(L,r)?s.hasOwnProperty("children")||t({data:{[a]:s.id}},n(s.id)):P(r)},[L,w]);const k=(e,l)=>{const s=(()=>{if(m.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(m.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?O.setNodeChecked(l,t):O.setNodeUnchecked(l,t)})();s.length>n?i.message.error(v({id:"maxSelectedCount"},{count:n})):a(m.single&&s.length>0?[_()(s)]:s)},F=e=>{const t=w.get(e);return!(!m.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},R=!m.openLoadData&&"function"===typeof m.onSearch,E=R&&h&&(0,D.jsx)(M,{data:{searchText:h},loader:e=>{let{data:t}=e;return m.onSearch(t.searchText,{mapping:w})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{k(!t,e.id),!t&&P(O.getSelectedQueue(e.id,w)),g("")}});return(0,D.jsxs)("div",{className:C()(j.content,{[j["is-popup"]]:m.isPopup,[j["has-search"]]:R}),style:{"--menu-item-width":m.menuItemWidth},children:[R&&(0,D.jsx)(d.A,{isPopup:m.isPopup,className:C()(S.A["search-input"],{[S.A["is-popup"]]:m.isPopup}),placeholder:m.searchPlaceholder||v({id:"search"}),value:h,onSearch:e=>{g(e)}}),E||(0,D.jsx)("div",{children:(0,D.jsx)(y.A,{className:j.scroller,options:{autoHide:!1},children:(0,D.jsxs)("div",{className:j.columns,children:[L.map((e,a)=>{const n=w.get(e),o=O.getSiblingNode(e),d=!F(null===n||void 0===n?void 0:n.id)&&a>0;return(0,D.jsx)(y.A,{className:C()(j["content-item"],{[j["last-level-area"]]:d}),children:d?(0,D.jsx)(i.Space,{wrap:!0,children:o.map(e=>(0,r.createElement)(i.Checkbox,(0,l.A)((0,l.A)({},O.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>k(t.target.checked,e.id)}),e.label))}):(0,D.jsx)(i.Menu,{className:C()(j.menu),onSelect:e=>{const a=w.get(e.key);if(a)if(F(a.id))P(O.getSelectedQueue(a.id,w));else{const{checked:e}=O.computedCheckboxStatus(a.id,t);k(!e,a.id)}},selectedKeys:a===L.length-1?[]:L,items:o.map(e=>({key:e.id,label:(0,D.jsxs)(i.Space,{className:C()(j["menu-item"],{[j["checkbox-hidden"]]:m.onlyAllowLastLevel&&F(e.id)}),children:[!m.onlyAllowLastLevel&&(0,D.jsx)(i.Checkbox,(0,l.A)((0,l.A)({},O.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>k(t.target.checked,e.id)})),(0,D.jsx)("div",{className:j["menu-label"],children:e.label}),F(e.id)&&(0,D.jsx)(c.default,{className:j["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},p()(o,"[0].id",a))}),u.isComplete?null:(0,D.jsx)("div",{className:j.loading,children:(0,D.jsx)(i.Spin,{size:"small"})})]})})})]})},E=e=>{let{maxLength:t,nodeFormat:a,dataFormat:r}=e,o=(0,n.A)(e,F);return(0,D.jsx)(s.A,(0,l.A)((0,l.A)({},o),{},{dataFormat:e=>r(e,a),children:e=>{let{value:a,setValue:n}=e;return(0,D.jsx)(R,(0,l.A)((0,l.A)({},o),{},{size:t,value:a,setValue:n}))}}))};E.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:a}=t;return Array.from(a.values()).filter(t=>t.label.indexOf(e)>-1)},dataFormat:(e,t)=>{const a=(e,n)=>{const l=[];return l.push(...(e||[]).map(e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...a(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:n})))),l};return{list:a(e,null)}},createMergeTree:e=>(t,a)=>{const n=t=>t.map(t=>t.id===e?Object.assign({},t,{children:a&&a.map(t=>Object.assign({},t,{parentId:e}))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:n(t.children)}):t);return n(t)}};const z=E},41654(e,t,a){a.d(t,{A:()=>_,K:()=>g});var n=a(89379),l=a(53986),s=a(45776),r=a(27047),o=a(33097),i=a.n(o),c=a(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m=()=>a.e(719).then(a.t.bind(a,10719,19)).then(e=>e.__esModule?e.default:e),h={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:m},f=e=>{const t=Object.assign({},{overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},e),{apis:a}=t,o=(0,l.A)(t,d),{apis:i,locale:u}=(0,r.A)(),m=Object.assign({},{functionData:h},null===i||void 0===i?void 0:i.staticData,a);return(0,c.jsx)(s.Ay,(0,n.A)((0,n.A)({},o),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:a}=(0,s.ON)(new Map(t.map(e=>[e.code,(0,n.A)((0,n.A)({},e),{},{id:e.code,label:p(e,u),parentId:e.parentCode||null})])));return a}},m.functionData)}))};f.defaultData=m;const g=e=>{let{apis:t}=e,a=(0,l.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{functionData:h},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,n.A)((0,n.A)((0,n.A)({},a),d.functionData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};f.FunctionEnum=f.Enum=g;const _=f},53392(e,t,a){a.d(t,{A:()=>g,W:()=>f});var n=a(89379),l=a(53986),s=a(45776),r=a(27047),o=a(33097),i=a.n(o),c=a(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>a.e(7183).then(a.t.bind(a,57183,19)).then(e=>e.__esModule?e.default:e)},h=e=>{let{apis:t}=e,a=(0,l.A)(e,d);const{apis:o,locale:i}=(0,r.A)(),u=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.Ay,(0,n.A)((0,n.A)({},a),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:a}=(0,s.ON)(new Map(t.filter(e=>"000"!==e.code).map(e=>[e.code,(0,n.A)((0,n.A)({},e),{},{id:e.code,label:p(e,i),parentId:e.parentCode||null})])));return a}},u.industryData)}))};h.defaultProps={overlayWidth:"635px"};const f=e=>{let{apis:t}=e,a=(0,l.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,n.A)((0,n.A)((0,n.A)({},a),d.industryData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};h.IndustryEnum=h.Enum=f;const g=h},78784(e,t,a){a.d(t,{default:()=>n.default});a(21219);var n=a(38726);a.o(n,"FetchScrollLoader")&&a.d(t,{FetchScrollLoader:function(){return n.FetchScrollLoader}})},73161(e,t,a){a.d(t,{A:()=>f});var n=a(89379),l=a(53986),s=a(55199),r=a(83136),o=a.n(r);const i="style_search-input__8aH1G__u6fDa",c="style_is-popup__L0973__u6fDa";var d=a(64671),u=a(73884),p=a(51941),m=a(70579);const h=["value","debounce","onSearch","isPopup","placeholder","className"],f=e=>{let{value:t,debounce:a=500,onSearch:r,isPopup:f,placeholder:g,className:_}=e,x=(0,l.A)(e,h);const[A,y]=(0,u.useState)(t),v=(0,u.useRef)(t),C=(0,u.useRef)(!1),j=(0,p.useDebouncedCallback)(r,a);return(0,u.useEffect)(()=>{t!==v.current&&(y(t),v.current=t)},[t]),(0,m.jsx)(s.Input.Search,(0,n.A)((0,n.A)({},x),{},{allowClear:!0,className:o()(_,i,{[c]:f}),value:A,placeholder:g,prefix:(0,m.jsx)(d.default,{type:"icon-sousuo"}),enterButton:(0,m.jsx)(d.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;v.current=t,y(t),C.current||j(t.trim())},onCompositionStart:()=>{C.current=!0},onCompositionEnd:e=>{C.current=!1;const t=e.target.value;j(t.trim())},onSearch:e=>{j(e.trim())}}))}},30509(e,t,a){a.d(t,{A:()=>q});var n=a(89379),l=a(53986);const s={"ant-tag":"style_ant-tag__nNp8-__u6fDa",overlay:"style_overlay__La5mO__u6fDa",input:"style_input__SpJTE__u6fDa","is-disabled":"style_is-disabled__joxdl__u6fDa","input-icon":"style_input-icon__vVd8R__u6fDa",large:"style_large__En6mL__u6fDa",small:"style_small__DY0AQ__u6fDa","input-inner":"style_input-inner__PWy27__u6fDa","input-custom":"style_input-custom__ktsWD__u6fDa","display-content":"style_display-content__hIKo+__u6fDa","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__u6fDa","selected-tag":"style_selected-tag__zXZZO__u6fDa","selected-tag-list":"style_selected-tag-list__xUIms__u6fDa","selected-tag-inner":"style_selected-tag-inner__Z5gPL__u6fDa","text-inner":"style_text-inner__H24hY__u6fDa",placeholder:"style_placeholder__x0ccE__u6fDa","is-modal":"style_is-modal__JU+uq__u6fDa","overlay-content":"style_overlay-content__WKqp+__u6fDa"};var r=a(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,r.A)();var u=a(73884),p=a(10986),m=a(87558),h=a(33097),f=a.n(h),g=a(55199),_=a(83136),x=a.n(_),A=a(3382),y=a(64671),v=a(79686),C=a.n(v),j=a(41740),b=a.n(j),N=a(74065),S=a.n(N),D=a(21485),w=a(96418),O=a(77964),I=a(91176),L=a(47458),P=a(20492),k=a(27047),F=a(70579);const T=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],M=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName","overlayClassName","disabled"],R=["setFetchApi","wrapClassName","getContentRef"],E=["api","className","displayItems","wrapClassName"],z=e=>{let{maxLength:t,single:a,setValue:n,value:l,message:s}=e;return e=>n(!a&&Number.isInteger(t)&&t>0&&e.length>t?(s(),l):e)},V=e=>{let{single:t,value:a,mapping:n,allValue:l,allLabel:r,onClose:o}=e;return a&&Array.isArray(a)&&0!==a.length?t?(0,F.jsx)("span",{className:s["text-inner"],children:f()(n.get(a[0]),"label")||a[0]}):1===a.length&&a[0]===(l||"all")?(0,F.jsx)("span",{className:s["text-inner"],children:r||(0,F.jsx)(L.FormattedMessage,{id:"all",moduleName:"Common"})}):a.map(e=>{const t=n.get(e);return(0,F.jsx)(g.Tag,{className:s["display-tag"],closable:!0,onClose:a=>{a.preventDefault(),o(e,t)},children:(0,F.jsx)("span",{className:s["tag-inner"],children:f()(t,"label")||e})},e)}):null},K=(0,u.forwardRef)((e,t)=>{let{value:a,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,l.A)(e,T);const[m,h]=(0,u.useState)(a),f=(0,u.useRef)(a),{formatMessage:_}=(0,L.useIntl)({moduleName:"Common"});f.current=a;const[x,y]=(0,u.useState)(!1),v=e=>{var t;y(e),null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},{message:C}=g.App.useApp(),j=z({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:()=>C.error(_({id:"maxSelectedCount"},{count:p.maxLength}))});return(0,u.useEffect)(()=>{x&&h(f.current)},[x]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{v(!0)},close:()=>{v(!1)}})),(0,F.jsx)(A.default,(0,n.A)((0,n.A)({},p),{},{open:x,onConfirm:()=>{r(m)},onClose:()=>{v(!1)},footer:(0,F.jsxs)(g.Space,{direction:"vertical",className:s["overlay-footer"],children:[o&&(0,F.jsx)("div",{className:s["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:j})]}),children:"function"===typeof d?d({value:m,setValue:j}):d}))}),W=(0,u.forwardRef)((e,t)=>{let{value:a,setValue:r,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:f,wrapClassName:_,overlayClassName:A,disabled:y}=e,v=(0,l.A)(e,M);const[C,j]=(0,u.useState)(!1),b=(0,w.default)(e=>{var t;j(e),null===(t=v.onOpenChange)||void 0===t||t.call(v,e)});return(0,u.useImperativeHandle)(t,()=>({close:()=>{b(!1)}}),[b]),y?(0,F.jsx)("div",{className:s["input-inner"],children:p}):(0,F.jsx)(g.Popover,(0,n.A)((0,n.A)({},v),{},{open:C,onOpenChange:b,transitionName:"ant-slide-up",overlayClassName:x()(s.overlay,A),arrow:!1,content:(0,F.jsxs)("div",{style:f?{"--overlay-width":f}:{},className:x()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,F.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof o?o({value:a,setValue:e=>{(!m||a[0]!==e[0])&&r(e),m&&b(!1)}}):o}),(c||h)&&(0,F.jsxs)("div",{className:s["overlay-footer"],children:[h&&(0,F.jsx)("div",{className:s["overlay-footer-extra"],children:h}),c&&i({value:a,setValue:r})]})]}),trigger:"click",placement:d,children:(0,F.jsx)("div",{className:s["input-inner"],children:p})}))}),U=(0,m.withFetch)(e=>{let{setFetchApi:t,wrapClassName:a,getContentRef:n}=e,r=(0,l.A)(e,R);const[o,c]=(0,u.useState)(!1),d=(0,u.useRef)(null),p=(0,u.useRef)(null),m=i(),{valueState:h,mapping:f,props:_,inputWidth:A}=m,[v,C]=h,{formatMessage:j}=(0,L.useIntl)({moduleName:"Common"}),{single:b,placement:N,getPopupContainer:S,placeholder:O,isPopup:P,disabled:k,showSelectedTag:T,extra:M,inputContent:E,allowClear:z,overlayClassName:U}=_,B=(0,u.useRef)(r);B.current=r;const q=(0,w.default)(n);(0,u.useEffect)(()=>{q(P?p:d)},[P,q]),(0,u.useEffect)(()=>{t(Object.assign({},B.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const Q=V({single:b,value:v,mapping:f,allValue:_.allValue,allLabel:_.allLabel,onClose:e=>{C(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}}),H=e=>{let{value:t,setValue:a}=e;return(0,F.jsxs)(g.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(L.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!_.single&&Number.isInteger(_.maxLength)&&_.maxLength>0?"(".concat(t.length,"/").concat(_.maxLength,")"):"",":"]}),(0,F.jsx)(D.A,{className:s["selected-tag-list"],children:(0,F.jsx)("div",{className:s["selected-tag-inner"],children:V({value:t,mapping:f,allValue:_.allValue,allLabel:_.allLabel,onClose:e=>{a(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}})})})]})},X=E?E(m):(0,F.jsxs)(g.Space,{className:s["display-content"],onMouseOver:()=>{c(!0)},onMouseOut:()=>{c(!1)},children:[(0,F.jsx)("div",{children:Q||(0,F.jsx)("span",{className:s.placeholder,children:O||j({id:"pleaseSelect"})})}),o&&v&&v.length>0&&!k&&z?(0,F.jsx)(y.default,{className:x()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),C([])}}):(0,F.jsx)(y.default,{className:x()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return P?(0,F.jsx)(W,{ref:p,overlayWidth:(0,I.v)(Math.max(A,(0,I.j)(_.overlayWidth))),value:v,setValue:C,single:b,disabled:k,inputContent:X,onOpenChange:_.onOpenChange,overlayClassName:U,extra:"function"===typeof M?M({close:()=>p.current.close(),context:m}):M,renderSelectedContent:H,showSelectedTag:T,trigger:"click",placement:N,getPopupContainer:S,children:_.children}):(0,F.jsxs)("div",{className:s["input-inner"],onClick:()=>{k||d.current.modalOpen()},children:[(0,F.jsx)(K,{size:_.modalSize,ref:d,single:_.single,maxLength:_.maxLength,onOpenChange:_.onOpenChange,disabledScroller:!0,wrapClassName:x()(s.overlay,s["is-modal"],a),title:_.placeholder||j({id:"pleaseSelect"}),value:v,onChange:C,extra:"function"===typeof M?M({close:()=>d.current.close(),context:m}):M,showSelectedTag:T,renderSelectedContent:H,children:_.children}),X]})}),B=(0,L.createWithIntl)({importMessages:P.A,moduleName:"Common"})(e=>{const t=Object.assign({},{displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0},e),{api:a,className:r,displayItems:o,wrapClassName:i}=t,d=(0,l.A)(t,E),{locale:m}=(0,k.A)(),[h,_]=(0,u.useState)(""),[A,y]=(0,u.useState)(new Map(o.map(e=>[e.value,e]))),{formatMessage:v}=(0,L.useIntl)({moduleName:"Common"}),[j,N]=(0,u.useState)(0),D=(0,O.A)(e=>{N(e.clientWidth)}),[w,I]=(0,u.useState)({}),{message:P}=g.App.useApp(),T=e=>{const t=e.filter(e=>A.get(e.value)!==e);0!==t.length&&y(e=>{const a=b()(e);return t.forEach(e=>{a.set(e.value,e)}),a})},M=e=>((e,t)=>Array.isArray(e)&&e.every(e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label"))?(t(e),e.map(e=>e.value)):e)(d.single?C()(e)?[]:[e]:e||[],T,d.valueType),[R,V]=(0,p.default)(Object.assign({},d,{onChange:e=>{const t=((e,t,a)=>"all"!==a?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,A,d.valueType);d.onChange&&d.onChange(d.single?S()(t):t)}},"value"in d?{value:M(d.value)}:{defaultValue:M(d.defaultValue)})),K=z({maxLength:d.maxLength,single:d.single,setValue:V,value:R,message:()=>P.error(v({id:"maxSelectedCount"},{count:d.maxLength}))}),W=(0,u.useRef)(null);return(0,F.jsx)(c,{value:{inputWidth:j,mapping:A,searchText:h,setSearchText:_,appendMapping:T,setItems:e=>{w.setData(e),T(f()(d.dataFormat(e,{locale:m}),"list",[]))},getContentApi:()=>W.current,fetchApi:w,valueState:[R,K],props:d},children:(0,F.jsx)("div",{ref:D,className:x()(s["input".concat(d.inputContent&&"function"===typeof d.inputContent?"-custom":"")],{"select-input-disabled":!!d.disabled},r),children:(0,F.jsx)(U,(0,n.A)((0,n.A)({},a),{},{wrapClassName:i,loading:null,setFetchApi:I,getContentRef:e=>{e.current&&(W.current=e.current)},onRequestSuccess:e=>{T(f()(d.dataFormat(e,{locale:m}),"list",[])),a.onRequestSuccess&&a.onRequestSuccess(e)}}))})})});B.useContext=i;const q=B},17342(e,t,a){a.d(t,{A:()=>l});var n=a(34581);a(46733);const l=n.default},21485(e,t,a){a.d(t,{A:()=>d});var n=a(89379),l=a(53986),s=a(73884),r=a(71298),o=a(96418),i=a(70579);const c=["children","onScroll","options","onReady"],d=(0,s.forwardRef)((e,t)=>{let{children:a,onScroll:d,options:u,onReady:p}=e,m=(0,l.A)(e,c);const h=(0,s.useRef)(null),f=(0,s.useRef)(null),g=(0,s.useRef)(u),_=(0,o.default)(p),x=(0,o.default)(d);return(0,s.useImperativeHandle)(t,()=>f.current),(0,s.useEffect)(()=>{const e=new r.default(h.current,g.current);return f.current=e.getScrollElement(),f.current.addEventListener("scroll",x),_(f.current),()=>{f.current.removeEventListener("scroll",x)}},[x,_,a]),(0,i.jsx)("div",(0,n.A)((0,n.A)({},m),{},{ref:h,children:a}))})},60586(e,t,a){a.d(t,{e0:()=>x,ec:()=>A,$9:()=>y,Ay:()=>_});var n=a(89379),l=a(73884),s=a(98949),r=a(3382),o=a(40438),i=a(55199);const c="style_select-list-item-description__ndJSX__u6fDa",d="style_select-list-item-label__gyGnt__u6fDa",u="style_select-list-item-content__2VJnt__u6fDa";var p=a(83136),m=a.n(p),h=(a(96316),a(70579));const f=e=>{const{props:t,open:a,onOpenChange:n,value:l,onComplete:o}=e,{placeholder:i,children:c,showSelectedTag:d,onConfirm:u}=t;return(0,h.jsx)(r.default,{title:i,open:a,onClose:()=>{n(!1)},footer:d&&(0,h.jsx)(s.SelectedTagList,{}),onConfirm:()=>{if(o(),"function"===typeof u)return u(l)},children:c(e)})},g=(0,l.forwardRef)((e,t)=>{const a=Object.assign({},{children:e=>{let{components:t}=e;return(0,h.jsxs)(i.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,t.footer,!1!==a.isPopup&&t.selectedTag]})},renderModal:f},e);return(0,h.jsx)(s.default,(0,n.A)((0,n.A)({},a),{},{ref:t}))}),_=g,x=(0,l.forwardRef)((e,t)=>{const a=Object.assign({},{renderModal:f},e);return(0,h.jsx)(s.SelectTableList,(0,n.A)((0,n.A)({},a),{},{ref:t}))}),A=(0,l.forwardRef)((e,t)=>{const a=Object.assign({},{renderModal:f},e);return(0,h.jsx)(s.SelectTree,(0,n.A)((0,n.A)({},a),{},{ref:t}))}),y=(0,l.forwardRef)((e,t)=>(0,h.jsx)(g,(0,n.A)((0,n.A)({},e),{},{ref:t,renderItemContent:e=>{let{item:t,props:a}=e;const{labelKey:l,avatarKey:s,descriptionKey:r}=a,p=t[s||"avatar"];return(0,h.jsxs)(i.Flex,{gap:8,children:[(0,h.jsx)(o.default.Avatar,(0,n.A)((0,n.A)({},Object.assign({},"string"===typeof p?{id:p}:p)),{},{size:32,gender:"M"})),(0,h.jsxs)(i.Flex,{vertical:!0,gap:8,className:u,align:"flex-start",children:[(0,h.jsx)("div",{className:m()(d,"select-list-item-label"),children:t[l]}),t[r||"description"]&&(0,h.jsx)("div",{className:m()(c,"select-list-item-description"),title:t[r||"description"],children:t[r||"description"]})]})]})}})))},67869(e,t,a){a.d(t,{A:()=>S});var n=a(89379),l=a(53986),s=a(30509),r=a(73884),o=a(96418);const i="style_scroll-loader__Rcuti__u6fDa",c="style_is-popup__pCRv2__u6fDa";var d=a(83136),u=a.n(d),p=a(55199),m=a(17342),h=a(33097),f=a.n(h),g=a(1488),_=a.n(g),x=a(15797),A=a.n(x),y=a(70579);const v=["single","isPopup","searchPlaceholder"],C=["maxLength","dataFormat"],j=s.A.useContext,b=e=>{let{value:t,setValue:a,size:s}=e;const{fetchApi:d,props:h}=j(),f=(0,o.default)(h.dataFormat),{single:g,isPopup:x,searchPlaceholder:A}=h,C=(0,l.A)(h,v),b=(0,r.useRef)(h.fieldNames);b.current=h.fieldNames;const N=d.data,{treeData:S}=(0,r.useMemo)(()=>f(N,{fieldNames:b.current}),[f,N]);return(0,y.jsx)(p.Space,{direction:"vertical",size:16,children:(0,y.jsx)(m.A,{className:u()(i,{[c]:h.isPopup}),children:(0,y.jsx)(p.Tree,(0,n.A)((0,n.A)({},_()(C,["value","valueType","children","dataFormat"])),{},{size:s,checkable:!g,treeData:S,onCheck:a,checkedKeys:t,onSelect:g?a:e=>{const t=e[0];void 0!==t&&a(e=>{const a=e.slice(0),n=a.indexOf(t);return n>-1?a.splice(n,1):a.push(t),a})},selectedKeys:g?t:void 0}))})})},N=e=>{let{maxLength:t,dataFormat:a}=e,r=(0,l.A)(e,C);return(0,y.jsx)(s.A,(0,n.A)((0,n.A)({},r),{},{dataFormat:e=>a(e,{fieldNames:r.fieldNames}),children:e=>{let{value:a,setValue:n}=e;return(0,y.jsx)(b,{size:t,value:a,setValue:n})}}))};N.defaultProps={searchPlaceholder:"\u641c\u7d22",maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,checkStrictly:!1,dataFormat:(e,t)=>{let{fieldNames:a}=t;const n=A()((e,t)=>{let{fieldNames:a}=t;const n=[],l=e=>{Array.isArray(e)&&e.length>0&&e.forEach(e=>{const t=e[f()(a,"key","key")],s=e[f()(a,"title","title")],r=e[f()(a,"children","children")];n.push({id:t,value:t,label:s}),l(r)})};return l(e),n});return{treeData:e,list:n(e,{fieldNames:a})}}};const S=N},89319(e,t,a){a.d(t,{A:()=>p});var n=a(89379),l=a(20454),s=a(55199),r=a(10986),o=a(57469),i=a.n(o),c=a(20492),d=a(47458),u=a(70579);const p=(0,d.createWithIntl)({importMessages:c.A,moduleName:"Common"})(e=>{let t=Object.assign({},((0,l.A)(e),e));const{formatMessage:a}=(0,d.useIntl)({moduleName:"Common"}),o=new Map([["date",a({id:"customTime"})],["month",a({id:"monthly"})],["week",a({id:"weekly"})]]),[c,p]=(0,r.default)(t);return(0,u.jsxs)(s.Space.Compact,{children:[(0,u.jsx)(s.Select,{style:{width:"120px"},value:(null===c||void 0===c?void 0:c.type)||"date",onChange:e=>{p(t=>{var a;if(null===t||void 0===t||null===(a=t.value)||void 0===a||!a.length)return{value:null,type:e||"date"};const n=i()(t.value[0]),l=i()(t.value[1]);return{value:[n.isValid()?n.startOf(e||"date"):null,l.isValid()?l.endOf(e||"date"):null],type:e||"date"}})},options:Array.from(o).map(e=>{let[t,a]=e;return{label:a,value:t}})}),(0,u.jsx)(s.DatePicker.RangePicker,(0,n.A)((0,n.A)({},t),{},{picker:(null===c||void 0===c?void 0:c.type)||"date",value:Array.isArray(null===c||void 0===c?void 0:c.value)&&2===c.value.length&&c.value.map(e=>e&&i()(e)),onChange:e=>{p(t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})))}}))]})})},20492(e,t,a){a.d(t,{A:()=>n});const n=e=>({"en-US":()=>a.e(3086).then(a.bind(a,13086)),"zh-CN":()=>a.e(4308).then(a.bind(a,84308))}[e]())},17508(e,t,a){a.d(t,{AG:()=>y,Ay:()=>_,FI:()=>A,Zi:()=>x,lN:()=>s.useFileUpload});var n=a(89379),l=a(53986),s=a(92455),r=a(55199),o=a(83136),i=a.n(o),c=a(70579);const d=["className","multiple","accept","onChange","children"],u=["children"],p=["children"],m=["className","multiple","accept","onChange","children"],h=["children"],f=["className","multiple","accept","onChange","children"],g=["children"],_=e=>t=>{let{className:a,multiple:r,accept:o,onChange:i,children:p}=t,m=(0,l.A)(t,d);return(0,c.jsx)(s.FileInput,{className:a,multiple:r,accept:o,onChange:i,children:t=>{let{children:a}=t,s=(0,l.A)(t,u);return(0,c.jsxs)(e,(0,n.A)((0,n.A)({},Object.assign({},m,s)),{},{children:[p,a]}))}})},x=e=>{let{children:t}=e,a=(0,l.A)(e,p);return(0,c.jsx)(s.FileInput,(0,n.A)((0,n.A)({},a),{},{buttonText:t}))},A=e=>{let{className:t,multiple:a,accept:o,onChange:i,children:d}=e,u=(0,l.A)(e,m);return(0,c.jsx)(s.FileInput,{className:t,multiple:a,accept:o,onChange:i,children:e=>{let{children:t}=e,a=(0,l.A)(e,h);return(0,c.jsxs)(r.Typography.Link,(0,n.A)((0,n.A)({},Object.assign({},u,a)),{},{children:[d,t]}))}})},y=e=>{let{className:t,multiple:a,accept:o,onChange:d,children:u}=e,p=(0,l.A)(e,f);return(0,c.jsx)(s.FileInput,{className:i()(t,"ant-btn"),multiple:a,accept:o,onChange:d,children:e=>{let{children:t}=e,a=(0,l.A)(e,g);return(0,c.jsxs)(r.Typography.Text,(0,n.A)((0,n.A)({},Object.assign({},p,a)),{},{children:[u,t]}))}})}},97211(e,t,a){a.d(t,{A:()=>n.withOSSFile});var n=a(92455)},27047(e,t,a){a.d(t,{A:()=>r});var n=a(83694),l=a(33097),s=a.n(l);const r=()=>{const e=(0,n.useGlobalContext)();return s()(e,"preset",{apis:{}})}},77964(e,t,a){a.d(t,{A:()=>c});var n=a(73884),l=a(79889),s=a.n(l),r=a(93950),o=a.n(r),i=a(96418);const c=(e,t)=>{const a=(0,n.useRef)(null);a.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,n.useRef)(null),r=(0,i.default)(e);return(0,n.useLayoutEffect)(()=>{const e=l.current,t=()=>window.requestAnimationFrame(()=>{e&&r(e)});t();const n=new ResizeObserver((a.current.isDebounce?o():s())(t,a.current.time));return e&&n.observe(e),()=>{n.disconnect()}},[r]),l}},81348(e,t,a){a.d(t,{A:()=>n.computedAccept});var n=a(92455)},69484(e,t,a){a.d(t,{A:()=>l,e:()=>n});const n=1e15,l=e=>{let t,a,l,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=n)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,a=""):(l=e.split("."),t=l[0],a=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,a=t.length;for(let n=0;n<a;n++){let l=t.substr(n,1),i=a-n-1,d=i/4,u=i%4;"0"===l?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(l)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==a){let e=a.length;for(let t=0;t<e;t++){let e=a.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===a&&(c+="\u6574"),c=d+c,c}},74981(e,t,a){a.d(t,{A:()=>l});var n=a(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,n.createContext)(e),{Provider:a,Consumer:l}=t;return{context:t,Provider:a,Consumer:l,useContext:()=>(0,n.useContext)(t)}}},55490(e,t,a){a.d(t,{A:()=>n.isNotEmpty});var n=a(39129)},91176(e,t,a){a.d(t,{j:()=>l,v:()=>n});const n=e=>"number"===typeof e?"".concat(e,"px"):e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},37881(e,t,a){function n(e){const t=(e||"").trim().toUpperCase(),a={isValid:!1,message:"",info:null};if(!/^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dX]$/.test(t))return a.message="\u8eab\u4efd\u8bc1\u683c\u5f0f\u4e0d\u6b63\u786e",a;if(!function(e,t,a){if(e<1800||e>2099||t<1||t>12||a<1||a>31)return!1;const n=[31,28,31,30,31,30,31,31,30,31,30,31];(function(e){return e%4===0&&e%100!==0||e%400===0})(e)&&(n[1]=29);return a<=n[t-1]}(parseInt(t.substr(6,4),10),parseInt(t.substr(10,2),10),parseInt(t.substr(12,2),10)))return a.message="\u8eab\u4efd\u8bc1\u65e5\u671f\u4e0d\u5408\u6cd5",a;if(!function(e){const t=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],a=["1","0","X","9","8","7","6","5","4","3","2"];let n=0;for(let r=0;r<17;r++)n+=parseInt(e[r],10)*t[r];const l=a[n%11],s=e[17];return l===s}(t))return a.message="\u8eab\u4efd\u8bc1\u6821\u9a8c\u7801\u9519\u8bef",a;return function(e){const t=e.substr(0,2),a=e.substr(2,2),n=e.substr(4,2),l=parseInt(t,10);if(l<11||l>91)return!1;const s=parseInt(a,10);if(s<0||s>99)return!1;const r=parseInt(n,10);return!(r<0||r>99)}(t.substr(0,6))?(a.isValid=!0,a.message="\u8eab\u4efd\u8bc1\u53f7\u7801\u6709\u6548",a.info=function(e){const t=e.substr(6,4),a=e.substr(10,2),n=e.substr(12,2),l="".concat(t,"-").concat(a,"-").concat(n),s=new Date,r=new Date(parseInt(t),parseInt(a)-1,parseInt(n));let o=s.getFullYear()-r.getFullYear();const i=s.getMonth()-r.getMonth();(i<0||0===i&&s.getDate()<r.getDate())&&o--;const c=parseInt(e.substr(16,1),10),d=c%2===1?"\u7537":"\u5973",u=e.substr(0,6);return{birthdate:l,age:o,gender:d,areaCode:u,year:t,month:a,day:n}}(t),a):(a.message="\u8eab\u4efd\u8bc1\u5730\u533a\u7801\u4e0d\u6b63\u786e",a)}a.d(t,{A:()=>l}),n.generateCheckCode=function(e){const t=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];let a=0;for(let n=0;n<17;n++)a+=parseInt(e[n],10)*t[n];return["1","0","X","9","8","7","6","5","4","3","2"][a%11]};const l=n},43856(e,t,a){a.r(t),a.d(t,{AddressEnum:()=>m.qn,AddressInputField:()=>m.TM,AddressSelectField:()=>m.Ay,AdvancedSelectField:()=>h.Ay,CascaderField:()=>_.Ay,FetchButton:()=>i.A,FetchScrollLoader:()=>o.FetchScrollLoader,FunctionEnum:()=>x.K,FunctionSelectField:()=>x.A,IndustryEnum:()=>A.W,IndustrySelectField:()=>A.A,InputFileButton:()=>p.Zi,InputFileLink:()=>p.FI,InputFileText:()=>p.AG,ScrollLoader:()=>o.default,SearchInput:()=>d.A,SelectInnerInput:()=>u.A,SimpleBar:()=>c.A,SuperSelectField:()=>f.Ay,SuperSelectTableListField:()=>f.e0,SuperSelectTreeField:()=>f.ec,SuperSelectUserField:()=>f.$9,TableField:()=>h.Bm,TreeField:()=>g.A,TypeDateRangePickerField:()=>y.A,UserField:()=>h.Eo,accept:()=>C.A,changeMoneyToChinese:()=>n.A,createAddressApi:()=>m.LH,createDeferred:()=>j.default,createListField:()=>h.NR,createTreeUtils:()=>_.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>b.A,numberToPx:()=>N.v,pxToNumber:()=>N.j,useFileUpload:()=>p.lN,useResize:()=>v.A,validateIDCard:()=>S.A,withAddressApi:()=>m.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var n=a(69484),l=a(76801);const s=e=>{const t=e=>{const a=(0,l.h)();if(!e||e===a||!e.parentElement)return a;return[].slice.call(e.classList,0).find(e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1)?e:t(e.parentElement)};return t(e)};var r=a(97211),o=a(78784),i=a(73025),c=a(17342),d=a(73161),u=a(30509),p=a(17508),m=a(93761),h=a(12392),f=a(60586),g=a(67869),_=a(45776),x=a(41654),A=a(53392),y=a(89319),v=a(77964),C=a(81348),j=a(1582),b=a(55490),N=a(91176),S=a(37881)},40438(e,t,a){a.r(t),a.d(t,{default:()=>S});var n=a(89379),l=a(53986),s=a(87558),r=a(97211),o=a(64671),i=a(83136),c=a.n(i),d=a(55199),u=a(73884);const p=e=>{let{params:t}=e;const{data:a}=t;return new Promise((e,t)=>{const n=new window.Image;n.src=a,n.addEventListener("load",()=>{e(a)}),n.addEventListener("error",e=>{t(e)})})},m="style_img-outer__4QLY5__u6fDa",h="style_img__PSExq__u6fDa",f="style_loading__WCOwA__u6fDa",g="style_error__+ECgZ__u6fDa";var _=a(18411),x=a(72752),A=a(70579);const y=["id","src","alt","onClick","loading","error","className","apis"],v=["id","src","alt","gender","loading","error","className","gap","icon","children","shape","size","width","height","defaultAvatar","apis"],C=e=>{let{data:t,className:a,alt:n,innerLoading:l,loading:r=(0,A.jsx)(d.Skeleton.Avatar,{shape:"square",active:!0}),error:i=(0,A.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:u,children:m,onClick:f,staticUrl:g}=e;const{staticUrl:_}=(0,x.usePreset)(),y=g||_||"";return(0,A.jsx)(s.default,{loader:p,params:{data:/^https?:\/\//.test(t)?t:y+t},error:u||i,loading:l||r,render:e=>{let{data:t}=e;return"function"===typeof m?m({alt:n,className:c()(a,h),src:t}):(0,A.jsx)("img",{alt:n,className:c()(a,h),src:t,onClick:f})}})},j=(0,r.A)(C),b=e=>{let{loading:t,error:a,src:n,id:l,alt:s,className:r,children:o,apis:i,onClick:c}=e;const d=t&&(0,u.cloneElement)(t,{className:f}),p=a&&(0,u.cloneElement)(a,{className:g});return n?(0,A.jsx)(C,{alt:s,className:r,data:n,loading:d,error:p,onClick:c,children:o}):l?(0,A.jsx)(j,{alt:s,className:r,id:l,loading:d,innerLoading:d,error:p,innerError:p,apis:i,onClick:c,children:o}):p},N=e=>{let{id:t,src:a,alt:s,onClick:r,loading:i=(0,A.jsx)(d.Skeleton.Avatar,{shape:"square",active:!0}),error:u=(0,A.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,apis:h}=e,f=(0,l.A)(e,y);return(0,A.jsx)("div",(0,n.A)((0,n.A)({},f),{},{"data-testid":"components-core-image",className:c()(p,m),children:b({loading:i,error:u,src:a,id:t,alt:s,className:p,apis:h,onClick:r})}))};N.Avatar=e=>{let{id:t,src:a,alt:s,gender:r,loading:i=(0,A.jsx)(d.Skeleton.Avatar,{shape:"square",active:!0}),error:u=(0,A.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,gap:h,icon:f,children:g,shape:x,size:y=100,width:C,height:j,defaultAvatar:N=_.A,apis:S}=e,D=(0,l.A)(e,v);const w=(()=>{const e=C&&j?{style:{width:C,height:j}}:{size:y};if(C&&C!==j&&(x="square"),t||a)return b({loading:i,error:u,src:a,defaultAvatar:N,id:t,alt:s,className:p,apis:S,children:t=>(0,A.jsx)(d.Avatar,(0,n.A)((0,n.A)({},t),{},{gap:h,shape:x},e))});if(r){const t=r&&["F","female","f"].indexOf(r)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,A.jsx)(d.Avatar,(0,n.A)((0,n.A)({},D),{},{src:(0,A.jsx)(o.default,{role:"touxiang",colorful:!0,type:t}),gap:h,shape:x},e))}return(0,A.jsx)(d.Avatar,(0,n.A)((0,n.A)((0,n.A)({},D),{},{gap:h,icon:f,shape:x,size:y,src:N},e),{},{children:g}))})();return(0,A.jsx)("div",(0,n.A)((0,n.A)({},D),{},{"data-testid":"components-core-image-avatar",className:c()(p,m),style:{width:C&&j?C:y,height:C&&j?j:y},children:w}))};const S=N},3382(e,t,a){a.r(t),a.d(t,{ModalButton:()=>K,TabsModal:()=>M,TabsModalButton:()=>V,default:()=>L,useConfirmModal:()=>I,useModal:()=>O,useTabsModal:()=>R});var n=a(89379),l=a(53986),s=a(73884),r=a(55199),o=a(83136),i=a.n(o);const c={modal:"style_modal__Pm3cF__u6fDa",large:"style_large__iaqVE__u6fDa","modal-body-inner":"style_modal-body-inner__4PhpA__u6fDa","modal-title":"style_modal-title__dswaw__u6fDa","modal-outer":"style_modal-outer__r3SkX__u6fDa","modal-body":"style_modal-body__jQJSI__u6fDa","right-options-modal":"style_right-options-modal__FajDP__u6fDa","right-options-row":"style_right-options-row__-mPb9__u6fDa","right-options-col":"style_right-options-col__3ilee__u6fDa","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__u6fDa",content:"style_content__k6MIF__u6fDa","modal-footer":"style_modal-footer__-prbN__u6fDa","modal-close":"style_modal-close__Oa5Kl__u6fDa","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__u6fDa","is-danger":"style_is-danger__H5110__u6fDa",title:"style_title__orTym__u6fDa","has-title":"style_has-title__qy0Wp__u6fDa"},d=e=>({"en-US":()=>a.e(4628).then(a.bind(a,74628)),"zh-CN":()=>a.e(7478).then(a.bind(a,87478))}[e]());var u=a(47458),p=a(64671);const m=(e,t)=>"function"===typeof e?e(t):e;var h=a(81014),f=a(17342),g=a(70579);const _=["ButtonComponent","onClick","autoClose","display"],x=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","confirmText","onCancel","cancelText","closable","disabledScroller","withDecorator","childrenRef"],A=["size"],y=["children"],v=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],C="Modal",j=e=>{let{options:t,rightSpan:a=6,children:n}=e;return t?(0,g.jsxs)(r.Row,{wrap:!1,className:c["right-options-row"],children:[(0,g.jsx)(r.Col,{span:24-a,className:c["right-options-col"],children:n}),(0,g.jsx)(r.Col,{span:a,className:c["right-options-col"],children:t})]}):n},b=(e,t)=>"".concat(e-48-(t?58:0),"px"),N=e=>{let{footer:t,footerButtons:a,onConfirm:o,onCancel:i,cancelText:c,onClose:p,targetProps:m}=e;return(0,g.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,g.jsx)(r.Col,{flex:1,children:t}),Array.isArray(a)&&0===a.length?null:(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Space,{children:(a||[{children:c||(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Cancel",moduleName:C})}),onClick:i},{type:"primary",children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Confirm",moduleName:C})}),onClick:o}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,t)=>{let{ButtonComponent:a,onClick:r,autoClose:o=!0,display:i}=e,c=(0,l.A)(e,_);const d=a||h.default;return(0,s.createElement)(d,(0,n.A)((0,n.A)({},c),{},{key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];const n=await Promise.resolve(r&&r(...t,m));return o&&!1!==n&&p&&p(),n}}))})})})]})},S=e=>{let{title:t,footer:a,disabledScroller:n,footerButtons:l,onClose:o,closable:d,onConfirm:u,onCancel:m,children:h,targetProps:_,cancelText:x,confirmText:A}=e;const y=(0,s.useRef)(null);return(0,g.jsxs)("div",{className:i()(c["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===d?null:(0,g.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:i()(c["modal-close"],"modal-close"),type:"text",icon:(0,g.jsx)(p.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),o&&o()}}),t&&(0,g.jsx)("div",{className:c["modal-title"],children:t}),(0,g.jsx)(f.A,{className:i()(c["modal-body"],{[c["is-disabled-scroller"]]:n},"modal-body"),ref:y,children:(0,g.jsx)("div",{className:i()(c["modal-body-inner"],"modal-body-inner"),children:h})}),null!==a||l?(0,g.jsx)("div",{className:i()(c["modal-footer"],"modal-footer"),children:(0,g.jsx)(N,{footer:a,footerButtons:l,onConfirm:u,confirmText:A,onCancel:m,cancelText:x,onClose:o,targetProps:_})}):null]})},D=e=>{let{withDecorator:t,footerButtons:a,title:l,closable:s,onClose:r,onConfirm:o,confirmText:i,onCancel:c,cancelText:d,footer:u,rightOptions:p,rightSpan:h,disabledScroller:f,childrenRef:_,children:x}=e;const A=e=>(e=Object.assign({},{title:l},e),(0,g.jsx)(S,{title:m(e.title,(0,n.A)((0,n.A)({},e),{},{childrenRef:_,close:r})),closable:s,onClose:r,onConfirm:o,confirmText:i,onCancel:c,cancelText:d,footerButtons:m(a,(0,n.A)((0,n.A)({},e),{},{close:r})),disabledScroller:f,footer:m(u,(0,n.A)((0,n.A)({},e),{},{childrenRef:_,close:r})),targetProps:Object.assign({},e,{childrenRef:_,close:r}),children:(0,g.jsx)(j,{rightSpan:h,options:m(p,(0,n.A)((0,n.A)({},e),{},{childrenRef:_,close:r})),children:m(x,(0,n.A)((0,n.A)({},e),{},{childrenRef:_,close:r}))})}));return"function"===typeof t?t(A,{childrenRef:_,close:r}):A({})},w=e=>{let{children:t,rightOptions:a,rightSpan:s,footer:r,footerButtons:o,className:p,size:m,title:h,onClose:f,onConfirm:_,confirmText:A,onCancel:y,cancelText:v,closable:C,disabledScroller:j,withDecorator:N,childrenRef:S}=e,w=(0,l.A)(e,x);return(0,n.A)((0,n.A)((0,n.A)({},w),{},{icon:null,centered:!0,title:null,maskClosable:!!w.hasOwnProperty("maskClosable")&&w.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:f,className:i()(p,c.modal,c[m],{[c["right-options-modal"]]:a})},((e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":b(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":b(300,t)}}:{width:"1000px",style:{"--min-modal-height":b(500,t)}})(m,!(null===r&&!o))),{},{children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Modal",children:D({withDecorator:N,title:h,closable:C,onClose:f,onConfirm:_,confirmText:A,onCancel:y,cancelText:v,footer:r,footerButtons:o,rightOptions:a,rightSpan:s,disabledScroller:j,children:t,childrenRef:S})})})},O=()=>{const{modal:e}=r.App.useApp(),t=(0,s.useRef)(null);return a=>{const s={},r=w((0,n.A)({onClose:()=>s.close(),childrenRef:t},a)),{children:o}=r,i=(0,l.A)(r,y),{destroy:c}=e.info((0,n.A)((0,n.A)({},i),{},{content:o}));return s.close=c,s}},I=()=>{const{modal:e}=r.App.useApp();return t=>{const a={},s=(0,n.A)({onClose:()=>a.close(),maskClosable:!1},t),{type:o,icon:d,title:u,danger:m,wrapClassName:h,message:f,iconSetting:_={},confirmType:x="info"}=s,A=(0,l.A)(s,v),y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},_);if(e[o]){const{destroy:t}=e[o]((0,n.A)((0,n.A)({},A),{},{icon:null,wrapClassName:i()(c["confirm-modal-wrap"],h,{[c["is-danger"]]:m}),title:(0,g.jsx)(r.Space,{orientation:"vertical",onClick:e=>{e.stopPropagation()},children:u&&(0,g.jsxs)(r.Space,{size:0,align:"start",className:c.title,children:[m?(0,g.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||y["confirm"===o?x:o]}):null,u]})}),content:(0,g.jsxs)(r.Space,{size:0,align:"start",className:i()(c.content,{[c["has-title"]]:u}),children:[!u&&m?(0,g.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||y["confirm"===o?x:o]}):null,f]})}));a.close=t}return a}},L=e=>{let{size:t="default"}=e,a=(0,l.A)(e,A);const o=(0,s.useRef)(null);return(0,g.jsx)(r.Modal,(0,n.A)({},w(Object.assign({},a,{size:t,childrenRef:o}))))},P=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],k=["withDecorator"],F=["children"],T=e=>{let{items:t,className:a,activeKey:s,withDecorator:o,defaultActiveKey:c,onChange:d}=e,u=(0,l.A)(e,P);return(0,n.A)((0,n.A)({},u),{},{className:i()(a,"tabs-modal"),withDecorator:e=>{const a=a=>(0,g.jsx)(r.Tabs,{items:t.map(t=>{let{withDecorator:n}=t,s=(0,l.A)(t,k);return Object.assign({},s,{children:"function"===typeof n?n(t=>e(Object.assign({},a,t,{children:s.children}))):e(Object.assign({},a,{children:s.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof o?o(a):a()},children:e=>{let{children:t}=e,a=(0,l.A)(e,F);return"function"===typeof t?t(a):t}})},M=e=>(0,g.jsx)(L,(0,n.A)({},T(e))),R=()=>{const e=O();return t=>e(T(t))};var E=a(73025);const z=["modalProps"],V=e=>{const t=R();return e.api?(0,g.jsx)(E.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t})):(0,g.jsx)(r.Button,(0,n.A)((0,n.A)({},e),{},{onClick:()=>{t(e.modalProps)}}))},K=e=>{const t=O();if(!e.api){const{modalProps:a}=e,s=(0,l.A)(e,z);return(0,g.jsx)(r.Button,(0,n.A)((0,n.A)({},s),{},{onClick:()=>{t(a)}}))}return(0,g.jsx)(E.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},25438(e,t,a){a.d(t,{A:()=>n});const n={"search-input":"common_search-input__P6qLg__u6fDa","is-popup":"common_is-popup__fJq+g__u6fDa",list:"common_list__TKFzS__u6fDa","list-item":"common_list-item__ASse7__u6fDa","is-selected":"common_is-selected__-PU4Y__u6fDa","item-label":"common_item-label__u+qz1__u6fDa","item-des":"common_item-des__no2z0__u6fDa"}}}]);
|
|
2
|
+
//# sourceMappingURL=3856.6c6de252.chunk.js.map
|