@kne-components/components-core 0.2.67 → 0.2.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/build/asset-manifest.json +98 -98
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/{1045.1f1e9889.chunk.css → 1045.e6baa576.chunk.css} +2 -2
  6. package/build/static/css/{1045.1f1e9889.chunk.css.map → 1045.e6baa576.chunk.css.map} +1 -1
  7. package/build/static/css/1046.80809396.chunk.css +2 -0
  8. package/build/static/css/{1046.424466bf.chunk.css.map → 1046.80809396.chunk.css.map} +1 -1
  9. package/build/static/css/1153.85ad94e9.chunk.css +2 -0
  10. package/build/static/css/{1153.e3290200.chunk.css.map → 1153.85ad94e9.chunk.css.map} +1 -1
  11. package/build/static/css/1554.249b224e.chunk.css +2 -0
  12. package/build/static/css/{1554.48d28851.chunk.css.map → 1554.249b224e.chunk.css.map} +1 -1
  13. package/build/static/css/2716.d6448116.chunk.css +2 -0
  14. package/build/static/css/{2716.f48e1b46.chunk.css.map → 2716.d6448116.chunk.css.map} +1 -1
  15. package/build/static/css/374.d832c02d.chunk.css +12 -0
  16. package/build/static/css/{374.d2e66726.chunk.css.map → 374.d832c02d.chunk.css.map} +1 -1
  17. package/build/static/css/3834.29694a52.chunk.css +2 -0
  18. package/build/static/css/{3834.7cf218fe.chunk.css.map → 3834.29694a52.chunk.css.map} +1 -1
  19. package/build/static/css/3900.1e889b66.chunk.css +2 -0
  20. package/build/static/css/{3900.e1be0921.chunk.css.map → 3900.1e889b66.chunk.css.map} +1 -1
  21. package/build/static/css/4194.14e6bdc0.chunk.css +2 -0
  22. package/build/static/css/{4194.90488183.chunk.css.map → 4194.14e6bdc0.chunk.css.map} +1 -1
  23. package/build/static/css/4602.8cd7b30e.chunk.css +2 -0
  24. package/build/static/css/{4602.e6221275.chunk.css.map → 4602.8cd7b30e.chunk.css.map} +1 -1
  25. package/build/static/css/4666.50cdb032.chunk.css +2 -0
  26. package/build/static/css/{4666.a0883339.chunk.css.map → 4666.50cdb032.chunk.css.map} +1 -1
  27. package/build/static/css/{5371.7da77041.chunk.css → 5371.68530d2a.chunk.css} +2 -2
  28. package/build/static/css/{5371.7da77041.chunk.css.map → 5371.68530d2a.chunk.css.map} +1 -1
  29. package/build/static/css/5807.05001672.chunk.css +2 -0
  30. package/build/static/css/{5807.f78e7f03.chunk.css.map → 5807.05001672.chunk.css.map} +1 -1
  31. package/build/static/css/5965.992b35d5.chunk.css +2 -0
  32. package/build/static/css/{5965.26cd8668.chunk.css.map → 5965.992b35d5.chunk.css.map} +1 -1
  33. package/build/static/css/{624.78789eb0.chunk.css → 624.74455663.chunk.css} +2 -2
  34. package/build/static/css/{624.78789eb0.chunk.css.map → 624.74455663.chunk.css.map} +1 -1
  35. package/build/static/css/6756.537cc609.chunk.css +2 -0
  36. package/build/static/css/{6756.8919ba1a.chunk.css.map → 6756.537cc609.chunk.css.map} +1 -1
  37. package/build/static/css/7227.84152540.chunk.css +2 -0
  38. package/build/static/css/{7227.719a0b9f.chunk.css.map → 7227.84152540.chunk.css.map} +1 -1
  39. package/build/static/css/{7253.7bef04d5.chunk.css → 7253.11290a8f.chunk.css} +2 -2
  40. package/build/static/css/{7253.7bef04d5.chunk.css.map → 7253.11290a8f.chunk.css.map} +1 -1
  41. package/build/static/css/7277.769782c4.chunk.css +2 -0
  42. package/build/static/css/{7277.e15d6b2c.chunk.css.map → 7277.769782c4.chunk.css.map} +1 -1
  43. package/build/static/css/{7334.606366c2.chunk.css → 7334.398ecc32.chunk.css} +2 -2
  44. package/build/static/css/{7334.606366c2.chunk.css.map → 7334.398ecc32.chunk.css.map} +1 -1
  45. package/build/static/css/{7866.d3c2c558.chunk.css → 7866.a8414470.chunk.css} +2 -2
  46. package/build/static/css/{7866.d3c2c558.chunk.css.map → 7866.a8414470.chunk.css.map} +1 -1
  47. package/build/static/css/{8503.8177a7a7.chunk.css → 8503.7580feb1.chunk.css} +2 -2
  48. package/build/static/css/{8503.8177a7a7.chunk.css.map → 8503.7580feb1.chunk.css.map} +1 -1
  49. package/build/static/js/1045.8d985863.chunk.js +2 -0
  50. package/build/static/js/{1045.bffe73fc.chunk.js.map → 1045.8d985863.chunk.js.map} +1 -1
  51. package/build/static/js/1046.8fd3d992.chunk.js +2 -0
  52. package/build/static/js/{1046.cc83ee70.chunk.js.map → 1046.8fd3d992.chunk.js.map} +1 -1
  53. package/build/static/js/{1153.fea81edd.chunk.js → 1153.c9a0cc27.chunk.js} +3 -3
  54. package/build/static/js/{1153.fea81edd.chunk.js.map → 1153.c9a0cc27.chunk.js.map} +1 -1
  55. package/build/static/js/1554.db4c255f.chunk.js +3 -0
  56. package/build/static/js/{1554.f2847d2f.chunk.js.map → 1554.db4c255f.chunk.js.map} +1 -1
  57. package/build/static/js/2716.bba50177.chunk.js +3 -0
  58. package/build/static/js/{2716.05e6f589.chunk.js.map → 2716.bba50177.chunk.js.map} +1 -1
  59. package/build/static/js/3344.5a453b6a.chunk.js +2 -0
  60. package/build/static/js/3344.5a453b6a.chunk.js.map +1 -0
  61. package/build/static/js/{374.4f1170ce.chunk.js → 374.58ed389b.chunk.js} +2 -2
  62. package/build/static/js/374.58ed389b.chunk.js.map +1 -0
  63. package/build/static/js/3834.a9a18462.chunk.js +2 -0
  64. package/build/static/js/{3834.befd4eff.chunk.js.map → 3834.a9a18462.chunk.js.map} +1 -1
  65. package/build/static/js/3856.ab7b6277.chunk.js +2 -0
  66. package/build/static/js/{3856.53440631.chunk.js.map → 3856.ab7b6277.chunk.js.map} +1 -1
  67. package/build/static/js/3900.92885b99.chunk.js +2 -0
  68. package/build/static/js/{3900.f7f3b312.chunk.js.map → 3900.92885b99.chunk.js.map} +1 -1
  69. package/build/static/js/4194.23a1d584.chunk.js +2 -0
  70. package/build/static/js/4194.23a1d584.chunk.js.map +1 -0
  71. package/build/static/js/4602.39ebe166.chunk.js +2 -0
  72. package/build/static/js/4602.39ebe166.chunk.js.map +1 -0
  73. package/build/static/js/{4666.0717665d.chunk.js → 4666.01bb479b.chunk.js} +3 -3
  74. package/build/static/js/{4666.0717665d.chunk.js.map → 4666.01bb479b.chunk.js.map} +1 -1
  75. package/build/static/js/5371.560d9c67.chunk.js +2 -0
  76. package/build/static/js/{5371.e41c3114.chunk.js.map → 5371.560d9c67.chunk.js.map} +1 -1
  77. package/build/static/js/{5807.9dad8a5b.chunk.js → 5807.f9b4aa9a.chunk.js} +2 -2
  78. package/build/static/js/{5807.9dad8a5b.chunk.js.map → 5807.f9b4aa9a.chunk.js.map} +1 -1
  79. package/build/static/js/5965.ce6ae8eb.chunk.js +2 -0
  80. package/build/static/js/5965.ce6ae8eb.chunk.js.map +1 -0
  81. package/build/static/js/6213.4a765459.chunk.js +2 -0
  82. package/build/static/js/6213.4a765459.chunk.js.map +1 -0
  83. package/build/static/js/{624.7c7f16a7.chunk.js → 624.8f792c81.chunk.js} +2 -2
  84. package/build/static/js/{624.7c7f16a7.chunk.js.map → 624.8f792c81.chunk.js.map} +1 -1
  85. package/build/static/js/6900.683b756c.chunk.js +2 -0
  86. package/build/static/js/6900.683b756c.chunk.js.map +1 -0
  87. package/build/static/js/7227.cd0d2836.chunk.js +3 -0
  88. package/build/static/js/{7227.67fb52ed.chunk.js.map → 7227.cd0d2836.chunk.js.map} +1 -1
  89. package/build/static/js/7253.8c612b70.chunk.js +2 -0
  90. package/build/static/js/{7253.9769facf.chunk.js.map → 7253.8c612b70.chunk.js.map} +1 -1
  91. package/build/static/js/{7277.83be11d0.chunk.js → 7277.4947b8f5.chunk.js} +2 -2
  92. package/build/static/js/{7277.83be11d0.chunk.js.map → 7277.4947b8f5.chunk.js.map} +1 -1
  93. package/build/static/js/{7334.2d111053.chunk.js → 7334.f6164647.chunk.js} +2 -2
  94. package/build/static/js/{7334.2d111053.chunk.js.map → 7334.f6164647.chunk.js.map} +1 -1
  95. package/build/static/js/{7866.575eb027.chunk.js → 7866.299297a0.chunk.js} +2 -2
  96. package/build/static/js/{7866.575eb027.chunk.js.map → 7866.299297a0.chunk.js.map} +1 -1
  97. package/build/static/js/8503.47aa1e0f.chunk.js +2 -0
  98. package/build/static/js/{8503.399353b6.chunk.js.map → 8503.47aa1e0f.chunk.js.map} +1 -1
  99. package/build/static/js/main.9892d635.js +2 -0
  100. package/build/static/js/main.9892d635.js.map +1 -0
  101. package/package.json +1 -1
  102. package/build/static/css/1046.424466bf.chunk.css +0 -2
  103. package/build/static/css/1153.e3290200.chunk.css +0 -2
  104. package/build/static/css/1554.48d28851.chunk.css +0 -2
  105. package/build/static/css/2716.f48e1b46.chunk.css +0 -2
  106. package/build/static/css/374.d2e66726.chunk.css +0 -12
  107. package/build/static/css/3834.7cf218fe.chunk.css +0 -2
  108. package/build/static/css/3900.e1be0921.chunk.css +0 -2
  109. package/build/static/css/4194.90488183.chunk.css +0 -2
  110. package/build/static/css/4602.e6221275.chunk.css +0 -2
  111. package/build/static/css/4666.a0883339.chunk.css +0 -2
  112. package/build/static/css/5807.f78e7f03.chunk.css +0 -2
  113. package/build/static/css/5965.26cd8668.chunk.css +0 -2
  114. package/build/static/css/6756.8919ba1a.chunk.css +0 -2
  115. package/build/static/css/7227.719a0b9f.chunk.css +0 -2
  116. package/build/static/css/7277.e15d6b2c.chunk.css +0 -2
  117. package/build/static/js/1045.bffe73fc.chunk.js +0 -2
  118. package/build/static/js/1046.cc83ee70.chunk.js +0 -2
  119. package/build/static/js/1554.f2847d2f.chunk.js +0 -3
  120. package/build/static/js/2716.05e6f589.chunk.js +0 -3
  121. package/build/static/js/374.4f1170ce.chunk.js.map +0 -1
  122. package/build/static/js/3834.befd4eff.chunk.js +0 -2
  123. package/build/static/js/3856.53440631.chunk.js +0 -2
  124. package/build/static/js/3900.f7f3b312.chunk.js +0 -2
  125. package/build/static/js/4194.208791f4.chunk.js +0 -2
  126. package/build/static/js/4194.208791f4.chunk.js.map +0 -1
  127. package/build/static/js/4602.d4791c51.chunk.js +0 -2
  128. package/build/static/js/4602.d4791c51.chunk.js.map +0 -1
  129. package/build/static/js/5371.e41c3114.chunk.js +0 -2
  130. package/build/static/js/5965.e4072ef6.chunk.js +0 -2
  131. package/build/static/js/5965.e4072ef6.chunk.js.map +0 -1
  132. package/build/static/js/6213.0a9707a3.chunk.js +0 -2
  133. package/build/static/js/6213.0a9707a3.chunk.js.map +0 -1
  134. package/build/static/js/628.abecee2a.chunk.js +0 -2
  135. package/build/static/js/628.abecee2a.chunk.js.map +0 -1
  136. package/build/static/js/6900.e5139539.chunk.js +0 -2
  137. package/build/static/js/6900.e5139539.chunk.js.map +0 -1
  138. package/build/static/js/7227.67fb52ed.chunk.js +0 -3
  139. package/build/static/js/7253.9769facf.chunk.js +0 -2
  140. package/build/static/js/8503.399353b6.chunk.js +0 -2
  141. package/build/static/js/main.957ea26d.js +0 -2
  142. package/build/static/js/main.957ea26d.js.map +0 -1
  143. /package/build/static/js/{1153.fea81edd.chunk.js.LICENSE.txt → 1153.c9a0cc27.chunk.js.LICENSE.txt} +0 -0
  144. /package/build/static/js/{1554.f2847d2f.chunk.js.LICENSE.txt → 1554.db4c255f.chunk.js.LICENSE.txt} +0 -0
  145. /package/build/static/js/{2716.05e6f589.chunk.js.LICENSE.txt → 2716.bba50177.chunk.js.LICENSE.txt} +0 -0
  146. /package/build/static/js/{4666.0717665d.chunk.js.LICENSE.txt → 4666.01bb479b.chunk.js.LICENSE.txt} +0 -0
  147. /package/build/static/js/{7227.67fb52ed.chunk.js.LICENSE.txt → 7227.cd0d2836.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
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:()=>M,TabsModal:()=>P,TabsModalButton:()=>Z,default:()=>N,useConfirmModal:()=>v,useModal:()=>w,useTabsModal:()=>W});var l=t(73884),n=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__RZWai",large:"style_large__iaqVE__RZWai","modal-body-inner":"style_modal-body-inner__4PhpA__RZWai","modal-title":"style_modal-title__dswaw__RZWai","modal-outer":"style_modal-outer__r3SkX__RZWai","modal-body":"style_modal-body__jQJSI__RZWai","right-options-modal":"style_right-options-modal__FajDP__RZWai","right-options-row":"style_right-options-row__-mPb9__RZWai","right-options-col":"style_right-options-col__3ilee__RZWai","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__RZWai",content:"style_content__k6MIF__RZWai","modal-footer":"style_modal-footer__-prbN__RZWai","modal-close":"style_modal-close__Oa5Kl__RZWai","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__RZWai","is-danger":"style_is-danger__H5110__RZWai",title:"style_title__orTym__RZWai","has-title":"style_has-title__qy0Wp__RZWai"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(47458),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=t(81014),p=t(17342),_=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:l}=e;return o?(0,_.jsxs)(n.Row,{wrap:!1,className:a["right-options-row"],children:[(0,_.jsx)(n.Col,{span:24-t,className:a["right-options-col"],children:l}),(0,_.jsx)(n.Col,{span:t,className:a["right-options-col"],children:o})]}):l},y=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":y(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":y(300,o)}}:{width:"1000px",style:{"--min-modal-height":y(500,o)}},C=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,_.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(n.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(n.Col,{children:(0,_.jsx)(n.Space,{children:(t||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:n,autoClose:s=!0,display:i,...r}=e;const c=t||h.default;return(0,l.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(n&&n(...o,d));return s&&!1!==l&&a&&a(),l}})}))})})]})},b=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:y}=e;const g=(0,l.useRef)(null);return(0,_.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(n.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:a["modal-title"],children:o}),(0,_.jsx)(p.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,_.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,_.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,_.jsx)(C,{footer:t,footerButtons:r,onConfirm:h,onCancel:u,onClose:c,targetProps:y})}):null]})},j=e=>{let{withDecorator:o,footerButtons:t,title:l,closable:n,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,rightSpan:d,disabledScroller:h,childrenRef:p,children:u}=e;const y=e=>(e=Object.assign({},{title:l},e),(0,_.jsx)(b,{title:m(e.title,{...e,childrenRef:p,close:s}),closable:n,onClose:s,onConfirm:i,onCancel:a,footerButtons:m(t,{...e,close:s}),disabledScroller:h,footer:m(r,{...e,childrenRef:p,close:s}),targetProps:Object.assign({},e,{childrenRef:p,close:s}),children:(0,_.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:p,close:s}),children:m(u,{...e,childrenRef:p,close:s})})}));return"function"===typeof o?o(y,{childrenRef:p,close:s}):y({})},x=e=>{let{children:o,rightOptions:t,rightSpan:l,footer:n,footerButtons:s,className:d,size:m,title:h,onClose:p,onConfirm:u,onCancel:f,closable:y,disabledScroller:C,withDecorator:b,childrenRef:x,...R}=e;return{...R,icon:null,centered:!0,title:null,maskClosable:!!R.hasOwnProperty("maskClosable")&&R.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:p,className:i()(d,a.modal,a[m],{[a["right-options-modal"]]:t}),...g(m,!(null===n&&!s)),children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:j({withDecorator:b,title:h,closable:y,onClose:p,onConfirm:u,onCancel:f,footer:n,footerButtons:s,rightOptions:t,rightSpan:l,disabledScroller:C,children:o,childrenRef:x})})}},R=e=>{const o=(0,l.useRef)(null);return(0,_.jsx)(n.Modal,{...x(Object.assign({},e,{childrenRef:o}))})};R.defaultProps={size:"default"};const w=()=>{const{modal:e}=n.App.useApp(),o=(0,l.useRef)(null);return t=>{const l={},{children:n,...s}=x({onClose:()=>l.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:n});return l.close=i,l}},v=()=>{const{modal:e}=n.App.useApp();return o=>{const t={},{type:l,icon:s,title:r,danger:c,wrapClassName:m,message:h,iconSetting:p={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},p);if(e[l]){const{destroy:o}=e[l]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,_.jsx)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,_.jsxs)(n.Space,{size:0,align:"start",className:a.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||y["confirm"===l?u:l]}):null,r]})}),content:(0,_.jsxs)(n.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||y["confirm"===l?u:l]}):null,h]})});t.close=o}return t}},N=R,k=e=>{let{items:o,className:t,activeKey:l,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.jsx)(n.Tabs,{items:o.map((o=>{let{withDecorator:l,...n}=o;return Object.assign({},n,{children:"function"===typeof l?l((o=>e(Object.assign({},t,o,{children:n.children})))):e(Object.assign({},t,{children:n.children}))})})),destroyInactiveTabPane:!0,activeKey:l,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},P=e=>(0,_.jsx)(N,{...k(e)}),W=()=>{const e=w();return o=>e(k(o))};var S=t(73025);const Z=e=>{const o=W();return e.api?(0,_.jsx)(S.A,{...e,modalFunc:o}):(0,_.jsx)(n.Button,{...e,onClick:()=>{o(e.modalProps)}})},M=e=>{const o=w();if(!e.api){const{modalProps:t,...l}=e;return(0,_.jsx)(n.Button,{...l,onClick:()=>{o(t)}})}return(0,_.jsx)(S.A,{...e,modalFunc:o})}},46733:()=>{}}]);
2
- //# sourceMappingURL=1045.bffe73fc.chunk.js.map
@@ -1,2 +0,0 @@
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:()=>p});var r=n(10486),s=n(73884),i=n(96418),o=n.n(i),l=n(83136),a=n.n(l);const c={scroller:"style_scroller__EfuqR__RZWai","scroller-inner":"style_scroller-inner__NJSE0__RZWai","is-moving":"style_is-moving__jGuy0__RZWai"};var d=n(70579);const m=e=>{let{onScroll:t,getContainer:n,...i}=e;const o=(0,s.useRef)(0),[l,m]=(0,s.useState)(!1),u=(0,s.useRef)(l);u.current=l;const p=(0,s.useRef)(t);p.current=t;const h=(0,s.useRef)(1);return h.current=i.width/i.innerWidth,(0,s.useEffect)((()=>{const e=e=>{u.current&&p.current(h.current*(e.clientX-o.current)),o.current=e.clientX},t=()=>{m(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,r.createPortal)(i.hasScroller?(0,d.jsx)("div",{className:c.scroller,style:{left:i.left,width:i.width,height:15},children:(0,d.jsx)("div",{className:a()(c["scroller-inner"],{[c["is-moving"]]:l}),style:{width:i.innerWidth,left:i.innerLeft},onMouseDown:e=>{e.preventDefault(),o.current=e.clientX,m(!0)}})}):null,n()||document.body)},u=e=>{let{className:t,scroller:n,getScrollTarget:r,children:i}=e;const[l,u]=(0,s.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),p=(0,s.useRef)(null),h=o()((()=>p.current&&r(p.current))),y=(0,s.useRef)();return y.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,s.useEffect)((()=>{const e=y.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:r,top:s,height:i}=t.getBoundingClientRect(),o=t.offsetHeight-t.clientHeight||15,l=r*t.clientWidth/t.scrollWidth-6,a=t.scrollLeft*t.clientWidth/t.scrollWidth+2,c=e.getBoundingClientRect();u((d=>Object.assign({},d,{left:n,width:r,innerLeft:a,innerWidth:l,height:o,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+i-e.offsetHeight>0&&s<e.offsetHeight:s<c.top+c.height&&s+i>c.top+c.height)})))},r=new ResizeObserver(n);return new ResizeObserver((()=>{t=h(),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)}}),[h]),n?(0,d.jsxs)("div",{className:a()(c["scroller-outer"],t),ref:p,style:{"--scroller-bar-height":null!==l&&void 0!==l&&l.hasScroller?"15px":"0px"},children:[i,(0,d.jsx)(m,{...l,getContainer:y.current,onScroll:e=>{h().scrollLeft+=e}})]}):i};u.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const p=u},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(12702),s=n.n(r)},48731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s.a});var r=n(56637),s=n.n(r),i=n(22717),o=n.n(i);(0,r.preset)({base:o()([["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),i=n(33097),o=n.n(i),l=n(15797),a=n.n(l),c=n(1488),d=n.n(c),m=n(70579);const u=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{u(e,t,n)})):(t(Object.assign({},d()(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&&o()(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:i,debug:l}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=o()(e,"features",{debug:!1,profile:{}});return Object.assign({},p(t),{debug:n})})(),a="system"===n.type?n.id:"root",c=(0,r.useContext)(y),d=c?c+":"+e:a+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&l&&console.log(`[featureId] ${d},[state] ${h(d,{features:t,profileMap:i})}`,i.get(d))}),[t,i,l,d]),{isPass:!(e&&t&&t.length>0)||h(d,{features:t,profileMap:i}),currentId:d,feature:i.get(d)}},_=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:i}=f(t);return(0,m.jsx)(g,{value:i,children:"function"===typeof n?n({isPass:r,options:r?o()(s,"options"):o()(s,"rejectedOptions"),currentId:i}):r&&n})}},62716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(73884),s=n(83136),i=n.n(s);const o={"state-tag":"style_state-tag__Kx27z__RZWai","state-result-tag":"style_state-result-tag__CssDz__RZWai","state-skill-tag":"style_state-skill-tag__k0bQE__RZWai","event-tag":"style_event-tag__cg6SE__RZWai","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__RZWai","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__RZWai","state-tag-filterResult":"style_state-tag-filterResult__KTkot__RZWai","show-bg":"style_show-bg__OcL+R__RZWai","tag-text":"style_tag-text__JHCt+__RZWai","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__RZWai"};var l=n(55199),a=n(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},d=e=>{let{showBorder:t,text:n,type:s,showBackground:d,className:m,filterName:u,...p}=e;const h=(0,r.useMemo)((()=>{var e,t;return{color:(null===c||void 0===c||null===(e=c[s])||void 0===e?void 0:e.color)||c[s],borderColor:(null===c||void 0===c||null===(t=c[s])||void 0===t?void 0:t.borderColor)||c[s]}}),[s]);return(0,a.jsxs)(l.Space,{"data-testid":"components-core-state-tag",className:i()(o["state-tag-wrapper"],"filterResult"===s?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[u?(0,a.jsxs)("span",{className:o["state-tag-filter-name"],children:[u,":"]}):null,(0,a.jsx)(l.Tag,{color:h.color,...p,style:{background:d?h.color+"0F":"none",color:h.color,border:t?`1px solid ${h.borderColor}`:"none"},className:i()(o["state-tag"],m,"result"===s?o["state-result-tag"]:"","skill"===s?o["state-skill-tag"]:"",o[`state-tag-${s}`],d?o["show-bg"]:"",t?o["show-border"]:"",null!==p&&void 0!==p&&p.onClick?o["event-tag"]:""),children:(0,a.jsx)("span",{className:o["tag-text"],children:n})})]})};d.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const m=d},22814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TablePage:()=>Ne,default:()=>be});const r={table:"style_table__z7kfz__RZWai","is-resize":"style_is-resize__ut6RW__RZWai","is-moving":"style_is-moving__BJ9wR__RZWai","cell-resize-bar":"style_cell-resize-bar__-mlUF__RZWai","is-computed":"style_is-computed__B9rIF__RZWai","options-column":"style_options-column__vsPTr__RZWai","options-btn":"style_options-btn__U3uoy__RZWai",tooltip:"style_tooltip__vJlkv__RZWai","table-changer-setting":"style_table-changer-setting__HcrwR__RZWai","width-changer-sign":"style_width-changer-sign__Aflyl__RZWai","columns-control":"style_columns-control__5-5ZF__RZWai","columns-control-content":"style_columns-control-content__MoeUI__RZWai","columns-control-content-title":"style_columns-control-content-title__P5sXV__RZWai","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__RZWai","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__RZWai","columns-control-content-input":"style_columns-control-content-input__G6yKq__RZWai","columns-control-content-list":"style_columns-control-content-list__aXvTs__RZWai","columns-control-content-item":"style_columns-control-content-item__jbyyE__RZWai","is-drag":"style_is-drag__U68aw__RZWai","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__RZWai","sortable-drag":"style_sortable-drag__K5hWd__RZWai","sortable-ghost":"style_sortable-ghost__lKTd2__RZWai","columns-control-overlay":"style_columns-control-overlay__OxCIz__RZWai","sort-btn":"style_sort-btn__KvNLr__RZWai","sort-active-desc":"style_sort-active-desc__TIhMC__RZWai","sort-icon":"style_sort-icon__dB85I__RZWai","sort-active-asc":"style_sort-active-asc__RUBup__RZWai"};var s=n(55199),i=n(73884),o=n(83136),l=n.n(o),a=n(42787),c=n(76801),d=n(77964),m=n(96418),u=n.n(m);const p={"col-item":"columns_col-item__Ym1Ec__RZWai",tag:"columns_tag__bQZLG__RZWai",avatar:"columns_avatar__SLPI+__RZWai",hover:"columns_hover__oAwHg__RZWai",primary:"columns_primary__6KtaA__RZWai",loading:"columns_loading__gtBay__RZWai",options:"columns_options__WvDZD__RZWai"};var h=n(57469),y=n.n(h),g=n(64671),f=n(6617),_=n(70579);const v=e=>{let{className:t,list:n=[],width:i}=e;return(0,_.jsx)("div",{className:l()(t,r["options-column"]),style:{"--max-width":i+"px"},children:(0,_.jsx)(f.default,{list:n.filter((e=>!(null!==e&&void 0!==e&&e.hidden))).map((e=>{let{className:t,...n}=e;return Object.assign({},n,{className:l()(t,"btn-no-padding",r["options-btn"]),type:"link"})})),more:(0,_.jsx)(s.Button,{icon:(0,_.jsx)(g.default,{type:"icon-gengduo2"}),className:"btn-no-padding",type:"link"})})})};var x=n(62716),j=n(40438),b=n(48731),C=n(87558);const R=e=>{let{children:t,ellipsis:n}=e;return(0,_.jsx)(s.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{overlayClassName:r.tooltip,children:t}}),children:t})},w=e=>{let{type:t,item:n,isEmpty:r,emptyRender:s,hover:o,primary:a,children:c,width:d,style:m,onClick:u,colValue:h}=e;const[y,g]=(0,i.useState)(!1);return(0,_.jsx)("div",{style:Object.assign({},m,{"--max-width":d+"px"}),className:l()(p["col-item"],p[t],r?null:{[p.hover]:o,[p.primary]:a,[p.loading]:y}),onClick:e=>{"function"!==typeof u||r||y||(g(!0),Promise.resolve(u({item:n,colItem:h,event:e})).finally((()=>{g(!1)})))},children:r?s({type:t,item:n,hover:o,primary:a,children:c}):c})};w.defaultProps={emptyRender:()=>"-"};const E=w,S=(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,N=(0,C.createWithFetch)({loading:null})((e=>{let{data:t,children:n}=e;return n(t)})),O=e=>{let{api:t,expand:n,onExpand:r,ellipsis:i,hover:o,primary:l,emptyRender:a,isEmpty:c}=e;const d=Object.assign({},t);return n?(0,_.jsx)(N,{...d,children:e=>(0,_.jsx)(E,{type:"hide-info-expand",item:e,hover:o,primary:l,emptyRender:a,isEmpty:S(e),children:(0,_.jsx)(R,{ellipsis:i,children:"function"===typeof d.children?d.children(e):e})})}):(0,_.jsx)(E,{type:"hide-info",primary:!0,emptyRender:a,children:(0,_.jsx)(s.Button,{className:"btn-no-padding",type:"link",onClick:r,children:"\u67e5\u770b"})})};var W=n(1488),k=n.n(W);const Z=(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:i,isEmpty:o,...l}=t;return(0,_.jsx)(E,{...l,type:"other",item:e,hover:n,primary:r,emptyRender:i,isEmpty:o,children:(0,_.jsx)(R,{ellipsis:s,children:e})})},M={date:{render:(e,t)=>{let{hover:n,primary:r,isEmpty:s,emptyRender:i,...o}=t;return(0,_.jsx)(E,{...o,type:"date",item:e,primary:r,hover:n,emptyRender:i,isEmpty:s||!y()(e).isValid(),children:y()(e).format("YYYY-MM-DD")})},width:160,min:120,max:400},dateShort:{render:(e,t)=>{let{hover:n,primary:r,isEmpty:s,emptyRender:i,...o}=t;return(0,_.jsx)(E,{...o,type:"date-short",item:e,primary:r,hover:n,emptyRender:i,isEmpty:s||!y()(e).isValid(),children:y()(e).format("YYYY-MM")})},width:120,min:100,max:400},dateRange:{render:(e,t)=>{let{hover:n,primary:r,isEmpty:s,emptyRender:i,...o}=t;return(0,_.jsx)(E,{...o,type:"date-range",item:e,primary:r,hover:n,emptyRender:i,isEmpty:s,children:y()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD HH:mm")+"-"+y()(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:r,emptyRender:s,isEmpty:i,hideSecond:o,...l}=t;return(0,_.jsx)(E,{...l,item:e,primary:r,hover:n,emptyRender:s,isEmpty:i||!y()(e).isValid(),children:y()(e).format(o?"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:r,emptyRender:s,isEmpty:i,...o}=t;return(0,_.jsx)(E,{...o,type:"serial-number",item:e,primary:r,hover:n,emptyRender:s,isEmpty:i,children:e})},width:190,min:100,max:400},serialNumberShort:{render:(e,t)=>{let{hover:n,primary:r,emptyRender:s,isEmpty:i,...o}=t;return(0,_.jsx)(E,{...o,type:"serial-number-short",item:e,primary:r,hover:n,emptyRender:s,isEmpty:i,children:e})},width:120,min:100,max:400},user:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:i,isEmpty:o,...l}=t;return(0,_.jsx)(E,{...l,type:"user",item:e,primary:r,hover:n,emptyRender:i,isEmpty:o,children:(0,_.jsx)(R,{ellipsis:s,children:e})})},width:200,min:120,max:400},userName:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:i,isEmpty:o,...l}=t;return(0,_.jsx)(E,{...l,type:"user-name",item:e,primary:r,hover:n,emptyRender:i,isEmpty:o,children:(0,_.jsx)(R,{ellipsis:s,children:e})})},width:100,min:100,max:400},contacts:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:i,isEmpty:o,...l}=t;return(0,_.jsx)(E,{...l,type:"contacts",item:e,primary:r,hover:n,emptyRender:i,isEmpty:o,children:(0,_.jsx)(R,{ellipsis:s,children:e})})},width:240,min:160,max:400},tag:{render:(e,t)=>{let{emptyRender:n,isEmpty:r,...s}=t;return(0,_.jsx)(E,{...s,type:"tag",item:e,emptyRender:n,isEmpty:r,children:e&&(e.isEnum?(0,_.jsx)(b.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:r}=t;return(0,_.jsx)(x.default,{type:n,...Object.assign({},k()(e,["name","isEnum","moduleName","force"])),text:r})}}):(0,_.jsx)(x.default,{...Object.assign({},e)}))})},width:140,min:100,max:400},avatar:{render:(e,t)=>{let{emptyRender:n,isEmpty:r,...s}=t;return(0,_.jsx)(E,{...s,type:"avatar",item:e,emptyRender:n,isEmpty:r,children:(0,_.jsx)(j.default.Avatar,{...Object.assign({},e),size:32})})},width:80,min:64,max:200},singleRow:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:i,isEmpty:o,...l}=t;return(0,_.jsx)(E,{...l,type:"single-row",item:e,hover:n,primary:r,emptyRender:i,isEmpty:o,children:(0,_.jsx)(R,{ellipsis:s,children:e})})},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,_.jsx)(O,{api:e,...t}),width:120,min:80,max:400},mainInfo:{render:(e,t)=>{let{ellipsis:n,hover:r=!0,primary:s=!0,emptyRender:i,isEmpty:o,...l}=t;return(0,_.jsx)(E,{...l,type:"main-info",item:e,hover:r,primary:s,emptyRender:i,isEmpty:o,children:(0,_.jsx)(R,{ellipsis:n,children:e})})},width:300,min:160,max:500},description:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:i,isEmpty:o,...l}=t;return(0,_.jsx)(E,{...l,type:"description",item:e,hover:n,primary:r,emptyRender:i,isEmpty:o,children:(0,_.jsx)(R,{ellipsis:s,children:e})})},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,_.jsx)(v,{className:l()(p["col-item"],p.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:i,isEmpty:o,...l}=t;return(0,_.jsx)(E,{...l,type:"sensitiveInfo",item:e,hover:n,primary:r,emptyRender:i,isEmpty:o,children:(0,_.jsx)(R,{ellipsis:s,children:e})})},width:200,min:100,max:400},other:{render:Z,width:200,min:120,max:400},otherSmall:{render:Z,width:100,min:70,max:400},otherLarge:{render:Z,width:300,min:120,max:500}},P=M;var I=n(33097),T=n.n(I),z=n(42907),A=n.n(z),F=n(22717),L=n.n(F),D=n(22616),H=n.n(D),Y=n(63908),$=n(39835),B=n.n($),K=n(81014),q=n(43856),J=n(76441),G=n(69613),U=n.n(G),V=n(56434),X=n.n(V);const{Panel:Q}=s.Collapse,ee=e=>{let{close:t,onConfirm:n,columns:o,config:a}=e;const[c,d]=(0,i.useState)(a||{}),[m,u]=(0,i.useState)(""),{leftFixedColumns:p,rightFixedColumns:h,visibleColumns:y,hiddenColumns:f}=(0,i.useMemo)((()=>L()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},B()(o,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==T()(c,`${e.name}.visible`)&&e.hidden||!1===T()(c,`${e.name}.visible`)?"hiddenColumns":"visibleColumns"))),((e,t,n)=>{e[n]=t.sort(((e,t)=>T()(c,`${e.name}.rank`,0)-T()(c,`${t.name}.rank`,0)))}),{})),[o,c]),v=e=>(0,_.jsxs)(_.Fragment,{children:[e.titleText||e.title||"\u672a\u547d\u540d\u5217",e.groupHeader&&e.groupHeader.length>0?`(${e.groupHeader.map((e=>{let{title:t}=e;return t})).join("-")})`:""]});return(0,_.jsxs)("div",{className:r["columns-control-content"],children:[(0,_.jsx)("div",{className:r["columns-control-content-title"],children:(0,_.jsxs)(s.Row,{align:"middle",justify:"space-between",children:[(0,_.jsx)(s.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,_.jsx)(s.Col,{children:(0,_.jsx)(s.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,_.jsx)(K.default,{type:"text",icon:(0,_.jsx)(g.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,_.jsx)("div",{className:r["columns-control-content-scroller"],children:(0,_.jsxs)(s.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,_.jsx)(Q,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,_.jsxs)(s.List,{className:r["columns-control-content-list"],children:[p.map(((e,t)=>(0,_.jsx)(s.List.Item,{className:r["columns-control-content-item"],children:(0,_.jsx)(s.Checkbox,{checked:!0,disabled:!0,children:v(e)})},e.name||`left-${t}`))),(0,_.jsx)(J.ReactSortable,{list:y,filter:".ignore-elements",dragClass:r["sortable-drag"],ghostClass:r["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=X()(c),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach((e=>{U()(t,`${e.name}.visible`,!1)})),n.forEach(((e,n)=>{U()(t,`${e.name}.rank`,n+1)})),d(t)})({leftFixedColumns:p,visibleColumns:e,hiddenColumns:f,rightFixedColumns:h})},animation:300,delayOnTouchStart:!0,delay:2,children:y.map(((e,t)=>(0,_.jsxs)(s.List.Item,{className:l()(r["columns-control-content-item"],r["is-drag"]),children:[(0,_.jsx)(g.default,{type:"icon-paixu",className:r["columns-control-content-item-icon"]}),(0,_.jsx)(s.Checkbox,{checked:!0,disabled:e.fixed||p.length+y.length+h.length<=1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},c);n[e.name]=Object.assign({},n[e.name],{visible:!1}),d(n)},children:v(e)})]},e.name||`visible-${t}`)))}),h.map(((e,t)=>(0,_.jsx)(s.List.Item,{className:r["columns-control-content-item"],children:(0,_.jsx)(s.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.name||`right-${t}`)))]})},"active"),(0,_.jsx)(Q,{header:(0,_.jsxs)(s.Row,{wrap:!1,justify:"space-between",children:[(0,_.jsx)(s.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,_.jsx)(s.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,_.jsx)(q.SearchInput,{prefix:(0,_.jsx)(g.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{u(e)},className:r["columns-control-content-input"],size:"small"})})]}),children:(0,_.jsx)(s.List,{dataSource:f.filter((e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(m)>-1)),renderItem:e=>(0,_.jsx)(s.List.Item,{className:r["columns-control-content-item"],children:(0,_.jsx)(s.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},c);n[e.name]=Object.assign({},n[e.name],{visible:!0}),d(n)},children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.key)})},"un-active")]})}),(0,_.jsxs)(s.Row,{className:r["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,_.jsx)(s.Col,{children:(0,_.jsx)(s.Button,{size:"small",onClick:()=>{d(a||{}),t()},children:"\u53d6\u6d88"})}),(0,_.jsx)(s.Col,{children:(0,_.jsx)(K.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(c),t()},children:"\u786e\u5b9a"})})]})]})};var te=n(51941),ne=n(19853),re=n.n(ne),se=n(21844),ie=n.n(se),oe=n(25644);const le="COMPONENTS_CORE_TABLE_CONFIG",ae={getDataApi:e=>e?{loader:()=>T()(oe.A.getItem(le),e,{})}:{},setDataFunc:(e,t)=>{if(e)return oe.A.setItem(le,Object.assign({},oe.A.getItem(le),{[e]:t}))}},ce=e=>{let{title:t,columns:n,config:o,setConfig:l}=e;const[a,c]=(0,i.useState)(!1);return(0,_.jsxs)(s.Row,{wrap:!1,children:[(0,_.jsx)(s.Col,{flex:1,children:t}),(0,_.jsx)(s.Col,{children:(0,_.jsx)(s.Popover,{open:a,onOpenChange:c,trigger:"click",placement:"bottomLeft",overlayClassName:r["columns-control-overlay"],content:(0,_.jsx)(ee,{columns:n,config:o,close:()=>{c(!1)},onConfirm:e=>{l((t=>L()(e,((e,n,r)=>{e[r]=Object.assign({},t[r],H()(n,["visible","rank"]))}),{})))}}),children:(0,_.jsx)("span",{className:r["table-changer-setting"],children:(0,_.jsx)(g.default,{type:"icon-shezhi"})})})})]})},de=e=>{let{columns:t,name:n,controllerOpen:s,tableWidth:o,rowKey:a}=e;const[c,d]=(0,i.useState)(null),m=(0,i.useRef)(c);m.current=c;const p=(0,i.useRef)(null),h=(0,i.useRef)(null),[y,f]=(0,i.useState)({}),{tableServerApis:v}=(0,Y.usePreset)(),x=v||ae,j=null===x||void 0===x?void 0:x.getDataApi(n),b=(0,te.useDebouncedCallback)(((e,t)=>{null===x||void 0===x||x.setDataFunc(e,t)}),500),R=u()((e=>{(0,i.startTransition)((()=>{f((t=>{const r="function"===typeof e?e(t):e;return n&&s&&b(n,r),r}))}))})),{send:w}=(0,C.useFetch)(Object.assign({...Object.assign({},j),auto:!1,cache:`TABLE_CONFIG_${n}`,isLocal:!0,onRequestSuccess:e=>{f(Object.assign({},e))}})),E=u()((()=>{n&&s&&j&&w({force:!1})}));(0,i.useEffect)((()=>{E()}),[E]);const S=(0,i.useMemo)((()=>t.filter((e=>!(!1===T()(y,`${e.name}.visible`)||!0!==T()(y,`${e.name}.visible`)&&!0===e.hidden))).sort(((e,t)=>{const n=e=>T()(y,`${e.name}.rank`,0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}))),[t,y]),N=(0,i.useMemo)((()=>ie()(S,(e=>{let{type:t}=e;return"options"!==t}))),[S]),O=(0,i.useMemo)((()=>A()(S,(e=>{let{type:t,name:n}=e;return T()(y,`${n}.width`)||P[t].width}))),[S,y]),W=e=>{let{width:t,index:n}=e;return N===n?t+Math.max(o-O-2,0):t},k=u()(((e,t)=>(0,_.jsx)("span",{className:l()(r["cell-resize-bar"]),onMouseDown:n=>{p.current=Object.assign({},e,{index:t}),h.current=n.clientX,d(t)},children:(0,_.jsx)(g.default,{type:"icon-paixu"})}))),Z=u()((e=>{if(null===c)return;if(!p.current)return;const{name:t,width:n,min:r,max:s,index:i}=p.current,o=Math.min(Math.max(n+e,r),s);o<W({width:r,index:i})||R((e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:o})})))})),M=u()(((e,n)=>{const{name:s,width:i,min:o,max:c}=e;let d=e;n===S.length-1&&(d=Object.assign({},e,{className:"has-config-btn",title:(0,_.jsx)(ce,{title:null===e||void 0===e?void 0:e.title,columns:t,config:y,setConfig:R})}));const u=()=>({className:l()({[r["is-moving"]]:m.current===n})}),p=Math.min(Math.max(T()(y,`${s}.width`)||i,o),c),h=W({width:p,index:n});return Object.assign({},d,{onHeaderCell:u,onCell:u,width:h,shouldCellUpdate:(t,r)=>{const s="function"===typeof a?a(t):t[a],i="function"===typeof a?a(r):r[a];return null===m.current||m.current===n||"hideInfo"===e.type||!(s===i&&re()(t[e.name],r[e.name]))},title:(0,_.jsxs)(_.Fragment,{children:[d.title,!(h>p&&h>c)&&k(Object.assign({},d,{width:h}),n)]})})}));return(0,i.useEffect)((()=>{const e=()=>{d(null),h.current=null,p.current=null},t=e=>{null!==m.current&&null!==p.current&&(null!==h.current?Z(e.clientX-h.current):h.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)}}),[Z]),{visibleColumns:S,currentMoveColumnIndex:c,resizeBarRender:k,columnsConfig:y,totalWidth:O,computedColumnProps:M}};var me=n(79686),ue=n.n(me);const pe=e=>{let{rowKey:t,renderProps:n}=e;const[r,s]=(0,i.useState)(null),o=(0,i.useRef)(n);o.current=n;const l=u()(((e,n,i)=>{let{columnsConfig:l}=i;const{name:a,type:c,expandType:d,title:m,titleRender:u,fixed:p,emptyOf:h,emptyRender:y,groupHeader:g,sort:f,disableColItem:_,...v}=e,{render:x,width:j,min:b,max:C}=Object.assign({},P[c||"other"],"hideInfo"===c&&!ue()(r)&&H()(P[d||"other"],["width","min","max"])),R=x;return{name:a,title:"function"===typeof u?u(m):m,min:b,max:C,width:j,fixed:p,groupHeader:g,sort:f,type:c,render:n=>{const i="function"===typeof t?t(n):n[t],c=Object.assign({},e,"function"===typeof e.render?e.render({...o.current,name:a,target:n}):{}),d=e=>{const t=S(e,h);return R(e,{...v,name:a,width:T()(l,`${a}.width`)||j,min:b,max:C,isEmpty:t,emptyRender:y,hover:c.hover,colValue:Object.assign({},n),renderProps:o.current,primary:c.primary,ellipsis:c.ellipsis,expand:r===i,onExpand:()=>s(i)})},m=c.hasOwnProperty("valueOf")&&"function"===typeof c.valueOf?c.valueOf(n,Object.assign({},o.current,{name:a},_?{targetRender:d}:{})):T()(n,a);return _?m:d(m)}}}));return{expandInfo:r,computedColumnProps:l}},he=e=>(0,i.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),i=(t,n)=>{const[r,...o]=t;let l=n.find((e=>e.name===r.name));l||(l=Object.assign({startIndex:s},r,{children:[]}),n.push(l)),o.length>0?i(o,l.children):l.children.push(e)};i(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 ye=n(10986),ge=n.n(ye),fe=n(41740),_e=n.n(fe);const ve=e=>new Map((e||[]).map((e=>{let{name:t,sort:n}=e;return[t,n]}))),xe=e=>{const[t,n]=ge()(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),s=(0,i.useMemo)((()=>ve(t)),[t]),o=(0,i.useCallback)((e=>n((t=>{const n=e(ve(t));return Array.from(n).map((e=>{let[t,n]=e;return{name:t,sort:n}}))}))),[n]);return(0,i.useCallback)((e=>{let{single:t,name:n}=e;return(0,_.jsxs)("div",{className:l()(r["sort-btn"],{[r["sort-active-desc"]]:"DESC"===s.get(n),[r["sort-active-asc"]]:"ASC"===s.get(n)}),onClick:()=>{o((e=>{const r=e.get(n),s="DESC"===r?"ASC":"ASC"===r?null:"DESC";if(t)return new Map(s?[[n,s]]:[]);const i=_e()(e);return s?i.set(n,s):i.delete(n),i}))},children:[(0,_.jsx)(g.default,{type:"icon-triangle-up",className:r["sort-icon"]}),(0,_.jsx)(g.default,{type:"icon-triangle-down",className:r["sort-icon"]})]})}),[s,o])},je=e=>{let{columns:t,className:n,getScrollEl:o,sticky:c,stickyOffset:m,pagination:p,columnRenderProps:h,rowKey:y,dataSource:g,controllerOpen:f,name:v,summary:x,scroll:j,onTablePropsReady:b,...C}=e;const[R,w]=(0,i.useState)(0),[E,S]=(0,i.useState)(!0);(0,i.useEffect)((()=>{R&&setTimeout((()=>{S(!1)}),0)}),[R]);(0,i.useRef)(h).current=h;const N=(0,d.A)((e=>{w(e.clientWidth)}),{isDebounce:!0}),{expandInfo:O,computedColumnProps:W}=pe({rowKey:y,renderProps:h}),{columnsConfig:k,visibleColumns:Z,computedColumnProps:M,currentMoveColumnIndex:P,totalWidth:I}=de({columns:t,controllerOpen:f,name:v,computedColumnProps:W,tableWidth:R,rowKey:y}),T=xe(C),z=(0,i.useMemo)((()=>Z.map(((e,t)=>{let n=W(e,t,{rowKey:y,expandInfo:O,columnsConfig:k});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,_.jsxs)(_.Fragment,{children:[n.title,T({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),f&&(n=M(n,t,{tableWidth:R,columnsConfig:k})),n}))),[Z,R,k,O,y,f,W,M,T]),{columns:A,hasGroupHeader:F}=he(z),L=u()(b);return(0,i.useEffect)((()=>{L&&L({columns:t,groupColumns:A,dataSource:g,visibleColumns:Z})}),[L,A,g,t,Z]),(0,_.jsx)("div",{className:l()(n,r.table,{[r["is-resize"]]:null!==P,[r["is-computed"]]:E,[r["has-group-header"]]:F}),ref:N,style:{"--sticky-offset":m},children:!E&&(0,_.jsx)(a.A,{className:"table-page-scroller",scroller:{getContainer:o},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,_.jsx)(s.Table,{...C,sticky:!!c&&{getContainer:o},dataSource:g,rowKey:y,columns:A,scroll:Object.assign({},{x:Math.max(R,I)},j),pagination:p,summary:"function"===typeof x?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 x(Object.assign({},{pageData:e},{columns:A}),...n)}:null})})})};je.defaultProps={controllerOpen:!0,rowKey:"id",getScrollEl:c.h,columnRenderProps:{},sticky:!1,stickyOffset:"var(--nav-height)",pagination:!1};const be=je;var Ce=n(63361);const Re=e=>({"en-US":()=>n.e(399).then(n.bind(n,80399)),"zh-CN":()=>n.e(9809).then(n.bind(n,59809))}[e]());var we=n(47458);const Ee=e=>{let{id:t,columns:n,children:r}=e;return t?(0,_.jsx)(Ce.default,{id:t,children:e=>{let{options:t}=e;return r({columns:n.filter((e=>!e.name||(!Array.isArray(T()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name))))})}}):r({columns:n})},Se=(0,C.withFetch)((e=>{let{data:t,refresh:n,reload:s,requestParams:o,fetchProps:a,isComplete:d,setData:m,loadMore:p,send:h,dataFormat:y,className:g,featureId:f,columns:v,getColumns:x,pagination:j,columnRenderProps:b,summary:C,...R}=e;const w=u()(y),E=(0,i.useMemo)((()=>w(t)),[t,w]),S={dataSource:E.list,pagination:!!j.open&&{total:E.total,showTotal:e=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(we.FormattedMessage,{id:"Page_Total",moduleName:"Table",defaultMessage:"\u5171"}),(0,_.jsx)("span",{className:r.total_text,children:e}),(0,_.jsx)(we.FormattedMessage,{id:"Page_TotalCount",moduleName:"Table",defaultMessage:"\u6761"})]}),current:T()(o,[j.paramsType,j.currentName],1),pageSize:j.pageSize,onChange:j.onChange?j.onChange:(e,t)=>{e!==T()(o,[j.paramsType,j.currentName],1)?("refresh"===j.requestType?n:s)({[j.paramsType]:{[j.currentName]:e,[j.pageSizeName]:t}}):j.onShowSizeChange&&j.onShowSizeChange(e,t),(0,c.h)().scrollTop=0},size:j.size,showSizeChanger:j.showSizeChanger,showQuickJumper:j.showQuickJumper,pageSizeOptions:j.pageSizeOptions}};return(0,_.jsx)(we.IntlProvider,{importMessages:Re,moduleName:"Table",children:(0,_.jsx)(Ee,{id:f,columns:v,children:e=>{let{columns:r}=e;return(0,_.jsx)(be,{...Object.assign({},R,S),className:l()(g,"loading-container",{"is-loading":!d}),columns:r,columnRenderProps:{...b,requestParams:o,fetchProps:a,data:t},summary:"function"===typeof C?function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return C(Object.assign({},{data:t,fetchProps:a,requestParams:o,refresh:n,reload:s,loadMore:p,send:h,dataFormat:y,pagination:j},...r))}:null})}})})}));Se.defaultProps={pagination:{},columnRenderProps:{},sticky:!0,dataFormat:e=>({list:e.pageData,total:e.totalCount})};const Ne=(0,i.forwardRef)(((e,t)=>{let{pagination:n,...r}=e;n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",currentName:"currentPage",pageSizeName:"perPage",pageSize:20},n);const s=`${(r.name||"common").toUpperCase()}_TABLE_PAGE_SIZE`,[o,l]=(0,i.useState)(oe.A.getItem(s)||n.pageSize),a=r[n.paramsType],c=(0,i.useMemo)((()=>({[n.paramsType]:Object.assign({},a,{[n.pageSizeName]:o})})),[a,n.pageSizeName,n.paramsType,o]);return(0,_.jsx)(Se,{...r,...c,pagination:Object.assign({},n,{pageSize:o,onShowSizeChange:(e,t)=>{oe.A.setItem(s,t),l(t)}}),ref:t})}))},75816:e=>{e.exports=function(e,t,n,r){for(var s=e.length,i=n+(r?1:-1);r?i--:++i<s;)if(t(e[i],i,e))return i;return-1}},21844:(e,t,n)=>{var r=n(75816),s=n(9096),i=n(99140),o=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=i(n),c=n<0?o(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.cc83ee70.chunk.js.map
@@ -1,3 +0,0 @@
1
- /*! For license information please see 1554.f2847d2f.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[1554,4671],{64671:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r});s(73884);var n=s(83136),o=s.n(n),l=s(70579);const a=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),i=e=>{let{type:t,colorful:s,className:n,size:i,style:r,prefix:_,...c}=e;const p=((e,t,s)=>"icon-"===t||""===t?(s?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,_,s),d=o()(n,{iconfont:!s,"iconfont--color":s},p),f=Object.assign({},r,i?{fontSize:a(i)}:{});return s?(0,l.jsx)("svg",{...c,"data-testid":"components-core-iconfont",className:d,style:f,children:(0,l.jsx)("use",{xlinkHref:`#${t}`,style:{pointerEvents:"none"}})}):(0,l.jsx)("i",{...c,"data-testid":"components-core-iconfont",className:d,style:f})};i.defaultProps={colorful:!1,prefix:""};const r=i},21554:(e,t,s)=>{s.r(t),s.d(t,{TooltipFetch:()=>k,TooltipInfoLabel:()=>Z,default:()=>g});var n=s(55199),o=s(83136),l=s.n(o);const a="style_tooltip__zHGMI__RZWai",i="style_large__lvmsm__RZWai",r="style_small__nUt0r__RZWai",_="style_popup-content__-rKQN__RZWai",c="style_title__1EQPq__RZWai",p="style_important-info__qTSZY__RZWai",d="style_error__yTTq3__RZWai",f="style_warning__CMJxz__RZWai",y="style_success__AvJVx__RZWai",u="style_sub-title__uD8CH__RZWai",m="style_content__lzgUz__RZWai",x="style_alone__q6q82__RZWai",h="style_fetch-content__tEOEV__RZWai",v="style_fetch-loading__tN-WB__RZWai",j="style_title-info-icon__iY8Q+__RZWai";var R=s(70579);const N=e=>{let{overlayClassName:t,title:s,size:o,subtitle:h,content:v,importantInfo:j,importantInfoType:N,moreInfo:g,...W}=e;return(0,R.jsx)(n.Tooltip,{...W,overlayClassName:l()(t,a,{[r]:"small"===o,[i]:"large"===o}),title:(0,R.jsxs)(n.Space,{direction:"vertical",className:_,children:[s&&(0,R.jsx)("div",{className:c,children:s}),j&&(0,R.jsx)("div",{className:l()(p,{[y]:"success"===N,[f]:"warning"===N,[d]:"error"===N}),children:j}),h&&(0,R.jsx)("div",{className:u,children:h}),v&&(0,R.jsx)("div",{className:l()(m,{[x]:[s,h,j,g].every((e=>!e))}),children:v}),g&&(0,R.jsx)("div",{children:g})]})})};N.defaultProps={};const g=N;var W=s(64671);const Z=e=>{let{title:t,tooltipTitle:s}=e;return(0,R.jsxs)("div",{children:[t,s?(0,R.jsx)(g,{...s,children:(0,R.jsx)("span",{children:(0,R.jsx)(W.default,{type:"icon-xinxi-miaobian",className:j,size:14})})}):null]})};var O=s(73884),b=s(87558);const C=e=>{let{api:t,children:s,fetchContent:o,showLoading:a,loadingClassName:i,force:r,..._}=e;const[c,p]=(0,O.useState)(!1),d=(0,b.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:f,isLoading:y,data:u,send:m}=d;return(0,R.jsx)(g,{...Object.assign({},_,f?o(u,d):{}),open:c,onOpenChange:async e=>{!e||f&&!r||await m({type:"refresh"}),p(e)},children:(0,R.jsxs)("span",{className:h,children:[s,a&&y?(0,R.jsx)(n.Spin,{size:"small",className:l()(i,v)}):null]})})};C.defaultProps={showLoading:!0};const k=C},51153:(e,t,s)=>{var n=s(73884),o=Symbol.for("react.element"),l=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,s){var n,l={},_=null,c=null;for(n in void 0!==s&&(_=""+s),void 0!==t.key&&(_=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!r.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:o,type:e,key:_,ref:c,props:l,_owner:i.current}}t.Fragment=l,t.jsx=_,t.jsxs=_},70579:(e,t,s)=>{e.exports=s(51153)}}]);
3
- //# sourceMappingURL=1554.f2847d2f.chunk.js.map
@@ -1,3 +0,0 @@
1
- /*! For license information please see 2716.05e6f589.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2716],{62716:(t,e,r)=>{r.r(e),r.d(e,{default:()=>g});var a=r(73884),s=r(83136),l=r.n(s);const o={"state-tag":"style_state-tag__Kx27z__RZWai","state-result-tag":"style_state-result-tag__CssDz__RZWai","state-skill-tag":"style_state-skill-tag__k0bQE__RZWai","event-tag":"style_event-tag__cg6SE__RZWai","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__RZWai","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__RZWai","state-tag-filterResult":"style_state-tag-filterResult__KTkot__RZWai","show-bg":"style_show-bg__OcL+R__RZWai","tag-text":"style_tag-text__JHCt+__RZWai","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__RZWai"};var _=r(55199),n=r(70579);const i={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},c=t=>{let{showBorder:e,text:r,type:s,showBackground:c,className:g,filterName:u,...p}=t;const d=(0,a.useMemo)((()=>{var t,e;return{color:(null===i||void 0===i||null===(t=i[s])||void 0===t?void 0:t.color)||i[s],borderColor:(null===i||void 0===i||null===(e=i[s])||void 0===e?void 0:e.borderColor)||i[s]}}),[s]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:l()(o["state-tag-wrapper"],"filterResult"===s?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[u?(0,n.jsxs)("span",{className:o["state-tag-filter-name"],children:[u,":"]}):null,(0,n.jsx)(_.Tag,{color:d.color,...p,style:{background:c?d.color+"0F":"none",color:d.color,border:e?`1px solid ${d.borderColor}`:"none"},className:l()(o["state-tag"],g,"result"===s?o["state-result-tag"]:"","skill"===s?o["state-skill-tag"]:"",o[`state-tag-${s}`],c?o["show-bg"]:"",e?o["show-border"]:"",null!==p&&void 0!==p&&p.onClick?o["event-tag"]:""),children:(0,n.jsx)("span",{className:o["tag-text"],children:r})})]})};c.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const g=c},51153:(t,e,r)=>{var a=r(73884),s=Symbol.for("react.element"),l=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,_=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function i(t,e,r){var a,l={},i=null,c=null;for(a in void 0!==r&&(i=""+r),void 0!==e.key&&(i=""+e.key),void 0!==e.ref&&(c=e.ref),e)o.call(e,a)&&!n.hasOwnProperty(a)&&(l[a]=e[a]);if(t&&t.defaultProps)for(a in e=t.defaultProps)void 0===l[a]&&(l[a]=e[a]);return{$$typeof:s,type:t,key:i,ref:c,props:l,_owner:_.current}}e.Fragment=l,e.jsx=i,e.jsxs=i},70579:(t,e,r)=>{t.exports=r(51153)}}]);
3
- //# sourceMappingURL=2716.05e6f589.chunk.js.map