@kne-components/components-core 0.2.41 → 0.2.43

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 (234) hide show
  1. package/build/asset-manifest.json +151 -176
  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/1151.4de42b45.chunk.css +2 -0
  6. package/build/static/css/{1151.174bd54b.chunk.css.map → 1151.4de42b45.chunk.css.map} +1 -1
  7. package/build/static/css/1153.bb4ac3a6.chunk.css +2 -0
  8. package/build/static/css/1153.bb4ac3a6.chunk.css.map +1 -0
  9. package/build/static/css/1554.4df98f31.chunk.css +2 -0
  10. package/build/static/css/{1554.d2fca62a.chunk.css.map → 1554.4df98f31.chunk.css.map} +1 -1
  11. package/build/static/css/2503.b81a8ac3.chunk.css +2 -0
  12. package/build/static/css/{2503.fefbc858.chunk.css.map → 2503.b81a8ac3.chunk.css.map} +1 -1
  13. package/build/static/css/2517.7a55b2d6.chunk.css +2 -0
  14. package/build/static/css/{2517.f69b3b63.chunk.css.map → 2517.7a55b2d6.chunk.css.map} +1 -1
  15. package/build/static/css/2716.7b031170.chunk.css +2 -0
  16. package/build/static/css/{2716.ad57f666.chunk.css.map → 2716.7b031170.chunk.css.map} +1 -1
  17. package/build/static/css/2730.789b24d5.chunk.css +2 -0
  18. package/build/static/css/{2730.9c490085.chunk.css.map → 2730.789b24d5.chunk.css.map} +1 -1
  19. package/build/static/css/3142.dccff030.chunk.css +2 -0
  20. package/build/static/css/{3142.bcd730ed.chunk.css.map → 3142.dccff030.chunk.css.map} +1 -1
  21. package/build/static/css/4029.986cc830.chunk.css +2 -0
  22. package/build/static/css/4029.986cc830.chunk.css.map +1 -0
  23. package/build/static/css/4265.7c0bc7a4.chunk.css +2 -0
  24. package/build/static/css/4265.7c0bc7a4.chunk.css.map +1 -0
  25. package/build/static/css/4319.4f3710fd.chunk.css +2 -0
  26. package/build/static/css/{4319.4d5cfa09.chunk.css.map → 4319.4f3710fd.chunk.css.map} +1 -1
  27. package/build/static/css/4666.fa3483be.chunk.css +2 -0
  28. package/build/static/css/{4666.a656d2c4.chunk.css.map → 4666.fa3483be.chunk.css.map} +1 -1
  29. package/build/static/css/5443.382d8e47.chunk.css +2 -0
  30. package/build/static/css/5443.382d8e47.chunk.css.map +1 -0
  31. package/build/static/css/5600.daded1e6.chunk.css +2 -0
  32. package/build/static/css/{5600.8117cf36.chunk.css.map → 5600.daded1e6.chunk.css.map} +1 -1
  33. package/build/static/css/5962.fd066085.chunk.css +2 -0
  34. package/build/static/css/{5962.f29a181f.chunk.css.map → 5962.fd066085.chunk.css.map} +1 -1
  35. package/build/static/css/{5996.a18dcec9.chunk.css → 5996.bb4216d8.chunk.css} +2 -2
  36. package/build/static/css/{5996.a18dcec9.chunk.css.map → 5996.bb4216d8.chunk.css.map} +1 -1
  37. package/build/static/css/6611.1622b705.chunk.css +2 -0
  38. package/build/static/css/{6611.91ad2413.chunk.css.map → 6611.1622b705.chunk.css.map} +1 -1
  39. package/build/static/css/6779.ab82ccbd.chunk.css +2 -0
  40. package/build/static/css/{6779.9f6193d6.chunk.css.map → 6779.ab82ccbd.chunk.css.map} +1 -1
  41. package/build/static/css/7121.fdf84e05.chunk.css +2 -0
  42. package/build/static/css/{7121.f089fe7d.chunk.css.map → 7121.fdf84e05.chunk.css.map} +1 -1
  43. package/build/static/css/7227.013f99a9.chunk.css +2 -0
  44. package/build/static/css/{7227.4f25ba8c.chunk.css.map → 7227.013f99a9.chunk.css.map} +1 -1
  45. package/build/static/css/8017.4e6600a8.chunk.css +2 -0
  46. package/build/static/css/8017.4e6600a8.chunk.css.map +1 -0
  47. package/build/static/css/8332.5337d614.chunk.css +2 -0
  48. package/build/static/css/{8332.83d205a2.chunk.css.map → 8332.5337d614.chunk.css.map} +1 -1
  49. package/build/static/css/{8725.b253f64c.chunk.css → 8725.4ebcb56b.chunk.css} +2 -2
  50. package/build/static/css/{8725.b253f64c.chunk.css.map → 8725.4ebcb56b.chunk.css.map} +1 -1
  51. package/build/static/css/9968.f88faca8.chunk.css +2 -0
  52. package/build/static/css/9968.f88faca8.chunk.css.map +1 -0
  53. package/build/static/js/{1153.cdc50c19.chunk.js → 1153.b6ff505e.chunk.js} +3 -3
  54. package/build/static/js/{1153.cdc50c19.chunk.js.map → 1153.b6ff505e.chunk.js.map} +1 -1
  55. package/build/static/js/1400.31ca0433.chunk.js +2 -0
  56. package/build/static/js/{1400.3a90f09a.chunk.js.map → 1400.31ca0433.chunk.js.map} +1 -1
  57. package/build/static/js/1554.bae12001.chunk.js +3 -0
  58. package/build/static/js/{1554.0beb5494.chunk.js.map → 1554.bae12001.chunk.js.map} +1 -1
  59. package/build/static/js/1581.811ba84b.chunk.js +2 -0
  60. package/build/static/js/{3962.3e44db16.chunk.js.map → 1581.811ba84b.chunk.js.map} +1 -1
  61. package/build/static/js/2331.b6f2a506.chunk.js +2 -0
  62. package/build/static/js/{2331.017c7318.chunk.js.map → 2331.b6f2a506.chunk.js.map} +1 -1
  63. package/build/static/js/2503.a8362b49.chunk.js +2 -0
  64. package/build/static/js/{2503.15f977e4.chunk.js.map → 2503.a8362b49.chunk.js.map} +1 -1
  65. package/build/static/js/2517.3255de49.chunk.js +2 -0
  66. package/build/static/js/{2517.304d1c92.chunk.js.map → 2517.3255de49.chunk.js.map} +1 -1
  67. package/build/static/js/2716.6975d095.chunk.js +3 -0
  68. package/build/static/js/{2716.66d4eab2.chunk.js.map → 2716.6975d095.chunk.js.map} +1 -1
  69. package/build/static/js/2730.1a859433.chunk.js +2 -0
  70. package/build/static/js/{2730.3e2fa120.chunk.js.map → 2730.1a859433.chunk.js.map} +1 -1
  71. package/build/static/js/2814.dd5df99c.chunk.js +2 -0
  72. package/build/static/js/{2814.1ea829c8.chunk.js.map → 2814.dd5df99c.chunk.js.map} +1 -1
  73. package/build/static/js/2970.cb5e7784.chunk.js +2 -0
  74. package/build/static/js/{2970.326287df.chunk.js.map → 2970.cb5e7784.chunk.js.map} +1 -1
  75. package/build/static/js/3142.b2c018df.chunk.js +2 -0
  76. package/build/static/js/{3142.b79193df.chunk.js.map → 3142.b2c018df.chunk.js.map} +1 -1
  77. package/build/static/js/36.c8cda08b.chunk.js +2 -0
  78. package/build/static/js/{36.dccdc545.chunk.js.map → 36.c8cda08b.chunk.js.map} +1 -1
  79. package/build/static/js/{4029.75545d82.chunk.js → 4029.14ac6ed1.chunk.js} +2 -2
  80. package/build/static/js/4029.14ac6ed1.chunk.js.map +1 -0
  81. package/build/static/js/4106.8ff2b68d.chunk.js +2 -0
  82. package/build/static/js/{1725.bc60f755.chunk.js.map → 4106.8ff2b68d.chunk.js.map} +1 -1
  83. package/build/static/js/4265.9062620c.chunk.js +2 -0
  84. package/build/static/js/{4265.f2c2f034.chunk.js.map → 4265.9062620c.chunk.js.map} +1 -1
  85. package/build/static/js/{4319.cf5925fe.chunk.js → 4319.f41624a0.chunk.js} +2 -2
  86. package/build/static/js/{4319.cf5925fe.chunk.js.map → 4319.f41624a0.chunk.js.map} +1 -1
  87. package/build/static/js/{4666.c9024365.chunk.js → 4666.d7833510.chunk.js} +3 -3
  88. package/build/static/js/{4666.c9024365.chunk.js.map → 4666.d7833510.chunk.js.map} +1 -1
  89. package/build/static/js/5443.7314913f.chunk.js +2 -0
  90. package/build/static/js/{5443.f7281d63.chunk.js.map → 5443.7314913f.chunk.js.map} +1 -1
  91. package/build/static/js/556.1fe51b22.chunk.js +2 -0
  92. package/build/static/js/{556.9e43bff7.chunk.js.map → 556.1fe51b22.chunk.js.map} +1 -1
  93. package/build/static/js/5600.44942680.chunk.js +2 -0
  94. package/build/static/js/{5600.d728bcd3.chunk.js.map → 5600.44942680.chunk.js.map} +1 -1
  95. package/build/static/js/5786.fd6a0b33.chunk.js +2 -0
  96. package/build/static/js/{5786.4a032c0e.chunk.js.map → 5786.fd6a0b33.chunk.js.map} +1 -1
  97. package/build/static/js/5962.0da47a92.chunk.js +2 -0
  98. package/build/static/js/{5962.7cd8c3e1.chunk.js.map → 5962.0da47a92.chunk.js.map} +1 -1
  99. package/build/static/js/{5996.eb4c7c52.chunk.js → 5996.86ac2f71.chunk.js} +2 -2
  100. package/build/static/js/{5996.eb4c7c52.chunk.js.map → 5996.86ac2f71.chunk.js.map} +1 -1
  101. package/build/static/js/628.78906eef.chunk.js +2 -0
  102. package/build/static/js/{628.4d54b21d.chunk.js.map → 628.78906eef.chunk.js.map} +1 -1
  103. package/build/static/js/6611.aa28eda7.chunk.js +2 -0
  104. package/build/static/js/{6611.1be48e69.chunk.js.map → 6611.aa28eda7.chunk.js.map} +1 -1
  105. package/build/static/js/6779.af16ee56.chunk.js +2 -0
  106. package/build/static/js/{6779.2092cdf9.chunk.js.map → 6779.af16ee56.chunk.js.map} +1 -1
  107. package/build/static/js/6908.b9d9e979.chunk.js +3 -0
  108. package/build/static/js/6908.b9d9e979.chunk.js.map +1 -0
  109. package/build/static/js/6915.b7f0a418.chunk.js +2 -0
  110. package/build/static/js/{6915.d3fc7b65.chunk.js.map → 6915.b7f0a418.chunk.js.map} +1 -1
  111. package/build/static/js/7060.fb665524.chunk.js +2 -0
  112. package/build/static/js/{7060.2de08549.chunk.js.map → 7060.fb665524.chunk.js.map} +1 -1
  113. package/build/static/js/7121.c865a673.chunk.js +2 -0
  114. package/build/static/js/{7121.5ffc808f.chunk.js.map → 7121.c865a673.chunk.js.map} +1 -1
  115. package/build/static/js/7227.254ec5f8.chunk.js +3 -0
  116. package/build/static/js/{7227.2b908933.chunk.js.map → 7227.254ec5f8.chunk.js.map} +1 -1
  117. package/build/static/js/7322.7509f0aa.chunk.js +2 -0
  118. package/build/static/js/{4941.ae76674b.chunk.js.map → 7322.7509f0aa.chunk.js.map} +1 -1
  119. package/build/static/js/7617.69cfc4d5.chunk.js +2 -0
  120. package/build/static/js/{7617.e7bfe484.chunk.js.map → 7617.69cfc4d5.chunk.js.map} +1 -1
  121. package/build/static/js/{7967.e2a25670.chunk.js → 7967.3d26b043.chunk.js} +2 -2
  122. package/build/static/js/{7967.e2a25670.chunk.js.map → 7967.3d26b043.chunk.js.map} +1 -1
  123. package/build/static/js/{8017.a61ddbed.chunk.js → 8017.f6128e03.chunk.js} +2 -2
  124. package/build/static/js/{8017.a61ddbed.chunk.js.map → 8017.f6128e03.chunk.js.map} +1 -1
  125. package/build/static/js/{8151.f8e1d2af.chunk.js → 8151.712d3f0a.chunk.js} +2 -2
  126. package/build/static/js/{8151.f8e1d2af.chunk.js.map → 8151.712d3f0a.chunk.js.map} +1 -1
  127. package/build/static/js/8332.0c378091.chunk.js +2 -0
  128. package/build/static/js/{8332.c9939217.chunk.js.map → 8332.0c378091.chunk.js.map} +1 -1
  129. package/build/static/js/8725.dd2e6691.chunk.js +2 -0
  130. package/build/static/js/{8725.cbf5f6aa.chunk.js.map → 8725.dd2e6691.chunk.js.map} +1 -1
  131. package/build/static/js/903.9e4ec4b4.chunk.js +1 -0
  132. package/build/static/js/9439.e8385e17.chunk.js +2 -0
  133. package/build/static/js/{1820.72fe029d.chunk.js.map → 9439.e8385e17.chunk.js.map} +1 -1
  134. package/build/static/js/{9968.2dec8716.chunk.js → 9968.fb47c40a.chunk.js} +2 -2
  135. package/build/static/js/{9968.2dec8716.chunk.js.map → 9968.fb47c40a.chunk.js.map} +1 -1
  136. package/build/static/js/main.6ab8b419.js +2 -0
  137. package/build/static/js/main.6ab8b419.js.map +1 -0
  138. package/package.json +1 -1
  139. package/build/static/css/1151.174bd54b.chunk.css +0 -2
  140. package/build/static/css/1153.3be02ec9.chunk.css +0 -2
  141. package/build/static/css/1153.3be02ec9.chunk.css.map +0 -1
  142. package/build/static/css/1554.d2fca62a.chunk.css +0 -2
  143. package/build/static/css/2503.fefbc858.chunk.css +0 -2
  144. package/build/static/css/2517.f69b3b63.chunk.css +0 -2
  145. package/build/static/css/2716.ad57f666.chunk.css +0 -2
  146. package/build/static/css/2730.9c490085.chunk.css +0 -2
  147. package/build/static/css/3142.bcd730ed.chunk.css +0 -2
  148. package/build/static/css/4029.83824f1a.chunk.css +0 -2
  149. package/build/static/css/4029.83824f1a.chunk.css.map +0 -1
  150. package/build/static/css/4265.bae2afe4.chunk.css +0 -2
  151. package/build/static/css/4265.bae2afe4.chunk.css.map +0 -1
  152. package/build/static/css/4319.4d5cfa09.chunk.css +0 -2
  153. package/build/static/css/4666.a656d2c4.chunk.css +0 -2
  154. package/build/static/css/5443.e92e3bbe.chunk.css +0 -2
  155. package/build/static/css/5443.e92e3bbe.chunk.css.map +0 -1
  156. package/build/static/css/5600.8117cf36.chunk.css +0 -2
  157. package/build/static/css/5962.f29a181f.chunk.css +0 -2
  158. package/build/static/css/6611.91ad2413.chunk.css +0 -2
  159. package/build/static/css/6779.9f6193d6.chunk.css +0 -2
  160. package/build/static/css/7121.f089fe7d.chunk.css +0 -2
  161. package/build/static/css/7227.4f25ba8c.chunk.css +0 -2
  162. package/build/static/css/8017.f71b311f.chunk.css +0 -2
  163. package/build/static/css/8017.f71b311f.chunk.css.map +0 -1
  164. package/build/static/css/8332.83d205a2.chunk.css +0 -2
  165. package/build/static/css/9968.31fdfff6.chunk.css +0 -2
  166. package/build/static/css/9968.31fdfff6.chunk.css.map +0 -1
  167. package/build/static/js/1400.3a90f09a.chunk.js +0 -2
  168. package/build/static/js/1554.0beb5494.chunk.js +0 -3
  169. package/build/static/js/1581.ebb0eb2e.chunk.js +0 -2
  170. package/build/static/js/1581.ebb0eb2e.chunk.js.map +0 -1
  171. package/build/static/js/1725.bc60f755.chunk.js +0 -2
  172. package/build/static/js/1820.72fe029d.chunk.js +0 -2
  173. package/build/static/js/2331.017c7318.chunk.js +0 -2
  174. package/build/static/js/2503.15f977e4.chunk.js +0 -2
  175. package/build/static/js/2517.304d1c92.chunk.js +0 -2
  176. package/build/static/js/2716.66d4eab2.chunk.js +0 -3
  177. package/build/static/js/2730.3e2fa120.chunk.js +0 -2
  178. package/build/static/js/2814.1ea829c8.chunk.js +0 -2
  179. package/build/static/js/2970.326287df.chunk.js +0 -2
  180. package/build/static/js/3142.b79193df.chunk.js +0 -2
  181. package/build/static/js/3284.8e2ca828.chunk.js +0 -1
  182. package/build/static/js/3405.8fab2c85.chunk.js +0 -2
  183. package/build/static/js/3405.8fab2c85.chunk.js.map +0 -1
  184. package/build/static/js/36.dccdc545.chunk.js +0 -2
  185. package/build/static/js/3962.3e44db16.chunk.js +0 -2
  186. package/build/static/js/4029.75545d82.chunk.js.map +0 -1
  187. package/build/static/js/4106.e972d67d.chunk.js +0 -2
  188. package/build/static/js/4106.e972d67d.chunk.js.map +0 -1
  189. package/build/static/js/4265.f2c2f034.chunk.js +0 -2
  190. package/build/static/js/4679.c9e2f109.chunk.js +0 -2
  191. package/build/static/js/4679.c9e2f109.chunk.js.map +0 -1
  192. package/build/static/js/4712.b3ce8808.chunk.js +0 -2
  193. package/build/static/js/4712.b3ce8808.chunk.js.map +0 -1
  194. package/build/static/js/4941.ae76674b.chunk.js +0 -2
  195. package/build/static/js/5443.f7281d63.chunk.js +0 -2
  196. package/build/static/js/556.9e43bff7.chunk.js +0 -2
  197. package/build/static/js/5600.d728bcd3.chunk.js +0 -2
  198. package/build/static/js/5786.4a032c0e.chunk.js +0 -2
  199. package/build/static/js/589.89f94e63.chunk.js +0 -2
  200. package/build/static/js/589.89f94e63.chunk.js.map +0 -1
  201. package/build/static/js/5962.7cd8c3e1.chunk.js +0 -2
  202. package/build/static/js/628.4d54b21d.chunk.js +0 -2
  203. package/build/static/js/6611.1be48e69.chunk.js +0 -2
  204. package/build/static/js/6779.2092cdf9.chunk.js +0 -2
  205. package/build/static/js/6908.e4e20932.chunk.js +0 -3
  206. package/build/static/js/6908.e4e20932.chunk.js.map +0 -1
  207. package/build/static/js/6915.d3fc7b65.chunk.js +0 -2
  208. package/build/static/js/7060.2de08549.chunk.js +0 -2
  209. package/build/static/js/7121.5ffc808f.chunk.js +0 -2
  210. package/build/static/js/7227.2b908933.chunk.js +0 -3
  211. package/build/static/js/7322.dd5d9179.chunk.js +0 -2
  212. package/build/static/js/7322.dd5d9179.chunk.js.map +0 -1
  213. package/build/static/js/7617.e7bfe484.chunk.js +0 -2
  214. package/build/static/js/8175.61ab1d7e.chunk.js +0 -2
  215. package/build/static/js/8175.61ab1d7e.chunk.js.map +0 -1
  216. package/build/static/js/8247.aaa4ad4e.chunk.js +0 -2
  217. package/build/static/js/8247.aaa4ad4e.chunk.js.map +0 -1
  218. package/build/static/js/8332.c9939217.chunk.js +0 -2
  219. package/build/static/js/8725.cbf5f6aa.chunk.js +0 -2
  220. package/build/static/js/9019.b8dab87c.chunk.js +0 -2
  221. package/build/static/js/9019.b8dab87c.chunk.js.map +0 -1
  222. package/build/static/js/903.c384d9b6.chunk.js +0 -1
  223. package/build/static/js/9439.51dd3ec1.chunk.js +0 -2
  224. package/build/static/js/9439.51dd3ec1.chunk.js.map +0 -1
  225. package/build/static/js/9998.c5890abc.chunk.js +0 -2
  226. package/build/static/js/9998.c5890abc.chunk.js.map +0 -1
  227. package/build/static/js/main.7fa303fe.js +0 -2
  228. package/build/static/js/main.7fa303fe.js.map +0 -1
  229. /package/build/static/js/{1153.cdc50c19.chunk.js.LICENSE.txt → 1153.b6ff505e.chunk.js.LICENSE.txt} +0 -0
  230. /package/build/static/js/{1554.0beb5494.chunk.js.LICENSE.txt → 1554.bae12001.chunk.js.LICENSE.txt} +0 -0
  231. /package/build/static/js/{2716.66d4eab2.chunk.js.LICENSE.txt → 2716.6975d095.chunk.js.LICENSE.txt} +0 -0
  232. /package/build/static/js/{4666.c9024365.chunk.js.LICENSE.txt → 4666.d7833510.chunk.js.LICENSE.txt} +0 -0
  233. /package/build/static/js/{6908.e4e20932.chunk.js.LICENSE.txt → 6908.b9d9e979.chunk.js.LICENSE.txt} +0 -0
  234. /package/build/static/js/{7227.2b908933.chunk.js.LICENSE.txt → 7227.254ec5f8.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4106,1725],{34106:(e,n,t)=>{t.r(n),t.d(n,{Provider:()=>u,context:()=>c,usePreset:()=>a});var r=t(73884),o=t.n(r);const c=(0,r.createContext)({}),{Provider:s}=c,u=e=>{let{value:n,children:t}=e;const c=(0,r.useRef)(n);return c.current=n,o().createElement(s,{value:c},t)};u.defaultProps={value:{}};const a=()=>(0,r.useContext)(c).current||{}}}]);
2
- //# sourceMappingURL=4106.e972d67d.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/4106.e972d67d.chunk.js","mappings":"mPAEaA,GAAUC,EAAAA,EAAAA,eAAc,CAAC,IAE/BC,SAAUC,GAAiBH,EAE5BE,EAAWE,IAAuB,IAAtB,MAACC,EAAK,SAAEC,GAASF,EAC/B,MAAMG,GAASC,EAAAA,EAAAA,QAAOH,GAEtB,OADAE,EAAOE,QAAUJ,EACVK,IAAAA,cAACP,EAAa,CAACE,MAAOE,GACxBD,EACW,EAGpBJ,EAASS,aAAe,CACpBN,MAAO,CAAC,GAGN,MAAAO,EAAYA,KACCC,EAAAA,EAAAA,YAAWb,GACZS,SAAW,CAAC,C","sources":["../node_modules/@kne/global-preset/src/index.js"],"sourcesContent":["import React, {createContext, useContext, useRef} from 'react';\n\nexport const context = createContext({});\n\nconst {Provider: ReactProvider} = context;\n\nconst Provider = ({value, children}) => {\n const preset = useRef(value);\n preset.current = value;\n return <ReactProvider value={preset}>\n {children}\n </ReactProvider>\n};\n\nProvider.defaultProps = {\n value: {}\n};\n\nconst usePreset = () => {\n const preset = useContext(context);\n return preset.current || {};\n};\n\nexport {Provider, usePreset};\n"],"names":["context","createContext","Provider","ReactProvider","_ref","value","children","preset","useRef","current","React","defaultProps","usePreset","useContext"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4265,1151,9034,6611,3142,8017],{42787:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var s=n(10486),r=n(73884),a=n(96418),l=n.n(a),o=n(83136),i=n.n(o);const c={scroller:"style_scroller__EfuqR__BSy+U","scroller-inner":"style_scroller-inner__NJSE0__BSy+U","is-moving":"style_is-moving__jGuy0__BSy+U"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...a}=e;const l=(0,r.useRef)(0),[o,d]=(0,r.useState)(!1),p=(0,r.useRef)(o);p.current=o;const _=(0,r.useRef)(t);_.current=t;const h=(0,r.useRef)(1);return h.current=a.width/a.innerWidth,(0,r.useEffect)((()=>{const e=e=>{p.current&&_.current(h.current*(e.clientX-l.current)),l.current=e.clientX},t=()=>{d(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,s.createPortal)(a.hasScroller?(0,u.jsx)("div",{className:c.scroller,style:{left:a.left,width:a.width,height:15},children:(0,u.jsx)("div",{className:i()(c["scroller-inner"],{[c["is-moving"]]:o}),style:{width:a.innerWidth,left:a.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,d(!0)}})}):null,n()||document.body)},p=e=>{let{className:t,scroller:n,getScrollTarget:s,children:a}=e;const[o,p]=(0,r.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),_=(0,r.useRef)(null),h=l()((()=>_.current&&s(_.current))),m=(0,r.useRef)();return m.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,r.useEffect)((()=>{const e=m.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:s,top:r,height:a}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,o=s*t.clientWidth/t.scrollWidth-6,i=t.scrollLeft*t.clientWidth/t.scrollWidth+2,c=e.getBoundingClientRect();p((u=>Object.assign({},u,{left:n,width:s,innerLeft:i,innerWidth:o,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?r+a-e.offsetHeight>0&&r<e.offsetHeight:r<c.top+c.height&&r+a>c.top+c.height)})))},s=new ResizeObserver(n);return new ResizeObserver((()=>{t=h(),t&&(s.disconnect(),n(),Array.from(t.children).forEach((e=>{s.observe(e)})),t.addEventListener("scroll",n))})).observe(_.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[h]),n?(0,u.jsxs)("div",{className:i()(c["scroller-outer"],t),ref:_,style:{"--scroller-bar-height":null!==o&&void 0!==o&&o.hasScroller?"15px":"0px"},children:[a,(0,u.jsx)(d,{...o,getContainer:m.current,onScroll:e=>{h().scrollLeft+=e}})]}):a};p.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const _=p},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y,useFeatureCall:()=>f});var s=n(73884),r=n(63908),a=n(33097),l=n.n(a),o=n(15797),i=n.n(o),c=n(1488),u=n.n(c),d=n(70579);const p=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{p(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),p(e.children,t,n?n+":"+e.id:e.id)))},_=i()((e=>{const t=(()=>{const t=new Map;return p(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:s}=t;const r=n.get(e);return-1!==s.indexOf(e)&&!0!==r.close&&l()(r,"dependencies",[]).every((t=>{const r=n.get(e);return s.indexOf(t)>-1&&!0!==r.close}))},m=(0,s.createContext)(null),{Provider:g}=m,f=e=>{const{features:t,profile:n,profileMap:a,debug:o}=(()=>{const e=(0,r.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},_(t),{debug:n})})(),i="system"===n.type?n.id:"root",c=(0,s.useContext)(m),u=c?c+":"+e:i+":"+e;return(0,s.useEffect)((()=>{t&&t.length>0&&o&&console.log(`[featureId] ${u},[state] ${h(u,{features:t,profileMap:a})}`,a.get(u))}),[t,a,o,u]),{isPass:!(e&&t&&t.length>0)||h(u,{features:t,profileMap:a}),currentId:u,feature:a.get(u)}},y=e=>{let{id:t,children:n}=e;const{isPass:s,feature:r,currentId:a}=f(t);return(0,d.jsx)(g,{value:a,children:"function"===typeof n?n({isPass:s,options:s?l()(r,"options"):l()(r,"rejectedOptions"),currentId:a}):s&&n})}},75363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});const s=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var r=n(58609),a=n(64671),l=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__BSy+U",u="style_inner__bMKeU__BSy+U",d="style_content__xTfWZ__BSy+U",p="style_link__93j7O__BSy+U";var _=n(48731),h=n(70579);const m=e=>{let{name:t,className:n}=e;return(0,h.jsx)(r.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,h.jsx)(_.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,n),children:(0,h.jsxs)(l.Space,{className:u,children:[(0,h.jsx)(a.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:d,children:e.content}),e.url&&(0,h.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(a.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},51516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Affix:()=>L,Menu:()=>X.default,Page:()=>E,PermissionsPage:()=>V,StateBarPage:()=>D,TablePage:()=>Q,default:()=>$});var s=n(55199),r=n(73884);const a={menu:null,filter:null,menuOpen:!0,menuWidth:"240px",menuFixed:!0,menuCloseButton:!0,backgroundColor:null,header:null,headerHeight:0,headerFixed:!0,headerInfo:null,backUrl:null,title:null,titleExtra:null,titleLeftExtra:null,noMargin:!1,noPadding:!1,optionFooterHeight:0,option:null,optionWidth:"400px",optionNoPadding:!1,optionFixed:!0,optionFooter:null},l=(0,r.createContext)({}),{Provider:o,Consumer:i}=l,c=()=>(0,r.useContext)(l);var u=n(79329),d=n(76801),p=n(36755),_=n(19853),h=n.n(_),m=n(63361),g=n(83136),f=n.n(g);const y={layout:"style_layout__k+lxR__BSy+U","page-content":"style_page-content__4XeN8__BSy+U","page-main":"style_page-main__P0yEF__BSy+U","page-main-content":"style_page-main-content__1OVPN__BSy+U","table-page":"style_table-page__JkbLf__BSy+U","helper-guide":"style_helper-guide__vzw4z__BSy+U","page-outer":"style_page-outer__2a6iH__BSy+U","no-margin":"style_no-margin__S6caT__BSy+U","page-menu":"style_page-menu__CZSa9__BSy+U",closed:"style_closed__hmnft__BSy+U","page-menu-inner":"style_page-menu-inner__rmKpu__BSy+U","page-menu-main":"style_page-menu-main__OXg2M__BSy+U","page-option-main":"style_page-option-main__LyfT3__BSy+U","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__BSy+U","page-option":"style_page-option__diS2S__BSy+U","page-option-inner":"style_page-option-inner__Fj1JH__BSy+U","page-option-footer":"style_page-option-footer__d7xE0__BSy+U","fixed-container":"style_fixed-container__1VZwY__BSy+U","is-fixed":"style_is-fixed__1aQhp__BSy+U","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__BSy+U","page-menu-btn":"style_page-menu-btn__BiTy8__BSy+U","page-title":"style_page-title__zw-Fd__BSy+U","page-title-text":"style_page-title-text__Rj4RC__BSy+U","no-padding":"style_no-padding__V7Dwy__BSy+U","page-header":"style_page-header__a813p__BSy+U","page-header-info":"style_page-header-info__cMrZR__BSy+U","layout-menu":"style_layout-menu__yiab0__BSy+U","sub-menu":"style_sub-menu__dyqK7__BSy+U","no-collapsed":"style_no-collapsed__76h8W__BSy+U","has-not-children":"style_has-not-children__fnjRK__BSy+U","table-page-top":"style_table-page-top__bt1l9__BSy+U","error-component":"style_error-component__HvghB__BSy+U","state-bar-page":"style_state-bar-page__+aUM4__BSy+U","back-icon":"style_back-icon__79v2G__BSy+U"};var x=n(70579);const v=e=>{let{className:t,isFixed:n,children:s}=e;return n?(0,x.jsx)("div",{className:f()(t,"fixed-container",y["fixed-container"],{[y["is-fixed"]]:n}),children:s}):(0,x.jsx)("div",{className:f()(t,"fixed-container",y["fixed-container"]),children:s})};var j=n(64671),b=n(17342),S=n(94679),N=n(33097),B=n.n(N),U=n(55490),C=n(25644);const O="CORE_PAGE_MENU_OPEN_KEY",w=()=>{const{pageProps:e,setPageProps:t}=c(),{menu:n,menuOpen:r,menuWidth:a,menuFixed:l,menuCloseButton:o}=e,i=(0,S.useLocation)().pathname.split("/")[1];return n?(0,x.jsxs)(s.Col,{className:f()(y["page-menu"],{[y.closed]:!r}),style:{"--width":a},children:[(0,x.jsx)(v,{className:y["page-menu-inner"],isFixed:l,children:(0,x.jsx)("div",{className:y["page-menu-main-outer"],children:(0,x.jsx)(b.A,{className:y["page-menu-main"],children:n})})}),o?(0,x.jsx)(v,{className:f()(y["page-menu-btn-outer"],{[y["is-fixed"]]:l}),isFixed:l,children:(0,x.jsx)(s.Button,{className:f()(y["page-menu-btn"],{[y.closed]:!r}),icon:r?(0,x.jsx)(j.default,{type:"icon-arrow-bold-left"}):(0,x.jsx)(j.default,{type:"icon-arrow-bold-right"}),onClick:()=>{t({menuOpen:!e.menuOpen});const n=C.A.getItem(O)||{};n[i]=!e.menuOpen,C.A.setItem(O,n),t({menuOpen:!e.menuOpen})}})}):null]}):null},P=e=>{let{children:t,isPass:n,...l}=e;const{setPageProps:o}=c(),i=(0,r.useRef)(null),u=(()=>{const e=(0,S.useLocation)().pathname.split("/")[1];return(0,r.useMemo)((()=>{const t=C.A.getItem(O)||{};return!(0,U.A)(B()(t,e))||B()(t,e)}),[e])})(),d=(0,r.useRef)(u);return d.current=u,(0,r.useEffect)((()=>{if(!h()(i.current,l)){i.current=l;const e=Object.assign({},a,l,"boolean"===typeof d.current?{menuOpen:d.current}:{});e.header&&0===e.headerHeight&&delete e.headerHeight,e.optionFooter&&0===e.optionFooterHeight&&delete e.optionFooter,o(e)}}),[l,o]),!1===n?(0,x.jsx)(s.Result,{status:"403",subTitle:"\u6682\u672a\u5f00\u653e\u6b64\u529f\u80fd"}):t},k=e=>{let{featureId:t,name:n,openFeatures:s,...a}=e;return!0===s?(0,x.jsx)(m.default,{id:n,children:e=>{let{isPass:t}=e;return(0,r.createElement)(P,{...a,key:n,isPass:t})}}):(0,r.createElement)(P,{...a,key:n})};k.defaultProps=a;const E=k,L=e=>{let{isFixed:t,offsetTop:n,offsetBottom:r,onChange:a,...l}=e;return t?(0,x.jsx)(s.Affix,{...l,offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:r,onChange:a}):(0,x.jsx)("div",{...l})},K=e=>{let{targetKey:t,...n}=e;const s=(e=>{let{targetKey:t}=e;const{setPageProps:n}=c(),s=(0,r.useRef)(null);return(0,r.useLayoutEffect)((()=>{const e=()=>{n({[t]:s.current.offsetHeight})};e();const r=new MutationObserver(e);return r.observe(s.current,{subtree:!0,childList:!0}),()=>{r.disconnect()}}),[n,t]),s})({targetKey:t});return(0,x.jsx)("div",{...n,ref:s})},R=()=>{const{pageProps:e}=c(),{header:t,headerFixed:n}=e;return t?(0,x.jsx)(L,{isFixed:n,className:y["page-header"],offsetTop:u.navigationHeight,children:(0,x.jsx)(K,{targetKey:"headerHeight",children:t})}):null},A=()=>{const{pageProps:e}=c(),{headerInfo:t}=e,n=(0,r.useRef)(null);return t?(0,x.jsx)("div",{ref:n,className:f()(y["page-header-info"],"page-header-info"),children:t}):null};var F=n(16915);const I=e=>{let{title:t,filter:n,titleExtra:r,titleLeftExtra:a,backUrl:l}=e;const o=(0,S.useNavigate)();return n?(0,x.jsx)(F.default,{className:y["page-title"],...n,extra:r}):t||a||r?(0,x.jsxs)(s.Row,{justify:"space-between",align:"middle",className:y["page-title"],children:[(0,x.jsx)(s.Col,{children:(0,x.jsxs)(s.Space,{children:[t?(0,x.jsx)("div",{className:y["page-title-text"],children:l?(0,x.jsxs)(s.Space,{children:[(0,x.jsx)("span",{className:y["back-icon"],onClick:()=>{o(l)},children:(0,x.jsx)(j.default,{type:"icon-arrow-thin-left"})}),(0,x.jsx)("span",{children:t})]}):t}):null,a||null]})}),(0,x.jsx)(s.Col,{children:r})]}):null},M=()=>{const{pageProps:e}=c(),{option:t,optionWidth:n,optionFixed:r,optionFooter:a,optionFooterHeight:l,optionNoPadding:o}=e;return t?(0,x.jsx)(s.Col,{className:f()(y["page-option"],"page-option"),style:{"--width":n,"--foot-height":l+"px"},children:(0,x.jsxs)(v,{className:y["page-option-inner"],isFixed:r,children:[(0,x.jsx)(b.A,{className:f()(y["page-option-main"],"page-option-main"),style:{padding:o?"0px":"var(--padding-width)"},children:t}),a?(0,x.jsx)(K,{className:y["page-option-footer"],targetKey:"optionFooterHeight",children:(0,x.jsx)(s.Space,{align:"center",children:a})}):null]})}):null};var H=n(75363),T=n(29053);const{Content:W}=s.Layout,q=()=>(0,x.jsx)(s.Alert,{message:"\u7cfb\u7edf\u51fa\u4e86\u70b9\u5c0f\u95ee\u9898\uff0c\u53ef\u5237\u65b0\u9875\u9762\u8fdb\u884c\u89e3\u51b3",showIcon:!0,type:"error",action:(0,x.jsx)(s.Button,{size:"small",danger:!0,onClick:()=>window.location.reload(),children:"\u5237\u65b0"})}),z=e=>(0,x.jsx)(p.A,{...e,errorComponent:q}),G=e=>{let{children:t,theme:n,navigation:l}=e;const[i,c]=(0,r.useState)(0),[p,_]=(0,r.useState)(Object.assign({},a)),{permissions:h}=(0,T.usePermissions)(),m=(0,r.useCallback)((e=>_((t=>Object.assign({},t,e)))),[]);return(0,r.useEffect)((()=>{const e=(0,d.h)(),t=()=>{c(e.scrollLeft)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}}),[]),(0,x.jsxs)(s.Layout,{className:y.layout,style:Object.assign({},{"--nav-height":u.navigationHeight+"px","--nav-height-base":"var(--nav-height)","--scroll-left":-i+"px"},n),children:[l&&(0,x.jsx)(z,{children:(0,x.jsx)(u.default,{permissions:h,...l,onChange:e=>{(null===l||void 0===l?void 0:l.onChange)&&l.onChange(e)}})}),(0,x.jsx)(z,{children:(0,x.jsx)(W,{className:y["layout-content-wrap"],children:(0,x.jsxs)(o,{value:{pageProps:p,setPageProps:m},children:[(0,x.jsx)(z,{children:(0,x.jsx)(R,{})}),(0,x.jsx)(z,{children:(0,x.jsx)(A,{})}),(0,x.jsx)(z,{children:(0,x.jsxs)(s.Row,{className:f()(p.className,y["page-outer"]),wrap:!1,style:{"--nav-height":`calc(${p.headerFixed?p.headerHeight:0}px + var(--nav-height-base))`,"--nav-only-height":"var(--nav-height-base)"},children:[(0,x.jsx)(z,{children:(0,x.jsx)(w,{})}),(0,x.jsx)(s.Col,{className:f()(y["page-content"],{[y["no-margin"]]:p.noMargin}),flex:1,style:{"--background-color":p.backgroundColor},children:(0,x.jsxs)("div",{className:y["page-main"],children:[(0,x.jsx)(z,{children:(0,x.jsx)(I,{title:p.title,backUrl:p.backUrl,filter:p.filter,titleExtra:p.titleExtra,titleLeftExtra:p.titleLeftExtra})}),(0,x.jsx)("div",{className:f()(y["page-main-content"],{[y["no-padding"]]:p.noPadding}),children:(0,x.jsxs)(z,{children:[p.helperGuideName&&(0,x.jsx)(H.default,{className:y["helper-guide-page"],name:p.helperGuideName}),t]})})]})}),(0,x.jsx)(z,{children:(0,x.jsx)(M,{})})]})})]})})})]})};G.defaultProps={navigation:{}};const $=G,V=e=>{let{permissions:t,...n}=e;return(0,x.jsx)(T.default,{...Object.assign({},t,{type:"error"}),children:(0,x.jsx)(E,{...n})})};var X=n(28148),J=n(22814);const Q=(0,r.forwardRef)(((e,t)=>{let{helperGuideName:n,permissions:s,page:a,openFeatures:l,name:o,topArea:i,...c}=e;const[u,d]=(0,r.useState)(null);return(0,x.jsxs)(V,{name:o,openFeatures:l,permissions:s,...a,children:[i?(0,x.jsx)("div",{className:y["table-page-top"],children:"function"===typeof i?i(u):i}):null,(0,x.jsxs)("div",{className:y["table-page"],children:[n&&(0,x.jsx)(H.default,{className:f()("helper-guide",y["helper-guide"]),name:n}),(0,x.jsx)(J.TablePage,{...c,ref:t,name:o,onRequestSuccess:e=>{d(e)}})]})]})}));var Z=n(87227);const D=e=>{let{helperGuideName:t,permissions:n,page:s,stateBar:r,children:a,...l}=e;return(0,x.jsxs)(V,{...s,permissions:n,...l,children:[(0,x.jsx)("div",{className:y["state-bar-page"],children:(0,x.jsx)(Z.default,{...r})}),t&&(0,x.jsx)(H.default,{className:y["helper-guide"],name:t}),a]})}},28148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});const s={menu:"style_menu__gvIvn__BSy+U","all-no-start-icon":"style_all-no-start-icon__CA+zR__BSy+U","no-start-icon":"style_no-start-icon__LnC1S__BSy+U","has-children":"style_has-children__m9tce__BSy+U","has-children-node":"style_has-children-node__2bhEB__BSy+U","is-root":"style_is-root__4hhOc__BSy+U",title:"style_title__+Hcar__BSy+U",active:"style_active__WU49K__BSy+U","no-collapse":"style_no-collapse__aIZBM__BSy+U","title-content":"style_title-content__cQXpK__BSy+U",loading:"style_loading__1pU4P__BSy+U"};var r=n(83136),a=n.n(r),l=n(55199),o=n(94679),i=n(29053),c=n(10986),u=n.n(c),d=n(64671),p=n(73884),_=n(18081),h=n.n(_),m=n(87558),g=n(70579);const f=e=>{const t=(0,o.useNavigate)(),{id:n,className:r,label:c,iconType:u,path:p,request:_,onClick:h,isOpen:f,isSelected:y,onOpenChange:x,children:v,fetchOptions:j,depth:b,onLoad:S,allowCollapsed:N}=e,B=Array.isArray(v)&&v.length>0||j,{refresh:U,isLoading:C}=(0,m.useFetch)(Object.assign({},j,{auto:!N&&j,onRequestSuccess:e=>{S(e)}}));return(0,g.jsx)(i.default,{request:_,children:(0,g.jsxs)("div",{className:a()(r,s["menu-item"]),children:[(0,g.jsxs)("div",{className:a()(s.title,{[s.active]:y,[s["has-children"]]:B,[s["no-collapse"]]:B&&!N,[s["no-start-icon"]]:!u,[s["is-root"]]:0===b}),onClick:s=>{s.stopPropagation(),B||!p?B||j?N&&(j&&U({}),x(!f)):null===h||void 0===h||h(n,e):t(p)},children:[u&&(0,g.jsx)(d.default,{type:u}),(0,g.jsx)("span",{className:s["title-content"],children:c}),B&&N&&(0,g.jsx)(d.default,{type:f?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),B?!N||f&&v?(0,g.jsx)("div",{className:s["children-list"],children:v}):!N||f&&C?(0,g.jsx)("div",{className:s["children-list"],children:(0,g.jsx)(l.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},y=e=>{let{className:t,allowCollapsed:n,pathMatch:r,...l}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[d,_]=u()(l,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[m,y]=u()(l,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:x,defaultOpenKeys:v,links:j,childrenKeys:b,hasStartIcon:S,hasChildren:N}=(0,p.useMemo)((()=>{var e;const{items:t,childrenKeys:n,nodeMapping:s}=(e=>{const t={},n=[],s=(e,r)=>{const{parentKey:a,depth:l}=Object.assign({parentKey:"root",depth:0,paths:[]},r);return Array.isArray(e)&&e.length>0?e.map(((e,r)=>{const o=`${e.key||`${"root"!==a?`${a}-`:""}node-${r}`}`;t[a]||(t[a]=[]),t[a].push(o);const i=s(e.children,{parentKey:o,depth:l+1});t[o]&&t[a].push(...t[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:l,children:i,originItem:e});return n[o]=c,c})):null};return{items:s(e),childrenKeys:t,nodeMapping:n}})(m);let r=!1,a=!1;const l=[],o=[];return null===n||void 0===n||null===(e=n.root)||void 0===e||e.forEach((e=>{const t=s[e];t.iconType&&(r=!0),t.path&&l.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(a=!0,o.push(t.key))})),{defaultOpenKeys:o,links:l,items:t,childrenKeys:n,hasStartIcon:r,hasChildren:a}}),[m]);(0,p.useEffect)((()=>{const e=j.find((e=>{let{path:t}=e;return"function"===typeof r?r(t,{pathname:i,search:c}):h()(i.replace(/[#,?].*/,""))===h()(t)||h()(i+c)===h()(t)}));e&&_(e.key)}),[j,i,c,_,r]);const[B,U]=u()(Object.assign({},l,{defaultOpenKeys:l.defaultOpenKeys||v}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),C=(0,p.useCallback)(((e,t)=>{const{parentKey:s,depth:r,selectedKey:a,openKeys:l,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:t,key:i,originItem:c,...u}=e;return(0,p.createElement)(f,{...Object.assign({},u),id:i,parentId:s,depth:r,allowCollapsed:n,isSelected:i===a||b[i]&&b[i].indexOf(a)>-1,onClick:_,onLoad:e=>{y((t=>{const n=t=>Array.isArray(t)&&t.length>0?t.map((t=>Object.assign({},t,{children:c===t?e:n(t.children)}))):null;return n(t)}))},isOpen:(l||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{U((e=>{const t=e.slice(0);return e.indexOf(i)>-1?t.splice(e.indexOf(i),1):t.push(i),t}))}},C(t,{parentKey:s,depth:r+1,selectedKey:a,openKeys:l,paths:[...o,i]}))})):null}),[y,U,_,b,n]);return(0,g.jsx)("div",{className:a()(t,s.menu,{[s["all-no-start-icon"]]:!S,[s["has-children-node"]]:N}),children:C(x,{selectedKey:d,openKeys:B})})};y.defaultProps={defaultItems:[],allowCollapsed:!0};const x=y},79329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k,navigationHeight:()=>C});var s=n(55199),r=n(94679),a=n(33097),l=n.n(a),o=n(73884),i=n(83136),c=n.n(i);const u=n.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var d=n(40438);const p=e=>({"en-US":()=>n.e(257).then(n.bind(n,30257)),"zh-CN":()=>n.e(5671).then(n.bind(n,5671))}[e]());var _=n(58609),h=n(96418),m=n.n(h),g=n(64671);const f="style_navigation-wrap__VF8x2__BSy+U",y="style_navigation__60RrS__BSy+U",x="style_is-fixed__kHFWj__BSy+U",v="style_navigation-logo__q9qHu__BSy+U",j="style_logo__lB9RC__BSy+U",b="style_navigation-list__EYtkg__BSy+U",S="style_navigation-options__0BdJU__BSy+U",N="style_more-icon__gNMnt__BSy+U";var B=n(70579);const{Header:U}=s.Layout,C=48,O=e=>{let{name:t,mapping:n,defaultTitle:s}=e;const r=(0,o.useRef)({mapping:n,defaultTitle:s});return(0,o.useEffect)((()=>{const e=l()(r.current.mapping.get(t),"title");document.title=(e?e+"-":"")+r.current.defaultTitle}),[t]),null},w=e=>{let{onReady:t}=e;const n=m()(t);return(0,o.useEffect)((()=>{n()}),[n]),null},P=e=>{let{permissions:t,list:n,headerLogo:a,rightOptions:i,isFixed:h,showIndex:m,indexLabel:C,defaultTitle:P,overflowedIndicator:k,base:E,onChange:L,className:K}=e;const R=(0,o.useMemo)((()=>new Map(n.map((e=>{let{key:t,...n}=e;return[t,n]})))),[n]),A=(0,r.useNavigate)(),F=(0,r.useLocation)(),I=(0,o.useRef)(),M=(0,o.useRef)(null),[H,T]=(0,o.useState)("\u66f4\u591a"),[W,q]=(0,o.useState)(!1),z=F.pathname.replace(new RegExp(`^${E}`),"").split("/")[1],G=z?l()(Array.from(R.entries()).find((e=>{let[n,{path:s,permission:r}]=e;return-1!==("function"===typeof s?s(r,t):s).indexOf("/"+z)})),"[0]"):"home";(0,o.useEffect)((()=>{const e=()=>{if(I.current){const e=I.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let s=0;s<e.length;s++){if(-1!==e[s].getAttribute("data-menu-id").indexOf(G)){t=!0;break}}let n=R.get(G)&&!t?l()(R.get(G),"title"):"";T(n)}},t={attributes:!0,childList:!0,subtree:!0};return W&&I&&I.current&&(e(),M.current&&M.current.disconnect(),M.current=new MutationObserver(e),M.current.observe(I.current,t)),()=>{M.current&&M.current.disconnect()}}),[G,R,W]);const $=!!m&&{label:C||(0,B.jsx)(_.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{L&&L("/"),setTimeout((()=>{A("/")}),0)}};return(0,B.jsxs)(_.IntlProvider,{importMessages:p,moduleName:"Navigation",children:[(0,B.jsx)(_.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,B.jsx)(O,{defaultTitle:P||e,mapping:R,name:G})}),(0,B.jsx)("div",{className:c()(f,K),children:(0,B.jsx)(U,{className:c()("navigation",y,{[x]:h}),children:(0,B.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,B.jsx)(s.Col,{className:c()("navigation-logo",v),children:(0,B.jsx)(d.default,{className:c()(j),src:u,alt:"logo",...a})}),(0,B.jsxs)(s.Col,{ref:I,flex:1,className:c()("navigation-list",b),children:[(0,B.jsx)(w,{onReady:()=>{q(!0)}}),(0,B.jsx)(s.Menu,{selectedKeys:[G],mode:"horizontal",overflowedIndicator:k||(0,B.jsxs)(s.Space,{size:4,children:[(0,B.jsx)("span",{children:H||(0,B.jsx)(_.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,B.jsx)("span",{className:N,children:(0,B.jsx)(g.default,{type:"icon-arrow-thin-down"})})]}),items:[$,...Array.from(R.entries()).filter((e=>{let[n,{permission:s}]=e;if("string"===typeof s)return t.indexOf(s)>-1;if("function"===typeof s)return s(t);if(Array.isArray(s)){for(let e of s)if(t.indexOf(e)>-1)return!0;return!1}return!0})).map((e=>{let[n,{title:s,path:r,permission:a}]=e;const l="function"===typeof r?r(a,t):r;return{label:s,key:n,onClick:()=>{L&&L(l),setTimeout((()=>{A(l)}),0)}}}))]})]}),(0,B.jsx)(s.Col,{className:S,children:i})]})})})]})};P.defaultProps={isFixed:!0,permissions:[],list:[],showIndex:!0,base:""};const k=P},29053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{computedIsPass:()=>p,default:()=>g,usePermissions:()=>_,usePermissionsPass:()=>h});var s=n(73884),r=n(55199),a=n(33097),l=n.n(a),o=n(83136),i=n.n(o);const c="style_outer__vbHB9__BSy+U";var u=n(63908),d=n(70579);const p=e=>{let{permissions:t,request:n}=e;return!(Array.isArray(n)&&n.length>0)||n.some((e=>(t||[]).indexOf(e)>-1))},_=()=>{const{global:e}=(0,u.useGlobalContext)(),{permissions:t,permissionsPath:n}=(0,u.usePreset)();return{permissions:e.permissions||t||n&&l()(e,n)||[]}},h=e=>{let{request:t}=e;const{permissions:n}=_();return p({permissions:n,request:t})},m=e=>{let{type:t,className:n,tagName:a,message:l,request:o,children:u,...p}=e;const _=h({request:o});return"function"===typeof u?u({isPass:_,type:t,request:o}):!0===_?u:"error"===t?(0,d.jsx)(r.Result,{status:"403",subTitle:l}):"tooltip"===t?(0,d.jsx)(r.Tooltip,{title:l,children:(0,s.createElement)(a,{...p,className:i()(c,n)},u)}):null};m.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const g=m},87227:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(55199),r=n(83136),a=n.n(r);const l={"state-bar":"style_state-bar__3jfis__BSy+U","has-children":"style_has-children__oQDqU__BSy+U","tab-tab-control":"style_tab-tab-control__SopeO__BSy+U","tab-radio-control":"style_tab-radio-control__R8X6-__BSy+U","tab-step-control":"style_tab-step-control__EQaCl__BSy+U","inner-state-bar":"style_inner-state-bar__lWmOz__BSy+U"};var o=n(70579);const i=e=>{let{className:t,type:n="tab",stateOption:r=[],isInner:i,...c}=e;return(0,o.jsx)(s.Tabs,{...c,"data-testid":"components-core-state-bar",className:a()(l["state-bar"],l[`tab-${n}-control`],t,{[l["inner-state-bar"]]:i,[l["has-children"]]:r.some((e=>!!e.children))}),style:{"--total-count":r.length},animated:!1,items:r.map((e=>{let{tab:t,label:n,key:s,...r}=e;return{label:t||n,key:s,...r}}))})}},94710:e=>{e.exports=function(e,t,n,s){for(var r=-1,a=null==e?0:e.length;++r<a;){var l=e[r];t(s,l,n(l),e)}return s}},32952:(e,t,n)=>{var s=n(45652);e.exports=function(e,t,n,r){return s(e,(function(e,s,a){t(r,e,n(e),a)})),r}},45652:(e,t,n)=>{var s=n(94664),r=n(76516)(s);e.exports=r},75816:e=>{e.exports=function(e,t,n,s){for(var r=e.length,a=n+(s?1:-1);s?a--:++a<r;)if(t(e[a],a,e))return a;return-1}},99910:e=>{e.exports=function(e,t){for(var n,s=-1,r=e.length;++s<r;){var a=t(e[s]);void 0!==a&&(n=void 0===n?a:n+a)}return n}},19449:(e,t,n)=>{var s=n(94710),r=n(32952),a=n(9096),l=n(54052);e.exports=function(e,t){return function(n,o){var i=l(n)?s:r,c=t?t():{};return i(n,e,a(o,2),c)}}},76516:(e,t,n)=>{var s=n(6571);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!s(n))return e(n,r);for(var a=n.length,l=t?a:-1,o=Object(n);(t?l--:++l<a)&&!1!==r(o[l],l,o););return n}}},21844:(e,t,n)=>{var s=n(75816),r=n(9096),a=n(99140),l=Math.max,o=Math.min;e.exports=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var c=i-1;return void 0!==n&&(c=a(n),c=n<0?l(i+c,0):o(c,i-1)),s(e,r(t,3),c,!0)}},39835:(e,t,n)=>{var s=n(71775),r=n(19449),a=Object.prototype.hasOwnProperty,l=r((function(e,t,n){a.call(e,n)?e[n].push(t):s(e,n,[t])}));e.exports=l},79160:(e,t,n)=>{var s=n(16913),r=n(22761);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==s(e)}},69613:(e,t,n)=>{var s=n(9261);e.exports=function(e,t,n){return null==e?e:s(e,t,n)}},42907:(e,t,n)=>{var s=n(9096),r=n(99910);e.exports=function(e,t){return e&&e.length?r(e,s(t,2)):0}},99140:(e,t,n)=>{var s=n(37303);e.exports=function(e){var t=s(e),n=t%1;return t===t?n?t-n:t:0}}}]);
2
- //# sourceMappingURL=4265.f2c2f034.chunk.js.map
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4679,7060],{47060:(t,r,e)=>{"use strict";e.r(r),e.d(r,{default:()=>c});var n=e(73884),s=e(26866),i=e.n(s);const{EventEmitter:o}=i();class u extends o{constructor(t){super();const{debug:r,name:e="event"}=Object.assign({},t);this.debug=r,this.name=e}emit(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];this.debug&&console.log(`[${this.name}][debug]:`,...r),super.emit(...r)}}const c=t=>{const r=(0,n.useRef)(t);return(0,n.useMemo)((()=>{const t=new u(r.current);return{addListener:function(){return t.addListener(...arguments)},emit:function(){return t.emit(...arguments)},removeAllListeners:function(){return t.removeAllListeners(...arguments)},listeners:function(){return t.listeners(...arguments)},once:function(){return t.once(...arguments)}}}),[])}},26866:(t,r,e)=>{var n={EventEmitter:e(42667),EmitterSubscription:e(52757)};t.exports=n},42667:(t,r,e)=>{"use strict";var n=e(52757),s=e(48053),i=e(36415),o=e(49534),u=function(){function t(){this._subscriber=new s,this._currentSubscription=null}var r=t.prototype;return r.addListener=function(t,r,e){return this._subscriber.addSubscription(t,new n(this._subscriber,r,e))},r.once=function(t,r,e){var n=this;return this.addListener(t,(function(){n.removeCurrentListener(),r.apply(e,arguments)}))},r.removeAllListeners=function(t){this._subscriber.removeAllSubscriptions(t)},r.removeCurrentListener=function(){this._currentSubscription||i(!1),this._subscriber.removeSubscription(this._currentSubscription)},r.listeners=function(t){var r=this._subscriber.getSubscriptionsForType(t);return r?r.filter(o.thatReturnsTrue).map((function(t){return t.listener})):[]},r.emit=function(t){var r=this._subscriber.getSubscriptionsForType(t);if(r){for(var e=Object.keys(r),n=0;n<e.length;n++){var s=r[e[n]];s&&(this._currentSubscription=s,this.__emitToSubscription.apply(this,[s].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},r.__emitToSubscription=function(t,r){var e=Array.prototype.slice.call(arguments,2);t.listener.apply(t.context,e)},t}();t.exports=u},52757:(t,r,e)=>{"use strict";var n=function(t){var r,e;function n(r,e,n){var s;return(s=t.call(this,r)||this).listener=e,s.context=n,s}return e=t,(r=n).prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e,n}(e(79171));t.exports=n},79171:t=>{"use strict";var r=function(){function t(t){this.subscriber=t}return t.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},t}();t.exports=r},48053:(t,r,e)=>{"use strict";var n=e(36415),s=function(){function t(){this._subscriptionsForType={},this._currentSubscription=null}var r=t.prototype;return r.addSubscription=function(t,r){r.subscriber!==this&&n(!1),this._subscriptionsForType[t]||(this._subscriptionsForType[t]=[]);var e=this._subscriptionsForType[t].length;return this._subscriptionsForType[t].push(r),r.eventType=t,r.key=e,r},r.removeAllSubscriptions=function(t){void 0===t?this._subscriptionsForType={}:delete this._subscriptionsForType[t]},r.removeSubscription=function(t){var r=t.eventType,e=t.key,n=this._subscriptionsForType[r];n&&delete n[e]},r.getSubscriptionsForType=function(t){return this._subscriptionsForType[t]},t}();t.exports=s},49534:t=>{"use strict";function r(t){return function(){return t}}var e=function(){};e.thatReturns=r,e.thatReturnsFalse=r(!1),e.thatReturnsTrue=r(!0),e.thatReturnsNull=r(null),e.thatReturnsThis=function(){return this},e.thatReturnsArgument=function(t){return t},t.exports=e},36415:t=>{"use strict";var r=function(t){};t.exports=function(t,e){for(var n=arguments.length,s=new Array(n>2?n-2:0),i=2;i<n;i++)s[i-2]=arguments[i];if(r(e),!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;(o=new Error(e.replace(/%s/g,(function(){return String(s[u++])})))).name="Invariant Violation"}throw o.framesToPop=1,o}}}}]);
2
- //# sourceMappingURL=4679.c9e2f109.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/4679.c9e2f109.chunk.js","mappings":"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","sources":["../node_modules/@kne/use-event/src/index.js","../node_modules/fbemitter/index.js","../node_modules/fbemitter/lib/BaseEventEmitter.js","../node_modules/fbemitter/lib/EmitterSubscription.js","../node_modules/fbemitter/lib/EventSubscription.js","../node_modules/fbemitter/lib/EventSubscriptionVendor.js","../node_modules/fbjs/lib/emptyFunction.js","../node_modules/fbjs/lib/invariant.js"],"sourcesContent":["import { useRef, useMemo } from 'react';\nimport fbemitter from 'fbemitter';\n\nconst { EventEmitter } = fbemitter;\n\nclass FormEventEmitter extends EventEmitter {\n constructor(options) {\n super();\n const { debug, name = 'event' } = Object.assign({}, options);\n this.debug = debug;\n this.name = name;\n }\n\n emit(...args) {\n if (this.debug) {\n console.log(`[${this.name}][debug]:`, ...args);\n }\n super.emit(...args);\n }\n}\n\nconst useEvent = options => {\n const debugRef = useRef(options);\n return useMemo(() => {\n const emitter = new FormEventEmitter(debugRef.current);\n return {\n addListener: (...args) => emitter.addListener(...args),\n emit: (...args) => emitter.emit(...args),\n removeAllListeners: (...args) => emitter.removeAllListeners(...args),\n listeners: (...args) => emitter.listeners(...args),\n once: (...args) => emitter.once(...args)\n };\n }, []);\n};\n\nexport default useEvent;\n","/**\r\n * Copyright (c) 2014-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n */\r\n\r\nvar fbemitter = {\r\n EventEmitter: require('./lib/BaseEventEmitter'),\r\n EmitterSubscription : require('./lib/EmitterSubscription')\r\n};\r\n\r\nmodule.exports = fbemitter;\r\n","\"use strict\";\n\n/**\r\n * Copyright (c) 2014-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n *\r\n * @providesModule BaseEventEmitter\r\n * @typechecks\r\n */\nvar EmitterSubscription = require(\"./EmitterSubscription.js\");\n\nvar EventSubscriptionVendor = require(\"./EventSubscriptionVendor.js\");\n\nvar invariant = require(\"fbjs/lib/invariant\");\n\nvar emptyFunction = require(\"fbjs/lib/emptyFunction\");\n/**\r\n * @class BaseEventEmitter\r\n * @description\r\n * An EventEmitter is responsible for managing a set of listeners and publishing\r\n * events to them when it is told that such events happened. In addition to the\r\n * data for the given event it also sends a event control object which allows\r\n * the listeners/handlers to prevent the default behavior of the given event.\r\n *\r\n * The emitter is designed to be generic enough to support all the different\r\n * contexts in which one might want to emit events. It is a simple multicast\r\n * mechanism on top of which extra functionality can be composed. For example, a\r\n * more advanced emitter may use an EventHolder and EventFactory.\r\n */\n\n\nvar BaseEventEmitter = /*#__PURE__*/function () {\n /**\r\n * @constructor\r\n */\n function BaseEventEmitter() {\n this._subscriber = new EventSubscriptionVendor();\n this._currentSubscription = null;\n }\n /**\r\n * Adds a listener to be invoked when events of the specified type are\r\n * emitted. An optional calling context may be provided. The data arguments\r\n * emitted will be passed to the listener function.\r\n *\r\n * TODO: Annotate the listener arg's type. This is tricky because listeners\r\n * can be invoked with varargs.\r\n *\r\n * @param {string} eventType - Name of the event to listen to\r\n * @param {function} listener - Function to invoke when the specified event is\r\n * emitted\r\n * @param {*} context - Optional context object to use when invoking the\r\n * listener\r\n */\n\n\n var _proto = BaseEventEmitter.prototype;\n\n _proto.addListener = function addListener(eventType, listener, context) {\n return this._subscriber.addSubscription(eventType, new EmitterSubscription(this._subscriber, listener, context));\n }\n /**\r\n * Similar to addListener, except that the listener is removed after it is\r\n * invoked once.\r\n *\r\n * @param {string} eventType - Name of the event to listen to\r\n * @param {function} listener - Function to invoke only once when the\r\n * specified event is emitted\r\n * @param {*} context - Optional context object to use when invoking the\r\n * listener\r\n */\n ;\n\n _proto.once = function once(eventType, listener, context) {\n var emitter = this;\n return this.addListener(eventType, function () {\n emitter.removeCurrentListener();\n listener.apply(context, arguments);\n });\n }\n /**\r\n * Removes all of the registered listeners, including those registered as\r\n * listener maps.\r\n *\r\n * @param {?string} eventType - Optional name of the event whose registered\r\n * listeners to remove\r\n */\n ;\n\n _proto.removeAllListeners = function removeAllListeners(eventType) {\n this._subscriber.removeAllSubscriptions(eventType);\n }\n /**\r\n * Provides an API that can be called during an eventing cycle to remove the\r\n * last listener that was invoked. This allows a developer to provide an event\r\n * object that can remove the listener (or listener map) during the\r\n * invocation.\r\n *\r\n * If it is called when not inside of an emitting cycle it will throw.\r\n *\r\n * @throws {Error} When called not during an eventing cycle\r\n *\r\n * @example\r\n * var subscription = emitter.addListenerMap({\r\n * someEvent: function(data, event) {\r\n * console.log(data);\r\n * emitter.removeCurrentListener();\r\n * }\r\n * });\r\n *\r\n * emitter.emit('someEvent', 'abc'); // logs 'abc'\r\n * emitter.emit('someEvent', 'def'); // does not log anything\r\n */\n ;\n\n _proto.removeCurrentListener = function removeCurrentListener() {\n !!!this._currentSubscription ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'Not in an emitting cycle; there is no current subscription') : invariant(false) : void 0;\n\n this._subscriber.removeSubscription(this._currentSubscription);\n }\n /**\r\n * Returns an array of listeners that are currently registered for the given\r\n * event.\r\n *\r\n * @param {string} eventType - Name of the event to query\r\n * @return {array}\r\n */\n ;\n\n _proto.listeners = function listeners(eventType)\n /* TODO: Array<EventSubscription> */\n {\n var subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n\n return subscriptions ? subscriptions.filter(emptyFunction.thatReturnsTrue).map(function (subscription) {\n return subscription.listener;\n }) : [];\n }\n /**\r\n * Emits an event of the given type with the given data. All handlers of that\r\n * particular type will be notified.\r\n *\r\n * @param {string} eventType - Name of the event to emit\r\n * @param {*} Arbitrary arguments to be passed to each registered listener\r\n *\r\n * @example\r\n * emitter.addListener('someEvent', function(message) {\r\n * console.log(message);\r\n * });\r\n *\r\n * emitter.emit('someEvent', 'abc'); // logs 'abc'\r\n */\n ;\n\n _proto.emit = function emit(eventType) {\n var subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n\n if (subscriptions) {\n var keys = Object.keys(subscriptions);\n\n for (var ii = 0; ii < keys.length; ii++) {\n var key = keys[ii];\n var subscription = subscriptions[key]; // The subscription may have been removed during this event loop.\n\n if (subscription) {\n this._currentSubscription = subscription;\n\n this.__emitToSubscription.apply(this, [subscription].concat(Array.prototype.slice.call(arguments)));\n }\n }\n\n this._currentSubscription = null;\n }\n }\n /**\r\n * Provides a hook to override how the emitter emits an event to a specific\r\n * subscription. This allows you to set up logging and error boundaries\r\n * specific to your environment.\r\n *\r\n * @param {EmitterSubscription} subscription\r\n * @param {string} eventType\r\n * @param {*} Arbitrary arguments to be passed to each registered listener\r\n */\n ;\n\n _proto.__emitToSubscription = function __emitToSubscription(subscription, eventType) {\n var args = Array.prototype.slice.call(arguments, 2);\n subscription.listener.apply(subscription.context, args);\n };\n\n return BaseEventEmitter;\n}();\n\nmodule.exports = BaseEventEmitter;","/**\r\n * Copyright (c) 2014-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n *\r\n * @providesModule EmitterSubscription\r\n * @typechecks\r\n */\n'use strict';\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar EventSubscription = require(\"./EventSubscription.js\");\n/**\r\n * EmitterSubscription represents a subscription with listener and context data.\r\n */\n\n\nvar EmitterSubscription = /*#__PURE__*/function (_EventSubscription) {\n _inheritsLoose(EmitterSubscription, _EventSubscription);\n\n /**\r\n * @param {EventSubscriptionVendor} subscriber - The subscriber that controls\r\n * this subscription\r\n * @param {function} listener - Function to invoke when the specified event is\r\n * emitted\r\n * @param {*} context - Optional context object to use when invoking the\r\n * listener\r\n */\n function EmitterSubscription(subscriber, listener, context) {\n var _this;\n\n _this = _EventSubscription.call(this, subscriber) || this;\n _this.listener = listener;\n _this.context = context;\n return _this;\n }\n\n return EmitterSubscription;\n}(EventSubscription);\n\nmodule.exports = EmitterSubscription;","/**\r\n * Copyright (c) 2014-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n *\r\n * @providesModule EventSubscription\r\n * @typechecks\r\n */\n'use strict';\n/**\r\n * EventSubscription represents a subscription to a particular event. It can\r\n * remove its own subscription.\r\n */\n\nvar EventSubscription = /*#__PURE__*/function () {\n /**\r\n * @param {EventSubscriptionVendor} subscriber the subscriber that controls\r\n * this subscription.\r\n */\n function EventSubscription(subscriber) {\n this.subscriber = subscriber;\n }\n /**\r\n * Removes this subscription from the subscriber that controls it.\r\n */\n\n\n var _proto = EventSubscription.prototype;\n\n _proto.remove = function remove() {\n if (this.subscriber) {\n this.subscriber.removeSubscription(this);\n this.subscriber = null;\n }\n };\n\n return EventSubscription;\n}();\n\nmodule.exports = EventSubscription;","/**\r\n * Copyright (c) 2014-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n *\r\n * @providesModule EventSubscriptionVendor\r\n * @typechecks\r\n */\n'use strict';\n\nvar invariant = require(\"fbjs/lib/invariant\");\n/**\r\n * EventSubscriptionVendor stores a set of EventSubscriptions that are\r\n * subscribed to a particular event type.\r\n */\n\n\nvar EventSubscriptionVendor = /*#__PURE__*/function () {\n function EventSubscriptionVendor() {\n this._subscriptionsForType = {};\n this._currentSubscription = null;\n }\n /**\r\n * Adds a subscription keyed by an event type.\r\n *\r\n * @param {string} eventType\r\n * @param {EventSubscription} subscription\r\n */\n\n\n var _proto = EventSubscriptionVendor.prototype;\n\n _proto.addSubscription = function addSubscription(eventType, subscription) {\n !(subscription.subscriber === this) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'The subscriber of the subscription is incorrectly set.') : invariant(false) : void 0;\n\n if (!this._subscriptionsForType[eventType]) {\n this._subscriptionsForType[eventType] = [];\n }\n\n var key = this._subscriptionsForType[eventType].length;\n\n this._subscriptionsForType[eventType].push(subscription);\n\n subscription.eventType = eventType;\n subscription.key = key;\n return subscription;\n }\n /**\r\n * Removes a bulk set of the subscriptions.\r\n *\r\n * @param {?string} eventType - Optional name of the event type whose\r\n * registered supscriptions to remove, if null remove all subscriptions.\r\n */\n ;\n\n _proto.removeAllSubscriptions = function removeAllSubscriptions(eventType) {\n if (eventType === undefined) {\n this._subscriptionsForType = {};\n } else {\n delete this._subscriptionsForType[eventType];\n }\n }\n /**\r\n * Removes a specific subscription. Instead of calling this function, call\r\n * `subscription.remove()` directly.\r\n *\r\n * @param {object} subscription\r\n */\n ;\n\n _proto.removeSubscription = function removeSubscription(subscription) {\n var eventType = subscription.eventType;\n var key = subscription.key;\n var subscriptionsForType = this._subscriptionsForType[eventType];\n\n if (subscriptionsForType) {\n delete subscriptionsForType[key];\n }\n }\n /**\r\n * Returns the array of subscriptions that are currently registered for the\r\n * given event type.\r\n *\r\n * Note: This array can be potentially sparse as subscriptions are deleted\r\n * from it when they are removed.\r\n *\r\n * TODO: This returns a nullable array. wat?\r\n *\r\n * @param {string} eventType\r\n * @return {?array}\r\n */\n ;\n\n _proto.getSubscriptionsForType = function getSubscriptionsForType(eventType) {\n return this._subscriptionsForType[eventType];\n };\n\n return EventSubscriptionVendor;\n}();\n\nmodule.exports = EventSubscriptionVendor;","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\n\n\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\n\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\n\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n'use strict';\n\nvar validateFormat = process.env.NODE_ENV !== \"production\" ? function (format) {\n if (format === undefined) {\n throw new Error('invariant(...): Second argument must be a string.');\n }\n} : function (format) {};\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments to provide\n * information about what broke and what you were expecting.\n *\n * The invariant message will be stripped in production, but the invariant will\n * remain to ensure logic does not differ in production.\n */\n\nfunction invariant(condition, format) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n validateFormat(format);\n\n if (!condition) {\n var error;\n\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return String(args[argIndex++]);\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // Skip invariant's own stack frame.\n\n throw error;\n }\n}\n\nmodule.exports = invariant;"],"names":["EventEmitter","fbemitter","FormEventEmitter","constructor","options","super","debug","name","Object","assign","this","emit","_len","arguments","length","args","Array","_key","console","log","useEvent","debugRef","useRef","useMemo","emitter","current","addListener","removeAllListeners","listeners","once","require","EmitterSubscription","module","exports","EventSubscriptionVendor","invariant","emptyFunction","BaseEventEmitter","_subscriber","_currentSubscription","_proto","prototype","eventType","listener","context","addSubscription","removeCurrentListener","apply","removeAllSubscriptions","removeSubscription","subscriptions","getSubscriptionsForType","filter","thatReturnsTrue","map","subscription","keys","ii","__emitToSubscription","concat","slice","call","_EventSubscription","subClass","superClass","subscriber","_this","create","__proto__","EventSubscription","remove","_subscriptionsForType","key","push","undefined","subscriptionsForType","makeEmptyFunction","arg","thatReturns","thatReturnsFalse","thatReturnsNull","thatReturnsThis","thatReturnsArgument","validateFormat","format","condition","error","Error","argIndex","replace","String","framesToPop"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4712,2331],{72331:(e,n,r)=>{r.r(n),r.d(n,{default:()=>u});var t=r(5544),a=r(73884);const u=function(e,n){n=Object.assign({},{defaultValue:"defaultValue",value:"value",onChange:"onChange"},n);var r=(0,a.useRef)(n.value in e),u=(0,a.useState)(e[n.defaultValue]),o=(0,t.A)(u,2),l=o[0],c=o[1],i=(0,a.useRef)(null);return i.current=r.current?e[n.value]:l,[i.current,function(t){for(var a="function"===typeof t?i.current=t(i.current):t,u=arguments.length,o=new Array(u>1?u-1:0),l=1;l<u;l++)o[l-1]=arguments[l];e[n.onChange]&&e[n.onChange].apply(e,[a].concat(o)),r.current||c(a)}]}},43145:(e,n,r)=>{function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=Array(n);r<n;r++)t[r]=e[r];return t}r.d(n,{A:()=>t})},96369:(e,n,r)=>{function t(e){if(Array.isArray(e))return e}r.d(n,{A:()=>t})},76562:(e,n,r)=>{function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(n,{A:()=>t})},5544:(e,n,r)=>{r.d(n,{A:()=>o});var t=r(96369);var a=r(27800),u=r(76562);function o(e,n){return(0,t.A)(e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,a,u,o,l=[],c=!0,i=!1;try{if(u=(r=r.call(e)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(t=u.call(r)).done)&&(l.push(t.value),l.length!==n);c=!0);}catch(e){i=!0,a=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(i)throw a}}return l}}(e,n)||(0,a.A)(e,n)||(0,u.A)()}},27800:(e,n,r)=>{r.d(n,{A:()=>a});var t=r(43145);function a(e,n){if(e){if("string"==typeof e)return(0,t.A)(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,t.A)(e,n):void 0}}}}]);
2
- //# sourceMappingURL=4712.b3ce8808.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/4712.b3ce8808.chunk.js","mappings":"uNAEe,SAACA,EAAOC,GACnBA,EAAMC,OAAOC,OAAO,CAAC,EAAG,CAACC,aAAc,eAAgBC,MAAO,QAASC,SAAU,YAAaL,GACxF,IAAAM,GAAYC,EAAAA,EAAAA,QAAOP,EAAW,SAAKD,GAAMS,GAAgCC,EAAAA,EAAAA,UAASV,EAAMC,EAAkB,eAAGU,GAAAC,EAAAA,EAAAA,GAAAH,EAAA,GAAjEI,EAAUF,EAAA,GAAEG,EAAaH,EAAA,GACrEI,GAAkBP,EAAAA,EAAAA,QAAO,MAE/B,OADAO,EAAgBC,QAAUT,EAAUS,QAAUhB,EAAMC,EAAW,OAAKY,EAC7D,CAACE,EAAgBC,QAAS,SAACC,GAC2F,IAAzH,IAAMC,EAA+B,oBAAbD,EAA0BF,EAAgBC,QAAUC,EAASF,EAAgBC,SAAWC,EAASE,EAAAC,UAAAC,OAD9EC,EAAM,IAAAC,MAAAJ,EAAA,EAAAA,EAAA,KAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAANF,EAAME,EAAA,GAAAJ,UAAAI,GAEjDxB,EAAMC,EAAc,WAAMD,EAAMC,EAAc,UAAEwB,MAAtBzB,EAAK,CAAkBkB,GAAQQ,OAAKJ,IACzDf,EAAUS,SACXF,EAAcI,E,EAG1B,C,kBCdA,SAASS,EAAkBC,EAAGC,IAC3B,MAAQA,GAAKA,EAAID,EAAEP,UAAYQ,EAAID,EAAEP,QACtC,IAAK,IAAIS,EAAI,EAAGC,EAAIR,MAAMM,GAAIC,EAAID,EAAGC,IAAKC,EAAED,GAAKF,EAAEE,GACnD,OAAOC,CACT,C,kCCJA,SAASC,EAAgBJ,GACvB,GAAIL,MAAMU,QAAQL,GAAI,OAAOA,CAC/B,C,kCCFA,SAASM,IACP,MAAM,IAAIC,UAAU,4IACtB,C,2FCEA,SAASvB,EAAegB,EAAGE,GACzB,OAAO,EAAAM,EAAA,GAAeR,ICLxB,SAA+BA,EAAGS,GAChC,IAAIC,EAAI,MAAQV,EAAI,KAAO,oBAAsBW,QAAUX,EAAEW,OAAOC,WAAaZ,EAAE,cACnF,GAAI,MAAQU,EAAG,CACb,IAAIR,EACFC,EACAU,EACAC,EACAb,EAAI,GACJc,GAAI,EACJC,GAAI,EACN,IACE,GAAIH,GAAKH,EAAIA,EAAEO,KAAKjB,IAAIkB,KAAM,IAAMT,EAAG,CACrC,GAAInC,OAAOoC,KAAOA,EAAG,OACrBK,GAAI,CACN,MAAO,OAASA,GAAKb,EAAIW,EAAEI,KAAKP,IAAIS,QAAUlB,EAAEmB,KAAKlB,EAAEzB,OAAQwB,EAAER,SAAWgB,GAAIM,GAAI,GACtF,CAAE,MAAOf,GACPgB,GAAI,EAAIb,EAAIH,CACd,CAAE,QACA,IACE,IAAKe,GAAK,MAAQL,EAAU,SAAMI,EAAIJ,EAAU,SAAKpC,OAAOwC,KAAOA,GAAI,MACzE,CAAE,QACA,GAAIE,EAAG,MAAMb,CACf,CACF,CACA,OAAOF,CACT,CACF,CDrB8B,CAAqBD,EAAGE,KAAM,EAAAmB,EAAA,GAA2BrB,EAAGE,KAAM,EAAAoB,EAAA,IAChG,C,kDELA,SAASC,EAA4BvB,EAAGC,GACtC,GAAID,EAAG,CACL,GAAI,iBAAmBA,EAAG,OAAO,OAAiBA,EAAGC,GACrD,IAAIS,EAAI,CAAC,EAAEc,SAASP,KAAKjB,GAAGyB,MAAM,GAAI,GACtC,MAAO,WAAaf,GAAKV,EAAE0B,cAAgBhB,EAAIV,EAAE0B,YAAYC,MAAO,QAAUjB,GAAK,QAAUA,EAAIf,MAAMiC,KAAK5B,GAAK,cAAgBU,GAAK,2CAA2CmB,KAAKnB,IAAK,OAAiBV,EAAGC,QAAK,CACtN,CACF,C","sources":["../node_modules/@kne/use-control-value/src/index.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"],"sourcesContent":["import React, {useState, useRef} from \"react\";\n\nexport default (props, map) => {\n map = Object.assign({}, {defaultValue: \"defaultValue\", value: \"value\", onChange: \"onChange\"}, map);\n const isControl = useRef(map[\"value\"] in props), [stateValue, setStateValue] = useState(props[map[\"defaultValue\"]]);\n const currentValueRef = useRef(null);\n currentValueRef.current = isControl.current ? props[map[\"value\"]] : stateValue;\n return [currentValueRef.current, (newValue, ...others) => {\n const newState = typeof newValue === \"function\" ? currentValueRef.current = newValue(currentValueRef.current) : newValue;\n props[map[\"onChange\"]] && props[map[\"onChange\"]](newState, ...others);\n if (!isControl.current) {\n setStateValue(newState);\n }\n }];\n};\n","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nexport { _arrayLikeToArray as default };","function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableRest as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nexport { _iterableToArrayLimit as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nexport { _unsupportedIterableToArray as default };"],"names":["props","map","Object","assign","defaultValue","value","onChange","isControl","useRef","_useState","useState","_useState2","_slicedToArray","stateValue","setStateValue","currentValueRef","current","newValue","newState","_len","arguments","length","others","Array","_key","apply","concat","_arrayLikeToArray","r","a","e","n","_arrayWithHoles","isArray","_nonIterableRest","TypeError","arrayWithHoles","l","t","Symbol","iterator","i","u","f","o","call","next","done","push","unsupportedIterableToArray","nonIterableRest","_unsupportedIterableToArray","toString","slice","constructor","name","from","test"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4941,7322],{57322:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var a=r(73884),n=r(11287),c=function(){return c=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},c.apply(this,arguments)};var l=a.forwardRef((function(e,t){var r=e.children,l=e.scrollableNodeProps,o=void 0===l?{}:l,s=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r}(e,["children","scrollableNodeProps"]),i=a.useRef(),p=a.useRef(),u=a.useRef(),f={},m={};Object.keys(s).forEach((function(e){Object.prototype.hasOwnProperty.call(n.A.defaultOptions,e)?f[e]=s[e]:m[e]=s[e]}));var d=c(c({},n.A.defaultOptions.classNames),f.classNames),b=c(c({},o),{className:"".concat(d.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:f.tabIndex||n.A.defaultOptions.tabIndex,role:"region","aria-label":f.ariaLabel||n.A.defaultOptions.ariaLabel});return a.useEffect((function(){var e;return p.current=b.ref?b.ref.current:p.current,i.current&&(e=new n.A(i.current,c(c(c({},f),p.current&&{scrollableNode:p.current}),u.current&&{contentNode:u.current})),"function"===typeof t?t(e):t&&(t.current=e)),function(){null===e||void 0===e||e.unMount(),e=null,"function"===typeof t&&t(null)}}),[]),a.createElement("div",c({"data-simplebar":"init",ref:i},m),a.createElement("div",{className:d.wrapper},a.createElement("div",{className:d.heightAutoObserverWrapperEl},a.createElement("div",{className:d.heightAutoObserverEl})),a.createElement("div",{className:d.mask},a.createElement("div",{className:d.offset},"function"===typeof r?r({scrollableNodeRef:p,scrollableNodeProps:c(c({},b),{ref:p}),contentNodeRef:u,contentNodeProps:{className:d.contentEl,ref:u}}):a.createElement("div",c({},b),a.createElement("div",{className:d.contentEl},r)))),a.createElement("div",{className:d.placeholder})),a.createElement("div",{className:"".concat(d.track," simplebar-horizontal")},a.createElement("div",{className:d.scrollbar})),a.createElement("div",{className:"".concat(d.track," simplebar-vertical")},a.createElement("div",{className:d.scrollbar})))}));l.displayName="SimpleBar"}}]);
2
- //# sourceMappingURL=4941.ae76674b.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5443],{42787:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(10486),s=n(73884),o=n(96418),l=n.n(o),a=n(83136),c=n.n(a);const i={scroller:"style_scroller__EfuqR__BSy+U","scroller-inner":"style_scroller-inner__NJSE0__BSy+U","is-moving":"style_is-moving__jGuy0__BSy+U"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...o}=e;const l=(0,s.useRef)(0),[a,d]=(0,s.useState)(!1),m=(0,s.useRef)(a);m.current=a;const h=(0,s.useRef)(t);h.current=t;const g=(0,s.useRef)(1);return g.current=o.width/o.innerWidth,(0,s.useEffect)((()=>{const e=e=>{m.current&&h.current(g.current*(e.clientX-l.current)),l.current=e.clientX},t=()=>{d(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,r.createPortal)(o.hasScroller?(0,u.jsx)("div",{className:i.scroller,style:{left:o.left,width:o.width,height:15},children:(0,u.jsx)("div",{className:c()(i["scroller-inner"],{[i["is-moving"]]:a}),style:{width:o.innerWidth,left:o.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,d(!0)}})}):null,n()||document.body)},m=e=>{let{className:t,scroller:n,getScrollTarget:r,children:o}=e;const[a,m]=(0,s.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),h=(0,s.useRef)(null),g=l()((()=>h.current&&r(h.current))),p=(0,s.useRef)();return p.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,s.useEffect)((()=>{const e=p.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:r,top:s,height:o}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,a=r*t.clientWidth/t.scrollWidth-6,c=t.scrollLeft*t.clientWidth/t.scrollWidth+2,i=e.getBoundingClientRect();m((u=>Object.assign({},u,{left:n,width:r,innerLeft:c,innerWidth:a,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+o-e.offsetHeight>0&&s<e.offsetHeight:s<i.top+i.height&&s+o>i.top+i.height)})))},r=new ResizeObserver(n);return new ResizeObserver((()=>{t=g(),t&&(r.disconnect(),n(),Array.from(t.children).forEach((e=>{r.observe(e)})),t.addEventListener("scroll",n))})).observe(h.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[g]),n?(0,u.jsxs)("div",{className:c()(i["scroller-outer"],t),ref:h,style:{"--scroller-bar-height":null!==a&&void 0!==a&&a.hasScroller?"15px":"0px"},children:[o,(0,u.jsx)(d,{...a,getContainer:p.current,onScroll:e=>{g().scrollLeft+=e}})]}):o};m.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const h=m},63361:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x,useFeatureCall:()=>y});var r=n(73884),s=n(63908),o=n(33097),l=n.n(o),a=n(15797),c=n.n(a),i=n(1488),u=n.n(i),d=n(70579);const m=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{m(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),m(e.children,t,n?n+":"+e.id:e.id)))},h=c()((e=>{const t=(()=>{const t=new Map;return m(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}})),g=(e,t)=>{let{profileMap:n,features:r}=t;const s=n.get(e);return-1!==r.indexOf(e)&&!0!==s.close&&l()(s,"dependencies",[]).every((t=>{const s=n.get(e);return r.indexOf(t)>-1&&!0!==s.close}))},p=(0,r.createContext)(null),{Provider:f}=p,y=e=>{const{features:t,profile:n,profileMap:o,debug:a}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},h(t),{debug:n})})(),c="system"===n.type?n.id:"root",i=(0,r.useContext)(p),u=i?i+":"+e:c+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&a&&console.log(`[featureId] ${u},[state] ${g(u,{features:t,profileMap:o})}`,o.get(u))}),[t,o,a,u]),{isPass:!(e&&t&&t.length>0)||g(u,{features:t,profileMap:o}),currentId:u,feature:o.get(u)}},x=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:o}=y(t);return(0,d.jsx)(f,{value:o,children:"function"===typeof n?n({isPass:r,options:r?l()(s,"options"):l()(s,"rejectedOptions"),currentId:o}):r&&n})}},27777:(e,t,n)=>{n.r(t),n.d(t,{Table:()=>T,default:()=>W});var r=n(55199),s=n(73884),o=n(96418),l=n.n(o),a=n(87558),c=n.n(a),i=n(83136),u=n.n(i),d=n(33097),m=n.n(d),h=n(42787),g=n(76801),p=n(60262),f=n.n(p),y=n(56641),x=n.n(y),_=n(51941);const C={"loading-container":"style_loading-container__tATe2__BSy+U","width-changer":"style_width-changer__2ZxQE__BSy+U","table-changer-setting":"style_table-changer-setting__vHBi5__BSy+U","width-changer-sign":"style_width-changer-sign__JpI-0__BSy+U","columns-control":"style_columns-control__Yt34Y__BSy+U","columns-control-content":"style_columns-control-content__1wnZG__BSy+U","columns-control-content-title":"style_columns-control-content-title__MsQpI__BSy+U","columns-control-content-scroller":"style_columns-control-content-scroller__VEy4q__BSy+U","columns-control-content-footer":"style_columns-control-content-footer__rvk74__BSy+U","columns-control-content-input":"style_columns-control-content-input__fYYyr__BSy+U","columns-control-content-list":"style_columns-control-content-list__wepM4__BSy+U","columns-control-content-item":"style_columns-control-content-item__1cPXT__BSy+U","is-drag":"style_is-drag__HRe9m__BSy+U","columns-control-content-item-icon":"style_columns-control-content-item-icon__oku-X__BSy+U","sortable-drag":"style_sortable-drag__N6+aC__BSy+U","sortable-ghost":"style_sortable-ghost__EbwXI__BSy+U","columns-control-overlay":"style_columns-control-overlay__QYEXZ__BSy+U"};var j=n(63908),b=n(70579);const S=e=>"TH"===e.tagName.toUpperCase()&&[].indexOf.call(e.classList,"ant-table-cell")>-1&&-1===[].indexOf.call(e.classList,"ant-table-selection-column")?e:null!==e.parentElement&&e.parentElement!==document.body&&S(e.parentElement),v=e=>{let{columns:t,setData:n,name:r,initColumnsData:o}=e;const c=(0,s.useRef)(null),i=(0,s.useRef)(r);i.current=r;const d=(0,s.useMemo)((()=>new Map(t.map((e=>[e.key,e])))),[t]),m=(0,s.useRef)(d);m.current=d;const{tablePageServerApis:h}=(0,j.usePreset)(),g=(0,_.useDebouncedCallback)((()=>{(0,a.getCache)().delByCacheName(`TABLE_CONFIG_${i.current}`),h&&h.setDataFunc&&(h.setDataFunc(i.current,O),n(O))}),1e3),[p,y]=(0,s.useState)(!1),v=(0,s.useRef)(!1),w=(0,s.useRef)({index:-1,width:0}),[A,I]=(0,s.useState)({}),E=(0,s.useRef)(0),k=(0,s.useCallback)((()=>o&&o.length>0&&t.length===o.length&&x()(t,o,((e,t)=>e.key===t.id))?o.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})):t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})))),[o,t]);(0,s.useEffect)((()=>{L(k())}),[k]);const[O,L]=(0,s.useState)(k),N=l()((e=>{L(e),g()})),R=(0,s.useRef)(O),B=(0,s.useRef)(O);R.current=B.current=O;const M=l()((()=>{const e=t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})));B.current=e,N(e)}));return(0,s.useEffect)((()=>{if(!c.current)return;const e=e=>{const t=e.target;v.current||t.classList.contains("changer-sign")||S(t)||y(!1)},t=()=>{document.body.style.cursor="unset",v.current=!1,w.current={index:-1,width:0},y(!1)};return c.current.addEventListener("mousemove",(e=>{const t=S(e.target)||e.target,{left:n,top:r}=c.current.getBoundingClientRect(),{left:s,width:o,height:l}=t.getBoundingClientRect(),a=c.current.querySelector(".ant-table-thead"),i=a.getBoundingClientRect().top,u=Array.from(a.querySelectorAll("th")),d=Array.from(a.querySelectorAll("th:not(.ant-table-selection-column)"));if(!v.current&&S(t)&&0<e.pageX-s+8&&(w.current={index:d.indexOf(t),locationIndex:u.indexOf(t),width:o,left:s,height:l},I({left:s-n+o-8,top:i-r,height:l}),y(!0)),!v.current&&S(t)&&0>e.pageX-s+8&&y(!1),v.current&&w.current.index>-1){const t=e.pageX-E.current,n=(c.current.querySelector(".ant-table-body")||c.current.querySelector(".ant-table-content")).scrollLeft,s=Math.max(t+w.current.width,100);I({left:Math.max(f()(u.slice(0,w.current.locationIndex).map((e=>e.clientWidth)))-n,0)+s-8,top:i-r,height:w.current.height}),N((e=>{const t=e.slice(0);return t.filter((e=>{let{hidden:t}=e;return!0!==t})).forEach(((e,t)=>{var n;e.width=w.current.index===t?s:(null===(n=d[t])||void 0===n?void 0:n.clientWidth)||100})),t}))}}),!0),window.addEventListener("mouseup",t),document.addEventListener("mousemove",e,!0),()=>{document.removeEventListener("mousemove",e,!0),window.removeEventListener("mouseup",t)}}),[M,N]),{ref:c,sign:p&&(0,b.jsx)("div",{className:u()(C["width-changer-sign"],"changer-sign"),style:{top:A.top,left:A.left,height:A.height},onMouseDown:e=>{e.preventDefault(),v.current=!0,E.current=e.pageX,document.body.style.cursor="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAMAAACgaw2xAAAANlBMVEUAAAAjIyMiIiIhISEjIyMiIiIhISEiIiIjIyMiIiIjIyMjIyMiIiIiIiIiIiIiIiIiIiL///8npLH6AAAAEHRSTlMAZm9zdnd7gISIjKq78fL+6p9oYgAAAAFiS0dEEeK1PboAAAA/SURBVBgZ1cGJDYAgEEXBh7JyKPj7r9ZkQyKUwAx7yhfurCyyDHe8lUlRf4auws/U7qHJmJgSLslYxIALkS192tYB4NtE/LQAAAAASUVORK5CYII=) 12 10,col-resize"}}),targetColumns:O.filter((e=>{let{hidden:t}=e;return!0!==t})).map((e=>{let{id:t,width:n}=e;return Object.assign({},d.get(t),{width:n,ellipsis:!1})})),popupColumns:B.current,columnMap:m.current,setColumns:e=>{B.current=e},onConfirm:()=>{N(B.current)},onCancel:()=>{B.current=R.current},onReset:()=>{M()}}},w=e=>{const t=(0,a.withFetch)(e);return n=>{const{name:r,controllerOpen:s}=n,{tablePageServerApis:o}=(0,j.usePreset)();return s&&r&&o&&o.getDataApi?(0,b.jsx)(t,{...n,...o.getDataApi(r),cache:`TABLE_CONFIG_${r}`,isLocal:!0,ttl:5e3,error:(0,b.jsx)(e,{...n})}):(0,b.jsx)(e,{...n})}};var A=n(74529);const I=n.n(A)()(w,(e=>t=>{let{name:n,controllerOpen:r,columns:s,data:o,setData:l,...a}=t;const{ref:c,targetColumns:i,sign:d}=v({columns:s,name:n,initColumnsData:o,setData:l});return r?(0,b.jsxs)("div",{className:u()(C["width-changer"],"table-page-columns-width-changer"),ref:c,children:[(0,b.jsx)(e,{...a,name:n,controllerOpen:r,originColumns:s,tableColumnFetchApi:{data:o,setData:l},columns:i}),d]}):(0,b.jsx)(e,{columns:s,controllerOpen:r,originColumns:s,name:n,...a})}));var E=n(63361);const k=e=>({"en-US":()=>n.e(6222).then(n.bind(n,86222)),"zh-CN":()=>n.e(6964).then(n.bind(n,56964))}[e]());var O=n(58609),L=n(39835),N=n.n(L),R=n(64671),B=n(81014),M=n(36),P=n(76441);const{Panel:U}=r.Collapse,z=e=>{let{close:t,onCancel:n,onConfirm:o,onReset:l,columns:a,setColumns:c}=e;const[i,d]=(0,s.useState)(a),[m,h]=(0,s.useState)(""),{leftFixedColumns:g,rightFixedColumns:p,visibleColumns:f,hiddenColumns:y}=(0,s.useMemo)((()=>Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},N()(i,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":e.hidden?"hiddenColumns":"visibleColumns")))),[i]),x=e=>{d(e),c(e)};return(0,b.jsxs)("div",{className:C["columns-control-content"],children:[(0,b.jsx)("div",{className:C["columns-control-content-title"],children:(0,b.jsxs)(r.Row,{align:"middle",justify:"space-between",children:[(0,b.jsx)(r.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,b.jsx)(r.Col,{children:(0,b.jsx)(r.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,b.jsx)(B.default,{type:"text",icon:(0,b.jsx)(R.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{l&&await l(),t()}})})})]})}),(0,b.jsx)("div",{className:C["columns-control-content-scroller"],children:(0,b.jsxs)(r.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,b.jsx)(U,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,b.jsxs)(r.List,{className:C["columns-control-content-list"],children:[g.map((e=>(0,b.jsx)(r.List.Item,{className:C["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id))),(0,b.jsx)(P.ReactSortable,{list:f,filter:".ignore-elements",dragClass:C["sortable-drag"],ghostClass:C["sortable-ghost"],forceFallback:!0,setList:e=>{x([...g,...e,...y,...p])},animation:300,delayOnTouchStart:!0,delay:2,children:f.map((e=>(0,b.jsxs)(r.List.Item,{className:u()(C["columns-control-content-item"],C["is-drag"]),children:[(0,b.jsx)(R.default,{type:"icon-paixu",className:C["columns-control-content-item-icon"]}),(0,b.jsx)(r.Checkbox,{checked:!0,disabled:e.fixed,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=i.indexOf(e),r=i.slice(0);r[n]=Object.assign({},r[n],{hidden:!0}),x(r)},children:e.name})]},e.id)))}),p.map((e=>(0,b.jsx)(r.List.Item,{className:C["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id)))]})},"active"),(0,b.jsx)(U,{header:(0,b.jsxs)(r.Row,{wrap:!1,justify:"space-between",children:[(0,b.jsx)(r.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,b.jsx)(r.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,b.jsx)(M.SearchInput,{prefix:(0,b.jsx)(R.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{h(e)},className:C["columns-control-content-input"],size:"small"})})]}),children:(0,b.jsx)(r.List,{dataSource:y.filter((e=>"string"===typeof e.name&&e.name.indexOf(m)>-1)),renderItem:e=>(0,b.jsx)(r.List.Item,{className:C["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=i.indexOf(e),r=i.slice(0);r[n]=Object.assign({},r[n],{hidden:!1,width:r[n].width||200}),x(r)},children:e.name})},e.id)})},"un-active")]})}),(0,b.jsxs)(r.Row,{className:C["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,b.jsx)(r.Col,{children:(0,b.jsx)(r.Button,{size:"small",onClick:()=>{n&&n(),t()},children:"\u53d6\u6d88"})}),(0,b.jsx)(r.Col,{children:(0,b.jsx)(B.default,{type:"primary",size:"small",onClick:async()=>{o&&await o(),t()},children:"\u786e\u5b9a"})})]})]})},D=e=>{let{columns:t,name:n,data:o,setData:l,...a}=e;const[c,i]=(0,s.useState)(!1),{popupColumns:u,columnMap:d,setColumns:h,onConfirm:g,onCancel:p,onReset:f}=v({columns:t,name:n,initColumnsData:o,setData:l});return(0,b.jsx)(r.Popover,{...a,open:c,overlayClassName:C["columns-control-overlay"],trigger:"click",autoAdjustOverflow:!1,placement:"bottomRight",content:(0,b.jsx)(z,{columns:u.map((e=>{const t=d.get(e.id);return Object.assign({},e,{name:m()(t,"titleText")||m()(t,"title")||"\u672a\u547d\u540d\u5217",fixed:m()(t,"fixed")})})),setColumns:e=>{h(e.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})))},close:()=>i(!1),onConfirm:g,onCancel:p,onReset:f}),onOpenChange:e=>i(e),children:(0,b.jsx)("span",{className:C["table-changer-setting"],children:(0,b.jsx)(R.default,{type:"icon-shezhi"})})})},T=I((e=>{let{className:t,columns:n,originColumns:s,controllerOpen:o,tableColumnFetchApi:l,name:a,scroller:c,featureId:i,...d}=e;const{data:g,setData:p}=l||{},f=e=>{let{children:t}=e;return i?(0,b.jsx)(E.default,{id:i,children:e=>t(e)}):t({})};return(e=>(0,b.jsx)(h.A,{className:"table-page-scroller",scroller:c,getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:f({children:n=>{let{options:l}=n;const c=e.filter((e=>!e.key||(!Array.isArray(m()(l,"hiddenColumns"))||-1===l.hiddenColumns.indexOf(e.key))));return(0,b.jsx)(r.Table,{...d,columns:!1===o?c:c.map(((e,t)=>c.length-1===t?{...e,title:()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{children:e.title}),(0,b.jsx)(D,{data:g,columns:s,setData:p,name:a})]})}:e)),className:u()(t,"table-page")})}})}))(n)})),F=(0,a.withFetch)((e=>{let{data:t,refresh:n,reload:r,requestParams:o,fetchProps:a,isComplete:i,setData:d,loadMore:h,send:g,dataFormat:p,pagination:f,scroller:y,getColumns:x,getColumnsParams:_,className:j,columns:S,featureId:v,stickyOffset:w,...A}=e;const I=l()(p),E=l()(x),L=(0,s.useMemo)((()=>I(t)),[t,I]),N={dataSource:L.list,pagination:!!f.open&&{total:L.total,showTotal:e=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(O.FormattedMessage,{id:"Page_Total",moduleName:"TablePage",defaultMessage:"\u5171"}),(0,b.jsx)("span",{className:C.total_text,children:e}),(0,b.jsx)(O.FormattedMessage,{id:"Page_TotalCount",moduleName:"TablePage",defaultMessage:"\u6761"})]}),current:m()(o,[f.paramsType,f.current],1),pageSize:f.defaultPageSize,onChange:f.onChange?f.onChange:(e,t)=>{e!==m()(o,[f.paramsType,f.current],1)?("refresh"===f.requestType?n:r)({[f.paramsType]:{[f.current]:e,[f.pageSize]:t}}):f.onShowSizeChange&&f.onShowSizeChange(e,t)},size:f.size,showSizeChanger:f.showSizeChanger,showQuickJumper:f.showQuickJumper},className:j,style:{"--sticky-offset":w}};return(0,b.jsx)(O.IntlProvider,{importMessages:k,moduleName:"TablePage",children:(0,b.jsx)("div",{className:u()(C["loading-container"],"loading-container",{"is-loading":!i}),children:"function"!==typeof x||S?(0,b.jsx)(T,{...A,...N,columns:S,scroller:y,featureId:v}):(0,b.jsx)(c(),{data:t,params:_,loader:e=>{let{data:t,params:n}=e;return E({data:t,params:n,formatData:L})},render:e=>{let{data:t}=e;return(0,b.jsx)(T,{...A,...N,columns:t,scroller:y,featureId:v})}})})})})),q=(0,s.forwardRef)(((e,t)=>{let{pagination:n,...r}=e;const[o,l]=(0,s.useState)(20);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",current:"currentPage",pageSize:"perPage",size:"default"},n);const a=(0,s.useMemo)((()=>{const e={};return r.params&&Object.keys(r.params).length>0&&(e.params={...r.params,[n.pageSize]:o}),r.data&&Object.keys(r.data).length>0&&(e.data={...r.data,[n.pageSize]:o}),e}),[r.params,r.data,n.pageSize,o]);return(0,b.jsx)(F,{...r,pagination:Object.assign({},{defaultPageSize:o,onShowSizeChange:(e,t)=>{l(t)}},n),...a,ref:t})}));q.defaultProps={controllerOpen:!0,size:"middle",stickyOffset:"var(--nav-height)",sticky:{getContainer:g.h},scroller:{getContainer:g.h},scroll:{x:"max-content"},rowKey:"id",pagination:{},dataFormat:e=>({list:e.pageData,total:e.totalCount})};const W=q}}]);
2
- //# sourceMappingURL=5443.f7281d63.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[556,8175],{90556:(r,n,e)=>{e.r(n),e.d(n,{useDebounce:()=>a,useDebouncedCallback:()=>u,useThrottledCallback:()=>o});var t=e(73884);function u(r,n,e){var u=this,c=(0,t.useRef)(null),i=(0,t.useRef)(0),a=(0,t.useRef)(null),o=(0,t.useRef)([]),f=(0,t.useRef)(),l=(0,t.useRef)(),s=(0,t.useRef)(r),m=(0,t.useRef)(!0);(0,t.useEffect)((function(){s.current=r}),[r]);var v=!n&&0!==n&&"undefined"!=typeof window;if("function"!=typeof r)throw new TypeError("Expected a function");n=+n||0;var d=!!(e=e||{}).leading,p=!("trailing"in e)||!!e.trailing,k="maxWait"in e,h=k?Math.max(+e.maxWait||0,n):null;(0,t.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=(0,t.useMemo)((function(){var r=function(r){var n=o.current,e=f.current;return o.current=f.current=null,i.current=r,l.current=s.current.apply(e,n)},e=function(r,n){v&&cancelAnimationFrame(a.current),a.current=v?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!m.current)return!1;var e=r-c.current;return!c.current||e>=n||e<0||k&&r-i.current>=h},w=function(n){return a.current=null,p&&o.current?r(n):(o.current=f.current=null,l.current)},R=function r(){var u=Date.now();if(t(u))return w(u);if(m.current){var a=n-(u-c.current),o=k?Math.min(a,h-(u-i.current)):a;e(r,o)}},b=function(){var s=Date.now(),v=t(s);if(o.current=[].slice.call(arguments),f.current=u,c.current=s,v){if(!a.current&&m.current)return i.current=c.current,e(R,n),d?r(c.current):l.current;if(k)return e(R,n),r(c.current)}return a.current||e(R,n),l.current};return b.cancel=function(){a.current&&(v?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,o.current=c.current=f.current=a.current=null},b.isPending=function(){return!!a.current},b.flush=function(){return a.current?w(Date.now()):l.current},b}),[d,k,n,h,p,v]);return w}function c(r,n){return r===n}function i(r){return"function"==typeof r?function(){return r}:r}function a(r,n,e){var a,o,f=e&&e.equalityFn||c,l=(a=(0,t.useState)(i(r)),o=a[1],[a[0],(0,t.useCallback)((function(r){return o(i(r))}),[])]),s=l[0],m=l[1],v=u((0,t.useCallback)((function(r){return m(r)}),[m]),n,e),d=(0,t.useRef)(r);return f(d.current,r)||(v(r),d.current=r),[s,v]}function o(r,n,e){var t=void 0===e?{}:e,c=t.leading,i=t.trailing;return u(r,n,{maxWait:n,leading:void 0===c||c,trailing:void 0===i||i})}}}]);
2
- //# sourceMappingURL=556.9e43bff7.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5600,9034,2517],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(8762),l=t.n(n);t(46733);const s=l()},58407:(e,o,t)=>{t.r(o),t.d(o,{ConfirmLink:()=>y,ConfirmText:()=>g,default:()=>C,withConfirm:()=>f});t(73884);var n=t(55199);const l=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var s=t(64671),i=t(58609),a=t(3382),r=t(83136),c=t.n(r);const d="style_overlay__99t5t__BSy+U",m="style_is-danger__gxyAB__BSy+U",h="style_title__EEPu2__BSy+U",_="style_content__mZZg5__BSy+U",p="style_has-title__5+PEt__BSy+U";var u=t(70579);const f=e=>{const o=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:l})((o=>{let{title:t,message:l,isDelete:r=!0,onClick:f,onCancel:y,disabled:g,showCancel:C,cancelText:x,isModal:b,okText:j,placement:S,getContainer:B,...w}=o;const{formatMessage:N}=(0,i.useIntl)({moduleName:"ConfirmButton"}),k=(0,a.useConfirmModal)();return b?(0,u.jsx)(e,{...w,disabled:g,onClick:e=>{k({type:"confirm",title:t,getContainer:B,danger:r,confirmType:r?"warning":"info",message:l||N({id:"message"}),okText:j||N(r?{id:"delete"}:{id:"confirm"}),cancelText:x||N({id:"cancel"}),onCancel:y,onOk:f})}}):(0,u.jsx)(n.Popconfirm,{title:(0,u.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(n.Space,{size:0,align:"start",className:h,children:[r&&(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,u.jsxs)(n.Space,{size:0,align:"start",className:c()(_,{[p]:t}),children:[!t&&r?(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||N({id:"message"})]})]}),placement:S,onConfirm:f,okButtonProps:{danger:r},onCancel:y,overlayClassName:c()(d,{[m]:r}),getPopupContainer:B,disabled:g,showCancel:C,cancelText:x,okText:j||N(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...w,disabled:g})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},y=f(n.Typography.Link),g=f(n.Typography.Text),C=f(n.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>T,TabsModal:()=>v,TabsModalButton:()=>M,default:()=>N,useConfirmModal:()=>w,useModal:()=>B,useTabsModal:()=>P});var n=t(73884),l=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__BSy+U",large:"style_large__iaqVE__BSy+U","modal-body-inner":"style_modal-body-inner__4PhpA__BSy+U","modal-title":"style_modal-title__dswaw__BSy+U","modal-outer":"style_modal-outer__r3SkX__BSy+U","modal-body":"style_modal-body__jQJSI__BSy+U","right-options-modal":"style_right-options-modal__FajDP__BSy+U","right-options-row":"style_right-options-row__-mPb9__BSy+U","right-options-col":"style_right-options-col__3ilee__BSy+U","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__BSy+U",content:"style_content__k6MIF__BSy+U","modal-footer":"style_modal-footer__-prbN__BSy+U","modal-close":"style_modal-close__Oa5Kl__BSy+U","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__BSy+U","is-danger":"style_is-danger__H5110__BSy+U",title:"style_title__orTym__BSy+U","has-title":"style_has-title__qy0Wp__BSy+U"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=t(81014),_=t(17342),p=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:n}=e;return o?(0,p.jsxs)(l.Row,{wrap:!1,className:a["right-options-row"],children:[(0,p.jsx)(l.Col,{span:24-t,className:a["right-options-col"],children:n}),(0,p.jsx)(l.Col,{span:t,className:a["right-options-col"],children:o})]}):n},y=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":y(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":y(300,o)}}:{width:"1000px",style:{"--min-modal-height":y(500,o)}},C=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,p.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,p.jsx)(l.Col,{children:(0,p.jsx)(l.Space,{children:(t||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:l,autoClose:s=!0,display:i,...r}=e;const c=t||h.default;return(0,n.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(l&&l(...o,d));return s&&!1!==n&&a&&a(),n}})}))})})]})},x=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:y}=e;const g=(0,n.useRef)(null);return(0,p.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,p.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,p.jsx)("div",{className:a["modal-title"],children:o}),(0,p.jsx)(_.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,p.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,p.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,p.jsx)(C,{footer:t,footerButtons:r,onConfirm:h,onCancel:u,onClose:c,targetProps:y})}):null]})},b=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,rightSpan:d,disabledScroller:h,childrenRef:_,children:u}=e;const y=e=>(e=Object.assign({},{title:n},e),(0,p.jsx)(x,{title:m(e.title,{...e,childrenRef:_,close:s}),closable:l,onClose:s,onConfirm:i,onCancel:a,footerButtons:m(t,{...e,close:s}),disabledScroller:h,footer:m(r,{...e,childrenRef:_,close:s}),targetProps:Object.assign({},e,{childrenRef:_,close:s}),children:(0,p.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:_,close:s}),children:m(u,{...e,childrenRef:_,close:s})})}));return"function"===typeof o?o(y):y({})},j=e=>{let{children:o,rightOptions:t,rightSpan:n,footer:l,footerButtons:s,className:d,size:m,title:h,onClose:_,onConfirm:u,onCancel:f,closable:y,disabledScroller:C,withDecorator:x,childrenRef:j,...S}=e;return{...S,icon:null,centered:!0,title:null,maskClosable:!!S.hasOwnProperty("maskClosable")&&S.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:_,className:i()(d,a.modal,a[m],{[a["right-options-modal"]]:t}),...g(m,!(null===l&&!s)),children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:b({withDecorator:x,title:h,closable:y,onClose:_,onConfirm:u,onCancel:f,footer:l,footerButtons:s,rightOptions:t,rightSpan:n,disabledScroller:C,children:o,childrenRef:j})})}},S=e=>{const o=(0,n.useRef)(null);return(0,p.jsx)(l.Modal,{...j(Object.assign({},e,{childrenRef:o}))})};S.defaultProps={size:"default"};const B=()=>{const{modal:e}=l.App.useApp(),o=(0,n.useRef)(null);return t=>{const n={},{children:l,...s}=j({onClose:()=>n.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:l});return n.close=i,n}},w=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:r,danger:c,wrapClassName:m,message:h,iconSetting:_={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},_);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,p.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,p.jsxs)(l.Space,{size:0,align:"start",className:a.title,children:[c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||y["confirm"===n?u:n]}):null,r]})}),content:(0,p.jsxs)(l.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||y["confirm"===n?u:n]}):null,h]})});t.close=o}return t}},N=S,k=e=>{let{items:o,className:t,activeKey:n,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,p.jsx)(l.Tabs,{items:o.map((o=>{let{withDecorator:n,...l}=o;return Object.assign({},l,{children:"function"===typeof n?n((o=>e(Object.assign({},t,o,{children:l.children})))):e(Object.assign({},t,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},v=e=>(0,p.jsx)(N,{...k(e)}),P=()=>{const e=B();return o=>e(k(o))};var U=t(73025);const M=e=>{const o=P();return e.api?(0,p.jsx)(U.A,{...e,modalFunc:o}):(0,p.jsx)(l.Button,{...e,onClick:()=>{o(e.modalProps)}})},T=e=>{const o=B();if(!e.api){const{modalProps:t,...n}=e;return(0,p.jsx)(l.Button,{...n,onClick:()=>{o(t)}})}return(0,p.jsx)(U.A,{...e,modalFunc:o})}},46733:()=>{}}]);
2
- //# sourceMappingURL=5600.d728bcd3.chunk.js.map
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5786,3405],{15786:(e,t,n)=>{var o=n(73766),s=n(76337),r=n(73884),l=n(85505);function i(e){return e&&e.__esModule?e.default:e}function a(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function d(e){e.forEach((e=>c(e.element)))}function p(e){e.forEach((e=>{!function(e,t,n){const o=e.children[n]||null;e.insertBefore(t,o)}(e.parentElement,e.element,e.oldIndex)}))}function u(e,t){const n=f(e),o={parentElement:e.from};let s=[];switch(n){case"normal":s=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":s=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...o},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...o}];break;case"multidrag":s=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...o})))}const r=function(e,t){const n=e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex));return n}(s,t);return r}function h(e,t){return m(e,b(e,t))}function b(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function m(e,t,n,o){const s=[...t];return e.forEach((e=>{const t=o&&n&&o(e.item,n);s.splice(e.newIndex,0,t||e.item)})),s}function f(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}function x(e){const{list:t,setList:n,children:o,tag:s,style:r,className:l,clone:i,onAdd:a,onChange:c,onChoose:d,onClone:p,onEnd:u,onFilter:h,onRemove:b,onSort:m,onStart:f,onUnchoose:x,onUpdate:g,onMove:$,onSpill:I,onSelect:O,onDeselect:w,...E}=e;return E}a(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),a(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),a(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),a(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),a(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),a(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),a(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),a(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),a(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),a(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),a(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),a(e.exports,"ReactSortable",(()=>$));const g={dragging:null};class $ extends r.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,r.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,g),i(l)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();i(o).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:o}=this.props,s={style:t,className:n,id:o},l=e&&null!==e?e:"div";return(0,r.createElement)(l,{ref:this.ref,...s},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:o="sortable-chosen",dragClass:l="sortable-drag",fallbackClass:a="sortable-falback",ghostClass:c="sortable-ghost",swapClass:d="sortable-swap-highlight",filter:p="sortable-filter",list:u}=this.props;if(!e||null==e)return null;const h=t||"data-id";return r.Children.map(e,((e,t)=>{if(void 0===e)return;const l=u[t]||{},{className:a}=e.props,c="string"===typeof p&&{[p.replace(".","")]:!!l.filtered},d=i(s)(a,{[n]:l.selected,[o]:l.chosen,...c});return(0,r.cloneElement)(e,{[h]:e.key,className:d})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=x(this.props);["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t)));return{...e,onMove:(e,t)=>{const{onMove:n}=this.props,o=e.willInsertAfter||-1;if(!n)return o;const s=n(e,t,this.sortable,g);return"undefined"!==typeof s&&s}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,g)}onAdd(e){const{list:t,setList:n,clone:o}=this.props,s=u(e,[...g.dragging.props.list]);d(s);n(m(s,t,e,o).map((e=>Object.assign(e,{selected:!1}))),this.sortable,g)}onRemove(e){const{list:t,setList:n}=this.props,o=f(e),s=u(e,t);p(s);let r=[...t];if("clone"!==e.pullMode)r=b(s,r);else{let t=s;switch(o){case"multidrag":t=s.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=s.map((t=>({...t,element:e.clone})));break;default:i(l)(!0,`mode "${o}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${o}" plugin`)}d(t),s.forEach((t=>{const n=t.oldIndex,o=this.props.clone(t.item,e);r.splice(n,1,o)}))}r=r.map((e=>Object.assign(e,{selected:!1}))),n(r,this.sortable,g)}onUpdate(e){const{list:t,setList:n}=this.props,o=u(e,t);d(o),p(o);return n(h(o,t),this.sortable,g)}onStart(){g.dragging=this}onEnd(){g.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(t,{chosen:!0})),o})),this.sortable,g)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(o,{chosen:!1})),o})),this.sortable,g)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);o[n].selected=!0})),n(o,this.sortable,g)}onDeselect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(o[t].selected=!0)})),n(o,this.sortable,g)}}var I,O;I=e.exports,O={},Object.keys(O).forEach((function(e){"default"===e||"__esModule"===e||I.hasOwnProperty(e)||Object.defineProperty(I,e,{enumerable:!0,get:function(){return O[e]}})}))},85505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=!0,s="Invariant failed";function r(e,t){if(!e){if(o)throw new Error(s);var n="function"===typeof t?t():t;throw new Error(n?s+": "+n:s)}}}}]);
2
- //# sourceMappingURL=5786.4a032c0e.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[589,2970],{2970:(r,n,e)=>{e.r(n),e.d(n,{useDebounce:()=>a,useDebouncedCallback:()=>u,useThrottledCallback:()=>o});var t=e(73884);function u(r,n,e){var u=this,c=(0,t.useRef)(null),i=(0,t.useRef)(0),a=(0,t.useRef)(null),o=(0,t.useRef)([]),f=(0,t.useRef)(),l=(0,t.useRef)(),s=(0,t.useRef)(r),m=(0,t.useRef)(!0);(0,t.useEffect)((function(){s.current=r}),[r]);var v=!n&&0!==n&&"undefined"!=typeof window;if("function"!=typeof r)throw new TypeError("Expected a function");n=+n||0;var d=!!(e=e||{}).leading,p=!("trailing"in e)||!!e.trailing,k="maxWait"in e,h=k?Math.max(+e.maxWait||0,n):null;(0,t.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=(0,t.useMemo)((function(){var r=function(r){var n=o.current,e=f.current;return o.current=f.current=null,i.current=r,l.current=s.current.apply(e,n)},e=function(r,n){v&&cancelAnimationFrame(a.current),a.current=v?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!m.current)return!1;var e=r-c.current;return!c.current||e>=n||e<0||k&&r-i.current>=h},w=function(n){return a.current=null,p&&o.current?r(n):(o.current=f.current=null,l.current)},R=function r(){var u=Date.now();if(t(u))return w(u);if(m.current){var a=n-(u-c.current),o=k?Math.min(a,h-(u-i.current)):a;e(r,o)}},b=function(){var s=Date.now(),v=t(s);if(o.current=[].slice.call(arguments),f.current=u,c.current=s,v){if(!a.current&&m.current)return i.current=c.current,e(R,n),d?r(c.current):l.current;if(k)return e(R,n),r(c.current)}return a.current||e(R,n),l.current};return b.cancel=function(){a.current&&(v?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,o.current=c.current=f.current=a.current=null},b.isPending=function(){return!!a.current},b.flush=function(){return a.current?w(Date.now()):l.current},b}),[d,k,n,h,p,v]);return w}function c(r,n){return r===n}function i(r){return"function"==typeof r?function(){return r}:r}function a(r,n,e){var a,o,f=e&&e.equalityFn||c,l=(a=(0,t.useState)(i(r)),o=a[1],[a[0],(0,t.useCallback)((function(r){return o(i(r))}),[])]),s=l[0],m=l[1],v=u((0,t.useCallback)((function(r){return m(r)}),[m]),n,e),d=(0,t.useRef)(r);return f(d.current,r)||(v(r),d.current=r),[s,v]}function o(r,n,e){var t=void 0===e?{}:e,c=t.leading,i=t.trailing;return u(r,n,{maxWait:n,leading:void 0===c||c,trailing:void 0===i||i})}}}]);
2
- //# sourceMappingURL=589.89f94e63.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/589.89f94e63.chunk.js","mappings":"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","sources":["../node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/use-debounce/src/useDebounce.ts","../node_modules/use-debounce/src/useThrottledCallback.ts"],"sourcesContent":["import { useRef, useEffect, useMemo } from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n}\n\nexport interface ControlFunctions {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => void;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function `debounced.callback` return the result of the last func invocation.\n * Note, that if there are no previous invocations it's mean you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState<T extends (...args: any) => ReturnType<T>> extends ControlFunctions {\n (...args: Parameters<T>): ReturnType<T> | undefined;\n}\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, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `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 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 the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\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 * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * <button onClick={clickHandler}>click me</button>\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.pending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<T extends (...args: any) => ReturnType<T>>(\n func: T,\n wait?: number,\n options?: Options\n): DebouncedState<T> {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef<unknown[]>([]);\n const lastThis = useRef<unknown>();\n const result = useRef<ReturnType<T>>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n\n useEffect(() => {\n funcRef.current = func;\n }, [func]);\n\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && typeof window !== 'undefined';\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF ? requestAnimationFrame(pendingFunc) : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\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 (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const func: DebouncedState<T> = (...args: Parameters<T>): ReturnType<T> => {\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n if (timerId.current) {\n useRAF ? cancelAnimationFrame(timerId.current) : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current = lastCallTime.current = lastThis.current = timerId.current = null;\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [leading, maxing, wait, maxWait, trailing, useRAF]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState, Dispatch } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality<T>(left: T, right: T): boolean {\n return left === right;\n}\n\nfunction adjustFunctionValueOfSetState<T>(value: T): T | (() => T) {\n return typeof value === 'function' ? () => value : value;\n}\n\nfunction useStateIgnoreCallback<T>(initialState: T): [T, Dispatch<T>] {\n const [state, setState] = useState(adjustFunctionValueOfSetState(initialState));\n const setStateIgnoreCallback = useCallback((value: T) => setState(adjustFunctionValueOfSetState(value)), []);\n return [state, setStateIgnoreCallback];\n}\n\nexport default function useDebounce<T>(\n value: T,\n delay: number,\n options?: { maxWait?: number; leading?: boolean; trailing?: boolean; equalityFn?: (left: T, right: T) => boolean }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const [state, dispatch] = useStateIgnoreCallback(value);\n const debounced = useDebouncedCallback(useCallback((value: T) => dispatch(value), [dispatch]), delay, options);\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [state, debounced];\n}\n","import useDebouncedCallback, { CallOptions, DebouncedState } from './useDebouncedCallback';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds (or once per browser frame).\n *\n * The throttled function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the throttled function.\n *\n * Subsequent calls to the throttled function return the result of the last\n * `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 the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\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 * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0]\n * The number of milliseconds to throttle invocations to; if omitted,\n * `requestAnimationFrame` is used (if available, otherwise it will be setTimeout(...,0)).\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 * const scrollHandler = useThrottledCallback(updatePosition, 100)\n * window.addEventListener('scroll', scrollHandler)\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * const { callback } = useThrottledCallback(renewToken, 300000, { 'trailing': false })\n * <button onClick={callback}>click</button>\n *\n * // Cancel the trailing throttled invocation.\n * window.addEventListener('popstate', throttled.cancel);\n */\nexport default function useThrottledCallback<T extends (...args: any) => ReturnType<T>>(\n func: T,\n wait: number,\n { leading = true, trailing = true }: CallOptions = {}\n): DebouncedState<T> {\n return useDebouncedCallback(func, wait, {\n maxWait: wait,\n leading,\n trailing,\n });\n}\n"],"names":["c","u","e","i","a","r","o","f","l","m","v","d","p","n","current","g","window","TypeError","w","leading","s","trailing","x","y","Math","max","maxWait","h","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","slice","call","arguments","cancel","clearTimeout","isPending","flush","equalityFn"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5962,2095],{24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>$,DragAreaOuter:()=>q,DragButton:()=>V,FileUpload:()=>le,Title:()=>D,UploadButton:()=>X,UploadTips:()=>J,default:()=>se});var i=s(73884),n=s(33097),a=s.n(n),l=s(55199);const r="style_file-list-outer__wPhbb__BSy+U",o="style_file-list-title__zXM5r__BSy+U",c="style_container__P4RaF__BSy+U",d="style_file-preview-inner__cvE72__BSy+U",u="style_file-preview__M-Asq__BSy+U",p="style_drag-area__Q+lm7__BSy+U",m="style_upload-drag-close__u5o8W__BSy+U",x="style_upload-drag-tips__z7puZ__BSy+U",g="style_upload-drag-icon__sGGoS__BSy+U",f="style_upload-drag-title__9Afmb__BSy+U",_="style_upload-drag-text__o38vS__BSy+U",h="style_title-group__8IJkS__BSy+U",v="style_upload-btn__Q+Jxn__BSy+U",j="style_total-count__z1fyd__BSy+U",y="style_file-select__mHqyI__BSy+U",S="style_file-name__QkvMn__BSy+U",N="style_file-select-info__fOLiM__BSy+U",F="style_file-select-option__AbDrD__BSy+U";var L=s(75087),P=s.n(L),w=s(74065),C=s.n(w),b=s(57469),U=s.n(b),M=s(64671),T=s(67390),z=s(58609),I=s(70579);const B=e=>{let{currentTab:t,setCurrentTab:s,previewMap:i,previewList:n,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:p,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:y,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:F,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:C()(t.split(".")),size:14}),(0,I.jsx)(l.Typography.Text,{className:S,ellipsis:!0,style:{"--max-width":`${p}px`},children:t})]}),s||i?(0,I.jsxs)(l.Space,{className:N,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&&U()(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:u})]})})};B.defaultProps={maxWidth:260};const D=B,E=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var A=s(70720),O=s.n(A),k=s(83136),R=s.n(k);const G=(0,i.createContext)({}),{Provider:W}=G,Y=()=>(0,i.useContext)(G);var H=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:i}=Y();return(0,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"})]})})},X=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]})},q=e=>{let{title:t,accept:s,fileSize:n,maxLength:a,onFileSelected:o,children:d,className:u}=e;const[p,m]=(0,i.useState)(!1),x=(0,i.useRef)(null),g=O()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||m(!1))}));return(0,I.jsx)(z.IntlProvider,{importMessages:E,moduleName:"FileList",children:(0,I.jsx)(W,{value:{open:p,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,u),ref:g,onDragEnter:()=>{m(!0)},children:d})]})})})};q.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const J=e=>{let{icon:t,title:s,renderTips:i}=e;const{accept:n,fileSize:a,maxLength:l}=Y(),r=i((0,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:f,children:s||(0,I.jsx)(z.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,I.jsx)("div",{className:_,children:r})]})};J.defaultProps={renderTips:e=>e};const Z=e=>{let{children:t,className:s}=e;const{open:i,accept:n,onOpenChange:a,onFileSelected:r}=Y();return i?(0,I.jsxs)("div",{className:R()(p,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)(J,{})};const $=Z;var K=s(51714),ee=s(63908);const te=e=>{var t;let{maxLength:s,list:n,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:p,getPermission:m,titleExtra:x,fileSize:g,accept:f,getPopupContainer:_}=e;const{apis:h}=(0,ee.usePreset)(),v=Object.assign({},h,p),{fileList:j,onFileSelected:y}=(0,H.lN)({maxLength:s,multiple:!0,value:n,onChange:r,concurrentCount:1,onAdd:()=>{N("list")},onSave:v.onSave,ossUpload:v.ossUpload}),[S,N]=(0,i.useState)(o),{formatMessage:F}=(0,z.useIntl)({moduleName:"FileList"}),{message:L}=l.App.useApp(),P=(0,i.useMemo)((()=>new Map(n.map((e=>[e.ossId,e])))),[n]),[w,C]=(0,i.useState)(c||a()(n,"[0].ossId",null));(0,i.useEffect)((()=>{w&&P.get(w)||C(a()(n,"[0].ossId",null))}),[n,P,w]);const b={onPreview:e=>{C(e.ossId),N("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})),L.success(F({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})),L.success(F({id:"successEditFileName"},{name:s.filename}))}},U="function"===typeof x?x({currentPreviewFileId:w,currentTab:S}):x;return(0,I.jsxs)(q,{title:(0,I.jsx)(D,{currentTab:S,setCurrentTab:N,previewMap:P,previewList:n,getPermission:m,currentPreviewFileId:w,setCurrentPreviewFileId:C,itemApis:b,getPopupContainer:_,children:(0,I.jsxs)(l.Space,{split:(0,I.jsx)(l.Divider,{type:"vertical"}),children:[U,m("add",{})?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{children:(0,I.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,I.jsx)(X,{children:(0,I.jsx)(z.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:y,accept:f,children:["list"===S?(0,I.jsx)(T.List,{dataSource:[...j,...n],getPermission:m,apis:b}):null,"preview"===S?w?(0,I.jsx)("div",{className:d,children:(0,I.jsx)(K.default,{className:u,id:w,apis:v,originName:null===(t=P.get(w))||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)($,{})]})};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:E,moduleName:"FileList",children:(0,I.jsx)(te,{...e})});var ie=s(10986),ne=s.n(ie);const ae=e=>{let{maxLength:t,apis:s,getPermission:i,fileSize:n,accept:a,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,u]=ne()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:p,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:u,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,I.jsxs)(q,{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)(V,{}),(0,I.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:n,maxLength:t,onFileSelected:m,accept:a,children:[(0,I.jsx)(T.List,{dataSource:[...p,...d],getPermission:i,apis:c}),(0,I.jsx)($,{})]})};ae.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const le=ae},94710:e=>{e.exports=function(e,t,s,i){for(var n=-1,a=null==e?0:e.length;++n<a;){var l=e[n];t(i,l,s(l),e)}return i}},32952:(e,t,s)=>{var i=s(45652);e.exports=function(e,t,s,n){return i(e,(function(e,i,a){t(n,e,s(e),a)})),n}},45652:(e,t,s)=>{var i=s(94664),n=s(76516)(i);e.exports=n},99910:e=>{e.exports=function(e,t){for(var s,i=-1,n=e.length;++i<n;){var a=t(e[i]);void 0!==a&&(s=void 0===s?a:s+a)}return s}},19449:(e,t,s)=>{var i=s(94710),n=s(32952),a=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?i:n,c=t?t():{};return o(s,e,a(r,2),c)}}},76516:(e,t,s)=>{var i=s(6571);e.exports=function(e,t){return function(s,n){if(null==s)return s;if(!i(s))return e(s,n);for(var a=s.length,l=t?a:-1,r=Object(s);(t?l--:++l<a)&&!1!==n(r[l],l,r););return s}}},26304:(e,t,s)=>{var i=s(53871),n=s(99140);e.exports=function(e,t,s){var a=null==e?0:e.length;return a?(t=s||void 0===t?1:n(t),i(e,0,(t=a-t)<0?0:t)):[]}},39835:(e,t,s)=>{var i=s(71775),n=s(19449),a=Object.prototype.hasOwnProperty,l=n((function(e,t,s){a.call(e,s)?e[s].push(t):i(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var i=s(26989);e.exports=function(e,t,s){var n=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===n?i(e,t,void 0,s):!!n}},60262:(e,t,s)=>{var i=s(99910),n=s(33279);e.exports=function(e){return e&&e.length?i(e,n):0}},99140:(e,t,s)=>{var i=s(37303);e.exports=function(e){var t=i(e),s=t%1;return t===t?s?t-s:t:0}},55664:()=>{},17448:()=>{},71975:()=>{}}]);
2
- //# sourceMappingURL=5962.7cd8c3e1.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[628,8247],{20628:(e,o,n)=>{n.r(o),n.d(o,{Consumer:()=>r,Provider:()=>c,context:()=>s,default:()=>s,useGlobalContext:()=>u});var t=n(73884);const s=(0,t.createContext)({}),{Provider:c,Consumer:r}=s,u=()=>(0,t.useContext)(s)}}]);
2
- //# sourceMappingURL=628.4d54b21d.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6611,9034,3142],{28148:(e,s,t)=>{t.r(s),t.d(s,{default:()=>K});const n={menu:"style_menu__gvIvn__BSy+U","all-no-start-icon":"style_all-no-start-icon__CA+zR__BSy+U","no-start-icon":"style_no-start-icon__LnC1S__BSy+U","has-children":"style_has-children__m9tce__BSy+U","has-children-node":"style_has-children-node__2bhEB__BSy+U","is-root":"style_is-root__4hhOc__BSy+U",title:"style_title__+Hcar__BSy+U",active:"style_active__WU49K__BSy+U","no-collapse":"style_no-collapse__aIZBM__BSy+U","title-content":"style_title-content__cQXpK__BSy+U",loading:"style_loading__1pU4P__BSy+U"};var l=t(83136),a=t.n(l),r=t(55199),o=t(94679),i=t(29053),c=t(10986),d=t.n(c),p=t(64671),h=t(73884),u=t(18081),y=t.n(u),_=t(87558),m=t(70579);const g=e=>{const s=(0,o.useNavigate)(),{id:t,className:l,label:c,iconType:d,path:h,request:u,onClick:y,isOpen:g,isSelected:f,onOpenChange:K,children:O,fetchOptions:v,depth:C,onLoad:j,allowCollapsed:k}=e,S=Array.isArray(O)&&O.length>0||v,{refresh:b,isLoading:x}=(0,_.useFetch)(Object.assign({},v,{auto:!k&&v,onRequestSuccess:e=>{j(e)}}));return(0,m.jsx)(i.default,{request:u,children:(0,m.jsxs)("div",{className:a()(l,n["menu-item"]),children:[(0,m.jsxs)("div",{className:a()(n.title,{[n.active]:f,[n["has-children"]]:S,[n["no-collapse"]]:S&&!k,[n["no-start-icon"]]:!d,[n["is-root"]]:0===C}),onClick:n=>{n.stopPropagation(),S||!h?S||v?k&&(v&&b({}),K(!g)):null===y||void 0===y||y(t,e):s(h)},children:[d&&(0,m.jsx)(p.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),S&&k&&(0,m.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),S?!k||g&&O?(0,m.jsx)("div",{className:n["children-list"],children:O}):!k||g&&x?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},f=e=>{let{className:s,allowCollapsed:t,pathMatch:l,...r}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[p,u]=d()(r,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[_,f]=d()(r,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:K,defaultOpenKeys:O,links:v,childrenKeys:C,hasStartIcon:j,hasChildren:k}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},l);return Array.isArray(e)&&e.length>0?e.map(((e,l)=>{const o=`${e.key||`${"root"!==a?`${a}-`:""}node-${l}`}`;s[a]||(s[a]=[]),s[a].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[a].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(_);let l=!1,a=!1;const r=[],o=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach((e=>{const s=n[e];s.iconType&&(l=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(a=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:l,hasChildren:a}}),[_]);(0,h.useEffect)((()=>{const e=v.find((e=>{let{path:s}=e;return"function"===typeof l?l(s,{pathname:i,search:c}):y()(i.replace(/[#,?].*/,""))===y()(s)||y()(i+c)===y()(s)}));e&&u(e.key)}),[v,i,c,u,l]);const[S,b]=d()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||O}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),x=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:l,selectedKey:a,openKeys:r,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...d}=e;return(0,h.createElement)(g,{...Object.assign({},d),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||C[i]&&C[i].indexOf(a)>-1,onClick:u,onLoad:e=>{f((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(r||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{b((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},x(s,{parentKey:n,depth:l+1,selectedKey:a,openKeys:r,paths:[...o,i]}))})):null}),[f,b,u,C,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!j,[n["has-children-node"]]:k}),children:x(K,{selectedKey:p,openKeys:S})})};f.defaultProps={defaultItems:[],allowCollapsed:!0};const K=f},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>h,default:()=>m,usePermissions:()=>u,usePermissionsPass:()=>y});var n=t(73884),l=t(55199),a=t(33097),r=t.n(a),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__BSy+U";var d=t(63908),p=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,d.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,d.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},y=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},_=e=>{let{type:s,className:t,tagName:a,message:r,request:o,children:d,...h}=e;const u=y({request:o});return"function"===typeof d?d({isPass:u,type:s,request:o}):!0===u?d:"error"===s?(0,p.jsx)(l.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,p.jsx)(l.Tooltip,{title:r,children:(0,n.createElement)(a,{...h,className:i()(c,t)},d)}):null};_.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=_}}]);
2
- //# sourceMappingURL=6611.1be48e69.chunk.js.map
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6779,5600,9034,2517],{17342:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(8762),r=n.n(o);n(46733);const i=r()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),r=n(79889),i=n.n(r),l=n(93950),s=n.n(l),a=n(96418),c=n.n(a);const d=(e,t)=>{const n=(0,o.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const r=(0,o.useRef)(null),l=c()(e);return(0,o.useLayoutEffect)((()=>{const e=r.current,t=()=>window.requestAnimationFrame((()=>{e&&l(e)}));t();const o=new ResizeObserver((n.current.isDebounce?s():i())(t,n.current.time));return e&&o.observe(e),()=>{o.disconnect()}}),[l]),r}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var o=n(73884),r=n(96418),i=n.n(r),l=n(55199),s=n(83136),a=n.n(s),c=n(64671),d=n(81014),u=n(58407),m=n(77964),f=n(22616),p=n.n(f);const h="style_width-container__JfEbg__BSy+U",_="style_hidden-container__EdySA__BSy+U",y="style_hidden-inner__vAN59__BSy+U",g="style_menu-list__VDttR__BSy+U",x="style_btn-item__mp5MQ__BSy+U";var v=n(15797),C=n.n(v),b=n(70579);const j=C()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;const l=i?0:["small","middle","large"].indexOf(r.size)>-1?8*(["small","middle","large"].indexOf(r.size)+1):Number.isInteger(r.size)?r.size:8;let s=0,a=0;for(;t>=a+o[s]+s*l&&s<o.length;)a+=o[s],s+=1;for(;t<a+(s-1)*l+(s<o.length?n+l:0)&&s>0;)a-=o[s-1],s-=1;return s}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;return`${t}${n}${o.join(",")}${Object.values(r).join(",")}${i&&i.toString()}`})),S=e=>{let{list:t,more:n,compact:r,...s}=e;const c=p()(s,["size","split","align","style"]),[f,v]=(0,o.useState)(t.length&&1),C=i()((()=>{const e=w.current,t=B.current,n=S.current;if(!e)return;const i=e.querySelectorAll(".button-group-item");if(!i)return;if(0===i.length)return;const l=n.clientWidth,s=t.clientWidth,a=[].map.call(i,(e=>e.offsetWidth)),d=j({amountWidth:l,moreBtnWidth:s,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{v(d)}))})),S=(0,m.A)(C),w=(0,m.A)(C),B=(0,m.A)(C),N=t.slice(f),k=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",x),isDropdown:n});const{className:r,confirm:i,buttonComponent:l,...s}=e,c=i||s.message,m=c?u.default:l||d.default;return(0,o.createElement)(m,{danger:c&&!1!==s.isDelete,...Object.assign({},s,c&&(s.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",x,r)})},P=r?l.Space.Compact:l.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:h,ref:S}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:y,ref:B,children:n}),(0,b.jsx)("div",{className:y,ref:w,children:(0,b.jsx)(P,{...c,children:t.map(k)})})]}),(0,b.jsxs)(P,{...c,children:[t.slice(0,f).map(((e,t)=>k(e,t,!1))),N.length>0&&(0,b.jsx)(l.Dropdown,{overlayClassName:g,menu:{items:N.map(((e,t)=>({key:t,label:k(e,t,!0)})))},children:n})]})]})};S.defaultProps={more:(0,b.jsxs)(l.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const w=S},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>y,ConfirmText:()=>g,default:()=>x,withConfirm:()=>_});n(73884);var o=n(55199);const r=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var i=n(64671),l=n(58609),s=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__BSy+U",u="style_is-danger__gxyAB__BSy+U",m="style_title__EEPu2__BSy+U",f="style_content__mZZg5__BSy+U",p="style_has-title__5+PEt__BSy+U";var h=n(70579);const _=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:a=!0,onClick:_,onCancel:y,disabled:g,showCancel:x,cancelText:v,isModal:C,okText:b,placement:j,getContainer:S,...w}=t;const{formatMessage:B}=(0,l.useIntl)({moduleName:"ConfirmButton"}),N=(0,s.useConfirmModal)();return C?(0,h.jsx)(e,{...w,disabled:g,onClick:e=>{N({type:"confirm",title:n,getContainer:S,danger:a,confirmType:a?"warning":"info",message:r||B({id:"message"}),okText:b||B(a?{id:"delete"}:{id:"confirm"}),cancelText:v||B({id:"cancel"}),onCancel:y,onOk:_})}}):(0,h.jsx)(o.Popconfirm,{title:(0,h.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,h.jsxs)(o.Space,{size:0,align:"start",className:m,children:[a&&(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,h.jsxs)(o.Space,{size:0,align:"start",className:c()(f,{[p]:n}),children:[!n&&a?(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,r||B({id:"message"})]})]}),placement:j,onConfirm:_,okButtonProps:{danger:a},onCancel:y,overlayClassName:c()(d,{[u]:a}),getPopupContainer:S,disabled:g,showCancel:x,cancelText:v,okText:b||B(a?{id:"delete"}:{id:"confirm"}),children:(0,h.jsx)(e,{...w,disabled:g})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},y=_(o.Typography.Link),g=_(o.Typography.Text),x=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>M,TabsModal:()=>k,TabsModalButton:()=>T,default:()=>B,useConfirmModal:()=>w,useModal:()=>S,useTabsModal:()=>P});var o=n(73884),r=n(55199),i=n(83136),l=n.n(i);const s={modal:"style_modal__Pm3cF__BSy+U",large:"style_large__iaqVE__BSy+U","modal-body-inner":"style_modal-body-inner__4PhpA__BSy+U","modal-title":"style_modal-title__dswaw__BSy+U","modal-outer":"style_modal-outer__r3SkX__BSy+U","modal-body":"style_modal-body__jQJSI__BSy+U","right-options-modal":"style_right-options-modal__FajDP__BSy+U","right-options-row":"style_right-options-row__-mPb9__BSy+U","right-options-col":"style_right-options-col__3ilee__BSy+U","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__BSy+U",content:"style_content__k6MIF__BSy+U","modal-footer":"style_modal-footer__-prbN__BSy+U","modal-close":"style_modal-close__Oa5Kl__BSy+U","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__BSy+U","is-danger":"style_is-danger__H5110__BSy+U",title:"style_title__orTym__BSy+U","has-title":"style_has-title__qy0Wp__BSy+U"},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,rightSpan:n=6,children:o}=e;return t?(0,p.jsxs)(r.Row,{wrap:!1,className:s["right-options-row"],children:[(0,p.jsx)(r.Col,{span:24-n,className:s["right-options-col"],children:o}),(0,p.jsx)(r.Col,{span:n,className:s["right-options-col"],children:t})]}):o},y=(e,t)=>e-48-(t?58:0)+"px",g=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":y(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":y(300,t)}}:{width:"1000px",style:{"--min-modal-height":y(500,t)}},x=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:l,onClose:s,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:l},{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:l,...a}=e;const c=n||m.default;return(0,o.createElement)(c,{...a,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=await Promise.resolve(r&&r(...t,d));return i&&!1!==o&&s&&s(),o}})}))})})]})},v=e=>{let{title:t,footer:n,disabledScroller:i,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:h,children:_,targetProps:y}=e;const g=(0,o.useRef)(null);return(0,p.jsxs)("div",{className:s["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,p.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:s["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:s["modal-title"],children:t}),(0,p.jsx)(f.A,{className:l()(s["modal-body"],{[s["is-disabled-scroller"]]:i},"modal-body"),ref:g,children:(0,p.jsx)("div",{className:l()(s["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,p.jsx)("div",{className:l()(s["modal-footer"],"modal-footer"),children:(0,p.jsx)(x,{footer:n,footerButtons:a,onConfirm:m,onCancel:h,onClose:c,targetProps:y})}):null]})},C=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:i,onConfirm:l,onCancel:s,footer:a,rightOptions:c,rightSpan:d,disabledScroller:m,childrenRef:f,children:h}=e;const y=e=>(e=Object.assign({},{title:o},e),(0,p.jsx)(v,{title:u(e.title,{...e,childrenRef:f,close:i}),closable:r,onClose:i,onConfirm:l,onCancel:s,footerButtons:u(n,{...e,close:i}),disabledScroller:m,footer:u(a,{...e,childrenRef:f,close:i}),targetProps:Object.assign({},e,{childrenRef:f,close:i}),children:(0,p.jsx)(_,{rightSpan:d,options:u(c,{...e,childrenRef:f,close:i}),children:u(h,{...e,childrenRef:f,close:i})})}));return"function"===typeof t?t(y):y({})},b=e=>{let{children:t,rightOptions:n,rightSpan:o,footer:r,footerButtons:i,className:d,size:u,title:m,onClose:f,onConfirm:h,onCancel:_,closable:y,disabledScroller:x,withDecorator:v,childrenRef:b,...j}=e;return{...j,icon:null,centered:!0,title:null,maskClosable:!!j.hasOwnProperty("maskClosable")&&j.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:f,className:l()(d,s.modal,s[u],{[s["right-options-modal"]]:n}),...g(u,!(null===r&&!i)),children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:v,title:m,closable:y,onClose:f,onConfirm:h,onCancel:_,footer:r,footerButtons:i,rightOptions:n,rightSpan:o,disabledScroller:x,children:t,childrenRef:b})})}},j=e=>{const t=(0,o.useRef)(null);return(0,p.jsx)(r.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const S=()=>{const{modal:e}=r.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:r,...i}=b({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:l}=e.info({...i,content:r});return o.close=l,o}},w=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:i,title:a,danger:c,wrapClassName:u,message:m,iconSetting:f={},confirmType:h="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},y=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:l()(s["confirm-modal-wrap"],u,{[s["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:s.title,children:[c?(0,p.jsx)(d.default,{className:l()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:i||y["confirm"===o?h:o]}):null,a]})}),content:(0,p.jsxs)(r.Space,{size:0,align:"start",className:l()(s.content,{[s["has-title"]]:a}),children:[!a&&c?(0,p.jsx)(d.default,{className:l()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:i||y["confirm"===o?h:o]}):null,m]})});n.close=t}return n}},B=j,N=e=>{let{items:t,className:n,activeKey:o,withDecorator:i,defaultActiveKey:s,onChange:a,...c}=e;return{...c,className:l()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,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:s,onChange:a});return"function"===typeof i?i(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},k=e=>(0,p.jsx)(B,{...N(e)}),P=()=>{const e=S();return t=>e(N(t))};var U=n(73025);const T=e=>{const t=P();return e.api?(0,p.jsx)(U.A,{...e,modalFunc:t}):(0,p.jsx)(r.Button,{...e,onClick:()=>{t(e.modalProps)}})},M=e=>{const t=S();if(!e.api){const{modalProps:n,...o}=e;return(0,p.jsx)(r.Button,{...o,onClick:()=>{t(n)}})}return(0,p.jsx)(U.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),r=n(77116);e.exports=function e(t,n,i,l,s){var a=-1,c=t.length;for(i||(i=r),s||(s=[]);++a<c;){var d=t[a];n>0&&i(d)?n>1?e(d,n-1,i,l,s):o(s,d):l||(s[s.length]=d)}return s}},94008:(e,t,n)=>{var o=n(27449),r=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return r(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),r=n(9261),i=n(35324);e.exports=function(e,t,n){for(var l=-1,s=t.length,a={};++l<s;){var c=t[l],d=o(e,c);n(d,c)&&r(a,i(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),r=n(35324),i=n(69194),l=n(46686),s=n(70914);e.exports=function(e,t,n,a){if(!l(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var f=s(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=l(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),l=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(l&&e&&e[l])}},93950:(e,t,n)=>{var o=n(46686),r=n(4757),i=n(40801),l=Math.max,s=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,f,p=0,h=!1,_=!1,y=!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 x(e){var n=e-f;return void 0===f||n>=t||n<0||_&&e-p>=d}function v(){var e=r();if(x(e))return C(e);m=setTimeout(v,function(e){var n=t-(e-f);return _?s(n,d-(e-p)):n}(e))}function C(e){return m=void 0,y&&a?g(e):(a=c=void 0,u)}function b(){var e=r(),n=x(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)?l(i(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),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,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),o(e,t,{leading:i,maxWait:t,trailing:l})}},46733:()=>{}}]);
2
- //# sourceMappingURL=6779.2092cdf9.chunk.js.map