@kne-components/components-core 0.2.89 → 0.2.90
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 +103 -103
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{1045.5890459b.chunk.css → 1045.b107ef05.chunk.css} +2 -2
- package/build/static/css/{1045.5890459b.chunk.css.map → 1045.b107ef05.chunk.css.map} +1 -1
- package/build/static/css/1046.057493c3.chunk.css +2 -0
- package/build/static/css/{1046.69bd98b3.chunk.css.map → 1046.057493c3.chunk.css.map} +1 -1
- package/build/static/css/1153.10c1f8ae.chunk.css +2 -0
- package/build/static/css/{1153.656ebbd4.chunk.css.map → 1153.10c1f8ae.chunk.css.map} +1 -1
- package/build/static/css/1554.f00fc8bb.chunk.css +2 -0
- package/build/static/css/{1554.dcdf7992.chunk.css.map → 1554.f00fc8bb.chunk.css.map} +1 -1
- package/build/static/css/2716.ff59d41f.chunk.css +2 -0
- package/build/static/css/{2716.9318b403.chunk.css.map → 2716.ff59d41f.chunk.css.map} +1 -1
- package/build/static/css/374.8425b09b.chunk.css +12 -0
- package/build/static/css/{374.bc617f27.chunk.css.map → 374.8425b09b.chunk.css.map} +1 -1
- package/build/static/css/3834.c0b08e1f.chunk.css +2 -0
- package/build/static/css/{3834.08f5ab86.chunk.css.map → 3834.c0b08e1f.chunk.css.map} +1 -1
- package/build/static/css/4194.82910237.chunk.css +2 -0
- package/build/static/css/{4194.c3cbce8d.chunk.css.map → 4194.82910237.chunk.css.map} +1 -1
- package/build/static/css/4602.a071ca88.chunk.css +2 -0
- package/build/static/css/{4602.bebe5a0a.chunk.css.map → 4602.a071ca88.chunk.css.map} +1 -1
- package/build/static/css/4666.0587fffe.chunk.css +2 -0
- package/build/static/css/{4666.07773654.chunk.css.map → 4666.0587fffe.chunk.css.map} +1 -1
- package/build/static/css/{5371.5ac41037.chunk.css → 5371.7ba688e2.chunk.css} +2 -2
- package/build/static/css/{5371.5ac41037.chunk.css.map → 5371.7ba688e2.chunk.css.map} +1 -1
- package/build/static/css/5807.f9b8fd7f.chunk.css +2 -0
- package/build/static/css/{5807.ba891dd2.chunk.css.map → 5807.f9b8fd7f.chunk.css.map} +1 -1
- package/build/static/css/5965.f7b3a3ef.chunk.css +2 -0
- package/build/static/css/{5965.be6e21e1.chunk.css.map → 5965.f7b3a3ef.chunk.css.map} +1 -1
- package/build/static/css/{624.ef3b999f.chunk.css → 624.93e5299d.chunk.css} +2 -2
- package/build/static/css/{624.ef3b999f.chunk.css.map → 624.93e5299d.chunk.css.map} +1 -1
- package/build/static/css/6756.c6f8f530.chunk.css +2 -0
- package/build/static/css/{6756.ef8c070b.chunk.css.map → 6756.c6f8f530.chunk.css.map} +1 -1
- package/build/static/css/7227.340f19e3.chunk.css +2 -0
- package/build/static/css/{7227.730062a5.chunk.css.map → 7227.340f19e3.chunk.css.map} +1 -1
- package/build/static/css/{7253.d510e81d.chunk.css → 7253.e70e2256.chunk.css} +2 -2
- package/build/static/css/{7253.d510e81d.chunk.css.map → 7253.e70e2256.chunk.css.map} +1 -1
- package/build/static/css/7277.0acbeeaa.chunk.css +2 -0
- package/build/static/css/{7277.5ed68dca.chunk.css.map → 7277.0acbeeaa.chunk.css.map} +1 -1
- package/build/static/css/{7334.0846d1f9.chunk.css → 7334.8a139a1f.chunk.css} +2 -2
- package/build/static/css/{7334.0846d1f9.chunk.css.map → 7334.8a139a1f.chunk.css.map} +1 -1
- package/build/static/css/764.4b951fb3.chunk.css +2 -0
- package/build/static/css/{764.6fcdb61a.chunk.css.map → 764.4b951fb3.chunk.css.map} +1 -1
- package/build/static/css/{7866.356160ca.chunk.css → 7866.d81cb27c.chunk.css} +2 -2
- package/build/static/css/{7866.356160ca.chunk.css.map → 7866.d81cb27c.chunk.css.map} +1 -1
- package/build/static/css/{8503.1cad014c.chunk.css → 8503.d06bbf81.chunk.css} +2 -2
- package/build/static/css/{8503.1cad014c.chunk.css.map → 8503.d06bbf81.chunk.css.map} +1 -1
- package/build/static/js/{1045.8cf064e1.chunk.js → 1045.4d1819e8.chunk.js} +2 -2
- package/build/static/js/{1045.8cf064e1.chunk.js.map → 1045.4d1819e8.chunk.js.map} +1 -1
- package/build/static/js/{1046.dfb40ca2.chunk.js → 1046.8609e5f3.chunk.js} +2 -2
- package/build/static/js/{1046.dfb40ca2.chunk.js.map → 1046.8609e5f3.chunk.js.map} +1 -1
- package/build/static/js/{1153.d8bc7e44.chunk.js → 1153.f44c41ca.chunk.js} +3 -3
- package/build/static/js/{1153.d8bc7e44.chunk.js.map → 1153.f44c41ca.chunk.js.map} +1 -1
- package/build/static/js/{1554.6ab30bd8.chunk.js → 1554.56edf68a.chunk.js} +3 -3
- package/build/static/js/{1554.6ab30bd8.chunk.js.map → 1554.56edf68a.chunk.js.map} +1 -1
- package/build/static/js/1649.43f880d2.chunk.js +2 -0
- package/build/static/js/1649.43f880d2.chunk.js.map +1 -0
- package/build/static/js/{196.c2482520.chunk.js → 196.dd4bada9.chunk.js} +1 -1
- package/build/static/js/{2363.2a6d06fa.chunk.js → 2363.38a79a53.chunk.js} +2 -2
- package/build/static/js/2363.38a79a53.chunk.js.map +1 -0
- package/build/static/js/{2716.354d93c3.chunk.js → 2716.77fd7efa.chunk.js} +3 -3
- package/build/static/js/{2716.354d93c3.chunk.js.map → 2716.77fd7efa.chunk.js.map} +1 -1
- package/build/static/js/{3375.c42bdb9c.chunk.js → 3375.37cab938.chunk.js} +2 -2
- package/build/static/js/3375.37cab938.chunk.js.map +1 -0
- package/build/static/js/{374.bee847c5.chunk.js → 374.000847b7.chunk.js} +2 -2
- package/build/static/js/374.000847b7.chunk.js.map +1 -0
- package/build/static/js/{3834.3bb756ea.chunk.js → 3834.52ea346d.chunk.js} +2 -2
- package/build/static/js/{3834.3bb756ea.chunk.js.map → 3834.52ea346d.chunk.js.map} +1 -1
- package/build/static/js/3856.e481ac75.chunk.js +2 -0
- package/build/static/js/{3856.0ddcc3a9.chunk.js.map → 3856.e481ac75.chunk.js.map} +1 -1
- package/build/static/js/4194.718cf13c.chunk.js +2 -0
- package/build/static/js/4194.718cf13c.chunk.js.map +1 -0
- package/build/static/js/4602.4838a0ba.chunk.js +2 -0
- package/build/static/js/4602.4838a0ba.chunk.js.map +1 -0
- package/build/static/js/{4666.ae8e12c7.chunk.js → 4666.20a2f5f1.chunk.js} +3 -3
- package/build/static/js/{4666.ae8e12c7.chunk.js.map → 4666.20a2f5f1.chunk.js.map} +1 -1
- package/build/static/js/5371.0b715cac.chunk.js +2 -0
- package/build/static/js/{5371.36ebf1ef.chunk.js.map → 5371.0b715cac.chunk.js.map} +1 -1
- package/build/static/js/{5807.0d386c9f.chunk.js → 5807.c29af853.chunk.js} +2 -2
- package/build/static/js/{5807.0d386c9f.chunk.js.map → 5807.c29af853.chunk.js.map} +1 -1
- package/build/static/js/5965.c4e1f021.chunk.js +2 -0
- package/build/static/js/5965.c4e1f021.chunk.js.map +1 -0
- package/build/static/js/{624.15bf3a67.chunk.js → 624.75457fed.chunk.js} +2 -2
- package/build/static/js/{624.15bf3a67.chunk.js.map → 624.75457fed.chunk.js.map} +1 -1
- package/build/static/js/711.6d119b38.chunk.js +2 -0
- package/build/static/js/711.6d119b38.chunk.js.map +1 -0
- package/build/static/js/{7227.96bff868.chunk.js → 7227.7f94ab19.chunk.js} +3 -3
- package/build/static/js/{7227.96bff868.chunk.js.map → 7227.7f94ab19.chunk.js.map} +1 -1
- package/build/static/js/7253.44be3f9a.chunk.js +2 -0
- package/build/static/js/{7253.1bd27ffb.chunk.js.map → 7253.44be3f9a.chunk.js.map} +1 -1
- package/build/static/js/{7277.1a0041bd.chunk.js → 7277.833ace8b.chunk.js} +2 -2
- package/build/static/js/{7277.1a0041bd.chunk.js.map → 7277.833ace8b.chunk.js.map} +1 -1
- package/build/static/js/7334.b153be01.chunk.js +2 -0
- package/build/static/js/{7334.f7df0863.chunk.js.map → 7334.b153be01.chunk.js.map} +1 -1
- package/build/static/js/764.e4bdc411.chunk.js +2 -0
- package/build/static/js/{764.577847fd.chunk.js.map → 764.e4bdc411.chunk.js.map} +1 -1
- package/build/static/js/{7866.b27b619c.chunk.js → 7866.f105e337.chunk.js} +2 -2
- package/build/static/js/{7866.b27b619c.chunk.js.map → 7866.f105e337.chunk.js.map} +1 -1
- package/build/static/js/8503.2bc1ff7c.chunk.js +2 -0
- package/build/static/js/{8503.4bf8c84b.chunk.js.map → 8503.2bc1ff7c.chunk.js.map} +1 -1
- package/build/static/js/{8869.8014c2a2.chunk.js → 8869.edd481ef.chunk.js} +2 -2
- package/build/static/js/8869.edd481ef.chunk.js.map +1 -0
- package/build/static/js/main.526de68a.js +2 -0
- package/build/static/js/{main.cc68a562.js.map → main.526de68a.js.map} +1 -1
- package/package.json +2 -2
- package/build/static/css/1046.69bd98b3.chunk.css +0 -2
- package/build/static/css/1153.656ebbd4.chunk.css +0 -2
- package/build/static/css/1554.dcdf7992.chunk.css +0 -2
- package/build/static/css/2716.9318b403.chunk.css +0 -2
- package/build/static/css/374.bc617f27.chunk.css +0 -12
- package/build/static/css/3834.08f5ab86.chunk.css +0 -2
- package/build/static/css/4194.c3cbce8d.chunk.css +0 -2
- package/build/static/css/4602.bebe5a0a.chunk.css +0 -2
- package/build/static/css/4666.07773654.chunk.css +0 -2
- package/build/static/css/5807.ba891dd2.chunk.css +0 -2
- package/build/static/css/5965.be6e21e1.chunk.css +0 -2
- package/build/static/css/6756.ef8c070b.chunk.css +0 -2
- package/build/static/css/7227.730062a5.chunk.css +0 -2
- package/build/static/css/7277.5ed68dca.chunk.css +0 -2
- package/build/static/css/764.6fcdb61a.chunk.css +0 -2
- package/build/static/js/1649.9d5250c5.chunk.js +0 -2
- package/build/static/js/1649.9d5250c5.chunk.js.map +0 -1
- package/build/static/js/2363.2a6d06fa.chunk.js.map +0 -1
- package/build/static/js/3375.c42bdb9c.chunk.js.map +0 -1
- package/build/static/js/374.bee847c5.chunk.js.map +0 -1
- package/build/static/js/3856.0ddcc3a9.chunk.js +0 -2
- package/build/static/js/4194.627888ca.chunk.js +0 -2
- package/build/static/js/4194.627888ca.chunk.js.map +0 -1
- package/build/static/js/4602.4b11e807.chunk.js +0 -2
- package/build/static/js/4602.4b11e807.chunk.js.map +0 -1
- package/build/static/js/5371.36ebf1ef.chunk.js +0 -2
- package/build/static/js/5965.321d6fd9.chunk.js +0 -2
- package/build/static/js/5965.321d6fd9.chunk.js.map +0 -1
- package/build/static/js/711.415cb7fb.chunk.js +0 -2
- package/build/static/js/711.415cb7fb.chunk.js.map +0 -1
- package/build/static/js/7253.1bd27ffb.chunk.js +0 -2
- package/build/static/js/7334.f7df0863.chunk.js +0 -2
- package/build/static/js/764.577847fd.chunk.js +0 -2
- package/build/static/js/8503.4bf8c84b.chunk.js +0 -2
- package/build/static/js/8869.8014c2a2.chunk.js.map +0 -1
- package/build/static/js/main.cc68a562.js +0 -2
- /package/build/static/js/{1153.d8bc7e44.chunk.js.LICENSE.txt → 1153.f44c41ca.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.6ab30bd8.chunk.js.LICENSE.txt → 1554.56edf68a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.354d93c3.chunk.js.LICENSE.txt → 2716.77fd7efa.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.ae8e12c7.chunk.js.LICENSE.txt → 4666.20a2f5f1.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.96bff868.chunk.js.LICENSE.txt → 7227.7f94ab19.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/css/7866.
|
|
1
|
+
{"version":3,"file":"static/css/7866.d81cb27c.chunk.css","mappings":"AAAA,2BACE,kBAEA,iCACE,WAOA,mBANA,cAEA,YAEA,OADA,kBAEA,MAJA,UAKA,CCXJ,iBAKE,wBAAyB,CACzB,sBAAuB,CAJvB,qBAAsB,CACtB,cAAe,CACf,0B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,SAAU,CANV,iBAAkB,CAOlB,iCACF,CAEA,8CACE,UAAY,CACZ,mBAAoB,CACpB,sBACF,CAEA,oCACE,KAAM,CACN,UACF,CAEA,4BAEE,UAAW,CACX,QAAS,CACT,SAAU,CAHV,OAIF,CAEA,sCAEE,WAAY,CADZ,MAEF,CAEA,2DAIE,QAAS,CAFT,MAAO,CAGP,YAAa,CACb,cAAe,CALf,UAAW,CAEX,KAAM,CAIN,UACF,CAGA,mEAEE,MAAO,CADP,UAEF,CAEA,gCASE,sCAAwC,CARxC,aAAc,CAId,YAAa,CAFb,SAAU,CAKV,iBAAkB,CADlB,iBAAkB,CALlB,cAAe,CAEf,iBAAkB,CAElB,WAIF,CAEA,oCAEE,WAAY,CACZ,aAAc,CAFd,UAGF,CAEA,0BAME,uBAAwB,CAJxB,MAAO,CAEP,iBAAkB,CAHlB,cAAe,CAIf,oBAAqB,CAFrB,iBAIF,CCrOA,2BACE,iBAAkB,CAElB,qBAAsB,CACtB,eAAgB,CAFhB,iBAGF,CACA,yDAEE,YAAa,CACb,qBAAsB,CAFtB,eAGF,CACA,mDAGE,oBAAqB,CAFrB,YAAa,CAGb,QAAO,CAFP,wBAGF,CACA,wDACE,YACF,CAEA,2BACE,iBAAkB,CAElB,qBAAsB,CADtB,iBAEF,CAEA,gBACE,UAAc,CAEd,cAAe,CADf,eAEF,CACA,uBACE,uBACF,CACA,oBACE,aAAwC,CAAxC,sCAAwC,CACxC,cACF,CACA,wBACE,aACF,CAzCA,QACE,UAEF,CAEA,gBAHE,mBASF,CANA,QAEE,QAAS,CACT,eAAgB,CAChB,iBAAkB,CAHlB,OAKF,CAEA,QACE,iBACF,CAEA,gCAEE,0BAAkC,CADlC,mBAEF,CACA,gBAEE,WAAY,CADZ,yBAA2B,CAE3B,UACF,CACA,+BACE,0BACF,CACA,yBACE,eACF,CACA,gCACE,UACF,CACA,sCACE,YACF,CACA,qCAEE,2CAA6C,CAD7C,0BAEF","sources":["components/Permissions/style.module.scss","../node_modules/simplebar/dist/simplebar.css","../node_modules/@kne/button-group/dist/style.module.scss"],"sourcesContent":[".outer {\n position: relative;\n\n &:after {\n content: \"\";\n display: block;\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n cursor: not-allowed;\n }\n}\n","[data-simplebar] {\n position: relative;\n flex-direction: column;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: flex-start;\n}\n\n.simplebar-wrapper {\n overflow: hidden;\n width: inherit;\n height: inherit;\n max-width: inherit;\n max-height: inherit;\n}\n\n.simplebar-mask {\n direction: inherit;\n position: absolute;\n overflow: hidden;\n padding: 0;\n margin: 0;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: auto !important;\n height: auto !important;\n z-index: 0;\n}\n\n.simplebar-offset {\n direction: inherit !important;\n box-sizing: inherit !important;\n resize: none !important;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n padding: 0;\n margin: 0;\n -webkit-overflow-scrolling: touch;\n}\n\n.simplebar-content-wrapper {\n direction: inherit;\n box-sizing: border-box !important;\n position: relative;\n display: block;\n height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */\n width: auto;\n max-width: 100%; /* Not required for horizontal scroll to trigger */\n max-height: 100%; /* Needed for vertical scroll to trigger */\n overflow: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n\n.simplebar-content-wrapper::-webkit-scrollbar,\n.simplebar-hide-scrollbar::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n}\n\n.simplebar-content:before,\n.simplebar-content:after {\n content: ' ';\n display: table;\n}\n\n.simplebar-placeholder {\n max-height: 100%;\n max-width: 100%;\n width: 100%;\n pointer-events: none;\n}\n\n.simplebar-height-auto-observer-wrapper {\n box-sizing: inherit !important;\n height: 100%;\n width: 100%;\n max-width: 1px;\n position: relative;\n float: left;\n max-height: 1px;\n overflow: hidden;\n z-index: -1;\n padding: 0;\n margin: 0;\n pointer-events: none;\n flex-grow: inherit;\n flex-shrink: 0;\n flex-basis: 0;\n}\n\n.simplebar-height-auto-observer {\n box-sizing: inherit;\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n height: 1000%;\n width: 1000%;\n min-height: 1px;\n min-width: 1px;\n overflow: hidden;\n pointer-events: none;\n z-index: -1;\n}\n\n.simplebar-track {\n z-index: 1;\n position: absolute;\n right: 0;\n bottom: 0;\n pointer-events: none;\n overflow: hidden;\n}\n\n[data-simplebar].simplebar-dragging {\n pointer-events: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n[data-simplebar].simplebar-dragging .simplebar-content {\n pointer-events: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n[data-simplebar].simplebar-dragging .simplebar-track {\n pointer-events: all;\n}\n\n.simplebar-scrollbar {\n position: absolute;\n left: 0;\n right: 0;\n min-height: 10px;\n}\n\n.simplebar-scrollbar:before {\n position: absolute;\n content: '';\n background: black;\n border-radius: 7px;\n left: 2px;\n right: 2px;\n opacity: 0;\n transition: opacity 0.2s 0.5s linear;\n}\n\n.simplebar-scrollbar.simplebar-visible:before {\n opacity: 0.5;\n transition-delay: 0s;\n transition-duration: 0s;\n}\n\n.simplebar-track.simplebar-vertical {\n top: 0;\n width: 11px;\n}\n\n.simplebar-scrollbar:before {\n top: 2px;\n bottom: 2px;\n left: 2px;\n right: 2px;\n}\n\n.simplebar-track.simplebar-horizontal {\n left: 0;\n height: 11px;\n}\n\n.simplebar-track.simplebar-horizontal .simplebar-scrollbar {\n right: auto;\n left: 0;\n top: 0;\n bottom: 0;\n min-height: 0;\n min-width: 10px;\n width: auto;\n}\n\n/* Rtl support */\n[data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {\n right: auto;\n left: 0;\n}\n\n.simplebar-dummy-scrollbar-size {\n direction: rtl;\n position: fixed;\n opacity: 0;\n visibility: hidden;\n height: 500px;\n width: 500px;\n overflow-y: hidden;\n overflow-x: scroll;\n -ms-overflow-style: scrollbar !important;\n}\n\n.simplebar-dummy-scrollbar-size > div {\n width: 200%;\n height: 200%;\n margin: 10px 0;\n}\n\n.simplebar-hide-scrollbar {\n position: fixed;\n left: 0;\n visibility: hidden;\n overflow-y: scroll;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n",".width-container {\n width: 100%;\n pointer-events: none;\n}\n\n.hidden-container {\n width: 0;\n height: 0;\n overflow: hidden;\n position: relative;\n pointer-events: none;\n}\n\n.hidden-inner {\n position: absolute;\n}\n\n.menu-list :global .ant-dropdown-menu-item {\n padding: 0 !important;\n background: transparent !important;\n}\n.menu-list .btn-item {\n padding: 5px 8px !important;\n border: none;\n width: 100%;\n}\n.menu-list .btn-item:not(:disabled) {\n color: var(--primary-color);\n}\n.menu-list .btn-item:disabled {\n background: #ffffff;\n}\n.menu-list .btn-item:global(.ant-btn-primary) {\n color: #ffffff;\n}\n.menu-list .btn-item :global(.ant-btn-loading-icon) {\n display: none;\n}\n.menu-list .btn-item:hover:not(:disabled) {\n color: var(--primary-color);\n background: var(--primary-color-1) !important;\n}"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[data-simplebar]{align-content:flex-start;align-items:flex-start;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;position:relative}.simplebar-wrapper{height:inherit;max-height:inherit;max-width:inherit;overflow:hidden;width:inherit}.simplebar-mask{direction:inherit;height:auto!important;overflow:hidden;width:auto!important;z-index:0}.simplebar-mask,.simplebar-offset{bottom:0;left:0;margin:0;padding:0;position:absolute;right:0;top:0}.simplebar-offset{-webkit-overflow-scrolling:touch;box-sizing:inherit!important;direction:inherit!important;resize:none!important}.simplebar-content-wrapper{-ms-overflow-style:none;box-sizing:border-box!important;direction:inherit;display:block;height:100%;max-height:100%;max-width:100%;overflow:auto;position:relative;scrollbar-width:none;width:auto}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;height:0;width:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;pointer-events:none;width:100%}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;flex-basis:0;flex-grow:inherit;flex-shrink:0;float:left;height:100%;margin:0;max-height:1px;max-width:1px;overflow:hidden;padding:0;pointer-events:none;position:relative;width:100%;z-index:-1}.simplebar-height-auto-observer{box-sizing:inherit;display:block;height:1000%;left:0;min-height:1px;min-width:1px;opacity:0;top:0;width:1000%;z-index:-1}.simplebar-height-auto-observer,.simplebar-track{overflow:hidden;pointer-events:none;position:absolute}.simplebar-track{bottom:0;right:0;z-index:1}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{-webkit-touch-callout:none;pointer-events:none;-webkit-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{left:0;min-height:10px;position:absolute;right:0}.simplebar-scrollbar:before{background:#000;border-radius:7px;content:"";opacity:0;position:absolute;transition:opacity .2s linear .5s}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{bottom:2px;left:2px;right:2px;top:2px}.simplebar-track.simplebar-horizontal{height:11px;left:0}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{bottom:0;left:0;min-height:0;min-width:10px;right:auto;top:0;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{left:0;right:auto}.simplebar-dummy-scrollbar-size{-ms-overflow-style:scrollbar!important;direction:rtl;height:500px;opacity:0;overflow-x:scroll;overflow-y:hidden;position:fixed;visibility:hidden;width:500px}.simplebar-dummy-scrollbar-size>div{height:200%;margin:10px 0;width:200%}.simplebar-hide-scrollbar{-ms-overflow-style:none;left:0;overflow-y:scroll;position:fixed;scrollbar-width:none;visibility:hidden}._zIHFy .ant-popover-inner{border-radius:8px;box-sizing:border-box;max-width:400px;padding:18px 24px}._zIHFy .ant-popover-inner .ant-popconfirm-inner-content{display:flex;flex-direction:column;min-height:60px}._zIHFy .ant-popover-inner .ant-popconfirm-buttons{align-items:flex-end;display:flex;flex:1 1;justify-content:flex-end}._zIHFy .ant-popover-inner .ant-popconfirm-message-icon{display:none}._R-IrF .ant-modal-content{border-radius:8px;box-sizing:border-box;padding:18px 24px}._F1kMl ._Iee0d{color:#222;font-size:14px;font-weight:700}._F1kMl ._aGBVE._0oW1K{color:var(--font-color)}._F1kMl .title-icon{color:#f53f3f;color:var(--state-error-color,#f53f3f);margin-top:4px}._F1kMl .title-icon>svg{display:block}._V58ju{width:100%}._V58ju,._XN3o6{pointer-events:none}._XN3o6{height:0;overflow:hidden;position:relative;width:0}._-depB{position:absolute}._juFTd .ant-dropdown-menu-item{background:#0000!important;padding:0!important}._juFTd ._x6dp-{border:none;padding:5px 8px!important;width:100%}._juFTd ._x6dp-:not(:disabled){color:var(--primary-color)}._juFTd ._x6dp-:disabled{background:#fff}._juFTd ._x6dp-.ant-btn-primary{color:#fff}._juFTd ._x6dp- .ant-btn-loading-icon{display:none}._juFTd ._x6dp-:hover:not(:disabled){background:var(--primary-color-1)!important;color:var(--primary-color)}.style_notification__Vv-
|
|
2
|
-
/*# sourceMappingURL=8503.
|
|
1
|
+
[data-simplebar]{align-content:flex-start;align-items:flex-start;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;position:relative}.simplebar-wrapper{height:inherit;max-height:inherit;max-width:inherit;overflow:hidden;width:inherit}.simplebar-mask{direction:inherit;height:auto!important;overflow:hidden;width:auto!important;z-index:0}.simplebar-mask,.simplebar-offset{bottom:0;left:0;margin:0;padding:0;position:absolute;right:0;top:0}.simplebar-offset{-webkit-overflow-scrolling:touch;box-sizing:inherit!important;direction:inherit!important;resize:none!important}.simplebar-content-wrapper{-ms-overflow-style:none;box-sizing:border-box!important;direction:inherit;display:block;height:100%;max-height:100%;max-width:100%;overflow:auto;position:relative;scrollbar-width:none;width:auto}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;height:0;width:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;pointer-events:none;width:100%}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;flex-basis:0;flex-grow:inherit;flex-shrink:0;float:left;height:100%;margin:0;max-height:1px;max-width:1px;overflow:hidden;padding:0;pointer-events:none;position:relative;width:100%;z-index:-1}.simplebar-height-auto-observer{box-sizing:inherit;display:block;height:1000%;left:0;min-height:1px;min-width:1px;opacity:0;top:0;width:1000%;z-index:-1}.simplebar-height-auto-observer,.simplebar-track{overflow:hidden;pointer-events:none;position:absolute}.simplebar-track{bottom:0;right:0;z-index:1}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{-webkit-touch-callout:none;pointer-events:none;-webkit-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{left:0;min-height:10px;position:absolute;right:0}.simplebar-scrollbar:before{background:#000;border-radius:7px;content:"";opacity:0;position:absolute;transition:opacity .2s linear .5s}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{bottom:2px;left:2px;right:2px;top:2px}.simplebar-track.simplebar-horizontal{height:11px;left:0}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{bottom:0;left:0;min-height:0;min-width:10px;right:auto;top:0;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{left:0;right:auto}.simplebar-dummy-scrollbar-size{-ms-overflow-style:scrollbar!important;direction:rtl;height:500px;opacity:0;overflow-x:scroll;overflow-y:hidden;position:fixed;visibility:hidden;width:500px}.simplebar-dummy-scrollbar-size>div{height:200%;margin:10px 0;width:200%}.simplebar-hide-scrollbar{-ms-overflow-style:none;left:0;overflow-y:scroll;position:fixed;scrollbar-width:none;visibility:hidden}._zIHFy .ant-popover-inner{border-radius:8px;box-sizing:border-box;max-width:400px;padding:18px 24px}._zIHFy .ant-popover-inner .ant-popconfirm-inner-content{display:flex;flex-direction:column;min-height:60px}._zIHFy .ant-popover-inner .ant-popconfirm-buttons{align-items:flex-end;display:flex;flex:1 1;justify-content:flex-end}._zIHFy .ant-popover-inner .ant-popconfirm-message-icon{display:none}._R-IrF .ant-modal-content{border-radius:8px;box-sizing:border-box;padding:18px 24px}._F1kMl ._Iee0d{color:#222;font-size:14px;font-weight:700}._F1kMl ._aGBVE._0oW1K{color:var(--font-color)}._F1kMl .title-icon{color:#f53f3f;color:var(--state-error-color,#f53f3f);margin-top:4px}._F1kMl .title-icon>svg{display:block}._V58ju{width:100%}._V58ju,._XN3o6{pointer-events:none}._XN3o6{height:0;overflow:hidden;position:relative;width:0}._-depB{position:absolute}._juFTd .ant-dropdown-menu-item{background:#0000!important;padding:0!important}._juFTd ._x6dp-{border:none;padding:5px 8px!important;width:100%}._juFTd ._x6dp-:not(:disabled){color:var(--primary-color)}._juFTd ._x6dp-:disabled{background:#fff}._juFTd ._x6dp-.ant-btn-primary{color:#fff}._juFTd ._x6dp- .ant-btn-loading-icon{display:none}._juFTd ._x6dp-:hover:not(:disabled){background:var(--primary-color-1)!important;color:var(--primary-color)}.style_notification__Vv-MM__QLQZG{position:fixed;right:20px;top:var(--nav-only-height);z-index:1000}.style_list__l8KOo__QLQZG{box-sizing:initial;max-height:calc(100vh - var(--nav-only-height) - var(--head-option-height));padding:0 32px;transform:translateX(32px);width:320px}.style_header__3dcv8__QLQZG{background:linear-gradient(90deg,#fff0 17.3%,#fff 0,#fff);padding:4px 0}.style_item__d92RS__QLQZG{position:relative}.style_item__d92RS__QLQZG:after{background:linear-gradient(180deg,#fff0,#fffc 10%,#fff 50%,#fff);bottom:0;content:"";display:block;height:16px;pointer-events:none;position:absolute;width:100%}.style_item-box__dd-Lk__QLQZG{box-shadow:0 4px 32px 0 #0003;width:320px}.style_item-box__dd-Lk__QLQZG:last-child{box-shadow:none}.style_item-box__dd-Lk__QLQZG.style_index-1__f97L0__QLQZG,.style_item-box__dd-Lk__QLQZG.style_index-2__04vAw__QLQZG{background:#fff;border-radius:0 0 2px 2px;height:30px;left:50%;pointer-events:none;position:absolute;transform:translateX(-50%)}.style_item-box__dd-Lk__QLQZG.style_index-1__f97L0__QLQZG{bottom:-10px;width:300px}.style_item-box__dd-Lk__QLQZG.style_index-2__04vAw__QLQZG{bottom:-20px;width:280px}.style_item-box__dd-Lk__QLQZG.style_item-box-main__lnSak__QLQZG{margin-bottom:calc(var(--group-length)*10px);position:relative}.style_item-title__mArMd__QLQZG{border-radius:2px 2px 0 0;display:flex;height:32px;padding:0 16px}.style_item-title__mArMd__QLQZG,.style_item-title__mArMd__QLQZG .ant-typography{color:#fff;font-size:14px;line-height:32px}.style_item-title__mArMd__QLQZG.style_level-high__Uys7Y__QLQZG{background:#f66969}.style_item-title__mArMd__QLQZG.style_level-middle__EewyC__QLQZG{background:#ffb566}.style_item-title__mArMd__QLQZG.style_level-low__8kVyL__QLQZG{background:#7cabfe}.style_title-icon__1EoAG__QLQZG{font-size:16px!important;margin-right:4px}.style_item-subtitle__xeFJs__QLQZG{color:var(--font-color);display:flex;font-weight:700;justify-content:space-between;line-height:20px;margin-bottom:8px}.style_item-subtitle__xeFJs__QLQZG .ant-typography{font-size:12px;line-height:20px}.style_close-btn__7qpG3__QLQZG{color:var(--font-color-grey);cursor:pointer;font-size:14px!important;font-weight:400}.style_close-btn__7qpG3__QLQZG.style_is-loading__upVL\+__QLQZG{color:var(--font-color-grey-2);cursor:wait}.style_item-content__8MlsG__QLQZG{background:#fff;border-radius:0 0 2px 2px;box-shadow:0 4px 32px 0 #0003;color:var(--font-color-grey);font-size:12px;height:148px;line-height:20px;overflow:hidden;padding:16px}.style_item-content__8MlsG__QLQZG .content-content,.style_item-content__8MlsG__QLQZG .content-label{color:var(--font-color-grey)}.style_link-outer__kegyZ__QLQZG{bottom:16px;position:absolute;right:16px}.style_link-outer__kegyZ__QLQZG:before{background:linear-gradient(90deg,#ffffff80,#fff);content:"";display:block;height:100%;pointer-events:none;position:absolute;right:0;top:0;width:92px}.style_link__F2CO-__QLQZG{line-height:22px;position:relative}.style_is-last-item__MytRl__QLQZG{margin-bottom:calc(var(--group-length)*10px + 30px)}
|
|
2
|
+
/*# sourceMappingURL=8503.d06bbf81.chunk.css.map*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/css/8503.1cad014c.chunk.css","mappings":"AAAA,iBAKE,wBAAyB,CACzB,sBAAuB,CAJvB,qBAAsB,CACtB,cAAe,CACf,0BAA2B,CAH3B,iBAMF,CAEA,mBAGE,cAAe,CAEf,kBAAmB,CADnB,iBAAkB,CAHlB,eAAgB,CAChB,aAIF,CAEA,gBACE,iBAAkB,CAUlB,qBAAuB,CARvB,eAAgB,CAOhB,oBAAsB,CAEtB,SACF,CAEA,kCAPE,QAAS,CAFT,MAAO,CADP,QAAS,CADT,SAAU,CAFV,iBAAkB,CAOlB,OAAQ,CAFR,KAoBF,CAZA,kBAWE,gCAAiC,CATjC,4BAA8B,CAD9B,2BAA6B,CAE7B,qBASF,CAEA,2BAWE,uBAAwB,CATxB,+BAAiC,CADjC,iBAAkB,CAGlB,aAAc,CACd,WAAY,CAGZ,eAAgB,CADhB,cAAe,CAEf,aAAc,CANd,iBAAkB,CAOlB,oBAAqB,CAJrB,UAMF,CAEA,2FAEE,YAAa,CAEb,QAAS,CADT,OAEF,CAEA,mDAEE,WAAY,CACZ,aACF,CAEA,uBACE,eAAgB,CAChB,cAAe,CAEf,mBAAoB,CADpB,UAEF,CAEA,wCACE,4BAA8B,CAc9B,YAAa,CAFb,iBAAkB,CAClB,aAAc,CARd,UAAW,CAJX,WAAY,CASZ,QAAS,CAJT,cAAe,CAHf,aAAc,CAId,eA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AMA,CAIJ,0BACE,iBACA,kBAGF,kCACE","sources":["../node_modules/simplebar/dist/simplebar.css","../node_modules/@kne/button-group/dist/style.module.scss","components/Notification/style.module.scss"],"sourcesContent":["[data-simplebar] {\n position: relative;\n flex-direction: column;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: flex-start;\n}\n\n.simplebar-wrapper {\n overflow: hidden;\n width: inherit;\n height: inherit;\n max-width: inherit;\n max-height: inherit;\n}\n\n.simplebar-mask {\n direction: inherit;\n position: absolute;\n overflow: hidden;\n padding: 0;\n margin: 0;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: auto !important;\n height: auto !important;\n z-index: 0;\n}\n\n.simplebar-offset {\n direction: inherit !important;\n box-sizing: inherit !important;\n resize: none !important;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n padding: 0;\n margin: 0;\n -webkit-overflow-scrolling: touch;\n}\n\n.simplebar-content-wrapper {\n direction: inherit;\n box-sizing: border-box !important;\n position: relative;\n display: block;\n height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */\n width: auto;\n max-width: 100%; /* Not required for horizontal scroll to trigger */\n max-height: 100%; /* Needed for vertical scroll to trigger */\n overflow: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n\n.simplebar-content-wrapper::-webkit-scrollbar,\n.simplebar-hide-scrollbar::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n}\n\n.simplebar-content:before,\n.simplebar-content:after {\n content: ' ';\n display: table;\n}\n\n.simplebar-placeholder {\n max-height: 100%;\n max-width: 100%;\n width: 100%;\n pointer-events: none;\n}\n\n.simplebar-height-auto-observer-wrapper {\n box-sizing: inherit !important;\n height: 100%;\n width: 100%;\n max-width: 1px;\n position: relative;\n float: left;\n max-height: 1px;\n overflow: hidden;\n z-index: -1;\n padding: 0;\n margin: 0;\n pointer-events: none;\n flex-grow: inherit;\n flex-shrink: 0;\n flex-basis: 0;\n}\n\n.simplebar-height-auto-observer {\n box-sizing: inherit;\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n height: 1000%;\n width: 1000%;\n min-height: 1px;\n min-width: 1px;\n overflow: hidden;\n pointer-events: none;\n z-index: -1;\n}\n\n.simplebar-track {\n z-index: 1;\n position: absolute;\n right: 0;\n bottom: 0;\n pointer-events: none;\n overflow: hidden;\n}\n\n[data-simplebar].simplebar-dragging {\n pointer-events: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n[data-simplebar].simplebar-dragging .simplebar-content {\n pointer-events: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n[data-simplebar].simplebar-dragging .simplebar-track {\n pointer-events: all;\n}\n\n.simplebar-scrollbar {\n position: absolute;\n left: 0;\n right: 0;\n min-height: 10px;\n}\n\n.simplebar-scrollbar:before {\n position: absolute;\n content: '';\n background: black;\n border-radius: 7px;\n left: 2px;\n right: 2px;\n opacity: 0;\n transition: opacity 0.2s 0.5s linear;\n}\n\n.simplebar-scrollbar.simplebar-visible:before {\n opacity: 0.5;\n transition-delay: 0s;\n transition-duration: 0s;\n}\n\n.simplebar-track.simplebar-vertical {\n top: 0;\n width: 11px;\n}\n\n.simplebar-scrollbar:before {\n top: 2px;\n bottom: 2px;\n left: 2px;\n right: 2px;\n}\n\n.simplebar-track.simplebar-horizontal {\n left: 0;\n height: 11px;\n}\n\n.simplebar-track.simplebar-horizontal .simplebar-scrollbar {\n right: auto;\n left: 0;\n top: 0;\n bottom: 0;\n min-height: 0;\n min-width: 10px;\n width: auto;\n}\n\n/* Rtl support */\n[data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {\n right: auto;\n left: 0;\n}\n\n.simplebar-dummy-scrollbar-size {\n direction: rtl;\n position: fixed;\n opacity: 0;\n visibility: hidden;\n height: 500px;\n width: 500px;\n overflow-y: hidden;\n overflow-x: scroll;\n -ms-overflow-style: scrollbar !important;\n}\n\n.simplebar-dummy-scrollbar-size > div {\n width: 200%;\n height: 200%;\n margin: 10px 0;\n}\n\n.simplebar-hide-scrollbar {\n position: fixed;\n left: 0;\n visibility: hidden;\n overflow-y: scroll;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n",".width-container {\n width: 100%;\n pointer-events: none;\n}\n\n.hidden-container {\n width: 0;\n height: 0;\n overflow: hidden;\n position: relative;\n pointer-events: none;\n}\n\n.hidden-inner {\n position: absolute;\n}\n\n.menu-list :global .ant-dropdown-menu-item {\n padding: 0 !important;\n background: transparent !important;\n}\n.menu-list .btn-item {\n padding: 5px 8px !important;\n border: none;\n width: 100%;\n}\n.menu-list .btn-item:not(:disabled) {\n color: var(--primary-color);\n}\n.menu-list .btn-item:disabled {\n background: #ffffff;\n}\n.menu-list .btn-item:global(.ant-btn-primary) {\n color: #ffffff;\n}\n.menu-list .btn-item :global(.ant-btn-loading-icon) {\n display: none;\n}\n.menu-list .btn-item:hover:not(:disabled) {\n color: var(--primary-color);\n background: var(--primary-color-1) !important;\n}",".notification {\n position: fixed;\n top: var(--nav-only-height);\n right: 20px;\n z-index: 1000;\n}\n\n.list {\n max-height: calc(100vh - var(--nav-only-height) - var(--head-option-height));\n padding: 0 32px;\n width: 320px;\n box-sizing: content-box;\n transform: translateX(32px);\n}\n\n.header {\n padding: 4px 0;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 17.3%,\n #ffffff 17.3%,\n #ffffff 100%\n );\n}\n\n.item {\n position: relative;\n\n &:after {\n content: \"\";\n display: block;\n width: 100%;\n height: 16px;\n position: absolute;\n bottom: 0;\n background: linear-gradient(\n 180deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.8) 10%,\n #ffffff 50%,\n #ffffff 100%\n );\n pointer-events: none;\n }\n}\n\n.item-box {\n box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.2);\n width: 320px;\n\n &:last-child {\n box-shadow: none;\n }\n\n &.index-1,\n &.index-2 {\n position: absolute;\n height: 30px;\n left: 50%;\n transform: translateX(-50%);\n border-radius: 0 0 2px 2px;\n background: #ffffff;\n pointer-events: none;\n }\n\n &.index-1 {\n bottom: -10px;\n width: 300px;\n }\n\n &.index-2 {\n bottom: -20px;\n width: 280px;\n }\n\n &.item-box-main {\n position: relative;\n margin-bottom: calc(var(--group-length) * 10px);\n }\n}\n\n.item-title {\n line-height: 32px;\n height: 32px;\n font-size: 14px;\n color: #ffffff;\n border-radius: 2px 2px 0 0;\n padding: 0 16px;\n display: flex;\n\n :global(.ant-typography) {\n line-height: 32px;\n font-size: 14px;\n color: #ffffff;\n }\n\n &.level-high {\n background: #f66969;\n }\n\n &.level-middle {\n background: #ffb566;\n }\n\n &.level-low {\n background: #7cabfe;\n }\n}\n\n.title-icon {\n margin-right: 4px;\n font-size: 16px !important;\n}\n\n.item-subtitle {\n font-weight: bold;\n line-height: 20px;\n margin-bottom: 8px;\n color: var(--font-color);\n display: flex;\n justify-content: space-between;\n\n :global(.ant-typography) {\n line-height: 20px;\n font-size: 12px;\n }\n}\n\n.close-btn {\n font-size: 14px !important;\n color: var(--font-color-grey);\n font-weight: normal;\n cursor: pointer;\n\n &.is-loading {\n color: var(--font-color-grey-2);\n cursor: wait;\n }\n}\n\n.item-content {\n height: 148px;\n border-radius: 0 0 2px 2px;\n background: #ffffff;\n padding: 16px;\n overflow: hidden;\n color: var(--font-color-grey);\n line-height: 20px;\n font-size: 12px;\n box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.2);\n\n :global(.content-content),\n :global(.content-label) {\n color: var(--font-color-grey);\n }\n}\n\n.link-outer {\n position: absolute;\n right: 16px;\n bottom: 16px;\n\n &:before {\n content: \"\";\n display: block;\n position: absolute;\n height: 100%;\n top: 0;\n right: 0;\n width: 92px;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0.5) 0%,\n #ffffff 100%\n );\n pointer-events: none;\n }\n}\n\n.link {\n line-height: 22px;\n position: relative;\n}\n\n.is-last-item {\n margin-bottom: calc(var(--group-length) * 10px + 30px);\n}\n"],"names":[],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/css/8503.d06bbf81.chunk.css","mappings":"AAAA,iBAKE,wBAAyB,CACzB,sBAAuB,CAJvB,qBAAsB,CACtB,cAAe,CACf,0BAA2B,CAH3B,iBAMF,CAEA,mBAGE,cAAe,CAEf,kBAAmB,CADnB,iBAAkB,CAHlB,eAAgB,CAChB,aAIF,CAEA,gBACE,iBAAkB,CAUlB,qBAAuB,CARvB,eAAgB,CAOhB,oBAAsB,CAEtB,SACF,CAEA,kCAPE,QAAS,CAFT,MAAO,CADP,QAAS,CADT,SAAU,CAFV,iBAAkB,CAOlB,OAAQ,CAFR,KAoBF,CAZA,kBAWE,gCAAiC,CATjC,4BAA8B,CAD9B,2BAA6B,CAE7B,qBASF,CAEA,2BAWE,uBAAwB,CATxB,+BAAiC,CADjC,iBAAkB,CAGlB,aAAc,CACd,WAAY,CAGZ,eAAgB,CADhB,cAAe,CAEf,aAAc,CANd,iBAAkB,CAOlB,oBAAqB,CAJrB,UAMF,CAEA,2FAEE,YAAa,CAEb,QAAS,CADT,OAEF,CAEA,mDAEE,WAAY,CACZ,aACF,CAEA,uBACE,eAAgB,CAChB,cAAe,CAEf,mBAAoB,CADpB,UAEF,CAEA,wCACE,4BAA8B,CAc9B,YAAa,CAFb,iBAAkB,CAClB,aAAc,CARd,UAAW,CAJX,WAAY,CASZ,QAAS,CAJT,cAAe,CAHf,aAAc,CAId,eAAgB,CAEhB,SAAU,CAEV,mBAAoB,CAPpB,iBAAkB,CAFlB,UAAW,CAMX,UAOF,CAEA,gCACE,kBAAmB,CACnB,aAAc,CAKd,YAAa,CADb,MAAO,CAGP,cAAe,CACf,aAAc,CAPd,SAAU,CAEV,KAAM,CAGN,WAAY,CAKZ,UACF,CAEA,iDALE,eAAgB,CACh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,CACT,eAAgB,CAChB,iBAAkB,CAHlB,OAKF,CAEA,QACE,iBACF,CAEA,gCAEE,0BAAkC,CADlC,mBAEF,CACA,gBAEE,WAAY,CADZ,yBAA2B,CAE3B,UACF,CACA,+BACE,0BACF,CACA,yBACE,eACF,CACA,gCACE,UACF,CACA,sCACE,YACF,CACA,qCAEE,2CAA6C,CAD7C,0BAEF,CCzCA,kCACE,eAEA,WADA,2BAEA,aAGF,0BAIE,mBAHA,4EACA,eAGA,2BAFA,WAEA,CAGF,4BAEE,0DADA,aACA,CAQF,0BACE,kBAEA,gCAOE,iEADA,SALA,WACA,cAEA,YAUA,oBATA,kBAFA,UAWA,CAIJ,8BACE,8BACA,YAEA,yCACE,gBAGF,oHAOE,gBADA,0BAHA,YACA,SAIA,oBANA,kBAGA,0BAGA,CAGF,0DACE,aACA,YAGF,0DACE,aACA,YAGF,gEAEE,6CADA,iBACA,CAIJ,gCAKE,0BAEA,aALA,YAIA,cACA,CAEA,gFALA,WADA,eAFA,gBAWE,CAGF,+DACE,mBAGF,iEACE,mBAGF,8DACE,mBAIJ,gCAEE,yBADA,gBACA,CAGF,mCAIE,wBACA,aAJA,gBAKA,8BAJA,iBACA,iBAGA,CAEA,mDAEE,eADA,gBACA,CAIJ,+BAEE,6BAEA,eAHA,yBAEA,eACA,CAEA,+DACE,+BACA,YAIJ,kCAGE,gBADA,0BAOA,8BAHA,6BAEA,eAPA,aAMA,iBAFA,gBADA,YAKA,CAEA,oGAEE,6BAIJ,gCAGE,YAFA,kBACA,UACA,CAEA,uCAQE,iDAPA,WACA,cAEA,YASA,oBAVA,kBAGA,QADA,MAEA,UAMA,CAIJ,0BACE,iBACA,kBAGF,kCACE","sources":["../node_modules/simplebar/dist/simplebar.css","../node_modules/@kne/button-group/dist/style.module.scss","components/Notification/style.module.scss"],"sourcesContent":["[data-simplebar] {\n position: relative;\n flex-direction: column;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-content: flex-start;\n align-items: flex-start;\n}\n\n.simplebar-wrapper {\n overflow: hidden;\n width: inherit;\n height: inherit;\n max-width: inherit;\n max-height: inherit;\n}\n\n.simplebar-mask {\n direction: inherit;\n position: absolute;\n overflow: hidden;\n padding: 0;\n margin: 0;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: auto !important;\n height: auto !important;\n z-index: 0;\n}\n\n.simplebar-offset {\n direction: inherit !important;\n box-sizing: inherit !important;\n resize: none !important;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n padding: 0;\n margin: 0;\n -webkit-overflow-scrolling: touch;\n}\n\n.simplebar-content-wrapper {\n direction: inherit;\n box-sizing: border-box !important;\n position: relative;\n display: block;\n height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */\n width: auto;\n max-width: 100%; /* Not required for horizontal scroll to trigger */\n max-height: 100%; /* Needed for vertical scroll to trigger */\n overflow: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n\n.simplebar-content-wrapper::-webkit-scrollbar,\n.simplebar-hide-scrollbar::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n}\n\n.simplebar-content:before,\n.simplebar-content:after {\n content: ' ';\n display: table;\n}\n\n.simplebar-placeholder {\n max-height: 100%;\n max-width: 100%;\n width: 100%;\n pointer-events: none;\n}\n\n.simplebar-height-auto-observer-wrapper {\n box-sizing: inherit !important;\n height: 100%;\n width: 100%;\n max-width: 1px;\n position: relative;\n float: left;\n max-height: 1px;\n overflow: hidden;\n z-index: -1;\n padding: 0;\n margin: 0;\n pointer-events: none;\n flex-grow: inherit;\n flex-shrink: 0;\n flex-basis: 0;\n}\n\n.simplebar-height-auto-observer {\n box-sizing: inherit;\n display: block;\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n height: 1000%;\n width: 1000%;\n min-height: 1px;\n min-width: 1px;\n overflow: hidden;\n pointer-events: none;\n z-index: -1;\n}\n\n.simplebar-track {\n z-index: 1;\n position: absolute;\n right: 0;\n bottom: 0;\n pointer-events: none;\n overflow: hidden;\n}\n\n[data-simplebar].simplebar-dragging {\n pointer-events: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n[data-simplebar].simplebar-dragging .simplebar-content {\n pointer-events: none;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n[data-simplebar].simplebar-dragging .simplebar-track {\n pointer-events: all;\n}\n\n.simplebar-scrollbar {\n position: absolute;\n left: 0;\n right: 0;\n min-height: 10px;\n}\n\n.simplebar-scrollbar:before {\n position: absolute;\n content: '';\n background: black;\n border-radius: 7px;\n left: 2px;\n right: 2px;\n opacity: 0;\n transition: opacity 0.2s 0.5s linear;\n}\n\n.simplebar-scrollbar.simplebar-visible:before {\n opacity: 0.5;\n transition-delay: 0s;\n transition-duration: 0s;\n}\n\n.simplebar-track.simplebar-vertical {\n top: 0;\n width: 11px;\n}\n\n.simplebar-scrollbar:before {\n top: 2px;\n bottom: 2px;\n left: 2px;\n right: 2px;\n}\n\n.simplebar-track.simplebar-horizontal {\n left: 0;\n height: 11px;\n}\n\n.simplebar-track.simplebar-horizontal .simplebar-scrollbar {\n right: auto;\n left: 0;\n top: 0;\n bottom: 0;\n min-height: 0;\n min-width: 10px;\n width: auto;\n}\n\n/* Rtl support */\n[data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {\n right: auto;\n left: 0;\n}\n\n.simplebar-dummy-scrollbar-size {\n direction: rtl;\n position: fixed;\n opacity: 0;\n visibility: hidden;\n height: 500px;\n width: 500px;\n overflow-y: hidden;\n overflow-x: scroll;\n -ms-overflow-style: scrollbar !important;\n}\n\n.simplebar-dummy-scrollbar-size > div {\n width: 200%;\n height: 200%;\n margin: 10px 0;\n}\n\n.simplebar-hide-scrollbar {\n position: fixed;\n left: 0;\n visibility: hidden;\n overflow-y: scroll;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n",".width-container {\n width: 100%;\n pointer-events: none;\n}\n\n.hidden-container {\n width: 0;\n height: 0;\n overflow: hidden;\n position: relative;\n pointer-events: none;\n}\n\n.hidden-inner {\n position: absolute;\n}\n\n.menu-list :global .ant-dropdown-menu-item {\n padding: 0 !important;\n background: transparent !important;\n}\n.menu-list .btn-item {\n padding: 5px 8px !important;\n border: none;\n width: 100%;\n}\n.menu-list .btn-item:not(:disabled) {\n color: var(--primary-color);\n}\n.menu-list .btn-item:disabled {\n background: #ffffff;\n}\n.menu-list .btn-item:global(.ant-btn-primary) {\n color: #ffffff;\n}\n.menu-list .btn-item :global(.ant-btn-loading-icon) {\n display: none;\n}\n.menu-list .btn-item:hover:not(:disabled) {\n color: var(--primary-color);\n background: var(--primary-color-1) !important;\n}",".notification {\n position: fixed;\n top: var(--nav-only-height);\n right: 20px;\n z-index: 1000;\n}\n\n.list {\n max-height: calc(100vh - var(--nav-only-height) - var(--head-option-height));\n padding: 0 32px;\n width: 320px;\n box-sizing: content-box;\n transform: translateX(32px);\n}\n\n.header {\n padding: 4px 0;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 17.3%,\n #ffffff 17.3%,\n #ffffff 100%\n );\n}\n\n.item {\n position: relative;\n\n &:after {\n content: \"\";\n display: block;\n width: 100%;\n height: 16px;\n position: absolute;\n bottom: 0;\n background: linear-gradient(\n 180deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.8) 10%,\n #ffffff 50%,\n #ffffff 100%\n );\n pointer-events: none;\n }\n}\n\n.item-box {\n box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.2);\n width: 320px;\n\n &:last-child {\n box-shadow: none;\n }\n\n &.index-1,\n &.index-2 {\n position: absolute;\n height: 30px;\n left: 50%;\n transform: translateX(-50%);\n border-radius: 0 0 2px 2px;\n background: #ffffff;\n pointer-events: none;\n }\n\n &.index-1 {\n bottom: -10px;\n width: 300px;\n }\n\n &.index-2 {\n bottom: -20px;\n width: 280px;\n }\n\n &.item-box-main {\n position: relative;\n margin-bottom: calc(var(--group-length) * 10px);\n }\n}\n\n.item-title {\n line-height: 32px;\n height: 32px;\n font-size: 14px;\n color: #ffffff;\n border-radius: 2px 2px 0 0;\n padding: 0 16px;\n display: flex;\n\n :global(.ant-typography) {\n line-height: 32px;\n font-size: 14px;\n color: #ffffff;\n }\n\n &.level-high {\n background: #f66969;\n }\n\n &.level-middle {\n background: #ffb566;\n }\n\n &.level-low {\n background: #7cabfe;\n }\n}\n\n.title-icon {\n margin-right: 4px;\n font-size: 16px !important;\n}\n\n.item-subtitle {\n font-weight: bold;\n line-height: 20px;\n margin-bottom: 8px;\n color: var(--font-color);\n display: flex;\n justify-content: space-between;\n\n :global(.ant-typography) {\n line-height: 20px;\n font-size: 12px;\n }\n}\n\n.close-btn {\n font-size: 14px !important;\n color: var(--font-color-grey);\n font-weight: normal;\n cursor: pointer;\n\n &.is-loading {\n color: var(--font-color-grey-2);\n cursor: wait;\n }\n}\n\n.item-content {\n height: 148px;\n border-radius: 0 0 2px 2px;\n background: #ffffff;\n padding: 16px;\n overflow: hidden;\n color: var(--font-color-grey);\n line-height: 20px;\n font-size: 12px;\n box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.2);\n\n :global(.content-content),\n :global(.content-label) {\n color: var(--font-color-grey);\n }\n}\n\n.link-outer {\n position: absolute;\n right: 16px;\n bottom: 16px;\n\n &:before {\n content: \"\";\n display: block;\n position: absolute;\n height: 100%;\n top: 0;\n right: 0;\n width: 92px;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0.5) 0%,\n #ffffff 100%\n );\n pointer-events: none;\n }\n}\n\n.link {\n line-height: 22px;\n position: relative;\n}\n\n.is-last-item {\n margin-bottom: calc(var(--group-length) * 10px + 30px);\n}\n"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1045,7766],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var l=t(8762),n=t.n(l);t(46733);const s=n()},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>
|
|
2
|
-
//# sourceMappingURL=1045.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1045,7766],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var l=t(8762),n=t.n(l);t(46733);const s=n()},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>I,TabsModal:()=>B,TabsModalButton:()=>T,default:()=>G,useConfirmModal:()=>S,useModal:()=>P,useTabsModal:()=>O});var l=t(89379),n=t(53986),s=t(73884),i=t(55199),r=t(83136),a=t.n(r);const c={modal:"style_modal__Pm3cF__QLQZG",large:"style_large__iaqVE__QLQZG","modal-body-inner":"style_modal-body-inner__4PhpA__QLQZG","modal-title":"style_modal-title__dswaw__QLQZG","modal-outer":"style_modal-outer__r3SkX__QLQZG","modal-body":"style_modal-body__jQJSI__QLQZG","right-options-modal":"style_right-options-modal__FajDP__QLQZG","right-options-row":"style_right-options-row__-mPb9__QLQZG","right-options-col":"style_right-options-col__3ilee__QLQZG","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__QLQZG",content:"style_content__k6MIF__QLQZG","modal-footer":"style_modal-footer__-prbN__QLQZG","modal-close":"style_modal-close__Oa5Kl__QLQZG","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__QLQZG","is-danger":"style_is-danger__H5110__QLQZG",title:"style_title__orTym__QLQZG","has-title":"style_has-title__qy0Wp__QLQZG"},d=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var m=t(47458),h=t(64671);const p=(e,o)=>"function"===typeof e?e(o):e;var u=t(81014),_=t(17342),f=t(70579);const g=["ButtonComponent","onClick","autoClose","display"],y=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator","childrenRef"],C=["children"],A=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],b="Modal",j=e=>{let{options:o,rightSpan:t=6,children:l}=e;return o?(0,f.jsxs)(i.Row,{wrap:!1,className:c["right-options-row"],children:[(0,f.jsx)(i.Col,{span:24-t,className:c["right-options-col"],children:l}),(0,f.jsx)(i.Col,{span:t,className:c["right-options-col"],children:o})]}):l},x=(e,o)=>"".concat(e-48-(o?58:0),"px"),w=e=>{let{footer:o,footerButtons:t,onConfirm:r,onCancel:a,onClose:c,targetProps:h}=e;return(0,f.jsxs)(i.Row,{gutter:10,wrap:!1,children:[(0,f.jsx)(i.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,f.jsx)(i.Col,{children:(0,f.jsx)(i.Space,{children:(t||[{children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:b,children:(0,f.jsx)(m.FormattedMessage,{id:"Cancel",moduleName:b})}),onClick:a},{type:"primary",children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:b,children:(0,f.jsx)(m.FormattedMessage,{id:"Confirm",moduleName:b})}),onClick:r}]).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:i,autoClose:r=!0,display:a}=e,d=(0,n.A)(e,g);const m=t||u.default;return(0,s.createElement)(m,(0,l.A)((0,l.A)({},d),{},{key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(i&&i(...o,h));return r&&!1!==l&&c&&c(),l}}))}))})})]})},Q=e=>{let{title:o,footer:t,disabledScroller:l,footerButtons:n,onClose:r,closable:d,onConfirm:m,onCancel:p,children:u,targetProps:g}=e;const y=(0,s.useRef)(null);return(0,f.jsxs)("div",{className:c["modal-outer"],"data-testid":"components-core-modal",children:[!1===d?null:(0,f.jsx)(i.Button,{"data-testid":"components-core-modal-close-btn",className:c["modal-close"],type:"text",icon:(0,f.jsx)(h.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),r&&r()}}),o&&(0,f.jsx)("div",{className:c["modal-title"],children:o}),(0,f.jsx)(_.A,{className:a()(c["modal-body"],{[c["is-disabled-scroller"]]:l},"modal-body"),ref:y,children:(0,f.jsx)("div",{className:a()(c["modal-body-inner"],"modal-body-inner"),children:u})}),null!==t||n?(0,f.jsx)("div",{className:a()(c["modal-footer"],"modal-footer"),children:(0,f.jsx)(w,{footer:t,footerButtons:n,onConfirm:m,onCancel:p,onClose:r,targetProps:g})}):null]})},N=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:s,onClose:i,onConfirm:r,onCancel:a,footer:c,rightOptions:d,rightSpan:m,disabledScroller:h,childrenRef:u,children:_}=e;const g=e=>(e=Object.assign({},{title:n},e),(0,f.jsx)(Q,{title:p(e.title,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),closable:s,onClose:i,onConfirm:r,onCancel:a,footerButtons:p(t,(0,l.A)((0,l.A)({},e),{},{close:i})),disabledScroller:h,footer:p(c,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),targetProps:Object.assign({},e,{childrenRef:u,close:i}),children:(0,f.jsx)(j,{rightSpan:m,options:p(d,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i})),children:p(_,(0,l.A)((0,l.A)({},e),{},{childrenRef:u,close:i}))})}));return"function"===typeof o?o(g,{childrenRef:u,close:i}):g({})},v=e=>{let{children:o,rightOptions:t,rightSpan:s,footer:i,footerButtons:r,className:h,size:p,title:u,onClose:_,onConfirm:g,onCancel:C,closable:A,disabledScroller:b,withDecorator:j,childrenRef:w}=e,Q=(0,n.A)(e,y);return(0,l.A)((0,l.A)((0,l.A)({},Q),{},{icon:null,centered:!0,title:null,maskClosable:!!Q.hasOwnProperty("maskClosable")&&Q.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:_,className:a()(h,c.modal,c[p],{[c["right-options-modal"]]:t})},((e,o)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":x(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":x(300,o)}}:{width:"1000px",style:{"--min-modal-height":x(500,o)}})(p,!(null===i&&!r))),{},{children:(0,f.jsx)(m.IntlProvider,{importMessages:d,moduleName:"Modal",children:N({withDecorator:j,title:u,closable:A,onClose:_,onConfirm:g,onCancel:C,footer:i,footerButtons:r,rightOptions:t,rightSpan:s,disabledScroller:b,children:o,childrenRef:w})})})},k=e=>{const o=(0,s.useRef)(null);return(0,f.jsx)(i.Modal,(0,l.A)({},v(Object.assign({},e,{childrenRef:o}))))};k.defaultProps={size:"default"};const P=()=>{const{modal:e}=i.App.useApp(),o=(0,s.useRef)(null);return t=>{const s={},i=v((0,l.A)({onClose:()=>s.close(),childrenRef:o},t)),{children:r}=i,a=(0,n.A)(i,C),{destroy:c}=e.info((0,l.A)((0,l.A)({},a),{},{content:r}));return s.close=c,s}},S=()=>{const{modal:e}=i.App.useApp();return o=>{const t={},s=(0,l.A)({onClose:()=>t.close(),maskClosable:!1},o),{type:r,icon:d,title:m,danger:p,wrapClassName:u,message:_,iconSetting:g={},confirmType:y="info"}=s,C=(0,n.A)(s,A),b=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},g);if(e[r]){const{destroy:o}=e[r]((0,l.A)((0,l.A)({},C),{},{icon:null,wrapClassName:a()(c["confirm-modal-wrap"],u,{[c["is-danger"]]:p}),title:(0,f.jsx)(i.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:m&&(0,f.jsxs)(i.Space,{size:0,align:"start",className:c.title,children:[p?(0,f.jsx)(h.default,{className:a()("title-icon","title-icon-".concat("confirm"===r?y:r)),type:d||b["confirm"===r?y:r]}):null,m]})}),content:(0,f.jsxs)(i.Space,{size:0,align:"start",className:a()(c.content,{[c["has-title"]]:m}),children:[!m&&p?(0,f.jsx)(h.default,{className:a()("title-icon","title-icon-".concat("confirm"===r?y:r)),type:d||b["confirm"===r?y:r]}):null,_]})}));t.close=o}return t}},G=k,L=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],R=["withDecorator"],Z=["children"],M=e=>{let{items:o,className:t,activeKey:s,withDecorator:r,defaultActiveKey:c,onChange:d}=e,m=(0,n.A)(e,L);return(0,l.A)((0,l.A)({},m),{},{className:a()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,f.jsx)(i.Tabs,{items:o.map((o=>{let{withDecorator:l}=o,s=(0,n.A)(o,R);return Object.assign({},s,{children:"function"===typeof l?l((o=>e(Object.assign({},t,o,{children:s.children})))):e(Object.assign({},t,{children:s.children}))})})),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof r?r(t):t()},children:e=>{let{children:o}=e,t=(0,n.A)(e,Z);return"function"===typeof o?o(t):o}})},B=e=>(0,f.jsx)(G,(0,l.A)({},M(e))),O=()=>{const e=P();return o=>e(M(o))};var D=t(73025);const F=["modalProps"],T=e=>{const o=O();return e.api?(0,f.jsx)(D.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:o})):(0,f.jsx)(i.Button,(0,l.A)((0,l.A)({},e),{},{onClick:()=>{o(e.modalProps)}}))},I=e=>{const o=P();if(!e.api){const{modalProps:t}=e,s=(0,n.A)(e,F);return(0,f.jsx)(i.Button,(0,l.A)((0,l.A)({},s),{},{onClick:()=>{o(t)}}))}return(0,f.jsx)(D.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:o}))}},46733:()=>{}}]);
|
|
2
|
+
//# sourceMappingURL=1045.4d1819e8.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/1045.8cf064e1.chunk.js","mappings":"yMAGA,QAAeA,G,mOCFf,SAAgB,MAAQ,4BAA4B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src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__zz1mK\",\"large\":\"style_large__iaqVE__zz1mK\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__zz1mK\",\"modal-title\":\"style_modal-title__dswaw__zz1mK\",\"modal-outer\":\"style_modal-outer__r3SkX__zz1mK\",\"modal-body\":\"style_modal-body__jQJSI__zz1mK\",\"right-options-modal\":\"style_right-options-modal__FajDP__zz1mK\",\"right-options-row\":\"style_right-options-row__-mPb9__zz1mK\",\"right-options-col\":\"style_right-options-col__3ilee__zz1mK\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__zz1mK\",\"content\":\"style_content__k6MIF__zz1mK\",\"modal-footer\":\"style_modal-footer__-prbN__zz1mK\",\"modal-close\":\"style_modal-close__Oa5Kl__zz1mK\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__zz1mK\",\"is-danger\":\"style_is-danger__H5110__zz1mK\",\"title\":\"style_title__orTym__zz1mK\",\"has-title\":\"style_has-title__qy0Wp__zz1mK\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, rightSpan = 6, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner, {\n childrenRef,\n close: onClose,\n })\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","concat","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","type","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","_objectSpread","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","Button","icon","Icon","e","stopPropagation","classnames","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnClose","sizeMap","width","Math","min","window","innerWidth","Modal","AntdModal","defaultProps","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded3","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded4","typeEnum","confirm","warning","error","success","direction","align","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/1045.4d1819e8.chunk.js","mappings":"yMAGA,QAAeA,G,mOCFf,SAAgB,MAAQ,4BAA4B,MAAQ,4BAA4B,mBAAmB,uCAAuC,cAAc,kCAAkC,cAAc,kCAAkC,aAAa,iCAAiC,sBAAsB,0CAA0C,oBAAoB,wCAAwC,oBAAoB,wCAAwC,uBAAuB,2CAA2C,QAAU,8BAA8B,eAAe,mCAAmC,cAAc,kCAAkC,qBAAqB,yCAAyC,YAAY,gCAAgC,MAAQ,4BAA4B,YAAY,iCCK9zB,EANwBC,IACZ,CACJ,QAASC,IAAM,gCAAmB,QAASC,IAAM,iCAClDF,M,0BCHP,MAOA,EAP0BG,CAACC,EAAQC,IACX,oBAAXD,EACFA,EAAOC,GAETD,E,oYCOHE,EAAmB,QAEZC,EAAeC,IAA2C,IAA1C,QAAEH,EAAO,UAAEI,EAAY,EAAC,SAAEC,GAAUF,EAC/D,OAAKH,GAIHM,EAAAA,EAAAA,MAACC,EAAAA,IAAG,CAACC,MAAM,EAAOC,UAAWC,EAAM,qBAAqBL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AAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEgG,UAAWF,MARtChI,EAAAA,EAAAA,KAACyD,EAAAA,QAAMjB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACDN,GAAK,IACTV,QAASA,KACPwG,EAAU9F,EAAMiG,WAAW,IAKoB,EAEzD,EA9BqBjG,IACnB,MAAMyD,EAAQD,IACd,IAAKxD,EAAM4D,IAAK,CACd,MAAM,WAAEqC,GAA0BjG,EAAXkG,GAAMjG,EAAAA,EAAAA,GAAKD,EAAKE,GACvC,OACEpC,EAAAA,EAAAA,KAACyD,EAAAA,QAAMjB,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACD4F,GAAM,IACV5G,QAASA,KACPmE,EAAMwC,EAAW,IAIzB,CACA,OAAOnI,EAAAA,EAAAA,KAACiI,EAAAA,GAAWzF,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKN,GAAK,IAAEgG,UAAWvC,IAAS,C","sources":["common/components/SimpleBar.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__QLQZG\",\"large\":\"style_large__iaqVE__QLQZG\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__QLQZG\",\"modal-title\":\"style_modal-title__dswaw__QLQZG\",\"modal-outer\":\"style_modal-outer__r3SkX__QLQZG\",\"modal-body\":\"style_modal-body__jQJSI__QLQZG\",\"right-options-modal\":\"style_right-options-modal__FajDP__QLQZG\",\"right-options-row\":\"style_right-options-row__-mPb9__QLQZG\",\"right-options-col\":\"style_right-options-col__3ilee__QLQZG\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__QLQZG\",\"content\":\"style_content__k6MIF__QLQZG\",\"modal-footer\":\"style_modal-footer__-prbN__QLQZG\",\"modal-close\":\"style_modal-close__Oa5Kl__QLQZG\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__QLQZG\",\"is-danger\":\"style_is-danger__H5110__QLQZG\",\"title\":\"style_title__orTym__QLQZG\",\"has-title\":\"style_has-title__qy0Wp__QLQZG\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, rightSpan = 6, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner, {\n childrenRef,\n close: onClose,\n })\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","renderWithOptions","footer","options","localeModuleName","RightOptions","_ref","rightSpan","children","_jsxs","Row","wrap","className","style","_jsx","Col","span","calcHeight","height","concat","Footer","_ref2","footerButtons","onConfirm","onCancel","onClose","targetProps","gutter","flex","Array","isArray","length","Space","IntlProvider","importMessages","moduleName","FormattedMessage","id","onClick","type","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","props","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","_objectSpread","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","title","disabledScroller","closable","modalBodyRef","useRef","Button","icon","Icon","e","stopPropagation","classnames","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnClose","sizeMap","width","Math","min","window","innerWidth","Modal","AntdModal","defaultProps","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded3","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded4","typeEnum","confirm","warning","error","success","direction","align","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1046,7766],{42787:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(89379),s=n(53986),o=n(10486),i=n(73884),l=n(96418),a=n.n(l),c=n(83136),m=n.n(c);const d={scroller:"style_scroller__EfuqR__zz1mK","scroller-inner":"style_scroller-inner__NJSE0__zz1mK","is-moving":"style_is-moving__jGuy0__zz1mK"};var u=n(70579);const p=["onScroll","getContainer"],h=e=>{let{onScroll:t,getContainer:n}=e,r=(0,s.A)(e,p);const l=(0,i.useRef)(0),[a,c]=(0,i.useState)(!1),h=(0,i.useRef)(a);h.current=a;const y=(0,i.useRef)(t);y.current=t;const g=(0,i.useRef)(1);return g.current=r.width/r.innerWidth,(0,i.useEffect)((()=>{const e=e=>{h.current&&y.current(g.current*(e.clientX-l.current)),l.current=e.clientX},t=()=>{c(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,o.createPortal)(r.hasScroller?(0,u.jsx)("div",{className:d.scroller,style:{left:r.left,width:r.width,height:15},children:(0,u.jsx)("div",{className:m()(d["scroller-inner"],{[d["is-moving"]]:a}),style:{width:r.innerWidth,left:r.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,c(!0)}})}):null,n()||document.body)},y=e=>{let{className:t,scroller:n,getScrollTarget:s,children:o}=e;const[l,c]=(0,i.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),p=(0,i.useRef)(null),y=a()((()=>p.current&&s(p.current))),g=(0,i.useRef)();return g.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,i.useEffect)((()=>{const e=g.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:r,top:s,height:o}=t.getBoundingClientRect(),i=t.offsetHeight-t.clientHeight||15,l=r*t.clientWidth/t.scrollWidth-6,a=t.scrollLeft*t.clientWidth/t.scrollWidth+2,m=e.getBoundingClientRect();c((c=>Object.assign({},c,{left:n,width:r,innerLeft:a,innerWidth:l,height:i,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+o-e.offsetHeight>0&&s<e.offsetHeight:s<m.top+m.height&&s+o>m.top+m.height)})))},r=new ResizeObserver(n);return new ResizeObserver((()=>{t=y(),t&&(r.disconnect(),n(),Array.from(t.children).forEach((e=>{r.observe(e)})),t.addEventListener("scroll",n))})).observe(p.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[y]),n?(0,u.jsxs)("div",{className:m()(d["scroller-outer"],t),ref:p,style:{"--scroller-bar-height":null!==l&&void 0!==l&&l.hasScroller?"15px":"0px"},children:[o,(0,u.jsx)(h,(0,r.A)((0,r.A)({},l),{},{getContainer:g.current,onScroll:e=>{y().scrollLeft+=e}}))]}):o};y.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const g=y},25644:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={getItem:e=>{const t=window.localStorage.getItem(e);try{const{dataType:e,value:n}=JSON.parse(t);if("object"===e&&"null"===n)return null;if("undefined"===e)return;return"number"===e?Number(n):"boolean"===e?Boolean(n):n}catch(n){return null}},setItem:(e,t)=>{const n=typeof t;window.localStorage.setItem(e,JSON.stringify({dataType:n,value:t}))}}},6617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s.a});n(9056);var r=n(10657),s=n.n(r)},48731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s.a});var r=n(60922),s=n.n(r),o=n(22717),i=n.n(o);(0,r.preset)({base:i()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],((e,t)=>{e[t[0]]=t[1]}),{})})},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_,useFeatureCall:()=>f});var r=n(73884),s=n(63908),o=n(33097),i=n.n(o),l=n(15797),a=n.n(l),c=n(1488),m=n.n(c),d=n(70579);const u=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{u(e,t,n)})):(t(Object.assign({},m()(e,["children"]),{parentId:n})),u(e.children,t,n?n+":"+e.id:e.id)))},p=a()((e=>{const t=(()=>{const t=new Map;return u(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),h=(e,t)=>{let{profileMap:n,features:r}=t;const s=n.get(e);return-1!==r.indexOf(e)&&!0!==s.close&&i()(s,"dependencies",[]).every((t=>{const s=n.get(e);return r.indexOf(t)>-1&&!0!==s.close}))},y=(0,r.createContext)(null),{Provider:g}=y,f=e=>{const{features:t,profile:n,profileMap:o,debug:l}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=i()(e,"features",{debug:!1,profile:{}});return Object.assign({},p(t),{debug:n})})(),a="system"===n.type?n.id:"root",c=(0,r.useContext)(y),m=c?c+":"+e:a+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&l&&console.log("[featureId] ".concat(m,",[state] ").concat(h(m,{features:t,profileMap:o})),o.get(m))}),[t,o,l,m]),{isPass:!(e&&t&&t.length>0)||h(m,{features:t,profileMap:o}),currentId:m,feature:o.get(m)}},_=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:o}=f(t);return(0,d.jsx)(g,{value:o,children:"function"===typeof n?n({isPass:r,options:r?i()(s,"options"):i()(s,"rejectedOptions"),currentId:o}):r&&n})}},62716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(89379),s=n(53986),o=n(73884),i=n(83136),l=n.n(i);const a={"state-tag":"style_state-tag__Kx27z__zz1mK","state-result-tag":"style_state-result-tag__CssDz__zz1mK","state-skill-tag":"style_state-skill-tag__k0bQE__zz1mK","event-tag":"style_event-tag__cg6SE__zz1mK","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__zz1mK","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__zz1mK","state-tag-filterResult":"style_state-tag-filterResult__KTkot__zz1mK","show-bg":"style_show-bg__OcL+R__zz1mK","tag-text":"style_tag-text__JHCt+__zz1mK","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__zz1mK"};var c=n(55199),m=n(70579);const d=["showBorder","text","type","showBackground","className","filterName"],u={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},p=e=>{let{showBorder:t,text:n,type:i,showBackground:p,className:h,filterName:y}=e,g=(0,s.A)(e,d);const f=(0,o.useMemo)((()=>{var e,t;return{color:(null===u||void 0===u||null===(e=u[i])||void 0===e?void 0:e.color)||u[i],borderColor:(null===u||void 0===u||null===(t=u[i])||void 0===t?void 0:t.borderColor)||u[i]}}),[i]);return(0,m.jsxs)(c.Space,{"data-testid":"components-core-state-tag",className:l()(a["state-tag-wrapper"],"filterResult"===i?a["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[y?(0,m.jsxs)("span",{className:a["state-tag-filter-name"],children:[y,":"]}):null,(0,m.jsx)(c.Tag,(0,r.A)((0,r.A)({color:f.color},g),{},{style:{background:p?f.color+"0F":"none",color:f.color,border:t?"1px solid ".concat(f.borderColor):"none"},className:l()(a["state-tag"],h,"result"===i?a["state-result-tag"]:"","skill"===i?a["state-skill-tag"]:"",a["state-tag-".concat(i)],p?a["show-bg"]:"",t?a["show-border"]:"",null!==g&&void 0!==g&&g.onClick?a["event-tag"]:""),children:(0,m.jsx)("span",{className:a["tag-text"],children:n})}))]})};p.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const h=p},22814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TablePage:()=>et,default:()=>Je});var r=n(89379),s=n(53986);const o={table:"style_table__z7kfz__zz1mK","is-resize":"style_is-resize__ut6RW__zz1mK","is-moving":"style_is-moving__BJ9wR__zz1mK","cell-resize-bar":"style_cell-resize-bar__-mlUF__zz1mK","is-computed":"style_is-computed__B9rIF__zz1mK","options-column":"style_options-column__vsPTr__zz1mK","options-btn":"style_options-btn__U3uoy__zz1mK",tooltip:"style_tooltip__vJlkv__zz1mK","table-changer-setting":"style_table-changer-setting__HcrwR__zz1mK","width-changer-sign":"style_width-changer-sign__Aflyl__zz1mK","columns-control":"style_columns-control__5-5ZF__zz1mK","columns-control-content":"style_columns-control-content__MoeUI__zz1mK","columns-control-content-title":"style_columns-control-content-title__P5sXV__zz1mK","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__zz1mK","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__zz1mK","columns-control-content-input":"style_columns-control-content-input__G6yKq__zz1mK","columns-control-content-list":"style_columns-control-content-list__aXvTs__zz1mK","columns-control-content-item":"style_columns-control-content-item__jbyyE__zz1mK","is-drag":"style_is-drag__U68aw__zz1mK","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__zz1mK","sortable-drag":"style_sortable-drag__K5hWd__zz1mK","sortable-ghost":"style_sortable-ghost__lKTd2__zz1mK","columns-control-overlay":"style_columns-control-overlay__OxCIz__zz1mK","sort-btn":"style_sort-btn__KvNLr__zz1mK","sort-active-desc":"style_sort-active-desc__TIhMC__zz1mK","sort-icon":"style_sort-icon__dB85I__zz1mK","sort-active-asc":"style_sort-active-asc__RUBup__zz1mK"};var i=n(55199),l=n(73884),a=n(83136),c=n.n(a),m=n(42787),d=n(76801),u=n(77964),p=n(96418),h=n.n(p);const y={"col-item":"columns_col-item__Ym1Ec__zz1mK",tag:"columns_tag__bQZLG__zz1mK",avatar:"columns_avatar__SLPI+__zz1mK",hover:"columns_hover__oAwHg__zz1mK",primary:"columns_primary__6KtaA__zz1mK",loading:"columns_loading__gtBay__zz1mK",options:"columns_options__WvDZD__zz1mK"};var g=n(57469),f=n.n(g),_=n(87558),v=n.n(_),x=n(64671),j=n(6617),b=n(70579);const z=["className"],C=["list"],A=e=>{let{className:t,list:n=[],width:r}=e;return(0,b.jsx)("div",{className:c()(t,o["options-column"]),style:{"--max-width":r+"px"},children:(0,b.jsx)(j.default,{list:n.filter((e=>!(null!==e&&void 0!==e&&e.hidden))).map((e=>{let{className:t}=e,n=(0,s.A)(e,z);return Object.assign({},n,{className:c()(t,"btn-no-padding",o["options-btn"]),type:"link"})})),more:(0,b.jsx)(i.Button,{icon:(0,b.jsx)(x.default,{type:"icon-gengduo2"}),className:"btn-no-padding",type:"link"})})})},w=e=>{let{list:t}=e,n=(0,s.A)(e,C);return"function"===typeof t?(0,b.jsx)(v(),{loader:t,render:e=>{let{data:t}=e;return(0,b.jsx)(A,(0,r.A)((0,r.A)({},n),{},{list:t}))}}):(0,b.jsx)(A,(0,r.A)((0,r.A)({},n),{},{list:t}))};var E=n(62716),R=n(40438),S=n(48731);const N=e=>{let{children:t,ellipsis:n}=e;return(0,b.jsx)(i.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{overlayClassName:o.tooltip,children:t}},"object"===typeof n?n:{}),children:t})},O=e=>{let{type:t,item:n,isEmpty:r,emptyRender:s,hover:o,primary:i,children:a,width:m,style:d,onClick:u,colValue:p}=e;const[h,g]=(0,l.useState)(!1);return(0,b.jsx)("div",{style:Object.assign({},d,{"--max-width":m+"px"}),className:c()(y["col-item"],y[t],r?null:{[y.hover]:o,[y.primary]:i,[y.loading]:h}),onClick:e=>{"function"!==typeof u||r||h||(g(!0),Promise.resolve(u({item:n,colItem:p,event:e})).finally((()=>{g(!1)})))},children:r?s({type:t,item:n,hover:o,primary:i,children:a}):a})};O.defaultProps={emptyRender:()=>"-"};const K=O,k=(e,t)=>"function"===typeof t?t(e):Array.isArray(e)&&0===e.length||e&&"object"===typeof e&&0===Object.values(e).length||""===e||void 0===e||null===e,P=(0,_.createWithFetch)({loading:null})((e=>{let{data:t,children:n}=e;return n(t)})),M=e=>{let{api:t,expand:n,onExpand:s,ellipsis:o,hover:l,primary:a,emptyRender:c,isEmpty:m}=e;const d=Object.assign({},t);return n?(0,b.jsx)(P,(0,r.A)((0,r.A)({},d),{},{children:e=>(0,b.jsx)(K,{type:"hide-info-expand",item:e,hover:l,primary:a,emptyRender:c,isEmpty:k(e),children:(0,b.jsx)(N,{ellipsis:o,children:"function"===typeof d.children?d.children(e):e})})})):(0,b.jsx)(K,{type:"hide-info",primary:!0,emptyRender:c,children:(0,b.jsx)(i.Button,{className:"btn-no-padding",type:"link",onClick:s,children:"\u67e5\u770b"})})};var I=n(1488),T=n.n(I);const F=["hover","primary","isEmpty","emptyRender"],L=["hover","primary","isEmpty","emptyRender"],D=["hover","primary","isEmpty","emptyRender"],H=["hover","primary","emptyRender","isEmpty","hideSecond"],Y=["hover","primary","emptyRender","isEmpty"],B=["hover","primary","emptyRender","isEmpty"],W=["hover","primary","ellipsis","emptyRender","isEmpty"],q=["hover","primary","ellipsis","emptyRender","isEmpty"],J=["hover","primary","ellipsis","emptyRender","isEmpty"],G=["emptyRender","isEmpty"],U=["emptyRender","isEmpty"],V=["hover","primary","ellipsis","emptyRender","isEmpty"],X=["ellipsis","hover","primary","emptyRender","isEmpty"],Q=["hover","primary","ellipsis","emptyRender","isEmpty"],Z=["hover","primary","ellipsis","emptyRender","isEmpty"],$=["hover","primary","ellipsis","emptyRender","isEmpty"],ee=(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,Z);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},c),{},{type:"other",item:e,hover:n,primary:o,emptyRender:l,isEmpty:a,children:(0,b.jsx)(N,{ellipsis:i,children:e})}))},te={date:{render:(e,t)=>{let{hover:n,primary:o,isEmpty:i,emptyRender:l}=t,a=(0,s.A)(t,F);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},a),{},{type:"date",item:e,primary:o,hover:n,emptyRender:l,isEmpty:i||!f()(e).isValid(),children:f()(e).format("YYYY-MM-DD")}))},width:160,min:120,max:400},dateShort:{render:(e,t)=>{let{hover:n,primary:o,isEmpty:i,emptyRender:l}=t,a=(0,s.A)(t,L);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},a),{},{type:"date-short",item:e,primary:o,hover:n,emptyRender:l,isEmpty:i||!f()(e).isValid(),children:f()(e).format("YYYY-MM")}))},width:120,min:100,max:400},dateRange:{render:(e,t)=>{let{hover:n,primary:o,isEmpty:i,emptyRender:l}=t,a=(0,s.A)(t,D);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},a),{},{type:"date-range",item:e,primary:o,hover:n,emptyRender:l,isEmpty:i,children:f()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD HH:mm")+"-"+f()(null===e||void 0===e?void 0:e[1]).format("HH:mm")}))},width:240,min:120,max:400},datetime:{render:(e,t)=>{let{hover:n,primary:o,emptyRender:i,isEmpty:l,hideSecond:a}=t,c=(0,s.A)(t,H);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},c),{},{item:e,primary:o,hover:n,emptyRender:i,isEmpty:l||!f()(e).isValid(),children:f()(e).format(a?"YYYY-MM-DD HH:mm":"YYYY-MM-DD HH:mm:ss")}))},width:190,min:190,max:400},serialNumber:{render:(e,t)=>{let{hover:n,primary:o,emptyRender:i,isEmpty:l}=t,a=(0,s.A)(t,Y);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},a),{},{type:"serial-number",item:e,primary:o,hover:n,emptyRender:i,isEmpty:l,children:e}))},width:190,min:100,max:400},serialNumberShort:{render:(e,t)=>{let{hover:n,primary:o,emptyRender:i,isEmpty:l}=t,a=(0,s.A)(t,B);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},a),{},{type:"serial-number-short",item:e,primary:o,hover:n,emptyRender:i,isEmpty:l,children:e}))},width:120,min:100,max:400},user:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,W);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},c),{},{type:"user",item:e,primary:o,hover:n,emptyRender:l,isEmpty:a,children:(0,b.jsx)(N,{ellipsis:i,children:e})}))},width:200,min:120,max:400},userName:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,q);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},c),{},{type:"user-name",item:e,primary:o,hover:n,emptyRender:l,isEmpty:a,children:(0,b.jsx)(N,{ellipsis:i,children:e})}))},width:100,min:100,max:400},contacts:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,J);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},c),{},{type:"contacts",item:e,primary:o,hover:n,emptyRender:l,isEmpty:a,children:(0,b.jsx)(N,{ellipsis:i,children:e})}))},width:240,min:160,max:400},tag:{render:(e,t)=>{let{emptyRender:n,isEmpty:o}=t,i=(0,s.A)(t,G);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},i),{},{type:"tag",item:e,emptyRender:n,isEmpty:o,children:e&&(e.isEnum?(0,b.jsx)(S.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:s}=t;return(0,b.jsx)(E.default,(0,r.A)((0,r.A)({type:n},Object.assign({},T()(e,["name","isEnum","moduleName","force"]))),{},{text:s}))}}):(0,b.jsx)(E.default,(0,r.A)({},Object.assign({},e))))}))},width:140,min:100,max:400},avatar:{render:(e,t)=>{let{emptyRender:n,isEmpty:o}=t,i=(0,s.A)(t,U);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},i),{},{type:"avatar",item:e,emptyRender:n,isEmpty:o,children:(0,b.jsx)(R.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e)),{},{size:32}))}))},width:80,min:64,max:200},singleRow:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,V);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},c),{},{type:"single-row",item:e,hover:n,primary:o,emptyRender:l,isEmpty:a,children:(0,b.jsx)(N,{ellipsis:i,children:e})}))},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,b.jsx)(M,(0,r.A)({api:e},t)),width:120,min:80,max:400},mainInfo:{render:(e,t)=>{let{ellipsis:n,hover:o=!0,primary:i=!0,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,X);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},c),{},{type:"main-info",item:e,hover:o,primary:i,emptyRender:l,isEmpty:a,children:(0,b.jsx)(N,{ellipsis:n,children:e})}))},width:300,min:160,max:500},description:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,Q);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},c),{},{type:"description",item:e,hover:n,primary:o,emptyRender:l,isEmpty:a,children:(0,b.jsx)(N,{ellipsis:i,children:e})}))},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,b.jsx)(w,{className:c()(y["col-item"],y.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,$);return(0,b.jsx)(K,(0,r.A)((0,r.A)({},c),{},{type:"sensitiveInfo",item:e,hover:n,primary:o,emptyRender:l,isEmpty:a,children:(0,b.jsx)(N,{ellipsis:i,children:e})}))},width:200,min:100,max:400},other:{render:ee,width:200,min:120,max:400},otherSmall:{render:ee,width:100,min:70,max:400},otherLarge:{render:ee,width:300,min:120,max:500}},ne=te;var re=n(33097),se=n.n(re),oe=n(42907),ie=n.n(oe),le=n(22717),ae=n.n(le),ce=n(22616),me=n.n(ce),de=n(63908),ue=n(39835),pe=n.n(ue),he=n(81014),ye=n(43856),ge=n(76441),fe=n(69613),_e=n.n(fe),ve=n(56434),xe=n.n(ve);const{Panel:je}=i.Collapse,be=e=>{let{close:t,onConfirm:n,columns:r,config:s}=e;const[a,m]=(0,l.useState)(s||{}),[d,u]=(0,l.useState)(""),{leftFixedColumns:p,rightFixedColumns:h,visibleColumns:y,hiddenColumns:g}=(0,l.useMemo)((()=>ae()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},pe()(r,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==se()(a,"".concat(e.name,".visible"))&&e.hidden||!1===se()(a,"".concat(e.name,".visible"))?"hiddenColumns":"visibleColumns"))),((e,t,n)=>{e[n]=t.sort(((e,t)=>se()(a,"".concat(e.name,".rank"),0)-se()(a,"".concat(t.name,".rank"),0)))}),{})),[r,a]),f=e=>(0,b.jsxs)(b.Fragment,{children:[e.titleText||e.title||"\u672a\u547d\u540d\u5217",e.groupHeader&&e.groupHeader.length>0?"(".concat(e.groupHeader.map((e=>{let{title:t}=e;return t})).join("-"),")"):""]});return(0,b.jsxs)("div",{className:o["columns-control-content"],children:[(0,b.jsx)("div",{className:o["columns-control-content-title"],children:(0,b.jsxs)(i.Row,{align:"middle",justify:"space-between",children:[(0,b.jsx)(i.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,b.jsx)(i.Col,{children:(0,b.jsx)(i.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,b.jsx)(he.default,{type:"text",icon:(0,b.jsx)(x.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,b.jsx)("div",{className:o["columns-control-content-scroller"],children:(0,b.jsxs)(i.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,b.jsx)(je,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,b.jsxs)(i.List,{className:o["columns-control-content-list"],children:[p.map(((e,t)=>(0,b.jsx)(i.List.Item,{className:o["columns-control-content-item"],children:(0,b.jsx)(i.Checkbox,{checked:!0,disabled:!0,children:f(e)})},e.name||"left-".concat(t)))),(0,b.jsx)(ge.ReactSortable,{list:y,filter:".ignore-elements",dragClass:o["sortable-drag"],ghostClass:o["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=xe()(a),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach((e=>{_e()(t,"".concat(e.name,".visible"),!1)})),n.forEach(((e,n)=>{_e()(t,"".concat(e.name,".rank"),n+1)})),m(t)})({leftFixedColumns:p,visibleColumns:e,hiddenColumns:g,rightFixedColumns:h})},animation:300,delayOnTouchStart:!0,delay:2,children:y.map(((e,t)=>(0,b.jsxs)(i.List.Item,{className:c()(o["columns-control-content-item"],o["is-drag"]),children:[(0,b.jsx)(x.default,{type:"icon-paixu",className:o["columns-control-content-item-icon"]}),(0,b.jsx)(i.Checkbox,{checked:!0,disabled:e.fixed||p.length+y.length+h.length<=1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},a);n[e.name]=Object.assign({},n[e.name],{visible:!1}),m(n)},children:f(e)})]},e.name||"visible-".concat(t))))}),h.map(((e,t)=>(0,b.jsx)(i.List.Item,{className:o["columns-control-content-item"],children:(0,b.jsx)(i.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.name||"right-".concat(t))))]})},"active"),(0,b.jsx)(je,{header:(0,b.jsxs)(i.Row,{wrap:!1,justify:"space-between",children:[(0,b.jsx)(i.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,b.jsx)(i.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,b.jsx)(ye.SearchInput,{prefix:(0,b.jsx)(x.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{u(e)},className:o["columns-control-content-input"],size:"small"})})]}),children:(0,b.jsx)(i.List,{dataSource:g.filter((e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(d)>-1)),renderItem:e=>(0,b.jsx)(i.List.Item,{className:o["columns-control-content-item"],children:(0,b.jsx)(i.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},a);n[e.name]=Object.assign({},n[e.name],{visible:!0}),m(n)},children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.key)})},"un-active")]})}),(0,b.jsxs)(i.Row,{className:o["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,b.jsx)(i.Col,{children:(0,b.jsx)(i.Button,{size:"small",onClick:()=>{m(s||{}),t()},children:"\u53d6\u6d88"})}),(0,b.jsx)(i.Col,{children:(0,b.jsx)(he.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(a),t()},children:"\u786e\u5b9a"})})]})]})};var ze=n(51941),Ce=n(19853),Ae=n.n(Ce),we=n(21844),Ee=n.n(we),Re=n(25644);const Se="COMPONENTS_CORE_TABLE_CONFIG",Ne={getDataApi:e=>e?{loader:()=>se()(Re.A.getItem(Se),e,{})}:{},setDataFunc:(e,t)=>{if(e)return Re.A.setItem(Se,Object.assign({},Re.A.getItem(Se),{[e]:t}))}},Oe=e=>{let{title:t,columns:n,config:r,setConfig:s}=e;const[a,c]=(0,l.useState)(!1);return(0,b.jsxs)(i.Row,{wrap:!1,children:[(0,b.jsx)(i.Col,{flex:1,children:t}),(0,b.jsx)(i.Col,{children:(0,b.jsx)(i.Popover,{open:a,onOpenChange:c,trigger:"click",placement:"bottomLeft",overlayClassName:o["columns-control-overlay"],content:(0,b.jsx)(be,{columns:n,config:r,close:()=>{c(!1)},onConfirm:e=>{s((t=>ae()(e,((e,n,r)=>{e[r]=Object.assign({},t[r],me()(n,["visible","rank"]))}),{})))}}),children:(0,b.jsx)("span",{className:o["table-changer-setting"],children:(0,b.jsx)(x.default,{type:"icon-shezhi"})})})})]})},Ke=e=>{let{columns:t,name:n,controllerOpen:s,tableWidth:i,rowKey:a}=e;const[m,d]=(0,l.useState)(null),u=(0,l.useRef)(m);u.current=m;const p=(0,l.useRef)(null),y=(0,l.useRef)(null),[g,f]=(0,l.useState)({}),{tableServerApis:v}=(0,de.usePreset)(),j=v||Ne,z=null===j||void 0===j?void 0:j.getDataApi(n),C=(0,ze.useDebouncedCallback)(((e,t)=>{null===j||void 0===j||j.setDataFunc(e,t)}),500),A=h()((e=>{(0,l.startTransition)((()=>{f((t=>{const r="function"===typeof e?e(t):e;return n&&s&&C(n,r),r}))}))})),{send:w}=(0,_.useFetch)(Object.assign((0,r.A)((0,r.A)({},Object.assign({},z)),{},{auto:!1,cache:"TABLE_CONFIG_".concat(n),isLocal:!0,onRequestSuccess:e=>{f(Object.assign({},e))}}))),E=h()((()=>{n&&s&&z&&w({force:!1})}));(0,l.useEffect)((()=>{E()}),[E]);const R=(0,l.useMemo)((()=>t.filter((e=>!(!1===se()(g,"".concat(e.name,".visible"))||!0!==se()(g,"".concat(e.name,".visible"))&&!0===e.hidden))).sort(((e,t)=>{const n=e=>se()(g,"".concat(e.name,".rank"),0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}))),[t,g]),S=(0,l.useMemo)((()=>Ee()(R,(e=>{let{type:t}=e;return"options"!==t}))),[R]),N=(0,l.useMemo)((()=>ie()(R,(e=>{let{type:t,name:n}=e;return se()(g,"".concat(n,".width"))||ne[t].width}))),[R,g]),O=e=>{let{width:t,index:n}=e;return S===n?t+Math.max(i-N-2,0):t},K=h()(((e,t)=>(0,b.jsx)("span",{className:c()(o["cell-resize-bar"]),onMouseDown:n=>{p.current=Object.assign({},e,{index:t}),y.current=n.clientX,d(t)},children:(0,b.jsx)(x.default,{type:"icon-paixu"})}))),k=h()((e=>{if(null===m)return;if(!p.current)return;const{name:t,width:n,min:r,max:s,index:o}=p.current,i=Math.min(Math.max(n+e,r),s);i<O({width:r,index:o})||A((e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:i})})))})),P=h()(((e,n)=>{const{name:r,width:s,min:i,max:l}=e;let m=e;n===R.length-1&&(m=Object.assign({},e,{className:"has-config-btn",title:(0,b.jsx)(Oe,{title:null===e||void 0===e?void 0:e.title,columns:t,config:g,setConfig:A})}));const d=()=>({className:c()({[o["is-moving"]]:u.current===n})}),p=Math.min(Math.max(se()(g,"".concat(r,".width"))||s,i),l),h=O({width:p,index:n});return Object.assign({},m,{onHeaderCell:d,onCell:d,width:h,shouldCellUpdate:(t,r)=>{const s="function"===typeof a?a(t):t[a],o="function"===typeof a?a(r):r[a];return null===u.current||u.current===n||"hideInfo"===e.type||!(s===o&&Ae()(t[e.name],r[e.name]))},title:(0,b.jsxs)(b.Fragment,{children:[m.title,!(h>p&&h>l)&&K(Object.assign({},m,{width:h}),n)]})})}));return(0,l.useEffect)((()=>{const e=()=>{d(null),y.current=null,p.current=null},t=e=>{null!==u.current&&null!==p.current&&(null!==y.current?k(e.clientX-y.current):y.current=e.clientX)};return document.documentElement.addEventListener("mouseup",e,!0),document.documentElement.addEventListener("mousemove",t,!0),()=>{document.documentElement.removeEventListener("mouseup",e,!0),document.documentElement.removeEventListener("mousemove",t,!0)}}),[k]),{visibleColumns:R,currentMoveColumnIndex:m,resizeBarRender:K,columnsConfig:g,totalWidth:N,computedColumnProps:P}};var ke=n(79686),Pe=n.n(ke);const Me=["name","type","expandType","title","titleRender","fixed","emptyOf","emptyRender","groupHeader","sort","disableColItem"],Ie=e=>{let{rowKey:t,renderProps:n}=e;const[o,i]=(0,l.useState)(null),a=(0,l.useRef)(n);a.current=n;const c=h()(((e,n,l)=>{let{columnsConfig:c}=l;const{name:m,type:d,expandType:u,title:p,titleRender:h,fixed:y,emptyOf:g,emptyRender:f,groupHeader:_,sort:v,disableColItem:x}=e,j=(0,s.A)(e,Me),{render:b,width:z,min:C,max:A}=Object.assign({},ne[d||"other"],"hideInfo"===d&&!Pe()(o)&&me()(ne[u||"other"],["width","min","max"])),w=b;return{name:m,title:"function"===typeof h?h(p):p,min:C,max:A,width:z,fixed:y,groupHeader:_,sort:v,type:d,render:n=>{const s="function"===typeof t?t(n):n[t],l=Object.assign({},e,"function"===typeof e.render?e.render((0,r.A)((0,r.A)({},a.current),{},{name:m,target:n})):{}),d=e=>{const t=k(e,g);return w(e,(0,r.A)((0,r.A)({},j),{},{name:m,width:se()(c,"".concat(m,".width"))||z,min:C,max:A,isEmpty:t,emptyRender:f,hover:l.hover,colValue:Object.assign({},n),renderProps:a.current,primary:l.primary,ellipsis:l.ellipsis,expand:o===s,onExpand:()=>i(s)}))},u=l.hasOwnProperty("valueOf")&&"function"===typeof l.valueOf?l.valueOf(n,Object.assign({},a.current,{name:m},x?{targetRender:d}:{})):se()(n,m);return x?u:d(u)}}}));return{expandInfo:o,computedColumnProps:c}},Te=e=>(0,l.useMemo)((()=>{const t=e.filter((e=>e.groupHeader&&e.groupHeader.length>0));if(t.length>0){const n=e.slice(0),r=[],s=e=>{const{groupHeader:t}=e;if(!(t&&t.length>0))return;const s=n.indexOf(e),o=(t,n)=>{const[r,...i]=t;let l=n.find((e=>e.name===r.name));l||(l=Object.assign({startIndex:s},r,{children:[]}),n.push(l)),i.length>0?o(i,l.children):l.children.push(e)};o(t,r),n.splice(s,1)};return t.forEach(s),r.forEach(((e,t)=>{n.splice(e.startIndex+t,0,e)})),{columns:n,hasGroupHeader:!0}}return{columns:e,hasGroupHeader:!1}}),[e]);var Fe=n(10986),Le=n.n(Fe),De=n(41740),He=n.n(De);const Ye=e=>new Map((e||[]).map((e=>{let{name:t,sort:n}=e;return[t,n]}))),Be=e=>{const[t,n]=Le()(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),r=(0,l.useMemo)((()=>Ye(t)),[t]),s=(0,l.useCallback)((e=>n((t=>{const n=e(Ye(t));return Array.from(n).map((e=>{let[t,n]=e;return{name:t,sort:n}}))}))),[n]);return(0,l.useCallback)((e=>{let{single:t,name:n}=e;return(0,b.jsxs)("div",{className:c()(o["sort-btn"],{[o["sort-active-desc"]]:"DESC"===r.get(n),[o["sort-active-asc"]]:"ASC"===r.get(n)}),onClick:()=>{s((e=>{const r=e.get(n),s="DESC"===r?"ASC":"ASC"===r?null:"DESC";if(t)return new Map(s?[[n,s]]:[]);const o=He()(e);return s?o.set(n,s):o.delete(n),o}))},children:[(0,b.jsx)(x.default,{type:"icon-triangle-up",className:o["sort-icon"]}),(0,b.jsx)(x.default,{type:"icon-triangle-down",className:o["sort-icon"]})]})}),[r,s])},We=["columns","className","getScrollEl","sticky","stickyOffset","pagination","columnRenderProps","rowKey","dataSource","controllerOpen","name","summary","scroll","onTablePropsReady"],qe=e=>{let{columns:t,className:n,getScrollEl:a,sticky:d,stickyOffset:p,pagination:y,columnRenderProps:g,rowKey:f,dataSource:_,controllerOpen:v,name:x,summary:j,scroll:z,onTablePropsReady:C}=e,A=(0,s.A)(e,We);const[w,E]=(0,l.useState)(0),[R,S]=(0,l.useState)(!0);(0,l.useEffect)((()=>{w&&setTimeout((()=>{S(!1)}),0)}),[w]);(0,l.useRef)(g).current=g;const N=(0,u.A)((e=>{E(e.clientWidth)}),{isDebounce:!0}),{expandInfo:O,computedColumnProps:K}=Ie({rowKey:f,renderProps:g}),{columnsConfig:k,visibleColumns:P,computedColumnProps:M,currentMoveColumnIndex:I,totalWidth:T}=Ke({columns:t,controllerOpen:v,name:x,computedColumnProps:K,tableWidth:w,rowKey:f}),F=Be(A),L=(0,l.useMemo)((()=>P.map(((e,t)=>{let n=K(e,t,{rowKey:f,expandInfo:O,columnsConfig:k});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,b.jsxs)(b.Fragment,{children:[n.title,F({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),v&&(n=M(n,t,{tableWidth:w,columnsConfig:k})),n}))),[P,w,k,O,f,v,K,M,F]),{columns:D,hasGroupHeader:H}=Te(L),Y=h()(C);return(0,l.useEffect)((()=>{Y&&Y({columns:t,groupColumns:D,dataSource:_,visibleColumns:P})}),[Y,D,_,t,P]),(0,b.jsx)("div",{className:c()(n,o.table,{[o["is-resize"]]:null!==I,[o["is-computed"]]:R,[o["has-group-header"]]:H}),ref:N,style:{"--sticky-offset":p},children:!R&&(0,b.jsx)(m.A,{className:"table-page-scroller",scroller:{getContainer:a},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,b.jsx)(i.Table,(0,r.A)((0,r.A)({},A),{},{sticky:!!d&&{getContainer:a},dataSource:_,rowKey:f,columns:D,scroll:Object.assign({},{x:Math.max(w,T)},z),pagination:y,summary:"function"===typeof j?function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return j(Object.assign({},{pageData:e},{columns:D}),...n)}:null}))})})};qe.defaultProps={controllerOpen:!0,rowKey:"id",getScrollEl:d.h,columnRenderProps:{},sticky:!1,stickyOffset:"var(--nav-height)",pagination:!1};const Je=qe;var Ge=n(63361);const Ue=e=>({"en-US":()=>n.e(399).then(n.bind(n,80399)),"zh-CN":()=>n.e(9809).then(n.bind(n,59809))}[e]());var Ve=n(47458);const Xe=["data","refresh","reload","requestParams","fetchProps","isComplete","setData","loadMore","send","dataFormat","className","featureId","columns","getColumns","pagination","columnRenderProps","summary"],Qe=["pagination"],Ze=e=>{let{id:t,columns:n,children:r}=e;return t?(0,b.jsx)(Ge.default,{id:t,children:e=>{let{options:t}=e;return r({columns:n.filter((e=>!e.name||(!Array.isArray(se()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name))))})}}):r({columns:n})},$e=(0,_.withFetch)((e=>{let{data:t,refresh:n,reload:i,requestParams:a,fetchProps:m,isComplete:u,setData:p,loadMore:y,send:g,dataFormat:f,className:_,featureId:v,columns:x,getColumns:j,pagination:z,columnRenderProps:C,summary:A}=e,w=(0,s.A)(e,Xe);const E=h()(f),R=(0,l.useMemo)((()=>E(t)),[t,E]),S={dataSource:R.list,pagination:!!z.open&&{total:R.total,showTotal:e=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Ve.FormattedMessage,{id:"Page_Total",moduleName:"Table",defaultMessage:"\u5171"}),(0,b.jsx)("span",{className:o.total_text,children:e}),(0,b.jsx)(Ve.FormattedMessage,{id:"Page_TotalCount",moduleName:"Table",defaultMessage:"\u6761"})]}),current:se()(a,[z.paramsType,z.currentName],1),pageSize:z.pageSize,onChange:z.onChange?z.onChange:(e,t)=>{e!==se()(a,[z.paramsType,z.currentName],1)?("refresh"===z.requestType?n:i)({[z.paramsType]:{[z.currentName]:e,[z.pageSizeName]:t}}):z.onShowSizeChange&&z.onShowSizeChange(e,t),(0,d.h)().scrollTop=0},size:z.size,showSizeChanger:z.showSizeChanger,showQuickJumper:z.showQuickJumper,pageSizeOptions:z.pageSizeOptions}};return(0,b.jsx)(Ve.IntlProvider,{importMessages:Ue,moduleName:"Table",children:(0,b.jsx)(Ze,{id:v,columns:x,children:e=>{let{columns:s}=e;return(0,b.jsx)(Je,(0,r.A)((0,r.A)({},Object.assign({},w,S)),{},{className:c()(_,"loading-container",{"is-loading":!u}),columns:s,columnRenderProps:(0,r.A)((0,r.A)({},C),{},{requestParams:a,fetchProps:m,data:t}),summary:"function"===typeof A?function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return A(Object.assign({},{data:t,fetchProps:m,requestParams:a,refresh:n,reload:i,loadMore:y,send:g,dataFormat:f,pagination:z},...r))}:null}))}})})}));$e.defaultProps={pagination:{},columnRenderProps:{},sticky:!0,dataFormat:e=>({list:e.pageData,total:e.totalCount})};const et=(0,l.forwardRef)(((e,t)=>{let{pagination:n}=e,o=(0,s.A)(e,Qe);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",currentName:"currentPage",pageSizeName:"perPage",pageSize:20},n);const i="".concat((o.name||"common").toUpperCase(),"_TABLE_PAGE_SIZE"),[a,c]=(0,l.useState)(Re.A.getItem(i)||n.pageSize),m=o[n.paramsType],d=(0,l.useMemo)((()=>({[n.paramsType]:Object.assign({},m,{[n.pageSizeName]:a})})),[m,n.pageSizeName,n.paramsType,a]);return(0,b.jsx)($e,(0,r.A)((0,r.A)((0,r.A)({},o),d),{},{pagination:Object.assign({},n,{pageSize:a,onShowSizeChange:(e,t)=>{Re.A.setItem(i,t),c(t)}}),ref:t}))}))},75816:e=>{e.exports=function(e,t,n,r){for(var s=e.length,o=n+(r?1:-1);r?o--:++o<s;)if(t(e[o],o,e))return o;return-1}},21844:(e,t,n)=>{var r=n(75816),s=n(9096),o=n(99140),i=Math.max,l=Math.min;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var c=a-1;return void 0!==n&&(c=o(n),c=n<0?i(a+c,0):l(c,a-1)),r(e,s(t,3),c,!0)}},69613:(e,t,n)=>{var r=n(9261);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},42907:(e,t,n)=>{var r=n(9096),s=n(99910);e.exports=function(e,t){return e&&e.length?s(e,r(t,2)):0}},99140:(e,t,n)=>{var r=n(37303);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}}}]);
|
|
2
|
-
//# sourceMappingURL=1046.
|
|
1
|
+
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1046,7766],{42787:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(89379),s=n(53986),o=n(10486),i=n(73884),l=n(96418),a=n.n(l),c=n(83136),m=n.n(c);const d={scroller:"style_scroller__EfuqR__QLQZG","scroller-inner":"style_scroller-inner__NJSE0__QLQZG","is-moving":"style_is-moving__jGuy0__QLQZG"};var u=n(70579);const p=["onScroll","getContainer"],h=e=>{let{onScroll:t,getContainer:n}=e,r=(0,s.A)(e,p);const l=(0,i.useRef)(0),[a,c]=(0,i.useState)(!1),h=(0,i.useRef)(a);h.current=a;const y=(0,i.useRef)(t);y.current=t;const g=(0,i.useRef)(1);return g.current=r.width/r.innerWidth,(0,i.useEffect)((()=>{const e=e=>{h.current&&y.current(g.current*(e.clientX-l.current)),l.current=e.clientX},t=()=>{c(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,o.createPortal)(r.hasScroller?(0,u.jsx)("div",{className:d.scroller,style:{left:r.left,width:r.width,height:15},children:(0,u.jsx)("div",{className:m()(d["scroller-inner"],{[d["is-moving"]]:a}),style:{width:r.innerWidth,left:r.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,c(!0)}})}):null,n()||document.body)},y=e=>{let{className:t,scroller:n,getScrollTarget:s,children:o}=e;const[l,c]=(0,i.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),p=(0,i.useRef)(null),y=a()((()=>p.current&&s(p.current))),g=(0,i.useRef)();return g.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,i.useEffect)((()=>{const e=g.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:r,top:s,height:o}=t.getBoundingClientRect(),i=t.offsetHeight-t.clientHeight||15,l=r*t.clientWidth/t.scrollWidth-6,a=t.scrollLeft*t.clientWidth/t.scrollWidth+2,m=e.getBoundingClientRect();c((c=>Object.assign({},c,{left:n,width:r,innerLeft:a,innerWidth:l,height:i,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+o-e.offsetHeight>0&&s<e.offsetHeight:s<m.top+m.height&&s+o>m.top+m.height)})))},r=new ResizeObserver(n);return new ResizeObserver((()=>{t=y(),t&&(r.disconnect(),n(),Array.from(t.children).forEach((e=>{r.observe(e)})),t.addEventListener("scroll",n))})).observe(p.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[y]),n?(0,u.jsxs)("div",{className:m()(d["scroller-outer"],t),ref:p,style:{"--scroller-bar-height":null!==l&&void 0!==l&&l.hasScroller?"15px":"0px"},children:[o,(0,u.jsx)(h,(0,r.A)((0,r.A)({},l),{},{getContainer:g.current,onScroll:e=>{y().scrollLeft+=e}}))]}):o};y.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const g=y},25644:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={getItem:e=>{const t=window.localStorage.getItem(e);try{const{dataType:e,value:n}=JSON.parse(t);if("object"===e&&"null"===n)return null;if("undefined"===e)return;return"number"===e?Number(n):"boolean"===e?Boolean(n):n}catch(n){return null}},setItem:(e,t)=>{const n=typeof t;window.localStorage.setItem(e,JSON.stringify({dataType:n,value:t}))}}},6617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s.a});n(9056);var r=n(10657),s=n.n(r)},48731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s.a});var r=n(60922),s=n.n(r),o=n(22717),i=n.n(o);(0,r.preset)({base:i()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],((e,t)=>{e[t[0]]=t[1]}),{})})},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_,useFeatureCall:()=>f});var r=n(73884),s=n(63908),o=n(33097),i=n.n(o),l=n(15797),a=n.n(l),c=n(1488),m=n.n(c),d=n(70579);const u=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{u(e,t,n)})):(t(Object.assign({},m()(e,["children"]),{parentId:n})),u(e.children,t,n?n+":"+e.id:e.id)))},p=a()((e=>{const t=(()=>{const t=new Map;return u(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),h=(e,t)=>{let{profileMap:n,features:r}=t;const s=n.get(e);return-1!==r.indexOf(e)&&!0!==s.close&&i()(s,"dependencies",[]).every((t=>{const s=n.get(e);return r.indexOf(t)>-1&&!0!==s.close}))},y=(0,r.createContext)(null),{Provider:g}=y,f=e=>{const{features:t,profile:n,profileMap:o,debug:l}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=i()(e,"features",{debug:!1,profile:{}});return Object.assign({},p(t),{debug:n})})(),a="system"===n.type?n.id:"root",c=(0,r.useContext)(y),m=c?c+":"+e:a+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&l&&console.log("[featureId] ".concat(m,",[state] ").concat(h(m,{features:t,profileMap:o})),o.get(m))}),[t,o,l,m]),{isPass:!(e&&t&&t.length>0)||h(m,{features:t,profileMap:o}),currentId:m,feature:o.get(m)}},_=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:o}=f(t);return(0,d.jsx)(g,{value:o,children:"function"===typeof n?n({isPass:r,options:r?i()(s,"options"):i()(s,"rejectedOptions"),currentId:o}):r&&n})}},62716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(89379),s=n(53986),o=n(73884),i=n(83136),l=n.n(i);const a={"state-tag":"style_state-tag__Kx27z__QLQZG","state-result-tag":"style_state-result-tag__CssDz__QLQZG","state-skill-tag":"style_state-skill-tag__k0bQE__QLQZG","event-tag":"style_event-tag__cg6SE__QLQZG","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__QLQZG","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__QLQZG","state-tag-filterResult":"style_state-tag-filterResult__KTkot__QLQZG","show-bg":"style_show-bg__OcL+R__QLQZG","tag-text":"style_tag-text__JHCt+__QLQZG","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__QLQZG"};var c=n(55199),m=n(70579);const d=["showBorder","text","type","showBackground","className","filterName"],u={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},p=e=>{let{showBorder:t,text:n,type:i,showBackground:p,className:h,filterName:y}=e,g=(0,s.A)(e,d);const f=(0,o.useMemo)((()=>{var e,t;return{color:(null===u||void 0===u||null===(e=u[i])||void 0===e?void 0:e.color)||u[i],borderColor:(null===u||void 0===u||null===(t=u[i])||void 0===t?void 0:t.borderColor)||u[i]}}),[i]);return(0,m.jsxs)(c.Space,{"data-testid":"components-core-state-tag",className:l()(a["state-tag-wrapper"],"filterResult"===i?a["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[y?(0,m.jsxs)("span",{className:a["state-tag-filter-name"],children:[y,":"]}):null,(0,m.jsx)(c.Tag,(0,r.A)((0,r.A)({color:f.color},g),{},{style:{background:p?f.color+"0F":"none",color:f.color,border:t?"1px solid ".concat(f.borderColor):"none"},className:l()(a["state-tag"],h,"result"===i?a["state-result-tag"]:"","skill"===i?a["state-skill-tag"]:"",a["state-tag-".concat(i)],p?a["show-bg"]:"",t?a["show-border"]:"",null!==g&&void 0!==g&&g.onClick?a["event-tag"]:""),children:(0,m.jsx)("span",{className:a["tag-text"],children:n})}))]})};p.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const h=p},22814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TablePage:()=>et,default:()=>We});var r=n(89379),s=n(53986);const o={table:"style_table__z7kfz__QLQZG","is-resize":"style_is-resize__ut6RW__QLQZG","is-moving":"style_is-moving__BJ9wR__QLQZG","cell-resize-bar":"style_cell-resize-bar__-mlUF__QLQZG","is-computed":"style_is-computed__B9rIF__QLQZG","options-column":"style_options-column__vsPTr__QLQZG","options-btn":"style_options-btn__U3uoy__QLQZG",tooltip:"style_tooltip__vJlkv__QLQZG","table-changer-setting":"style_table-changer-setting__HcrwR__QLQZG","width-changer-sign":"style_width-changer-sign__Aflyl__QLQZG","columns-control":"style_columns-control__5-5ZF__QLQZG","columns-control-content":"style_columns-control-content__MoeUI__QLQZG","columns-control-content-title":"style_columns-control-content-title__P5sXV__QLQZG","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__QLQZG","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__QLQZG","columns-control-content-input":"style_columns-control-content-input__G6yKq__QLQZG","columns-control-content-list":"style_columns-control-content-list__aXvTs__QLQZG","columns-control-content-item":"style_columns-control-content-item__jbyyE__QLQZG","is-drag":"style_is-drag__U68aw__QLQZG","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__QLQZG","sortable-drag":"style_sortable-drag__K5hWd__QLQZG","sortable-ghost":"style_sortable-ghost__lKTd2__QLQZG","columns-control-overlay":"style_columns-control-overlay__OxCIz__QLQZG","sort-btn":"style_sort-btn__KvNLr__QLQZG","sort-active-desc":"style_sort-active-desc__TIhMC__QLQZG","sort-icon":"style_sort-icon__dB85I__QLQZG","sort-active-asc":"style_sort-active-asc__RUBup__QLQZG"};var i=n(55199),l=n(73884),a=n(83136),c=n.n(a),m=n(42787),d=n(76801),u=n(77964),p=n(96418),h=n.n(p);const y={"col-item":"columns_col-item__Ym1Ec__QLQZG",tag:"columns_tag__bQZLG__QLQZG",avatar:"columns_avatar__SLPI+__QLQZG",hover:"columns_hover__oAwHg__QLQZG",primary:"columns_primary__6KtaA__QLQZG",loading:"columns_loading__gtBay__QLQZG",options:"columns_options__WvDZD__QLQZG"};var g=n(57469),f=n.n(g),_=n(87558),v=n.n(_),x=n(64671),j=n(6617),b=n(70579);const C=["className"],A=["list"],w=e=>{let{className:t,list:n=[],width:r}=e;return(0,b.jsx)("div",{className:c()(t,o["options-column"]),style:{"--max-width":r+"px"},children:(0,b.jsx)(j.default,{list:n.filter((e=>!(null!==e&&void 0!==e&&e.hidden))).map((e=>{let{className:t}=e,n=(0,s.A)(e,C);return Object.assign({},n,{className:c()(t,"btn-no-padding",o["options-btn"]),type:"link"})})),more:(0,b.jsx)(i.Button,{icon:(0,b.jsx)(x.default,{type:"icon-gengduo2"}),className:"btn-no-padding",type:"link"})})})},E=e=>{let{list:t}=e,n=(0,s.A)(e,A);return"function"===typeof t?(0,b.jsx)(v(),{loader:t,render:e=>{let{data:t}=e;return(0,b.jsx)(w,(0,r.A)((0,r.A)({},n),{},{list:t}))}}):(0,b.jsx)(w,(0,r.A)((0,r.A)({},n),{},{list:t}))};var R=n(62716),Q=n(40438),S=n(48731);const L=e=>{let{children:t,ellipsis:n}=e;return(0,b.jsx)(i.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{overlayClassName:o.tooltip,children:t}},"object"===typeof n?n:{}),children:t})},N=e=>{let{type:t,item:n,isEmpty:r,emptyRender:s,hover:o,primary:i,children:a,width:m,style:d,onClick:u,colValue:p}=e;const[h,g]=(0,l.useState)(!1);return(0,b.jsx)("div",{style:Object.assign({},d,{"--max-width":m+"px"}),className:c()(y["col-item"],y[t],r?null:{[y.hover]:o,[y.primary]:i,[y.loading]:h}),onClick:e=>{"function"!==typeof u||r||h||(g(!0),Promise.resolve(u({item:n,colItem:p,event:e})).finally((()=>{g(!1)})))},children:r?s({type:t,item:n,hover:o,primary:i,children:a}):a})};N.defaultProps={emptyRender:()=>"-"};const O=N,k=(e,t)=>"function"===typeof t?t(e):Array.isArray(e)&&0===e.length||e&&"object"===typeof e&&0===Object.values(e).length||""===e||void 0===e||null===e,G=(0,_.createWithFetch)({loading:null})((e=>{let{data:t,children:n}=e;return n(t)})),P=e=>{let{api:t,expand:n,onExpand:s,ellipsis:o,hover:l,primary:a,emptyRender:c,isEmpty:m}=e;const d=Object.assign({},t);return n?(0,b.jsx)(G,(0,r.A)((0,r.A)({},d),{},{children:e=>(0,b.jsx)(O,{type:"hide-info-expand",item:e,hover:l,primary:a,emptyRender:c,isEmpty:k(e),children:(0,b.jsx)(L,{ellipsis:o,children:"function"===typeof d.children?d.children(e):e})})})):(0,b.jsx)(O,{type:"hide-info",primary:!0,emptyRender:c,children:(0,b.jsx)(i.Button,{className:"btn-no-padding",type:"link",onClick:s,children:"\u67e5\u770b"})})};var M=n(1488),Z=n.n(M);const I=["hover","primary","isEmpty","emptyRender"],T=["hover","primary","isEmpty","emptyRender"],z=["hover","primary","isEmpty","emptyRender"],F=["hover","primary","emptyRender","isEmpty","hideSecond"],D=["hover","primary","emptyRender","isEmpty"],H=["hover","primary","emptyRender","isEmpty"],Y=["hover","primary","ellipsis","emptyRender","isEmpty"],B=["hover","primary","ellipsis","emptyRender","isEmpty"],W=["hover","primary","ellipsis","emptyRender","isEmpty"],K=["emptyRender","isEmpty"],q=["emptyRender","isEmpty"],J=["hover","primary","ellipsis","emptyRender","isEmpty"],U=["ellipsis","hover","primary","emptyRender","isEmpty"],V=["hover","primary","ellipsis","emptyRender","isEmpty"],X=["hover","primary","ellipsis","emptyRender","isEmpty"],$=["hover","primary","ellipsis","emptyRender","isEmpty"],ee=(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,X);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},c),{},{type:"other",item:e,hover:n,primary:o,emptyRender:l,isEmpty:a,children:(0,b.jsx)(L,{ellipsis:i,children:e})}))},te={date:{render:(e,t)=>{let{hover:n,primary:o,isEmpty:i,emptyRender:l}=t,a=(0,s.A)(t,I);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},a),{},{type:"date",item:e,primary:o,hover:n,emptyRender:l,isEmpty:i||!f()(e).isValid(),children:f()(e).format("YYYY-MM-DD")}))},width:160,min:120,max:400},dateShort:{render:(e,t)=>{let{hover:n,primary:o,isEmpty:i,emptyRender:l}=t,a=(0,s.A)(t,T);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},a),{},{type:"date-short",item:e,primary:o,hover:n,emptyRender:l,isEmpty:i||!f()(e).isValid(),children:f()(e).format("YYYY-MM")}))},width:120,min:100,max:400},dateRange:{render:(e,t)=>{let{hover:n,primary:o,isEmpty:i,emptyRender:l}=t,a=(0,s.A)(t,z);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},a),{},{type:"date-range",item:e,primary:o,hover:n,emptyRender:l,isEmpty:i,children:f()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD HH:mm")+"-"+f()(null===e||void 0===e?void 0:e[1]).format("HH:mm")}))},width:240,min:120,max:400},datetime:{render:(e,t)=>{let{hover:n,primary:o,emptyRender:i,isEmpty:l,hideSecond:a}=t,c=(0,s.A)(t,F);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},c),{},{item:e,primary:o,hover:n,emptyRender:i,isEmpty:l||!f()(e).isValid(),children:f()(e).format(a?"YYYY-MM-DD HH:mm":"YYYY-MM-DD HH:mm:ss")}))},width:190,min:190,max:400},serialNumber:{render:(e,t)=>{let{hover:n,primary:o,emptyRender:i,isEmpty:l}=t,a=(0,s.A)(t,D);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},a),{},{type:"serial-number",item:e,primary:o,hover:n,emptyRender:i,isEmpty:l,children:e}))},width:190,min:100,max:400},serialNumberShort:{render:(e,t)=>{let{hover:n,primary:o,emptyRender:i,isEmpty:l}=t,a=(0,s.A)(t,H);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},a),{},{type:"serial-number-short",item:e,primary:o,hover:n,emptyRender:i,isEmpty:l,children:e}))},width:120,min:100,max:400},user:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,Y);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},c),{},{type:"user",item:e,primary:o,hover:n,emptyRender:l,isEmpty:a,children:(0,b.jsx)(L,{ellipsis:i,children:e})}))},width:200,min:120,max:400},userName:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,B);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},c),{},{type:"user-name",item:e,primary:o,hover:n,emptyRender:l,isEmpty:a,children:(0,b.jsx)(L,{ellipsis:i,children:e})}))},width:100,min:100,max:400},contacts:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,W);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},c),{},{type:"contacts",item:e,primary:o,hover:n,emptyRender:l,isEmpty:a,children:(0,b.jsx)(L,{ellipsis:i,children:e})}))},width:240,min:160,max:400},tag:{render:(e,t)=>{let{emptyRender:n,isEmpty:o}=t,i=(0,s.A)(t,K);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},i),{},{type:"tag",item:e,emptyRender:n,isEmpty:o,children:e&&(e.isEnum?(0,b.jsx)(S.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:s}=t;return(0,b.jsx)(R.default,(0,r.A)((0,r.A)({type:n},Object.assign({},Z()(e,["name","isEnum","moduleName","force"]))),{},{text:s}))}}):(0,b.jsx)(R.default,(0,r.A)({},Object.assign({},e))))}))},width:140,min:100,max:400},avatar:{render:(e,t)=>{let{emptyRender:n,isEmpty:o}=t,i=(0,s.A)(t,q);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},i),{},{type:"avatar",item:e,emptyRender:n,isEmpty:o,children:(0,b.jsx)(Q.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e)),{},{size:32}))}))},width:80,min:64,max:200},singleRow:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,J);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},c),{},{type:"single-row",item:e,hover:n,primary:o,emptyRender:l,isEmpty:a,children:(0,b.jsx)(L,{ellipsis:i,children:e})}))},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,b.jsx)(P,(0,r.A)({api:e},t)),width:120,min:80,max:400},mainInfo:{render:(e,t)=>{let{ellipsis:n,hover:o=!0,primary:i=!0,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,U);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},c),{},{type:"main-info",item:e,hover:o,primary:i,emptyRender:l,isEmpty:a,children:(0,b.jsx)(L,{ellipsis:n,children:e})}))},width:300,min:160,max:500},description:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,V);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},c),{},{type:"description",item:e,hover:n,primary:o,emptyRender:l,isEmpty:a,children:(0,b.jsx)(L,{ellipsis:i,children:e})}))},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,b.jsx)(E,{className:c()(y["col-item"],y.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:o,ellipsis:i,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,$);return(0,b.jsx)(O,(0,r.A)((0,r.A)({},c),{},{type:"sensitiveInfo",item:e,hover:n,primary:o,emptyRender:l,isEmpty:a,children:(0,b.jsx)(L,{ellipsis:i,children:e})}))},width:200,min:100,max:400},other:{render:ee,width:200,min:120,max:400},otherSmall:{render:ee,width:100,min:70,max:400},otherLarge:{render:ee,width:300,min:120,max:500}},ne=te;var re=n(33097),se=n.n(re),oe=n(42907),ie=n.n(oe),le=n(22717),ae=n.n(le),ce=n(22616),me=n.n(ce),de=n(63908),ue=n(39835),pe=n.n(ue),he=n(81014),ye=n(43856),ge=n(76441),fe=n(69613),_e=n.n(fe),ve=n(56434),xe=n.n(ve);const{Panel:je}=i.Collapse,be=e=>{let{close:t,onConfirm:n,columns:r,config:s}=e;const[a,m]=(0,l.useState)(s||{}),[d,u]=(0,l.useState)(""),{leftFixedColumns:p,rightFixedColumns:h,visibleColumns:y,hiddenColumns:g}=(0,l.useMemo)((()=>ae()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},pe()(r,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==se()(a,"".concat(e.name,".visible"))&&e.hidden||!1===se()(a,"".concat(e.name,".visible"))?"hiddenColumns":"visibleColumns"))),((e,t,n)=>{e[n]=t.sort(((e,t)=>se()(a,"".concat(e.name,".rank"),0)-se()(a,"".concat(t.name,".rank"),0)))}),{})),[r,a]),f=e=>(0,b.jsxs)(b.Fragment,{children:[e.titleText||e.title||"\u672a\u547d\u540d\u5217",e.groupHeader&&e.groupHeader.length>0?"(".concat(e.groupHeader.map((e=>{let{title:t}=e;return t})).join("-"),")"):""]});return(0,b.jsxs)("div",{className:o["columns-control-content"],children:[(0,b.jsx)("div",{className:o["columns-control-content-title"],children:(0,b.jsxs)(i.Row,{align:"middle",justify:"space-between",children:[(0,b.jsx)(i.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,b.jsx)(i.Col,{children:(0,b.jsx)(i.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,b.jsx)(he.default,{type:"text",icon:(0,b.jsx)(x.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,b.jsx)("div",{className:o["columns-control-content-scroller"],children:(0,b.jsxs)(i.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,b.jsx)(je,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,b.jsxs)(i.List,{className:o["columns-control-content-list"],children:[p.map(((e,t)=>(0,b.jsx)(i.List.Item,{className:o["columns-control-content-item"],children:(0,b.jsx)(i.Checkbox,{checked:!0,disabled:!0,children:f(e)})},e.name||"left-".concat(t)))),(0,b.jsx)(ge.ReactSortable,{list:y,filter:".ignore-elements",dragClass:o["sortable-drag"],ghostClass:o["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=xe()(a),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach((e=>{_e()(t,"".concat(e.name,".visible"),!1)})),n.forEach(((e,n)=>{_e()(t,"".concat(e.name,".rank"),n+1)})),m(t)})({leftFixedColumns:p,visibleColumns:e,hiddenColumns:g,rightFixedColumns:h})},animation:300,delayOnTouchStart:!0,delay:2,children:y.map(((e,t)=>(0,b.jsxs)(i.List.Item,{className:c()(o["columns-control-content-item"],o["is-drag"]),children:[(0,b.jsx)(x.default,{type:"icon-paixu",className:o["columns-control-content-item-icon"]}),(0,b.jsx)(i.Checkbox,{checked:!0,disabled:e.fixed||p.length+y.length+h.length<=1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},a);n[e.name]=Object.assign({},n[e.name],{visible:!1}),m(n)},children:f(e)})]},e.name||"visible-".concat(t))))}),h.map(((e,t)=>(0,b.jsx)(i.List.Item,{className:o["columns-control-content-item"],children:(0,b.jsx)(i.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.name||"right-".concat(t))))]})},"active"),(0,b.jsx)(je,{header:(0,b.jsxs)(i.Row,{wrap:!1,justify:"space-between",children:[(0,b.jsx)(i.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,b.jsx)(i.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,b.jsx)(ye.SearchInput,{prefix:(0,b.jsx)(x.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{u(e)},className:o["columns-control-content-input"],size:"small"})})]}),children:(0,b.jsx)(i.List,{dataSource:g.filter((e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(d)>-1)),renderItem:e=>(0,b.jsx)(i.List.Item,{className:o["columns-control-content-item"],children:(0,b.jsx)(i.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},a);n[e.name]=Object.assign({},n[e.name],{visible:!0}),m(n)},children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.key)})},"un-active")]})}),(0,b.jsxs)(i.Row,{className:o["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,b.jsx)(i.Col,{children:(0,b.jsx)(i.Button,{size:"small",onClick:()=>{m(s||{}),t()},children:"\u53d6\u6d88"})}),(0,b.jsx)(i.Col,{children:(0,b.jsx)(he.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(a),t()},children:"\u786e\u5b9a"})})]})]})};var Ce=n(51941),Ae=n(19853),we=n.n(Ae),Ee=n(21844),Re=n.n(Ee),Qe=n(25644);const Se="COMPONENTS_CORE_TABLE_CONFIG",Le={getDataApi:e=>e?{loader:()=>se()(Qe.A.getItem(Se),e,{})}:{},setDataFunc:(e,t)=>{if(e)return Qe.A.setItem(Se,Object.assign({},Qe.A.getItem(Se),{[e]:t}))}},Ne=e=>{let{title:t,columns:n,config:r,setConfig:s}=e;const[a,c]=(0,l.useState)(!1);return(0,b.jsxs)(i.Row,{wrap:!1,children:[(0,b.jsx)(i.Col,{flex:1,children:t}),(0,b.jsx)(i.Col,{children:(0,b.jsx)(i.Popover,{open:a,onOpenChange:c,trigger:"click",placement:"bottomLeft",overlayClassName:o["columns-control-overlay"],content:(0,b.jsx)(be,{columns:n,config:r,close:()=>{c(!1)},onConfirm:e=>{s((t=>ae()(e,((e,n,r)=>{e[r]=Object.assign({},t[r],me()(n,["visible","rank"]))}),{})))}}),children:(0,b.jsx)("span",{className:o["table-changer-setting"],children:(0,b.jsx)(x.default,{type:"icon-shezhi"})})})})]})},Oe=e=>{let{columns:t,name:n,controllerOpen:s,tableWidth:i,rowKey:a}=e;const[m,d]=(0,l.useState)(null),u=(0,l.useRef)(m);u.current=m;const p=(0,l.useRef)(null),y=(0,l.useRef)(null),[g,f]=(0,l.useState)({}),{tableServerApis:v}=(0,de.usePreset)(),j=v||Le,C=null===j||void 0===j?void 0:j.getDataApi(n),A=(0,Ce.useDebouncedCallback)(((e,t)=>{null===j||void 0===j||j.setDataFunc(e,t)}),500),w=h()((e=>{(0,l.startTransition)((()=>{f((t=>{const r="function"===typeof e?e(t):e;return n&&s&&A(n,r),r}))}))})),{send:E}=(0,_.useFetch)(Object.assign((0,r.A)((0,r.A)({},Object.assign({},C)),{},{auto:!1,cache:"TABLE_CONFIG_".concat(n),isLocal:!0,onRequestSuccess:e=>{f(Object.assign({},e))}}))),R=h()((()=>{n&&s&&C&&E({force:!1})}));(0,l.useEffect)((()=>{R()}),[R]);const Q=(0,l.useMemo)((()=>t.filter((e=>!(!1===se()(g,"".concat(e.name,".visible"))||!0!==se()(g,"".concat(e.name,".visible"))&&!0===e.hidden))).sort(((e,t)=>{const n=e=>se()(g,"".concat(e.name,".rank"),0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}))),[t,g]),S=(0,l.useMemo)((()=>Re()(Q,(e=>{let{type:t}=e;return"options"!==t}))),[Q]),L=(0,l.useMemo)((()=>ie()(Q,(e=>{let{type:t,name:n}=e;return se()(g,"".concat(n,".width"))||ne[t].width}))),[Q,g]),N=e=>{let{width:t,index:n}=e;return S===n?t+Math.max(i-L-2,0):t},O=h()(((e,t)=>(0,b.jsx)("span",{className:c()(o["cell-resize-bar"]),onMouseDown:n=>{p.current=Object.assign({},e,{index:t}),y.current=n.clientX,d(t)},children:(0,b.jsx)(x.default,{type:"icon-paixu"})}))),k=h()((e=>{if(null===m)return;if(!p.current)return;const{name:t,width:n,min:r,max:s,index:o}=p.current,i=Math.min(Math.max(n+e,r),s);i<N({width:r,index:o})||w((e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:i})})))})),G=h()(((e,n)=>{const{name:r,width:s,min:i,max:l}=e;let m=e;n===Q.length-1&&(m=Object.assign({},e,{className:"has-config-btn",title:(0,b.jsx)(Ne,{title:null===e||void 0===e?void 0:e.title,columns:t,config:g,setConfig:w})}));const d=()=>({className:c()({[o["is-moving"]]:u.current===n})}),p=Math.min(Math.max(se()(g,"".concat(r,".width"))||s,i),l),h=N({width:p,index:n});return Object.assign({},m,{onHeaderCell:d,onCell:d,width:h,shouldCellUpdate:(t,r)=>{const s="function"===typeof a?a(t):t[a],o="function"===typeof a?a(r):r[a];return null===u.current||u.current===n||"hideInfo"===e.type||!(s===o&&we()(t[e.name],r[e.name]))},title:(0,b.jsxs)(b.Fragment,{children:[m.title,!(h>p&&h>l)&&O(Object.assign({},m,{width:h}),n)]})})}));return(0,l.useEffect)((()=>{const e=()=>{d(null),y.current=null,p.current=null},t=e=>{null!==u.current&&null!==p.current&&(null!==y.current?k(e.clientX-y.current):y.current=e.clientX)};return document.documentElement.addEventListener("mouseup",e,!0),document.documentElement.addEventListener("mousemove",t,!0),()=>{document.documentElement.removeEventListener("mouseup",e,!0),document.documentElement.removeEventListener("mousemove",t,!0)}}),[k]),{visibleColumns:Q,currentMoveColumnIndex:m,resizeBarRender:O,columnsConfig:g,totalWidth:L,computedColumnProps:G}};var ke=n(79686),Ge=n.n(ke);const Pe=["name","type","expandType","title","titleRender","fixed","emptyOf","emptyRender","groupHeader","sort","disableColItem"],Me=e=>{let{rowKey:t,renderProps:n}=e;const[o,i]=(0,l.useState)(null),a=(0,l.useRef)(n);a.current=n;const c=h()(((e,n,l)=>{let{columnsConfig:c}=l;const{name:m,type:d,expandType:u,title:p,titleRender:h,fixed:y,emptyOf:g,emptyRender:f,groupHeader:_,sort:v,disableColItem:x}=e,j=(0,s.A)(e,Pe),{render:b,width:C,min:A,max:w}=Object.assign({},ne[d||"other"],"hideInfo"===d&&!Ge()(o)&&me()(ne[u||"other"],["width","min","max"])),E=b;return{name:m,title:"function"===typeof h?h(p):p,min:A,max:w,width:C,fixed:y,groupHeader:_,sort:v,type:d,render:n=>{const s="function"===typeof t?t(n):n[t],l=Object.assign({},e,"function"===typeof e.render?e.render((0,r.A)((0,r.A)({},a.current),{},{name:m,target:n})):{}),d=e=>{const t=k(e,g);return E(e,(0,r.A)((0,r.A)({},j),{},{name:m,width:se()(c,"".concat(m,".width"))||C,min:A,max:w,isEmpty:t,emptyRender:f,hover:l.hover,colValue:Object.assign({},n),renderProps:a.current,primary:l.primary,ellipsis:l.ellipsis,expand:o===s,onExpand:()=>i(s)}))},u=l.hasOwnProperty("valueOf")&&"function"===typeof l.valueOf?l.valueOf(n,Object.assign({},a.current,{name:m},x?{targetRender:d}:{})):se()(n,m);return x?u:d(u)}}}));return{expandInfo:o,computedColumnProps:c}},Ze=e=>(0,l.useMemo)((()=>{const t=e.filter((e=>e.groupHeader&&e.groupHeader.length>0));if(t.length>0){const n=e.slice(0),r=[],s=e=>{const{groupHeader:t}=e;if(!(t&&t.length>0))return;const s=n.indexOf(e),o=(t,n)=>{const[r,...i]=t;let l=n.find((e=>e.name===r.name));l||(l=Object.assign({startIndex:s},r,{children:[]}),n.push(l)),i.length>0?o(i,l.children):l.children.push(e)};o(t,r),n.splice(s,1)};return t.forEach(s),r.forEach(((e,t)=>{n.splice(e.startIndex+t,0,e)})),{columns:n,hasGroupHeader:!0}}return{columns:e,hasGroupHeader:!1}}),[e]);var Ie=n(10986),Te=n.n(Ie),ze=n(41740),Fe=n.n(ze);const De=e=>new Map((e||[]).map((e=>{let{name:t,sort:n}=e;return[t,n]}))),He=e=>{const[t,n]=Te()(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),r=(0,l.useMemo)((()=>De(t)),[t]),s=(0,l.useCallback)((e=>n((t=>{const n=e(De(t));return Array.from(n).map((e=>{let[t,n]=e;return{name:t,sort:n}}))}))),[n]);return(0,l.useCallback)((e=>{let{single:t,name:n}=e;return(0,b.jsxs)("div",{className:c()(o["sort-btn"],{[o["sort-active-desc"]]:"DESC"===r.get(n),[o["sort-active-asc"]]:"ASC"===r.get(n)}),onClick:()=>{s((e=>{const r=e.get(n),s="DESC"===r?"ASC":"ASC"===r?null:"DESC";if(t)return new Map(s?[[n,s]]:[]);const o=Fe()(e);return s?o.set(n,s):o.delete(n),o}))},children:[(0,b.jsx)(x.default,{type:"icon-triangle-up",className:o["sort-icon"]}),(0,b.jsx)(x.default,{type:"icon-triangle-down",className:o["sort-icon"]})]})}),[r,s])},Ye=["columns","className","getScrollEl","sticky","stickyOffset","pagination","columnRenderProps","rowKey","dataSource","controllerOpen","name","summary","scroll","onTablePropsReady"],Be=e=>{let{columns:t,className:n,getScrollEl:a,sticky:d,stickyOffset:p,pagination:y,columnRenderProps:g,rowKey:f,dataSource:_,controllerOpen:v,name:x,summary:j,scroll:C,onTablePropsReady:A}=e,w=(0,s.A)(e,Ye);const[E,R]=(0,l.useState)(0),[Q,S]=(0,l.useState)(!0);(0,l.useEffect)((()=>{E&&setTimeout((()=>{S(!1)}),0)}),[E]);(0,l.useRef)(g).current=g;const L=(0,u.A)((e=>{R(e.clientWidth)}),{isDebounce:!0}),{expandInfo:N,computedColumnProps:O}=Me({rowKey:f,renderProps:g}),{columnsConfig:k,visibleColumns:G,computedColumnProps:P,currentMoveColumnIndex:M,totalWidth:Z}=Oe({columns:t,controllerOpen:v,name:x,computedColumnProps:O,tableWidth:E,rowKey:f}),I=He(w),T=(0,l.useMemo)((()=>G.map(((e,t)=>{let n=O(e,t,{rowKey:f,expandInfo:N,columnsConfig:k});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,b.jsxs)(b.Fragment,{children:[n.title,I({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),v&&(n=P(n,t,{tableWidth:E,columnsConfig:k})),n}))),[G,E,k,N,f,v,O,P,I]),{columns:z,hasGroupHeader:F}=Ze(T),D=h()(A);return(0,l.useEffect)((()=>{D&&D({columns:t,groupColumns:z,dataSource:_,visibleColumns:G})}),[D,z,_,t,G]),(0,b.jsx)("div",{className:c()(n,o.table,{[o["is-resize"]]:null!==M,[o["is-computed"]]:Q,[o["has-group-header"]]:F}),ref:L,style:{"--sticky-offset":p},children:!Q&&(0,b.jsx)(m.A,{className:"table-page-scroller",scroller:{getContainer:a},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,b.jsx)(i.Table,(0,r.A)((0,r.A)({},w),{},{sticky:!!d&&{getContainer:a},dataSource:_,rowKey:f,columns:z,scroll:Object.assign({},{x:Math.max(E,Z)},C),pagination:y,summary:"function"===typeof j?function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return j(Object.assign({},{pageData:e},{columns:z}),...n)}:null}))})})};Be.defaultProps={controllerOpen:!0,rowKey:"id",getScrollEl:d.h,columnRenderProps:{},sticky:!1,stickyOffset:"var(--nav-height)",pagination:!1};const We=Be;var Ke=n(63361);const qe=e=>({"en-US":()=>n.e(399).then(n.bind(n,80399)),"zh-CN":()=>n.e(9809).then(n.bind(n,59809))}[e]());var Je=n(47458);const Ue=["data","refresh","reload","requestParams","fetchProps","isComplete","setData","loadMore","send","dataFormat","className","featureId","columns","getColumns","pagination","columnRenderProps","summary"],Ve=["pagination"],Xe=e=>{let{id:t,columns:n,children:r}=e;return t?(0,b.jsx)(Ke.default,{id:t,children:e=>{let{options:t}=e;return r({columns:n.filter((e=>!e.name||(!Array.isArray(se()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name))))})}}):r({columns:n})},$e=(0,_.withFetch)((e=>{let{data:t,refresh:n,reload:i,requestParams:a,fetchProps:m,isComplete:u,setData:p,loadMore:y,send:g,dataFormat:f,className:_,featureId:v,columns:x,getColumns:j,pagination:C,columnRenderProps:A,summary:w}=e,E=(0,s.A)(e,Ue);const R=h()(f),Q=(0,l.useMemo)((()=>R(t)),[t,R]),S={dataSource:Q.list,pagination:!!C.open&&{total:Q.total,showTotal:e=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Je.FormattedMessage,{id:"Page_Total",moduleName:"Table",defaultMessage:"\u5171"}),(0,b.jsx)("span",{className:o.total_text,children:e}),(0,b.jsx)(Je.FormattedMessage,{id:"Page_TotalCount",moduleName:"Table",defaultMessage:"\u6761"})]}),current:se()(a,[C.paramsType,C.currentName],1),pageSize:C.pageSize,onChange:C.onChange?C.onChange:(e,t)=>{e!==se()(a,[C.paramsType,C.currentName],1)?("refresh"===C.requestType?n:i)({[C.paramsType]:{[C.currentName]:e,[C.pageSizeName]:t}}):C.onShowSizeChange&&C.onShowSizeChange(e,t),(0,d.h)().scrollTop=0},size:C.size,showSizeChanger:C.showSizeChanger,showQuickJumper:C.showQuickJumper,pageSizeOptions:C.pageSizeOptions}};return(0,b.jsx)(Je.IntlProvider,{importMessages:qe,moduleName:"Table",children:(0,b.jsx)(Xe,{id:v,columns:x,children:e=>{let{columns:s}=e;return(0,b.jsx)(We,(0,r.A)((0,r.A)({},Object.assign({},E,S)),{},{className:c()(_,"loading-container",{"is-loading":!u}),columns:s,columnRenderProps:(0,r.A)((0,r.A)({},A),{},{requestParams:a,fetchProps:m,data:t}),summary:"function"===typeof w?function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return w(Object.assign({},{data:t,fetchProps:m,requestParams:a,refresh:n,reload:i,loadMore:y,send:g,dataFormat:f,pagination:C},...r))}:null}))}})})}));$e.defaultProps={pagination:{},columnRenderProps:{},sticky:!0,dataFormat:e=>({list:e.pageData,total:e.totalCount})};const et=(0,l.forwardRef)(((e,t)=>{let{pagination:n}=e,o=(0,s.A)(e,Ve);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",currentName:"currentPage",pageSizeName:"perPage",pageSize:20},n);const i="".concat((o.name||"common").toUpperCase(),"_TABLE_PAGE_SIZE"),[a,c]=(0,l.useState)(Qe.A.getItem(i)||n.pageSize),m=o[n.paramsType],d=(0,l.useMemo)((()=>({[n.paramsType]:Object.assign({},m,{[n.pageSizeName]:a})})),[m,n.pageSizeName,n.paramsType,a]);return(0,b.jsx)($e,(0,r.A)((0,r.A)((0,r.A)({},o),d),{},{pagination:Object.assign({},n,{pageSize:a,onShowSizeChange:(e,t)=>{Qe.A.setItem(i,t),c(t)}}),ref:t}))}))},75816:e=>{e.exports=function(e,t,n,r){for(var s=e.length,o=n+(r?1:-1);r?o--:++o<s;)if(t(e[o],o,e))return o;return-1}},21844:(e,t,n)=>{var r=n(75816),s=n(9096),o=n(99140),i=Math.max,l=Math.min;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var c=a-1;return void 0!==n&&(c=o(n),c=n<0?i(a+c,0):l(c,a-1)),r(e,s(t,3),c,!0)}},69613:(e,t,n)=>{var r=n(9261);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},42907:(e,t,n)=>{var r=n(9096),s=n(99910);e.exports=function(e,t){return e&&e.length?s(e,r(t,2)):0}},99140:(e,t,n)=>{var r=n(37303);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}}}]);
|
|
2
|
+
//# sourceMappingURL=1046.8609e5f3.chunk.js.map
|