@kne-components/components-core 0.2.40 → 0.2.41
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 +108 -108
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.174bd54b.chunk.css +2 -0
- package/build/static/css/{1151.2470ea36.chunk.css.map → 1151.174bd54b.chunk.css.map} +1 -1
- package/build/static/css/1153.3be02ec9.chunk.css +2 -0
- package/build/static/css/1153.3be02ec9.chunk.css.map +1 -0
- package/build/static/css/1554.d2fca62a.chunk.css +2 -0
- package/build/static/css/{1554.11d98591.chunk.css.map → 1554.d2fca62a.chunk.css.map} +1 -1
- package/build/static/css/2503.fefbc858.chunk.css +2 -0
- package/build/static/css/{2503.bd960188.chunk.css.map → 2503.fefbc858.chunk.css.map} +1 -1
- package/build/static/css/2517.f69b3b63.chunk.css +2 -0
- package/build/static/css/{2517.d5c805f7.chunk.css.map → 2517.f69b3b63.chunk.css.map} +1 -1
- package/build/static/css/2716.ad57f666.chunk.css +2 -0
- package/build/static/css/{2716.b2f4c88a.chunk.css.map → 2716.ad57f666.chunk.css.map} +1 -1
- package/build/static/css/2730.9c490085.chunk.css +2 -0
- package/build/static/css/{2730.a919794b.chunk.css.map → 2730.9c490085.chunk.css.map} +1 -1
- package/build/static/css/3142.bcd730ed.chunk.css +2 -0
- package/build/static/css/{3142.43de17a6.chunk.css.map → 3142.bcd730ed.chunk.css.map} +1 -1
- package/build/static/css/4029.83824f1a.chunk.css +2 -0
- package/build/static/css/4029.83824f1a.chunk.css.map +1 -0
- package/build/static/css/4265.bae2afe4.chunk.css +2 -0
- package/build/static/css/4265.bae2afe4.chunk.css.map +1 -0
- package/build/static/css/4319.4d5cfa09.chunk.css +2 -0
- package/build/static/css/{4319.cb12119e.chunk.css.map → 4319.4d5cfa09.chunk.css.map} +1 -1
- package/build/static/css/4666.a656d2c4.chunk.css +2 -0
- package/build/static/css/{4666.37a4f936.chunk.css.map → 4666.a656d2c4.chunk.css.map} +1 -1
- package/build/static/css/5443.e92e3bbe.chunk.css +2 -0
- package/build/static/css/5443.e92e3bbe.chunk.css.map +1 -0
- package/build/static/css/5600.8117cf36.chunk.css +2 -0
- package/build/static/css/{5600.0b2a3b45.chunk.css.map → 5600.8117cf36.chunk.css.map} +1 -1
- package/build/static/css/5962.f29a181f.chunk.css +2 -0
- package/build/static/css/{5962.9ab8b6a5.chunk.css.map → 5962.f29a181f.chunk.css.map} +1 -1
- package/build/static/css/{5996.44e8b88f.chunk.css → 5996.a18dcec9.chunk.css} +2 -2
- package/build/static/css/{5996.44e8b88f.chunk.css.map → 5996.a18dcec9.chunk.css.map} +1 -1
- package/build/static/css/6611.91ad2413.chunk.css +2 -0
- package/build/static/css/{6611.75dd19bf.chunk.css.map → 6611.91ad2413.chunk.css.map} +1 -1
- package/build/static/css/6779.9f6193d6.chunk.css +2 -0
- package/build/static/css/{6779.270a64f7.chunk.css.map → 6779.9f6193d6.chunk.css.map} +1 -1
- package/build/static/css/7121.f089fe7d.chunk.css +2 -0
- package/build/static/css/{7121.2255885f.chunk.css.map → 7121.f089fe7d.chunk.css.map} +1 -1
- package/build/static/css/7227.4f25ba8c.chunk.css +2 -0
- package/build/static/css/{7227.40c99ad1.chunk.css.map → 7227.4f25ba8c.chunk.css.map} +1 -1
- package/build/static/css/8017.f71b311f.chunk.css +2 -0
- package/build/static/css/8017.f71b311f.chunk.css.map +1 -0
- package/build/static/css/8332.83d205a2.chunk.css +2 -0
- package/build/static/css/{8332.7a8cda47.chunk.css.map → 8332.83d205a2.chunk.css.map} +1 -1
- package/build/static/css/{8725.53f21fbd.chunk.css → 8725.b253f64c.chunk.css} +2 -2
- package/build/static/css/{8725.53f21fbd.chunk.css.map → 8725.b253f64c.chunk.css.map} +1 -1
- package/build/static/css/9968.31fdfff6.chunk.css +2 -0
- package/build/static/css/9968.31fdfff6.chunk.css.map +1 -0
- package/build/static/js/{1153.4492c009.chunk.js → 1153.cdc50c19.chunk.js} +3 -3
- package/build/static/js/{1153.4492c009.chunk.js.map → 1153.cdc50c19.chunk.js.map} +1 -1
- package/build/static/js/1554.0beb5494.chunk.js +3 -0
- package/build/static/js/{1554.d1c73092.chunk.js.map → 1554.0beb5494.chunk.js.map} +1 -1
- package/build/static/js/2503.15f977e4.chunk.js +2 -0
- package/build/static/js/{2503.f29706bd.chunk.js.map → 2503.15f977e4.chunk.js.map} +1 -1
- package/build/static/js/{2517.9c41bd35.chunk.js → 2517.304d1c92.chunk.js} +2 -2
- package/build/static/js/{2517.9c41bd35.chunk.js.map → 2517.304d1c92.chunk.js.map} +1 -1
- package/build/static/js/2716.66d4eab2.chunk.js +3 -0
- package/build/static/js/{2716.ecc181f9.chunk.js.map → 2716.66d4eab2.chunk.js.map} +1 -1
- package/build/static/js/2730.3e2fa120.chunk.js +2 -0
- package/build/static/js/{2730.4eefaecf.chunk.js.map → 2730.3e2fa120.chunk.js.map} +1 -1
- package/build/static/js/{2814.1f2dc9be.chunk.js → 2814.1ea829c8.chunk.js} +2 -2
- package/build/static/js/{2814.1f2dc9be.chunk.js.map → 2814.1ea829c8.chunk.js.map} +1 -1
- package/build/static/js/{3142.0c7f6496.chunk.js → 3142.b79193df.chunk.js} +2 -2
- package/build/static/js/{3142.0c7f6496.chunk.js.map → 3142.b79193df.chunk.js.map} +1 -1
- package/build/static/js/36.dccdc545.chunk.js +2 -0
- package/build/static/js/36.dccdc545.chunk.js.map +1 -0
- package/build/static/js/{4029.0ab53d00.chunk.js → 4029.75545d82.chunk.js} +2 -2
- package/build/static/js/{4029.0ab53d00.chunk.js.map → 4029.75545d82.chunk.js.map} +1 -1
- package/build/static/js/{4265.a047dcec.chunk.js → 4265.f2c2f034.chunk.js} +2 -2
- package/build/static/js/{4265.a047dcec.chunk.js.map → 4265.f2c2f034.chunk.js.map} +1 -1
- package/build/static/js/{4319.2cc8645f.chunk.js → 4319.cf5925fe.chunk.js} +2 -2
- package/build/static/js/{4319.2cc8645f.chunk.js.map → 4319.cf5925fe.chunk.js.map} +1 -1
- package/build/static/js/{4666.0a5b1cda.chunk.js → 4666.c9024365.chunk.js} +3 -3
- package/build/static/js/{4666.0a5b1cda.chunk.js.map → 4666.c9024365.chunk.js.map} +1 -1
- package/build/static/js/{5443.3195656f.chunk.js → 5443.f7281d63.chunk.js} +2 -2
- package/build/static/js/{5443.3195656f.chunk.js.map → 5443.f7281d63.chunk.js.map} +1 -1
- package/build/static/js/5600.d728bcd3.chunk.js +2 -0
- package/build/static/js/{5600.298f6b6b.chunk.js.map → 5600.d728bcd3.chunk.js.map} +1 -1
- package/build/static/js/5962.7cd8c3e1.chunk.js +2 -0
- package/build/static/js/{5962.b8774e96.chunk.js.map → 5962.7cd8c3e1.chunk.js.map} +1 -1
- package/build/static/js/{5996.fc73eb76.chunk.js → 5996.eb4c7c52.chunk.js} +2 -2
- package/build/static/js/{5996.fc73eb76.chunk.js.map → 5996.eb4c7c52.chunk.js.map} +1 -1
- package/build/static/js/6611.1be48e69.chunk.js +2 -0
- package/build/static/js/{6611.1152fb3a.chunk.js.map → 6611.1be48e69.chunk.js.map} +1 -1
- package/build/static/js/6779.2092cdf9.chunk.js +2 -0
- package/build/static/js/{6779.ae91c0e8.chunk.js.map → 6779.2092cdf9.chunk.js.map} +1 -1
- package/build/static/js/{6915.cb45bd67.chunk.js → 6915.d3fc7b65.chunk.js} +2 -2
- package/build/static/js/{6915.cb45bd67.chunk.js.map → 6915.d3fc7b65.chunk.js.map} +1 -1
- package/build/static/js/{7121.341feb65.chunk.js → 7121.5ffc808f.chunk.js} +2 -2
- package/build/static/js/{7121.341feb65.chunk.js.map → 7121.5ffc808f.chunk.js.map} +1 -1
- package/build/static/js/{7227.383436ab.chunk.js → 7227.2b908933.chunk.js} +3 -3
- package/build/static/js/{7227.383436ab.chunk.js.map → 7227.2b908933.chunk.js.map} +1 -1
- package/build/static/js/{7967.59721608.chunk.js → 7967.e2a25670.chunk.js} +2 -2
- package/build/static/js/{7967.59721608.chunk.js.map → 7967.e2a25670.chunk.js.map} +1 -1
- package/build/static/js/{8017.78695bf4.chunk.js → 8017.a61ddbed.chunk.js} +2 -2
- package/build/static/js/{8017.78695bf4.chunk.js.map → 8017.a61ddbed.chunk.js.map} +1 -1
- package/build/static/js/{8151.711ff134.chunk.js → 8151.f8e1d2af.chunk.js} +2 -2
- package/build/static/js/{8151.711ff134.chunk.js.map → 8151.f8e1d2af.chunk.js.map} +1 -1
- package/build/static/js/{8332.f09b66e7.chunk.js → 8332.c9939217.chunk.js} +2 -2
- package/build/static/js/{8332.f09b66e7.chunk.js.map → 8332.c9939217.chunk.js.map} +1 -1
- package/build/static/js/{8725.427caed2.chunk.js → 8725.cbf5f6aa.chunk.js} +2 -2
- package/build/static/js/{8725.427caed2.chunk.js.map → 8725.cbf5f6aa.chunk.js.map} +1 -1
- package/build/static/js/{9968.bdb1cadd.chunk.js → 9968.2dec8716.chunk.js} +2 -2
- package/build/static/js/{9968.bdb1cadd.chunk.js.map → 9968.2dec8716.chunk.js.map} +1 -1
- package/build/static/js/main.7fa303fe.js +2 -0
- package/build/static/js/main.7fa303fe.js.map +1 -0
- package/package.json +1 -1
- package/build/static/css/1151.2470ea36.chunk.css +0 -2
- package/build/static/css/1153.f104eb63.chunk.css +0 -2
- package/build/static/css/1153.f104eb63.chunk.css.map +0 -1
- package/build/static/css/1554.11d98591.chunk.css +0 -2
- package/build/static/css/2503.bd960188.chunk.css +0 -2
- package/build/static/css/2517.d5c805f7.chunk.css +0 -2
- package/build/static/css/2716.b2f4c88a.chunk.css +0 -2
- package/build/static/css/2730.a919794b.chunk.css +0 -2
- package/build/static/css/3142.43de17a6.chunk.css +0 -2
- package/build/static/css/4029.81ea8304.chunk.css +0 -2
- package/build/static/css/4029.81ea8304.chunk.css.map +0 -1
- package/build/static/css/4265.31509d7a.chunk.css +0 -2
- package/build/static/css/4265.31509d7a.chunk.css.map +0 -1
- package/build/static/css/4319.cb12119e.chunk.css +0 -2
- package/build/static/css/4666.37a4f936.chunk.css +0 -2
- package/build/static/css/5443.8649832b.chunk.css +0 -2
- package/build/static/css/5443.8649832b.chunk.css.map +0 -1
- package/build/static/css/5600.0b2a3b45.chunk.css +0 -2
- package/build/static/css/5962.9ab8b6a5.chunk.css +0 -2
- package/build/static/css/6611.75dd19bf.chunk.css +0 -2
- package/build/static/css/6779.270a64f7.chunk.css +0 -2
- package/build/static/css/7121.2255885f.chunk.css +0 -2
- package/build/static/css/7227.40c99ad1.chunk.css +0 -2
- package/build/static/css/8017.704d25e6.chunk.css +0 -2
- package/build/static/css/8017.704d25e6.chunk.css.map +0 -1
- package/build/static/css/8332.7a8cda47.chunk.css +0 -2
- package/build/static/css/9968.c15692ff.chunk.css +0 -2
- package/build/static/css/9968.c15692ff.chunk.css.map +0 -1
- package/build/static/js/1554.d1c73092.chunk.js +0 -3
- package/build/static/js/2503.f29706bd.chunk.js +0 -2
- package/build/static/js/2716.ecc181f9.chunk.js +0 -3
- package/build/static/js/2730.4eefaecf.chunk.js +0 -2
- package/build/static/js/5600.298f6b6b.chunk.js +0 -2
- package/build/static/js/5962.b8774e96.chunk.js +0 -2
- package/build/static/js/6611.1152fb3a.chunk.js +0 -2
- package/build/static/js/6779.ae91c0e8.chunk.js +0 -2
- package/build/static/js/7655.e56958cf.chunk.js +0 -2
- package/build/static/js/7655.e56958cf.chunk.js.map +0 -1
- package/build/static/js/main.03606915.js +0 -2
- package/build/static/js/main.03606915.js.map +0 -1
- /package/build/static/js/{1153.4492c009.chunk.js.LICENSE.txt → 1153.cdc50c19.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.d1c73092.chunk.js.LICENSE.txt → 1554.0beb5494.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.ecc181f9.chunk.js.LICENSE.txt → 2716.66d4eab2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.0a5b1cda.chunk.js.LICENSE.txt → 4666.c9024365.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.383436ab.chunk.js.LICENSE.txt → 7227.2b908933.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/css/9968.c15692ff.chunk.css","mappings":"AAIA,KAIE,aADA,SAFA,wBACA,SAEA,CACA,wBAEE,QAAO,CADP,OACA,CAIJ,4BACE,gBAGF,gBAKE,mCACA,kCACA,sBALA,yKADA,SAOA,iBAGF,aACE,aAGF,iEACE,aCnCF,gCAGE,wBAOA,uBACA,uBACA,oBACA,oBACA,CAQA,yBAEA,uBACA,wBACA,wBACA,CAEA,iBAEA,gCACA,uBACA,yBACA,yBACA,yBACA,yBACA,CAEA,qBAEA,wBACA,0BACA,0BACA,0BACA,0BACA,wBAEA,wBACA,wBAIA,wBACA,yBACA,uBACA,qBACA,uBApBA,uBAEA,CAzBA,kCAQA,CAKA,sCAEA,CA3BF,oBAwDE,iEApDE,WADF,mBAEE,yIA8DA,0CAEE,2CAIJ,aACE,kDAIA,WADF,SAEE,wDAGF,UACE,qJAMA,aAHF,UAIE,4CAGF,eACE,kDAGF,gBACE,0CAKA,eACA,CAFA,cACA,CACA,cACA,cAJF,gBAKE,uDAEA,0BACE,4DAIA,2BADF,SAEE,sEAEA,QACE,uEAKA,2BAFF,SACE,WAEA,uEAIA,2BADF,SAEE,4EAIA,kCADF,kBAEE,sEAIA,mBADF,8BAEE,4FAIA,iCACA,oBAFF,0BAGE,8FAKA,gCAFF,kBACE,2BAEA,CAIA,gJAGF,gBACE,+FAEA,iCACE,oDAKN,gBACE,qDAMA,cACA,CAJF,WACE,iBACA,CAEA,eAFA,gBAGA,qDAGF,cACE,CACA,eADA,aAEA,2IAMA,WACA,CAFA,WACA,CACA,2BAJF,SAKE,uJAEA,wBACE,wIAUF,kCAEA,sCADA,8BACA,CAIA,2EAEE,kCADA,0BACA,CAGF,gLAEE,mBAGF,2FACE,gCACA,WAKN,gDACE,oBAEA,sEACE,iBAGF,wDAEE,eACA,YACA,oBAHA,SAGA,CAGF,kEACE,2BAIJ,+CAGE,iBADA,YAGA,0BADA,2BAHA,UAMA,4BADA,yBACA,CAEA,yRAKE,iBAEA,mBAEA,gBAHA,2BAEA,uBAGA,4BADA,yBACA,CAIJ,mDACE,oCAGF,+DACE,2CAGF,uGAGE,2BACA,gBAGF,+CACE,wCAGF,oDACE,6BAEA,gFACE,wBAIJ,8DACE,WACA,oBACA,kBACA,uBACA,8CACE,GACE,4CAEF,GACE,8CAIJ,oEAOE,yDAEA,+BALA,YACA,qBAGA,eALA,SAFA,kBACA,QAIA,8BAGA,CAKF,sJAEE,oBAKF,uEACE,sBAIJ,2CAEE,qBADA,WACA,CAEA,yFACE,gBAGF,kEACE,6BAGF,2DAIE,mCACA,kCAJA,+BAKA,eAHA,kBAKA,WANA,2BAKA,SACA,CAEA,+DACE,aAIJ,6DACE,qCAEA,6EACE,aChXQ,CDkXR,mFACE,YAKN,0DACE,sCAEA,0EACE,aC3XK,CD6XL,gFACE,YAKN,6DACE,sCAEA,6EACE,aCrYQ,CDuYR,mFACE,YAKN,2DACE,sCAEA,2EACE,aClZM,CDoZN,iFACE,YAON,gEACE,sBACA,wBAKF,sEACE,SAKF,oDACE,eAIJ,sDACE,sBACA,sBAGF,oDAGE,uBADA,WADA,SAEA,CAGF,0DACE,uBAGF,0DAIE,2BADA,mBAFA,eACA,aAEA,CAGF,4CACE,kBAAmB,CACnB,sBAAuB,CAEvB,6DACE,kBAAmB,CACnB,sBAAuB,CAKrB,qRAGE,4BAYJ,2KACE,mCACA,2BAGF,2JAEE,kCACA,mBAGA,wBAFA,mCACA,gBAJA,0BAMA,kBACA,mBAKF,wGACE,0BAGF,6EAGE,2CAEA,wBAHA,0BAIA,kBACA,mBANA,oBAMA,CAEA,yFACE,6CAGF,wFACE,8CAIJ,uFACE,4CAIJ,4DACE,wBACA,iCAEA,8DACE,wBAGF,uFAKE,WADA,iCAHA,YAEA,sCADA,iBAGA,CAEA,uHACE,2BACA,gBACA,cAIJ,oFACE,iCAEA,uGACE,kBAIA,6JAEE,iCADA,YAEA,eAKF,4HAEE,0CADA,kBAEA,wBAEA,qTAEE,iDAKN,yHAIE,oBAHA,YACA,sCACA,gBACA,CAEA,+HAKE,0CADA,kBAHA,YAEA,uCADA,YAGA,CAKN,iFACE,0CAGF,wFACE,sCAGF,qfASE,kBAFA,YACA,uCAFA,cAGA,CAEA,+hBACE,0CAIJ,wFACE,gCAEA,0FACE,4BACA,gBASF,8WAEE,kCAEA,iRACE,gCAQJ,2WAEE,iCASF,8fAEE,gCAKN,6DAEE,kCADA,kBACA,CAEA,oFACE,yBAIJ,uDACE,kBAEA,4EACE,2BACA,4BAEA,4FACE,kBAKN,0GACE,wBAGF,6DACE,0BAGF,mEACE,wCAGF,4KAME,2BAGF,uEACE,mBAIJ,4GAKE,UAGF,mDACE,mBAEA,YADA,kBAEA,iBE9sBA,6CACE,aACA,gBACA,UAIN,kCAIE,mCAAmC,CAHnC,aAEA,SADA,qBAEoC,CAGtC,kCACE,+CACA,wBACA,eACA,gBACA,gBACA,kBAGF,iCACE,SACA,gCAGE,iHACE,UAIJ,gFACE,cAIJ,uCACE,kBAGF,mCACE,4CACA,kBAGF,kCAiBE,iBAEA,SADA,kBALA,6BAQA,eAPA,gBAJA,sBAKA,cAKA,UARA,UAJA,kBAQA,qBAPA,SAaA,0CAXA,YAWA,CApBE,yEAEE,YADA,UACA","sources":["components/Global/override.scss","components/Global/style.module.scss","common/warning-color.scss","components/Drawer/style.module.scss"],"sourcesContent":["html {\n //overflow: hidden;\n}\n\nbody {\n overflow: auto !important;\n padding: 0;\n margin: 0;\n height: 100vh;\n &::-webkit-scrollbar {\n width: 0;\n height: 0;\n }\n}\n\n.simplebar-scrollbar:before {\n background: #666;\n}\n\n.container-body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,\n Helvetica Neue, Arial, Noto Sans, sans-serif, apple color emoji,\n segoe ui emoji, Segoe UI Symbol, noto color emoji;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n box-sizing: border-box;\n min-width: 1100px;\n}\n\n.ant-message {\n z-index: 3010;\n}\n\n.ant-picker-dropdown .ant-picker-month-panel .ant-picker-content {\n height: 200px;\n}\n","@import \"@common/warning-color.scss\";\n\n.container {\n word-break: break-all;\n\n &.is-not-init {\n pointer-events: none;\n opacity: 0.7;\n }\n\n --font-size-default: 14px;\n --font-size-small: 12px;\n --font-size-large: 16px;\n --font-size-18: 18px;\n --font-size-24: 24px;\n\n /*@media only screen and (max-width: 1300px) {\n --font-size-default: 13px;\n --font-size-small: 12px;\n --font-size-large: 14px;\n }*/\n\n font-size: var(--font-size-default);\n\n --line-height-default: 1.8;\n --line-height-middle: 2;\n --line-height-small: 1.5;\n --line-height-large: 2.2;\n\n line-height: var(--line-height-default);\n\n --font-color: #222222;\n --font-color-disabled: rgba(0, 0, 0, 0.25);\n --font-color-grey: #666666;\n --font-color-grey-1: #999999;\n --font-color-grey-2: #cccccc;\n --font-color-grey-3: #dddddd;\n --font-color-grey-4: #eeeeee; // 标题栏下边缘分割线\n\n color: var(--font-color);\n\n --bg-color-white: #ffffff;\n --bg-color-grey: #fafafa;\n --bg-color-grey-1: #f8f8f8; // table 行 hover 时背景色,网页整体背景色\n --bg-color-grey-2: #f3f3f3; // 小程序端首页职位列表分割线\n --bg-color-grey-3: #f1f1f1; // 弹窗头部和底部分割线,按钮背景\n --bg-color-grey-4: #fafcff;\n\n --color-warning: #d14343; // 警告色\n --color-success: #00b42a; //成功色\n\n //--primary-color: #5cb8b2;\n\n --tag-default: \"#666666\";\n --tag-success: \"#027A48\";\n --tag-progress: \"#F09700\";\n --tag-danger: \"#D14343\";\n --tag-info: \"#155ACF\";\n --tag-other: \"#6740C3\";\n\n // @for $i from 1 through 10 {\n // --primary-color-#{$i}: #{rgba(#5cb8b2, $i / 10)};\n // }\n\n /*--primary-color-red: 92;\n --primary-color-green: 184;\n --primary-color-blue: 178;*/\n\n :global {\n .ant-input[disabled],\n .ant-input-number-disabled .ant-input-number-input {\n color: var(--font-color-disabled) !important;\n }\n }\n\n :global(.iconfont) {\n font-size: 1em;\n }\n\n :global(.iconfont--color) {\n width: 1em;\n height: 1em;\n }\n\n :global(.react-filter-selected) {\n width: 100%;\n }\n\n :global(.ant-space-vertical),\n :global(.full-space),\n :global(.is-block.ant-space) {\n width: 100%;\n display: flex;\n }\n\n :global(.container) {\n background: #fff;\n }\n\n :global(.ant-btn-primary) {\n text-shadow: none;\n }\n\n :global(.ant-btn) {\n padding: 4px 12px;\n font-size: 14px;\n box-shadow: none;\n min-width: 68px;\n outline: none;\n\n &:global(.ant-btn-link) {\n min-width: unset;\n }\n\n &:global(.ant-btn-icon-only) {\n padding: 0;\n min-width: unset;\n\n :global(.iconfont) {\n margin: 0;\n }\n\n &:global(.ant-btn-lg) {\n padding: 0;\n width: 40px;\n min-width: unset;\n }\n\n &:global(.ant-btn-sm) {\n padding: 0;\n min-width: unset;\n }\n\n &:not([disabled]) {\n border-color: transparent;\n background: var(--bg-color-grey-2);\n }\n\n &[disabled] {\n color: var(--font-color-grey-2);\n border-color: transparent;\n }\n\n &:global(.ant-btn-primary):not([disabled]) {\n color: var(--primary-color);\n background: var(--primary-color-1);\n border-color: transparent;\n }\n\n &:global(.ant-btn-dangerous):not([disabled]) {\n border-color: transparent;\n color: var(--color-warning);\n background: #{rgba(#d14343, 2/16)};\n }\n\n &:global(.ant-btn-link) {\n background: transparent;\n }\n\n &:global(.ant-btn-text) {\n background: transparent;\n\n &:hover:not([disabled]) {\n background: var(--bg-color-grey-2);\n }\n }\n }\n\n :global(.iconfont) {\n margin-right: 4px;\n }\n\n &:global(.ant-btn-lg) {\n height: 40px;\n line-height: 30px;\n padding: 4px 16px;\n font-size: 16px;\n min-width: 80px;\n }\n\n &:global(.ant-btn-sm) {\n font-size: 12px;\n padding: 0 8px;\n min-width: 48px;\n }\n\n &:global(.ant-btn-link.btn-no-padding),\n &:global(.ant-btn-text.btn-no-padding) {\n padding: 0;\n height: auto;\n border: none;\n min-width: unset;\n\n &:hover {\n background-color: unset;\n }\n }\n\n &:global(\n .ant-btn[disabled],\n .ant-btn[disabled]:hover,\n .ant-btn[disabled]:focus,\n .ant-btn[disabled]:active\n ) {\n background: var(--bg-color-grey-3);\n color: var(--font-color-grey-2);\n border-color: var(--font-color-grey-2);\n }\n\n &:global(.ant-btn-dangerous) {\n &:not([disabled]) {\n color: var(--color-warning);\n border-color: var(--color-warning);\n }\n\n &:global(.ant-btn-link):not([disabled]),\n &:global(.ant-btn-text):not([disabled]) {\n border-color: transparent;\n }\n\n &:global(.ant-btn-primary):not([disabled]) {\n background: var(--color-warning);\n color: #fff;\n }\n }\n }\n\n :global(.ant-typography) {\n line-height: unset;\n\n :global(.iconfont):first-child {\n margin-right: 4px;\n }\n\n &:global(.ant-btn) {\n padding: 0;\n border: unset;\n height: unset;\n line-height: unset;\n }\n\n &:global(.ant-btn-dangerous) {\n color: var(--color-warning);\n }\n }\n\n :global(.btn-text-link) {\n padding: 0;\n border: none;\n background: transparent;\n color: var(--primary-color);\n box-shadow: none !important;\n transition: none !important;\n touch-action: none !important;\n\n &:hover,\n &:focus,\n &:active,\n &:focus-visible,\n &:focus-within {\n background: transparent;\n color: var(--primary-color);\n border-color: transparent;\n outline: none !important;\n box-shadow: none;\n transition: none !important;\n touch-action: none !important;\n }\n }\n\n :global(.ant-list-bordered) {\n border-color: var(--bg-color-grey-2);\n }\n\n :global(.ant-list-split .ant-list-item) {\n border-bottom-color: var(--bg-color-grey-2);\n }\n\n :global(\n .ant-select-item-option-selected:not(.ant-select-item-option-disabled)\n ) {\n color: var(--primary-color);\n font-weight: normal;\n }\n\n :global(.ant-segmented) {\n background-color: var(--bg-color-grey-2);\n }\n\n :global(.ant-segmented-item) {\n color: var(--font-color-grey);\n\n &:global(.ant-segmented-item-selected) {\n color: var(--font-color);\n }\n }\n\n :global(.loading-container.is-loading) {\n opacity: 0.5;\n pointer-events: none;\n position: relative;\n transition: opacity 300ms;\n @keyframes loading-rotate {\n 0% {\n transform: translate(-50%, -50%) rotate(0deg);\n }\n 100% {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n }\n\n &:after {\n position: absolute;\n top: 50%;\n left: 50%;\n content: \"\\e688\";\n font-family: \"iconfont\";\n transform: translate(-50%, -50%);\n animation: loading-rotate 2s infinite;\n font-size: 20px;\n color: var(--font-color-grey-2);\n }\n }\n\n :global(.ant-modal.ant-zoom-leave) {\n :global(.ant-modal-body),\n :global(.ant-modal-footer) {\n pointer-events: none;\n }\n }\n\n :global(.ant-tooltip) {\n :global(.ant-tooltip-arrow:before) {\n background-color: #ffffff;\n }\n }\n\n :global(.ant-alert) {\n border: none;\n align-items: baseline;\n\n &:global(.ant-alert-with-description .ant-alert-message) {\n font-weight: bold;\n }\n\n :global(.ant-alert-description) {\n color: var(--font-color-grey);\n }\n\n :global(.ant-alert-icon) {\n font-family: iconfont !important;\n margin-right: 8px !important;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-size: 14px;\n width: 1em;\n height: 1em;\n\n svg {\n display: none;\n }\n }\n\n &:global(.ant-alert-success) {\n background-color: #{rgba($success-color, 1/16)};\n\n :global(.ant-alert-icon) {\n color: $success-color;\n\n &:after {\n content: \"\\e67d\";\n }\n }\n }\n\n &:global(.ant-alert-info) {\n background-color: #{rgba($info-color, 1/16)};\n\n :global(.ant-alert-icon) {\n color: $info-color;\n\n &:after {\n content: \"\\e6ae\";\n }\n }\n }\n\n &:global(.ant-alert-warning) {\n background-color: #{rgba($warning-color, 1/16)};\n\n :global(.ant-alert-icon) {\n color: $warning-color;\n\n &:after {\n content: \"\\e6ab\";\n }\n }\n }\n\n &:global(.ant-alert-error) {\n background-color: #{rgba($error-color, 1/16)};\n\n :global(.ant-alert-icon) {\n color: $error-color;\n\n &:after {\n content: \"\\e67c\";\n }\n }\n }\n }\n\n :global(.ant-tooltip) {\n :global(.ant-tooltip-inner) {\n background-color: #fff;\n color: var(--font-color);\n }\n }\n\n :global(.ant-menu-submenu-popup) {\n :global(.ant-menu-sub) {\n margin: 0;\n }\n }\n\n :global {\n .ant-checkbox-group {\n flex-wrap: wrap;\n }\n }\n\n :global(.ant-checkbox-wrapper) {\n margin-inline-end: 8px;\n margin-inline-start: 0px;\n }\n\n ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: transparent;\n }\n\n ::-webkit-scrollbar:hover {\n background-color: transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n min-height: 5px;\n min-width: 5px;\n border-radius: 16px;\n background-color: rgba(102, 102, 102, 0.45);\n }\n\n :global(.table-page) {\n --cell-height: 48px;\n --cell-padding: 8px 8px;\n\n :global(.ant-table-small) {\n --cell-height: 38px;\n --cell-padding: 6px 8px;\n }\n\n &:global(.ant-table-wrapper) {\n :global(.ant-table) {\n :global(.ant-table-tbody > tr > td),\n :global(.ant-table-thead > tr > th),\n :global(tfoot > tr > td) {\n padding: var(--cell-padding);\n }\n }\n }\n\n :global(.ant-table-container) {\n //border-left: 1px solid var(--bg-color-grey-2) !important;\n //border-right: 1px solid var(--bg-color-grey-2) !important;\n }\n\n :global(.ant-table-header),\n :global(.ant-table-thead) {\n &:global(.ant-table-sticky-holder) {\n top: var(--sticky-offset) !important;\n transform: translateY(-1px);\n }\n\n :global(.ant-table-cell) {\n height: var(--cell-height);\n background: var(--bg-color-grey-3);\n border-bottom: none;\n font-size: var(--font-size-default);\n font-weight: 500;\n color: var(--font-color);\n padding-left: 24px;\n padding-right: 24px;\n }\n }\n\n :global(.ant-table-tbody) {\n :global(.ant-table-row:first-child) :global(.ant-table-cell) {\n border-top: none !important;\n }\n\n :global(.ant-table-cell) {\n word-break: break-all;\n height: var(--cell-height);\n background: var(--bg-color-white) !important;\n //border-top: 1px solid var(--bg-color-grey-2) !important;\n color: var(--font-color);\n padding-left: 24px;\n padding-right: 24px;\n\n &:first-child {\n border-left: 1px solid var(--bg-color-grey-2);\n }\n\n &:last-child {\n border-right: 1px solid var(--bg-color-grey-2);\n }\n }\n\n :global(.ant-table-cell-row-hover) {\n background: var(--bg-color-grey-1) !important;\n }\n }\n\n :global(.ant-pagination) {\n color: var(--font-color);\n font-size: var(--font-size-small);\n\n a {\n color: var(--font-color);\n }\n\n :global(.ant-pagination-total-text) {\n height: 24px;\n margin-right: 16px;\n line-height: var(--line-height-middle);\n font-size: var(--font-size-small);\n color: #222222;\n\n .total_text {\n color: var(--primary-color);\n font-weight: 500;\n padding: 0 2px;\n }\n }\n\n :global(.ant-pagination-options) {\n font-size: var(--font-size-small);\n\n :global(.ant-select-single) {\n width: fit-content;\n }\n\n :global(.ant-select-single):not(:global(.ant-select-customize-input)) {\n :global(.ant-select-selector) {\n height: 24px;\n font-size: var(--font-size-small);\n padding: 0 10px;\n }\n }\n\n :global(.ant-select-single) {\n :global(.ant-select-selector) {\n border-radius: 2px;\n border: 1px solid var(--font-color-grey-3);\n color: var(--font-color);\n\n :global(.ant-select-selection-item),\n :global(.ant-select-selection-placeholder) {\n line-height: var(--line-height-default) !important;\n }\n }\n }\n\n :global(.ant-pagination-options-quick-jumper) {\n height: 24px;\n line-height: var(--line-height-middle);\n margin-left: 16px;\n display: inline-flex;\n\n input {\n height: 24px;\n margin: 0 4px;\n line-height: var(--line-height-default);\n border-radius: 2px;\n border: 1px solid var(--font-color-grey-3);\n }\n }\n }\n\n :global(.ant-pagination-item) {\n border: 1px solid var(--font-color-grey-3);\n }\n\n :global(.ant-pagination-item-active) {\n border: 1px solid var(--primary-color);\n }\n\n :global(.ant-pagination-item),\n :global(.ant-pagination-prev),\n :global(.ant-pagination-next),\n :global(.ant-pagination-item-link),\n :global(.ant-pagination-jump-prev),\n :global(.ant-pagination-jump-next) {\n min-width: 24px;\n height: 24px;\n line-height: var(--line-height-default);\n border-radius: 2px;\n\n button {\n border: 1px solid var(--font-color-grey-3);\n }\n }\n\n :global(.ant-pagination-item-active) {\n background: var(--primary-color);\n\n a {\n color: var(--bg-color-white);\n font-weight: 400;\n }\n }\n }\n\n :global(.ant-table-row):not(:global(.ant-table-row-selected)) {\n &:nth-of-type(odd) {\n background: var(--bg-color-grey-1);\n\n :global(.ant-table-cell-fix-left),\n :global(.ant-table-cell-fix-right) {\n background: var(--bg-color-grey-1);\n\n &:hover {\n background: var(--bg-color-grey);\n }\n }\n }\n\n &:nth-of-type(even) {\n background: var(--bg-color-white);\n\n :global(.ant-table-cell-fix-left),\n :global(.ant-table-cell-fix-right) {\n background: var(--bg-color-white);\n\n &:hover {\n background: var(--bg-color-grey);\n }\n }\n }\n\n &:hover {\n :global(.ant-table-cell-fix-left),\n :global(.ant-table-cell-fix-right) {\n background: var(--bg-color-grey);\n }\n }\n }\n\n :global(.ant-table-thead) {\n white-space: nowrap;\n background: var(--bg-color-grey-3);\n\n :global(.ant-table-cell):before {\n content: normal !important;\n }\n }\n\n :global(.ant-table) {\n border-radius: 4px;\n\n :global(.ant-table-container) {\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n\n :global(.ant-table-cell) {\n padding-left: 16px;\n }\n }\n }\n\n :global(.ant-table-container) table > thead > tr:first-child th:last-child {\n border-radius: 0 4px 0 0;\n }\n\n :global(.ant-table) table {\n border-radius: 4px 4px 0 0;\n }\n\n :global(.ant-table-thead) > tr > th {\n background-color: var(--bg-color-grey-4);\n }\n\n :global(.ant-table-container),\n :global(.ant-table-container)\n table\n > thead\n > tr:first-child\n th:first-child {\n border-top-left-radius: 4px;\n }\n\n :global(.ant-table-row-expand-icon) {\n border-color: transparent;\n }\n }\n\n :global(\n .ant-notification\n .ant-notification-notice-wrapper\n .ant-notification-notice\n ) {\n padding: 0;\n }\n\n :global(.ant-tag.no-border) {\n background: #f3f3f3;\n border-radius: 2px;\n border: none;\n padding: 4px 12px;\n }\n}\n","$success-color: #00b42a;\n$info-color: #165dff;\n$error-color: #f53f3f;\n$warning-color: #ff7d00;\n",".drawer {\n :global {\n .ant-drawer-body {\n display: flex;\n overflow: hidden;\n padding: 0;\n }\n }\n}\n.drawer-outer {\n display: flex;\n flex-direction: column;\n flex: 1;\n --drawer-height: calc(100vh - 110px);\n}\n\n.drawer-title {\n border-bottom: 1px solid var(--bg-color-grey-3);\n color: var(--font-color);\n font-size: 16px;\n font-weight: 700;\n margin-bottom: 0;\n padding: 11px 24px;\n}\n\n.drawer-body {\n flex: 1;\n max-height: var(--drawer-height);\n\n &.is-disabled-scroller {\n .drawer-body-inner {\n padding: 0;\n }\n }\n\n &:not(.is-disabled-scroller) {\n overflow: auto;\n }\n}\n\n.drawer-body-inner {\n padding: 24px 32px;\n}\n\n.drawer-footer {\n border-top: 1px solid var(--bg-color-grey-3);\n padding: 12px 24px;\n}\n\n.drawer-close {\n &:global {\n &.ant-btn.ant-btn-icon-only.ant-btn-text {\n width: 22px;\n height: 22px;\n }\n }\n\n position: absolute;\n top: 17px;\n inset-inline-end: 17px;\n z-index: 1010;\n padding: 0;\n color: var(--font-color-grey);\n font-weight: 600;\n line-height: 1;\n text-decoration: none;\n background: transparent;\n border-radius: 2px;\n border: 0;\n outline: 0;\n cursor: pointer;\n transition: color 0.2s, background-color 0.2s;\n}\n"],"names":[],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 1554.d1c73092.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1554,4671],{64671:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});s(73884);var n=s(83136),o=s.n(n),l=s(70579);const r=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),_=e=>{let{type:t,colorful:s,className:n,size:_,style:a,prefix:c,...i}=e;const p=((e,t,s)=>"icon-"===t||""===t?(s?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,c,s),d=o()(n,{iconfont:!s,"iconfont--color":s},p),f=Object.assign({},a,_?{fontSize:r(_)}:{});return s?(0,l.jsx)("svg",{...i,"data-testid":"components-core-iconfont",className:d,style:f,children:(0,l.jsx)("use",{xlinkHref:`#${t}`,style:{pointerEvents:"none"}})}):(0,l.jsx)("i",{...i,"data-testid":"components-core-iconfont",className:d,style:f})};_.defaultProps={colorful:!1,prefix:""};const a=_},21554:(e,t,s)=>{s.r(t),s.d(t,{TooltipFetch:()=>k,TooltipInfoLabel:()=>g,default:()=>F});var n=s(55199),o=s(83136),l=s.n(o);const r="style_tooltip__zHGMI__SCBFp",_="style_large__lvmsm__SCBFp",a="style_small__nUt0r__SCBFp",c="style_popup-content__-rKQN__SCBFp",i="style_title__1EQPq__SCBFp",p="style_important-info__qTSZY__SCBFp",d="style_error__yTTq3__SCBFp",f="style_warning__CMJxz__SCBFp",y="style_success__AvJVx__SCBFp",u="style_sub-title__uD8CH__SCBFp",m="style_content__lzgUz__SCBFp",x="style_alone__q6q82__SCBFp",h="style_fetch-content__tEOEV__SCBFp",C="style_fetch-loading__tN-WB__SCBFp",S="style_title-info-icon__iY8Q+__SCBFp";var v=s(70579);const j=e=>{let{overlayClassName:t,title:s,size:o,subtitle:h,content:C,importantInfo:S,importantInfoType:j,moreInfo:F,...N}=e;return(0,v.jsx)(n.Tooltip,{...N,overlayClassName:l()(t,r,{[a]:"small"===o,[_]:"large"===o}),title:(0,v.jsxs)(n.Space,{direction:"vertical",className:c,children:[s&&(0,v.jsx)("div",{className:i,children:s}),S&&(0,v.jsx)("div",{className:l()(p,{[y]:"success"===j,[f]:"warning"===j,[d]:"error"===j}),children:S}),h&&(0,v.jsx)("div",{className:u,children:h}),C&&(0,v.jsx)("div",{className:l()(m,{[x]:[s,h,S,F].every((e=>!e))}),children:C}),F&&(0,v.jsx)("div",{children:F})]})})};j.defaultProps={};const F=j;var N=s(64671);const g=e=>{let{title:t,tooltipTitle:s}=e;return(0,v.jsxs)("div",{children:[t,s?(0,v.jsx)(F,{...s,children:(0,v.jsx)("span",{children:(0,v.jsx)(N.default,{type:"icon-xinxi-miaobian",className:S,size:14})})}):null]})};var B=s(73884),O=s(87558);const b=e=>{let{api:t,children:s,fetchContent:o,showLoading:r,loadingClassName:_,force:a,...c}=e;const[i,p]=(0,B.useState)(!1),d=(0,O.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:f,isLoading:y,data:u,send:m}=d;return(0,v.jsx)(F,{...Object.assign({},c,f?o(u,d):{}),open:i,onOpenChange:async e=>{!e||f&&!a||await m({type:"refresh"}),p(e)},children:(0,v.jsxs)("span",{className:h,children:[s,r&&y?(0,v.jsx)(n.Spin,{size:"small",className:l()(_,C)}):null]})})};b.defaultProps={showLoading:!0};const k=b},51153:(e,t,s)=>{var n=s(73884),o=Symbol.for("react.element"),l=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,_=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,s){var n,l={},c=null,i=null;for(n in void 0!==s&&(c=""+s),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(i=t.ref),t)r.call(t,n)&&!a.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:i,props:l,_owner:_.current}}t.Fragment=l,t.jsx=c,t.jsxs=c},70579:(e,t,s)=>{e.exports=s(51153)}}]);
|
|
3
|
-
//# sourceMappingURL=1554.d1c73092.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2503,2723,9034],{17342:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var l=i(8762),n=i.n(l);i(46733);const s=n()},82723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l.Content});var l=i(44802)},89384:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>F});var l=i(55199),n=i(53984),s=i.n(n),a=i(83136),o=i.n(a),r=i(17342),c=i(63908),d=i(64671),_=i(82723);const u={notification:"style_notification__Vv-MM__SCBFp",list:"style_list__l8KOo__SCBFp",header:"style_header__3dcv8__SCBFp",item:"style_item__d92RS__SCBFp","item-box":"style_item-box__dd-Lk__SCBFp","index-1":"style_index-1__f97L0__SCBFp","index-2":"style_index-2__04vAw__SCBFp","item-box-main":"style_item-box-main__lnSak__SCBFp","item-title":"style_item-title__mArMd__SCBFp","level-high":"style_level-high__Uys7Y__SCBFp","level-middle":"style_level-middle__EewyC__SCBFp","level-low":"style_level-low__8kVyL__SCBFp","title-icon":"style_title-icon__1EoAG__SCBFp","item-subtitle":"style_item-subtitle__xeFJs__SCBFp","close-btn":"style_close-btn__7qpG3__SCBFp","is-loading":"style_is-loading__upVL+__SCBFp","item-content":"style_item-content__8MlsG__SCBFp","link-outer":"style_link-outer__kegyZ__SCBFp",link:"style_link__F2CO-__SCBFp","is-last-item":"style_is-last-item__MytRl__SCBFp"};var p=i(73884),v=i(39835),h=i.n(v),m=i(85855),x=i.n(m),f=i(96604),g=i.n(f),y=i(81014),j=i(32520),b=i.n(j),C=i(70579);const S=["high","middle","low"],k=e=>{let{level:t,title:i,groupLength:n,subtitle:s,content:a,link:r,id:p,children:v,className:h}=e;const{setGlobal:m}=(0,c.useGlobalContext)("notification"),{apis:x,ajax:f}=(0,c.usePreset)(),{isLoading:j,callback:S}=(0,y.useLoading)((async()=>{var e;const{data:t}=null!==x&&void 0!==x&&null!==(e=x.notification)&&void 0!==e&&e.read?await f(Object.assign({},x.notification.read,{data:{ids:[p]}})):{data:{code:0}};0===t.code&&m((e=>{const t=((null===e||void 0===e?void 0:e.list)||[]).slice(0),i=b()(t,(e=>p===e.id));return i>-1&&t.splice(i,1),Object.assign({},e,{list:t})}))}));return(0,C.jsxs)("div",{className:o()(u.item,h),style:{"--group-length":Math.min(n,3)||1},children:[n&&n>1&&g()(1,Math.min(n,3)).reverse().map((e=>(0,C.jsx)("div",{className:o()(u["item-box"],u[`index-${e}`])},e))),(0,C.jsxs)("div",{className:o()(u["item-box"],u["item-box-main"]),children:[(0,C.jsxs)("div",{className:o()(u["item-title"],u[`level-${t}`]),children:[(0,C.jsx)(d.default,{className:u["title-icon"],type:"high"===t?"icon-tishi":"icon-daiwochuli"}),(0,C.jsx)(l.Typography.Text,{ellipsis:!0,children:i})]}),(0,C.jsxs)("div",{className:u["item-content"],children:[(0,C.jsxs)("div",{className:u["item-subtitle"],children:[(0,C.jsx)(l.Typography.Text,{ellipsis:!0,children:s||""}),(0,C.jsx)(d.default,{className:o()(u["close-btn"],{[u["is-loading"]]:j}),type:"icon-close-thin",onClick:()=>{j||p&&S()}})]}),Array.isArray(a)?(0,C.jsx)(_.default,{list:a,labelAlign:"auto",size:"small"}):v]}),r&&(0,C.jsx)("div",{className:u["link-outer"],children:(0,C.jsx)(y.default,{className:u.link,size:"small",onClick:async()=>{var e;const{data:t}=null!==x&&void 0!==x&&null!==(e=x.notification)&&void 0!==e&&e.read?await f(Object.assign({},x.notification.read,{data:{ids:[p]}})):{data:{code:0}};0===t.code&&window.open(r)},children:"\u67e5\u770b\u8be6\u60c5"})})]})]})};k.defaultProps={level:"low"};const F=e=>{let{itemClassName:t}=e;const{global:i,setGlobal:n}=(0,c.useGlobalContext)("notification"),a=(0,p.useRef)(),{apis:d,ajax:_}=(0,c.usePreset)(),[v,m]=(0,p.useState)(32);(0,p.useEffect)((()=>{var e;a.current&&m(null===(e=a.current)||void 0===e?void 0:e.clientHeight)}),[]);const{list:f,expand:g}=Object.assign({},{expand:!1,list:[]},i),j=(0,p.useMemo)((()=>{const e=h()(f,(e=>e.level||"low"));return S.map((t=>e[t]||[]))}),[f]);return 0===f.length?null:(0,C.jsxs)("div",{className:o()({},u.notification,"notification"),style:{"--head-option-height":`${v}px`},children:[(0,C.jsx)("div",{ref:a,children:(0,C.jsxs)(l.Row,{justify:"end",wrap:!1,className:u.header,gutter:8,children:[j.some((e=>e.length>1))&&(0,C.jsx)(l.Col,{children:(0,C.jsx)(l.Button,{size:"small",onClick:()=>{n(Object.assign({},i,{expand:!g}))},children:g?"\u5168\u90e8\u6298\u53e0":"\u5168\u90e8\u5c55\u5f00"})}),(0,C.jsx)(l.Col,{children:(0,C.jsx)(y.default,{type:"primary",size:"small",onClick:async()=>{var e;const{data:t}=null!==d&&void 0!==d&&null!==(e=d.notification)&&void 0!==e&&e.read?await _(Object.assign({},d.notification.read,{data:{ids:f.map((e=>e.id)).filter((e=>!!e))}})):{data:{code:0}};0===t.code&&n(Object.assign({},i,{list:[]}))},children:"\u5168\u90e8\u6e05\u9664"})})]})}),(0,C.jsx)(r.A,{className:u.list,children:(0,C.jsx)(s(),{leaveReverse:!0,duration:200,interval:20,children:j.filter((e=>e&&e.length>0)).map(((e,i)=>{var l;if(g)return e.map(((t,l)=>{var n;return t&&(0,C.jsx)("div",{children:(0,C.jsx)(k,{...Object.assign({},t),className:o()({[u["is-last-item"]]:+i+1===Math.min(null===(n=j.filter((e=>e&&e.length)))||void 0===n?void 0:n.length,3)&&l===(null===e||void 0===e?void 0:e.length)-1})})},`group-${i}-${l}`)}));const n=x()(e);return(0,C.jsx)("div",{children:(0,C.jsx)(k,{...Object.assign({},n),groupLength:e.length,className:o()({[u["is-last-item"]]:(null===j||void 0===j?void 0:j.length)&&+i+1===Math.min(null===(l=j.filter((e=>e&&e.length)))||void 0===l?void 0:l.length,3)},t)})},`group-${i}-0`)}))})})]})}},94710:e=>{e.exports=function(e,t,i,l){for(var n=-1,s=null==e?0:e.length;++n<s;){var a=e[n];t(l,a,i(a),e)}return l}},32952:(e,t,i)=>{var l=i(45652);e.exports=function(e,t,i,n){return l(e,(function(e,l,s){t(n,e,i(e),s)})),n}},45652:(e,t,i)=>{var l=i(94664),n=i(76516)(l);e.exports=n},75816:e=>{e.exports=function(e,t,i,l){for(var n=e.length,s=i+(l?1:-1);l?s--:++s<n;)if(t(e[s],s,e))return s;return-1}},19449:(e,t,i)=>{var l=i(94710),n=i(32952),s=i(9096),a=i(54052);e.exports=function(e,t){return function(i,o){var r=a(i)?l:n,c=t?t():{};return r(i,e,s(o,2),c)}}},76516:(e,t,i)=>{var l=i(6571);e.exports=function(e,t){return function(i,n){if(null==i)return i;if(!l(i))return e(i,n);for(var s=i.length,a=t?s:-1,o=Object(i);(t?a--:++a<s)&&!1!==n(o[a],a,o););return i}}},32520:(e,t,i)=>{var l=i(75816),n=i(9096),s=i(99140),a=Math.max;e.exports=function(e,t,i){var o=null==e?0:e.length;if(!o)return-1;var r=null==i?0:s(i);return r<0&&(r=a(o+r,0)),l(e,n(t,3),r)}},85855:(e,t,i)=>{e.exports=i(96483)},39835:(e,t,i)=>{var l=i(71775),n=i(19449),s=Object.prototype.hasOwnProperty,a=n((function(e,t,i){s.call(e,i)?e[i].push(t):l(e,i,[t])}));e.exports=a},96483:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},99140:(e,t,i)=>{var l=i(37303);e.exports=function(e){var t=l(e),i=t%1;return t===t?i?t-i:t:0}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=2503.f29706bd.chunk.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 2716.ecc181f9.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2716],{62716:(t,e,r)=>{r.r(e),r.d(e,{default:()=>i});var s=r(73884),a=r(83136),l=r.n(a);const o={"state-tag":"style_state-tag__Kx27z__SCBFp","state-result-tag":"style_state-result-tag__CssDz__SCBFp","state-skill-tag":"style_state-skill-tag__k0bQE__SCBFp","event-tag":"style_event-tag__cg6SE__SCBFp","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__SCBFp","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__SCBFp","state-tag-filterResult":"style_state-tag-filterResult__KTkot__SCBFp","show-bg":"style_show-bg__OcL+R__SCBFp","tag-text":"style_tag-text__JHCt+__SCBFp","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__SCBFp"};var _=r(55199),n=r(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},p=t=>{let{showBorder:e,text:r,type:a,showBackground:p,className:i,filterName:g,...u}=t;const d=(0,s.useMemo)((()=>{var t,e;return{color:(null===c||void 0===c||null===(t=c[a])||void 0===t?void 0:t.color)||c[a],borderColor:(null===c||void 0===c||null===(e=c[a])||void 0===e?void 0:e.borderColor)||c[a]}}),[a]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:l()(o["state-tag-wrapper"],"filterResult"===a?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[g?(0,n.jsxs)("span",{className:o["state-tag-filter-name"],children:[g,":"]}):null,(0,n.jsx)(_.Tag,{color:d.color,...u,style:{background:p?d.color+"0F":"none",color:d.color,border:e?`1px solid ${d.borderColor}`:"none"},className:l()(o["state-tag"],i,"result"===a?o["state-result-tag"]:"","skill"===a?o["state-skill-tag"]:"",o[`state-tag-${a}`],p?o["show-bg"]:"",e?o["show-border"]:"",null!==u&&void 0!==u&&u.onClick?o["event-tag"]:""),children:(0,n.jsx)("span",{className:o["tag-text"],children:r})})]})};p.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const i=p},51153:(t,e,r)=>{var s=r(73884),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,_=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,r){var s,l={},c=null,p=null;for(s in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(p=e.ref),e)o.call(e,s)&&!n.hasOwnProperty(s)&&(l[s]=e[s]);if(t&&t.defaultProps)for(s in e=t.defaultProps)void 0===l[s]&&(l[s]=e[s]);return{$$typeof:a,type:t,key:c,ref:p,props:l,_owner:_.current}}e.Fragment=l,e.jsx=c,e.jsxs=c},70579:(t,e,r)=>{t.exports=r(51153)}}]);
|
|
3
|
-
//# sourceMappingURL=2716.ecc181f9.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2730,9034,8725],{18411:(e,t,a)=>{a.d(t,{A:()=>r});a(73884);const r=a.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},97211:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(87558),s=a.n(r),n=a(63908),i=a(34677),o=a.n(i),l=a(70579);const c=e=>{const t=t=>{let{id:a,url:r,error:i,apis:c,loading:d,...u}=t;const{apis:p}=(0,n.usePreset)(),m=o()({},p,c);if(!a)return null;if(!m.oss)throw new Error("\u8bf7\u5728Global\u7ec4\u4ef6\u8bbe\u7f6epreset.apis.oss\u53c2\u6570");const{paramsType:f,paramsName:g,..._}=Object.assign({paramsType:"params",paramsName:"id"},m.oss),h={};return h[f]={[g]:a},(0,l.jsx)(s(),{...Object.assign({},_,h),updateType:"refresh",error:i,loading:d,cache:"oss-file",ttl:6e6,render:t=>{let{data:r}=t;return(0,l.jsx)(e,{...u,id:a,data:r})}})};return t.defaultProps={loading:null},t}},40438:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});var r=a(87558),s=a.n(r),n=a(97211),i=a(64671),o=a(83136),l=a.n(o),c=a(55199),d=a(73884);const u=e=>{let{params:t}=e;const{data:a}=t;return new Promise(((e,t)=>{const r=new window.Image;r.src=a,r.addEventListener("load",(()=>{e(a)})),r.addEventListener("error",(e=>{t(e)}))}))},p="style_img-outer__4QLY5__SCBFp",m="style_img__PSExq__SCBFp",f="style_loading__WCOwA__SCBFp",g="style_error__+ECgZ__SCBFp";var _=a(18411),h=a(63908),x=a(70579);const v=e=>{let{data:t,className:a,alt:r,innerLoading:n,loading:i,error:o,innerError:c,children:d,onClick:p,staticUrl:f}=e;const{staticUrl:g}=(0,h.usePreset)(),_=f||g||"";return(0,x.jsx)(s(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:_+t},error:c||o,loading:n||i,render:e=>{let{data:t}=e;return"function"===typeof d?d({alt:r,className:l()(a,m),src:t}):(0,x.jsx)("img",{alt:r,className:l()(a,m),src:t,onClick:p})}})},j=(0,n.A)(v),y=e=>{let{loading:t,error:a,src:r,id:s,alt:n,className:i,children:o,apis:l,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:f}),p=a&&(0,d.cloneElement)(a,{className:g});return r?(0,x.jsx)(v,{alt:n,className:i,data:r,loading:u,error:p,onClick:c,children:o}):s?(0,x.jsx)(j,{alt:n,className:i,id:s,loading:u,innerLoading:u,error:p,innerError:p,apis:l,onClick:c,children:o}):p},N=e=>{let{id:t,src:a,alt:r,onClick:s,loading:n,error:i,className:o,apis:c,...d}=e;return(0,x.jsx)("div",{...d,"data-testid":"components-core-image",className:l()(o,p),children:y({loading:n,error:i,src:a,id:t,alt:r,className:o,apis:c,onClick:s})})};N.Avatar=e=>{let{id:t,src:a,alt:r,gender:s,loading:n,error:o,className:d,gap:u,icon:m,children:f,shape:g,size:_,width:h,height:v,defaultAvatar:j,apis:N,...C}=e;const b=(()=>{const e=h&&v?{style:{width:h,height:v}}:{size:_};if(h&&h!==v&&(g="square"),t||a)return y({loading:n,error:o,src:a,defaultAvatar:j,id:t,alt:r,className:d,apis:N,children:t=>(0,x.jsx)(c.Avatar,{...t,gap:u,shape:g,...e})});if(s){const t=s&&["F","female","f"].indexOf(s)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,x.jsx)(c.Avatar,{...C,src:(0,x.jsx)(i.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:g,...e})}return(0,x.jsx)(c.Avatar,{...C,gap:u,icon:m,shape:g,size:_,src:j,...e,children:f})})();return(0,x.jsx)("div",{...C,"data-testid":"components-core-image-avatar",className:l()(d,p),style:{width:h&&v?h:_,height:h&&v?v:_},children:b})};const C={error:(0,x.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0})};N.defaultProps=Object.assign({},C),N.Avatar.defaultProps=Object.assign({},C,{size:100,defaultAvatar:_.A});const b=N},79329:(e,t,a)=>{a.r(t),a.d(t,{default:()=>E,navigationHeight:()=>A});var r=a(55199),s=a(94679),n=a(33097),i=a.n(n),o=a(73884),l=a(83136),c=a.n(l);const d=a.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var u=a(40438);const p=e=>({"en-US":()=>a.e(257).then(a.bind(a,30257)),"zh-CN":()=>a.e(5671).then(a.bind(a,5671))}[e]());var m=a(58609),f=a(96418),g=a.n(f),_=a(64671);const h="style_navigation-wrap__VF8x2__SCBFp",x="style_navigation__60RrS__SCBFp",v="style_is-fixed__kHFWj__SCBFp",j="style_navigation-logo__q9qHu__SCBFp",y="style_logo__lB9RC__SCBFp",N="style_navigation-list__EYtkg__SCBFp",C="style_navigation-options__0BdJU__SCBFp",b="style_more-icon__gNMnt__SCBFp";var w=a(70579);const{Header:k}=r.Layout,A=48,F=e=>{let{name:t,mapping:a,defaultTitle:r}=e;const s=(0,o.useRef)({mapping:a,defaultTitle:r});return(0,o.useEffect)((()=>{const e=i()(s.current.mapping.get(t),"title");document.title=(e?e+"-":"")+s.current.defaultTitle}),[t]),null},S=e=>{let{onReady:t}=e;const a=g()(t);return(0,o.useEffect)((()=>{a()}),[a]),null},B=e=>{let{permissions:t,list:a,headerLogo:n,rightOptions:l,isFixed:f,showIndex:g,indexLabel:A,defaultTitle:B,overflowedIndicator:E,base:O,onChange:L,className:T}=e;const M=(0,o.useMemo)((()=>new Map(a.map((e=>{let{key:t,...a}=e;return[t,a]})))),[a]),P=(0,s.useNavigate)(),R=(0,s.useLocation)(),z=(0,o.useRef)(),I=(0,o.useRef)(null),[q,H]=(0,o.useState)("\u66f4\u591a"),[U,W]=(0,o.useState)(!1),Y=R.pathname.replace(new RegExp(`^${O}`),"").split("/")[1],G=Y?i()(Array.from(M.entries()).find((e=>{let[a,{path:r,permission:s}]=e;return-1!==("function"===typeof r?r(s,t):r).indexOf("/"+Y)})),"[0]"):"home";(0,o.useEffect)((()=>{const e=()=>{if(z.current){const e=z.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let r=0;r<e.length;r++){if(-1!==e[r].getAttribute("data-menu-id").indexOf(G)){t=!0;break}}let a=M.get(G)&&!t?i()(M.get(G),"title"):"";H(a)}},t={attributes:!0,childList:!0,subtree:!0};return U&&z&&z.current&&(e(),I.current&&I.current.disconnect(),I.current=new MutationObserver(e),I.current.observe(z.current,t)),()=>{I.current&&I.current.disconnect()}}),[G,M,U]);const J=!!g&&{label:A||(0,w.jsx)(m.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{L&&L("/"),setTimeout((()=>{P("/")}),0)}};return(0,w.jsxs)(m.IntlProvider,{importMessages:p,moduleName:"Navigation",children:[(0,w.jsx)(m.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,w.jsx)(F,{defaultTitle:B||e,mapping:M,name:G})}),(0,w.jsx)("div",{className:c()(h,T),children:(0,w.jsx)(k,{className:c()("navigation",x,{[v]:f}),children:(0,w.jsxs)(r.Row,{justify:"space-around",wrap:!1,children:[(0,w.jsx)(r.Col,{className:c()("navigation-logo",j),children:(0,w.jsx)(u.default,{className:c()(y),src:d,alt:"logo",...n})}),(0,w.jsxs)(r.Col,{ref:z,flex:1,className:c()("navigation-list",N),children:[(0,w.jsx)(S,{onReady:()=>{W(!0)}}),(0,w.jsx)(r.Menu,{selectedKeys:[G],mode:"horizontal",overflowedIndicator:E||(0,w.jsxs)(r.Space,{size:4,children:[(0,w.jsx)("span",{children:q||(0,w.jsx)(m.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,w.jsx)("span",{className:b,children:(0,w.jsx)(_.default,{type:"icon-arrow-thin-down"})})]}),items:[J,...Array.from(M.entries()).filter((e=>{let[a,{permission:r}]=e;if("string"===typeof r)return t.indexOf(r)>-1;if("function"===typeof r)return r(t);if(Array.isArray(r)){for(let e of r)if(t.indexOf(e)>-1)return!0;return!1}return!0})).map((e=>{let[a,{title:r,path:s,permission:n}]=e;const i="function"===typeof s?s(n,t):s;return{label:r,key:a,onClick:()=>{L&&L(i),setTimeout((()=>{P(i)}),0)}}}))]})]}),(0,w.jsx)(r.Col,{className:C,children:l})]})})})]})};B.defaultProps={isFixed:!0,permissions:[],list:[],showIndex:!0,base:""};const E=B}}]);
|
|
2
|
-
//# sourceMappingURL=2730.4eefaecf.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5600,9034,2517],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(8762),l=t.n(n);t(46733);const s=l()},58407:(e,o,t)=>{t.r(o),t.d(o,{ConfirmLink:()=>C,ConfirmText:()=>g,default:()=>y,withConfirm:()=>f});t(73884);var n=t(55199);const l=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var s=t(64671),i=t(58609),a=t(3382),r=t(83136),c=t.n(r);const d="style_overlay__99t5t__SCBFp",m="style_is-danger__gxyAB__SCBFp",p="style_title__EEPu2__SCBFp",h="style_content__mZZg5__SCBFp",_="style_has-title__5+PEt__SCBFp";var u=t(70579);const f=e=>{const o=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:l})((o=>{let{title:t,message:l,isDelete:r=!0,onClick:f,onCancel:C,disabled:g,showCancel:y,cancelText:x,isModal:b,okText:j,placement:S,getContainer:B,...w}=o;const{formatMessage:N}=(0,i.useIntl)({moduleName:"ConfirmButton"}),k=(0,a.useConfirmModal)();return b?(0,u.jsx)(e,{...w,disabled:g,onClick:e=>{k({type:"confirm",title:t,getContainer:B,danger:r,confirmType:r?"warning":"info",message:l||N({id:"message"}),okText:j||N(r?{id:"delete"}:{id:"confirm"}),cancelText:x||N({id:"cancel"}),onCancel:C,onOk:f})}}):(0,u.jsx)(n.Popconfirm,{title:(0,u.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(n.Space,{size:0,align:"start",className:p,children:[r&&(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,u.jsxs)(n.Space,{size:0,align:"start",className:c()(h,{[_]:t}),children:[!t&&r?(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||N({id:"message"})]})]}),placement:S,onConfirm:f,okButtonProps:{danger:r},onCancel:C,overlayClassName:c()(d,{[m]:r}),getPopupContainer:B,disabled:g,showCancel:y,cancelText:x,okText:j||N(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...w,disabled:g})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},C=f(n.Typography.Link),g=f(n.Typography.Text),y=f(n.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>T,TabsModal:()=>v,TabsModalButton:()=>M,default:()=>N,useConfirmModal:()=>w,useModal:()=>B,useTabsModal:()=>F});var n=t(73884),l=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__SCBFp",large:"style_large__iaqVE__SCBFp","modal-body-inner":"style_modal-body-inner__4PhpA__SCBFp","modal-title":"style_modal-title__dswaw__SCBFp","modal-outer":"style_modal-outer__r3SkX__SCBFp","modal-body":"style_modal-body__jQJSI__SCBFp","right-options-modal":"style_right-options-modal__FajDP__SCBFp","right-options-row":"style_right-options-row__-mPb9__SCBFp","right-options-col":"style_right-options-col__3ilee__SCBFp","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__SCBFp",content:"style_content__k6MIF__SCBFp","modal-footer":"style_modal-footer__-prbN__SCBFp","modal-close":"style_modal-close__Oa5Kl__SCBFp","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__SCBFp","is-danger":"style_is-danger__H5110__SCBFp",title:"style_title__orTym__SCBFp","has-title":"style_has-title__qy0Wp__SCBFp"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var p=t(81014),h=t(17342),_=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:n}=e;return o?(0,_.jsxs)(l.Row,{wrap:!1,className:a["right-options-row"],children:[(0,_.jsx)(l.Col,{span:24-t,className:a["right-options-col"],children:n}),(0,_.jsx)(l.Col,{span:t,className:a["right-options-col"],children:o})]}):n},C=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":C(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":C(300,o)}}:{width:"1000px",style:{"--min-modal-height":C(500,o)}},y=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,_.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(l.Col,{children:(0,_.jsx)(l.Space,{children:(t||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:l,autoClose:s=!0,display:i,...r}=e;const c=t||p.default;return(0,n.createElement)(c,{...r,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(l&&l(...o,d));return s&&!1!==n&&a&&a(),n}})}))})})]})},x=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:p,onCancel:u,children:f,targetProps:C}=e;const g=(0,n.useRef)(null);return(0,_.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:a["modal-title"],children:o}),(0,_.jsx)(h.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,_.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,_.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,_.jsx)(y,{footer:t,footerButtons:r,onConfirm:p,onCancel:u,onClose:c,targetProps:C})}):null]})},b=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:h,children:u}=e;const C=e=>(e=Object.assign({},{title:n},e),(0,_.jsx)(x,{title:m(e.title,{...e,childrenRef:h,close:s}),closable:l,onClose:s,onConfirm:i,onCancel:a,footerButtons:m(t,{...e,close:s}),disabledScroller:p,footer:m(r,{...e,childrenRef:h,close:s}),targetProps:Object.assign({},e,{childrenRef:h,close:s}),children:(0,_.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:h,close:s}),children:m(u,{...e,childrenRef:h,close:s})})}));return"function"===typeof o?o(C):C({})},j=e=>{let{children:o,rightOptions:t,rightSpan:n,footer:l,footerButtons:s,className:d,size:m,title:p,onClose:h,onConfirm:u,onCancel:f,closable:C,disabledScroller:y,withDecorator:x,childrenRef:j,...S}=e;return{...S,icon:null,centered:!0,title:null,maskClosable:!!S.hasOwnProperty("maskClosable")&&S.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:h,className:i()(d,a.modal,a[m],{[a["right-options-modal"]]:t}),...g(m,!(null===l&&!s)),children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:b({withDecorator:x,title:p,closable:C,onClose:h,onConfirm:u,onCancel:f,footer:l,footerButtons:s,rightOptions:t,rightSpan:n,disabledScroller:y,children:o,childrenRef:j})})}},S=e=>{const o=(0,n.useRef)(null);return(0,_.jsx)(l.Modal,{...j(Object.assign({},e,{childrenRef:o}))})};S.defaultProps={size:"default"};const B=()=>{const{modal:e}=l.App.useApp(),o=(0,n.useRef)(null);return t=>{const n={},{children:l,...s}=j({onClose:()=>n.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:l});return n.close=i,n}},w=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:r,danger:c,wrapClassName:m,message:p,iconSetting:h={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},C=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},h);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,_.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,_.jsxs)(l.Space,{size:0,align:"start",className:a.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||C["confirm"===n?u:n]}):null,r]})}),content:(0,_.jsxs)(l.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||C["confirm"===n?u:n]}):null,p]})});t.close=o}return t}},N=S,k=e=>{let{items:o,className:t,activeKey:n,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.jsx)(l.Tabs,{items:o.map((o=>{let{withDecorator:n,...l}=o;return Object.assign({},l,{children:"function"===typeof n?n((o=>e(Object.assign({},t,o,{children:l.children})))):e(Object.assign({},t,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},v=e=>(0,_.jsx)(N,{...k(e)}),F=()=>{const e=B();return o=>e(k(o))};var P=t(73025);const M=e=>{const o=F();return e.api?(0,_.jsx)(P.A,{...e,modalFunc:o}):(0,_.jsx)(l.Button,{...e,onClick:()=>{o(e.modalProps)}})},T=e=>{const o=B();if(!e.api){const{modalProps:t,...n}=e;return(0,_.jsx)(l.Button,{...n,onClick:()=>{o(t)}})}return(0,_.jsx)(P.A,{...e,modalFunc:o})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5600.298f6b6b.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5962,2095],{24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>$,DragAreaOuter:()=>q,DragButton:()=>V,FileUpload:()=>le,Title:()=>E,UploadButton:()=>X,UploadTips:()=>J,default:()=>se});var i=s(73884),n=s(33097),a=s.n(n),l=s(55199);const r="style_file-list-outer__wPhbb__SCBFp",o="style_file-list-title__zXM5r__SCBFp",c="style_container__P4RaF__SCBFp",d="style_file-preview-inner__cvE72__SCBFp",p="style_file-preview__M-Asq__SCBFp",u="style_drag-area__Q+lm7__SCBFp",m="style_upload-drag-close__u5o8W__SCBFp",x="style_upload-drag-tips__z7puZ__SCBFp",g="style_upload-drag-icon__sGGoS__SCBFp",f="style_upload-drag-title__9Afmb__SCBFp",_="style_upload-drag-text__o38vS__SCBFp",h="style_title-group__8IJkS__SCBFp",v="style_upload-btn__Q+Jxn__SCBFp",j="style_total-count__z1fyd__SCBFp",S="style_file-select__mHqyI__SCBFp",F="style_file-name__QkvMn__SCBFp",C="style_file-select-info__fOLiM__SCBFp",y="style_file-select-option__AbDrD__SCBFp";var N=s(75087),L=s.n(N),P=s(74065),w=s.n(P),b=s(57469),M=s.n(b),T=s(64671),z=s(67390),I=s(58609),B=s(70579);const D=e=>{let{currentTab:t,setCurrentTab:s,previewMap:i,previewList:n,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:p,maxWidth:u,getPopupContainer:m}=e;return(0,B.jsx)("div",{className:o,children:(0,B.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,B.jsx)(l.Col,{children:(0,B.jsxs)(l.Space,{className:h,size:4,children:[(0,B.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,B.jsxs)(l.Space,{size:4,children:[(0,B.jsx)(T.default,{type:"icon-shitu-liebiao"}),(0,B.jsx)(I.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,B.jsxs)(l.Space,{size:4,children:[(0,B.jsx)(T.default,{type:"icon-shitu-yulan"}),(0,B.jsx)(I.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&i.get(r)&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(l.Select,{className:S,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:n.map((e=>{let{filename:t,userName:s,date:i,ossId:n}=e;return(0,B.jsx)(l.Select.Option,{className:y,value:n,children:(0,B.jsxs)(l.Space,{direction:"vertical",children:[(0,B.jsxs)(l.Space,{size:4,align:"start",children:[(0,B.jsx)(L(),{type:w()(t.split(".")),size:14}),(0,B.jsx)(l.Typography.Text,{className:F,ellipsis:!0,style:{"--max-width":`${u}px`},children:t})]}),s||i?(0,B.jsxs)(l.Space,{className:C,size:24,children:[(0,B.jsxs)("div",{children:[(0,B.jsx)(I.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,B.jsxs)("div",{children:[(0,B.jsx)(I.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",i&&M()(i).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},n)}))}),(0,B.jsx)(z.OptionButtons,{hasPreview:!1,getPermission:a,item:i.get(r),apis:d}),(0,B.jsx)("div",{className:j,children:(0,B.jsx)(I.FormattedMessage,{id:"totalCount",values:{count:n.length},moduleName:"FileList"})})]})]})}),(0,B.jsx)(l.Col,{children:p})]})})};D.defaultProps={maxWidth:260};const E=D,A=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var O=s(70720),U=s.n(O),k=s(83136),R=s.n(k);const G=(0,i.createContext)({}),{Provider:W}=G,Y=()=>(0,i.useContext)(G);var H=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:i}=Y();return(0,B.jsx)("div",{ref:i,className:v,onClick:()=>{s((e=>!e))},children:(0,B.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,B.jsx)(T.default,{type:"icon-tuozhuaishangchuan"}),t||(0,B.jsx)(I.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:i}=Y();return(0,B.jsxs)(H.AG,{className:v,accept:s,multiple:!0,onChange:i,children:[(0,B.jsx)(T.default,{type:"icon-tianjia"}),t]})},q=e=>{let{title:t,accept:s,fileSize:n,maxLength:a,onFileSelected:o,children:d,className:p}=e;const[u,m]=(0,i.useState)(!1),x=(0,i.useRef)(null),g=U()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||m(!1))}));return(0,B.jsx)(I.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,B.jsx)(W,{value:{open:u,onOpenChange:m,accept:s,fileSize:n,maxLength:a,onFileSelected:o,getDragButtonEl:e=>{x.current=e}},children:(0,B.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,B.jsx)("div",{className:R()(c,p),ref:g,onDragEnter:()=>{m(!0)},children:d})]})})})};q.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const J=e=>{let{icon:t,title:s,renderTips:i}=e;const{accept:n,fileSize:a,maxLength:l}=Y(),r=i((0,I.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:n.map((e=>e.replace(/^\./,""))).join("\u3001"),size:a}),{fileSize:a,maxLength:l,accept:n});return(0,B.jsxs)("div",{className:R()(x,"upload-drag-tips"),children:[(0,B.jsx)("div",{className:g,children:t||(0,B.jsx)(T.default,{type:"icon-shangchuan",size:64})}),(0,B.jsx)("div",{className:f,children:s||(0,B.jsx)(I.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,B.jsx)("div",{className:_,children:r})]})};J.defaultProps={renderTips:e=>e};const Z=e=>{let{children:t,className:s}=e;const{open:i,accept:n,onOpenChange:a,onFileSelected:r}=Y();return i?(0,B.jsxs)("div",{className:R()(u,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;a(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,n)));r(t)},onDragEnd:()=>{a(!1)},children:[(0,B.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,B.jsx)(T.default,{type:"icon-close-bold"}),onClick:()=>{a(!1)}}),t]}):null};Z.defaultProps={children:(0,B.jsx)(J,{})};const $=Z;var K=s(51714),ee=s(63908);const te=e=>{var t;let{maxLength:s,list:n,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:u,getPermission:m,titleExtra:x,fileSize:g,accept:f,getPopupContainer:_}=e;const{apis:h}=(0,ee.usePreset)(),v=Object.assign({},h,u),{fileList:j,onFileSelected:S}=(0,H.lN)({maxLength:s,multiple:!0,value:n,onChange:r,concurrentCount:1,onAdd:()=>{C("list")},onSave:v.onSave,ossUpload:v.ossUpload}),[F,C]=(0,i.useState)(o),{formatMessage:y}=(0,I.useIntl)({moduleName:"FileList"}),{message:N}=l.App.useApp(),L=(0,i.useMemo)((()=>new Map(n.map((e=>[e.ossId,e])))),[n]),[P,w]=(0,i.useState)(c||a()(n,"[0].ossId",null));(0,i.useEffect)((()=>{P&&L.get(P)||w(a()(n,"[0].ossId",null))}),[n,L,P]);const b={onPreview:e=>{w(e.ossId),C("preview")},onDelete:async e=>{v.onDelete&&await v.onDelete(e),r((t=>{const s=t.slice(0),i=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return i>-1&&s.splice(i,1),s})),N.success(y({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;v.onEdit&&await v.onEdit({formData:t,item:s}),r((e=>{const i=e.slice(0),n=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return n>-1&&i.splice(n,1,Object.assign({},s,{filename:t.name})),i})),N.success(y({id:"successEditFileName"},{name:s.filename}))}},M="function"===typeof x?x({currentPreviewFileId:P,currentTab:F}):x;return(0,B.jsxs)(q,{title:(0,B.jsx)(E,{currentTab:F,setCurrentTab:C,previewMap:L,previewList:n,getPermission:m,currentPreviewFileId:P,setCurrentPreviewFileId:w,itemApis:b,getPopupContainer:_,children:(0,B.jsxs)(l.Space,{split:(0,B.jsx)(l.Divider,{type:"vertical"}),children:[M,m("add",{})?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{children:(0,B.jsx)(I.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,B.jsx)(X,{children:(0,B.jsx)(I.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:S,accept:f,children:["list"===F?(0,B.jsx)(z.List,{dataSource:[...j,...n],getPermission:m,apis:b}):null,"preview"===F?P?(0,B.jsx)("div",{className:d,children:(0,B.jsx)(K.default,{className:p,id:P,apis:v,originName:null===(t=L.get(P))||void 0===t?void 0:t.filename})}):(0,B.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,B.jsx)($,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,B.jsx)(I.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,B.jsx)(te,{...e})});var ie=s(10986),ne=s.n(ie);const ae=e=>{let{maxLength:t,apis:s,getPermission:i,fileSize:n,accept:a,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,p]=ne()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:u,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:p,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,B.jsxs)(q,{title:(0,B.jsxs)(l.Row,{children:[(0,B.jsx)(l.Col,{flex:1}),(0,B.jsx)(l.Col,{children:(0,B.jsxs)(l.Space,{split:(0,B.jsx)(l.Divider,{type:"vertical"}),children:[(0,B.jsx)(V,{}),(0,B.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:n,maxLength:t,onFileSelected:m,accept:a,children:[(0,B.jsx)(z.List,{dataSource:[...u,...d],getPermission:i,apis:c}),(0,B.jsx)($,{})]})};ae.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const le=ae},94710:e=>{e.exports=function(e,t,s,i){for(var n=-1,a=null==e?0:e.length;++n<a;){var l=e[n];t(i,l,s(l),e)}return i}},32952:(e,t,s)=>{var i=s(45652);e.exports=function(e,t,s,n){return i(e,(function(e,i,a){t(n,e,s(e),a)})),n}},45652:(e,t,s)=>{var i=s(94664),n=s(76516)(i);e.exports=n},99910:e=>{e.exports=function(e,t){for(var s,i=-1,n=e.length;++i<n;){var a=t(e[i]);void 0!==a&&(s=void 0===s?a:s+a)}return s}},19449:(e,t,s)=>{var i=s(94710),n=s(32952),a=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?i:n,c=t?t():{};return o(s,e,a(r,2),c)}}},76516:(e,t,s)=>{var i=s(6571);e.exports=function(e,t){return function(s,n){if(null==s)return s;if(!i(s))return e(s,n);for(var a=s.length,l=t?a:-1,r=Object(s);(t?l--:++l<a)&&!1!==n(r[l],l,r););return s}}},26304:(e,t,s)=>{var i=s(53871),n=s(99140);e.exports=function(e,t,s){var a=null==e?0:e.length;return a?(t=s||void 0===t?1:n(t),i(e,0,(t=a-t)<0?0:t)):[]}},39835:(e,t,s)=>{var i=s(71775),n=s(19449),a=Object.prototype.hasOwnProperty,l=n((function(e,t,s){a.call(e,s)?e[s].push(t):i(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var i=s(26989);e.exports=function(e,t,s){var n=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===n?i(e,t,void 0,s):!!n}},60262:(e,t,s)=>{var i=s(99910),n=s(33279);e.exports=function(e){return e&&e.length?i(e,n):0}},99140:(e,t,s)=>{var i=s(37303);e.exports=function(e){var t=i(e),s=t%1;return t===t?s?t-s:t:0}},55664:()=>{},17448:()=>{},71975:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5962.b8774e96.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6611,9034,3142],{28148:(e,s,t)=>{t.r(s),t.d(s,{default:()=>C});const n={menu:"style_menu__gvIvn__SCBFp","all-no-start-icon":"style_all-no-start-icon__CA+zR__SCBFp","no-start-icon":"style_no-start-icon__LnC1S__SCBFp","has-children":"style_has-children__m9tce__SCBFp","has-children-node":"style_has-children-node__2bhEB__SCBFp","is-root":"style_is-root__4hhOc__SCBFp",title:"style_title__+Hcar__SCBFp",active:"style_active__WU49K__SCBFp","no-collapse":"style_no-collapse__aIZBM__SCBFp","title-content":"style_title-content__cQXpK__SCBFp",loading:"style_loading__1pU4P__SCBFp"};var l=t(83136),a=t.n(l),r=t(55199),o=t(94679),i=t(29053),c=t(10986),p=t.n(c),d=t(64671),h=t(73884),u=t(18081),_=t.n(u),y=t(87558),m=t(70579);const g=e=>{const s=(0,o.useNavigate)(),{id:t,className:l,label:c,iconType:p,path:h,request:u,onClick:_,isOpen:g,isSelected:f,onOpenChange:C,children:K,fetchOptions:O,depth:v,onLoad:j,allowCollapsed:k}=e,S=Array.isArray(K)&&K.length>0||O,{refresh:b,isLoading:x}=(0,y.useFetch)(Object.assign({},O,{auto:!k&&O,onRequestSuccess:e=>{j(e)}}));return(0,m.jsx)(i.default,{request:u,children:(0,m.jsxs)("div",{className:a()(l,n["menu-item"]),children:[(0,m.jsxs)("div",{className:a()(n.title,{[n.active]:f,[n["has-children"]]:S,[n["no-collapse"]]:S&&!k,[n["no-start-icon"]]:!p,[n["is-root"]]:0===v}),onClick:n=>{n.stopPropagation(),S||!h?S||O?k&&(O&&b({}),C(!g)):null===_||void 0===_||_(t,e):s(h)},children:[p&&(0,m.jsx)(d.default,{type:p}),(0,m.jsx)("span",{className:n["title-content"],children:c}),S&&k&&(0,m.jsx)(d.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),S?!k||g&&K?(0,m.jsx)("div",{className:n["children-list"],children:K}):!k||g&&x?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},f=e=>{let{className:s,allowCollapsed:t,pathMatch:l,...r}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[d,u]=p()(r,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[y,f]=p()(r,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:C,defaultOpenKeys:K,links:O,childrenKeys:v,hasStartIcon:j,hasChildren:k}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},l);return Array.isArray(e)&&e.length>0?e.map(((e,l)=>{const o=`${e.key||`${"root"!==a?`${a}-`:""}node-${l}`}`;s[a]||(s[a]=[]),s[a].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[a].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(y);let l=!1,a=!1;const r=[],o=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach((e=>{const s=n[e];s.iconType&&(l=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(a=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:l,hasChildren:a}}),[y]);(0,h.useEffect)((()=>{const e=O.find((e=>{let{path:s}=e;return"function"===typeof l?l(s,{pathname:i,search:c}):_()(i.replace(/[#,?].*/,""))===_()(s)||_()(i+c)===_()(s)}));e&&u(e.key)}),[O,i,c,u,l]);const[S,b]=p()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||K}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),x=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:l,selectedKey:a,openKeys:r,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...p}=e;return(0,h.createElement)(g,{...Object.assign({},p),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||v[i]&&v[i].indexOf(a)>-1,onClick:u,onLoad:e=>{f((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(r||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{b((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},x(s,{parentKey:n,depth:l+1,selectedKey:a,openKeys:r,paths:[...o,i]}))})):null}),[f,b,u,v,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!j,[n["has-children-node"]]:k}),children:x(C,{selectedKey:d,openKeys:S})})};f.defaultProps={defaultItems:[],allowCollapsed:!0};const C=f},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>h,default:()=>m,usePermissions:()=>u,usePermissionsPass:()=>_});var n=t(73884),l=t(55199),a=t(33097),r=t.n(a),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__SCBFp";var p=t(63908),d=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,p.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,p.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:a,message:r,request:o,children:p,...h}=e;const u=_({request:o});return"function"===typeof p?p({isPass:u,type:s,request:o}):!0===u?p:"error"===s?(0,d.jsx)(l.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,d.jsx)(l.Tooltip,{title:r,children:(0,n.createElement)(a,{...h,className:i()(c,t)},p)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
|
|
2
|
-
//# sourceMappingURL=6611.1152fb3a.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6779,5600,9034,2517],{17342:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(8762),r=n.n(o);n(46733);const i=r()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),r=n(79889),i=n.n(r),l=n(93950),s=n.n(l),a=n(96418),c=n.n(a);const d=(e,t)=>{const n=(0,o.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const r=(0,o.useRef)(null),l=c()(e);return(0,o.useLayoutEffect)((()=>{const e=r.current,t=()=>window.requestAnimationFrame((()=>{e&&l(e)}));t();const o=new ResizeObserver((n.current.isDebounce?s():i())(t,n.current.time));return e&&o.observe(e),()=>{o.disconnect()}}),[l]),r}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var o=n(73884),r=n(96418),i=n.n(r),l=n(55199),s=n(83136),a=n.n(s),c=n(64671),d=n(81014),u=n(58407),m=n(77964),p=n(22616),f=n.n(p);const h="style_width-container__JfEbg__SCBFp",_="style_hidden-container__EdySA__SCBFp",g="style_hidden-inner__vAN59__SCBFp",C="style_menu-list__VDttR__SCBFp",y="style_btn-item__mp5MQ__SCBFp";var x=n(15797),v=n.n(x),b=n(70579);const j=v()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;const l=i?0:["small","middle","large"].indexOf(r.size)>-1?8*(["small","middle","large"].indexOf(r.size)+1):Number.isInteger(r.size)?r.size:8;let s=0,a=0;for(;t>=a+o[s]+s*l&&s<o.length;)a+=o[s],s+=1;for(;t<a+(s-1)*l+(s<o.length?n+l:0)&&s>0;)a-=o[s-1],s-=1;return s}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;return`${t}${n}${o.join(",")}${Object.values(r).join(",")}${i&&i.toString()}`})),S=e=>{let{list:t,more:n,compact:r,...s}=e;const c=f()(s,["size","split","align","style"]),[p,x]=(0,o.useState)(t.length&&1),v=i()((()=>{const e=w.current,t=B.current,n=S.current;if(!e)return;const i=e.querySelectorAll(".button-group-item");if(!i)return;if(0===i.length)return;const l=n.clientWidth,s=t.clientWidth,a=[].map.call(i,(e=>e.offsetWidth)),d=j({amountWidth:l,moreBtnWidth:s,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{x(d)}))})),S=(0,m.A)(v),w=(0,m.A)(v),B=(0,m.A)(v),N=t.slice(p),F=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",y),isDropdown:n});const{className:r,confirm:i,buttonComponent:l,...s}=e,c=i||s.message,m=c?u.default:l||d.default;return(0,o.createElement)(m,{danger:c&&!1!==s.isDelete,...Object.assign({},s,c&&(s.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",y,r)})},k=r?l.Space.Compact:l.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:h,ref:S}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:g,ref:B,children:n}),(0,b.jsx)("div",{className:g,ref:w,children:(0,b.jsx)(k,{...c,children:t.map(F)})})]}),(0,b.jsxs)(k,{...c,children:[t.slice(0,p).map(((e,t)=>F(e,t,!1))),N.length>0&&(0,b.jsx)(l.Dropdown,{overlayClassName:C,menu:{items:N.map(((e,t)=>({key:t,label:F(e,t,!0)})))},children:n})]})]})};S.defaultProps={more:(0,b.jsxs)(l.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const w=S},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>g,ConfirmText:()=>C,default:()=>y,withConfirm:()=>_});n(73884);var o=n(55199);const r=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var i=n(64671),l=n(58609),s=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__SCBFp",u="style_is-danger__gxyAB__SCBFp",m="style_title__EEPu2__SCBFp",p="style_content__mZZg5__SCBFp",f="style_has-title__5+PEt__SCBFp";var h=n(70579);const _=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:a=!0,onClick:_,onCancel:g,disabled:C,showCancel:y,cancelText:x,isModal:v,okText:b,placement:j,getContainer:S,...w}=t;const{formatMessage:B}=(0,l.useIntl)({moduleName:"ConfirmButton"}),N=(0,s.useConfirmModal)();return v?(0,h.jsx)(e,{...w,disabled:C,onClick:e=>{N({type:"confirm",title:n,getContainer:S,danger:a,confirmType:a?"warning":"info",message:r||B({id:"message"}),okText:b||B(a?{id:"delete"}:{id:"confirm"}),cancelText:x||B({id:"cancel"}),onCancel:g,onOk:_})}}):(0,h.jsx)(o.Popconfirm,{title:(0,h.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,h.jsxs)(o.Space,{size:0,align:"start",className:m,children:[a&&(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,h.jsxs)(o.Space,{size:0,align:"start",className:c()(p,{[f]:n}),children:[!n&&a?(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,r||B({id:"message"})]})]}),placement:j,onConfirm:_,okButtonProps:{danger:a},onCancel:g,overlayClassName:c()(d,{[u]:a}),getPopupContainer:S,disabled:C,showCancel:y,cancelText:x,okText:b||B(a?{id:"delete"}:{id:"confirm"}),children:(0,h.jsx)(e,{...w,disabled:C})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},g=_(o.Typography.Link),C=_(o.Typography.Text),y=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>M,TabsModal:()=>F,TabsModalButton:()=>T,default:()=>B,useConfirmModal:()=>w,useModal:()=>S,useTabsModal:()=>k});var o=n(73884),r=n(55199),i=n(83136),l=n.n(i);const s={modal:"style_modal__Pm3cF__SCBFp",large:"style_large__iaqVE__SCBFp","modal-body-inner":"style_modal-body-inner__4PhpA__SCBFp","modal-title":"style_modal-title__dswaw__SCBFp","modal-outer":"style_modal-outer__r3SkX__SCBFp","modal-body":"style_modal-body__jQJSI__SCBFp","right-options-modal":"style_right-options-modal__FajDP__SCBFp","right-options-row":"style_right-options-row__-mPb9__SCBFp","right-options-col":"style_right-options-col__3ilee__SCBFp","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__SCBFp",content:"style_content__k6MIF__SCBFp","modal-footer":"style_modal-footer__-prbN__SCBFp","modal-close":"style_modal-close__Oa5Kl__SCBFp","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__SCBFp","is-danger":"style_is-danger__H5110__SCBFp",title:"style_title__orTym__SCBFp","has-title":"style_has-title__qy0Wp__SCBFp"},a=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var m=n(81014),p=n(17342),f=n(70579);const h="Modal",_=e=>{let{options:t,rightSpan:n=6,children:o}=e;return t?(0,f.jsxs)(r.Row,{wrap:!1,className:s["right-options-row"],children:[(0,f.jsx)(r.Col,{span:24-n,className:s["right-options-col"],children:o}),(0,f.jsx)(r.Col,{span:n,className:s["right-options-col"],children:t})]}):o},g=(e,t)=>e-48-(t?58:0)+"px",C=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":g(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,t)}}:{width:"1000px",style:{"--min-modal-height":g(500,t)}},y=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:l,onClose:s,targetProps:d}=e;return(0,f.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,f.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,f.jsx)(r.Col,{children:(0,f.jsx)(r.Space,{children:(n||[{children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,f.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:h})}),onClick:l},{type:"primary",children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,f.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:h})}),onClick:i}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:i=!0,display:l,...a}=e;const c=n||m.default;return(0,o.createElement)(c,{...a,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=await Promise.resolve(r&&r(...t,d));return i&&!1!==o&&s&&s(),o}})}))})})]})},x=e=>{let{title:t,footer:n,disabledScroller:i,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:h,children:_,targetProps:g}=e;const C=(0,o.useRef)(null);return(0,f.jsxs)("div",{className:s["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,f.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:s["modal-close"],type:"text",icon:(0,f.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,f.jsx)("div",{className:s["modal-title"],children:t}),(0,f.jsx)(p.A,{className:l()(s["modal-body"],{[s["is-disabled-scroller"]]:i},"modal-body"),ref:C,children:(0,f.jsx)("div",{className:l()(s["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,f.jsx)("div",{className:l()(s["modal-footer"],"modal-footer"),children:(0,f.jsx)(y,{footer:n,footerButtons:a,onConfirm:m,onCancel:h,onClose:c,targetProps:g})}):null]})},v=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:i,onConfirm:l,onCancel:s,footer:a,rightOptions:c,rightSpan:d,disabledScroller:m,childrenRef:p,children:h}=e;const g=e=>(e=Object.assign({},{title:o},e),(0,f.jsx)(x,{title:u(e.title,{...e,childrenRef:p,close:i}),closable:r,onClose:i,onConfirm:l,onCancel:s,footerButtons:u(n,{...e,close:i}),disabledScroller:m,footer:u(a,{...e,childrenRef:p,close:i}),targetProps:Object.assign({},e,{childrenRef:p,close:i}),children:(0,f.jsx)(_,{rightSpan:d,options:u(c,{...e,childrenRef:p,close:i}),children:u(h,{...e,childrenRef:p,close:i})})}));return"function"===typeof t?t(g):g({})},b=e=>{let{children:t,rightOptions:n,rightSpan:o,footer:r,footerButtons:i,className:d,size:u,title:m,onClose:p,onConfirm:h,onCancel:_,closable:g,disabledScroller:y,withDecorator:x,childrenRef:b,...j}=e;return{...j,icon:null,centered:!0,title:null,maskClosable:!!j.hasOwnProperty("maskClosable")&&j.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:p,className:l()(d,s.modal,s[u],{[s["right-options-modal"]]:n}),...C(u,!(null===r&&!i)),children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:v({withDecorator:x,title:m,closable:g,onClose:p,onConfirm:h,onCancel:_,footer:r,footerButtons:i,rightOptions:n,rightSpan:o,disabledScroller:y,children:t,childrenRef:b})})}},j=e=>{const t=(0,o.useRef)(null);return(0,f.jsx)(r.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const S=()=>{const{modal:e}=r.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:r,...i}=b({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:l}=e.info({...i,content:r});return o.close=l,o}},w=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:i,title:a,danger:c,wrapClassName:u,message:m,iconSetting:p={},confirmType:h="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},p);if(e[o]){const{destroy:t}=e[o]({..._,icon:null,wrapClassName:l()(s["confirm-modal-wrap"],u,{[s["is-danger"]]:c}),title:(0,f.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,f.jsxs)(r.Space,{size:0,align:"start",className:s.title,children:[c?(0,f.jsx)(d.default,{className:l()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:i||g["confirm"===o?h:o]}):null,a]})}),content:(0,f.jsxs)(r.Space,{size:0,align:"start",className:l()(s.content,{[s["has-title"]]:a}),children:[!a&&c?(0,f.jsx)(d.default,{className:l()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:i||g["confirm"===o?h:o]}):null,m]})});n.close=t}return n}},B=j,N=e=>{let{items:t,className:n,activeKey:o,withDecorator:i,defaultActiveKey:s,onChange:a,...c}=e;return{...c,className:l()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,f.jsx)(r.Tabs,{items:t.map((t=>{let{withDecorator:o,...r}=t;return Object.assign({},r,{children:"function"===typeof o?o((t=>e(Object.assign({},n,t,{children:r.children})))):e(Object.assign({},n,{children:r.children}))})})),destroyInactiveTabPane:!0,activeKey:o,defaultActiveKey:s,onChange:a});return"function"===typeof i?i(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},F=e=>(0,f.jsx)(B,{...N(e)}),k=()=>{const e=S();return t=>e(N(t))};var P=n(73025);const T=e=>{const t=k();return e.api?(0,f.jsx)(P.A,{...e,modalFunc:t}):(0,f.jsx)(r.Button,{...e,onClick:()=>{t(e.modalProps)}})},M=e=>{const t=S();if(!e.api){const{modalProps:n,...o}=e;return(0,f.jsx)(r.Button,{...o,onClick:()=>{t(n)}})}return(0,f.jsx)(P.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),r=n(77116);e.exports=function e(t,n,i,l,s){var a=-1,c=t.length;for(i||(i=r),s||(s=[]);++a<c;){var d=t[a];n>0&&i(d)?n>1?e(d,n-1,i,l,s):o(s,d):l||(s[s.length]=d)}return s}},94008:(e,t,n)=>{var o=n(27449),r=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return r(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),r=n(9261),i=n(35324);e.exports=function(e,t,n){for(var l=-1,s=t.length,a={};++l<s;){var c=t[l],d=o(e,c);n(d,c)&&r(a,i(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),r=n(35324),i=n(69194),l=n(46686),s=n(70914);e.exports=function(e,t,n,a){if(!l(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var p=s(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=u){var h=m[p];void 0===(f=a?a(h,p,m):void 0)&&(f=l(h)?h:i(t[c+1])?[]:{})}o(m,p,f),m=m[p]}return e}},15857:(e,t,n)=>{var o=n(20819),r=n(55636),i=n(46350);e.exports=function(e){return i(r(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),r=n(22777),i=n(54052),l=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(l&&e&&e[l])}},93950:(e,t,n)=>{var o=n(46686),r=n(4757),i=n(40801),l=Math.max,s=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,p,f=0,h=!1,_=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function C(t){var n=a,o=c;return a=c=void 0,f=t,u=e.apply(o,n)}function y(e){var n=e-p;return void 0===p||n>=t||n<0||_&&e-f>=d}function x(){var e=r();if(y(e))return v(e);m=setTimeout(x,function(e){var n=t-(e-p);return _?s(n,d-(e-f)):n}(e))}function v(e){return m=void 0,g&&a?C(e):(a=c=void 0,u)}function b(){var e=r(),n=y(e);if(a=arguments,c=this,p=e,n){if(void 0===m)return function(e){return f=e,m=setTimeout(x,t),h?C(e):u}(p);if(_)return clearTimeout(m),m=setTimeout(x,t),C(p)}return void 0===m&&(m=setTimeout(x,t)),u}return t=i(t)||0,o(n)&&(h=!!n.leading,d=(_="maxWait"in n)?l(i(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),b.cancel=function(){void 0!==m&&clearTimeout(m),f=0,a=p=c=m=void 0},b.flush=function(){return void 0===m?u:v(r())},b}},20819:(e,t,n)=>{var o=n(80755);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},4757:(e,t,n)=>{var o=n(56552);e.exports=function(){return o.Date.now()}},22616:(e,t,n)=>{var o=n(94008),r=n(15857)((function(e,t){return null==e?{}:o(e,t)}));e.exports=r},79889:(e,t,n)=>{var o=n(93950),r=n(46686);e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),o(e,t,{leading:i,maxWait:t,trailing:l})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=6779.ae91c0e8.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7655],{18411:(e,t,n)=>{n.d(t,{A:()=>a});n(73884);const a=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},93761:(e,t,n)=>{n.d(t,{qn:()=>R,TM:()=>G,LH:()=>I,Ay:()=>E,NY:()=>L,DF:()=>D});var a=n(30509),l=n(25438),s=n(55199),r=n(27047),o=n(83136),i=n.n(o),c=n(64671),d=n(73884),u=n(21485),p=n(56434),m=n.n(p),h=n(15797),_=n.n(h),g=n(33097),f=n.n(g);const x="style_address__DIuRX__SCBFp",C="style_is-popup__tqVvp__SCBFp",y="style_title__FAe12__SCBFp",v="style_scroll-box__JWiDl__SCBFp",S="style_scroll-plus-box__lidEW__SCBFp",j="style_content__lAARZ__SCBFp",b="style_col-left__WPfeS__SCBFp",A="style_col-right__z0e9-__SCBFp";var N=n(87558),F=n.n(N);const w=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var B=n(58609),O=n(70579);const P=a.A.useContext,I=e=>{let{city:t,province:n,country:a}=e;const l=_()((()=>{const e=[];return["gangaotai","municipality"].forEach((n=>{e.push(...t.relations[n])})),["provinces","continents"].forEach((n=>{t.relations[n].forEach((n=>{e.push(n),e.push(...t.relations[n])}))})),e.map((e=>t.list[e]))}));return{getCity:_()((e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}})),getChinaHotCities:_()((()=>t.relations[2].map((e=>t.list[e])))),getChinaCities:_()((()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map((e=>Object.assign({id:e},t.list[e]))))),getCountries:_()((()=>["1",...a.relations.continents].map((e=>Object.assign({id:e},a.list[e]))))),getList:_()(((e,l)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map((e=>t.list[e]));const o=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return o.name=""+(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map((e=>t.list[e]));return n.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),a.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i})),getNationalityList:_()((e=>{let n=m()(t);return"1"===e&&n.relations[1].unshift("410"),"350"===e&&n.relations[350].unshift("410"),n.relations[e].filter((e=>n.list[e])).map((e=>n.list[e]))})),getCityByName:_()((e=>{const t=l();let n;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find((e=>(n=t.find(e),n))),n})),combineCities:_()(((e,n)=>[...n.filter((n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n)),e])),searchCities:_()((e=>{if(!e)return[];return l().filter((t=>["pinyin","name","enName","spelling"].some((n=>t[n].toUpperCase().indexOf(e.toUpperCase())>-1)))).map((e=>{const n=e.parentCode?t.list[e.parentCode]:null;return{label:n?`${n.name}\xb7${e.name}`:e.name,value:e.code}}))}))}},L=(e,t)=>"en-US"===t?f()(e,"enName"):f()(e,"name"),k={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7820).then(n.t.bind(n,37820,19)).then((e=>e.__esModule?e.default:e))},M=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:o}=P(),[p,m]=(0,d.useState)(""),[h,_]=(0,d.useState)("2"),{formatMessage:g}=(0,B.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,r.A)(),{getCity:N,getChinaCities:F,getCountries:w,getList:k,searchCities:M}=(0,d.useMemo)((()=>I(a.data)),[a.data]),T=e=>{if(o.single)return void n([e]);const a=t.slice(0),l=a.indexOf(e);l>-1?a.splice(l,1):a.push(e),n(a)},R=p&&(0,O.jsx)(u.A,{className:S,children:(0,O.jsx)(s.List,{className:l.A.list,size:"small",dataSource:M(p),rowKey:"value",renderItem:e=>(0,O.jsx)(s.List.Item,{className:l.A["list-item"],onClick:()=>{T(e.value),m("")},children:(0,O.jsx)("span",{className:l.A["item-label"],children:e.label})})})});return(0,O.jsxs)("div",{className:i()(x,{[C]:o.isPopup}),children:[(0,O.jsx)(s.Input.Search,{className:i()(l.A["search-input"],{[l.A["is-popup"]]:o.isPopup}),placeholder:o.searchPlaceholder||g({id:"searchCity"}),prefix:(0,O.jsx)(c.default,{type:"icon-sousuo"}),enterButton:(0,O.jsx)(c.default,{type:"icon-sousuo"}),value:p,allowClear:!0,onChange:e=>{const t=e.target.value;m(t)},onSearch:e=>{m(e)}}),(0,O.jsx)("div",{className:j,children:R||(0,O.jsxs)(s.Row,{wrap:!1,children:[(0,O.jsx)(s.Col,{className:b,children:(0,O.jsx)(s.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,O.jsx)(B.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,O.jsx)(u.A,{className:v,children:(0,O.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:F().map((e=>({label:L(e,f),key:e.id})))})})},{key:"1",label:(0,O.jsx)(B.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,O.jsx)(u.A,{className:v,children:(0,O.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map((e=>({label:L(e,f),key:e.id})))})})}]})}),(0,O.jsxs)(s.Col,{flex:1,className:A,children:[(0,O.jsx)(s.Divider,{className:y,orientation:"left",children:L(N(h).city,f)}),(0,O.jsx)(u.A,{className:v,children:(0,O.jsx)(s.Space,{wrap:!0,children:k(h,{showChinaQuan:o.showChinaQuan,showForeignQuan:o.showForeignQuan}).map((e=>(0,O.jsx)(s.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{T(e.code)},children:L(e,f)},e.code)))})})]})]})})]})},T=e=>(0,O.jsx)(a.A,{...e,children:e=>{let{value:t,setValue:n}=e;return(0,O.jsx)(B.IntlProvider,{moduleName:"AddressSelect",importMessages:w,children:(0,O.jsx)(M,{value:t,setValue:n})})}});T.defaultProps={overlayWidth:"500px",isPopup:!0,api:k,dataFormat:(e,t)=>{let{city:n}=e;const{locale:a}=Object.assign({},t);return{list:Object.values(n.list).map((e=>Object.assign({},e,{value:e.code,label:L(e,a)})))}}};const R=(0,N.withFetch)((e=>{let{name:t,data:n,getAddressApi:a,children:l,...s}=e;const{locale:o}=(0,r.A)(),i=(0,d.useMemo)((()=>I(n)),[n]);return a?l(i):(0,O.jsx)(F(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise((e=>{setTimeout((()=>{e(i.getCity(n))}),0)}))},render:e=>{let{data:t}=e;return l(t,Object.assign({},s,{locale:o}))}})}));R.defaultProps={...k,displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?`${L(a,s)}\xb7${L(n,s)}`:L(n,s)}};const D=e=>{const t=(0,N.withFetch)((t=>{let{data:n,...a}=t;const l=(0,d.useMemo)((()=>I(n)),[n]);return(0,O.jsx)(e,{...a,addressApi:l})}));return t.defaultProps={...k},t};T.AddressEnum=T.Enum=R,T.createAddressApi=I,T.withAddressApi=D,T.getLabelForLocal=L;const E=T;var z=n(10986),V=n.n(z),W=n(78491),U=n.n(W),$=n(20492),K=n(22616),q=n.n(K),H=n(1488),Q=n.n(H);const Z=e=>{const{isPopup:t,size:n,disabled:a,inputPlaceholder:l,onBlur:r,className:o,...i}=e,[c,d]=V()(e),u=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:p}=(0,B.useIntl)({moduleName:"Common"}),m=U()((e=>{r&&r(e)}));return(0,O.jsx)("div",{ref:m,children:(0,O.jsxs)(s.Row,{gutter:10,children:[(0,O.jsx)(s.Col,{span:12,children:(0,O.jsx)(E,{...q()(i,u),className:o,disabled:a,single:!0,size:n,value:f()(c,"city"),onChange:e=>{d({city:e,detail:f()(c,"detail")})}})}),(0,O.jsx)(s.Col,{span:12,children:(0,O.jsx)(s.Input,{...Q()(i,u),className:o,placeholder:l||p({id:"pleaseInput"}),disabled:a,size:n,value:f()(c,"detail"),onChange:e=>{d({city:f()(c,"city"),detail:e.target.value})}})})]})})};Z.defaultProps={};const G=(0,B.createWithIntl)({importMessages:$.A,moduleName:"Common"})(Z)},12392:(e,t,n)=>{n.d(t,{Bm:()=>V,Eo:()=>E,NR:()=>b,Ay:()=>W});var a=n(55199),l=n(83136),s=n.n(l),r=n(30509),o=n(25438),i=n(26475),c=n(33097),d=n.n(c),u=n(34677),p=n.n(u);const m="create-list_scroll-loader__zoaS7__SCBFp",h="create-list_is-popup__t3d-G__SCBFp",_="create-list_is-not-full__FXtX1__SCBFp",g="create-list_search-input__tV3vf__SCBFp",f="create-list_left__EXr3i__SCBFp",x="create-list_list-header__3xeJa__SCBFp",C="create-list_is-modal__BMfya__SCBFp";var y=n(73161),v=n(58609),S=n(70579);const j=r.A.useContext,b=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:c,setSearchText:u,props:b,mapping:A}=j(),N=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},b.pagination),F=d()(r.requestParams,[N.paramsType,N.current],1),w=d()(r.requestParams,[N.paramsType,N.pageSizeName])||N.pageSize,{formatMessage:B}=(0,v.useIntl)({moduleName:"Common"}),O=b.dataFormat(r.data),{right:P,leftBottom:I,leftSpan:L=24}=b,k=1===n.length&&"all"===n[0];return(0,S.jsxs)(a.Row,{wrap:!1,className:P?s()("is-not-full",_):"",children:[(0,S.jsxs)(a.Col,{span:L,className:s()(f,"advance-select-left"),children:[b.getSearchProps?(0,S.jsx)(y.A,{isPopup:b.isPopup,className:s()(g,o.A["search-input"],{[o.A["is-popup"]]:b.isPopup}),placeholder:b.searchPlaceholder||B({id:"search"}),value:c,onSearch:e=>{r.reload(b.getSearchProps(e)),u(e)}}):null,b.single||!b.showSelectedCount&&!b.allowSelectAll?null:(0,S.jsxs)(a.Flex,{className:s()(x,{[C]:!b.isPopup}),justify:"space-between",children:[b.showSelectedCount?(0,S.jsxs)(a.Space,{children:[(0,S.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,S.jsx)(a.Typography.Link,{children:k?b.allLabel||(0,S.jsx)(v.FormattedMessage,{id:"all",moduleName:"Common"}):`${n.length}${b.countUnit||B({id:"items"})}`})]}):(0,S.jsx)("div",{}),b.allowSelectAll?(0,S.jsx)("div",{children:(0,S.jsx)(a.Checkbox,{checked:k,onChange:e=>{l(e.target.checked?[b.allValue||"all"]:[])},children:(0,S.jsx)(v.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:b.allLabel||(0,S.jsx)(v.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,S.jsx)("div",{})]}),(0,S.jsx)(i.A,{completeTips:"",isLoading:!r.isComplete,className:s()(m,{[h]:b.isPopup}),noMore:!O.total||F*w>=O.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(p()({[N.paramsType]:{[N.pageSizeName]:w,[N.current]:F+1}},b.getSearchProps&&b.getSearchProps(c)),b.mergeList)},children:t({props:b,value:n,setValue:l,list:O.list,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:k,onSelect:e=>{if(b.single)return void l([e.value]);const t=n.slice(0),a=t.indexOf(e.value);a>-1?t.splice(a,1):t.push(e.value),l(t)}})}),I&&I({fetchApi:r,value:n,mapping:A})]}),P&&P({value:n,mapping:A,fetchApi:r})]})},c=e=>{let{extra:t,...n}=e;return(0,S.jsx)(r.A,{...n,extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,S.jsx)(l,{value:t,setValue:n})}})};return c.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},n),c},A="list_list__TGynD__SCBFp",N="list_list-item__WSswf__SCBFp",F="list_is-selected__6Wkgt__SCBFp",w="list_item-label__bYzhe__SCBFp",B="list_item-des__2nsEn__SCBFp",O="list_is-disabled__qxCvO__SCBFp",P="list_is-selected-all__Mp-hG__SCBFp";var I=n(40438),L=n(64671);const k="user_list-inner__V508e__SCBFp",M="user_list-info__y2nWo__SCBFp",T="user_selected-icon__9OQJL__SCBFp",R="user_item-des__o+7UR__SCBFp",D="user_is-selected-all__2q0VZ__SCBFp",E=b({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:r}=e;return(0,S.jsx)(a.List,{size:"small",className:s()(A,{[P]:r,[D]:r}),dataSource:t,renderItem:e=>{const t=l(e);return(0,S.jsx)(a.List.Item,{className:s()(N,{[F]:t}),onClick:()=>n(e),children:(0,S.jsxs)(a.Row,{wrap:!1,align:"middle",className:k,children:[(0,S.jsx)(a.Col,{children:(0,S.jsx)(I.default.Avatar,{...Object.assign({},e.avatar),size:40,gender:"M"})}),(0,S.jsx)(a.Col,{className:M,flex:1,children:(0,S.jsxs)(a.Space,{direction:"vertical",children:[(0,S.jsx)("span",{className:w,children:e.label}),e.description&&(0,S.jsx)("span",{className:R,children:e.description})]})}),(0,S.jsx)(a.Col,{children:r||t?(0,S.jsx)(L.default,{className:T,type:"icon-gouxuan"}):null})]})})}})}}),z={"is-selected-all":"table_is-selected-all__IwXUY__SCBFp"},V=b({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,S.jsx)(a.Table,{className:s()(z.list,A,{[P]:c,[z["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map((e=>{let{value:t}=e;return t})),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),W=b({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,S.jsx)(a.List,{className:s()(A,i,{[P]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const i=l(e);return(0,S.jsxs)(a.List.Item,{className:s()(N,{[F]:t.single&&i,[O]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,S.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,S.jsx)(a.Col,{children:(0,S.jsx)(a.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,S.jsx)(a.Col,{children:(0,S.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,S.jsx)("span",{className:w,children:e.label}),e.description&&(0,S.jsx)("span",{className:B,children:e.description})]})})]}),i&&c]})}})}})},45776:(e,t,n)=>{n.d(t,{yK:()=>P,ON:()=>h,Ay:()=>T});var a=n(30509),l=n(73884),s=n(96418),r=n.n(s),o=n(55199),i=n(64671),c=n(73161),d=n(33097),u=n.n(d),p=n(79686),m=n.n(p);const h=e=>{const t=Array.from(e.values()),n=t.filter((e=>null===e.parentId)),a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],a=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach((e=>{a(e.id)})))};return a(t),n},s=(t,n)=>{const a=t=>{const l=e.get(t);return l?n(l)?l:m()(l.parentId)?null:a(l.parentId):null};return a(t)},r=t=>{const a=e.get(t);if(!a)return[];const l=a.parentId;if(m()(l))return n;return e.get(l).children},o=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map((n=>{const a=t.filter((e=>e.parentId===n.id));return Object.assign({},n,{children:e(a)})})):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const a=e=>{if(e.children&&e.children.length>0)return a(e.children.find((t=>t.children&&e.children.length>0))||u()(e.children,"0"));const t=l(e.parentId).find((e=>e.children&&e.children.length>0));return t?a(t):e},s=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],a=e.get(t);return!a||m()(a.parentId)?n:s(a.parentId,n)},r=a(n);return s(u()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,(e=>n.indexOf(e.id)>-1)))return{checked:!0,indeterminate:!1};const a=(t=>{const a=t=>{const l=e.get(t);return l?(s=l,n.indexOf(s.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find((e=>!!a(e.id))):void 0):null;var s};return!!a(t)})(t);return a?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;n.push(t),l(t).forEach((e=>{a(n,e.id)}));const i=r(t),c=i.every((e=>n.indexOf(e.id)>-1));o.parentId&&c&&(i.forEach((e=>{a(n,e.id)})),s(o.parentId))};return s(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const s=e.get(t);if(!s)return;if(n.indexOf(s.id)>-1)return void a(n,s.id);const o=r(t);s.parentId&&(o.forEach((e=>{t!==e.id&&n.push(e.id)})),l(s.parentId))};return l(t),n},treeData:o,treeMapping:new Map(o.map((e=>[e.id,e])))}};var _=n(74065),g=n.n(_),f=n(19853),x=n.n(f),C=n(17342),y=n(83136),v=n.n(y);const S={content:"style_content__Hxlt9__SCBFp",columns:"style_columns__FmtPF__SCBFp","content-item":"style_content-item__i6HCO__SCBFp","last-level-area":"style_last-level-area__2y7jQ__SCBFp","is-popup":"style_is-popup__+r3Mn__SCBFp",menu:"style_menu__WZUVE__SCBFp","scroll-plus-box":"style_scroll-plus-box__QcTst__SCBFp","menu-label":"style_menu-label__iGt0Z__SCBFp","menu-item":"style_menu-item__hXHfm__SCBFp","checkbox-hidden":"style_checkbox-hidden__Xpx7J__SCBFp",loading:"style_loading__ZwrVe__SCBFp"};var j=n(87558),b=n(58609),A=n(25438),N=n(70579),F=n(27047);const w=new Map,B=(0,j.withFetch)((e=>{let{data:t,name:n,type:a,cache:s,children:r,getLabel:o,...i}=e;const c=(0,l.useMemo)((()=>new Map(t.map((e=>[e.code,{...e,id:e.code,label:o?o(e):e.chName,parentId:e.parentCode||null}])))),[t,o]).get(n);return w.set(`${n}_${a}`,c),r(c,i)})),O=e=>{const{locale:t}=(0,F.A)(),n=`${t}_${e.name}_${e.type}`,a=w.get(n);return a&&!e.force?e.children(a):(0,N.jsx)(B,{...e})};O.defaultProps={children:e=>u()(e,"label","")};const P=O,I=a.A.useContext,L=(0,j.withFetch)((e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,N.jsx)(C.A,{className:S["scroll-plus-box"],children:(0,N.jsx)(o.List,{className:A.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,N.jsx)(o.List.Item,{className:v()(A.A["list-item"],{[A.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,N.jsx)("span",{className:A.A["item-label"],children:e.label})})}})})})),k=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:d,props:p}=I(),[m,_]=(0,l.useState)(""),f=r()(p.dataFormat),{formatMessage:y}=(0,b.useIntl)({moduleName:"Common"}),j=d.data,F=(0,l.useMemo)((()=>new Map(f(j).list.map((e=>[e.value,e])))),[j,f]),w=(0,l.useMemo)((()=>h(F)),[F]),B=(0,l.useRef)({});B.current={createMergeTree:p.createMergeTree,loadMore:d.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:w};const[O,P]=(0,l.useState)((()=>{const e=t.find((e=>!!F.get(e)));return w.getSelectedQueue(e||u()(d.data.find((e=>e.children&&e.children.length>0)),"id")||u()(d.data,"[0].id"),F)}));(0,l.useEffect)((()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:a,treeUtils:l}=B.current;if(!e)return;const s=F.get(g()(O));if(!s)return;const r=l.getSelectedQueue(s.id);x()(O,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):P(r)}),[O,F]);const k=(e,l)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?w.setNodeChecked(l,t):w.setNodeUnchecked(l,t)})();s.length>a?o.message.error(y({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[g()(s)]:s)},M=e=>{const t=F.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},T=!p.openLoadData&&"function"===typeof p.onSearch,R=T&&m&&(0,N.jsx)(L,{data:{searchText:m},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:F})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{k(!t,e.id),!t&&P(w.getSelectedQueue(e.id,F)),_("")}});return(0,N.jsxs)("div",{className:v()(S.content,{[S["is-popup"]]:p.isPopup,[S["has-search"]]:T}),style:{"--menu-item-width":p.menuItemWidth},children:[T&&(0,N.jsx)(c.A,{isPopup:p.isPopup,className:v()(A.A["search-input"],{[A.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||y({id:"search"}),value:m,onSearch:e=>{_(e)}}),R||(0,N.jsx)("div",{children:(0,N.jsx)(C.A,{className:S.scroller,options:{autoHide:!1},children:(0,N.jsxs)("div",{className:S.columns,children:[O.map(((e,n)=>{const a=F.get(e),r=w.getSiblingNode(e),c=!M(null===a||void 0===a?void 0:a.id)&&n>0;return(0,N.jsx)(C.A,{className:v()(S["content-item"],{[S["last-level-area"]]:c}),children:c?(0,N.jsx)(o.Space,{wrap:!0,children:r.map((e=>(0,l.createElement)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled: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,N.jsx)(o.Menu,{className:v()(S.menu),onSelect:e=>{const n=F.get(e.key);if(n)if(M(n.id))P(w.getSelectedQueue(n.id,F));else{const{checked:e}=w.computedCheckboxStatus(n.id,t);k(!e,n.id)}},selectedKeys:n===O.length-1?[]:O,items:r.map((e=>({key:e.id,label:(0,N.jsxs)(o.Space,{className:v()(S["menu-item"],{[S["checkbox-hidden"]]:p.onlyAllowLastLevel&&M(e.id)}),children:[!p.onlyAllowLastLevel&&(0,N.jsx)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>k(t.target.checked,e.id)}),(0,N.jsx)("div",{className:S["menu-label"],children:e.label}),M(e.id)&&(0,N.jsx)(i.default,{className:S["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})})))})},u()(r,"[0].id",n))})),d.isComplete?null:(0,N.jsx)("div",{className:S.loading,children:(0,N.jsx)(o.Spin,{size:"small"})})]})})})]})},M=e=>{let{maxLength:t,nodeFormat:n,dataFormat:l,...s}=e;return(0,N.jsx)(a.A,{...s,dataFormat:e=>l(e,n),children:e=>{let{value:n,setValue:a}=e;return(0,N.jsx)(k,{...s,size:t,value:n,setValue:a})}})};M.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:n}=t;return Array.from(n.values()).filter((t=>t.label.indexOf(e)>-1))},dataFormat:(e,t)=>{const n=(e,a)=>{const l=[];return l.push(...(e||[]).map((e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...n(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:a}))))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const a=t=>t.map((t=>t.id===e?Object.assign({},t,{children:n&&n.map((t=>Object.assign({},t,{parentId:e})))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:a(t.children)}):t));return a(t)}};const T=M},41654:(e,t,n)=>{n.d(t,{A:()=>m,K:()=>p});var a=n(45776),l=n(27047),s=n(33097),r=n.n(s),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c=()=>n.e(719).then(n.t.bind(n,10719,19)).then((e=>e.__esModule?e.default:e)),d={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:c},u=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,a.ON)(new Map(t.map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},c.functionData)})};u.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},u.defaultData=c;const p=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.yK,{...n,...c.functionData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};u.FunctionEnum=u.Enum=p;const m=u},53392:(e,t,n)=>{n.d(t,{A:()=>p,W:()=>u});var a=n(45776),l=n(27047),s=n(33097),r=n.n(s),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7183).then(n.t.bind(n,57183,19)).then((e=>e.__esModule?e.default:e))},d=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,a.ON)(new Map(t.filter((e=>"000"!==e.code)).map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},d.industryData)})};d.defaultProps={overlayWidth:"635px"};const u=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.yK,{...n,...d.industryData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};d.IndustryEnum=d.Enum=u;const p=d},26475:(e,t,n)=>{n.d(t,{A:()=>_});var a=n(73884),l=n(55199),s=n(96418),r=n.n(s),o=n(17342),i=n(83136),c=n.n(i),d=n(51941);const u="style_scroller-no-more__EH2J+__SCBFp";var p=n(70579);const m=e=>{let{getScrollerRef:t,loadMore:n,maxFullCount:l}=e;const s=r()(n),o=r()(t);return(0,a.useEffect)((()=>{let e=l;const t=o(),n=async()=>{t.clientHeight===t.scrollHeight&&e>0&&(await s().then((()=>new Promise((e=>{setTimeout(e,500)})))),e--,await n())};n()}),[l,s,o]),null},h=(0,a.forwardRef)(((e,t)=>{let{className:n,noMore:s,onLoader:i,isLoading:h,completeTips:_,maxFullCount:g,children:f}=e;const x=(0,a.useRef)(),C=r()(i),y=(0,a.useRef)(!s&&!h);y.current=!s&&!h,(0,a.useImperativeHandle)(t,(()=>x.current),[]);const v=(0,d.useThrottledCallback)((e=>{const t=e.target;y.current&&t.clientHeight+t.scrollTop+20>t.scrollHeight&&C()}),100);return(0,p.jsxs)(o.A,{className:c()("load-container",n),scrollableNodeProps:{ref:x,onScroll:v},children:[!h&&!s&&(0,p.jsx)(m,{maxFullCount:g,getScrollerRef:()=>x.current,loadMore:C}),(0,p.jsxs)(l.Space,{direction:"vertical",children:[(0,p.jsx)("div",{children:f}),h?(0,p.jsx)("div",{className:u,children:(0,p.jsx)(l.Spin,{size:"small"})}):null,s&&_?(0,p.jsx)("div",{className:u,children:_}):null]})]})}));h.defaultProps={maxFullCount:3,completeTips:"\u52a0\u8f7d\u5b8c\u6210"};const _=h},73161:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(55199),l=n(83136),s=n.n(l);const r="style_search-input__8aH1G__SCBFp",o="style_is-popup__L0973__SCBFp";var i=n(64671),c=n(73884),d=n(51941),u=n(70579);const p=e=>{let{value:t,debounce:n,onSearch:l,isPopup:p,placeholder:m,className:h,..._}=e;const[g,f]=(0,c.useState)(t),x=(0,c.useRef)(t),C=(0,d.useDebouncedCallback)(l,n);return(0,c.useEffect)((()=>{t!==x.current&&(f(t),x.current=t)}),[t]),(0,u.jsx)(a.Input.Search,{..._,allowClear:!0,className:s()(h,r,{[o]:p}),value:g,placeholder:m,prefix:(0,u.jsx)(i.default,{type:"icon-sousuo"}),enterButton:(0,u.jsx)(i.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;x.current=t,f(t),C(t)},onSearch:e=>{C(e)}})};p.defaultProps={debounce:500};const m=p},30509:(e,t,n)=>{n.d(t,{A:()=>W});const a={"ant-tag":"style_ant-tag__nNp8-__SCBFp",overlay:"style_overlay__La5mO__SCBFp",input:"style_input__SpJTE__SCBFp","is-disabled":"style_is-disabled__joxdl__SCBFp","input-icon":"style_input-icon__vVd8R__SCBFp",large:"style_large__En6mL__SCBFp",small:"style_small__DY0AQ__SCBFp","input-inner":"style_input-inner__PWy27__SCBFp","input-custom":"style_input-custom__ktsWD__SCBFp","display-content":"style_display-content__hIKo+__SCBFp","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__SCBFp","selected-tag":"style_selected-tag__zXZZO__SCBFp","selected-tag-list":"style_selected-tag-list__xUIms__SCBFp","selected-tag-inner":"style_selected-tag-inner__Z5gPL__SCBFp","text-inner":"style_text-inner__H24hY__SCBFp",placeholder:"style_placeholder__x0ccE__SCBFp","is-modal":"style_is-modal__JU+uq__SCBFp","overlay-content":"style_overlay-content__WKqp+__SCBFp"};var l=n(74981);const{context:s,useContext:r,Provider:o,Consumer:i}=(0,l.A)();var c=n(73884),d=n(10986),u=n.n(d),p=n(87558),m=n(33097),h=n.n(m),_=n(55199),g=n(83136),f=n.n(g),x=n(3382),C=n(64671),y=n(79686),v=n.n(y),S=n(41740),j=n.n(S),b=n(74065),A=n.n(b),N=n(21485),F=n(96418),w=n.n(F),B=n(77964),O=n(91176),P=n(58609),I=n(20492),L=n(27047),k=n(70579);const M=e=>{let{maxLength:t,single:n,setValue:a,value:l,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s(),l):e)},T=e=>{let{single:t,value:n,mapping:l,allValue:s,allLabel:r,onClose:o}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,k.jsx)("span",{className:a["text-inner"],children:h()(l.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(s||"all")?(0,k.jsx)("span",{className:a["text-inner"],children:r||(0,k.jsx)(P.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map((e=>{const t=l.get(e);return(0,k.jsx)(_.Tag,{className:a["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,k.jsx)("span",{className:a["tag-inner"],children:h()(t,"label")||e})},e)})):null},R=(0,c.forwardRef)(((e,t)=>{let{value:n,onChange:l,extra:s,showSelectedTag:r,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n),{formatMessage:h}=(0,P.useIntl)({moduleName:"Common"});m.current=n;const[g,f]=(0,c.useState)(!1),C=e=>{var t;f(e),null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},{message:y}=_.App.useApp(),v=M({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:()=>y.error(h({id:"maxSelectedCount"},{count:d.maxLength}))});return(0,c.useEffect)((()=>{g&&p(m.current)}),[g]),(0,c.useImperativeHandle)(t,(()=>({modalOpen:()=>{C(!0)},close:()=>{C(!1)}}))),(0,k.jsx)(x.default,{...d,open:g,onConfirm:()=>{l(u)},onClose:()=>{C(!1)},footer:(0,k.jsxs)(_.Space,{direction:"vertical",className:a["overlay-footer"],children:[s&&(0,k.jsx)("div",{className:a["overlay-footer-extra"],children:s}),r&&o({value:u,setValue:v})]}),children:"function"===typeof i?i({value:u,setValue:v}):i})})),D=(0,c.forwardRef)(((e,t)=>{let{value:n,setValue:l,children:s,renderSelectedContent:r,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,overlayClassName:g,disabled:x,...C}=e;const[y,v]=(0,c.useState)(!1),S=w()((e=>{var t;v(e),null===(t=C.onOpenChange)||void 0===t||t.call(C,e)}));return(0,c.useImperativeHandle)(t,(()=>({close:()=>{S(!1)}})),[S]),x?(0,k.jsx)("div",{className:a["input-inner"],children:d}):(0,k.jsx)(_.Popover,{...C,open:y,onOpenChange:S,transitionName:"ant-slide-up",overlayClassName:f()(a.overlay,g),arrow:!1,content:(0,k.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:f()(a["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,k.jsx)("div",{className:a["overlay-inner"],children:"function"===typeof s?s({value:n,setValue:e=>{(!u||n[0]!==e[0])&&l(e),u&&S(!1)}}):s}),(o||p)&&(0,k.jsxs)("div",{className:a["overlay-footer"],children:[p&&(0,k.jsx)("div",{className:a["overlay-footer-extra"],children:p}),o&&r({value:n,setValue:l})]})]}),trigger:"click",placement:i,children:(0,k.jsx)("div",{className:a["input-inner"],children:d})})})),E=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:l,...s}=e;const[o,i]=(0,c.useState)(!1),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=r(),{valueState:m,mapping:h,props:g,inputWidth:x}=p,[y,v]=m,{formatMessage:S}=(0,P.useIntl)({moduleName:"Common"}),{single:j,placement:b,getPopupContainer:A,placeholder:F,isPopup:B,disabled:I,showSelectedTag:L,extra:M,inputContent:E,allowClear:z,overlayClassName:V}=g,W=(0,c.useRef)(s);W.current=s;const U=w()(l);(0,c.useEffect)((()=>{U(B?u:d)}),[B,U]),(0,c.useEffect)((()=>{t(Object.assign({},W.current,{data:s.data,isComplete:s.isComplete}))}),[s.data,t,s.isComplete]);const $=T({single:j,value:y,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{v((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}}),K=e=>{let{value:t,setValue:n}=e;return(0,k.jsxs)(_.Space,{className:a["selected-tag"],align:"center",wrap:!1,children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(P.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,k.jsx)(N.A,{className:a["selected-tag-list"],children:(0,k.jsx)("div",{className:a["selected-tag-inner"],children:T({value:t,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}})})})]})},q=E?E(p):(0,k.jsxs)(_.Space,{className:a["display-content"],onMouseOver:()=>{i(!0)},onMouseOut:()=>{i(!1)},children:[(0,k.jsx)("div",{children:$||(0,k.jsx)("span",{className:a.placeholder,children:F||S({id:"pleaseSelect"})})}),o&&y&&y.length>0&&!I&&z?(0,k.jsx)(C.default,{className:f()(a.close,a["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),v([])}}):(0,k.jsx)(C.default,{className:f()(a["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return B?(0,k.jsx)(D,{ref:u,overlayWidth:(0,O.v)(Math.max(x,(0,O.j)(g.overlayWidth))),value:y,setValue:v,single:j,disabled:I,inputContent:q,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof M?M({close:()=>u.current.close(),context:p}):M,renderSelectedContent:K,showSelectedTag:L,trigger:"click",placement:b,getPopupContainer:A,children:g.children}):(0,k.jsxs)("div",{className:a["input-inner"],onClick:()=>{I||d.current.modalOpen()},children:[(0,k.jsx)(R,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:f()(a.overlay,a["is-modal"],n),title:g.placeholder||S({id:"pleaseSelect"}),value:y,onChange:v,extra:"function"===typeof M?M({close:()=>d.current.close(),context:p}):M,showSelectedTag:L,renderSelectedContent:K,children:g.children}),q]})})),z=e=>{let{api:t,className:n,displayItems:l,wrapClassName:s,...r}=e;const{locale:i}=(0,L.A)(),[d,p]=(0,c.useState)(""),[m,g]=(0,c.useState)(new Map(l.map((e=>[e.value,e])))),{formatMessage:x}=(0,P.useIntl)({moduleName:"Common"}),[C,y]=(0,c.useState)(0),S=(0,B.A)((e=>{y(e.clientWidth)})),[b,N]=(0,c.useState)({}),{message:F}=_.App.useApp(),w=e=>{const t=e.filter((e=>m.get(e.value)!==e));0!==t.length&&g((e=>{const n=j()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},O=e=>((e,t)=>Array.isArray(e)&&e.every((e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label")))?(t(e),e.map((e=>e.value))):e)(r.single?v()(e)?[]:[e]:e||[],w,r.valueType),[I,T]=u()(Object.assign({},r,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map((e=>t.get(e))).filter((e=>!!e)))(e,m,r.valueType);r.onChange&&r.onChange(r.single?A()(t):t)}},"value"in r?{value:O(r.value)}:{defaultValue:O(r.defaultValue)})),R=M({maxLength:r.maxLength,single:r.single,setValue:T,value:I,message:()=>F.error(x({id:"maxSelectedCount"},{count:r.maxLength}))}),D=(0,c.useRef)(null);return(0,k.jsx)(o,{value:{inputWidth:C,mapping:m,searchText:d,setSearchText:p,appendMapping:w,setItems:e=>{b.setData(e),w(h()(r.dataFormat(e,{locale:i}),"list",[]))},getContentApi:()=>D.current,fetchApi:b,valueState:[I,R],props:r},children:(0,k.jsx)("div",{ref:S,className:f()(a["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],{"select-input-disabled":!!r.disabled},n),children:(0,k.jsx)(E,{...t,wrapClassName:s,loading:null,setFetchApi:N,getContentRef:e=>{e.current&&(D.current=e.current)},onRequestSuccess:e=>{w(h()(r.dataFormat(e,{locale:i}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};z.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const V=(0,P.createWithIntl)({importMessages:I.A,moduleName:"Common"})(z);V.useContext=r;const W=V},17342:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(8762),l=n.n(a);n(46733);const s=l()},21485:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(73884),l=n(44418),s=n.n(l),r=n(96418),o=n.n(r),i=n(70579);const c=(0,a.forwardRef)(((e,t)=>{let{children:n,onScroll:l,options:r,onReady:c,...d}=e;const u=(0,a.useRef)(null),p=(0,a.useRef)(null),m=(0,a.useRef)(r),h=o()(c),_=o()(l);return(0,a.useImperativeHandle)(t,(()=>p.current)),(0,a.useEffect)((()=>{const e=new(s())(u.current,m.current);return p.current=e.getScrollElement(),p.current.addEventListener("scroll",_),h(p.current),()=>{p.current.removeEventListener("scroll",_)}}),[_,h,n]),(0,i.jsx)("div",{...d,ref:u,children:n})}))},89319:(e,t,n)=>{n.d(t,{A:()=>u});var a=n(55199),l=n(10986),s=n.n(l),r=n(57469),o=n.n(r),i=n(20492),c=n(58609),d=n(70579);const u=(0,c.createWithIntl)({importMessages:i.A,moduleName:"Common"})((e=>{let{...t}=e;const{formatMessage:n}=(0,c.useIntl)({moduleName:"Common"}),l=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[r,i]=s()(t);return(0,d.jsxs)(a.Space.Compact,{children:[(0,d.jsx)(a.Select,{style:{width:"120px"},value:(null===r||void 0===r?void 0:r.type)||"date",onChange:e=>{i((t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[o()(t.value[0]).startOf(e||"date"),o()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}}))},options:Array.from(l).map((e=>{let[t,n]=e;return{label:n,value:t}}))}),(0,d.jsx)(a.DatePicker.RangePicker,{...t,picker:(null===r||void 0===r?void 0:r.type)||"date",value:Array.isArray(null===r||void 0===r?void 0:r.value)&&2===r.value.length&&r.value.map((e=>e&&o()(e))),onChange:e=>{i((t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]}))))}})]})}))},20492:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(3086).then(n.bind(n,13086)),"zh-CN":()=>n.e(4308).then(n.bind(n,84308))}[e]())},29574:(e,t,n)=>{n.d(t,{Zi:()=>_,FI:()=>g,AG:()=>f,Ay:()=>C,lN:()=>x});const a="style_input-file__3JGm6__SCBFp",l="style_input-file-input__Fb5iw__SCBFp";var s=n(83136),r=n.n(s),o=n(73884),i=n(55199),c=n(63908),d=n(28987),u=n(80111),p=n.n(u),m=n(70579);const h=e=>t=>{let{className:n,accept:s,multiple:i,onChange:c,children:d,...u}=t;const p=(0,o.useRef)(null);return(0,m.jsxs)(e,{...u,className:r()(n,a),children:[d,!0!==u.disabled&&(0,m.jsx)("input",{ref:p,type:"file",accept:s,multiple:i,className:l,onChange:e=>{const t=[].slice.call(e.target.files,0);0!==t.length&&(p.current.setAttribute("type","text"),p.current.setAttribute("type","file"),c(t))}})]})},_=h(i.Button),g=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(i.Typography.Link,{...n,className:t})})),f=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(i.Typography.Text,{...n,className:r()("ant-btn",t)})})),x=e=>{const{message:t}=i.App.useApp(),{multiple:n,fileSize:a,maxLength:l,value:s,concurrentCount:r,onAdd:u,onError:m,onSave:h,onChange:_,ossUpload:g}=Object.assign({},{concurrentCount:1,value:[]},e),{apis:f}=(0,c.usePreset)(),[x,C]=(0,o.useState)([]),y=(0,o.useRef)(r),v=(0,o.useMemo)((()=>(0,d.A)(y.current)),[]);return{fileList:x,onFileSelected:async e=>{const r=l-s.length;1!==l&&!0===n&&e.length>r?t.error(`\u4e0a\u4f20\u6587\u4ef6\u4e0d\u80fd\u8d85\u8fc7\u6700\u5927\u5141\u8bb8\u6570\u91cf${l}`):await Promise.allSettled(e.map((async e=>{if(e.size>1024*a*1024)return void t.error(`\u6587\u4ef6${e.name}\u4e0d\u80fd\u8d85\u8fc7${a}MB!`);const s=p()(),r=n=>{const a=n.message||`\u6587\u4ef6${e.name}\u4e0a\u4f20\u9519\u8bef${n.message?":"+n.message:""}`;t.error(a),m&&m({file:e,error:n,errMsg:a}),C((e=>{const t=e.slice(0),n=t.findIndex((e=>e.uuid===s));return n>-1&&t.splice(n,1),t}))};try{C(1===l||!0!==n?[{uuid:s,type:"uploading",filename:e.name}]:t=>{const n=t.slice(0);return n.unshift({uuid:s,type:"uploading",filename:e.name}),n}),u&&await Promise.resolve(u(e));const t=g||f.ossUpload,{data:a}=await v((()=>t({file:e})));if(0!==a.code)return void r(new Error(`\u6587\u4ef6${e.name}\u4e0a\u4f20\u5f02\u5e38${a.msg?":"+a.msg:""}`));const o=h?await Promise.resolve(h(a,e,s)):{filename:a.data.originalName||a.data.filename||e.name,id:a.data.id,ossId:a.data.id,uuid:s};C((e=>{const t=e.slice(0),n=t.findIndex((e=>e.uuid===s));return n>-1&&t.splice(n,1),t})),_(1===l||!0!==n?[o]:e=>{const t=e.slice(0);return t.push(o),t})}catch(o){r(o)}})))}}},C=h},97211:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(87558),l=n.n(a),s=n(63908),r=n(34677),o=n.n(r),i=n(70579);const c=e=>{const t=t=>{let{id:n,url:a,error:r,apis:c,loading:d,...u}=t;const{apis:p}=(0,s.usePreset)(),m=o()({},p,c);if(!n)return null;if(!m.oss)throw new Error("\u8bf7\u5728Global\u7ec4\u4ef6\u8bbe\u7f6epreset.apis.oss\u53c2\u6570");const{paramsType:h,paramsName:_,...g}=Object.assign({paramsType:"params",paramsName:"id"},m.oss),f={};return f[h]={[_]:n},(0,i.jsx)(l(),{...Object.assign({},g,f),updateType:"refresh",error:r,loading:d,cache:"oss-file",ttl:6e6,render:t=>{let{data:a}=t;return(0,i.jsx)(e,{...u,id:n,data:a})}})};return t.defaultProps={loading:null},t}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(83694),l=n(33097),s=n.n(l);const r=()=>{const e=(0,a.useGlobalContext)();return s()(e,"preset",{apis:{}})}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(73884),l=n(79889),s=n.n(l),r=n(93950),o=n.n(r),i=n(96418),c=n.n(i);const d=(e,t)=>{const n=(0,a.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,a.useRef)(null),r=c()(e);return(0,a.useLayoutEffect)((()=>{const e=l.current,t=()=>window.requestAnimationFrame((()=>{e&&r(e)}));t();const a=new ResizeObserver((n.current.isDebounce?o():s())(t,n.current.time));return e&&a.observe(e),()=>{a.disconnect()}}),[r]),l}},81348:(e,t,n)=>{n.d(t,{A:()=>a});const a=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),a=e.name||"",l=(e.type||"").toLowerCase(),s=l.replace(/\/.*$/,"");return n.some((e=>{const t=e.trim().toLowerCase();return"."===t.charAt(0)?a.toLowerCase().endsWith(t):t.endsWith("/*")?s===t.replace(/\/.*$/,""):l===t}))}return!0}},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>a});const a=1e15,l=e=>{let t,n,l,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=a)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(l=e.split("."),t=l[0],n=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let a=0;a<n;a++){let l=t.substr(a,1),i=n-a-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(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},74981:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,a.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,a.useContext)(t)}}},28987:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>{const t=[];let n=0;const a=()=>{if(0!==t.length){if(n<e){const e=t.shift();n+=1,e().finally((()=>{n-=1,a()}))}}else n=0};return e=>new Promise((n=>{t.push((()=>{const t=Promise.resolve().then((()=>e()));return n(t),t})),a()}))}},55490:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(12322),l=n.n(a),s=n(26727),r=n.n(s),o=n(54052),i=n.n(o);const c=e=>{if(l()(e)){const t=r()(e);return t.length>0&&t.some((e=>c(e)))}return i()(e)?e.length>0&&e.some((e=>c(e))):"number"===typeof e?!isNaN(e):!(void 0===e||null===e||""===e||0===e.length)},d=c},91176:(e,t,n)=>{n.d(t,{j:()=>l,v:()=>a});const a=e=>"number"===typeof e?`${e}px`:e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},36:(e,t,n)=>{n.r(t),n.d(t,{AddressEnum:()=>h.qn,AddressInputField:()=>h.TM,AddressSelectField:()=>h.Ay,AdvancedSelectField:()=>_.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>m.Zi,InputFileLink:()=>m.FI,InputFileText:()=>m.AG,ScrollLoader:()=>o.A,SearchInput:()=>u.A,SelectInnerInput:()=>p.A,SimpleBar:()=>d.A,SimpleBarBox:()=>c.A,TableField:()=>_.Bm,TypeDateRangePickerField:()=>C.A,UserField:()=>_.Eo,accept:()=>v.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>h.LH,createDeferred:()=>S.A,createListField:()=>_.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>j.A,numberToPx:()=>b.v,pxToNumber:()=>b.j,useFileUpload:()=>m.lN,useResize:()=>y.A,withAddressApi:()=>h.DF,withInputFile:()=>m.Ay,withOSSFile:()=>r.A});var a=n(69484),l=n(76801);const s=e=>{const t=e=>{const n=(0,l.h)();if(!e||e===n||!e.parentElement)return n;return[].slice.call(e.classList,0).find((e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1))?e:t(e.parentElement)};return t(e)};var r=n(97211),o=n(26475),i=n(73025),c=n(21485),d=n(17342),u=n(73161),p=n(30509),m=n(29574),h=n(93761),_=n(12392),g=n(45776),f=n(41654),x=n(53392),C=n(89319),y=n(77964),v=n(81348),S=n(28987),j=n(55490),b=n(91176)},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(87558),l=n.n(a),s=n(97211),r=n(64671),o=n(83136),i=n.n(o),c=n(55199),d=n(73884);const u=e=>{let{params:t}=e;const{data:n}=t;return new Promise(((e,t)=>{const a=new window.Image;a.src=n,a.addEventListener("load",(()=>{e(n)})),a.addEventListener("error",(e=>{t(e)}))}))},p="style_img-outer__4QLY5__SCBFp",m="style_img__PSExq__SCBFp",h="style_loading__WCOwA__SCBFp",_="style_error__+ECgZ__SCBFp";var g=n(18411),f=n(63908),x=n(70579);const C=e=>{let{data:t,className:n,alt:a,innerLoading:s,loading:r,error:o,innerError:c,children:d,onClick:p,staticUrl:h}=e;const{staticUrl:_}=(0,f.usePreset)(),g=h||_||"";return(0,x.jsx)(l(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:g+t},error:c||o,loading:s||r,render:e=>{let{data:t}=e;return"function"===typeof d?d({alt:a,className:i()(n,m),src:t}):(0,x.jsx)("img",{alt:a,className:i()(n,m),src:t,onClick:p})}})},y=(0,s.A)(C),v=e=>{let{loading:t,error:n,src:a,id:l,alt:s,className:r,children:o,apis:i,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:h}),p=n&&(0,d.cloneElement)(n,{className:_});return a?(0,x.jsx)(C,{alt:s,className:r,data:a,loading:u,error:p,onClick:c,children:o}):l?(0,x.jsx)(y,{alt:s,className:r,id:l,loading:u,innerLoading:u,error:p,innerError:p,apis:i,onClick:c,children:o}):p},S=e=>{let{id:t,src:n,alt:a,onClick:l,loading:s,error:r,className:o,apis:c,...d}=e;return(0,x.jsx)("div",{...d,"data-testid":"components-core-image",className:i()(o,p),children:v({loading:s,error:r,src:n,id:t,alt:a,className:o,apis:c,onClick:l})})};S.Avatar=e=>{let{id:t,src:n,alt:a,gender:l,loading:s,error:o,className:d,gap:u,icon:m,children:h,shape:_,size:g,width:f,height:C,defaultAvatar:y,apis:S,...j}=e;const b=(()=>{const e=f&&C?{style:{width:f,height:C}}:{size:g};if(f&&f!==C&&(_="square"),t||n)return v({loading:s,error:o,src:n,defaultAvatar:y,id:t,alt:a,className:d,apis:S,children:t=>(0,x.jsx)(c.Avatar,{...t,gap:u,shape:_,...e})});if(l){const t=l&&["F","female","f"].indexOf(l)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,x.jsx)(c.Avatar,{...j,src:(0,x.jsx)(r.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:_,...e})}return(0,x.jsx)(c.Avatar,{...j,gap:u,icon:m,shape:_,size:g,src:y,...e,children:h})})();return(0,x.jsx)("div",{...j,"data-testid":"components-core-image-avatar",className:i()(d,p),style:{width:f&&C?f:g,height:f&&C?C:g},children:b})};const j={error:(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0})};S.defaultProps=Object.assign({},j),S.Avatar.defaultProps=Object.assign({},j,{size:100,defaultAvatar:g.A});const b=S},3382:(e,t,n)=>{n.r(t),n.d(t,{ModalButton:()=>I,TabsModal:()=>w,TabsModalButton:()=>P,default:()=>N,useConfirmModal:()=>A,useModal:()=>b,useTabsModal:()=>B});var a=n(73884),l=n(55199),s=n(83136),r=n.n(s);const o={modal:"style_modal__Pm3cF__SCBFp",large:"style_large__iaqVE__SCBFp","modal-body-inner":"style_modal-body-inner__4PhpA__SCBFp","modal-title":"style_modal-title__dswaw__SCBFp","modal-outer":"style_modal-outer__r3SkX__SCBFp","modal-body":"style_modal-body__jQJSI__SCBFp","right-options-modal":"style_right-options-modal__FajDP__SCBFp","right-options-row":"style_right-options-row__-mPb9__SCBFp","right-options-col":"style_right-options-col__3ilee__SCBFp","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__SCBFp",content:"style_content__k6MIF__SCBFp","modal-footer":"style_modal-footer__-prbN__SCBFp","modal-close":"style_modal-close__Oa5Kl__SCBFp","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__SCBFp","is-danger":"style_is-danger__H5110__SCBFp",title:"style_title__orTym__SCBFp","has-title":"style_has-title__qy0Wp__SCBFp"},i=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var p=n(81014),m=n(17342),h=n(70579);const _="Modal",g=e=>{let{options:t,rightSpan:n=6,children:a}=e;return t?(0,h.jsxs)(l.Row,{wrap:!1,className:o["right-options-row"],children:[(0,h.jsx)(l.Col,{span:24-n,className:o["right-options-col"],children:a}),(0,h.jsx)(l.Col,{span:n,className:o["right-options-col"],children:t})]}):a},f=(e,t)=>e-48-(t?58:0)+"px",x=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":f(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":f(300,t)}}:{width:"1000px",style:{"--min-modal-height":f(500,t)}},C=e=>{let{footer:t,footerButtons:n,onConfirm:s,onCancel:r,onClose:o,targetProps:d}=e;return(0,h.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(l.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,h.jsx)(l.Col,{children:(0,h.jsx)(l.Space,{children:(n||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:r},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:_})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:l,autoClose:s=!0,display:r,...i}=e;const c=n||p.default;return(0,a.createElement)(c,{...i,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=await Promise.resolve(l&&l(...t,d));return s&&!1!==a&&o&&o(),a}})}))})})]})},y=e=>{let{title:t,footer:n,disabledScroller:s,footerButtons:i,onClose:c,closable:u,onConfirm:p,onCancel:_,children:g,targetProps:f}=e;const x=(0,a.useRef)(null);return(0,h.jsxs)("div",{className:o["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:o["modal-close"],type:"text",icon:(0,h.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,h.jsx)("div",{className:o["modal-title"],children:t}),(0,h.jsx)(m.A,{className:r()(o["modal-body"],{[o["is-disabled-scroller"]]:s},"modal-body"),ref:x,children:(0,h.jsx)("div",{className:r()(o["modal-body-inner"],"modal-body-inner"),children:g})}),null!==n||i?(0,h.jsx)("div",{className:r()(o["modal-footer"],"modal-footer"),children:(0,h.jsx)(C,{footer:n,footerButtons:i,onConfirm:p,onCancel:_,onClose:c,targetProps:f})}):null]})},v=e=>{let{withDecorator:t,footerButtons:n,title:a,closable:l,onClose:s,onConfirm:r,onCancel:o,footer:i,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:m,children:_}=e;const f=e=>(e=Object.assign({},{title:a},e),(0,h.jsx)(y,{title:u(e.title,{...e,childrenRef:m,close:s}),closable:l,onClose:s,onConfirm:r,onCancel:o,footerButtons:u(n,{...e,close:s}),disabledScroller:p,footer:u(i,{...e,childrenRef:m,close:s}),targetProps:Object.assign({},e,{childrenRef:m,close:s}),children:(0,h.jsx)(g,{rightSpan:d,options:u(c,{...e,childrenRef:m,close:s}),children:u(_,{...e,childrenRef:m,close:s})})}));return"function"===typeof t?t(f):f({})},S=e=>{let{children:t,rightOptions:n,rightSpan:a,footer:l,footerButtons:s,className:d,size:u,title:p,onClose:m,onConfirm:_,onCancel:g,closable:f,disabledScroller:C,withDecorator:y,childrenRef:S,...j}=e;return{...j,icon:null,centered:!0,title:null,maskClosable:!!j.hasOwnProperty("maskClosable")&&j.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:r()(d,o.modal,o[u],{[o["right-options-modal"]]:n}),...x(u,!(null===l&&!s)),children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:"Modal",children:v({withDecorator:y,title:p,closable:f,onClose:m,onConfirm:_,onCancel:g,footer:l,footerButtons:s,rightOptions:n,rightSpan:a,disabledScroller:C,children:t,childrenRef:S})})}},j=e=>{const t=(0,a.useRef)(null);return(0,h.jsx)(l.Modal,{...S(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const b=()=>{const{modal:e}=l.App.useApp(),t=(0,a.useRef)(null);return n=>{const a={},{children:l,...s}=S({onClose:()=>a.close(),childrenRef:t,...n}),{destroy:r}=e.info({...s,content:l});return a.close=r,a}},A=()=>{const{modal:e}=l.App.useApp();return t=>{const n={},{type:a,icon:s,title:i,danger:c,wrapClassName:u,message:p,iconSetting:m={},confirmType:_="info",...g}={onClose:()=>n.close(),maskClosable:!1,...t},f=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},m);if(e[a]){const{destroy:t}=e[a]({...g,icon:null,wrapClassName:r()(o["confirm-modal-wrap"],u,{[o["is-danger"]]:c}),title:(0,h.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:i&&(0,h.jsxs)(l.Space,{size:0,align:"start",className:o.title,children:[c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||f["confirm"===a?_:a]}):null,i]})}),content:(0,h.jsxs)(l.Space,{size:0,align:"start",className:r()(o.content,{[o["has-title"]]:i}),children:[!i&&c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||f["confirm"===a?_:a]}):null,p]})});n.close=t}return n}},N=j,F=e=>{let{items:t,className:n,activeKey:a,withDecorator:s,defaultActiveKey:o,onChange:i,...c}=e;return{...c,className:r()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,h.jsx)(l.Tabs,{items:t.map((t=>{let{withDecorator:a,...l}=t;return Object.assign({},l,{children:"function"===typeof a?a((t=>e(Object.assign({},n,t,{children:l.children})))):e(Object.assign({},n,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:a,defaultActiveKey:o,onChange:i});return"function"===typeof s?s(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},w=e=>(0,h.jsx)(N,{...F(e)}),B=()=>{const e=b();return t=>e(F(t))};var O=n(73025);const P=e=>{const t=B();return e.api?(0,h.jsx)(O.A,{...e,modalFunc:t}):(0,h.jsx)(l.Button,{...e,onClick:()=>{t(e.modalProps)}})},I=e=>{const t=b();if(!e.api){const{modalProps:n,...a}=e;return(0,h.jsx)(l.Button,{...a,onClick:()=>{t(n)}})}return(0,h.jsx)(O.A,{...e,modalFunc:t})}},25438:(e,t,n)=>{n.d(t,{A:()=>a});const a={"search-input":"common_search-input__P6qLg__SCBFp","is-popup":"common_is-popup__fJq+g__SCBFp",list:"common_list__TKFzS__SCBFp","list-item":"common_list-item__ASse7__SCBFp","is-selected":"common_is-selected__-PU4Y__SCBFp","item-label":"common_item-label__u+qz1__SCBFp","item-des":"common_item-des__no2z0__SCBFp"}}}]);
|
|
2
|
-
//# sourceMappingURL=7655.e56958cf.chunk.js.map
|