@kne-components/components-core 0.1.73 → 0.1.74

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 (193) hide show
  1. package/build/asset-manifest.json +120 -120
  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/1054.e9c501f5.chunk.css +2 -0
  6. package/build/static/css/1054.e9c501f5.chunk.css.map +1 -0
  7. package/build/static/css/1151.6ff4e4ec.chunk.css +2 -0
  8. package/build/static/css/1151.6ff4e4ec.chunk.css.map +1 -0
  9. package/build/static/css/1153.f0e789bb.chunk.css +2 -0
  10. package/build/static/css/1153.f0e789bb.chunk.css.map +1 -0
  11. package/build/static/css/1454.9ea053b8.chunk.css +2 -0
  12. package/build/static/css/{1454.45f19f11.chunk.css.map → 1454.9ea053b8.chunk.css.map} +1 -1
  13. package/build/static/css/1554.6877ec3b.chunk.css +2 -0
  14. package/build/static/css/{1554.39bba381.chunk.css.map → 1554.6877ec3b.chunk.css.map} +1 -1
  15. package/build/static/css/2503.9b338e38.chunk.css +2 -0
  16. package/build/static/css/{2503.b9e2c346.chunk.css.map → 2503.9b338e38.chunk.css.map} +1 -1
  17. package/build/static/css/2517.f2f3d772.chunk.css +2 -0
  18. package/build/static/css/2517.f2f3d772.chunk.css.map +1 -0
  19. package/build/static/css/2716.7657a749.chunk.css +2 -0
  20. package/build/static/css/{2716.522fa51e.chunk.css.map → 2716.7657a749.chunk.css.map} +1 -1
  21. package/build/static/css/2730.d174011a.chunk.css +2 -0
  22. package/build/static/css/{2730.22ccc2b7.chunk.css.map → 2730.d174011a.chunk.css.map} +1 -1
  23. package/build/static/css/289.581b21da.chunk.css +2 -0
  24. package/build/static/css/{289.2c121d1f.chunk.css.map → 289.581b21da.chunk.css.map} +1 -1
  25. package/build/static/css/3333.f651c2f6.chunk.css +2 -0
  26. package/build/static/css/3333.f651c2f6.chunk.css.map +1 -0
  27. package/build/static/css/{3843.6ec84d56.chunk.css → 3843.472c0a3d.chunk.css} +2 -2
  28. package/build/static/css/{3843.6ec84d56.chunk.css.map → 3843.472c0a3d.chunk.css.map} +1 -1
  29. package/build/static/css/4265.13e725cc.chunk.css +2 -0
  30. package/build/static/css/4265.13e725cc.chunk.css.map +1 -0
  31. package/build/static/css/4319.567e3ac7.chunk.css +2 -0
  32. package/build/static/css/4319.567e3ac7.chunk.css.map +1 -0
  33. package/build/static/css/4666.eeaa6916.chunk.css +2 -0
  34. package/build/static/css/{4666.8a9bf943.chunk.css.map → 4666.eeaa6916.chunk.css.map} +1 -1
  35. package/build/static/css/5443.13f679f1.chunk.css +2 -0
  36. package/build/static/css/5443.13f679f1.chunk.css.map +1 -0
  37. package/build/static/css/5600.4e57458e.chunk.css +2 -0
  38. package/build/static/css/5600.4e57458e.chunk.css.map +1 -0
  39. package/build/static/css/{5996.a43fee52.chunk.css → 5996.3d437bcc.chunk.css} +2 -2
  40. package/build/static/css/{5996.a43fee52.chunk.css.map → 5996.3d437bcc.chunk.css.map} +1 -1
  41. package/build/static/css/6779.98c2c63f.chunk.css +2 -0
  42. package/build/static/css/6779.98c2c63f.chunk.css.map +1 -0
  43. package/build/static/css/7121.c6423f6e.chunk.css +2 -0
  44. package/build/static/css/7121.c6423f6e.chunk.css.map +1 -0
  45. package/build/static/css/7227.28f09619.chunk.css +2 -0
  46. package/build/static/css/{7227.0515d7ce.chunk.css.map → 7227.28f09619.chunk.css.map} +1 -1
  47. package/build/static/css/8017.55786be0.chunk.css +2 -0
  48. package/build/static/css/8017.55786be0.chunk.css.map +1 -0
  49. package/build/static/css/8148.be046774.chunk.css +2 -0
  50. package/build/static/css/{8148.beaa3442.chunk.css.map → 8148.be046774.chunk.css.map} +1 -1
  51. package/build/static/css/{8725.bff4f99d.chunk.css → 8725.cfe5ad33.chunk.css} +2 -2
  52. package/build/static/css/{8725.bff4f99d.chunk.css.map → 8725.cfe5ad33.chunk.css.map} +1 -1
  53. package/build/static/css/9053.e2f57df7.chunk.css +2 -0
  54. package/build/static/css/{9053.bfd4fbb6.chunk.css.map → 9053.e2f57df7.chunk.css.map} +1 -1
  55. package/build/static/css/931.32af0366.chunk.css +2 -0
  56. package/build/static/css/931.32af0366.chunk.css.map +1 -0
  57. package/build/static/css/9449.720a82e6.chunk.css +2 -0
  58. package/build/static/css/{9449.95a4fc0d.chunk.css.map → 9449.720a82e6.chunk.css.map} +1 -1
  59. package/build/static/js/1054.5ada4a5a.chunk.js +2 -0
  60. package/build/static/js/1054.5ada4a5a.chunk.js.map +1 -0
  61. package/build/static/js/{1106.e313b57f.chunk.js → 1106.a8606eeb.chunk.js} +2 -2
  62. package/build/static/js/{1106.e313b57f.chunk.js.map → 1106.a8606eeb.chunk.js.map} +1 -1
  63. package/build/static/js/{1153.cdd0455a.chunk.js → 1153.67e35390.chunk.js} +3 -3
  64. package/build/static/js/{1153.cdd0455a.chunk.js.map → 1153.67e35390.chunk.js.map} +1 -1
  65. package/build/static/js/1454.0454b67a.chunk.js +3 -0
  66. package/build/static/js/{1454.6cf0187d.chunk.js.map → 1454.0454b67a.chunk.js.map} +1 -1
  67. package/build/static/js/1554.4b2601e2.chunk.js +3 -0
  68. package/build/static/js/{1554.e09b66e4.chunk.js.map → 1554.4b2601e2.chunk.js.map} +1 -1
  69. package/build/static/js/2503.c032e9f7.chunk.js +2 -0
  70. package/build/static/js/{2503.1c389f4c.chunk.js.map → 2503.c032e9f7.chunk.js.map} +1 -1
  71. package/build/static/js/2517.466eb88f.chunk.js +2 -0
  72. package/build/static/js/2517.466eb88f.chunk.js.map +1 -0
  73. package/build/static/js/2615.8a87fae7.chunk.js +2 -0
  74. package/build/static/js/{2615.e5c078a9.chunk.js.map → 2615.8a87fae7.chunk.js.map} +1 -1
  75. package/build/static/js/2716.5d168021.chunk.js +3 -0
  76. package/build/static/js/{2716.27c5667d.chunk.js.map → 2716.5d168021.chunk.js.map} +1 -1
  77. package/build/static/js/2730.b74e154b.chunk.js +2 -0
  78. package/build/static/js/{2730.1c7f0b88.chunk.js.map → 2730.b74e154b.chunk.js.map} +1 -1
  79. package/build/static/js/{289.6692b4d0.chunk.js → 289.a932f0cb.chunk.js} +2 -2
  80. package/build/static/js/{289.6692b4d0.chunk.js.map → 289.a932f0cb.chunk.js.map} +1 -1
  81. package/build/static/js/{3333.607e8d51.chunk.js → 3333.7d916fb8.chunk.js} +2 -2
  82. package/build/static/js/{3333.607e8d51.chunk.js.map → 3333.7d916fb8.chunk.js.map} +1 -1
  83. package/build/static/js/36.c955a524.chunk.js +2 -0
  84. package/build/static/js/36.c955a524.chunk.js.map +1 -0
  85. package/build/static/js/{3843.3ff99ced.chunk.js → 3843.cab1298e.chunk.js} +2 -2
  86. package/build/static/js/{3843.3ff99ced.chunk.js.map → 3843.cab1298e.chunk.js.map} +1 -1
  87. package/build/static/js/4265.3d54a555.chunk.js +2 -0
  88. package/build/static/js/{4265.e22830a4.chunk.js.map → 4265.3d54a555.chunk.js.map} +1 -1
  89. package/build/static/js/4319.107d8597.chunk.js +2 -0
  90. package/build/static/js/4319.107d8597.chunk.js.map +1 -0
  91. package/build/static/js/{4666.b9b9c4a0.chunk.js → 4666.0609ecea.chunk.js} +3 -3
  92. package/build/static/js/{4666.b9b9c4a0.chunk.js.map → 4666.0609ecea.chunk.js.map} +1 -1
  93. package/build/static/js/5443.4b3b17bd.chunk.js +2 -0
  94. package/build/static/js/{5443.50c88a58.chunk.js.map → 5443.4b3b17bd.chunk.js.map} +1 -1
  95. package/build/static/js/5600.0213c0a4.chunk.js +2 -0
  96. package/build/static/js/5600.0213c0a4.chunk.js.map +1 -0
  97. package/build/static/js/5698.04cd2f57.chunk.js +2 -0
  98. package/build/static/js/5698.04cd2f57.chunk.js.map +1 -0
  99. package/build/static/js/{5996.0da51736.chunk.js → 5996.188d3b9a.chunk.js} +2 -2
  100. package/build/static/js/{5996.0da51736.chunk.js.map → 5996.188d3b9a.chunk.js.map} +1 -1
  101. package/build/static/js/{6569.14bb2fa7.chunk.js → 6569.d26ad462.chunk.js} +2 -2
  102. package/build/static/js/{6569.14bb2fa7.chunk.js.map → 6569.d26ad462.chunk.js.map} +1 -1
  103. package/build/static/js/6779.fe9df5fe.chunk.js +2 -0
  104. package/build/static/js/6779.fe9df5fe.chunk.js.map +1 -0
  105. package/build/static/js/7121.ab25af75.chunk.js +2 -0
  106. package/build/static/js/{7121.36677ce3.chunk.js.map → 7121.ab25af75.chunk.js.map} +1 -1
  107. package/build/static/js/7227.0e640cbf.chunk.js +3 -0
  108. package/build/static/js/{7227.35ffa4e7.chunk.js.map → 7227.0e640cbf.chunk.js.map} +1 -1
  109. package/build/static/js/{8017.f20c5b93.chunk.js → 8017.444012e5.chunk.js} +2 -2
  110. package/build/static/js/{8017.f20c5b93.chunk.js.map → 8017.444012e5.chunk.js.map} +1 -1
  111. package/build/static/js/{8148.97934e43.chunk.js → 8148.d173d5b4.chunk.js} +3 -3
  112. package/build/static/js/{8148.97934e43.chunk.js.map → 8148.d173d5b4.chunk.js.map} +1 -1
  113. package/build/static/js/{8725.d4521402.chunk.js → 8725.80855570.chunk.js} +2 -2
  114. package/build/static/js/{8725.d4521402.chunk.js.map → 8725.80855570.chunk.js.map} +1 -1
  115. package/build/static/js/{9053.48a1c333.chunk.js → 9053.3584c917.chunk.js} +3 -3
  116. package/build/static/js/{9053.48a1c333.chunk.js.map → 9053.3584c917.chunk.js.map} +1 -1
  117. package/build/static/js/{931.035e5931.chunk.js → 931.97f56b53.chunk.js} +2 -2
  118. package/build/static/js/{931.035e5931.chunk.js.map → 931.97f56b53.chunk.js.map} +1 -1
  119. package/build/static/js/9449.3077e6af.chunk.js +2 -0
  120. package/build/static/js/{9449.0ac9b5d4.chunk.js.map → 9449.3077e6af.chunk.js.map} +1 -1
  121. package/build/static/js/{main.1ae6e3b7.js → main.085bcc06.js} +2 -2
  122. package/build/static/js/{main.1ae6e3b7.js.map → main.085bcc06.js.map} +1 -1
  123. package/package.json +1 -1
  124. package/build/static/css/1054.5b09c063.chunk.css +0 -2
  125. package/build/static/css/1054.5b09c063.chunk.css.map +0 -1
  126. package/build/static/css/1151.92f2ea5f.chunk.css +0 -2
  127. package/build/static/css/1151.92f2ea5f.chunk.css.map +0 -1
  128. package/build/static/css/1153.ea72fbbd.chunk.css +0 -2
  129. package/build/static/css/1153.ea72fbbd.chunk.css.map +0 -1
  130. package/build/static/css/1454.45f19f11.chunk.css +0 -2
  131. package/build/static/css/1554.39bba381.chunk.css +0 -2
  132. package/build/static/css/2503.b9e2c346.chunk.css +0 -2
  133. package/build/static/css/2517.2239749a.chunk.css +0 -2
  134. package/build/static/css/2517.2239749a.chunk.css.map +0 -1
  135. package/build/static/css/2716.522fa51e.chunk.css +0 -2
  136. package/build/static/css/2730.22ccc2b7.chunk.css +0 -2
  137. package/build/static/css/289.2c121d1f.chunk.css +0 -2
  138. package/build/static/css/3333.8fcb861d.chunk.css +0 -2
  139. package/build/static/css/3333.8fcb861d.chunk.css.map +0 -1
  140. package/build/static/css/4265.8e969a04.chunk.css +0 -2
  141. package/build/static/css/4265.8e969a04.chunk.css.map +0 -1
  142. package/build/static/css/4319.782f9db8.chunk.css +0 -2
  143. package/build/static/css/4319.782f9db8.chunk.css.map +0 -1
  144. package/build/static/css/4666.8a9bf943.chunk.css +0 -2
  145. package/build/static/css/5443.fc457d16.chunk.css +0 -2
  146. package/build/static/css/5443.fc457d16.chunk.css.map +0 -1
  147. package/build/static/css/5600.54c78c54.chunk.css +0 -2
  148. package/build/static/css/5600.54c78c54.chunk.css.map +0 -1
  149. package/build/static/css/6779.0fd7b288.chunk.css +0 -2
  150. package/build/static/css/6779.0fd7b288.chunk.css.map +0 -1
  151. package/build/static/css/7121.72b7baaf.chunk.css +0 -2
  152. package/build/static/css/7121.72b7baaf.chunk.css.map +0 -1
  153. package/build/static/css/7227.0515d7ce.chunk.css +0 -2
  154. package/build/static/css/8017.f8a79fd4.chunk.css +0 -2
  155. package/build/static/css/8017.f8a79fd4.chunk.css.map +0 -1
  156. package/build/static/css/8148.beaa3442.chunk.css +0 -2
  157. package/build/static/css/9053.bfd4fbb6.chunk.css +0 -2
  158. package/build/static/css/931.9e14a203.chunk.css +0 -2
  159. package/build/static/css/931.9e14a203.chunk.css.map +0 -1
  160. package/build/static/css/9449.95a4fc0d.chunk.css +0 -2
  161. package/build/static/js/1054.82648f4e.chunk.js +0 -2
  162. package/build/static/js/1054.82648f4e.chunk.js.map +0 -1
  163. package/build/static/js/1454.6cf0187d.chunk.js +0 -3
  164. package/build/static/js/1554.e09b66e4.chunk.js +0 -3
  165. package/build/static/js/2503.1c389f4c.chunk.js +0 -2
  166. package/build/static/js/2517.c1575bd5.chunk.js +0 -2
  167. package/build/static/js/2517.c1575bd5.chunk.js.map +0 -1
  168. package/build/static/js/2615.e5c078a9.chunk.js +0 -2
  169. package/build/static/js/2716.27c5667d.chunk.js +0 -3
  170. package/build/static/js/2730.1c7f0b88.chunk.js +0 -2
  171. package/build/static/js/36.aefa4332.chunk.js +0 -2
  172. package/build/static/js/36.aefa4332.chunk.js.map +0 -1
  173. package/build/static/js/4265.e22830a4.chunk.js +0 -2
  174. package/build/static/js/4319.145ff9ef.chunk.js +0 -2
  175. package/build/static/js/4319.145ff9ef.chunk.js.map +0 -1
  176. package/build/static/js/5443.50c88a58.chunk.js +0 -2
  177. package/build/static/js/5600.10021d88.chunk.js +0 -2
  178. package/build/static/js/5600.10021d88.chunk.js.map +0 -1
  179. package/build/static/js/5698.1731c8cd.chunk.js +0 -2
  180. package/build/static/js/5698.1731c8cd.chunk.js.map +0 -1
  181. package/build/static/js/6779.0ba9326f.chunk.js +0 -2
  182. package/build/static/js/6779.0ba9326f.chunk.js.map +0 -1
  183. package/build/static/js/7121.36677ce3.chunk.js +0 -2
  184. package/build/static/js/7227.35ffa4e7.chunk.js +0 -3
  185. package/build/static/js/9449.0ac9b5d4.chunk.js +0 -2
  186. /package/build/static/js/{1153.cdd0455a.chunk.js.LICENSE.txt → 1153.67e35390.chunk.js.LICENSE.txt} +0 -0
  187. /package/build/static/js/{1454.6cf0187d.chunk.js.LICENSE.txt → 1454.0454b67a.chunk.js.LICENSE.txt} +0 -0
  188. /package/build/static/js/{1554.e09b66e4.chunk.js.LICENSE.txt → 1554.4b2601e2.chunk.js.LICENSE.txt} +0 -0
  189. /package/build/static/js/{2716.27c5667d.chunk.js.LICENSE.txt → 2716.5d168021.chunk.js.LICENSE.txt} +0 -0
  190. /package/build/static/js/{4666.b9b9c4a0.chunk.js.LICENSE.txt → 4666.0609ecea.chunk.js.LICENSE.txt} +0 -0
  191. /package/build/static/js/{7227.35ffa4e7.chunk.js.LICENSE.txt → 7227.0e640cbf.chunk.js.LICENSE.txt} +0 -0
  192. /package/build/static/js/{8148.97934e43.chunk.js.LICENSE.txt → 8148.d173d5b4.chunk.js.LICENSE.txt} +0 -0
  193. /package/build/static/js/{9053.48a1c333.chunk.js.LICENSE.txt → 9053.3584c917.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6779,5600,9034,2517],{17342:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(8762),r=n.n(o);n(46733);const i=r()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),r=n(79889),i=n.n(r),s=n(93950),l=n.n(s),a=n(96418),c=n.n(a);const d=(e,t)=>{const n=(0,o.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const r=(0,o.useRef)(null),s=c()(e);return(0,o.useLayoutEffect)((()=>{const e=r.current,t=()=>window.requestAnimationFrame((()=>{e&&s(e)}));t();const o=new ResizeObserver((n.current.isDebounce?l():i())(t,n.current.time));return e&&o.observe(e),()=>{o.disconnect()}}),[s]),r}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var o=n(73884),r=n(96418),i=n.n(r),s=n(55199),l=n(83136),a=n.n(l),c=n(64671),d=n(81014),u=n(58407),m=n(77964),f=n(22616),p=n.n(f);const h="style_width-container__JfEbg__xw+ok",_="style_hidden-container__EdySA__xw+ok",x="style_hidden-inner__vAN59__xw+ok",g="style_menu-list__VDttR__xw+ok",y="style_btn-item__mp5MQ__xw+ok";var v=n(15797),C=n.n(v),b=n(70579);const w=C()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;const s=i?0:["small","middle","large"].indexOf(r.size)>-1?8*(["small","middle","large"].indexOf(r.size)+1):Number.isInteger(r.size)?r.size:8;let l=0,a=0;for(;t>=a+o[l]+l*s&&l<o.length;)a+=o[l],l+=1;for(;t<a+(l-1)*s+(l<o.length?n+s:0)&&l>0;)a-=o[l-1],l-=1;return l}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;return"".concat(t).concat(n).concat(o.join(",")).concat(Object.values(r).join(",")).concat(i&&i.toString())})),j=e=>{let{list:t,more:n,compact:r,...l}=e;const c=p()(l,["size","split","align","style"]),[f,v]=(0,o.useState)(t.length&&1),C=i()((()=>{const e=k.current,t=N.current,n=j.current;if(!e)return;const i=e.querySelectorAll(".button-group-item");if(!i)return;if(0===i.length)return;const s=n.clientWidth,l=t.clientWidth,a=[].map.call(i,(e=>e.offsetWidth)),d=w({amountWidth:s,moreBtnWidth:l,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{v(d)}))})),j=(0,m.A)(C),k=(0,m.A)(C),N=(0,m.A)(C),P=t.slice(f),M=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",y),isDropdown:n});const{className:r,confirm:i,buttonComponent:s,...l}=e,c=i||l.message,m=c?u.default:s||d.default;return(0,o.createElement)(m,{danger:c&&!1!==l.isDelete,...Object.assign({},l,c&&(l.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",y,r)})},T=r?s.Space.Compact:s.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:h,ref:j}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:x,ref:N,children:n}),(0,b.jsx)("div",{className:x,ref:k,children:(0,b.jsx)(T,{...c,children:t.map(M)})})]}),(0,b.jsxs)(T,{...c,children:[t.slice(0,f).map(((e,t)=>M(e,t,!1))),P.length>0&&(0,b.jsx)(s.Dropdown,{overlayClassName:g,menu:{items:P.map(((e,t)=>({key:t,label:M(e,t,!0)})))},children:n})]})]})};j.defaultProps={more:(0,b.jsxs)(s.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const k=j},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>x,ConfirmText:()=>g,default:()=>y,withConfirm:()=>_});n(73884);var o=n(55199);const r=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var i=n(64671),s=n(58609),l=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__xw+ok",u="style_is-danger__gxyAB__xw+ok",m="style_title__EEPu2__xw+ok",f="style_content__mZZg5__xw+ok",p="style_has-title__5+PEt__xw+ok";var h=n(70579);const _=e=>{const t=(0,s.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:a=!0,onClick:_,onCancel:x,disabled:g,showCancel:y,cancelText:v,isModal:C,okText:b,placement:w,getContainer:j,...k}=t;const{formatMessage:N}=(0,s.useIntl)({moduleName:"ConfirmButton"}),P=(0,l.useConfirmModal)();return C?(0,h.jsx)(e,{...k,disabled:g,onClick:e=>{P({type:"confirm",title:n,getContainer:j,danger:a,message:r||N({id:"message"}),okText:b||N(a?{id:"delete"}:{id:"confirm"}),cancelText:v||N({id:"cancel"}),onCancel:x,onOk:_})}}):(0,h.jsx)(o.Popconfirm,{title:(0,h.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,h.jsxs)(o.Space,{size:0,align:"start",className:m,children:[(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,h.jsxs)(o.Space,{size:0,align:"start",className:c()(f,{[p]:n}),children:[!n&&(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),r||N({id:"message"})]})]}),placement:w,onConfirm:_,okButtonProps:{danger:a},onCancel:x,overlayClassName:c()(d,{[u]:a}),getPopupContainer:j,disabled:g,showCancel:y,cancelText:v,okText:b||N(a?{id:"delete"}:{id:"confirm"}),children:(0,h.jsx)(e,{...k,disabled:g})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},x=_(o.Typography.Link),g=_(o.Typography.Text),y=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>S,TabsModal:()=>N,TabsModalButton:()=>T,default:()=>j,useConfirmModal:()=>w,useModal:()=>b,useTabsModal:()=>P});var o=n(73884),r=n(55199),i=n(83136),s=n.n(i);const l={modal:"style_modal__Pm3cF__xw+ok",large:"style_large__iaqVE__xw+ok","modal-body-inner":"style_modal-body-inner__4PhpA__xw+ok","modal-title":"style_modal-title__dswaw__xw+ok","modal-outer":"style_modal-outer__r3SkX__xw+ok","modal-body":"style_modal-body__jQJSI__xw+ok","right-options-modal":"style_right-options-modal__FajDP__xw+ok","right-options-col":"style_right-options-col__3ilee__xw+ok","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__xw+ok","modal-footer":"style_modal-footer__-prbN__xw+ok","modal-close":"style_modal-close__Oa5Kl__xw+ok","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__xw+ok","is-danger":"style_is-danger__H5110__xw+ok",title:"style_title__orTym__xw+ok",content:"style_content__k6MIF__xw+ok","has-title":"style_has-title__qy0Wp__xw+ok"},a=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var m=n(81014),f=n(17342),p=n(70579);const h="Modal",_=e=>{let{options:t,children:n}=e;return t?(0,p.jsxs)(r.Row,{wrap:!1,children:[(0,p.jsx)(r.Col,{span:18,className:l["right-options-col"],children:n}),(0,p.jsx)(r.Col,{span:6,className:l["right-options-col"],children:t})]}):n},x=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:s,onClose:l,targetProps:d}=e;return(0,p.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,p.jsx)(r.Col,{children:(0,p.jsx)(r.Space,{children:(n||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:h})}),onClick:s},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:h})}),onClick:i}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:i=!0,display:s,...a}=e;const c=n||m.default;return(0,o.createElement)(c,{...a,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=await Promise.resolve(r&&r(...t,d));return i&&!1!==o&&l&&l(),o}})}))})})]})},g=e=>{let{title:t,footer:n,disabledScroller:i,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:h,children:_,targetProps:g}=e;const y=(0,o.useRef)(null);return(0,p.jsxs)("div",{className:l["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,p.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:l["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,p.jsx)("div",{className:l["modal-title"],children:t}),(0,p.jsx)(f.A,{className:s()(l["modal-body"],{[l["is-disabled-scroller"]]:i},"modal-body"),ref:y,children:(0,p.jsx)("div",{className:s()(l["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,p.jsx)("div",{className:s()(l["modal-footer"],"modal-footer"),children:(0,p.jsx)(x,{footer:n,footerButtons:a,onConfirm:m,onCancel:h,onClose:c,targetProps:g})}):null]})},y=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:i,onConfirm:s,onCancel:l,footer:a,rightOptions:c,disabledScroller:d,childrenRef:m,children:f}=e;const h=e=>(e=Object.assign({},{title:o},e),(0,p.jsx)(g,{title:u(e.title,{...e,childrenRef:m,close:i}),closable:r,onClose:i,onConfirm:s,onCancel:l,footerButtons:u(n,{...e,close:i}),disabledScroller:d,footer:u(a,{...e,childrenRef:m,close:i}),targetProps:Object.assign({},e,{childrenRef:m,close:i}),children:(0,p.jsx)(_,{options:u(c,{...e,childrenRef:m,close:i}),children:u(f,{...e,childrenRef:m,close:i})})}));return"function"===typeof t?t(h):h({})},v=e=>{let{children:t,rightOptions:n,footer:o,footerButtons:r,className:i,size:d,title:u,onClose:m,onConfirm:f,onCancel:h,closable:_,disabledScroller:x,withDecorator:g,childrenRef:v,...C}=e;return{...C,icon:null,centered:!0,title:null,maskClosable:!!C.hasOwnProperty("maskClosable")&&C.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:s()(i,l.modal,l[d],{[l["right-options-modal"]]:n}),...(b=d,"large"===b?{width:"".concat(Math.min(window.innerWidth-64,1500),"px")}:"small"===b?{width:"600px"}:{width:"1000px"}),children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:y({withDecorator:g,title:u,closable:_,onClose:m,onConfirm:f,onCancel:h,footer:o,footerButtons:r,rightOptions:n,disabledScroller:x,children:t,childrenRef:v})})};var b},C=e=>{const t=(0,o.useRef)(null);return(0,p.jsx)(r.Modal,{...v(Object.assign({},e,{childrenRef:t}))})};C.defaultProps={size:"default"};const b=()=>{const{modal:e}=r.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:r,...i}=v({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:s}=e.info({...i,content:r});return o.close=s,o}},w=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:i,title:a,danger:c,wrapClassName:u,message:m,iconSetting:f={},confirmType:h="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},x=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[o]){const{destroy:t}=e[o]({..._,icon:null,wrapClassName:s()(l["confirm-modal-wrap"],u,{[l["is-danger"]]:c}),title:(0,p.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,p.jsxs)(r.Space,{size:0,align:"start",className:l.title,children:[(0,p.jsx)(d.default,{className:s()("title-icon","title-icon-".concat("confirm"===o?h:o)),type:i||x["confirm"===o?h:o]}),a]})}),content:(0,p.jsxs)(r.Space,{size:0,align:"start",className:s()(l.content,{[l["has-title"]]:a}),children:[!a&&(0,p.jsx)(d.default,{className:s()("title-icon","title-icon-".concat("confirm"===o?h:o)),type:i||x["confirm"===o?h:o]}),m]})});n.close=t}return n}},j=C,k=e=>{let{items:t,className:n,activeKey:o,withDecorator:i,defaultActiveKey:l,onChange:a,...c}=e;return{...c,className:s()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,p.jsx)(r.Tabs,{items:t.map((t=>{let{withDecorator:o,...r}=t;return Object.assign({},r,{children:"function"===typeof o?o((t=>e(Object.assign({},n,t,{children:r.children})))):e(Object.assign({},n,{children:r.children}))})})),destroyInactiveTabPane:!0,activeKey:o,defaultActiveKey:l,onChange:a});return"function"===typeof i?i(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},N=e=>(0,p.jsx)(j,{...k(e)}),P=()=>{const e=b();return t=>e(k(t))};var M=n(73025);const T=e=>{const t=P();return(0,p.jsx)(M.A,{...e,modalFunc:t})},S=e=>{const t=b();return(0,p.jsx)(M.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),r=n(77116);e.exports=function e(t,n,i,s,l){var a=-1,c=t.length;for(i||(i=r),l||(l=[]);++a<c;){var d=t[a];n>0&&i(d)?n>1?e(d,n-1,i,s,l):o(l,d):s||(l[l.length]=d)}return l}},94008:(e,t,n)=>{var o=n(27449),r=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return r(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),r=n(9261),i=n(35324);e.exports=function(e,t,n){for(var s=-1,l=t.length,a={};++s<l;){var c=t[s],d=o(e,c);n(d,c)&&r(a,i(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),r=n(35324),i=n(69194),s=n(46686),l=n(70914);e.exports=function(e,t,n,a){if(!s(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var f=l(t[c]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=u){var h=m[f];void 0===(p=a?a(h,f,m):void 0)&&(p=s(h)?h:i(t[c+1])?[]:{})}o(m,f,p),m=m[f]}return e}},15857:(e,t,n)=>{var o=n(20819),r=n(55636),i=n(46350);e.exports=function(e){return i(r(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),r=n(22777),i=n(54052),s=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(s&&e&&e[s])}},93950:(e,t,n)=>{var o=n(46686),r=n(4757),i=n(40801),s=Math.max,l=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,f,p=0,h=!1,_=!1,x=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=a,o=c;return a=c=void 0,p=t,u=e.apply(o,n)}function y(e){var n=e-f;return void 0===f||n>=t||n<0||_&&e-p>=d}function v(){var e=r();if(y(e))return C(e);m=setTimeout(v,function(e){var n=t-(e-f);return _?l(n,d-(e-p)):n}(e))}function C(e){return m=void 0,x&&a?g(e):(a=c=void 0,u)}function b(){var e=r(),n=y(e);if(a=arguments,c=this,f=e,n){if(void 0===m)return function(e){return p=e,m=setTimeout(v,t),h?g(e):u}(f);if(_)return clearTimeout(m),m=setTimeout(v,t),g(f)}return void 0===m&&(m=setTimeout(v,t)),u}return t=i(t)||0,o(n)&&(h=!!n.leading,d=(_="maxWait"in n)?s(i(n.maxWait)||0,t):d,x="trailing"in n?!!n.trailing:x),b.cancel=function(){void 0!==m&&clearTimeout(m),p=0,a=f=c=m=void 0},b.flush=function(){return void 0===m?u:C(r())},b}},20819:(e,t,n)=>{var o=n(80755);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},4757:(e,t,n)=>{var o=n(56552);e.exports=function(){return o.Date.now()}},22616:(e,t,n)=>{var o=n(94008),r=n(15857)((function(e,t){return null==e?{}:o(e,t)}));e.exports=r},79889:(e,t,n)=>{var o=n(93950),r=n(46686);e.exports=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),o(e,t,{leading:i,maxWait:t,trailing:s})}},46733:()=>{}}]);
2
- //# sourceMappingURL=6779.0ba9326f.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/6779.0ba9326f.chunk.js","mappings":"mNAGA,QAAeA,G,2HCEf,MA+BA,EA/BkBC,CAACC,EAAUC,KAC3B,MAAMC,GAAaC,EAAAA,EAAAA,QAAO,MAC1BD,EAAWE,QAAUC,OAAOC,OAC1B,CAAC,EACD,CAAEC,KAAM,IAAKC,YAAY,GACzBP,GAEF,MAAMQ,GAAMN,EAAAA,EAAAA,QAAO,MACbO,EAAkBC,IAAeX,GAoBvC,OAnBAY,EAAAA,EAAAA,kBAAgB,KACd,MAAMC,EAAKJ,EAAIL,QACTU,EAAWA,IACRC,OAAOC,uBAAsB,KAClCH,GAAMH,EAAg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AAGH,GAAQG,EACrEM,EAAW,aAAcnR,IAAYA,EAAQmR,SAAWA,GAoG1DY,EAAUK,OApCV,gBACkBxC,IAAZkB,GACFqB,aAAarB,GAEfE,EAAiB,EACjBL,EAAWI,EAAeH,EAAWE,OAAUlB,CACjD,EA+BAmC,EAAUM,MA7BV,WACE,YAAmBzC,IAAZkB,EAAwBrC,EAASkD,EAAatB,IACvD,EA4BO0B,CACT,C,kBC5LA,IAAI3D,EAAcJ,EAAQ,OAqB1BE,EAAOC,QALP,SAAiBE,GAEf,OADsB,MAATA,EAAgB,EAAIA,EAAMhM,QACvB+L,EAAYC,EAAO,GAAK,EAC1C,C,iBCnBA,IAAIiE,EAAOtE,EAAQ,OAsBnBE,EAAOC,QAJG,WACR,OAAOmE,EAAKC,KAAKlC,KACnB,C,kBCpBA,IAAImC,EAAWxE,EAAQ,OAoBnBhL,EAnBWgL,EAAQ,MAmBZyE,EAAS,SAAS5D,EAAQC,GACnC,OAAiB,MAAVD,EAAiB,CAAC,EAAI2D,EAAS3D,EAAQC,EAChD,IAEAZ,EAAOC,QAAUnL,C,kBCxBjB,IAAI9B,EAAW8M,EAAQ,OACnBqB,EAAWrB,EAAQ,OAmEvBE,EAAOC,QAlBP,SAAkB6B,EAAMU,EAAM1Q,GAC5B,IAAIiR,GAAU,EACVE,GAAW,EAEf,GAAmB,mBAARnB,EACT,MAAM,IAAIoB,UAnDQ,uBAyDpB,OAJI/B,EAASrP,KACXiR,EAAU,YAAajR,IAAYA,EAAQiR,QAAUA,EACrDE,EAAW,aAAcnR,IAAYA,EAAQmR,SAAWA,GAEnDjQ,EAAS8O,EAAMU,EAAM,CAC1B,QAAWO,EACX,QAAWP,EACX,SAAYS,GAEhB,C","sources":["common/components/SimpleBar.js","common/hooks/useResize.js","webpack://@kne-components/components-core/./src/components/ButtonGroup/style.module.scss?7e95","components/ButtonGroup/index.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_basePick.js","../node_modules/lodash/_basePickBy.js","../node_modules/lodash/_baseSet.js","../node_modules/lodash/_flatRest.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/debounce.js","../node_modules/lodash/flatten.js","../node_modules/lodash/now.js","../node_modules/lodash/pick.js","../node_modules/lodash/throttle.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","import { useLayoutEffect, useRef } from \"react\";\nimport throttle from \"lodash/throttle\";\nimport debounce from \"lodash/debounce\";\nimport useRefCallback from \"@kne/use-ref-callback\";\n\nconst useResize = (callback, options) => {\n const optionsRef = useRef(null);\n optionsRef.current = Object.assign(\n {},\n { time: 500, isDebounce: false },\n options\n );\n const ref = useRef(null);\n const callbackHandler = useRefCallback(callback);\n useLayoutEffect(() => {\n const el = ref.current;\n const computed = () => {\n return window.requestAnimationFrame(() => {\n el && callbackHandler(el);\n });\n };\n computed();\n const resizeObserver = new ResizeObserver(\n (optionsRef.current.isDebounce ? debounce : throttle)(\n computed,\n optionsRef.current.time\n )\n );\n el && resizeObserver.observe(el);\n return () => {\n resizeObserver.disconnect();\n };\n }, [callbackHandler]);\n return ref;\n};\n\nexport default useResize;\n","// extracted by mini-css-extract-plugin\nexport default {\"width-container\":\"style_width-container__JfEbg__xw+ok\",\"hidden-container\":\"style_hidden-container__EdySA__xw+ok\",\"hidden-inner\":\"style_hidden-inner__vAN59__xw+ok\",\"menu-list\":\"style_menu-list__VDttR__xw+ok\",\"btn-item\":\"style_btn-item__mp5MQ__xw+ok\"};","import { startTransition, useState } from \"react\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport { Button, Dropdown, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport Icon from \"@components/Icon\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport ConfirmButton from \"@components/ConfirmButton\";\nimport useResize from \"@common/hooks/useResize\";\nimport pick from \"lodash/pick\";\nimport style from \"./style.module.scss\";\nimport memoize from \"lodash/memoize\";\n\nconst areaWidthComputed = memoize(\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n const spaceWidth = (() => {\n if (compact) {\n return 0;\n }\n\n if ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) > -1) {\n return ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) + 1) * 8;\n }\n\n if (Number.isInteger(spaceProps.size)) {\n return spaceProps.size;\n }\n return 8;\n })();\n\n let targetLength = 0,\n targetWidth = 0;\n\n // 采取先加后减策略\n while (\n amountWidth >=\n targetWidth +\n buttonWidthList[targetLength] +\n targetLength * spaceWidth &&\n targetLength < buttonWidthList.length\n ) {\n targetWidth += buttonWidthList[targetLength];\n targetLength += 1;\n }\n\n while (\n amountWidth <\n targetWidth +\n (targetLength - 1) * spaceWidth +\n (targetLength < buttonWidthList.length\n ? moreBtnWidth + spaceWidth\n : 0) &&\n targetLength > 0\n ) {\n targetWidth -= buttonWidthList[targetLength - 1];\n targetLength -= 1;\n }\n\n return targetLength;\n },\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n return `${amountWidth}${moreBtnWidth}${buttonWidthList.join(\n \",\"\n )}${Object.values(spaceProps).join(\",\")}${compact && compact.toString()}`;\n }\n);\n\nconst ButtonGroup = ({ list, more, compact, ...props }) => {\n const spaceProps = pick(props, [\"size\", \"split\", \"align\", \"style\"]);\n const [showLength, setShowLength] = useState(list.length && 1);\n const computedLength = useRefCallback(() => {\n const el = targetRef.current,\n moreEl = moreRef.current,\n widthEl = ref.current;\n if (!el) {\n return;\n }\n\n const buttonEls = el.querySelectorAll(\".button-group-item\");\n if (!buttonEls) {\n return;\n }\n if (buttonEls.length === 0) {\n return;\n }\n\n const amountWidth = widthEl.clientWidth,\n moreBtnWidth = moreEl.clientWidth,\n buttonWidthList = [].map.call(buttonEls, (el) => el.offsetWidth);\n const targetLength = areaWidthComputed({\n amountWidth,\n moreBtnWidth,\n buttonWidthList,\n spaceProps,\n compact,\n });\n startTransition(() => {\n setShowLength(targetLength);\n });\n });\n const ref = useResize(computedLength);\n const targetRef = useResize(computedLength);\n const moreRef = useResize(computedLength);\n const otherList = list.slice(showLength);\n\n const renderButton = (renderItem, index, isDropdown) => {\n if (typeof renderItem === \"function\") {\n return renderItem({\n key: index,\n className: classnames(\"button-group-item\", style[\"btn-item\"]),\n isDropdown,\n });\n }\n const { className, confirm, buttonComponent, ...props } = renderItem;\n const isConfirm = confirm || props.message;\n const CurrentButton = isConfirm\n ? ConfirmButton\n : buttonComponent || LoadingButton;\n\n return (\n <CurrentButton\n danger={isConfirm && props.isDelete !== false}\n {...Object.assign(\n {},\n props,\n isConfirm && (props.isModal || isDropdown)\n ? {\n isModal: true,\n }\n : {}\n )}\n key={index}\n className={classnames(\n \"button-group-item\",\n style[\"btn-item\"],\n className\n )}\n />\n );\n };\n\n const SpaceComponent = compact ? Space.Compact : Space;\n\n return (\n <>\n <div className={style[\"width-container\"]} ref={ref} />\n <div className={style[\"hidden-container\"]}>\n <div className={style[\"hidden-inner\"]} ref={moreRef}>\n {more}\n </div>\n <div className={style[\"hidden-inner\"]} ref={targetRef}>\n <SpaceComponent {...spaceProps}>\n {list.map(renderButton)}\n </SpaceComponent>\n </div>\n </div>\n <SpaceComponent {...spaceProps}>\n {list\n .slice(0, showLength)\n .map((item, index) => renderButton(item, index, false))}\n {otherList.length > 0 && (\n <Dropdown\n overlayClassName={style[\"menu-list\"]}\n menu={{\n items: otherList.map((item, index) => {\n return {\n key: index,\n label: renderButton(item, index, true),\n };\n }),\n }}\n >\n {more}\n </Dropdown>\n )}\n </SpaceComponent>\n </>\n );\n};\n\nButtonGroup.defaultProps = {\n more: (\n <Button>\n 更多\n <Icon type=\"icon-arrow-thin-down\" />\n </Button>\n ),\n};\n\nexport default ButtonGroup;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__xw+ok\",\"is-danger\":\"style_is-danger__gxyAB__xw+ok\",\"title\":\"style_title__EEPu2__xw+ok\",\"content\":\"style_content__mZZg5__xw+ok\",\"has-title\":\"style_has-title__5+PEt__xw+ok\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__xw+ok\",\"large\":\"style_large__iaqVE__xw+ok\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__xw+ok\",\"modal-title\":\"style_modal-title__dswaw__xw+ok\",\"modal-outer\":\"style_modal-outer__r3SkX__xw+ok\",\"modal-body\":\"style_modal-body__jQJSI__xw+ok\",\"right-options-modal\":\"style_right-options-modal__FajDP__xw+ok\",\"right-options-col\":\"style_right-options-col__3ilee__xw+ok\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__xw+ok\",\"modal-footer\":\"style_modal-footer__-prbN__xw+ok\",\"modal-close\":\"style_modal-close__Oa5Kl__xw+ok\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__xw+ok\",\"is-danger\":\"style_is-danger__H5110__xw+ok\",\"title\":\"style_title__orTym__xw+ok\",\"content\":\"style_content__k6MIF__xw+ok\",\"has-title\":\"style_has-title__qy0Wp__xw+ok\"};","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, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false}>\n <Col span={18} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={6} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return { width: `${Math.min(window.innerWidth - 64, 1500)}px` };\n }\n if (type === \"small\") {\n return { width: \"600px\" };\n }\n return { width: \"1000px\" };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n )}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n","var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["SimpleBar","useResize","callback","options","optionsRef","useRef","current","Object","assign","time","isDebounce","ref","callbackHandler","useRefCallback","useLayoutEffect","el","computed","window","requestAnimationFrame","resizeObserver","ResizeObserver","debounce","throttle","observe","disconnect","areaWidthComputed","memoize","_ref","amountWidth","moreBtnWidth","buttonWidthList","spaceProps","compact","spaceWidth","indexOf","size","Number","isInteger","targetLength","targetWidth","length","_ref2","concat","join","values","toString","ButtonGroup","_ref3","list","more","props","pick","showLength","setShowLength","useState","computedLength","targetRef","moreEl","moreRef","widthEl","buttonEls","querySelectorAll","clientWidth","map","call","offsetWidth","startTransition","otherList","slice","renderButton","renderItem","index","isDropdown","key","className","classnames","style","confirm","buttonComponent","isConfirm","message","CurrentButton","ConfirmButton","LoadingButton","_createElement","danger","isDelete","isModal","SpaceComponent","Space","Compact","_jsxs","_Fragment","children","_jsx","item","Dropdown","overlayClassName","menu","items","label","defaultProps","Button","Icon","type","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","title","onClick","onCancel","disabled","showCancel","cancelText","okText","placement","getContainer","formatMessage","useIntl","modal","useConfirmModal","e","id","onOk","Popconfirm","direction","stopPropagation","align","onConfirm","okButtonProps","getPopupContainer","ConfirmLink","Typography","Link","ConfirmText","Text","renderWithOptions","footer","localeModuleName","RightOptions","Row","wrap","Col","span","Footer","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","IntlProvider","FormattedMessage","filter","display","ButtonComponent","autoClose","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","icon","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","width","Math","min","innerWidth","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","confirmType","typeEnum","warning","error","success","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","arrayPush","require","isFlattenable","module","exports","baseFlatten","array","depth","predicate","isStrict","result","value","basePickBy","hasIn","object","paths","path","baseGet","baseSet","castPath","assignValue","isIndex","isObject","toKey","customizer","lastIndex","nested","newValue","objValue","undefined","flatten","overRest","setToString","func","Symbol","isArguments","spreadableSymbol","isConcatSpreadable","now","toNumber","nativeMax","max","nativeMin","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","setTimeout","timeWaiting","remainingWait","debounced","isInvoking","this","leadingEdge","clearTimeout","cancel","flush","root","Date","basePick","flatRest"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7121,1151,9034],{62716:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var a=s(73884),o=s(83136),r=s.n(o);const l={"state-tag":"style_state-tag__Kx27z__xw+ok","state-result-tag":"style_state-result-tag__CssDz__xw+ok","state-skill-tag":"style_state-skill-tag__k0bQE__xw+ok","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__xw+ok","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__xw+ok","state-tag-filterResult":"style_state-tag-filterResult__KTkot__xw+ok","show-bg":"style_show-bg__OcL+R__xw+ok","tag-text":"style_tag-text__JHCt+__xw+ok","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__xw+ok"};var _=s(55199),n=s(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},g=t=>{let{showBorder:e,text:s,type:o,showBackground:g,className:u,filterName:i,...d}=t;const p=(0,a.useMemo)((()=>{var t,e;return{color:(null===c||void 0===c||null===(t=c[o])||void 0===t?void 0:t.color)||c[o],borderColor:(null===c||void 0===c||null===(e=c[o])||void 0===e?void 0:e.borderColor)||c[o]}}),[o]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:r()(l["state-tag-wrapper"],"filterResult"===o?l["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[i?(0,n.jsxs)("span",{className:l["state-tag-filter-name"],children:[i,":"]}):null,(0,n.jsx)(_.Tag,{color:p.color,...d,style:{background:g?p.color+"0F":"none",color:p.color,border:e?"1px solid ".concat(p.borderColor):"none"},className:r()(l["state-tag"],u,"result"===o?l["state-result-tag"]:"","skill"===o?l["state-skill-tag"]:"",l["state-tag-".concat(o)],g?l["show-bg"]:"",e?l["show-border"]:""),children:(0,n.jsx)("span",{className:l["tag-text"],children:s})})]})};g.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const u=g},79160:(t,e,s)=>{var a=s(16913),o=s(22761);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==a(t)}}}]);
2
- //# sourceMappingURL=7121.36677ce3.chunk.js.map
@@ -1,3 +0,0 @@
1
- /*! For license information please see 7227.35ffa4e7.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7227],{87227:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var o=r(55199),a=r(83136),n=r.n(a);const s={"state-bar":"style_state-bar__3jfis__xw+ok","has-children":"style_has-children__oQDqU__xw+ok","tab-tab-control":"style_tab-tab-control__SopeO__xw+ok","tab-radio-control":"style_tab-radio-control__R8X6-__xw+ok","tab-step-control":"style_tab-step-control__EQaCl__xw+ok","inner-state-bar":"style_inner-state-bar__lWmOz__xw+ok"};var _=r(70579);const l=e=>{let{className:t,type:r="tab",stateOption:a=[],isInner:l,...c}=e;return(0,_.jsx)(o.Tabs,{...c,"data-testid":"components-core-state-bar",className:n()(s["state-bar"],s["tab-".concat(r,"-control")],t,{[s["inner-state-bar"]]:l,[s["has-children"]]:a.some((e=>!!e.children))}),style:{"--total-count":a.length},animated:!1,items:a.map((e=>{let{tab:t,label:r,key:o,...a}=e;return{label:t||r,key:o,...a}}))})}},51153:(e,t,r)=>{var o=r(73884),a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,_=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,n={},c=null,b=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(b=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===n[o]&&(n[o]=t[o]);return{$$typeof:a,type:e,key:c,ref:b,props:n,_owner:_.current}}t.Fragment=n,t.jsx=c,t.jsxs=c},70579:(e,t,r)=>{e.exports=r(51153)}}]);
3
- //# sourceMappingURL=7227.35ffa4e7.chunk.js.map
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[9449,9034,1190,4912],{24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>K,DragAreaOuter:()=>J,DragButton:()=>X,FileUpload:()=>ne,Title:()=>E,UploadButton:()=>q,UploadTips:()=>V,default:()=>se});var i=s(73884),n=s(33097),a=s.n(n),l=s(55199);const r="style_file-list-outer__wPhbb__xw+ok",o="style_file-list-title__zXM5r__xw+ok",c="style_container__P4RaF__xw+ok",d="style_file-preview-inner__cvE72__xw+ok",p="style_file-preview__M-Asq__xw+ok",u="style_drag-area__Q+lm7__xw+ok",m="style_upload-drag-close__u5o8W__xw+ok",x="style_upload-drag-tips__z7puZ__xw+ok",g="style_upload-drag-icon__sGGoS__xw+ok",_="style_upload-drag-title__9Afmb__xw+ok",f="style_upload-drag-text__o38vS__xw+ok",h="style_title-group__8IJkS__xw+ok",v="style_upload-btn__Q+Jxn__xw+ok",j="style_total-count__z1fyd__xw+ok",w="style_file-select__mHqyI__xw+ok",y="style_file-name__QkvMn__xw+ok",S="style_file-select-info__fOLiM__xw+ok",N="style_file-select-option__AbDrD__xw+ok";var F=s(75087),P=s.n(F),L=s(74065),b=s.n(L),C=s(57469),k=s.n(C),M=s(64671),T=s(67390),z=s(58609),I=s(70579);const D=e=>{let{currentTab:t,setCurrentTab:s,previewMap:i,previewList:n,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:p,maxWidth:u,getPopupContainer:m}=e;return(0,I.jsx)("div",{className:o,children:(0,I.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,I.jsx)(l.Col,{children:(0,I.jsxs)(l.Space,{className:h,size:4,children:[(0,I.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,I.jsxs)(l.Space,{size:4,children:[(0,I.jsx)(M.default,{type:"icon-shitu-liebiao"}),(0,I.jsx)(z.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,I.jsxs)(l.Space,{size:4,children:[(0,I.jsx)(M.default,{type:"icon-shitu-yulan"}),(0,I.jsx)(z.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&i.get(r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l.Select,{className:w,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:n.map((e=>{let{filename:t,userName:s,date:i,ossId:n}=e;return(0,I.jsx)(l.Select.Option,{className:N,value:n,children:(0,I.jsxs)(l.Space,{direction:"vertical",children:[(0,I.jsxs)(l.Space,{size:4,align:"start",children:[(0,I.jsx)(P(),{type:b()(t.split(".")),size:14}),(0,I.jsx)(l.Typography.Text,{className:y,ellipsis:!0,style:{"--max-width":"".concat(u,"px")},children:t})]}),s||i?(0,I.jsxs)(l.Space,{className:S,size:24,children:[(0,I.jsxs)("div",{children:[(0,I.jsx)(z.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,I.jsxs)("div",{children:[(0,I.jsx)(z.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",i&&k()(i).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},n)}))}),(0,I.jsx)(T.OptionButtons,{hasPreview:!1,getPermission:a,item:i.get(r),apis:d}),(0,I.jsx)("div",{className:j,children:(0,I.jsx)(z.FormattedMessage,{id:"totalCount",values:{count:n.length},moduleName:"FileList"})})]})]})}),(0,I.jsx)(l.Col,{children:p})]})})};D.defaultProps={maxWidth:260};const E=D,A=e=>({"en-US":()=>s.e(5714).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var O=s(70720),U=s.n(O),B=s(83136),R=s.n(B);const G=(0,i.createContext)({}),{Provider:W}=G,Y=()=>(0,i.useContext)(G);var H=s(29574),Q=s(81348);const X=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:i}=Y();return(0,I.jsx)("div",{ref:i,className:v,onClick:()=>{s((e=>!e))},children:(0,I.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,I.jsx)(M.default,{type:"icon-tuozhuaishangchuan"}),t||(0,I.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},q=e=>{let{children:t}=e;const{accept:s,onFileSelected:i}=Y();return(0,I.jsxs)(H.AG,{className:v,accept:s,multiple:!0,onChange:i,children:[(0,I.jsx)(M.default,{type:"icon-tianjia"}),t]})},J=e=>{let{title:t,accept:s,fileSize:n,maxLength:a,onFileSelected:o,children:d,className:p}=e;const[u,m]=(0,i.useState)(!1),x=(0,i.useRef)(null),g=U()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||m(!1))}));return(0,I.jsx)(z.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,I.jsx)(W,{value:{open:u,onOpenChange:m,accept:s,fileSize:n,maxLength:a,onFileSelected:o,getDragButtonEl:e=>{x.current=e}},children:(0,I.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,I.jsx)("div",{className:R()(c,p),ref:g,onDragEnter:()=>{m(!0)},children:d})]})})})};J.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const V=e=>{let{icon:t,title:s,renderTips:i}=e;const{accept:n,fileSize:a,maxLength:l}=Y(),r=i((0,z.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:n.map((e=>e.replace(/^\./,""))).join("\u3001"),size:a}),{fileSize:a,maxLength:l,accept:n});return(0,I.jsxs)("div",{className:R()(x,"upload-drag-tips"),children:[(0,I.jsx)("div",{className:g,children:t||(0,I.jsx)(M.default,{type:"icon-shangchuan",size:64})}),(0,I.jsx)("div",{className:_,children:s||(0,I.jsx)(z.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,I.jsx)("div",{className:f,children:r})]})};V.defaultProps={renderTips:e=>e};const Z=e=>{let{children:t,className:s}=e;const{open:i,accept:n,onOpenChange:a,onFileSelected:r}=Y();return i?(0,I.jsxs)("div",{className:R()(u,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;a(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,n)));r(t)},onDragEnd:()=>{a(!1)},children:[(0,I.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,I.jsx)(M.default,{type:"icon-close-bold"}),onClick:()=>{a(!1)}}),t]}):null};Z.defaultProps={children:(0,I.jsx)(V,{})};const K=Z;var $=s(10419),ee=s(76329);const te=e=>{var t;let{maxLength:s,list:n,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:u,getPermission:m,titleExtra:x,fileSize:g,accept:_,getPopupContainer:f}=e;const{apis:h}=(0,ee.usePreset)(),v=Object.assign({},h,u),{fileList:j,onFileSelected:w}=(0,H.lN)({maxLength:s,multiple:!0,value:n,onChange:r,concurrentCount:1,onAdd:()=>{S("list")},onSave:v.onSave,ossUpload:v.ossUpload}),[y,S]=(0,i.useState)(o),{formatMessage:N}=(0,z.useIntl)({moduleName:"FileList"}),{message:F}=l.App.useApp(),P=(0,i.useMemo)((()=>new Map(n.map((e=>[e.ossId,e])))),[n]),[L,b]=(0,i.useState)(c||a()(n,"[0].ossId",null));(0,i.useEffect)((()=>{L&&P.get(L)||b(a()(n,"[0].ossId",null))}),[n,P,L]);const C={onPreview:e=>{b(e.ossId),S("preview")},onDelete:async e=>{v.onDelete&&await v.onDelete(e),r((t=>{const s=t.slice(0),i=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return i>-1&&s.splice(i,1),s})),F.success(N({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;v.onEdit&&await v.onEdit({formData:t,item:s}),r((e=>{const i=e.slice(0),n=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return n>-1&&i.splice(n,1,Object.assign({},s,{filename:t.name})),i})),F.success(N({id:"successEditFileName"},{name:s.filename}))}},k="function"===typeof x?x({currentPreviewFileId:L,currentTab:y}):x;return(0,I.jsxs)(J,{title:(0,I.jsx)(E,{currentTab:y,setCurrentTab:S,previewMap:P,previewList:n,getPermission:m,currentPreviewFileId:L,setCurrentPreviewFileId:b,itemApis:C,getPopupContainer:f,children:(0,I.jsxs)(l.Space,{split:(0,I.jsx)(l.Divider,{type:"vertical"}),children:[k,m("add",{})?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(X,{children:(0,I.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,I.jsx)(q,{children:(0,I.jsx)(z.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:w,accept:_,children:["list"===y?(0,I.jsx)(T.List,{dataSource:[...j,...n],getPermission:m,apis:C}):null,"preview"===y?L?(0,I.jsx)("div",{className:d,children:(0,I.jsx)($.default,{className:p,id:L,apis:v,originName:null===(t=P.get(L))||void 0===t?void 0:t.filename})}):(0,I.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,I.jsx)(K,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,I.jsx)(z.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,I.jsx)(te,{...e})}),ie=e=>{let{maxLength:t,list:s,setList:i,apis:n,getPermission:a,fileSize:r,accept:o}=e;const{apis:c}=(0,ee.usePreset)(),d=Object.assign({},c,n),{fileList:p,onFileSelected:u}=(0,H.lN)({maxLength:t,multiple:!0,value:s,onChange:i,concurrentCount:1,onSave:d.onSave,ossUpload:d.ossUpload});return(0,I.jsxs)(J,{title:(0,I.jsxs)(l.Row,{children:[(0,I.jsx)(l.Col,{flex:1}),(0,I.jsx)(l.Col,{children:(0,I.jsxs)(l.Space,{split:(0,I.jsx)(l.Divider,{type:"vertical"}),children:[(0,I.jsx)(X,{}),(0,I.jsx)(q,{children:"\u4e0a\u4f20"})]})})]}),fileSize:r,maxLength:t,onFileSelected:u,accept:o,children:[(0,I.jsx)(T.List,{dataSource:[...p,...s],getPermission:a,apis:d}),(0,I.jsx)(K,{})]})};ie.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const ne=ie},94710:e=>{e.exports=function(e,t,s,i){for(var n=-1,a=null==e?0:e.length;++n<a;){var l=e[n];t(i,l,s(l),e)}return i}},32952:(e,t,s)=>{var i=s(45652);e.exports=function(e,t,s,n){return i(e,(function(e,i,a){t(n,e,s(e),a)})),n}},45652:(e,t,s)=>{var i=s(94664),n=s(76516)(i);e.exports=n},99910:e=>{e.exports=function(e,t){for(var s,i=-1,n=e.length;++i<n;){var a=t(e[i]);void 0!==a&&(s=void 0===s?a:s+a)}return s}},19449:(e,t,s)=>{var i=s(94710),n=s(32952),a=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?i:n,c=t?t():{};return o(s,e,a(r,2),c)}}},76516:(e,t,s)=>{var i=s(6571);e.exports=function(e,t){return function(s,n){if(null==s)return s;if(!i(s))return e(s,n);for(var a=s.length,l=t?a:-1,r=Object(s);(t?l--:++l<a)&&!1!==n(r[l],l,r););return s}}},26304:(e,t,s)=>{var i=s(53871),n=s(99140);e.exports=function(e,t,s){var a=null==e?0:e.length;return a?(t=s||void 0===t?1:n(t),i(e,0,(t=a-t)<0?0:t)):[]}},39835:(e,t,s)=>{var i=s(71775),n=s(19449),a=Object.prototype.hasOwnProperty,l=n((function(e,t,s){a.call(e,s)?e[s].push(t):i(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var i=s(26989);e.exports=function(e,t,s){var n=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===n?i(e,t,void 0,s):!!n}},60262:(e,t,s)=>{var i=s(99910),n=s(33279);e.exports=function(e){return e&&e.length?i(e,n):0}},99140:(e,t,s)=>{var i=s(37303);e.exports=function(e){var t=i(e),s=t%1;return t===t?s?t-s:t:0}},17448:()=>{},71975:()=>{}}]);
2
- //# sourceMappingURL=9449.0ac9b5d4.chunk.js.map