@kne-components/components-core 0.3.29 → 0.3.30

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 (132) hide show
  1. package/build/asset-manifest.json +86 -86
  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/1248.f3741a1c.chunk.css +2 -0
  6. package/build/static/css/{1248.9dd346e2.chunk.css.map → 1248.f3741a1c.chunk.css.map} +1 -1
  7. package/build/static/css/1742.2890719d.chunk.css +2 -0
  8. package/build/static/css/{1742.d0808083.chunk.css.map → 1742.2890719d.chunk.css.map} +1 -1
  9. package/build/static/css/1996.1294349d.chunk.css +2 -0
  10. package/build/static/css/{1996.0c1d2eb8.chunk.css.map → 1996.1294349d.chunk.css.map} +1 -1
  11. package/build/static/css/206.5ce602fe.chunk.css +2 -0
  12. package/build/static/css/206.5ce602fe.chunk.css.map +1 -0
  13. package/build/static/css/2307.0f93d852.chunk.css +2 -0
  14. package/build/static/css/2307.0f93d852.chunk.css.map +1 -0
  15. package/build/static/css/254.03e84f1f.chunk.css +2 -0
  16. package/build/static/css/254.03e84f1f.chunk.css.map +1 -0
  17. package/build/static/css/2716.169c3e50.chunk.css +2 -0
  18. package/build/static/css/{2716.00218291.chunk.css.map → 2716.169c3e50.chunk.css.map} +1 -1
  19. package/build/static/css/3205.ea527dce.chunk.css +2 -0
  20. package/build/static/css/3205.ea527dce.chunk.css.map +1 -0
  21. package/build/static/css/3771.f1072496.chunk.css +2 -0
  22. package/build/static/css/3771.f1072496.chunk.css.map +1 -0
  23. package/build/static/css/{3790.1c4a984b.chunk.css → 3790.843f659f.chunk.css} +2 -2
  24. package/build/static/css/{3790.1c4a984b.chunk.css.map → 3790.843f659f.chunk.css.map} +1 -1
  25. package/build/static/css/{4277.d46e46e1.chunk.css → 4277.e74719a6.chunk.css} +2 -2
  26. package/build/static/css/{4277.d46e46e1.chunk.css.map → 4277.e74719a6.chunk.css.map} +1 -1
  27. package/build/static/css/5195.4655408d.chunk.css +2 -0
  28. package/build/static/css/5195.4655408d.chunk.css.map +1 -0
  29. package/build/static/css/6763.39575afd.chunk.css +2 -0
  30. package/build/static/css/{6763.306109ad.chunk.css.map → 6763.39575afd.chunk.css.map} +1 -1
  31. package/build/static/css/6980.ee22f96e.chunk.css +12 -0
  32. package/build/static/css/{6980.de95ee58.chunk.css.map → 6980.ee22f96e.chunk.css.map} +1 -1
  33. package/build/static/css/7227.61995253.chunk.css +2 -0
  34. package/build/static/css/{7227.819eb13b.chunk.css.map → 7227.61995253.chunk.css.map} +1 -1
  35. package/build/static/css/760.1b7e1754.chunk.css +2 -0
  36. package/build/static/css/{760.4294a2cf.chunk.css.map → 760.1b7e1754.chunk.css.map} +1 -1
  37. package/build/static/css/8593.f1adc206.chunk.css +2 -0
  38. package/build/static/css/{8593.bf6ed3b3.chunk.css.map → 8593.f1adc206.chunk.css.map} +1 -1
  39. package/build/static/css/9058.ea1d451f.chunk.css +2 -0
  40. package/build/static/css/9058.ea1d451f.chunk.css.map +1 -0
  41. package/build/static/css/9556.6400264e.chunk.css +2 -0
  42. package/build/static/css/{9556.7d7daaf2.chunk.css.map → 9556.6400264e.chunk.css.map} +1 -1
  43. package/build/static/css/9772.e6cc6107.chunk.css +2 -0
  44. package/build/static/css/{9772.5ecc8053.chunk.css.map → 9772.e6cc6107.chunk.css.map} +1 -1
  45. package/build/static/js/{1248.410139ce.chunk.js → 1248.50c5dac6.chunk.js} +3 -3
  46. package/build/static/js/{1248.410139ce.chunk.js.map → 1248.50c5dac6.chunk.js.map} +1 -1
  47. package/build/static/js/1742.0054acdc.chunk.js +2 -0
  48. package/build/static/js/{1742.4fc659cf.chunk.js.map → 1742.0054acdc.chunk.js.map} +1 -1
  49. package/build/static/js/1996.19f216e3.chunk.js +2 -0
  50. package/build/static/js/{1996.12ba12b1.chunk.js.map → 1996.19f216e3.chunk.js.map} +1 -1
  51. package/build/static/js/206.1803bf3e.chunk.js +2 -0
  52. package/build/static/js/{206.01785e03.chunk.js.map → 206.1803bf3e.chunk.js.map} +1 -1
  53. package/build/static/js/{254.62f7eb14.chunk.js → 254.4582f31e.chunk.js} +2 -2
  54. package/build/static/js/{254.62f7eb14.chunk.js.map → 254.4582f31e.chunk.js.map} +1 -1
  55. package/build/static/js/{2716.621d13f4.chunk.js → 2716.fe7c2c81.chunk.js} +3 -3
  56. package/build/static/js/{2716.621d13f4.chunk.js.map → 2716.fe7c2c81.chunk.js.map} +1 -1
  57. package/build/static/js/3205.21112f67.chunk.js +2 -0
  58. package/build/static/js/{3205.9a61b7b6.chunk.js.map → 3205.21112f67.chunk.js.map} +1 -1
  59. package/build/static/js/3771.f5cb867c.chunk.js +2 -0
  60. package/build/static/js/3771.f5cb867c.chunk.js.map +1 -0
  61. package/build/static/js/{3790.ce9c4e6c.chunk.js → 3790.618d7d15.chunk.js} +2 -2
  62. package/build/static/js/{3790.ce9c4e6c.chunk.js.map → 3790.618d7d15.chunk.js.map} +1 -1
  63. package/build/static/js/3856.f3775290.chunk.js +2 -0
  64. package/build/static/js/3856.f3775290.chunk.js.map +1 -0
  65. package/build/static/js/4277.d9ad7cb7.chunk.js +2 -0
  66. package/build/static/js/{4277.60d99f45.chunk.js.map → 4277.d9ad7cb7.chunk.js.map} +1 -1
  67. package/build/static/js/4474.480c5e83.chunk.js +2 -0
  68. package/build/static/js/{4474.d20c510d.chunk.js.map → 4474.480c5e83.chunk.js.map} +1 -1
  69. package/build/static/js/{5195.fd2ee0ee.chunk.js → 5195.2ecad2b0.chunk.js} +2 -2
  70. package/build/static/js/{5195.fd2ee0ee.chunk.js.map → 5195.2ecad2b0.chunk.js.map} +1 -1
  71. package/build/static/js/6763.883463e9.chunk.js +2 -0
  72. package/build/static/js/{6763.327683ec.chunk.js.map → 6763.883463e9.chunk.js.map} +1 -1
  73. package/build/static/js/{6980.aef1b013.chunk.js → 6980.286d72ad.chunk.js} +2 -2
  74. package/build/static/js/{6980.aef1b013.chunk.js.map → 6980.286d72ad.chunk.js.map} +1 -1
  75. package/build/static/js/{7227.1713c872.chunk.js → 7227.1b60558e.chunk.js} +3 -3
  76. package/build/static/js/{7227.1713c872.chunk.js.map → 7227.1b60558e.chunk.js.map} +1 -1
  77. package/build/static/js/760.b2f88cfd.chunk.js +2 -0
  78. package/build/static/js/{760.0ce1056b.chunk.js.map → 760.b2f88cfd.chunk.js.map} +1 -1
  79. package/build/static/js/8593.bac17b18.chunk.js +2 -0
  80. package/build/static/js/{8593.786b467a.chunk.js.map → 8593.bac17b18.chunk.js.map} +1 -1
  81. package/build/static/js/{9058.49deb6ca.chunk.js → 9058.f7246a1c.chunk.js} +2 -2
  82. package/build/static/js/{9058.49deb6ca.chunk.js.map → 9058.f7246a1c.chunk.js.map} +1 -1
  83. package/build/static/js/9556.b2d5d2b2.chunk.js +3 -0
  84. package/build/static/js/{9556.2df08637.chunk.js.map → 9556.b2d5d2b2.chunk.js.map} +1 -1
  85. package/build/static/js/{9772.b29a2d16.chunk.js → 9772.ad5d8381.chunk.js} +2 -2
  86. package/build/static/js/{9772.b29a2d16.chunk.js.map → 9772.ad5d8381.chunk.js.map} +1 -1
  87. package/build/static/js/{main.3e34b1ab.js → main.4772934b.js} +2 -2
  88. package/build/static/js/{main.3e34b1ab.js.map → main.4772934b.js.map} +1 -1
  89. package/package.json +1 -1
  90. package/build/static/css/1248.9dd346e2.chunk.css +0 -2
  91. package/build/static/css/1742.d0808083.chunk.css +0 -2
  92. package/build/static/css/1996.0c1d2eb8.chunk.css +0 -2
  93. package/build/static/css/206.255d4d1d.chunk.css +0 -2
  94. package/build/static/css/206.255d4d1d.chunk.css.map +0 -1
  95. package/build/static/css/2307.0c628548.chunk.css +0 -2
  96. package/build/static/css/2307.0c628548.chunk.css.map +0 -1
  97. package/build/static/css/254.a7ba331a.chunk.css +0 -2
  98. package/build/static/css/254.a7ba331a.chunk.css.map +0 -1
  99. package/build/static/css/2716.00218291.chunk.css +0 -2
  100. package/build/static/css/3205.fa70c403.chunk.css +0 -2
  101. package/build/static/css/3205.fa70c403.chunk.css.map +0 -1
  102. package/build/static/css/3771.b63ba260.chunk.css +0 -2
  103. package/build/static/css/3771.b63ba260.chunk.css.map +0 -1
  104. package/build/static/css/5195.6158fffb.chunk.css +0 -2
  105. package/build/static/css/5195.6158fffb.chunk.css.map +0 -1
  106. package/build/static/css/6763.306109ad.chunk.css +0 -2
  107. package/build/static/css/6980.de95ee58.chunk.css +0 -12
  108. package/build/static/css/7227.819eb13b.chunk.css +0 -2
  109. package/build/static/css/760.4294a2cf.chunk.css +0 -2
  110. package/build/static/css/8593.bf6ed3b3.chunk.css +0 -2
  111. package/build/static/css/9058.525ece58.chunk.css +0 -2
  112. package/build/static/css/9058.525ece58.chunk.css.map +0 -1
  113. package/build/static/css/9556.7d7daaf2.chunk.css +0 -2
  114. package/build/static/css/9772.5ecc8053.chunk.css +0 -2
  115. package/build/static/js/1742.4fc659cf.chunk.js +0 -2
  116. package/build/static/js/1996.12ba12b1.chunk.js +0 -2
  117. package/build/static/js/206.01785e03.chunk.js +0 -2
  118. package/build/static/js/3205.9a61b7b6.chunk.js +0 -2
  119. package/build/static/js/3771.a4718b4c.chunk.js +0 -2
  120. package/build/static/js/3771.a4718b4c.chunk.js.map +0 -1
  121. package/build/static/js/3856.f1095570.chunk.js +0 -2
  122. package/build/static/js/3856.f1095570.chunk.js.map +0 -1
  123. package/build/static/js/4277.60d99f45.chunk.js +0 -2
  124. package/build/static/js/4474.d20c510d.chunk.js +0 -2
  125. package/build/static/js/6763.327683ec.chunk.js +0 -2
  126. package/build/static/js/760.0ce1056b.chunk.js +0 -2
  127. package/build/static/js/8593.786b467a.chunk.js +0 -2
  128. package/build/static/js/9556.2df08637.chunk.js +0 -3
  129. /package/build/static/js/{1248.410139ce.chunk.js.LICENSE.txt → 1248.50c5dac6.chunk.js.LICENSE.txt} +0 -0
  130. /package/build/static/js/{2716.621d13f4.chunk.js.LICENSE.txt → 2716.fe7c2c81.chunk.js.LICENSE.txt} +0 -0
  131. /package/build/static/js/{7227.1713c872.chunk.js.LICENSE.txt → 7227.1b60558e.chunk.js.LICENSE.txt} +0 -0
  132. /package/build/static/js/{9556.2df08637.chunk.js.LICENSE.txt → 9556.b2d5d2b2.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2307,2908,3205],{5099:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TablePage:()=>nt,default:()=>Ue});var r=n(89379),s=n(53986);const i={table:"style_table__z7kfz__hiFBw","is-resize":"style_is-resize__ut6RW__hiFBw","is-moving":"style_is-moving__BJ9wR__hiFBw","cell-resize-bar":"style_cell-resize-bar__-mlUF__hiFBw","is-computed":"style_is-computed__B9rIF__hiFBw","options-column":"style_options-column__vsPTr__hiFBw","options-btn":"style_options-btn__U3uoy__hiFBw",tooltip:"style_tooltip__vJlkv__hiFBw","table-changer-setting":"style_table-changer-setting__HcrwR__hiFBw","width-changer-sign":"style_width-changer-sign__Aflyl__hiFBw","columns-control":"style_columns-control__5-5ZF__hiFBw","columns-control-content":"style_columns-control-content__MoeUI__hiFBw","columns-control-content-title":"style_columns-control-content-title__P5sXV__hiFBw","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__hiFBw","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__hiFBw","columns-control-content-input":"style_columns-control-content-input__G6yKq__hiFBw","columns-control-content-list":"style_columns-control-content-list__aXvTs__hiFBw","columns-control-content-item":"style_columns-control-content-item__jbyyE__hiFBw","is-drag":"style_is-drag__U68aw__hiFBw","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__hiFBw","sortable-drag":"style_sortable-drag__K5hWd__hiFBw","sortable-ghost":"style_sortable-ghost__lKTd2__hiFBw","columns-control-overlay":"style_columns-control-overlay__OxCIz__hiFBw","sort-btn":"style_sort-btn__KvNLr__hiFBw","sort-active-desc":"style_sort-active-desc__TIhMC__hiFBw","sort-icon":"style_sort-icon__dB85I__hiFBw","sort-active-asc":"style_sort-active-asc__RUBup__hiFBw"};var o=n(55199),l=n(73884),a=n(83136),c=n.n(a),m=n(10486),d=n(96418),u=n.n(d),p=n(76801);const h={scroller:"style_scroller__EfuqR__hiFBw","scroller-inner":"style_scroller-inner__NJSE0__hiFBw","is-moving":"style_is-moving__jGuy0__hiFBw"};var y=n(70579);const g=["onScroll","getContainer"],f=e=>{let{onScroll:t,getContainer:n}=e,r=(0,s.A)(e,g);const i=(0,l.useRef)(0),[o,a]=(0,l.useState)(!1),d=(0,l.useRef)(o);d.current=o;const u=(0,l.useRef)(t);u.current=t;const p=(0,l.useRef)(1);return p.current=r.width/r.innerWidth,(0,l.useEffect)(()=>{const e=e=>{d.current&&u.current(p.current*(e.clientX-i.current)),i.current=e.clientX},t=()=>{a(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}},[]),(0,m.createPortal)(r.hasScroller?(0,y.jsx)("div",{className:h.scroller,style:{left:r.left,width:r.width,height:15},children:(0,y.jsx)("div",{className:c()(h["scroller-inner"],{[h["is-moving"]]:o}),style:{width:r.innerWidth,left:r.innerLeft},onMouseDown:e=>{e.preventDefault(),i.current=e.clientX,a(!0)}})}):null,n()||document.body)},_=e=>{let{className:t,scroller:n=!0,getScrollTarget:s=p.h,children:i}=e;return function(){const[e,o]=(0,l.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),a=(0,l.useRef)(null),m=u()(()=>a.current&&s(a.current)),d=(0,l.useRef)();return d.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,l.useEffect)(()=>{const e=d.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:r,top:s,height:i}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,a=r*t.clientWidth/t.scrollWidth-6,c=t.scrollLeft*t.clientWidth/t.scrollWidth+2,m=e.getBoundingClientRect();o(o=>Object.assign({},o,{left:n,width:r,innerLeft:c,innerWidth:a,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+i-e.offsetHeight>0&&s<e.offsetHeight:s<m.top+m.height&&s+i>m.top+m.height)}))},r=new ResizeObserver(n);return new ResizeObserver(()=>{t=m(),t&&(r.disconnect(),n(),Array.from(t.children).forEach(e=>{r.observe(e)}),t.addEventListener("scroll",n))}).observe(a.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}},[m]),n?(0,y.jsxs)("div",{className:c()(h["scroller-outer"],t),ref:a,style:{"--scroller-bar-height":null!==e&&void 0!==e&&e.hasScroller?"15px":"0px"},children:[i,(0,y.jsx)(f,(0,r.A)((0,r.A)({},e),{},{getContainer:d.current,onScroll:e=>{m().scrollLeft+=e}}))]}):i}()};var v=n(77964);const x={"col-item":"columns_col-item__Ym1Ec__hiFBw",tag:"columns_tag__bQZLG__hiFBw",avatar:"columns_avatar__SLPI+__hiFBw",hover:"columns_hover__oAwHg__hiFBw",primary:"columns_primary__6KtaA__hiFBw",loading:"columns_loading__gtBay__hiFBw",options:"columns_options__WvDZD__hiFBw"};var j=n(57469),w=n.n(j),b=n(87558),C=n.n(b),A=n(64671),E=n(6617);const R=["className"],S=["list"],F=e=>{let{className:t,list:n=[],children:r,width:l}=e;const a={className:c()(t,"btn-no-padding",i["options-btn"]),type:"link"},m=n.filter(e=>!(null!==e&&void 0!==e&&e.hidden)).map(e=>{let{className:t}=e,n=(0,s.A)(e,R);return Object.assign({},n,a)}),d=(0,y.jsx)(o.Button,{icon:(0,y.jsx)(A.default,{type:"icon-gengduo2"}),className:"btn-no-padding",type:"link"});return(0,y.jsxs)("div",{className:c()(t,i["options-column"]),style:{"--max-width":l+"px"},children:["function"===typeof r?r({list:m,more:d,buttonProps:a}):r,n&&n.length>0&&(0,y.jsx)(E.default,{list:m,more:d})]})},N=e=>{let{list:t}=e,n=(0,s.A)(e,S);return"function"===typeof t?(0,y.jsx)(C(),{loader:t,render:e=>{let{data:t}=e;return(0,y.jsx)(F,(0,r.A)((0,r.A)({},n),{},{list:t}))}}):Array.isArray(t)?(0,y.jsx)(F,(0,r.A)((0,r.A)({},n),{},{list:t})):(0,y.jsx)(F,(0,r.A)({},Object.assign({},n,t)))};var O=n(62716),B=n(40438),k=n(48731);const M=e=>{let{children:t,ellipsis:n}=e;return(0,y.jsx)(o.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{rootClassName:i.tooltip,children:t}},"object"===typeof n?n:{}),children:t})},I=e=>{let{type:t,item:n,isEmpty:r,emptyRender:s=()=>"-",hover:i,primary:o,children:a,width:m,style:d,onClick:u,colValue:p}=e;const[h,g]=(0,l.useState)(!1);return(0,y.jsx)("div",{style:Object.assign({},d,{"--max-width":m+"px"}),className:c()(x["col-item"],x[t],r?null:{[x.hover]:i,[x.primary]:o,[x.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:i,primary:o,children:a}):a})},P=(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,T=(0,b.createWithFetch)({loading:null})(e=>{let{data:t,children:n}=e;return n(t)}),z=e=>{let{api:t,expand:n,onExpand:s,ellipsis:i,hover:l,primary:a,emptyRender:c,isEmpty:m}=e;const d=Object.assign({},t);return n?(0,y.jsx)(T,(0,r.A)((0,r.A)({},d),{},{children:e=>(0,y.jsx)(I,{type:"hide-info-expand",item:e,hover:l,primary:a,emptyRender:c,isEmpty:P(e),children:(0,y.jsx)(M,{ellipsis:i,children:"function"===typeof d.children?d.children(e):e})})})):(0,y.jsx)(I,{type:"hide-info",primary:!0,emptyRender:c,children:(0,y.jsx)(o.Button,{className:"btn-no-padding",type:"link",onClick:s,children:"\u67e5\u770b"})})};var L=n(1488),D=n.n(L);const H=["hover","primary","isEmpty","emptyRender"],Y=["hover","primary","isEmpty","emptyRender"],W=["hover","primary","isEmpty","emptyRender"],K=["hover","primary","emptyRender","isEmpty","hideSecond"],q=["hover","primary","emptyRender","isEmpty"],J=["hover","primary","emptyRender","isEmpty"],G=["hover","primary","ellipsis","emptyRender","isEmpty"],U=["hover","primary","ellipsis","emptyRender","isEmpty"],V=["hover","primary","ellipsis","emptyRender","isEmpty"],X=["emptyRender","isEmpty"],Q=["emptyRender","isEmpty"],Z=["hover","primary","ellipsis","emptyRender","isEmpty"],$=["ellipsis","hover","primary","emptyRender","isEmpty"],ee=["hover","primary","ellipsis","emptyRender","isEmpty"],te=["hover","primary","ellipsis","emptyRender","isEmpty"],ne=["hover","primary","ellipsis","emptyRender","isEmpty"],re=(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,te);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},c),{},{type:"other",item:e,hover:n,primary:i,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},se={date:{render:(e,t)=>{let{hover:n,primary:i,isEmpty:o,emptyRender:l}=t,a=(0,s.A)(t,H);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},a),{},{type:"date",item:e,primary:i,hover:n,emptyRender:l,isEmpty:o||!w()(e).isValid(),children:w()(e).format("YYYY-MM-DD")}))},width:160,min:120,max:400},dateShort:{render:(e,t)=>{let{hover:n,primary:i,isEmpty:o,emptyRender:l}=t,a=(0,s.A)(t,Y);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},a),{},{type:"date-short",item:e,primary:i,hover:n,emptyRender:l,isEmpty:o||!w()(e).isValid(),children:w()(e).format("YYYY-MM")}))},width:120,min:100,max:400},dateRange:{render:(e,t)=>{let{hover:n,primary:i,isEmpty:o,emptyRender:l}=t,a=(0,s.A)(t,W);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},a),{},{type:"date-range",item:e,primary:i,hover:n,emptyRender:l,isEmpty:o,children:w()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD HH:mm")+"-"+w()(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:i,emptyRender:o,isEmpty:l,hideSecond:a}=t,c=(0,s.A)(t,K);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},c),{},{item:e,primary:i,hover:n,emptyRender:o,isEmpty:l||!w()(e).isValid(),children:w()(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:i,emptyRender:o,isEmpty:l}=t,a=(0,s.A)(t,q);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},a),{},{type:"serial-number",item:e,primary:i,hover:n,emptyRender:o,isEmpty:l,children:e}))},width:190,min:100,max:400},serialNumberShort:{render:(e,t)=>{let{hover:n,primary:i,emptyRender:o,isEmpty:l}=t,a=(0,s.A)(t,J);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},a),{},{type:"serial-number-short",item:e,primary:i,hover:n,emptyRender:o,isEmpty:l,children:e}))},width:120,min:100,max:400},user:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,G);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},c),{},{type:"user",item:e,primary:i,hover:n,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:200,min:120,max:400},userName:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,U);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},c),{},{type:"user-name",item:e,primary:i,hover:n,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:100,min:100,max:400},contacts:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,V);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},c),{},{type:"contacts",item:e,primary:i,hover:n,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:240,min:160,max:400},tag:{render:(e,t)=>{let{emptyRender:n,isEmpty:i}=t,o=(0,s.A)(t,X);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},o),{},{type:"tag",item:e,emptyRender:n,isEmpty:i,children:e&&(e.isEnum?(0,y.jsx)(k.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:s}=t;return(0,y.jsx)(O.default,(0,r.A)((0,r.A)({type:n},Object.assign({},D()(e,["name","isEnum","moduleName","force"]))),{},{text:s}))}}):(0,y.jsx)(O.default,(0,r.A)({},Object.assign({},e))))}))},width:140,min:100,max:400},avatar:{render:(e,t)=>{let{emptyRender:n,isEmpty:i}=t,o=(0,s.A)(t,Q);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},o),{},{type:"avatar",item:e,emptyRender:n,isEmpty:i,children:(0,y.jsx)(B.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:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,Z);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},c),{},{type:"single-row",item:e,hover:n,primary:i,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,y.jsx)(z,(0,r.A)({api:e},t)),width:120,min:80,max:400},mainInfo:{render:(e,t)=>{let{ellipsis:n,hover:i=!0,primary:o=!0,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,$);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},c),{},{type:"main-info",item:e,hover:i,primary:o,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:n,children:e})}))},width:300,min:160,max:500},description:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,ee);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},c),{},{type:"description",item:e,hover:n,primary:i,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,y.jsx)(N,{className:c()(x["col-item"],x.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,ne);return(0,y.jsx)(I,(0,r.A)((0,r.A)({},c),{},{type:"sensitiveInfo",item:e,hover:n,primary:i,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:200,min:100,max:400},other:{render:re,width:200,min:120,max:400},otherSmall:{render:re,width:100,min:70,max:400},otherLarge:{render:re,width:300,min:120,max:500}},ie=se;var oe=n(33097),le=n.n(oe),ae=n(42907),ce=n.n(ae),me=n(22717),de=n.n(me),ue=n(22616),pe=n.n(ue),he=n(63743),ye=n(39835),ge=n.n(ye),fe=n(81014),_e=n(43856),ve=n(76441),xe=n(69613),je=n.n(xe),we=n(56434),be=n.n(we);const{Panel:Ce}=o.Collapse,Ae=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:g,hiddenColumns:f}=(0,l.useMemo)(()=>de()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},ge()(r,e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==le()(a,"".concat(e.name,".visible"))&&e.hidden||!1===le()(a,"".concat(e.name,".visible"))?"hiddenColumns":"visibleColumns")),(e,t,n)=>{e[n]=t.sort((e,t)=>le()(a,"".concat(e.name,".rank"),0)-le()(a,"".concat(t.name,".rank"),0))},{}),[r,a]),_=e=>(0,y.jsxs)(y.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,y.jsxs)("div",{className:i["columns-control-content"],children:[(0,y.jsx)("div",{className:i["columns-control-content-title"],children:(0,y.jsxs)(o.Row,{align:"middle",justify:"space-between",children:[(0,y.jsx)(o.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,y.jsx)(o.Col,{children:(0,y.jsx)(o.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,y.jsx)(fe.default,{type:"text",icon:(0,y.jsx)(A.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,y.jsx)("div",{className:i["columns-control-content-scroller"],children:(0,y.jsxs)(o.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,y.jsx)(Ce,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,y.jsxs)(o.List,{className:i["columns-control-content-list"],children:[p.map((e,t)=>(0,y.jsx)(o.List.Item,{className:i["columns-control-content-item"],children:(0,y.jsx)(o.Checkbox,{checked:!0,disabled:!0,children:_(e)})},e.name||"left-".concat(t))),(0,y.jsx)(ve.ReactSortable,{list:g,filter:".ignore-elements",dragClass:i["sortable-drag"],ghostClass:i["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=be()(a),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach(e=>{je()(t,"".concat(e.name,".visible"),!1)}),n.forEach((e,n)=>{je()(t,"".concat(e.name,".rank"),n+1)}),m(t)})({leftFixedColumns:p,visibleColumns:e,hiddenColumns:f,rightFixedColumns:h})},animation:300,delayOnTouchStart:!0,delay:2,children:g.map((e,t)=>(0,y.jsxs)(o.List.Item,{className:c()(i["columns-control-content-item"],i["is-drag"]),children:[(0,y.jsx)(A.default,{type:"icon-paixu",className:i["columns-control-content-item-icon"]}),(0,y.jsx)(o.Checkbox,{checked:!0,disabled:e.fixed||p.length+g.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:_(e)})]},e.name||"visible-".concat(t)))}),h.map((e,t)=>(0,y.jsx)(o.List.Item,{className:i["columns-control-content-item"],children:(0,y.jsx)(o.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.name||"right-".concat(t)))]})},"active"),(0,y.jsx)(Ce,{header:(0,y.jsxs)(o.Row,{wrap:!1,justify:"space-between",children:[(0,y.jsx)(o.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,y.jsx)(o.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,y.jsx)(_e.SearchInput,{prefix:(0,y.jsx)(A.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{u(e)},className:i["columns-control-content-input"],size:"small"})})]}),children:(0,y.jsx)(o.List,{dataSource:f.filter(e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(d)>-1),renderItem:e=>(0,y.jsx)(o.List.Item,{className:i["columns-control-content-item"],children:(0,y.jsx)(o.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,y.jsxs)(o.Row,{className:i["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,y.jsx)(o.Col,{children:(0,y.jsx)(o.Button,{size:"small",onClick:()=>{m(s||{}),t()},children:"\u53d6\u6d88"})}),(0,y.jsx)(o.Col,{children:(0,y.jsx)(fe.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(a),t()},children:"\u786e\u5b9a"})})]})]})};var Ee=n(51941),Re=n(19853),Se=n.n(Re),Fe=n(21844),Ne=n.n(Fe),Oe=n(25644);const Be="COMPONENTS_CORE_TABLE_CONFIG",ke={getDataApi:e=>e?{loader:()=>le()(Oe.A.getItem(Be),e,{})}:{},setDataFunc:(e,t)=>{if(e)return Oe.A.setItem(Be,Object.assign({},Oe.A.getItem(Be),{[e]:t}))}},Me=e=>{let{title:t,columns:n,config:r,setConfig:s}=e;const[a,c]=(0,l.useState)(!1);return(0,y.jsxs)(o.Row,{wrap:!1,children:[(0,y.jsx)(o.Col,{flex:1,children:t}),(0,y.jsx)(o.Col,{children:(0,y.jsx)(o.Popover,{open:a,onOpenChange:c,trigger:"click",placement:"bottomLeft",rootClassName:i["columns-control-overlay"],content:(0,y.jsx)(Ae,{columns:n,config:r,close:()=>{c(!1)},onConfirm:e=>{s(t=>de()(e,(e,n,r)=>{e[r]=Object.assign({},t[r],pe()(n,["visible","rank"]))},{}))}}),children:(0,y.jsx)("span",{className:i["table-changer-setting"],children:(0,y.jsx)(A.default,{type:"icon-shezhi"})})})})]})},Ie=e=>{let{columns:t,name:n,controllerOpen:s,tableWidth:o,rowKey:a}=e;const[m,d]=(0,l.useState)(null),p=(0,l.useRef)(m);p.current=m;const h=(0,l.useRef)(null),g=(0,l.useRef)(null),[f,_]=(0,l.useState)({}),{tableServerApis:v}=(0,he.usePreset)(),x=v||ke,j=null===x||void 0===x?void 0:x.getDataApi(n),w=(0,Ee.useDebouncedCallback)((e,t)=>{null===x||void 0===x||x.setDataFunc(e,t)},500),C=u()(e=>{(0,l.startTransition)(()=>{_(t=>{const r="function"===typeof e?e(t):e;return n&&s&&w(n,r),r})})}),{send:E}=(0,b.useFetch)(Object.assign((0,r.A)((0,r.A)({},Object.assign({},j)),{},{auto:!1,cache:"TABLE_CONFIG_".concat(n),isLocal:!0,onRequestSuccess:e=>{_(Object.assign({},e))}}))),R=u()(()=>{n&&s&&j&&E({force:!1})});(0,l.useEffect)(()=>{R()},[R]);const S=(0,l.useMemo)(()=>t.filter(e=>!(!1===le()(f,"".concat(e.name,".visible"))||!0!==le()(f,"".concat(e.name,".visible"))&&!0===e.hidden)).sort((e,t)=>{const n=e=>le()(f,"".concat(e.name,".rank"),0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}),[t,f]),F=(0,l.useMemo)(()=>Ne()(S,e=>{let{type:t}=e;return"options"!==t}),[S]),N=(0,l.useMemo)(()=>ce()(S,e=>{let{type:t,name:n}=e;return le()(f,"".concat(n,".width"))||(ie[t]||ie.other).width}),[S,f]),O=e=>{let{width:t,index:n}=e;return F===n?t+Math.max(o-N-2,0):t},B=u()((e,t)=>(0,y.jsx)("span",{className:c()(i["cell-resize-bar"]),onMouseDown:n=>{h.current=Object.assign({},e,{index:t}),g.current=n.clientX,d(t)},children:(0,y.jsx)(A.default,{type:"icon-paixu"})})),k=u()(e=>{if(null===m)return;if(!h.current)return;const{name:t,width:n,min:r,max:s,index:i}=h.current,o=Math.min(Math.max(n+e,r),s);o<O({width:r,index:i})||C(e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:o})}))}),M=u()((e,n)=>{const{name:r,width:s,min:o,max:l}=e;let m=e;n===S.length-1&&(m=Object.assign({},e,{className:"has-config-btn",title:(0,y.jsx)(Me,{title:null===e||void 0===e?void 0:e.title,columns:t,config:f,setConfig:C})}));const d=()=>({className:c()({[i["is-moving"]]:p.current===n})}),u=Math.min(Math.max(le()(f,"".concat(r,".width"))||s,o),l),h=O({width:u,index:n});return Object.assign({},m,{onHeaderCell:d,onCell:d,width:h,shouldCellUpdate:(t,r)=>{const s="function"===typeof a?a(t):t[a],i="function"===typeof a?a(r):r[a];return null===p.current||p.current===n||"hideInfo"===e.type||!(s===i&&Se()(t[e.name],r[e.name]))},title:(0,y.jsxs)(y.Fragment,{children:[m.title,!(h>u&&h>l)&&B(Object.assign({},m,{width:h}),n)]})})});return(0,l.useEffect)(()=>{const e=()=>{d(null),g.current=null,h.current=null},t=e=>{null!==p.current&&null!==h.current&&(null!==g.current?k(e.clientX-g.current):g.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:S,currentMoveColumnIndex:m,resizeBarRender:B,columnsConfig:f,totalWidth:N,computedColumnProps:M}};var Pe=n(79686),Te=n.n(Pe);const ze=["name","type","expandType","title","titleRender","fixed","emptyOf","emptyRender","groupHeader","sort","disableColItem"],Le=e=>{let{rowKey:t,renderProps:n}=e;const[i,o]=(0,l.useState)(null),a=(0,l.useRef)(n);a.current=n;const c=u()((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,ze),{render:w,width:b,min:C,max:A}=Object.assign({},ie[d]||ie.other,"hideInfo"===d&&!Te()(i)&&pe()(ie[u]||ie.other,["width","min","max"])),E=w;return{name:m,title:"function"===typeof h?h(p):p,min:C,max:A,width:b,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=P(e,g);return E(e,(0,r.A)((0,r.A)({},j),{},{name:m,width:le()(c,"".concat(m,".width"))||b,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:i===s,onExpand:()=>o(s)}))},u=l.hasOwnProperty("valueOf")&&"function"===typeof l.valueOf?l.valueOf(n,Object.assign({},a.current,{name:m},x?{targetRender:d}:{})):le()(n,m);return x?u:d(u)}}});return{expandInfo:i,computedColumnProps:c}},De=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),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 He=n(10986),Ye=n.n(He),We=n(41740),Ke=n.n(We);const qe=e=>new Map((e||[]).map(e=>{let{name:t,sort:n}=e;return[t,n]})),Je=e=>{const[t,n]=Ye()(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),r=(0,l.useMemo)(()=>qe(t),[t]),s=(0,l.useCallback)(e=>n(t=>{const n=e(qe(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,y.jsxs)("div",{className:c()(i["sort-btn"],{[i["sort-active-desc"]]:"DESC"===r.get(n),[i["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 i=Ke()(e);return s?i.set(n,s):i.delete(n),i})},children:[(0,y.jsx)(A.default,{type:"icon-triangle-up",className:i["sort-icon"]}),(0,y.jsx)(A.default,{type:"icon-triangle-down",className:i["sort-icon"]})]})},[r,s])},Ge=["columns","className","getScrollEl","sticky","stickyOffset","pagination","columnRenderProps","rowKey","dataSource","controllerOpen","name","summary","scroll","onTablePropsReady"],Ue=e=>{let{columns:t,className:n,getScrollEl:a=p.h,sticky:m=!1,stickyOffset:d="var(--nav-height)",pagination:h=!1,columnRenderProps:g={},rowKey:f="id",dataSource:x,controllerOpen:j=!0,name:w,summary:b,scroll:C,onTablePropsReady:A}=e,E=(0,s.A)(e,Ge);const[R,S]=(0,l.useState)(0),[F,N]=(0,l.useState)(!0);(0,l.useEffect)(()=>{R&&setTimeout(()=>{N(!1)},0)},[R]);(0,l.useRef)(g).current=g;const O=(0,v.A)(e=>{S(e.clientWidth)},{isDebounce:!0}),{expandInfo:B,computedColumnProps:k}=Le({rowKey:f,renderProps:g}),{columnsConfig:M,visibleColumns:I,computedColumnProps:P,currentMoveColumnIndex:T,totalWidth:z}=Ie({columns:t,controllerOpen:j,name:w,computedColumnProps:k,tableWidth:R,rowKey:f}),L=Je(E),D=(0,l.useMemo)(()=>I.map((e,t)=>{let n=k(e,t,{rowKey:f,expandInfo:B,columnsConfig:M});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,y.jsxs)(y.Fragment,{children:[n.title,L({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),j&&(n=P(n,t,{tableWidth:R,columnsConfig:M})),n}),[I,R,M,B,f,j,k,P,L]),{columns:H,hasGroupHeader:Y}=De(D),W=u()(A);return(0,l.useEffect)(()=>{W&&W({columns:t,groupColumns:H,dataSource:x,visibleColumns:I})},[W,H,x,t,I]),(0,y.jsx)("div",{className:c()(n,i.table,{[i["is-resize"]]:null!==T,[i["is-computed"]]:F,[i["has-group-header"]]:Y}),ref:O,style:{"--sticky-offset":d},children:!F&&(0,y.jsx)(_,{className:"table-page-scroller",scroller:{getContainer:a},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,y.jsx)(o.Table,(0,r.A)((0,r.A)({},E),{},{sticky:!!m&&{getContainer:a},dataSource:x,rowKey:f,columns:H,scroll:Object.assign({},{x:Math.max(R,z)},C),pagination:h,summary:"function"===typeof b?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 b(Object.assign({},{pageData:e},{columns:H}),...n)}:null}))})})};var Ve=n(63361);const Xe=e=>({"en-US":()=>n.e(399).then(n.bind(n,80399)),"zh-CN":()=>n.e(9809).then(n.bind(n,59809))}[e]());var Qe=n(47458);const Ze=["data","refresh","reload","requestParams","fetchProps","isComplete","setData","loadMore","send","dataFormat","className","featureId","columns","getColumns","pagination","columnRenderProps","summary","sticky"],$e=["pagination"],et=e=>{let{id:t,columns:n,children:r}=e;return t?(0,y.jsx)(Ve.default,{id:t,children:e=>{let{options:t}=e;return r({columns:n.filter(e=>!e.name||(!Array.isArray(le()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name)))})}}):r({columns:n})},tt=(0,b.withFetch)(e=>{let{data:t,refresh:n,reload:o,requestParams:a,fetchProps:m,isComplete:d,setData:h,loadMore:g,send:f,dataFormat:_=e=>({list:e.pageData,total:e.totalCount}),className:v,featureId:x,columns:j,getColumns:w,pagination:b={},columnRenderProps:C={},summary:A,sticky:E=!0}=e,R=(0,s.A)(e,Ze);const S=u()(_),F=(0,l.useMemo)(()=>S(t),[t,S]),N={dataSource:F.list,pagination:!!b.open&&{total:F.total,showTotal:e=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Qe.FormattedMessage,{id:"Page_Total",moduleName:"Table",defaultMessage:"\u5171"}),(0,y.jsx)("span",{className:i.total_text,children:e}),(0,y.jsx)(Qe.FormattedMessage,{id:"Page_TotalCount",moduleName:"Table",defaultMessage:"\u6761"})]}),current:le()(a,[b.paramsType,b.currentName],1),pageSize:b.pageSize,onChange:b.onChange?b.onChange:(e,t)=>{e!==le()(a,[b.paramsType,b.currentName],1)?("refresh"===b.requestType?n:o)({[b.paramsType]:{[b.currentName]:e,[b.pageSizeName]:t}}):b.onShowSizeChange&&b.onShowSizeChange(e,t),(0,p.h)().scrollTop=0},size:b.size,showSizeChanger:b.showSizeChanger,showQuickJumper:b.showQuickJumper,pageSizeOptions:b.pageSizeOptions}};return(0,y.jsx)(Qe.IntlProvider,{importMessages:Xe,moduleName:"Table",children:(0,y.jsx)(et,{id:x,columns:j,children:e=>{let{columns:s}=e;return(0,y.jsx)(Ue,(0,r.A)((0,r.A)({},Object.assign({},R,N)),{},{sticky:E,className:c()(v,"loading-container",{"is-loading":!d}),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:o,loadMore:g,send:f,dataFormat:_,pagination:b},...r))}:null}))}})})}),nt=(0,l.forwardRef)((e,t)=>{let{pagination:n}=e,i=(0,s.A)(e,$e);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",currentName:"currentPage",pageSizeName:"perPage",pageSize:20},n);const o="".concat((i.name||"common").toUpperCase(),"_TABLE_PAGE_SIZE"),[a,c]=(0,l.useState)(Oe.A.getItem(o)||n.pageSize),m=i[n.paramsType],d=(0,l.useMemo)(()=>({[n.paramsType]:Object.assign({},m,{[n.pageSizeName]:a})}),[m,n.pageSizeName,n.paramsType,a]);return(0,y.jsx)(tt,(0,r.A)((0,r.A)((0,r.A)({},i),d),{},{pagination:Object.assign({},n,{pageSize:a,onShowSizeChange:(e,t)=>{Oe.A.setItem(o,t),c(t)}}),ref:t}))})},6617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s.a});n(9056);var r=n(86300),s=n.n(r),i={};for(const o in r)"default"!==o&&(i[o]=()=>r[o]);n.d(t,i)},19449:(e,t,n)=>{var r=n(94710),s=n(32952),i=n(9096),o=n(54052);e.exports=function(e,t){return function(n,l){var a=o(n)?r:s,c=t?t():{};return a(n,e,i(l,2),c)}}},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)}},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}))}}},32952:(e,t,n)=>{var r=n(45652);e.exports=function(e,t,n,s){return r(e,function(e,r,i){t(s,e,n(e),i)}),s}},39835:(e,t,n)=>{var r=n(71775),s=n(19449),i=Object.prototype.hasOwnProperty,o=s(function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=o},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}},45652:(e,t,n)=>{var r=n(94664),s=n(76516)(r);e.exports=s},48731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s.a});var r=n(60922),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]},{})})},62716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(89379),s=n(53986),i=n(73884),o=n(83136),l=n.n(o);const a={"state-tag":"style_state-tag__Kx27z__hiFBw","state-result-tag":"style_state-result-tag__CssDz__hiFBw","state-skill-tag":"style_state-skill-tag__k0bQE__hiFBw","event-tag":"style_event-tag__cg6SE__hiFBw","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__hiFBw","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__hiFBw","state-tag-filterResult":"style_state-tag-filterResult__KTkot__hiFBw","show-bg":"style_show-bg__OcL+R__hiFBw","tag-text":"style_tag-text__JHCt+__hiFBw","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__hiFBw"};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=!1,text:n="",type:o="default",showBackground:p=!0,className:h,filterName:y}=e,g=(0,s.A)(e,d);const f=(0,i.useMemo)(()=>{var e,t;return{color:(null===u||void 0===u||null===(e=u[o])||void 0===e?void 0:e.color)||u[o],borderColor:(null===u||void 0===u||null===(t=u[o])||void 0===t?void 0:t.borderColor)||u[o]}},[o]);return(0,m.jsxs)(c.Space,{"data-testid":"components-core-state-tag",className:l()(a["state-tag-wrapper"],"filterResult"===o?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"===o?a["state-result-tag"]:"","skill"===o?a["state-skill-tag"]:"",a["state-tag-".concat(o)],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})}))]})}},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_,useFeatureCall:()=>f});var r=n(73884),s=n(63743),i=n(33097),o=n.n(i),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&&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),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:i})),i.get(m))},[t,i,l,m]),{isPass:!(e&&t&&t.length>0)||h(m,{features:t,profileMap:i}),currentId:m,feature:i.get(m)}},_=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:i}=f(t);return(0,d.jsx)(g,{value:i,children:"function"===typeof n?n({isPass:r,options:r?o()(s,"options"):o()(s,"rejectedOptions"),currentId:i}):r&&n})}},69613:(e,t,n)=>{var r=n(9261);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},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}},76516:(e,t,n)=>{var r=n(6571);e.exports=function(e,t){return function(n,s){if(null==n)return n;if(!r(n))return e(n,s);for(var i=n.length,o=t?i:-1,l=Object(n);(t?o--:++o<i)&&!1!==s(l[o],o,l););return n}}},94710:e=>{e.exports=function(e,t,n,r){for(var s=-1,i=null==e?0:e.length;++s<i;){var o=e[s];t(r,o,n(o),e)}return r}},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}},99910:e=>{e.exports=function(e,t){for(var n,r=-1,s=e.length;++r<s;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}}}]);
2
- //# sourceMappingURL=3205.9a61b7b6.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3771],{3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>E,TabsModal:()=>z,TabsModalButton:()=>q,default:()=>P,useConfirmModal:()=>S,useModal:()=>k,useTabsModal:()=>T});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__hiFBw",large:"style_large__iaqVE__hiFBw","modal-body-inner":"style_modal-body-inner__4PhpA__hiFBw","modal-title":"style_modal-title__dswaw__hiFBw","modal-outer":"style_modal-outer__r3SkX__hiFBw","modal-body":"style_modal-body__jQJSI__hiFBw","right-options-modal":"style_right-options-modal__FajDP__hiFBw","right-options-row":"style_right-options-row__-mPb9__hiFBw","right-options-col":"style_right-options-col__3ilee__hiFBw","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__hiFBw",content:"style_content__k6MIF__hiFBw","modal-footer":"style_modal-footer__-prbN__hiFBw","modal-close":"style_modal-close__Oa5Kl__hiFBw","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__hiFBw","is-danger":"style_is-danger__H5110__hiFBw",title:"style_title__orTym__hiFBw","has-title":"style_has-title__qy0Wp__hiFBw"},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=["size"],A=["children"],w=["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"),B=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}}))})})})]})},N=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:a()(c["modal-close"],"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)(B,{footer:t,footerButtons:n,onConfirm:m,onCancel:p,onClose:r,targetProps:g})}):null]})},v=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)(N,{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({})},F=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:w,withDecorator:b,childrenRef:j}=e,B=(0,n.A)(e,y);return(0,l.A)((0,l.A)((0,l.A)({},B),{},{icon:null,centered:!0,title:null,maskClosable:!!B.hasOwnProperty("maskClosable")&&B.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:v({withDecorator:b,title:u,closable:A,onClose:_,onConfirm:g,onCancel:C,footer:i,footerButtons:r,rightOptions:t,rightSpan:s,disabledScroller:w,children:o,childrenRef:j})})})},k=()=>{const{modal:e}=i.App.useApp(),o=(0,s.useRef)(null);return t=>{const s={},i=F((0,l.A)({onClose:()=>s.close(),childrenRef:o},t)),{children:r}=i,a=(0,n.A)(i,A),{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,w),A=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||A["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||A["confirm"===r?y:r]}):null,_]})}));t.close=o}return t}},P=e=>{let{size:o="default"}=e,t=(0,n.A)(e,C);const r=(0,s.useRef)(null);return(0,f.jsx)(i.Modal,(0,l.A)({},F(Object.assign({},t,{size:o,childrenRef:r}))))},R=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],M=["withDecorator"],O=["children"],D=e=>{let{items:o,className:t,activeKey:s,withDecorator:r,defaultActiveKey:c,onChange:d}=e,m=(0,n.A)(e,R);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,M);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,O);return"function"===typeof o?o(t):o}})},z=e=>(0,f.jsx)(P,(0,l.A)({},D(e))),T=()=>{const e=k();return o=>e(D(o))};var I=t(73025);const K=["modalProps"],q=e=>{const o=T();return e.api?(0,f.jsx)(I.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)}}))},E=e=>{const o=k();if(!e.api){const{modalProps:t}=e,s=(0,n.A)(e,K);return(0,f.jsx)(i.Button,(0,l.A)((0,l.A)({},s),{},{onClick:()=>{o(t)}}))}return(0,f.jsx)(I.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:o}))}},17342:(e,o,t)=>{t.d(o,{A:()=>s});var l=t(34581),n=t.n(l);t(46733);const s=n()},46733:()=>{}}]);
2
- //# sourceMappingURL=3771.a4718b4c.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/3771.a4718b4c.chunk.js","mappings":"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","sources":["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","common/components/SimpleBar.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__hiFBw\",\"large\":\"style_large__iaqVE__hiFBw\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__hiFBw\",\"modal-title\":\"style_modal-title__dswaw__hiFBw\",\"modal-outer\":\"style_modal-outer__r3SkX__hiFBw\",\"modal-body\":\"style_modal-body__jQJSI__hiFBw\",\"right-options-modal\":\"style_right-options-modal__FajDP__hiFBw\",\"right-options-row\":\"style_right-options-row__-mPb9__hiFBw\",\"right-options-col\":\"style_right-options-col__3ilee__hiFBw\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__hiFBw\",\"content\":\"style_content__k6MIF__hiFBw\",\"modal-footer\":\"style_modal-footer__-prbN__hiFBw\",\"modal-close\":\"style_modal-close__Oa5Kl__hiFBw\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__hiFBw\",\"is-danger\":\"style_is-danger__H5110__hiFBw\",\"title\":\"style_title__orTym__hiFBw\",\"has-title\":\"style_has-title__qy0Wp__hiFBw\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, {useRef} from \"react\";\nimport {App, Button, Col, Modal as AntdModal, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {FormattedMessage, IntlProvider} from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({options, rightSpan = 6, children}) => {\n if (!options) {\n return children;\n }\n return (<Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>);\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\", style: {\"--min-modal-height\": calcHeight(300, footer)},\n };\n }\n return {\n width: \"1000px\", style: {\"--min-modal-height\": calcHeight(500, footer)},\n };\n};\n\nconst Footer = ({\n footer, footerButtons, onConfirm, onCancel, onClose, targetProps,\n }) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{\n children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onCancel,\n }, {\n type: \"primary\", children: (<IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>), onClick: onConfirm,\n },])\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(({\n ButtonComponent, onClick, autoClose = true, display, ...props\n }, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args, targetProps));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n }) => {\n const modalBodyRef = useRef(null);\n return (<div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-modal-close-btn\"\n className={classnames(style[\"modal-close\"], \"modal-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(style[\"modal-body\"], {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n }, \"modal-body\")}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (<div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n 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 (<ModalOuter\n title={renderWithOptions(props.title, {\n ...props, childrenRef, close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props, childrenRef, close: onClose,\n })}\n targetProps={Object.assign({}, props, {childrenRef, close: onClose})}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props, childrenRef, close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props, childrenRef, close: onClose,\n })}\n </RightOptions>\n </ModalOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner, {\n childrenRef, close: onClose,\n }) : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n 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\") ? props.maskClosable : 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 }), ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>),\n };\n};\n\nconst Modal = ({size = 'default', ...props}) => {\n const childrenRef = useRef(null);\n return (<AntdModal\n {...computedCommonProps(Object.assign({}, props, {size, childrenRef}))}\n />);\n};\n\nexport const useModal = () => {\n const {modal} = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const {children, ...otherProps} = computedCommonProps({\n onClose: () => api.close(), childrenRef, ...props,\n });\n const {destroy} = modal.info({\n ...otherProps, content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const {modal} = App.useApp();\n return (props) => {\n const api = {};\n const {\n type, icon, title, danger, wrapClassName, message, iconSetting = {}, confirmType = \"info\", ...otherProps\n } = {\n onClose: () => api.close(), maskClosable: false, ...props,\n };\n const typeEnum = Object.assign({}, {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n }, iconSetting);\n if (modal[type]) {\n const {destroy} = modal[type]({\n ...otherProps, icon: null, wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }), title: (<Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (<Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {title}\n </Space>)}\n </Space>), content: (<Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (<Icon\n className={classnames(\"title-icon\", `title-icon-${type === \"confirm\" ? confirmType : type}`)}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />) : null}\n {message}\n </Space>),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n"],"names":["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","classnames","icon","Icon","e","stopPropagation","SimpleBar","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","size","_excluded2","centered","maskClosable","hasOwnProperty","destroyOnClose","sizeMap","width","Math","min","window","innerWidth","useModal","modal","App","useApp","api","_computedCommonProps","otherProps","_excluded4","destroy","info","content","useConfirmModal","_onClose$maskClosable","danger","wrapClassName","message","iconSetting","confirmType","_excluded5","typeEnum","confirm","warning","error","success","direction","align","_ref7","_excluded3","AntdModal","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","Modal","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3856],{3382:(e,t,n)=>{n.r(t),n.d(t,{ModalButton:()=>V,TabsModal:()=>T,TabsModalButton:()=>z,default:()=>P,useConfirmModal:()=>O,useModal:()=>B,useTabsModal:()=>R});var a=n(89379),l=n(53986),s=n(73884),r=n(55199),i=n(83136),o=n.n(i);const c={modal:"style_modal__Pm3cF__hiFBw",large:"style_large__iaqVE__hiFBw","modal-body-inner":"style_modal-body-inner__4PhpA__hiFBw","modal-title":"style_modal-title__dswaw__hiFBw","modal-outer":"style_modal-outer__r3SkX__hiFBw","modal-body":"style_modal-body__jQJSI__hiFBw","right-options-modal":"style_right-options-modal__FajDP__hiFBw","right-options-row":"style_right-options-row__-mPb9__hiFBw","right-options-col":"style_right-options-col__3ilee__hiFBw","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__hiFBw",content:"style_content__k6MIF__hiFBw","modal-footer":"style_modal-footer__-prbN__hiFBw","modal-close":"style_modal-close__Oa5Kl__hiFBw","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__hiFBw","is-danger":"style_is-danger__H5110__hiFBw",title:"style_title__orTym__hiFBw","has-title":"style_has-title__qy0Wp__hiFBw"},d=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var u=n(47458),p=n(64671);const h=(e,t)=>"function"===typeof e?e(t):e;var m=n(81014),_=n(17342),g=n(70579);const f=["ButtonComponent","onClick","autoClose","display"],x=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator","childrenRef"],A=["size"],y=["children"],v=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],C="Modal",j=e=>{let{options:t,rightSpan:n=6,children:a}=e;return t?(0,g.jsxs)(r.Row,{wrap:!1,className:c["right-options-row"],children:[(0,g.jsx)(r.Col,{span:24-n,className:c["right-options-col"],children:a}),(0,g.jsx)(r.Col,{span:n,className:c["right-options-col"],children:t})]}):a},w=(e,t)=>"".concat(e-48-(t?58:0),"px"),b=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:o,onClose:c,targetProps:p}=e;return(0,g.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,g.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Space,{children:(n||[{children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Cancel",moduleName:C})}),onClick:o},{type:"primary",children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:C,children:(0,g.jsx)(u.FormattedMessage,{id:"Confirm",moduleName:C})}),onClick:i}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:i=!0,display:o}=e,d=(0,l.A)(e,f);const u=n||m.default;return(0,s.createElement)(u,(0,a.A)((0,a.A)({},d),{},{key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=await Promise.resolve(r&&r(...t,p));return i&&!1!==a&&c&&c(),a}}))})})})]})},N=e=>{let{title:t,footer:n,disabledScroller:a,footerButtons:l,onClose:i,closable:d,onConfirm:u,onCancel:h,children:m,targetProps:f}=e;const x=(0,s.useRef)(null);return(0,g.jsxs)("div",{className:c["modal-outer"],"data-testid":"components-core-modal",children:[!1===d?null:(0,g.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:o()(c["modal-close"],"modal-close"),type:"text",icon:(0,g.jsx)(p.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),i&&i()}}),t&&(0,g.jsx)("div",{className:c["modal-title"],children:t}),(0,g.jsx)(_.A,{className:o()(c["modal-body"],{[c["is-disabled-scroller"]]:a},"modal-body"),ref:x,children:(0,g.jsx)("div",{className:o()(c["modal-body-inner"],"modal-body-inner"),children:m})}),null!==n||l?(0,g.jsx)("div",{className:o()(c["modal-footer"],"modal-footer"),children:(0,g.jsx)(b,{footer:n,footerButtons:l,onConfirm:u,onCancel:h,onClose:i,targetProps:f})}):null]})},S=e=>{let{withDecorator:t,footerButtons:n,title:l,closable:s,onClose:r,onConfirm:i,onCancel:o,footer:c,rightOptions:d,rightSpan:u,disabledScroller:p,childrenRef:m,children:_}=e;const f=e=>(e=Object.assign({},{title:l},e),(0,g.jsx)(N,{title:h(e.title,(0,a.A)((0,a.A)({},e),{},{childrenRef:m,close:r})),closable:s,onClose:r,onConfirm:i,onCancel:o,footerButtons:h(n,(0,a.A)((0,a.A)({},e),{},{close:r})),disabledScroller:p,footer:h(c,(0,a.A)((0,a.A)({},e),{},{childrenRef:m,close:r})),targetProps:Object.assign({},e,{childrenRef:m,close:r}),children:(0,g.jsx)(j,{rightSpan:u,options:h(d,(0,a.A)((0,a.A)({},e),{},{childrenRef:m,close:r})),children:h(_,(0,a.A)((0,a.A)({},e),{},{childrenRef:m,close:r}))})}));return"function"===typeof t?t(f,{childrenRef:m,close:r}):f({})},F=e=>{let{children:t,rightOptions:n,rightSpan:s,footer:r,footerButtons:i,className:p,size:h,title:m,onClose:_,onConfirm:f,onCancel:A,closable:y,disabledScroller:v,withDecorator:C,childrenRef:j}=e,b=(0,l.A)(e,x);return(0,a.A)((0,a.A)((0,a.A)({},b),{},{icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:_,className:o()(p,c.modal,c[h],{[c["right-options-modal"]]:n})},((e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":w(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":w(300,t)}}:{width:"1000px",style:{"--min-modal-height":w(500,t)}})(h,!(null===r&&!i))),{},{children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Modal",children:S({withDecorator:C,title:m,closable:y,onClose:_,onConfirm:f,onCancel:A,footer:r,footerButtons:i,rightOptions:n,rightSpan:s,disabledScroller:v,children:t,childrenRef:j})})})},B=()=>{const{modal:e}=r.App.useApp(),t=(0,s.useRef)(null);return n=>{const s={},r=F((0,a.A)({onClose:()=>s.close(),childrenRef:t},n)),{children:i}=r,o=(0,l.A)(r,y),{destroy:c}=e.info((0,a.A)((0,a.A)({},o),{},{content:i}));return s.close=c,s}},O=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},s=(0,a.A)({onClose:()=>n.close(),maskClosable:!1},t),{type:i,icon:d,title:u,danger:h,wrapClassName:m,message:_,iconSetting:f={},confirmType:x="info"}=s,A=(0,l.A)(s,v),y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[i]){const{destroy:t}=e[i]((0,a.A)((0,a.A)({},A),{},{icon:null,wrapClassName:o()(c["confirm-modal-wrap"],m,{[c["is-danger"]]:h}),title:(0,g.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:u&&(0,g.jsxs)(r.Space,{size:0,align:"start",className:c.title,children:[h?(0,g.jsx)(p.default,{className:o()("title-icon","title-icon-".concat("confirm"===i?x:i)),type:d||y["confirm"===i?x:i]}):null,u]})}),content:(0,g.jsxs)(r.Space,{size:0,align:"start",className:o()(c.content,{[c["has-title"]]:u}),children:[!u&&h?(0,g.jsx)(p.default,{className:o()("title-icon","title-icon-".concat("confirm"===i?x:i)),type:d||y["confirm"===i?x:i]}):null,_]})}));n.close=t}return n}},P=e=>{let{size:t="default"}=e,n=(0,l.A)(e,A);const i=(0,s.useRef)(null);return(0,g.jsx)(r.Modal,(0,a.A)({},F(Object.assign({},n,{size:t,childrenRef:i}))))},L=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],I=["withDecorator"],k=["children"],M=e=>{let{items:t,className:n,activeKey:s,withDecorator:i,defaultActiveKey:c,onChange:d}=e,u=(0,l.A)(e,L);return(0,a.A)((0,a.A)({},u),{},{className:o()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,g.jsx)(r.Tabs,{items:t.map(t=>{let{withDecorator:a}=t,s=(0,l.A)(t,I);return Object.assign({},s,{children:"function"===typeof a?a(t=>e(Object.assign({},n,t,{children:s.children}))):e(Object.assign({},n,{children:s.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof i?i(n):n()},children:e=>{let{children:t}=e,n=(0,l.A)(e,k);return"function"===typeof t?t(n):t}})},T=e=>(0,g.jsx)(P,(0,a.A)({},M(e))),R=()=>{const e=B();return t=>e(M(t))};var D=n(73025);const E=["modalProps"],z=e=>{const t=R();return e.api?(0,g.jsx)(D.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t})):(0,g.jsx)(r.Button,(0,a.A)((0,a.A)({},e),{},{onClick:()=>{t(e.modalProps)}}))},V=e=>{const t=B();if(!e.api){const{modalProps:n}=e,s=(0,l.A)(e,E);return(0,g.jsx)(r.Button,(0,a.A)((0,a.A)({},s),{},{onClick:()=>{t(n)}}))}return(0,g.jsx)(D.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t}))}},12392:(e,t,n)=>{n.d(t,{Bm:()=>U,Eo:()=>W,NR:()=>S,Ay:()=>q});var a=n(55199),l=n(83136),s=n.n(l),r=n(89379),i=n(53986),o=n(30509),c=n(25438),d=n(78784),u=n(33097),p=n.n(u),h=n(34677),m=n.n(h);const _="create-list_scroll-loader__zoaS7__hiFBw",g="create-list_is-popup__t3d-G__hiFBw",f="create-list_is-not-full__FXtX1__hiFBw",x="create-list_search-input__tV3vf__hiFBw",A="create-list_left__EXr3i__hiFBw",y="create-list_list-header__3xeJa__hiFBw",v="create-list_is-modal__BMfya__hiFBw";var C=n(73161),j=n(47458),w=n(70579);const b=["extra"],N=o.A.useContext,S=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:i,setSearchText:o,props:u,mapping:h}=N(),b=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},u.pagination),S=p()(r.requestParams,[b.paramsType,b.current],1),F=p()(r.requestParams,[b.paramsType,b.pageSizeName])||b.pageSize,{formatMessage:B}=(0,j.useIntl)({moduleName:"Common"}),O=u.dataFormat(r.data),{right:P,leftBottom:L,leftSpan:I=24}=u,k=1===n.length&&"all"===n[0];return(0,w.jsxs)(a.Row,{wrap:!1,className:P?s()("is-not-full",f):"",children:[(0,w.jsxs)(a.Col,{span:I,className:s()(A,"advance-select-left"),children:[u.getSearchProps?(0,w.jsx)(C.A,{isPopup:u.isPopup,className:s()(x,c.A["search-input"],{[c.A["is-popup"]]:u.isPopup}),placeholder:u.searchPlaceholder||B({id:"search"}),value:i,onSearch:e=>{r.reload(u.getSearchProps(e)),o(e)}}):null,u.single||!u.showSelectedCount&&!u.allowSelectAll?null:(0,w.jsxs)(a.Flex,{className:s()(y,{[v]:!u.isPopup}),justify:"space-between",children:[u.showSelectedCount?(0,w.jsxs)(a.Space,{children:[(0,w.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,w.jsx)(a.Typography.Link,{children:k?u.allLabel||(0,w.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"}):"".concat(n.length).concat(u.countUnit||B({id:"items"}))})]}):(0,w.jsx)("div",{}),u.allowSelectAll?(0,w.jsx)("div",{children:(0,w.jsx)(a.Checkbox,{checked:k,onChange:e=>{l(e.target.checked?[u.allValue||"all"]:[])},children:(0,w.jsx)(j.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:u.allLabel||(0,w.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,w.jsx)("div",{})]}),(0,w.jsx)(d.default,{completeTips:"",isLoading:!r.isComplete,className:s()(_,{[g]:u.isPopup}),noMore:!O.total||S*F>=O.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(m()({[b.paramsType]:{[b.pageSizeName]:F,[b.current]:S+1}},u.getSearchProps&&u.getSearchProps(i)),u.mergeList)},children:(()=>{const e={props:u,value:n,setValue:l,list:O.list,data:r.data,fetchApi:r,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:k,onSelect:e=>{if(u.single)return void l([e.value]);const t=n.slice(0),a=t.indexOf(e.value);a>-1?t.splice(a,1):t.push(e.value),l(t)}},a=t(e);return"function"===typeof u.dropdownRender?u.dropdownRender(Object.assign({},e,{children:a})):a})()}),L&&L({fetchApi:r,value:n,mapping:h})]}),P&&P({value:n,mapping:h,fetchApi:r})]})},u=e=>{let{extra:t}=e,n=(0,i.A)(e,b);return(0,w.jsx)(o.A,(0,r.A)((0,r.A)({},n),{},{extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,w.jsx)(l,{value:t,setValue:n})}}))};return u.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},n),u},F="list_list__TGynD__hiFBw",B="list_list-item__WSswf__hiFBw",O="list_is-selected__6Wkgt__hiFBw",P="list_item-label__bYzhe__hiFBw",L="list_item-des__2nsEn__hiFBw",I="list_is-disabled__qxCvO__hiFBw",k="list_is-selected-all__Mp-hG__hiFBw";var M=n(40438),T=n(64671);const R="user_list-inner__V508e__hiFBw",D="user_list-info__y2nWo__hiFBw",E="user_selected-icon__9OQJL__hiFBw",z="user_item-des__o+7UR__hiFBw",V="user_is-selected-all__2q0VZ__hiFBw",W=S({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:i}=e;return(0,w.jsx)(a.List,{size:"small",className:s()(F,{[k]:i,[V]:i}),dataSource:t,renderItem:e=>{const t=l(e);return(0,w.jsx)(a.List.Item,{className:s()(B,{[O]:t}),onClick:()=>n(e),children:(0,w.jsxs)(a.Row,{wrap:!1,align:"middle",className:R,children:[(0,w.jsx)(a.Col,{children:(0,w.jsx)(M.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e.avatar)),{},{size:40,gender:"M"}))}),(0,w.jsx)(a.Col,{className:D,flex:1,children:(0,w.jsxs)(a.Space,{direction:"vertical",children:[(0,w.jsx)("span",{className:P,children:e.label}),e.description&&(0,w.jsx)("span",{className:z,children:e.description})]})}),(0,w.jsx)(a.Col,{children:i||t?(0,w.jsx)(T.default,{className:E,type:"icon-gouxuan"}):null})]})})}})}}),K={"is-selected-all":"table_is-selected-all__IwXUY__hiFBw"},U=S({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:i,itemIsSelected:o,isSelectedAll:c}=e;return(0,w.jsx)(a.Table,{className:s()(K.list,F,{[k]:c,[K["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":o(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map(e=>{let{value:t}=e;return t}),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{i(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),q=S({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:i}=e;const{listClassName:o="",selectIcon:c=null}=t||{};return(0,w.jsx)(a.List,{className:s()(F,o,{[k]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const o=l(e);return(0,w.jsxs)(a.List.Item,{className:s()(B,{[O]:t.single&&o,[I]:r||e.disabled}),onClick:()=>{e.disabled||i(e)},children:[(0,w.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,w.jsx)(a.Col,{children:(0,w.jsx)(a.Checkbox,{checked:r||o,disabled:r||e.disabled})}),(0,w.jsx)(a.Col,{children:(0,w.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,w.jsx)("span",{className:P,children:e.label}),e.description&&(0,w.jsx)("span",{className:L,children:e.description})]})})]}),o&&c]})}})}})},17342:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(34581),l=n.n(a);n(46733);const s=l()},17508:(e,t,n)=>{n.d(t,{AG:()=>y,Ay:()=>f,FI:()=>A,Zi:()=>x,lN:()=>s.useFileUpload});var a=n(89379),l=n(53986),s=n(24818),r=n(55199),i=n(83136),o=n.n(i),c=n(70579);const d=["className","multiple","accept","onChange","children"],u=["children"],p=["children"],h=["className","multiple","accept","onChange","children"],m=["children"],_=["className","multiple","accept","onChange","children"],g=["children"],f=e=>t=>{let{className:n,multiple:r,accept:i,onChange:o,children:p}=t,h=(0,l.A)(t,d);return(0,c.jsx)(s.FileInput,{className:n,multiple:r,accept:i,onChange:o,children:t=>{let{children:n}=t,s=(0,l.A)(t,u);return(0,c.jsxs)(e,(0,a.A)((0,a.A)({},Object.assign({},h,s)),{},{children:[p,n]}))}})},x=e=>{let{children:t}=e,n=(0,l.A)(e,p);return(0,c.jsx)(s.FileInput,(0,a.A)((0,a.A)({},n),{},{buttonText:t}))},A=e=>{let{className:t,multiple:n,accept:i,onChange:o,children:d}=e,u=(0,l.A)(e,h);return(0,c.jsx)(s.FileInput,{className:t,multiple:n,accept:i,onChange:o,children:e=>{let{children:t}=e,n=(0,l.A)(e,m);return(0,c.jsxs)(r.Typography.Link,(0,a.A)((0,a.A)({},Object.assign({},u,n)),{},{children:[d,t]}))}})},y=e=>{let{className:t,multiple:n,accept:i,onChange:d,children:u}=e,p=(0,l.A)(e,_);return(0,c.jsx)(s.FileInput,{className:o()(t,"ant-btn"),multiple:n,accept:i,onChange:d,children:e=>{let{children:t}=e,n=(0,l.A)(e,g);return(0,c.jsxs)(r.Typography.Text,(0,a.A)((0,a.A)({},Object.assign({},p,n)),{},{children:[u,t]}))}})}},18411:(e,t,n)=>{n.d(t,{A:()=>a});n(73884);const a=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},20492:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(3086).then(n.bind(n,13086)),"zh-CN":()=>n.e(4308).then(n.bind(n,84308))}[e]())},21485:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(89379),l=n(53986),s=n(73884),r=n(71298),i=n.n(r),o=n(96418),c=n.n(o),d=n(70579);const u=["children","onScroll","options","onReady"],p=(0,s.forwardRef)((e,t)=>{let{children:n,onScroll:r,options:o,onReady:p}=e,h=(0,l.A)(e,u);const m=(0,s.useRef)(null),_=(0,s.useRef)(null),g=(0,s.useRef)(o),f=c()(p),x=c()(r);return(0,s.useImperativeHandle)(t,()=>_.current),(0,s.useEffect)(()=>{const e=new(i())(m.current,g.current);return _.current=e.getScrollElement(),_.current.addEventListener("scroll",x),f(_.current),()=>{_.current.removeEventListener("scroll",x)}},[x,f,n]),(0,d.jsx)("div",(0,a.A)((0,a.A)({},h),{},{ref:m,children:n}))})},25438:(e,t,n)=>{n.d(t,{A:()=>a});const a={"search-input":"common_search-input__P6qLg__hiFBw","is-popup":"common_is-popup__fJq+g__hiFBw",list:"common_list__TKFzS__hiFBw","list-item":"common_list-item__ASse7__hiFBw","is-selected":"common_is-selected__-PU4Y__hiFBw","item-label":"common_item-label__u+qz1__hiFBw","item-des":"common_item-des__no2z0__hiFBw"}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(83694),l=n(33097),s=n.n(l);const r=()=>{const e=(0,a.useGlobalContext)();return s()(e,"preset",{apis:{}})}},30509:(e,t,n)=>{n.d(t,{A:()=>X});var a=n(89379),l=n(53986);const s={"ant-tag":"style_ant-tag__nNp8-__hiFBw",overlay:"style_overlay__La5mO__hiFBw",input:"style_input__SpJTE__hiFBw","is-disabled":"style_is-disabled__joxdl__hiFBw","input-icon":"style_input-icon__vVd8R__hiFBw",large:"style_large__En6mL__hiFBw",small:"style_small__DY0AQ__hiFBw","input-inner":"style_input-inner__PWy27__hiFBw","input-custom":"style_input-custom__ktsWD__hiFBw","display-content":"style_display-content__hIKo+__hiFBw","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__hiFBw","selected-tag":"style_selected-tag__zXZZO__hiFBw","selected-tag-list":"style_selected-tag-list__xUIms__hiFBw","selected-tag-inner":"style_selected-tag-inner__Z5gPL__hiFBw","text-inner":"style_text-inner__H24hY__hiFBw",placeholder:"style_placeholder__x0ccE__hiFBw","is-modal":"style_is-modal__JU+uq__hiFBw","overlay-content":"style_overlay-content__WKqp+__hiFBw"};var r=n(74981);const{context:i,useContext:o,Provider:c,Consumer:d}=(0,r.A)();var u=n(73884),p=n(10986),h=n.n(p),m=n(87558),_=n(33097),g=n.n(_),f=n(55199),x=n(83136),A=n.n(x),y=n(3382),v=n(64671),C=n(79686),j=n.n(C),w=n(41740),b=n.n(w),N=n(74065),S=n.n(N),F=n(21485),B=n(96418),O=n.n(B),P=n(77964),L=n(91176),I=n(47458),k=n(20492),M=n(27047),T=n(70579);const R=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],D=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName","overlayClassName","disabled"],E=["setFetchApi","wrapClassName","getContentRef"],z=["api","className","displayItems","wrapClassName"],V=e=>{let{maxLength:t,single:n,setValue:a,value:l,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s(),l):e)},W=e=>{let{single:t,value:n,mapping:a,allValue:l,allLabel:r,onClose:i}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,T.jsx)("span",{className:s["text-inner"],children:g()(a.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(l||"all")?(0,T.jsx)("span",{className:s["text-inner"],children:r||(0,T.jsx)(I.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map(e=>{const t=a.get(e);return(0,T.jsx)(f.Tag,{className:s["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),i(e,t)},children:(0,T.jsx)("span",{className:s["tag-inner"],children:g()(t,"label")||e})},e)}):null},K=(0,u.forwardRef)((e,t)=>{let{value:n,onChange:r,extra:i,showSelectedTag:o,renderSelectedContent:c,children:d}=e,p=(0,l.A)(e,R);const[h,m]=(0,u.useState)(n),_=(0,u.useRef)(n),{formatMessage:g}=(0,I.useIntl)({moduleName:"Common"});_.current=n;const[x,A]=(0,u.useState)(!1),v=e=>{var t;A(e),null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},{message:C}=f.App.useApp(),j=V({maxLength:p.maxLength,single:p.single,setValue:m,value:h,message:()=>C.error(g({id:"maxSelectedCount"},{count:p.maxLength}))});return(0,u.useEffect)(()=>{x&&m(_.current)},[x]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{v(!0)},close:()=>{v(!1)}})),(0,T.jsx)(y.default,(0,a.A)((0,a.A)({},p),{},{open:x,onConfirm:()=>{r(h)},onClose:()=>{v(!1)},footer:(0,T.jsxs)(f.Space,{direction:"vertical",className:s["overlay-footer"],children:[i&&(0,T.jsx)("div",{className:s["overlay-footer-extra"],children:i}),o&&c({value:h,setValue:j})]}),children:"function"===typeof d?d({value:h,setValue:j}):d}))}),U=(0,u.forwardRef)((e,t)=>{let{value:n,setValue:r,children:i,renderSelectedContent:o,showSelectedTag:c,placement:d,inputContent:p,single:h,extra:m,overlayWidth:_,wrapClassName:g,overlayClassName:x,disabled:y}=e,v=(0,l.A)(e,D);const[C,j]=(0,u.useState)(!1),w=O()(e=>{var t;j(e),null===(t=v.onOpenChange)||void 0===t||t.call(v,e)});return(0,u.useImperativeHandle)(t,()=>({close:()=>{w(!1)}}),[w]),y?(0,T.jsx)("div",{className:s["input-inner"],children:p}):(0,T.jsx)(f.Popover,(0,a.A)((0,a.A)({},v),{},{open:C,onOpenChange:w,transitionName:"ant-slide-up",overlayClassName:A()(s.overlay,x),arrow:!1,content:(0,T.jsxs)("div",{style:_?{"--overlay-width":_}:{},className:A()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,T.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof i?i({value:n,setValue:e=>{(!h||n[0]!==e[0])&&r(e),h&&w(!1)}}):i}),(c||m)&&(0,T.jsxs)("div",{className:s["overlay-footer"],children:[m&&(0,T.jsx)("div",{className:s["overlay-footer-extra"],children:m}),c&&o({value:n,setValue:r})]})]}),trigger:"click",placement:d,children:(0,T.jsx)("div",{className:s["input-inner"],children:p})}))}),q=(0,m.withFetch)(e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:a}=e,r=(0,l.A)(e,E);const[i,c]=(0,u.useState)(!1),d=(0,u.useRef)(null),p=(0,u.useRef)(null),h=o(),{valueState:m,mapping:_,props:g,inputWidth:x}=h,[y,C]=m,{formatMessage:j}=(0,I.useIntl)({moduleName:"Common"}),{single:w,placement:b,getPopupContainer:N,placeholder:S,isPopup:B,disabled:P,showSelectedTag:k,extra:M,inputContent:R,allowClear:D,overlayClassName:z}=g,V=(0,u.useRef)(r);V.current=r;const q=O()(a);(0,u.useEffect)(()=>{q(B?p:d)},[B,q]),(0,u.useEffect)(()=>{t(Object.assign({},V.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const Q=W({single:w,value:y,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{C(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}}),H=e=>{let{value:t,setValue:n}=e;return(0,T.jsxs)(f.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,T.jsxs)("div",{children:[(0,T.jsx)(I.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,T.jsx)(F.A,{className:s["selected-tag-list"],children:(0,T.jsx)("div",{className:s["selected-tag-inner"],children:W({value:t,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}})})})]})},X=R?R(h):(0,T.jsxs)(f.Space,{className:s["display-content"],onMouseOver:()=>{c(!0)},onMouseOut:()=>{c(!1)},children:[(0,T.jsx)("div",{children:Q||(0,T.jsx)("span",{className:s.placeholder,children:S||j({id:"pleaseSelect"})})}),i&&y&&y.length>0&&!P&&D?(0,T.jsx)(v.default,{className:A()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),C([])}}):(0,T.jsx)(v.default,{className:A()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return B?(0,T.jsx)(U,{ref:p,overlayWidth:(0,L.v)(Math.max(x,(0,L.j)(g.overlayWidth))),value:y,setValue:C,single:w,disabled:P,inputContent:X,onOpenChange:g.onOpenChange,overlayClassName:z,extra:"function"===typeof M?M({close:()=>p.current.close(),context:h}):M,renderSelectedContent:H,showSelectedTag:k,trigger:"click",placement:b,getPopupContainer:N,children:g.children}):(0,T.jsxs)("div",{className:s["input-inner"],onClick:()=>{P||d.current.modalOpen()},children:[(0,T.jsx)(K,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:A()(s.overlay,s["is-modal"],n),title:g.placeholder||j({id:"pleaseSelect"}),value:y,onChange:C,extra:"function"===typeof M?M({close:()=>d.current.close(),context:h}):M,showSelectedTag:k,renderSelectedContent:H,children:g.children}),X]})}),Q=e=>{let{api:t,className:n,displayItems:r,wrapClassName:i}=e,o=(0,l.A)(e,z);const{locale:d}=(0,M.A)(),[p,m]=(0,u.useState)(""),[_,x]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),{formatMessage:y}=(0,I.useIntl)({moduleName:"Common"}),[v,C]=(0,u.useState)(0),w=(0,P.A)(e=>{C(e.clientWidth)}),[N,F]=(0,u.useState)({}),{message:B}=f.App.useApp(),O=e=>{const t=e.filter(e=>_.get(e.value)!==e);0!==t.length&&x(e=>{const n=b()(e);return t.forEach(e=>{n.set(e.value,e)}),n})},L=e=>((e,t)=>Array.isArray(e)&&e.every(e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label"))?(t(e),e.map(e=>e.value)):e)(o.single?j()(e)?[]:[e]:e||[],O,o.valueType),[k,R]=h()(Object.assign({},o,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,_,o.valueType);o.onChange&&o.onChange(o.single?S()(t):t)}},"value"in o?{value:L(o.value)}:{defaultValue:L(o.defaultValue)})),D=V({maxLength:o.maxLength,single:o.single,setValue:R,value:k,message:()=>B.error(y({id:"maxSelectedCount"},{count:o.maxLength}))}),E=(0,u.useRef)(null);return(0,T.jsx)(c,{value:{inputWidth:v,mapping:_,searchText:p,setSearchText:m,appendMapping:O,setItems:e=>{N.setData(e),O(g()(o.dataFormat(e,{locale:d}),"list",[]))},getContentApi:()=>E.current,fetchApi:N,valueState:[k,D],props:o},children:(0,T.jsx)("div",{ref:w,className:A()(s["input".concat(o.inputContent&&"function"===typeof o.inputContent?"-custom":"")],{"select-input-disabled":!!o.disabled},n),children:(0,T.jsx)(q,(0,a.A)((0,a.A)({},t),{},{wrapClassName:i,loading:null,setFetchApi:F,getContentRef:e=>{e.current&&(E.current=e.current)},onRequestSuccess:e=>{O(g()(o.dataFormat(e,{locale:d}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};Q.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const H=(0,I.createWithIntl)({importMessages:k.A,moduleName:"Common"})(Q);H.useContext=o;const X=H},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var a=n(89379),l=n(53986),s=n(87558),r=n.n(s),i=n(97211),o=n(64671),c=n(83136),d=n.n(c),u=n(55199),p=n(73884);const h=e=>{let{params:t}=e;const{data:n}=t;return new Promise((e,t)=>{const a=new window.Image;a.src=n,a.addEventListener("load",()=>{e(n)}),a.addEventListener("error",e=>{t(e)})})},m="style_img-outer__4QLY5__hiFBw",_="style_img__PSExq__hiFBw",g="style_loading__WCOwA__hiFBw",f="style_error__+ECgZ__hiFBw";var x=n(18411),A=n(63743),y=n(70579);const v=["id","src","alt","onClick","loading","error","className","apis"],C=["id","src","alt","gender","loading","error","className","gap","icon","children","shape","size","width","height","defaultAvatar","apis"],j=e=>{let{data:t,className:n,alt:a,innerLoading:l,loading:s=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:i=(0,y.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:c,children:p,onClick:m,staticUrl:g}=e;const{staticUrl:f}=(0,A.usePreset)(),x=g||f||"";return(0,y.jsx)(r(),{loader:h,params:{data:/^https?:\/\//.test(t)?t:x+t},error:c||i,loading:l||s,render:e=>{let{data:t}=e;return"function"===typeof p?p({alt:a,className:d()(n,_),src:t}):(0,y.jsx)("img",{alt:a,className:d()(n,_),src:t,onClick:m})}})},w=(0,i.A)(j),b=e=>{let{loading:t,error:n,src:a,id:l,alt:s,className:r,children:i,apis:o,onClick:c}=e;const d=t&&(0,p.cloneElement)(t,{className:g}),u=n&&(0,p.cloneElement)(n,{className:f});return a?(0,y.jsx)(j,{alt:s,className:r,data:a,loading:d,error:u,onClick:c,children:i}):l?(0,y.jsx)(w,{alt:s,className:r,id:l,loading:d,innerLoading:d,error:u,innerError:u,apis:o,onClick:c,children:i}):u},N=e=>{let{id:t,src:n,alt:s,onClick:r,loading:i=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,y.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,apis:h}=e,_=(0,l.A)(e,v);return(0,y.jsx)("div",(0,a.A)((0,a.A)({},_),{},{"data-testid":"components-core-image",className:d()(p,m),children:b({loading:i,error:c,src:n,id:t,alt:s,className:p,apis:h,onClick:r})}))};N.Avatar=e=>{let{id:t,src:n,alt:s,gender:r,loading:i=(0,y.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,y.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,gap:h,icon:_,children:g,shape:f,size:A=100,width:v,height:j,defaultAvatar:w=x.A,apis:N}=e,S=(0,l.A)(e,C);const F=(()=>{const e=v&&j?{style:{width:v,height:j}}:{size:A};if(v&&v!==j&&(f="square"),t||n)return b({loading:i,error:c,src:n,defaultAvatar:w,id:t,alt:s,className:p,apis:N,children:t=>(0,y.jsx)(u.Avatar,(0,a.A)((0,a.A)({},t),{},{gap:h,shape:f},e))});if(r){const t=r&&["F","female","f"].indexOf(r)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,y.jsx)(u.Avatar,(0,a.A)((0,a.A)({},S),{},{src:(0,y.jsx)(o.default,{role:"touxiang",colorful:!0,type:t}),gap:h,shape:f},e))}return(0,y.jsx)(u.Avatar,(0,a.A)((0,a.A)((0,a.A)({},S),{},{gap:h,icon:_,shape:f,size:A,src:w},e),{},{children:g}))})();return(0,y.jsx)("div",(0,a.A)((0,a.A)({},S),{},{"data-testid":"components-core-image-avatar",className:d()(p,m),style:{width:v&&j?v:A,height:v&&j?j:A},children:F}))};const S=N},41654:(e,t,n)=>{n.d(t,{A:()=>f,K:()=>g});var a=n(89379),l=n(53986),s=n(45776),r=n(27047),i=n(33097),o=n.n(i),c=n(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?o()(e,"enName"):o()(e,"chName"),h=()=>n.e(719).then(n.t.bind(n,10719,19)).then(e=>e.__esModule?e.default:e),m={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:h},_=e=>{let{apis:t}=e,n=(0,l.A)(e,d);const{apis:i,locale:o}=(0,r.A)(),u=Object.assign({},{functionData:m},null===i||void 0===i?void 0:i.staticData,t);return(0,c.jsx)(s.Ay,(0,a.A)((0,a.A)({},n),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.map(e=>[e.code,(0,a.A)((0,a.A)({},e),{},{id:e.code,label:p(e,o),parentId:e.parentCode||null})])));return n}},u.functionData)}))};_.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},_.defaultData=h;const g=e=>{let{apis:t}=e,n=(0,l.A)(e,u);const{apis:i,locale:o}=(0,r.A)(),d=Object.assign({},{functionData:m},null===i||void 0===i?void 0:i.staticData,t);return(0,c.jsx)(s.yK,(0,a.A)((0,a.A)((0,a.A)({},n),d.functionData),{},{type:"function",getLabel:e=>p(e,o),transformData:e=>{let{data:t}=e;return t}}))};_.FunctionEnum=_.Enum=g;const f=_},43856:(e,t,n)=>{n.r(t),n.d(t,{AddressEnum:()=>h.qn,AddressInputField:()=>h.TM,AddressSelectField:()=>h.Ay,AdvancedSelectField:()=>m.Ay,CascaderField:()=>g.Ay,FetchButton:()=>o.A,FetchScrollLoader:()=>i.FetchScrollLoader,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>p.Zi,InputFileLink:()=>p.FI,InputFileText:()=>p.AG,ScrollLoader:()=>i.default,SearchInput:()=>d.A,SelectInnerInput:()=>u.A,SimpleBar:()=>c.A,SuperSelectField:()=>_.Ay,SuperSelectTableListField:()=>_.e0,SuperSelectUserField:()=>_.$9,TableField:()=>m.Bm,TypeDateRangePickerField:()=>A.A,UserField:()=>m.Eo,accept:()=>v.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>h.LH,createDeferred:()=>j(),createListField:()=>m.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>w.A,numberToPx:()=>b.v,pxToNumber:()=>b.j,useFileUpload:()=>p.lN,useResize:()=>y.A,withAddressApi:()=>h.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var a=n(69484),l=n(76801);const s=e=>{const t=e=>{const n=(0,l.h)();if(!e||e===n||!e.parentElement)return n;return[].slice.call(e.classList,0).find(e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1)?e:t(e.parentElement)};return t(e)};var r=n(97211),i=n(78784),o=n(73025),c=n(17342),d=n(73161),u=n(30509),p=n(17508),h=n(93761),m=n(12392),_=n(60586),g=n(45776),f=n(41654),x=n(53392),A=n(89319),y=n(77964),v=n(81348),C=n(1582),j=n.n(C),w=n(55490),b=n(91176)},45776:(e,t,n)=>{n.d(t,{yK:()=>k,ON:()=>g,Ay:()=>z});var a=n(53986),l=n(89379),s=n(30509),r=n(73884),i=n(96418),o=n.n(i),c=n(55199),d=n(64671),u=n(73161),p=n(33097),h=n.n(p),m=n(79686),_=n.n(m);const g=e=>{const t=Array.from(e.values()),n=t.filter(e=>null===e.parentId),a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],a=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach(e=>{a(e.id)}))};return a(t),n},s=(t,n)=>{const a=t=>{const l=e.get(t);return l?n(l)?l:_()(l.parentId)?null:a(l.parentId):null};return a(t)},r=t=>{const a=e.get(t);if(!a)return[];const l=a.parentId;if(_()(l))return n;return e.get(l).children},i=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map(n=>{const a=t.filter(e=>e.parentId===n.id);return Object.assign({},n,{children:e(a)})}):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const a=e=>{if(e.children&&e.children.length>0)return a(e.children.find(t=>t.children&&e.children.length>0)||h()(e.children,"0"));const t=l(e.parentId).find(e=>e.children&&e.children.length>0);return t?a(t):e},s=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],a=e.get(t);return!a||_()(a.parentId)?n:s(a.parentId,n)},r=a(n);return s(h()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,e=>n.indexOf(e.id)>-1))return{checked:!0,indeterminate:!1};const a=(t=>{const a=t=>{const l=e.get(t);return l?(s=l,n.indexOf(s.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find(e=>!!a(e.id)):void 0):null;var s};return!!a(t)})(t);return a?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const i=e.get(t);if(!i)return;n.push(t),l(t).forEach(e=>{a(n,e.id)});const o=r(t),c=o.every(e=>n.indexOf(e.id)>-1);i.parentId&&c&&(o.forEach(e=>{a(n,e.id)}),s(i.parentId))};return s(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const s=e.get(t);if(!s)return;if(n.indexOf(s.id)>-1)return void a(n,s.id);const i=r(t);s.parentId&&(i.forEach(e=>{t!==e.id&&n.push(e.id)}),l(s.parentId))};return l(t),n},treeData:i,treeMapping:new Map(i.map(e=>[e.id,e]))}};var f=n(74065),x=n.n(f),A=n(19853),y=n.n(A),v=n(17342),C=n(83136),j=n.n(C);const w={content:"style_content__Hxlt9__hiFBw",columns:"style_columns__FmtPF__hiFBw","content-item":"style_content-item__i6HCO__hiFBw","last-level-area":"style_last-level-area__2y7jQ__hiFBw","is-popup":"style_is-popup__+r3Mn__hiFBw",menu:"style_menu__WZUVE__hiFBw","scroll-plus-box":"style_scroll-plus-box__QcTst__hiFBw","menu-label":"style_menu-label__iGt0Z__hiFBw","menu-item":"style_menu-item__hXHfm__hiFBw","checkbox-hidden":"style_checkbox-hidden__Xpx7J__hiFBw",loading:"style_loading__ZwrVe__hiFBw"};var b=n(87558),N=n(47458),S=n(25438),F=n(70579),B=n(27047);const O=["data","name","type","cache","children","getLabel"],P=new Map,L=(0,b.withFetch)(e=>{let{data:t,name:n,type:s,cache:i,children:o,getLabel:c}=e,d=(0,a.A)(e,O);const u=(0,r.useMemo)(()=>new Map(t.map(e=>[e.code,(0,l.A)((0,l.A)({},e),{},{id:e.code,label:c?c(e):e.chName,parentId:e.parentCode||null})])),[t,c]).get(n);return P.set("".concat(n,"_").concat(s),u),o(u,d)}),I=e=>{const{locale:t}=(0,B.A)(),n="".concat(t,"_").concat(e.name,"_").concat(e.type),a=P.get(n);return a&&!e.force?e.children(a):(0,F.jsx)(L,(0,l.A)({},e))};I.defaultProps={children:e=>h()(e,"label","")};const k=I,M=["maxLength","nodeFormat","dataFormat"],T=s.A.useContext,R=(0,b.withFetch)(e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,F.jsx)(v.A,{className:w["scroll-plus-box"],children:(0,F.jsx)(c.List,{className:S.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,F.jsx)(c.List.Item,{className:j()(S.A["list-item"],{[S.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,F.jsx)("span",{className:S.A["item-label"],children:e.label})})}})})}),D=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:i,props:p}=T(),[m,_]=(0,r.useState)(""),f=o()(p.dataFormat),{formatMessage:A}=(0,N.useIntl)({moduleName:"Common"}),C=i.data,b=(0,r.useMemo)(()=>new Map(f(C).list.map(e=>[e.value,e])),[C,f]),B=(0,r.useMemo)(()=>g(b),[b]),O=(0,r.useRef)({});O.current={createMergeTree:p.createMergeTree,loadMore:i.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:B};const[P,L]=(0,r.useState)(()=>{const e=t.find(e=>!!b.get(e));return B.getSelectedQueue(e||h()(i.data.find(e=>e.children&&e.children.length>0),"id")||h()(i.data,"[0].id"),b)});(0,r.useEffect)(()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:a,treeUtils:l}=O.current;if(!e)return;const s=b.get(x()(P));if(!s)return;const r=l.getSelectedQueue(s.id);y()(P,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):L(r)},[P,b]);const I=(e,l)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?B.setNodeChecked(l,t):B.setNodeUnchecked(l,t)})();s.length>a?c.message.error(A({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[x()(s)]:s)},k=e=>{const t=b.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},M=!p.openLoadData&&"function"===typeof p.onSearch,D=M&&m&&(0,F.jsx)(R,{data:{searchText:m},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:b})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{I(!t,e.id),!t&&L(B.getSelectedQueue(e.id,b)),_("")}});return(0,F.jsxs)("div",{className:j()(w.content,{[w["is-popup"]]:p.isPopup,[w["has-search"]]:M}),style:{"--menu-item-width":p.menuItemWidth},children:[M&&(0,F.jsx)(u.A,{isPopup:p.isPopup,className:j()(S.A["search-input"],{[S.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||A({id:"search"}),value:m,onSearch:e=>{_(e)}}),D||(0,F.jsx)("div",{children:(0,F.jsx)(v.A,{className:w.scroller,options:{autoHide:!1},children:(0,F.jsxs)("div",{className:w.columns,children:[P.map((e,n)=>{const a=b.get(e),i=B.getSiblingNode(e),o=!k(null===a||void 0===a?void 0:a.id)&&n>0;return(0,F.jsx)(v.A,{className:j()(w["content-item"],{[w["last-level-area"]]:o}),children:o?(0,F.jsx)(c.Space,{wrap:!0,children:i.map(e=>(0,r.createElement)(c.Checkbox,(0,l.A)((0,l.A)({},B.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>I(t.target.checked,e.id)}),e.label))}):(0,F.jsx)(c.Menu,{className:j()(w.menu),onSelect:e=>{const n=b.get(e.key);if(n)if(k(n.id))L(B.getSelectedQueue(n.id,b));else{const{checked:e}=B.computedCheckboxStatus(n.id,t);I(!e,n.id)}},selectedKeys:n===P.length-1?[]:P,items:i.map(e=>({key:e.id,label:(0,F.jsxs)(c.Space,{className:j()(w["menu-item"],{[w["checkbox-hidden"]]:p.onlyAllowLastLevel&&k(e.id)}),children:[!p.onlyAllowLastLevel&&(0,F.jsx)(c.Checkbox,(0,l.A)((0,l.A)({},B.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>I(t.target.checked,e.id)})),(0,F.jsx)("div",{className:w["menu-label"],children:e.label}),k(e.id)&&(0,F.jsx)(d.default,{className:w["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},h()(i,"[0].id",n))}),i.isComplete?null:(0,F.jsx)("div",{className:w.loading,children:(0,F.jsx)(c.Spin,{size:"small"})})]})})})]})},E=e=>{let{maxLength:t,nodeFormat:n,dataFormat:r}=e,i=(0,a.A)(e,M);return(0,F.jsx)(s.A,(0,l.A)((0,l.A)({},i),{},{dataFormat:e=>r(e,n),children:e=>{let{value:n,setValue:a}=e;return(0,F.jsx)(D,(0,l.A)((0,l.A)({},i),{},{size:t,value:n,setValue:a}))}}))};E.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:n}=t;return Array.from(n.values()).filter(t=>t.label.indexOf(e)>-1)},dataFormat:(e,t)=>{const n=(e,a)=>{const l=[];return l.push(...(e||[]).map(e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...n(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:a})))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const a=t=>t.map(t=>t.id===e?Object.assign({},t,{children:n&&n.map(t=>Object.assign({},t,{parentId:e}))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:a(t.children)}):t);return a(t)}};const z=E},53392:(e,t,n)=>{n.d(t,{A:()=>g,W:()=>_});var a=n(89379),l=n(53986),s=n(45776),r=n(27047),i=n(33097),o=n.n(i),c=n(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?o()(e,"enName"):o()(e,"chName"),h={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7183).then(n.t.bind(n,57183,19)).then(e=>e.__esModule?e.default:e)},m=e=>{let{apis:t}=e,n=(0,l.A)(e,d);const{apis:i,locale:o}=(0,r.A)(),u=Object.assign({},{industryData:h},null===i||void 0===i?void 0:i.staticData,t);return(0,c.jsx)(s.Ay,(0,a.A)((0,a.A)({},n),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.filter(e=>"000"!==e.code).map(e=>[e.code,(0,a.A)((0,a.A)({},e),{},{id:e.code,label:p(e,o),parentId:e.parentCode||null})])));return n}},u.industryData)}))};m.defaultProps={overlayWidth:"635px"};const _=e=>{let{apis:t}=e,n=(0,l.A)(e,u);const{apis:i,locale:o}=(0,r.A)(),d=Object.assign({},{industryData:h},null===i||void 0===i?void 0:i.staticData,t);return(0,c.jsx)(s.yK,(0,a.A)((0,a.A)((0,a.A)({},n),d.industryData),{},{type:"function",getLabel:e=>p(e,o),transformData:e=>{let{data:t}=e;return t}}))};m.IndustryEnum=m.Enum=_;const g=m},55490:(e,t,n)=>{n.d(t,{A:()=>a.isNotEmpty});var a=n(39129)},60586:(e,t,n)=>{n.d(t,{e0:()=>f,$9:()=>x,Ay:()=>g});var a=n(89379),l=n(73884),s=n(21826),r=n.n(s),i=n(3382),o=n(40438),c=n(55199);const d="style_select-list-item-description__ndJSX__hiFBw",u="style_select-list-item-label__gyGnt__hiFBw";var p=n(83136),h=n.n(p),m=(n(96316),n(70579));const _=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{children:e=>{let{components:t}=e;return(0,m.jsxs)(c.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,!1!==n.isPopup&&t.selectedTag]})},renderModal:e=>{const{props:t,open:n,onOpenChange:a,value:l,onComplete:r}=e,{placeholder:o,children:c,showSelectedTag:d,onConfirm:u}=t;return(0,m.jsx)(i.default,{title:o,open:n,onClose:()=>{a(!1)},footer:d&&(0,m.jsx)(s.SelectedTagList,{}),onConfirm:()=>{if(r(),"function"===typeof u)return u(l)},children:c(e)})}},e);return(0,m.jsx)(r(),(0,a.A)((0,a.A)({},n),{},{ref:t}))}),g=_,f=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{renderModal:e=>{const{props:t,open:n,value:a,onOpenChange:l,onComplete:s}=e,{placeholder:r,children:o,onConfirm:c}=t;return(0,m.jsx)(i.default,{title:r,open:n,onClose:()=>{l(!1)},onConfirm:()=>{if(s(),"function"===typeof c)return c(a)},children:o(e)})}},e);return(0,m.jsx)(s.SelectTableList,(0,a.A)((0,a.A)({},n),{},{ref:t}))}),x=(0,l.forwardRef)((e,t)=>(0,m.jsx)(_,(0,a.A)((0,a.A)({},e),{},{ref:t,renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:l}=n;return(0,m.jsxs)(c.Flex,{gap:8,children:[(0,m.jsx)(o.default.Avatar,(0,a.A)((0,a.A)({},Object.assign({},t.avatar)),{},{size:32,gender:"M"})),(0,m.jsxs)(c.Flex,{vertical:!0,gap:8,align:"center",children:[(0,m.jsx)("div",{className:h()(u,"select-list-item-label"),children:t[l]}),t.description&&(0,m.jsx)("div",{className:h()(d,"select-list-item-description"),children:t.description})]})]})}})))},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>a});const a=1e15,l=e=>{let t,n,l,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],i=["","\u4e07","\u4ebf","\u5146"],o=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=a)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(l=e.split("."),t=l[0],n=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let a=0;a<n;a++){let l=t.substr(a,1),o=n-a-1,d=o/4,u=o%4;"0"===l?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(l)]+r[u]),0===u&&e<4&&(c+=i[d])}c+="\u5143"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!==e&&(c+=s[Number(e)]+o[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},73161:(e,t,n)=>{n.d(t,{A:()=>g});var a=n(89379),l=n(53986),s=n(55199),r=n(83136),i=n.n(r);const o="style_search-input__8aH1G__hiFBw",c="style_is-popup__L0973__hiFBw";var d=n(64671),u=n(73884),p=n(51941),h=n(70579);const m=["value","debounce","onSearch","isPopup","placeholder","className"],_=e=>{let{value:t,debounce:n,onSearch:r,isPopup:_,placeholder:g,className:f}=e,x=(0,l.A)(e,m);const[A,y]=(0,u.useState)(t),v=(0,u.useRef)(t),C=(0,p.useDebouncedCallback)(r,n);return(0,u.useEffect)(()=>{t!==v.current&&(y(t),v.current=t)},[t]),(0,h.jsx)(s.Input.Search,(0,a.A)((0,a.A)({},x),{},{allowClear:!0,className:i()(f,o,{[c]:_}),value:A,placeholder:g,prefix:(0,h.jsx)(d.default,{type:"icon-sousuo"}),enterButton:(0,h.jsx)(d.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;v.current=t,y(t),C(t)},onSearch:e=>{C(e)}}))};_.defaultProps={debounce:500};const g=_},74981:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,a.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,a.useContext)(t)}}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(73884),l=n(79889),s=n.n(l),r=n(93950),i=n.n(r),o=n(96418),c=n.n(o);const d=(e,t)=>{const n=(0,a.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,a.useRef)(null),r=c()(e);return(0,a.useLayoutEffect)(()=>{const e=l.current,t=()=>window.requestAnimationFrame(()=>{e&&r(e)});t();const a=new ResizeObserver((n.current.isDebounce?i():s())(t,n.current.time));return e&&a.observe(e),()=>{a.disconnect()}},[r]),l}},78784:(e,t,n)=>{n.d(t,{default:()=>l.a});n(21219);var a=n(95183),l=n.n(a);n.o(a,"FetchScrollLoader")&&n.d(t,{FetchScrollLoader:function(){return a.FetchScrollLoader}})},81348:(e,t,n)=>{n.d(t,{A:()=>a.computedAccept});var a=n(24818)},89319:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(89379),l=n(20454),s=n(55199),r=n(10986),i=n.n(r),o=n(57469),c=n.n(o),d=n(20492),u=n(47458),p=n(70579);const h=(0,u.createWithIntl)({importMessages:d.A,moduleName:"Common"})(e=>{let t=Object.assign({},((0,l.A)(e),e));const{formatMessage:n}=(0,u.useIntl)({moduleName:"Common"}),r=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[o,d]=i()(t);return(0,p.jsxs)(s.Space.Compact,{children:[(0,p.jsx)(s.Select,{style:{width:"120px"},value:(null===o||void 0===o?void 0:o.type)||"date",onChange:e=>{d(t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[c()(t.value[0]).startOf(e||"date"),c()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}})},options:Array.from(r).map(e=>{let[t,n]=e;return{label:n,value:t}})}),(0,p.jsx)(s.DatePicker.RangePicker,(0,a.A)((0,a.A)({},t),{},{picker:(null===o||void 0===o?void 0:o.type)||"date",value:Array.isArray(null===o||void 0===o?void 0:o.value)&&2===o.value.length&&o.value.map(e=>e&&c()(e)),onChange:e=>{d(t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})))}}))]})})},91176:(e,t,n)=>{n.d(t,{j:()=>l,v:()=>a});const a=e=>"number"===typeof e?"".concat(e,"px"):e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},93761:(e,t,n)=>{n.d(t,{qn:()=>V,TM:()=>te,LH:()=>T,Ay:()=>K,NY:()=>R,DF:()=>W});var a=n(53986),l=n(89379),s=n(30509),r=n(25438),i=n(55199),o=n(27047),c=n(83136),d=n.n(c),u=n(64671),p=n(73884),h=n(21485),m=n(56434),_=n.n(m),g=n(15797),f=n.n(g),x=n(33097),A=n.n(x);const y="style_address__DIuRX__hiFBw",v="style_is-popup__tqVvp__hiFBw",C="style_title__FAe12__hiFBw",j="style_scroll-box__JWiDl__hiFBw",w="style_scroll-plus-box__lidEW__hiFBw",b="style_content__lAARZ__hiFBw",N="style_col-left__WPfeS__hiFBw",S="style_col-right__z0e9-__hiFBw";var F=n(87558),B=n.n(F);const O=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var P=n(47458),L=n(70579);const I=["name","data","getAddressApi","children"],k=["data"],M=s.A.useContext,T=e=>{let{city:t,province:n,country:a}=e;const l=f()(()=>{const e=[];return["gangaotai","municipality"].forEach(n=>{e.push(...t.relations[n])}),["provinces","continents"].forEach(n=>{t.relations[n].forEach(n=>{e.push(n),e.push(...t.relations[n])})}),e.map(e=>t.list[e])});return{getCity:f()(e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}}),getChinaHotCities:f()(()=>t.relations[2].map(e=>t.list[e])),getChinaCities:f()(()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map(e=>Object.assign({id:e},t.list[e]))),getCountries:f()(()=>["1",...a.relations.continents].map(e=>Object.assign({id:e},a.list[e]))),getList:f()((e,l)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map(e=>t.list[e]);const i=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return i.name="".concat(s?"\u5168":"")+i.name,[i];const o=t.relations[e].map(e=>t.list[e]);return n.relations.provinces.indexOf(e)>-1&&s&&(i.name="\u5168"+i.name,o.splice(0,0,i)),a.relations.continents.indexOf(e)>-1&&r&&(i.name="\u5168"+i.name,o.splice(0,0,i)),o}),getNationalityList:f()(e=>{let n=_()(t);return"1"===e&&n.relations[1].unshift("410"),"350"===e&&n.relations[350].unshift("410"),n.relations[e].filter(e=>n.list[e]).map(e=>n.list[e])}),getCityByName:f()(e=>{const t=l();let n;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find(e=>(n=t.find(e),n)),n}),combineCities:f()((e,n)=>[...n.filter(n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n),e]),searchCities:f()(e=>{if(!e)return[];return l().filter(t=>["pinyin","name","enName","spelling"].some(n=>t[n].toUpperCase().indexOf(e.toUpperCase())>-1)).map(e=>{const n=e.parentCode?t.list[e.parentCode]:null;return{label:n?"".concat(n.name,"\xb7").concat(e.name):e.name,value:e.code}})})}},R=(e,t)=>"en-US"===t?A()(e,"enName"):A()(e,"name"),D={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7820).then(n.t.bind(n,37820,19)).then(e=>e.__esModule?e.default:e)},E=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:l}=M(),[s,c]=(0,p.useState)(""),[m,_]=(0,p.useState)("2"),{formatMessage:g}=(0,P.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,o.A)(),{getCity:x,getChinaCities:A,getCountries:F,getList:B,searchCities:O}=(0,p.useMemo)(()=>T(a.data),[a.data]),I=e=>{if(l.single)return void n([e]);const a=t.slice(0),s=a.indexOf(e);s>-1?a.splice(s,1):a.push(e),n(a)},k=s&&(0,L.jsx)(h.A,{className:w,children:(0,L.jsx)(i.List,{className:r.A.list,size:"small",dataSource:O(s),rowKey:"value",renderItem:e=>(0,L.jsx)(i.List.Item,{className:r.A["list-item"],onClick:()=>{I(e.value),c("")},children:(0,L.jsx)("span",{className:r.A["item-label"],children:e.label})})})});return(0,L.jsxs)("div",{className:d()(y,{[v]:l.isPopup}),children:[(0,L.jsx)(i.Input.Search,{className:d()(r.A["search-input"],{[r.A["is-popup"]]:l.isPopup}),placeholder:l.searchPlaceholder||g({id:"searchCity"}),prefix:(0,L.jsx)(u.default,{type:"icon-sousuo"}),enterButton:(0,L.jsx)(u.default,{type:"icon-sousuo"}),value:s,allowClear:!0,onChange:e=>{const t=e.target.value;c(t)},onSearch:e=>{c(e)}}),(0,L.jsx)("div",{className:b,children:k||(0,L.jsxs)(i.Row,{wrap:!1,children:[(0,L.jsx)(i.Col,{className:N,children:(0,L.jsx)(i.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,L.jsx)(P.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,L.jsx)(h.A,{className:j,children:(0,L.jsx)(i.Menu,{selectedKeys:[m],onSelect:e=>{_(e.key)},items:A().map(e=>({label:R(e,f),key:e.id}))})})},{key:"1",label:(0,L.jsx)(P.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,L.jsx)(h.A,{className:j,children:(0,L.jsx)(i.Menu,{selectedKeys:[m],onSelect:e=>{_(e.key)},items:F().map(e=>({label:R(e,f),key:e.id}))})})}]})}),(0,L.jsxs)(i.Col,{flex:1,className:S,children:[(0,L.jsx)(i.Divider,{className:C,orientation:"left",children:R(x(m).city,f)}),(0,L.jsx)(h.A,{className:j,children:(0,L.jsx)(i.Space,{wrap:!0,children:B(m,{showChinaQuan:l.showChinaQuan,showForeignQuan:l.showForeignQuan}).map(e=>(0,L.jsx)(i.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{I(e.code)},children:R(e,f)},e.code))})})]})]})})]})},z=e=>(0,L.jsx)(s.A,(0,l.A)((0,l.A)({},e),{},{children:e=>{let{value:t,setValue:n}=e;return(0,L.jsx)(P.IntlProvider,{moduleName:"AddressSelect",importMessages:O,children:(0,L.jsx)(E,{value:t,setValue:n})})}}));z.defaultProps={overlayWidth:"500px",isPopup:!0,api:D,dataFormat:(e,t)=>{let{city:n}=e;const{locale:a}=Object.assign({},t);return{list:Object.values(n.list).map(e=>Object.assign({},e,{value:e.code,label:R(e,a)}))}}};const V=(0,F.withFetch)(e=>{let{name:t,data:n,getAddressApi:l,children:s}=e,r=(0,a.A)(e,I);const{locale:i}=(0,o.A)(),c=(0,p.useMemo)(()=>T(n),[n]);return l?s(c):(0,L.jsx)(B(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise(e=>{setTimeout(()=>{e(c.getCity(n))},0)})},render:e=>{let{data:t}=e;return s(t,Object.assign({},r,{locale:i}))}})});V.defaultProps=(0,l.A)((0,l.A)({},D),{},{displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?"".concat(R(a,s),"\xb7").concat(R(n,s)):R(n,s)}});const W=e=>{const t=(0,F.withFetch)(t=>{let{data:n}=t,s=(0,a.A)(t,k);const r=(0,p.useMemo)(()=>T(n),[n]);return(0,L.jsx)(e,(0,l.A)((0,l.A)({},s),{},{addressApi:r}))});return t.defaultProps=(0,l.A)({},D),t};z.AddressEnum=z.Enum=V,z.createAddressApi=T,z.withAddressApi=W,z.getLabelForLocal=R;const K=z;var U=n(10986),q=n.n(U),Q=n(78491),H=n.n(Q),X=n(20492),Z=n(22616),Y=n.n(Z),G=n(1488),J=n.n(G);const $=["isPopup","size","disabled","inputPlaceholder","onBlur","className"],ee=e=>{const{isPopup:t,size:n,disabled:s,inputPlaceholder:r,onBlur:o,className:c}=e,d=(0,a.A)(e,$),[u,p]=q()(e),h=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:m}=(0,P.useIntl)({moduleName:"Common"}),_=H()(e=>{o&&o(e)});return(0,L.jsx)("div",{ref:_,children:(0,L.jsxs)(i.Row,{gutter:10,children:[(0,L.jsx)(i.Col,{span:12,children:(0,L.jsx)(K,(0,l.A)((0,l.A)({},Y()(d,h)),{},{className:c,disabled:s,single:!0,size:n,value:A()(u,"city"),onChange:e=>{p({city:e,detail:A()(u,"detail")})}}))}),(0,L.jsx)(i.Col,{span:12,children:(0,L.jsx)(i.Input,(0,l.A)((0,l.A)({},J()(d,h)),{},{className:c,placeholder:r||m({id:"pleaseInput"}),disabled:s,size:n,value:A()(u,"detail"),onChange:e=>{p({city:A()(u,"city"),detail:e.target.value})}}))})]})})};ee.defaultProps={};const te=(0,P.createWithIntl)({importMessages:X.A,moduleName:"Common"})(ee)},97211:(e,t,n)=>{n.d(t,{A:()=>a.withOSSFile});var a=n(24818)}}]);
2
- //# sourceMappingURL=3856.f1095570.chunk.js.map