@kne-components/components-core 0.2.42 → 0.2.44

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 (236) hide show
  1. package/build/asset-manifest.json +159 -184
  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.bd00ceba.chunk.css +2 -0
  6. package/build/static/css/{1151.1f3022bf.chunk.css.map → 1151.bd00ceba.chunk.css.map} +1 -1
  7. package/build/static/css/1153.a25df6d4.chunk.css +2 -0
  8. package/build/static/css/{1153.d61ce559.chunk.css.map → 1153.a25df6d4.chunk.css.map} +1 -1
  9. package/build/static/css/1554.b4fd9a61.chunk.css +2 -0
  10. package/build/static/css/{1554.9beb1662.chunk.css.map → 1554.b4fd9a61.chunk.css.map} +1 -1
  11. package/build/static/css/{2503.314aae1d.chunk.css → 2503.3b55aa01.chunk.css} +2 -2
  12. package/build/static/css/{2503.314aae1d.chunk.css.map → 2503.3b55aa01.chunk.css.map} +1 -1
  13. package/build/static/css/{2517.4e00df95.chunk.css → 2517.79e8c862.chunk.css} +2 -2
  14. package/build/static/css/{2517.4e00df95.chunk.css.map → 2517.79e8c862.chunk.css.map} +1 -1
  15. package/build/static/css/2716.cc15d982.chunk.css +2 -0
  16. package/build/static/css/{2716.df120de0.chunk.css.map → 2716.cc15d982.chunk.css.map} +1 -1
  17. package/build/static/css/{2730.802fda5a.chunk.css → 2730.7f0bf7c8.chunk.css} +2 -2
  18. package/build/static/css/{2730.802fda5a.chunk.css.map → 2730.7f0bf7c8.chunk.css.map} +1 -1
  19. package/build/static/css/{3142.54b858e2.chunk.css → 3142.5eecdcdc.chunk.css} +2 -2
  20. package/build/static/css/{3142.54b858e2.chunk.css.map → 3142.5eecdcdc.chunk.css.map} +1 -1
  21. package/build/static/css/3799.4613a18e.chunk.css +2 -0
  22. package/build/static/css/3799.4613a18e.chunk.css.map +1 -0
  23. package/build/static/css/4029.7d16e351.chunk.css +2 -0
  24. package/build/static/css/4029.7d16e351.chunk.css.map +1 -0
  25. package/build/static/css/4265.269364d5.chunk.css +2 -0
  26. package/build/static/css/{4265.78c20ac7.chunk.css.map → 4265.269364d5.chunk.css.map} +1 -1
  27. package/build/static/css/4666.6b1a6214.chunk.css +2 -0
  28. package/build/static/css/{4666.b0afc9b3.chunk.css.map → 4666.6b1a6214.chunk.css.map} +1 -1
  29. package/build/static/css/5443.c6bfe2a4.chunk.css +2 -0
  30. package/build/static/css/{5443.e9f00bae.chunk.css.map → 5443.c6bfe2a4.chunk.css.map} +1 -1
  31. package/build/static/css/5600.e4a9ac2a.chunk.css +2 -0
  32. package/build/static/css/{5600.dce4a944.chunk.css.map → 5600.e4a9ac2a.chunk.css.map} +1 -1
  33. package/build/static/css/5962.1c4707f7.chunk.css +2 -0
  34. package/build/static/css/{5962.3802d3a9.chunk.css.map → 5962.1c4707f7.chunk.css.map} +1 -1
  35. package/build/static/css/{5996.22b46443.chunk.css → 5996.f39d2b65.chunk.css} +2 -2
  36. package/build/static/css/{5996.22b46443.chunk.css.map → 5996.f39d2b65.chunk.css.map} +1 -1
  37. package/build/static/css/{6611.61df97b4.chunk.css → 6611.3047a5bb.chunk.css} +2 -2
  38. package/build/static/css/{6611.61df97b4.chunk.css.map → 6611.3047a5bb.chunk.css.map} +1 -1
  39. package/build/static/css/6779.302a7334.chunk.css +2 -0
  40. package/build/static/css/{6779.774ec289.chunk.css.map → 6779.302a7334.chunk.css.map} +1 -1
  41. package/build/static/css/7121.af395de1.chunk.css +2 -0
  42. package/build/static/css/{7121.6d05bb7a.chunk.css.map → 7121.af395de1.chunk.css.map} +1 -1
  43. package/build/static/css/7227.2aeac7b9.chunk.css +2 -0
  44. package/build/static/css/{7227.d1a75756.chunk.css.map → 7227.2aeac7b9.chunk.css.map} +1 -1
  45. package/build/static/css/8017.b6a15ade.chunk.css +2 -0
  46. package/build/static/css/{8017.75cee043.chunk.css.map → 8017.b6a15ade.chunk.css.map} +1 -1
  47. package/build/static/css/8332.05595f65.chunk.css +2 -0
  48. package/build/static/css/{8332.dd4512a6.chunk.css.map → 8332.05595f65.chunk.css.map} +1 -1
  49. package/build/static/css/{8725.e135d3df.chunk.css → 8725.bed70ea6.chunk.css} +2 -2
  50. package/build/static/css/{8725.e135d3df.chunk.css.map → 8725.bed70ea6.chunk.css.map} +1 -1
  51. package/build/static/css/9968.14085094.chunk.css +2 -0
  52. package/build/static/css/{9968.8466d826.chunk.css.map → 9968.14085094.chunk.css.map} +1 -1
  53. package/build/static/js/{1153.434d4de1.chunk.js → 1153.7c4988b3.chunk.js} +3 -3
  54. package/build/static/js/{1153.434d4de1.chunk.js.map → 1153.7c4988b3.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.5bf39091.chunk.js +3 -0
  58. package/build/static/js/{1554.c1b883e9.chunk.js.map → 1554.5bf39091.chunk.js.map} +1 -1
  59. package/build/static/js/1581.811ba84b.chunk.js +2 -0
  60. package/build/static/js/{1581.ebb0eb2e.chunk.js.map → 1581.811ba84b.chunk.js.map} +1 -1
  61. package/build/static/js/{1649.72034b16.chunk.js → 1649.9d5250c5.chunk.js} +2 -2
  62. package/build/static/js/1649.9d5250c5.chunk.js.map +1 -0
  63. package/build/static/js/2331.b6f2a506.chunk.js +2 -0
  64. package/build/static/js/{4712.b3ce8808.chunk.js.map → 2331.b6f2a506.chunk.js.map} +1 -1
  65. package/build/static/js/{2363.6518a4d7.chunk.js → 2363.b23ad311.chunk.js} +2 -2
  66. package/build/static/js/2363.b23ad311.chunk.js.map +1 -0
  67. package/build/static/js/2503.ed50e7a9.chunk.js +2 -0
  68. package/build/static/js/{2503.809ea331.chunk.js.map → 2503.ed50e7a9.chunk.js.map} +1 -1
  69. package/build/static/js/2517.cecb9bd7.chunk.js +2 -0
  70. package/build/static/js/{2517.29bae06f.chunk.js.map → 2517.cecb9bd7.chunk.js.map} +1 -1
  71. package/build/static/js/2716.a0cf3954.chunk.js +3 -0
  72. package/build/static/js/{2716.ca598c07.chunk.js.map → 2716.a0cf3954.chunk.js.map} +1 -1
  73. package/build/static/js/2730.2bf4c161.chunk.js +2 -0
  74. package/build/static/js/{2730.87112030.chunk.js.map → 2730.2bf4c161.chunk.js.map} +1 -1
  75. package/build/static/js/2814.9144e01a.chunk.js +2 -0
  76. package/build/static/js/{2814.fe35bfd4.chunk.js.map → 2814.9144e01a.chunk.js.map} +1 -1
  77. package/build/static/js/2970.cb5e7784.chunk.js +2 -0
  78. package/build/static/js/{2970.326287df.chunk.js.map → 2970.cb5e7784.chunk.js.map} +1 -1
  79. package/build/static/js/{3142.f0188353.chunk.js → 3142.8eb71b87.chunk.js} +2 -2
  80. package/build/static/js/{3142.f0188353.chunk.js.map → 3142.8eb71b87.chunk.js.map} +1 -1
  81. package/build/static/js/36.07c5e1a6.chunk.js +2 -0
  82. package/build/static/js/{36.df9cff6b.chunk.js.map → 36.07c5e1a6.chunk.js.map} +1 -1
  83. package/build/static/js/3799.97b1ed7b.chunk.js +2 -0
  84. package/build/static/js/3799.97b1ed7b.chunk.js.map +1 -0
  85. package/build/static/js/4029.a2acd461.chunk.js +2 -0
  86. package/build/static/js/4029.a2acd461.chunk.js.map +1 -0
  87. package/build/static/js/4106.8ff2b68d.chunk.js +2 -0
  88. package/build/static/js/{1725.bc60f755.chunk.js.map → 4106.8ff2b68d.chunk.js.map} +1 -1
  89. package/build/static/js/4265.666c95ed.chunk.js +2 -0
  90. package/build/static/js/{4265.7b9b7816.chunk.js.map → 4265.666c95ed.chunk.js.map} +1 -1
  91. package/build/static/js/{4666.0b3f925c.chunk.js → 4666.95520e3e.chunk.js} +3 -3
  92. package/build/static/js/{4666.0b3f925c.chunk.js.map → 4666.95520e3e.chunk.js.map} +1 -1
  93. package/build/static/js/5443.15d189d1.chunk.js +2 -0
  94. package/build/static/js/{5443.1ca71be9.chunk.js.map → 5443.15d189d1.chunk.js.map} +1 -1
  95. package/build/static/js/556.1fe51b22.chunk.js +2 -0
  96. package/build/static/js/{556.9e43bff7.chunk.js.map → 556.1fe51b22.chunk.js.map} +1 -1
  97. package/build/static/js/5600.7de79e05.chunk.js +2 -0
  98. package/build/static/js/{5600.71a7974a.chunk.js.map → 5600.7de79e05.chunk.js.map} +1 -1
  99. package/build/static/js/5786.fd6a0b33.chunk.js +2 -0
  100. package/build/static/js/{5786.4a032c0e.chunk.js.map → 5786.fd6a0b33.chunk.js.map} +1 -1
  101. package/build/static/js/5962.ec9b072e.chunk.js +2 -0
  102. package/build/static/js/{5962.38d7efac.chunk.js.map → 5962.ec9b072e.chunk.js.map} +1 -1
  103. package/build/static/js/{5996.252eb99a.chunk.js → 5996.c211aa95.chunk.js} +2 -2
  104. package/build/static/js/{5996.252eb99a.chunk.js.map → 5996.c211aa95.chunk.js.map} +1 -1
  105. package/build/static/js/628.78906eef.chunk.js +2 -0
  106. package/build/static/js/{628.4d54b21d.chunk.js.map → 628.78906eef.chunk.js.map} +1 -1
  107. package/build/static/js/6611.46a3517c.chunk.js +2 -0
  108. package/build/static/js/{6611.c167c7bf.chunk.js.map → 6611.46a3517c.chunk.js.map} +1 -1
  109. package/build/static/js/6779.ef89b518.chunk.js +2 -0
  110. package/build/static/js/{6779.88dcd9ea.chunk.js.map → 6779.ef89b518.chunk.js.map} +1 -1
  111. package/build/static/js/6908.b9d9e979.chunk.js +3 -0
  112. package/build/static/js/6908.b9d9e979.chunk.js.map +1 -0
  113. package/build/static/js/{6915.c480d18e.chunk.js → 6915.09ea253f.chunk.js} +2 -2
  114. package/build/static/js/{6915.c480d18e.chunk.js.map → 6915.09ea253f.chunk.js.map} +1 -1
  115. package/build/static/js/7060.fb665524.chunk.js +2 -0
  116. package/build/static/js/{4679.c9e2f109.chunk.js.map → 7060.fb665524.chunk.js.map} +1 -1
  117. package/build/static/js/711.415cb7fb.chunk.js +2 -0
  118. package/build/static/js/711.415cb7fb.chunk.js.map +1 -0
  119. package/build/static/js/7121.f3ee3cee.chunk.js +2 -0
  120. package/build/static/js/{7121.a3af662f.chunk.js.map → 7121.f3ee3cee.chunk.js.map} +1 -1
  121. package/build/static/js/{7227.ee737b01.chunk.js → 7227.2c2e4b0a.chunk.js} +3 -3
  122. package/build/static/js/{7227.ee737b01.chunk.js.map → 7227.2c2e4b0a.chunk.js.map} +1 -1
  123. package/build/static/js/7322.7509f0aa.chunk.js +2 -0
  124. package/build/static/js/{7322.dd5d9179.chunk.js.map → 7322.7509f0aa.chunk.js.map} +1 -1
  125. package/build/static/js/7617.69cfc4d5.chunk.js +2 -0
  126. package/build/static/js/{7617.e7bfe484.chunk.js.map → 7617.69cfc4d5.chunk.js.map} +1 -1
  127. package/build/static/js/{7967.22a1715b.chunk.js → 7967.30ff8aa4.chunk.js} +2 -2
  128. package/build/static/js/{7967.22a1715b.chunk.js.map → 7967.30ff8aa4.chunk.js.map} +1 -1
  129. package/build/static/js/{8017.59c87321.chunk.js → 8017.3b8a952e.chunk.js} +2 -2
  130. package/build/static/js/{8017.59c87321.chunk.js.map → 8017.3b8a952e.chunk.js.map} +1 -1
  131. package/build/static/js/{8151.d9ededc0.chunk.js → 8151.89ef39c6.chunk.js} +2 -2
  132. package/build/static/js/{8151.d9ededc0.chunk.js.map → 8151.89ef39c6.chunk.js.map} +1 -1
  133. package/build/static/js/{8332.b53aa4fb.chunk.js → 8332.c15fbb55.chunk.js} +2 -2
  134. package/build/static/js/{8332.b53aa4fb.chunk.js.map → 8332.c15fbb55.chunk.js.map} +1 -1
  135. package/build/static/js/{8725.6dc9ccd2.chunk.js → 8725.9088ee19.chunk.js} +2 -2
  136. package/build/static/js/{8725.6dc9ccd2.chunk.js.map → 8725.9088ee19.chunk.js.map} +1 -1
  137. package/build/static/js/{8869.c398a085.chunk.js → 8869.fd036258.chunk.js} +2 -2
  138. package/build/static/js/8869.fd036258.chunk.js.map +1 -0
  139. package/build/static/js/903.9e4ec4b4.chunk.js +1 -0
  140. package/build/static/js/9439.e8385e17.chunk.js +2 -0
  141. package/build/static/js/{1820.72fe029d.chunk.js.map → 9439.e8385e17.chunk.js.map} +1 -1
  142. package/build/static/js/{9968.e3128bbd.chunk.js → 9968.5896bb9d.chunk.js} +2 -2
  143. package/build/static/js/{9968.e3128bbd.chunk.js.map → 9968.5896bb9d.chunk.js.map} +1 -1
  144. package/build/static/js/main.43cf9c2c.js +2 -0
  145. package/build/static/js/main.43cf9c2c.js.map +1 -0
  146. package/package.json +1 -1
  147. package/build/static/css/1151.1f3022bf.chunk.css +0 -2
  148. package/build/static/css/1153.d61ce559.chunk.css +0 -2
  149. package/build/static/css/1554.9beb1662.chunk.css +0 -2
  150. package/build/static/css/2716.df120de0.chunk.css +0 -2
  151. package/build/static/css/4029.47986b1c.chunk.css +0 -2
  152. package/build/static/css/4029.47986b1c.chunk.css.map +0 -1
  153. package/build/static/css/4265.78c20ac7.chunk.css +0 -2
  154. package/build/static/css/4319.b931d4d9.chunk.css +0 -2
  155. package/build/static/css/4319.b931d4d9.chunk.css.map +0 -1
  156. package/build/static/css/4666.b0afc9b3.chunk.css +0 -2
  157. package/build/static/css/5443.e9f00bae.chunk.css +0 -2
  158. package/build/static/css/5600.dce4a944.chunk.css +0 -2
  159. package/build/static/css/5962.3802d3a9.chunk.css +0 -2
  160. package/build/static/css/6779.774ec289.chunk.css +0 -2
  161. package/build/static/css/7121.6d05bb7a.chunk.css +0 -2
  162. package/build/static/css/7227.d1a75756.chunk.css +0 -2
  163. package/build/static/css/8017.75cee043.chunk.css +0 -2
  164. package/build/static/css/8332.dd4512a6.chunk.css +0 -2
  165. package/build/static/css/9968.8466d826.chunk.css +0 -2
  166. package/build/static/js/1400.3a90f09a.chunk.js +0 -2
  167. package/build/static/js/1554.c1b883e9.chunk.js +0 -3
  168. package/build/static/js/1581.ebb0eb2e.chunk.js +0 -2
  169. package/build/static/js/1649.72034b16.chunk.js.map +0 -1
  170. package/build/static/js/1725.bc60f755.chunk.js +0 -2
  171. package/build/static/js/1820.72fe029d.chunk.js +0 -2
  172. package/build/static/js/2331.017c7318.chunk.js +0 -2
  173. package/build/static/js/2331.017c7318.chunk.js.map +0 -1
  174. package/build/static/js/2363.6518a4d7.chunk.js.map +0 -1
  175. package/build/static/js/2503.809ea331.chunk.js +0 -2
  176. package/build/static/js/2517.29bae06f.chunk.js +0 -2
  177. package/build/static/js/2716.ca598c07.chunk.js +0 -3
  178. package/build/static/js/2730.87112030.chunk.js +0 -2
  179. package/build/static/js/2814.fe35bfd4.chunk.js +0 -2
  180. package/build/static/js/2970.326287df.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.df9cff6b.chunk.js +0 -2
  185. package/build/static/js/3962.3e44db16.chunk.js +0 -2
  186. package/build/static/js/3962.3e44db16.chunk.js.map +0 -1
  187. package/build/static/js/4029.17e3d325.chunk.js +0 -2
  188. package/build/static/js/4029.17e3d325.chunk.js.map +0 -1
  189. package/build/static/js/4106.e972d67d.chunk.js +0 -2
  190. package/build/static/js/4106.e972d67d.chunk.js.map +0 -1
  191. package/build/static/js/4265.7b9b7816.chunk.js +0 -2
  192. package/build/static/js/4319.a8504fc9.chunk.js +0 -2
  193. package/build/static/js/4319.a8504fc9.chunk.js.map +0 -1
  194. package/build/static/js/4679.c9e2f109.chunk.js +0 -2
  195. package/build/static/js/4712.b3ce8808.chunk.js +0 -2
  196. package/build/static/js/4941.ae76674b.chunk.js +0 -2
  197. package/build/static/js/4941.ae76674b.chunk.js.map +0 -1
  198. package/build/static/js/5443.1ca71be9.chunk.js +0 -2
  199. package/build/static/js/556.9e43bff7.chunk.js +0 -2
  200. package/build/static/js/5600.71a7974a.chunk.js +0 -2
  201. package/build/static/js/5786.4a032c0e.chunk.js +0 -2
  202. package/build/static/js/589.89f94e63.chunk.js +0 -2
  203. package/build/static/js/589.89f94e63.chunk.js.map +0 -1
  204. package/build/static/js/5962.38d7efac.chunk.js +0 -2
  205. package/build/static/js/628.4d54b21d.chunk.js +0 -2
  206. package/build/static/js/6611.c167c7bf.chunk.js +0 -2
  207. package/build/static/js/6779.88dcd9ea.chunk.js +0 -2
  208. package/build/static/js/6908.e4e20932.chunk.js +0 -3
  209. package/build/static/js/6908.e4e20932.chunk.js.map +0 -1
  210. package/build/static/js/7060.2de08549.chunk.js +0 -2
  211. package/build/static/js/7060.2de08549.chunk.js.map +0 -1
  212. package/build/static/js/711.ba01d9fb.chunk.js +0 -2
  213. package/build/static/js/711.ba01d9fb.chunk.js.map +0 -1
  214. package/build/static/js/7121.a3af662f.chunk.js +0 -2
  215. package/build/static/js/7322.dd5d9179.chunk.js +0 -2
  216. package/build/static/js/7617.e7bfe484.chunk.js +0 -2
  217. package/build/static/js/8175.61ab1d7e.chunk.js +0 -2
  218. package/build/static/js/8175.61ab1d7e.chunk.js.map +0 -1
  219. package/build/static/js/8247.aaa4ad4e.chunk.js +0 -2
  220. package/build/static/js/8247.aaa4ad4e.chunk.js.map +0 -1
  221. package/build/static/js/8869.c398a085.chunk.js.map +0 -1
  222. package/build/static/js/9019.b8dab87c.chunk.js +0 -2
  223. package/build/static/js/9019.b8dab87c.chunk.js.map +0 -1
  224. package/build/static/js/903.c384d9b6.chunk.js +0 -1
  225. package/build/static/js/9439.51dd3ec1.chunk.js +0 -2
  226. package/build/static/js/9439.51dd3ec1.chunk.js.map +0 -1
  227. package/build/static/js/9998.c5890abc.chunk.js +0 -2
  228. package/build/static/js/9998.c5890abc.chunk.js.map +0 -1
  229. package/build/static/js/main.71fd6553.js +0 -2
  230. package/build/static/js/main.71fd6553.js.map +0 -1
  231. /package/build/static/js/{1153.434d4de1.chunk.js.LICENSE.txt → 1153.7c4988b3.chunk.js.LICENSE.txt} +0 -0
  232. /package/build/static/js/{1554.c1b883e9.chunk.js.LICENSE.txt → 1554.5bf39091.chunk.js.LICENSE.txt} +0 -0
  233. /package/build/static/js/{2716.ca598c07.chunk.js.LICENSE.txt → 2716.a0cf3954.chunk.js.LICENSE.txt} +0 -0
  234. /package/build/static/js/{4666.0b3f925c.chunk.js.LICENSE.txt → 4666.95520e3e.chunk.js.LICENSE.txt} +0 -0
  235. /package/build/static/js/{6908.e4e20932.chunk.js.LICENSE.txt → 6908.b9d9e979.chunk.js.LICENSE.txt} +0 -0
  236. /package/build/static/js/{7227.ee737b01.chunk.js.LICENSE.txt → 7227.2c2e4b0a.chunk.js.LICENSE.txt} +0 -0
@@ -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,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,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 +0,0 @@
1
- {"version":3,"file":"static/js/4941.ae76674b.chunk.js","mappings":"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","sources":["../node_modules/simplebar-react/dist/index.mjs"],"sourcesContent":["/**\n * simplebar-react - v3.2.6\n * React component for SimpleBar\n * https://grsmto.github.io/simplebar/\n *\n * Made by Adrien Denat\n * Under MIT License\n */\n\nimport * as React from 'react';\nimport SimpleBarCore from 'simplebar-core';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nvar SimpleBar = React.forwardRef(function (_a, ref) {\n var children = _a.children, _b = _a.scrollableNodeProps, scrollableNodeProps = _b === void 0 ? {} : _b, otherProps = __rest(_a, [\"children\", \"scrollableNodeProps\"]);\n var elRef = React.useRef();\n var scrollableNodeRef = React.useRef();\n var contentNodeRef = React.useRef();\n var options = {};\n var rest = {};\n Object.keys(otherProps).forEach(function (key) {\n if (Object.prototype.hasOwnProperty.call(SimpleBarCore.defaultOptions, key)) {\n options[key] = otherProps[key];\n }\n else {\n rest[key] = otherProps[key];\n }\n });\n var classNames = __assign(__assign({}, SimpleBarCore.defaultOptions.classNames), options.classNames);\n var scrollableNodeFullProps = __assign(__assign({}, scrollableNodeProps), { className: \"\".concat(classNames.contentWrapper).concat(scrollableNodeProps.className ? \" \".concat(scrollableNodeProps.className) : ''), tabIndex: options.tabIndex || SimpleBarCore.defaultOptions.tabIndex, role: 'region', 'aria-label': options.ariaLabel || SimpleBarCore.defaultOptions.ariaLabel });\n React.useEffect(function () {\n var instance;\n scrollableNodeRef.current = scrollableNodeFullProps.ref\n ? scrollableNodeFullProps.ref.current\n : scrollableNodeRef.current;\n if (elRef.current) {\n instance = new SimpleBarCore(elRef.current, __assign(__assign(__assign({}, options), (scrollableNodeRef.current && {\n scrollableNode: scrollableNodeRef.current\n })), (contentNodeRef.current && {\n contentNode: contentNodeRef.current\n })));\n if (typeof ref === 'function') {\n ref(instance);\n }\n else if (ref) {\n ref.current = instance;\n }\n }\n return function () {\n instance === null || instance === void 0 ? void 0 : instance.unMount();\n instance = null;\n if (typeof ref === 'function') {\n ref(null);\n }\n };\n }, []);\n return (React.createElement(\"div\", __assign({ \"data-simplebar\": \"init\", ref: elRef }, rest),\n React.createElement(\"div\", { className: classNames.wrapper },\n React.createElement(\"div\", { className: classNames.heightAutoObserverWrapperEl },\n React.createElement(\"div\", { className: classNames.heightAutoObserverEl })),\n React.createElement(\"div\", { className: classNames.mask },\n React.createElement(\"div\", { className: classNames.offset }, typeof children === 'function' ? (children({\n scrollableNodeRef: scrollableNodeRef,\n scrollableNodeProps: __assign(__assign({}, scrollableNodeFullProps), { ref: scrollableNodeRef }),\n contentNodeRef: contentNodeRef,\n contentNodeProps: {\n className: classNames.contentEl,\n ref: contentNodeRef\n }\n })) : (React.createElement(\"div\", __assign({}, scrollableNodeFullProps),\n React.createElement(\"div\", { className: classNames.contentEl }, children))))),\n React.createElement(\"div\", { className: classNames.placeholder })),\n React.createElement(\"div\", { className: \"\".concat(classNames.track, \" simplebar-horizontal\") },\n React.createElement(\"div\", { className: classNames.scrollbar })),\n React.createElement(\"div\", { className: \"\".concat(classNames.track, \" simplebar-vertical\") },\n React.createElement(\"div\", { className: classNames.scrollbar }))));\n});\nSimpleBar.displayName = 'SimpleBar';\n\nexport { SimpleBar as default };\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","SimpleBar","React","_a","ref","children","_b","scrollableNodeProps","otherProps","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__rest","elRef","scrollableNodeRef","contentNodeRef","options","rest","keys","forEach","key","SimpleBarCore","defaultOptions","classNames","scrollableNodeFullProps","className","concat","contentWrapper","tabIndex","role","ariaLabel","instance","current","scrollableNode","contentNode","unMount","wrapper","heightAutoObserverWrapperEl","heightAutoObserverEl","mask","offset","contentNodeProps","contentEl","placeholder","track","scrollbar","displayName"],"sourceRoot":""}
@@ -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),l=n(96418),o=n.n(l),c=n(83136),a=n.n(c);const i={scroller:"style_scroller__EfuqR__8lUc4","scroller-inner":"style_scroller-inner__NJSE0__8lUc4","is-moving":"style_is-moving__jGuy0__8lUc4"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...l}=e;const o=(0,s.useRef)(0),[c,d]=(0,s.useState)(!1),m=(0,s.useRef)(c);m.current=c;const h=(0,s.useRef)(t);h.current=t;const g=(0,s.useRef)(1);return g.current=l.width/l.innerWidth,(0,s.useEffect)((()=>{const e=e=>{m.current&&h.current(g.current*(e.clientX-o.current)),o.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)(l.hasScroller?(0,u.jsx)("div",{className:i.scroller,style:{left:l.left,width:l.width,height:15},children:(0,u.jsx)("div",{className:a()(i["scroller-inner"],{[i["is-moving"]]:c}),style:{width:l.innerWidth,left:l.innerLeft},onMouseDown:e=>{e.preventDefault(),o.current=e.clientX,d(!0)}})}):null,n()||document.body)},m=e=>{let{className:t,scroller:n,getScrollTarget:r,children:l}=e;const[c,m]=(0,s.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),h=(0,s.useRef)(null),g=o()((()=>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:l}=t.getBoundingClientRect(),o=t.offsetHeight-t.clientHeight||15,c=r*t.clientWidth/t.scrollWidth-6,a=t.scrollLeft*t.clientWidth/t.scrollWidth+2,i=e.getBoundingClientRect();m((u=>Object.assign({},u,{left:n,width:r,innerLeft:a,innerWidth:c,height:o,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+l-e.offsetHeight>0&&s<e.offsetHeight:s<i.top+i.height&&s+l>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:a()(i["scroller-outer"],t),ref:h,style:{"--scroller-bar-height":null!==c&&void 0!==c&&c.hasScroller?"15px":"0px"},children:[l,(0,u.jsx)(d,{...c,getContainer:p.current,onScroll:e=>{g().scrollLeft+=e}})]}):l};m.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const h=m},63361:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_,useFeatureCall:()=>x});var r=n(73884),s=n(63908),l=n(33097),o=n.n(l),c=n(15797),a=n.n(c),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=a()((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&&o()(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,x=e=>{const{features:t,profile:n,profileMap:l,debug:c}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=o()(e,"features",{debug:!1,profile:{}});return Object.assign({},h(t),{debug:n})})(),a="system"===n.type?n.id:"root",i=(0,r.useContext)(p),u=i?i+":"+e:a+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&c&&console.log(`[featureId] ${u},[state] ${g(u,{features:t,profileMap:l})}`,l.get(u))}),[t,l,c,u]),{isPass:!(e&&t&&t.length>0)||g(u,{features:t,profileMap:l}),currentId:u,feature:l.get(u)}},_=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:l}=x(t);return(0,d.jsx)(f,{value:l,children:"function"===typeof n?n({isPass:r,options:r?o()(s,"options"):o()(s,"rejectedOptions"),currentId:l}):r&&n})}},27777:(e,t,n)=>{n.r(t),n.d(t,{Table:()=>F,default:()=>W});var r=n(55199),s=n(73884),l=n(96418),o=n.n(l),c=n(87558),a=n.n(c),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),x=n(56641),_=n.n(x),y=n(51941);const C={"loading-container":"style_loading-container__tATe2__8lUc4","width-changer":"style_width-changer__2ZxQE__8lUc4","table-changer-setting":"style_table-changer-setting__vHBi5__8lUc4","width-changer-sign":"style_width-changer-sign__JpI-0__8lUc4","columns-control":"style_columns-control__Yt34Y__8lUc4","columns-control-content":"style_columns-control-content__1wnZG__8lUc4","columns-control-content-title":"style_columns-control-content-title__MsQpI__8lUc4","columns-control-content-scroller":"style_columns-control-content-scroller__VEy4q__8lUc4","columns-control-content-footer":"style_columns-control-content-footer__rvk74__8lUc4","columns-control-content-input":"style_columns-control-content-input__fYYyr__8lUc4","columns-control-content-list":"style_columns-control-content-list__wepM4__8lUc4","columns-control-content-item":"style_columns-control-content-item__1cPXT__8lUc4","is-drag":"style_is-drag__HRe9m__8lUc4","columns-control-content-item-icon":"style_columns-control-content-item-icon__oku-X__8lUc4","sortable-drag":"style_sortable-drag__N6+aC__8lUc4","sortable-ghost":"style_sortable-ghost__EbwXI__8lUc4","columns-control-overlay":"style_columns-control-overlay__QYEXZ__8lUc4"};var j=n(63908),b=n(70579);const v=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&&v(e.parentElement),w=e=>{let{columns:t,setData:n,name:r,initColumnsData:l}=e;const a=(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,y.useDebouncedCallback)((()=>{(0,c.getCache)().delByCacheName(`TABLE_CONFIG_${i.current}`),h&&h.setDataFunc&&(h.setDataFunc(i.current,O),n(O))}),1e3),[p,x]=(0,s.useState)(!1),w=(0,s.useRef)(!1),A=(0,s.useRef)({index:-1,width:0}),[S,I]=(0,s.useState)({}),E=(0,s.useRef)(0),k=(0,s.useCallback)((()=>l&&l.length>0&&t.length===l.length&&_()(t,l,((e,t)=>e.key===t.id))?l.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})))),[l,t]);(0,s.useEffect)((()=>{L(k())}),[k]);const[O,L]=(0,s.useState)(k),N=o()((e=>{L(e),g()})),R=(0,s.useRef)(O),M=(0,s.useRef)(O);R.current=M.current=O;const P=o()((()=>{const e=t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})));M.current=e,N(e)}));return(0,s.useEffect)((()=>{if(!a.current)return;const e=e=>{const t=e.target;w.current||t.classList.contains("changer-sign")||v(t)||x(!1)},t=()=>{document.body.style.cursor="unset",w.current=!1,A.current={index:-1,width:0},x(!1)};return a.current.addEventListener("mousemove",(e=>{const t=v(e.target)||e.target,{left:n,top:r}=a.current.getBoundingClientRect(),{left:s,width:l,height:o}=t.getBoundingClientRect(),c=a.current.querySelector(".ant-table-thead"),i=c.getBoundingClientRect().top,u=Array.from(c.querySelectorAll("th")),d=Array.from(c.querySelectorAll("th:not(.ant-table-selection-column)"));if(!w.current&&v(t)&&0<e.pageX-s+8&&(A.current={index:d.indexOf(t),locationIndex:u.indexOf(t),width:l,left:s,height:o},I({left:s-n+l-8,top:i-r,height:o}),x(!0)),!w.current&&v(t)&&0>e.pageX-s+8&&x(!1),w.current&&A.current.index>-1){const t=e.pageX-E.current,n=(a.current.querySelector(".ant-table-body")||a.current.querySelector(".ant-table-content")).scrollLeft,s=Math.max(t+A.current.width,100);I({left:Math.max(f()(u.slice(0,A.current.locationIndex).map((e=>e.clientWidth)))-n,0)+s-8,top:i-r,height:A.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=A.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)}}),[P,N]),{ref:a,sign:p&&(0,b.jsx)("div",{className:u()(C["width-changer-sign"],"changer-sign"),style:{top:S.top,left:S.left,height:S.height},onMouseDown:e=>{e.preventDefault(),w.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:M.current,columnMap:m.current,setColumns:e=>{M.current=e},onConfirm:()=>{N(M.current)},onCancel:()=>{M.current=R.current},onReset:()=>{P()}}},A=e=>{const t=(0,c.withFetch)(e);return n=>{const{name:r,controllerOpen:s}=n,{tablePageServerApis:l}=(0,j.usePreset)();return s&&r&&l&&l.getDataApi?(0,b.jsx)(t,{...n,...l.getDataApi(r),cache:`TABLE_CONFIG_${r}`,isLocal:!0,ttl:5e3,error:(0,b.jsx)(e,{...n})}):(0,b.jsx)(e,{...n})}};var S=n(74529);const I=n.n(S)()(A,(e=>t=>{let{name:n,controllerOpen:r,columns:s,data:l,setData:o,...c}=t;const{ref:a,targetColumns:i,sign:d}=w({columns:s,name:n,initColumnsData:l,setData:o});return r?(0,b.jsxs)("div",{className:u()(C["width-changer"],"table-page-columns-width-changer"),ref:a,children:[(0,b.jsx)(e,{...c,name:n,controllerOpen:r,originColumns:s,tableColumnFetchApi:{data:l,setData:o},columns:i}),d]}):(0,b.jsx)(e,{columns:s,controllerOpen:r,originColumns:s,name:n,...c})}));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),M=n(81014),P=n(36),U=n(76441);const{Panel:z}=r.Collapse,D=e=>{let{close:t,onCancel:n,onConfirm:l,onReset:o,columns:c,setColumns:a}=e;const[i,d]=(0,s.useState)(c),[m,h]=(0,s.useState)(""),{leftFixedColumns:g,rightFixedColumns:p,visibleColumns:f,hiddenColumns:x}=(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]),_=e=>{d(e),a(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)(M.default,{type:"text",icon:(0,b.jsx)(R.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{o&&await o(),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)(z,{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)(U.ReactSortable,{list:f,filter:".ignore-elements",dragClass:C["sortable-drag"],ghostClass:C["sortable-ghost"],forceFallback:!0,setList:e=>{_([...g,...e,...x,...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}),_(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)(z,{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)(P.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:x.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}),_(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)(M.default,{type:"primary",size:"small",onClick:async()=>{l&&await l(),t()},children:"\u786e\u5b9a"})})]})]})},T=e=>{let{columns:t,name:n,data:l,setData:o,...c}=e;const[a,i]=(0,s.useState)(!1),{popupColumns:u,columnMap:d,setColumns:h,onConfirm:g,onCancel:p,onReset:f}=w({columns:t,name:n,initColumnsData:l,setData:o});return(0,b.jsx)(r.Popover,{...c,open:a,overlayClassName:C["columns-control-overlay"],trigger:"click",autoAdjustOverflow:!1,placement:"bottomRight",content:(0,b.jsx)(D,{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"})})})},F=I((e=>{let{className:t,columns:n,originColumns:s,controllerOpen:l,tableColumnFetchApi:o,name:c,scroller:a,featureId:i,...d}=e;const{data:g,setData:p}=o||{},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:a,getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:f({children:n=>{let{options:o}=n;const a=e.filter((e=>!e.key||(!Array.isArray(m()(o,"hiddenColumns"))||-1===o.hiddenColumns.indexOf(e.key))));return(0,b.jsx)(r.Table,{...d,columns:!1===l?a:a.map(((e,t)=>a.length-1===t?{...e,title:()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{children:e.title}),(0,b.jsx)(T,{data:g,columns:s,setData:p,name:c})]})}:e)),className:u()(t,"table-page")})}})}))(n)})),B=(0,c.withFetch)((e=>{let{data:t,refresh:n,reload:r,requestParams:l,fetchProps:c,isComplete:i,setData:d,loadMore:h,send:g,dataFormat:p,pagination:f,scroller:x,getColumns:_,getColumnsParams:y,className:j,columns:v,featureId:w,stickyOffset:A,...S}=e;const I=o()(p),E=o()(_),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()(l,[f.paramsType,f.current],1),pageSize:f.defaultPageSize,onChange:f.onChange?f.onChange:(e,t)=>{e!==m()(l,[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":A}};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 _||v?(0,b.jsx)(F,{...S,...N,columns:v,scroller:x,featureId:w}):(0,b.jsx)(a(),{data:t,params:y,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)(F,{...S,...N,columns:t,scroller:x,featureId:w})}})})})})),q=(0,s.forwardRef)(((e,t)=>{let{pagination:n,...r}=e;const[l,o]=(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 c=(0,s.useMemo)((()=>{const e={};return r.params&&Object.keys(r.params).length>0&&(e.params={...r.params,[n.pageSize]:l}),r.data&&Object.keys(r.data).length>0&&(e.data={...r.data,[n.pageSize]:l}),e}),[r.params,r.data,n.pageSize,l]);return(0,b.jsx)(B,{...r,pagination:Object.assign({},{defaultPageSize:l,onShowSizeChange:(e,t)=>{o(t)}},n),...c,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.1ca71be9.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 l=t(8762),n=t.n(l);t(46733);const s=n()},58407:(e,o,t)=>{t.r(o),t.d(o,{ConfirmLink:()=>g,ConfirmText:()=>y,default:()=>C,withConfirm:()=>f});t(73884);var l=t(55199);const n=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__8lUc4",m="style_is-danger__gxyAB__8lUc4",h="style_title__EEPu2__8lUc4",_="style_content__mZZg5__8lUc4",p="style_has-title__5+PEt__8lUc4";var u=t(70579);const f=e=>{const o=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:n})((o=>{let{title:t,message:n,isDelete:r=!0,onClick:f,onCancel:g,disabled:y,showCancel:C,cancelText:x,isModal:b,okText:j,placement:w,getContainer:N,...k}=o;const{formatMessage:v}=(0,i.useIntl)({moduleName:"ConfirmButton"}),P=(0,a.useConfirmModal)();return b?(0,u.jsx)(e,{...k,disabled:y,onClick:e=>{P({type:"confirm",title:t,getContainer:N,danger:r,confirmType:r?"warning":"info",message:n||v({id:"message"}),okText:j||v(r?{id:"delete"}:{id:"confirm"}),cancelText:x||v({id:"cancel"}),onCancel:g,onOk:f})}}):(0,u.jsx)(l.Popconfirm,{title:(0,u.jsxs)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(l.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)(l.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,n||v({id:"message"})]})]}),placement:w,onConfirm:f,okButtonProps:{danger:r},onCancel:g,overlayClassName:c()(d,{[m]:r}),getPopupContainer:N,disabled:y,showCancel:C,cancelText:x,okText:j||v(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...k,disabled:y})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},g=f(l.Typography.Link),y=f(l.Typography.Text),C=f(l.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>T,TabsModal:()=>U,TabsModalButton:()=>B,default:()=>v,useConfirmModal:()=>k,useModal:()=>N,useTabsModal:()=>S});var l=t(73884),n=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__8lUc4",large:"style_large__iaqVE__8lUc4","modal-body-inner":"style_modal-body-inner__4PhpA__8lUc4","modal-title":"style_modal-title__dswaw__8lUc4","modal-outer":"style_modal-outer__r3SkX__8lUc4","modal-body":"style_modal-body__jQJSI__8lUc4","right-options-modal":"style_right-options-modal__FajDP__8lUc4","right-options-row":"style_right-options-row__-mPb9__8lUc4","right-options-col":"style_right-options-col__3ilee__8lUc4","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__8lUc4",content:"style_content__k6MIF__8lUc4","modal-footer":"style_modal-footer__-prbN__8lUc4","modal-close":"style_modal-close__Oa5Kl__8lUc4","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__8lUc4","is-danger":"style_is-danger__H5110__8lUc4",title:"style_title__orTym__8lUc4","has-title":"style_has-title__qy0Wp__8lUc4"},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:l}=e;return o?(0,p.jsxs)(n.Row,{wrap:!1,className:a["right-options-row"],children:[(0,p.jsx)(n.Col,{span:24-t,className:a["right-options-col"],children:l}),(0,p.jsx)(n.Col,{span:t,className:a["right-options-col"],children:o})]}):l},g=(e,o)=>e-48-(o?58:0)+"px",y=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":g(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,o)}}:{width:"1000px",style:{"--min-modal-height":g(500,o)}},C=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,p.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(n.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,p.jsx)(n.Col,{children:(0,p.jsx)(n.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:n,autoClose:s=!0,display:i,...r}=e;const c=t||h.default;return(0,l.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(n&&n(...o,d));return s&&!1!==l&&a&&a(),l}})}))})})]})},x=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:g}=e;const y=(0,l.useRef)(null);return(0,p.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,p.jsx)(n.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:y,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:g})}):null]})},b=e=>{let{withDecorator:o,footerButtons:t,title:l,closable:n,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,rightSpan:d,disabledScroller:h,childrenRef:_,children:u}=e;const g=e=>(e=Object.assign({},{title:l},e),(0,p.jsx)(x,{title:m(e.title,{...e,childrenRef:_,close:s}),closable:n,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(g):g({})},j=e=>{let{children:o,rightOptions:t,rightSpan:l,footer:n,footerButtons:s,className:d,size:m,title:h,onClose:_,onConfirm:u,onCancel:f,closable:g,disabledScroller:C,withDecorator:x,childrenRef:j,...w}=e;return{...w,icon:null,centered:!0,title:null,maskClosable:!!w.hasOwnProperty("maskClosable")&&w.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:_,className:i()(d,a.modal,a[m],{[a["right-options-modal"]]:t}),...y(m,!(null===n&&!s)),children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:b({withDecorator:x,title:h,closable:g,onClose:_,onConfirm:u,onCancel:f,footer:n,footerButtons:s,rightOptions:t,rightSpan:l,disabledScroller:C,children:o,childrenRef:j})})}},w=e=>{const o=(0,l.useRef)(null);return(0,p.jsx)(n.Modal,{...j(Object.assign({},e,{childrenRef:o}))})};w.defaultProps={size:"default"};const N=()=>{const{modal:e}=n.App.useApp(),o=(0,l.useRef)(null);return t=>{const l={},{children:n,...s}=j({onClose:()=>l.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:n});return l.close=i,l}},k=()=>{const{modal:e}=n.App.useApp();return o=>{const t={},{type:l,icon:s,title:r,danger:c,wrapClassName:m,message:h,iconSetting:_={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},_);if(e[l]){const{destroy:o}=e[l]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,p.jsx)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,p.jsxs)(n.Space,{size:0,align:"start",className:a.title,children:[c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||g["confirm"===l?u:l]}):null,r]})}),content:(0,p.jsxs)(n.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"===l?u:l}`),type:s||g["confirm"===l?u:l]}):null,h]})});t.close=o}return t}},v=w,P=e=>{let{items:o,className:t,activeKey:l,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,p.jsx)(n.Tabs,{items:o.map((o=>{let{withDecorator:l,...n}=o;return Object.assign({},n,{children:"function"===typeof l?l((o=>e(Object.assign({},t,o,{children:n.children})))):e(Object.assign({},t,{children:n.children}))})})),destroyInactiveTabPane:!0,activeKey:l,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},U=e=>(0,p.jsx)(v,{...P(e)}),S=()=>{const e=N();return o=>e(P(o))};var M=t(73025);const B=e=>{const o=S();return e.api?(0,p.jsx)(M.A,{...e,modalFunc:o}):(0,p.jsx)(n.Button,{...e,onClick:()=>{o(e.modalProps)}})},T=e=>{const o=N();if(!e.api){const{modalProps:t,...l}=e;return(0,p.jsx)(n.Button,{...l,onClick:()=>{o(t)}})}return(0,p.jsx)(M.A,{...e,modalFunc:o})}},46733:()=>{}}]);
2
- //# sourceMappingURL=5600.71a7974a.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:()=>ae,Title:()=>E,UploadButton:()=>X,UploadTips:()=>J,default:()=>se});var l=s(73884),i=s(33097),n=s.n(i),a=s(55199);const r="style_file-list-outer__wPhbb__8lUc4",o="style_file-list-title__zXM5r__8lUc4",c="style_container__P4RaF__8lUc4",d="style_file-preview-inner__cvE72__8lUc4",u="style_file-preview__M-Asq__8lUc4",p="style_drag-area__Q+lm7__8lUc4",m="style_upload-drag-close__u5o8W__8lUc4",x="style_upload-drag-tips__z7puZ__8lUc4",g="style_upload-drag-icon__sGGoS__8lUc4",f="style_upload-drag-title__9Afmb__8lUc4",_="style_upload-drag-text__o38vS__8lUc4",h="style_title-group__8IJkS__8lUc4",v="style_upload-btn__Q+Jxn__8lUc4",j="style_total-count__z1fyd__8lUc4",y="style_file-select__mHqyI__8lUc4",S="style_file-name__QkvMn__8lUc4",N="style_file-select-info__fOLiM__8lUc4",F="style_file-select-option__AbDrD__8lUc4";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 D=e=>{let{currentTab:t,setCurrentTab:s,previewMap:l,previewList:i,getPermission:n,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:p,getPopupContainer:m}=e;return(0,I.jsx)("div",{className:o,children:(0,I.jsxs)(a.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,I.jsx)(a.Col,{children:(0,I.jsxs)(a.Space,{className:h,size:4,children:[(0,I.jsx)(a.Segmented,{value:t,onChange:s,options:[{label:(0,I.jsxs)(a.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)(a.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&&l.get(r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(a.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:i.map((e=>{let{filename:t,userName:s,date:l,ossId:i}=e;return(0,I.jsx)(a.Select.Option,{className:F,value:i,children:(0,I.jsxs)(a.Space,{direction:"vertical",children:[(0,I.jsxs)(a.Space,{size:4,align:"start",children:[(0,I.jsx)(P(),{type:C()(t.split(".")),size:14}),(0,I.jsx)(a.Typography.Text,{className:S,ellipsis:!0,style:{"--max-width":`${p}px`},children:t})]}),s||l?(0,I.jsxs)(a.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"}),":",l&&U()(l).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},i)}))}),(0,I.jsx)(T.OptionButtons,{hasPreview:!1,getPermission:n,item:l.get(r),apis:d}),(0,I.jsx)("div",{className:j,children:(0,I.jsx)(z.FormattedMessage,{id:"totalCount",values:{count:i.length},moduleName:"FileList"})})]})]})}),(0,I.jsx)(a.Col,{children:u})]})})};D.defaultProps={maxWidth:260};const E=D,A=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var O=s(70720),k=s.n(O),B=s(83136),R=s.n(B);const G=(0,l.createContext)({}),{Provider:W}=G,Y=()=>(0,l.useContext)(G);var H=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:l}=Y();return(0,I.jsx)("div",{ref:l,className:v,onClick:()=>{s((e=>!e))},children:(0,I.jsxs)(a.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:l}=Y();return(0,I.jsxs)(H.AG,{className:v,accept:s,multiple:!0,onChange:l,children:[(0,I.jsx)(M.default,{type:"icon-tianjia"}),t]})},q=e=>{let{title:t,accept:s,fileSize:i,maxLength:n,onFileSelected:o,children:d,className:u}=e;const[p,m]=(0,l.useState)(!1),x=(0,l.useRef)(null),g=k()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||m(!1))}));return(0,I.jsx)(z.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,I.jsx)(W,{value:{open:p,onOpenChange:m,accept:s,fileSize:i,maxLength:n,onFileSelected:o,getDragButtonEl:e=>{x.current=e}},children:(0,I.jsxs)(a.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:l}=e;const{accept:i,fileSize:n,maxLength:a}=Y(),r=l((0,z.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:i.map((e=>e.replace(/^\./,""))).join("\u3001"),size:n}),{fileSize:n,maxLength:a,accept:i});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:l,accept:i,onOpenChange:n,onFileSelected:r}=Y();return l?(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;n(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,i)));r(t)},onDragEnd:()=>{n(!1)},children:[(0,I.jsx)(a.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,I.jsx)(M.default,{type:"icon-close-bold"}),onClick:()=>{n(!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:i,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:i,onChange:r,concurrentCount:1,onAdd:()=>{N("list")},onSave:v.onSave,ossUpload:v.ossUpload}),[S,N]=(0,l.useState)(o),{formatMessage:F}=(0,z.useIntl)({moduleName:"FileList"}),{message:L}=a.App.useApp(),P=(0,l.useMemo)((()=>new Map(i.map((e=>[e.ossId,e])))),[i]),[w,C]=(0,l.useState)(c||n()(i,"[0].ossId",null));(0,l.useEffect)((()=>{w&&P.get(w)||C(n()(i,"[0].ossId",null))}),[i,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),l=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return l>-1&&s.splice(l,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 l=e.slice(0),i=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return i>-1&&l.splice(i,1,Object.assign({},s,{filename:t.name})),l})),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)(E,{currentTab:S,setCurrentTab:N,previewMap:P,previewList:i,getPermission:m,currentPreviewFileId:w,setCurrentPreviewFileId:C,itemApis:b,getPopupContainer:_,children:(0,I.jsxs)(a.Space,{split:(0,I.jsx)(a.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,...i],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)(a.Empty,{image:a.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:A,moduleName:"FileList",children:(0,I.jsx)(te,{...e})});var le=s(10986),ie=s.n(le);const ne=e=>{let{maxLength:t,apis:s,getPermission:l,fileSize:i,accept:n,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,u]=ie()(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)(a.Row,{children:[(0,I.jsx)(a.Col,{flex:1}),(0,I.jsx)(a.Col,{children:(0,I.jsxs)(a.Space,{split:(0,I.jsx)(a.Divider,{type:"vertical"}),children:[(0,I.jsx)(V,{}),(0,I.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:i,maxLength:t,onFileSelected:m,accept:n,children:[(0,I.jsx)(T.List,{dataSource:[...p,...d],getPermission:l,apis:c}),(0,I.jsx)($,{})]})};ne.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const ae=ne},94710:e=>{e.exports=function(e,t,s,l){for(var i=-1,n=null==e?0:e.length;++i<n;){var a=e[i];t(l,a,s(a),e)}return l}},32952:(e,t,s)=>{var l=s(45652);e.exports=function(e,t,s,i){return l(e,(function(e,l,n){t(i,e,s(e),n)})),i}},45652:(e,t,s)=>{var l=s(94664),i=s(76516)(l);e.exports=i},99910:e=>{e.exports=function(e,t){for(var s,l=-1,i=e.length;++l<i;){var n=t(e[l]);void 0!==n&&(s=void 0===s?n:s+n)}return s}},19449:(e,t,s)=>{var l=s(94710),i=s(32952),n=s(9096),a=s(54052);e.exports=function(e,t){return function(s,r){var o=a(s)?l:i,c=t?t():{};return o(s,e,n(r,2),c)}}},76516:(e,t,s)=>{var l=s(6571);e.exports=function(e,t){return function(s,i){if(null==s)return s;if(!l(s))return e(s,i);for(var n=s.length,a=t?n:-1,r=Object(s);(t?a--:++a<n)&&!1!==i(r[a],a,r););return s}}},26304:(e,t,s)=>{var l=s(53871),i=s(99140);e.exports=function(e,t,s){var n=null==e?0:e.length;return n?(t=s||void 0===t?1:i(t),l(e,0,(t=n-t)<0?0:t)):[]}},39835:(e,t,s)=>{var l=s(71775),i=s(19449),n=Object.prototype.hasOwnProperty,a=i((function(e,t,s){n.call(e,s)?e[s].push(t):l(e,s,[t])}));e.exports=a},56641:(e,t,s)=>{var l=s(26989);e.exports=function(e,t,s){var i=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===i?l(e,t,void 0,s):!!i}},60262:(e,t,s)=>{var l=s(99910),i=s(33279);e.exports=function(e){return e&&e.length?l(e,i):0}},99140:(e,t,s)=>{var l=s(37303);e.exports=function(e){var t=l(e),s=t%1;return t===t?s?t-s:t:0}},55664:()=>{},17448:()=>{},71975:()=>{}}]);
2
- //# sourceMappingURL=5962.38d7efac.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__8lUc4","all-no-start-icon":"style_all-no-start-icon__CA+zR__8lUc4","no-start-icon":"style_no-start-icon__LnC1S__8lUc4","has-children":"style_has-children__m9tce__8lUc4","has-children-node":"style_has-children-node__2bhEB__8lUc4","is-root":"style_is-root__4hhOc__8lUc4",title:"style_title__+Hcar__8lUc4",active:"style_active__WU49K__8lUc4","no-collapse":"style_no-collapse__aIZBM__8lUc4","title-content":"style_title-content__cQXpK__8lUc4",loading:"style_loading__1pU4P__8lUc4"};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),_=t.n(u),y=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:_,isOpen:g,isSelected:f,onOpenChange:K,children:O,fetchOptions:v,depth:C,onLoad:j,allowCollapsed:k}=e,b=Array.isArray(O)&&O.length>0||v,{refresh:x,isLoading:N}=(0,y.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"]]:b,[n["no-collapse"]]:b&&!k,[n["no-start-icon"]]:!d,[n["is-root"]]:0===C}),onClick:n=>{n.stopPropagation(),b||!h?b||v?k&&(v&&x({}),K(!g)):null===_||void 0===_||_(t,e):s(h)},children:[d&&(0,m.jsx)(p.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),b&&k&&(0,m.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),b?!k||g&&O?(0,m.jsx)("div",{className:n["children-list"],children:O}):!k||g&&N?(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"}),[y,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}})(y);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}}),[y]);(0,h.useEffect)((()=>{const e=v.find((e=>{let{path:s}=e;return"function"===typeof l?l(s,{pathname:i,search:c}):_()(i.replace(/[#,?].*/,""))===_()(s)||_()(i+c)===_()(s)}));e&&u(e.key)}),[v,i,c,u,l]);const[b,x]=d()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||O}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),N=(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:()=>{x((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},N(s,{parentKey:n,depth:l+1,selectedKey:a,openKeys:r,paths:[...o,i]}))})):null}),[f,x,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:N(K,{selectedKey:p,openKeys:b})})};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:()=>_});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__8lUc4";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)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:a,message:r,request:o,children:d,...h}=e;const u=_({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};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
2
- //# sourceMappingURL=6611.c167c7bf.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:()=>r});var o=n(8762),l=n.n(o);n(46733);const r=l()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),l=n(79889),r=n.n(l),i=n(93950),s=n.n(i),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 l=(0,o.useRef)(null),i=c()(e);return(0,o.useLayoutEffect)((()=>{const e=l.current,t=()=>window.requestAnimationFrame((()=>{e&&i(e)}));t();const o=new ResizeObserver((n.current.isDebounce?s():r())(t,n.current.time));return e&&o.observe(e),()=>{o.disconnect()}}),[i]),l}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>N});var o=n(73884),l=n(96418),r=n.n(l),i=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__8lUc4",_="style_hidden-container__EdySA__8lUc4",g="style_hidden-inner__vAN59__8lUc4",y="style_menu-list__VDttR__8lUc4",x="style_btn-item__mp5MQ__8lUc4";var v=n(15797),C=n.n(v),b=n(70579);const j=C()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:l,compact:r}=e;const i=r?0:["small","middle","large"].indexOf(l.size)>-1?8*(["small","middle","large"].indexOf(l.size)+1):Number.isInteger(l.size)?l.size:8;let s=0,a=0;for(;t>=a+o[s]+s*i&&s<o.length;)a+=o[s],s+=1;for(;t<a+(s-1)*i+(s<o.length?n+i:0)&&s>0;)a-=o[s-1],s-=1;return s}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:l,compact:r}=e;return`${t}${n}${o.join(",")}${Object.values(l).join(",")}${r&&r.toString()}`})),w=e=>{let{list:t,more:n,compact:l,...s}=e;const c=p()(s,["size","split","align","style"]),[f,v]=(0,o.useState)(t.length&&1),C=r()((()=>{const e=N.current,t=k.current,n=w.current;if(!e)return;const r=e.querySelectorAll(".button-group-item");if(!r)return;if(0===r.length)return;const i=n.clientWidth,s=t.clientWidth,a=[].map.call(r,(e=>e.offsetWidth)),d=j({amountWidth:i,moreBtnWidth:s,buttonWidthList:a,spaceProps:c,compact:l});(0,o.startTransition)((()=>{v(d)}))})),w=(0,m.A)(C),N=(0,m.A)(C),k=(0,m.A)(C),P=t.slice(f),S=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",x),isDropdown:n});const{className:l,confirm:r,buttonComponent:i,...s}=e,c=r||s.message,m=c?u.default:i||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,l)})},U=l?i.Space.Compact:i.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:h,ref:w}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:g,ref:k,children:n}),(0,b.jsx)("div",{className:g,ref:N,children:(0,b.jsx)(U,{...c,children:t.map(S)})})]}),(0,b.jsxs)(U,{...c,children:[t.slice(0,f).map(((e,t)=>S(e,t,!1))),P.length>0&&(0,b.jsx)(i.Dropdown,{overlayClassName:y,menu:{items:P.map(((e,t)=>({key:t,label:S(e,t,!0)})))},children:n})]})]})};w.defaultProps={more:(0,b.jsxs)(i.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const N=w},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>g,ConfirmText:()=>y,default:()=>x,withConfirm:()=>_});n(73884);var o=n(55199);const l=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var r=n(64671),i=n(58609),s=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__8lUc4",u="style_is-danger__gxyAB__8lUc4",m="style_title__EEPu2__8lUc4",f="style_content__mZZg5__8lUc4",p="style_has-title__5+PEt__8lUc4";var h=n(70579);const _=e=>{const t=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:l})((t=>{let{title:n,message:l,isDelete:a=!0,onClick:_,onCancel:g,disabled:y,showCancel:x,cancelText:v,isModal:C,okText:b,placement:j,getContainer:w,...N}=t;const{formatMessage:k}=(0,i.useIntl)({moduleName:"ConfirmButton"}),P=(0,s.useConfirmModal)();return C?(0,h.jsx)(e,{...N,disabled:y,onClick:e=>{P({type:"confirm",title:n,getContainer:w,danger:a,confirmType:a?"warning":"info",message:l||k({id:"message"}),okText:b||k(a?{id:"delete"}:{id:"confirm"}),cancelText:v||k({id:"cancel"}),onCancel:g,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)(r.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)(r.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||k({id:"message"})]})]}),placement:j,onConfirm:_,okButtonProps:{danger:a},onCancel:g,overlayClassName:c()(d,{[u]:a}),getPopupContainer:w,disabled:y,showCancel:x,cancelText:v,okText:b||k(a?{id:"delete"}:{id:"confirm"}),children:(0,h.jsx)(e,{...N,disabled:y})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},g=_(o.Typography.Link),y=_(o.Typography.Text),x=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>A,TabsModal:()=>S,TabsModalButton:()=>M,default:()=>k,useConfirmModal:()=>N,useModal:()=>w,useTabsModal:()=>U});var o=n(73884),l=n(55199),r=n(83136),i=n.n(r);const s={modal:"style_modal__Pm3cF__8lUc4",large:"style_large__iaqVE__8lUc4","modal-body-inner":"style_modal-body-inner__4PhpA__8lUc4","modal-title":"style_modal-title__dswaw__8lUc4","modal-outer":"style_modal-outer__r3SkX__8lUc4","modal-body":"style_modal-body__jQJSI__8lUc4","right-options-modal":"style_right-options-modal__FajDP__8lUc4","right-options-row":"style_right-options-row__-mPb9__8lUc4","right-options-col":"style_right-options-col__3ilee__8lUc4","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__8lUc4",content:"style_content__k6MIF__8lUc4","modal-footer":"style_modal-footer__-prbN__8lUc4","modal-close":"style_modal-close__Oa5Kl__8lUc4","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__8lUc4","is-danger":"style_is-danger__H5110__8lUc4",title:"style_title__orTym__8lUc4","has-title":"style_has-title__qy0Wp__8lUc4"},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)(l.Row,{wrap:!1,className:s["right-options-row"],children:[(0,p.jsx)(l.Col,{span:24-n,className:s["right-options-col"],children:o}),(0,p.jsx)(l.Col,{span:n,className:s["right-options-col"],children:t})]}):o},g=(e,t)=>e-48-(t?58:0)+"px",y=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":g(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,t)}}:{width:"1000px",style:{"--min-modal-height":g(500,t)}},x=e=>{let{footer:t,footerButtons:n,onConfirm:r,onCancel:i,onClose:s,targetProps:d}=e;return(0,p.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(l.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,p.jsx)(l.Col,{children:(0,p.jsx)(l.Space,{children:(n||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:h})}),onClick:i},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:h})}),onClick:r}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:l,autoClose:r=!0,display:i,...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(l&&l(...t,d));return r&&!1!==o&&s&&s(),o}})}))})})]})},v=e=>{let{title:t,footer:n,disabledScroller:r,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:h,children:_,targetProps:g}=e;const y=(0,o.useRef)(null);return(0,p.jsxs)("div",{className:s["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,p.jsx)(l.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:i()(s["modal-body"],{[s["is-disabled-scroller"]]:r},"modal-body"),ref:y,children:(0,p.jsx)("div",{className:i()(s["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,p.jsx)("div",{className:i()(s["modal-footer"],"modal-footer"),children:(0,p.jsx)(x,{footer:n,footerButtons:a,onConfirm:m,onCancel:h,onClose:c,targetProps:g})}):null]})},C=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:l,onClose:r,onConfirm:i,onCancel:s,footer:a,rightOptions:c,rightSpan:d,disabledScroller:m,childrenRef:f,children:h}=e;const g=e=>(e=Object.assign({},{title:o},e),(0,p.jsx)(v,{title:u(e.title,{...e,childrenRef:f,close:r}),closable:l,onClose:r,onConfirm:i,onCancel:s,footerButtons:u(n,{...e,close:r}),disabledScroller:m,footer:u(a,{...e,childrenRef:f,close:r}),targetProps:Object.assign({},e,{childrenRef:f,close:r}),children:(0,p.jsx)(_,{rightSpan:d,options:u(c,{...e,childrenRef:f,close:r}),children:u(h,{...e,childrenRef:f,close:r})})}));return"function"===typeof t?t(g):g({})},b=e=>{let{children:t,rightOptions:n,rightSpan:o,footer:l,footerButtons:r,className:d,size:u,title:m,onClose:f,onConfirm:h,onCancel:_,closable:g,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:i()(d,s.modal,s[u],{[s["right-options-modal"]]:n}),...y(u,!(null===l&&!r)),children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:v,title:m,closable:g,onClose:f,onConfirm:h,onCancel:_,footer:l,footerButtons:r,rightOptions:n,rightSpan:o,disabledScroller:x,children:t,childrenRef:b})})}},j=e=>{const t=(0,o.useRef)(null);return(0,p.jsx)(l.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const w=()=>{const{modal:e}=l.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:l,...r}=b({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:i}=e.info({...r,content:l});return o.close=i,o}},N=()=>{const{modal:e}=l.App.useApp();return t=>{const n={},{type:o,icon:r,title:a,danger:c,wrapClassName:u,message:m,iconSetting:f={},confirmType:h="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},g=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:i()(s["confirm-modal-wrap"],u,{[s["is-danger"]]:c}),title:(0,p.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,p.jsxs)(l.Space,{size:0,align:"start",className:s.title,children:[c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:r||g["confirm"===o?h:o]}):null,a]})}),content:(0,p.jsxs)(l.Space,{size:0,align:"start",className:i()(s.content,{[s["has-title"]]:a}),children:[!a&&c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:r||g["confirm"===o?h:o]}):null,m]})});n.close=t}return n}},k=j,P=e=>{let{items:t,className:n,activeKey:o,withDecorator:r,defaultActiveKey:s,onChange:a,...c}=e;return{...c,className:i()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,p.jsx)(l.Tabs,{items:t.map((t=>{let{withDecorator:o,...l}=t;return Object.assign({},l,{children:"function"===typeof o?o((t=>e(Object.assign({},n,t,{children:l.children})))):e(Object.assign({},n,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:o,defaultActiveKey:s,onChange:a});return"function"===typeof r?r(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},S=e=>(0,p.jsx)(k,{...P(e)}),U=()=>{const e=w();return t=>e(P(t))};var T=n(73025);const M=e=>{const t=U();return e.api?(0,p.jsx)(T.A,{...e,modalFunc:t}):(0,p.jsx)(l.Button,{...e,onClick:()=>{t(e.modalProps)}})},A=e=>{const t=w();if(!e.api){const{modalProps:n,...o}=e;return(0,p.jsx)(l.Button,{...o,onClick:()=>{t(n)}})}return(0,p.jsx)(T.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),l=n(77116);e.exports=function e(t,n,r,i,s){var a=-1,c=t.length;for(r||(r=l),s||(s=[]);++a<c;){var d=t[a];n>0&&r(d)?n>1?e(d,n-1,r,i,s):o(s,d):i||(s[s.length]=d)}return s}},94008:(e,t,n)=>{var o=n(27449),l=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return l(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),l=n(9261),r=n(35324);e.exports=function(e,t,n){for(var i=-1,s=t.length,a={};++i<s;){var c=t[i],d=o(e,c);n(d,c)&&l(a,r(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),l=n(35324),r=n(69194),i=n(46686),s=n(70914);e.exports=function(e,t,n,a){if(!i(e))return e;for(var c=-1,d=(t=l(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=i(h)?h:r(t[c+1])?[]:{})}o(m,f,p),m=m[f]}return e}},15857:(e,t,n)=>{var o=n(20819),l=n(55636),r=n(46350);e.exports=function(e){return r(l(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),l=n(22777),r=n(54052),i=o?o.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||l(e)||!!(i&&e&&e[i])}},93950:(e,t,n)=>{var o=n(46686),l=n(4757),r=n(40801),i=Math.max,s=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,f,p=0,h=!1,_=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(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=l();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,g&&a?y(e):(a=c=void 0,u)}function b(){var e=l(),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?y(e):u}(f);if(_)return clearTimeout(m),m=setTimeout(v,t),y(f)}return void 0===m&&(m=setTimeout(v,t)),u}return t=r(t)||0,o(n)&&(h=!!n.leading,d=(_="maxWait"in n)?i(r(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),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(l())},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),l=n(15857)((function(e,t){return null==e?{}:o(e,t)}));e.exports=l},79889:(e,t,n)=>{var o=n(93950),l=n(46686);e.exports=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return l(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),o(e,t,{leading:r,maxWait:t,trailing:i})}},46733:()=>{}}]);
2
- //# sourceMappingURL=6779.88dcd9ea.chunk.js.map