@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 +1 @@
1
- {"version":3,"file":"static/js/5600.71a7974a.chunk.js","mappings":"8MAGA,QAAeA,G,8HCHf,MAOA,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,wDCHJ,QAA0B,8BAA1B,EAAoE,gCAApE,EAA4G,4BAA5G,EAAkJ,8BAAlJ,EAA4L,gC,eCQrL,MAAMG,EAAeC,IAC1B,MAAMC,GAAmBC,EAAAA,EAAAA,gBAAe,CACtCC,WAAY,gBACZC,eACF,GAHyBF,EAIvBG,IAcO,IAdN,MACCC,EAAK,QACLC,EAAO,SACPC,GAAW,EAAI,QACfC,EAAO,SACPC,EAAQ,SACRC,EAAQ,WACRC,EAAU,WACVC,EAAU,QACVC,EAAO,OACPC,EAAM,UACNC,EAAS,aACTC,KACGC,GACJb,EACC,MAAM,cAAEc,IAAkBC,EAAAA,EAAAA,SAAQ,CAAEjB,WAAY,kBAC1CkB,GAAQC,EAAAA,EAAAA,mBACd,OAAIR,GAEAS,EAAAA,EAAAA,KAACvB,EAAgB,IACXkB,EACJP,SAAUA,EACVF,QAAUe,IACRH,EAAM,CACJI,KAAM,UACNnB,MAAOA,EACPW,eACAS,OAAQlB,EACRmB,YAAanB,EAAW,UAAY,OACpCD,QAASA,GAAWY,EAAc,CAAES,GAAI,YACxCb,OAAQA,GAGJI,EADAX,EACc,CAAEoB,GAAI,UACN,CAAEA,GAAI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AWxI,GAAS,C","sources":["common/components/SimpleBar.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__8lUc4\",\"is-danger\":\"style_is-danger__gxyAB__8lUc4\",\"title\":\"style_title__EEPu2__8lUc4\",\"content\":\"style_content__mZZg5__8lUc4\",\"has-title\":\"style_has-title__5+PEt__8lUc4\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__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\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, rightSpan = 6, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","_ref","title","message","isDelete","onClick","onCancel","disabled","showCancel","cancelText","isModal","okText","placement","getContainer","props","formatMessage","useIntl","modal","useConfirmModal","_jsx","e","type","danger","confirmType","id","onOk","Popconfirm","_jsxs","Space","direction","stopPropagation","children","size","align","className","style","Icon","classnames","onConfirm","okButtonProps","overlayClassName","getPopupContainer","defaultProps","ConfirmLink","Typography","Link","ConfirmText","Text","Button","renderWithOptions","footer","options","localeModuleName","RightOptions","rightSpan","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","length","IntlProvider","FormattedMessage","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","useRef","icon","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","confirm","warning","error","success","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/5600.7de79e05.chunk.js","mappings":"8MAGA,QAAeA,G,8HCHf,MAOA,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,wDCHJ,QAA0B,8BAA1B,EAAoE,gCAApE,EAA4G,4BAA5G,EAAkJ,8BAAlJ,EAA4L,gC,eCQrL,MAAMG,EAAeC,IAC1B,MAAMC,GAAmBC,EAAAA,EAAAA,gBAAe,CACtCC,WAAY,gBACZC,eACF,GAHyBF,EAIvBG,IAcO,IAdN,MACCC,EAAK,QACLC,EAAO,SACPC,GAAW,EAAI,QACfC,EAAO,SACPC,EAAQ,SACRC,EAAQ,WACRC,EAAU,WACVC,EAAU,QACVC,EAAO,OACPC,EAAM,UACNC,EAAS,aACTC,KACGC,GACJb,EACC,MAAM,cAAEc,IAAkBC,EAAAA,EAAAA,SAAQ,CAAEjB,WAAY,kBAC1CkB,GAAQC,EAAAA,EAAAA,mBACd,OAAIR,GAEAS,EAAAA,EAAAA,KAACvB,EAAgB,IACXkB,EACJP,SAAUA,EACVF,QAAUe,IACRH,EAAM,CACJI,KAAM,UACNnB,MAAOA,EACPW,eACAS,OAAQlB,EACRmB,YAAanB,EAAW,UAAY,OACpCD,QAASA,GAAWY,EAAc,CAAES,GAAI,YACxCb,OAAQA,GAGJI,EADAX,EACc,CAAEoB,GAAI,UACN,CAAEA,GAAI,YACxBf,WAAYA,GAAcM,EAAc,CAAES,GAAI,WAC9ClB,WACAmB,KAAMpB,GACN,KAMRc,EAAAA,EAAAA,KAACO,EAAAA,WAAU,CACTxB,OACEyB,EAAAA,EAAAA,MAACC,EAAAA,MAAK,CACJC,UAAU,WACVxB,QAAUe,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OAAOC,OAAO,CAAC,EAAGpG,EAAOqI,EAAY,CACnCpH,SAAUiD,EAAKjD,cAIrBgH,EACE9B,OAAOC,OAAO,CAAC,EAAGpG,EAAO,CAAEiB,SAAUiD,EAAKjD,aAElD,IAEJqH,wBAAsB,EACtBR,UAAWA,EACXC,iBAAkBA,EAClBC,SAAUA,IAGd,MAAgC,oBAAlBjC,EACVA,EAAcmC,GACdA,GAAa,EAEnBjH,SAAUoD,IAA6B,IAA5B,SAAEpD,KAAajB,GAAOqE,EAC/B,MAA2B,oBAAbpD,EAA0BA,EAASjB,GAASiB,CAAQ,EAErE,EAOH,EAJmBjB,IACVK,EAAAA,EAAAA,KAACuG,EAAK,IAAKN,EAAoBtG,KAK3BuI,EAAeA,KAC1B,MAAMpI,EAAQ2G,IACd,OAAQ9G,GAAUG,EAAMmG,EAAoBtG,GAAO,E,eCtDrD,MAgBawI,EAAmBxI,IAC9B,MAAMyI,EAAYF,IAClB,OAAKvI,EAAMiH,KAUJ5G,EAAAA,EAAAA,KAACqI,EAAAA,EAAW,IAAK1I,EAAO2I,UAAWF,KARtCpI,EAAAA,EAAAA,KAAC6B,EAAAA,OAAM,IACDlC,EACJT,QAASA,KACPkJ,EAAUzI,EAAM4I,WAAW,GAKoB,EAEzD,EA9BqB5I,IACnB,MAAMG,EAAQ2G,IACd,IAAK9G,EAAMiH,IAAK,CACd,MAAM,WAAE2B,KAAeC,GAAW7I,EAClC,OACEK,EAAAA,EAAAA,KAAC6B,EAAAA,OAAM,IACD2G,EACJtJ,QAASA,KACPY,EAAMyI,EAAW,GAIzB,CACA,OAAOvI,EAAAA,EAAAA,KAACqI,EAAAA,EAAW,IAAK1I,EAAO2I,UAAWxI,GAAS,C","sources":["common/components/SimpleBar.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__3pKBI\",\"is-danger\":\"style_is-danger__gxyAB__3pKBI\",\"title\":\"style_title__EEPu2__3pKBI\",\"content\":\"style_content__mZZg5__3pKBI\",\"has-title\":\"style_has-title__5+PEt__3pKBI\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__3pKBI\",\"large\":\"style_large__iaqVE__3pKBI\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__3pKBI\",\"modal-title\":\"style_modal-title__dswaw__3pKBI\",\"modal-outer\":\"style_modal-outer__r3SkX__3pKBI\",\"modal-body\":\"style_modal-body__jQJSI__3pKBI\",\"right-options-modal\":\"style_right-options-modal__FajDP__3pKBI\",\"right-options-row\":\"style_right-options-row__-mPb9__3pKBI\",\"right-options-col\":\"style_right-options-col__3ilee__3pKBI\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__3pKBI\",\"content\":\"style_content__k6MIF__3pKBI\",\"modal-footer\":\"style_modal-footer__-prbN__3pKBI\",\"modal-close\":\"style_modal-close__Oa5Kl__3pKBI\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__3pKBI\",\"is-danger\":\"style_is-danger__H5110__3pKBI\",\"title\":\"style_title__orTym__3pKBI\",\"has-title\":\"style_has-title__qy0Wp__3pKBI\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, rightSpan = 6, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","_ref","title","message","isDelete","onClick","onCancel","disabled","showCancel","cancelText","isModal","okText","placement","getContainer","props","formatMessage","useIntl","modal","useConfirmModal","_jsx","e","type","danger","confirmType","id","onOk","Popconfirm","_jsxs","Space","direction","stopPropagation","children","size","align","className","style","Icon","classnames","onConfirm","okButtonProps","overlayClassName","getPopupContainer","defaultProps","ConfirmLink","Typography","Link","ConfirmText","Text","Button","renderWithOptions","footer","options","localeModuleName","RightOptions","rightSpan","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","length","IntlProvider","FormattedMessage","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","useRef","icon","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","confirm","warning","error","success","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5786],{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.fd6a0b33.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/5786.4a032c0e.chunk.js","mappings":"uUASO,SAASA,EAAWC,GACE,OAAvBA,EAAKC,eAAwBD,EAAKC,cAAcC,YAAYF,E,CA6B3D,SAASG,EACdC,GAEAA,EAAQC,SAASC,GAASP,EAAWO,EAAKC,U,CAGrC,SAASC,EACdJ,GAEAA,EAAQC,SAASC,KA7BZ,SACLG,EACAC,EACAC,GAEA,MAAMC,EAAWH,EAAOI,SAASF,IAAU,KAC3CF,EAAOK,aAAaJ,EAAUE,E,CAwB5BG,CAAaT,EAAKL,cAAeK,EAAKC,QAASD,EAAKU,SAAS,G,CAI1D,SAASC,EACdC,EACAC,GA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ts","../node_modules/react-sortablejs/dist/src/react-sortable.tsx","../node_modules/react-sortablejs/node_modules/tiny-invariant/dist/tiny-invariant.esm.js"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport Sortable, { Options } from \"sortablejs\";\nimport { MultiDragEvent } from \"./react-sortable\";\nimport { AllMethodNames, ItemInterface, ReactSortableProps } from \"./types\";\n\n/**\n * Removes the `node` from the DOM\n * @param node\n */\nexport function removeNode(node: HTMLElement): void {\n if (node.parentElement !== null) node.parentElement.removeChild(node);\n}\n\n/**\n * Inserts the `newChild` node at the given index in a parent\n * @param parent The parent HTML Element.\n * @param newChild A HTML eement to add as a child of the parent.\n * @param index index of the parent to place the new child in.\n */\nexport function insertNodeAt(\n parent: HTMLElement,\n newChild: HTMLElement,\n index: number\n): void {\n const refChild = parent.children[index] || null;\n parent.insertBefore(newChild, refChild);\n}\n\n// @todo - create a dom handler function for arrays or not at all\n\n/** removes stuff from the dom in a nice order */\n// @todo - do I need parenElement?\nexport function handleDOMChanges<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n removeNodes(customs);\n insertNodes(customs);\n}\n\nexport function removeNodes<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n customs.forEach((curr) => removeNode(curr.element));\n}\n\nexport function insertNodes<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n customs.forEach((curr) => {\n insertNodeAt(curr.parentElement, curr.element, curr.oldIndex);\n });\n}\n\nexport function createCustoms<T extends ItemInterface>(\n evt: MultiDragEvent,\n list: T[]\n): Normalized<T>[] {\n const mode = getMode(evt);\n const parentElement = { parentElement: evt.from };\n let custom = [];\n switch (mode) {\n case \"normal\":\n /* eslint-disable */\n const item = {\n element: evt.item,\n newIndex: evt.newIndex!,\n oldIndex: evt.oldIndex!,\n parentElement: evt.from,\n };\n custom = [item];\n break;\n case \"swap\":\n const drag: Input = {\n element: evt.item,\n oldIndex: evt.oldIndex!,\n newIndex: evt.newIndex!,\n ...parentElement,\n };\n const swap: Input = {\n element: evt.swapItem!,\n oldIndex: evt.newIndex!,\n newIndex: evt.oldIndex!,\n ...parentElement,\n };\n custom = [drag, swap];\n break;\n case \"multidrag\":\n custom = evt.oldIndicies.map<Input>((curr, index) => ({\n element: curr.multiDragElement,\n oldIndex: curr.index,\n newIndex: evt.newIndicies[index].index,\n ...parentElement,\n }));\n break;\n }\n /* eslint-enable */\n\n const customs = createNormalized(custom, list);\n return customs;\n}\n\n/** moves items form old index to new index without breaking anything ideally. */\nexport function handleStateChanges<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[]\n): T[] {\n const a = handleStateRemove(normalized, list);\n const b = handleStateAdd(normalized, a);\n return b;\n}\n\nexport function handleStateRemove<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[]\n): T[] {\n const newList = [...list];\n normalized\n .concat()\n .reverse()\n .forEach((curr) => newList.splice(curr.oldIndex, 1));\n return newList;\n}\n\nexport function handleStateAdd<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[],\n evt?: Sortable.SortableEvent,\n clone?: ((currentItem: T, evt: Sortable.SortableEvent) => T) | undefined\n): T[] {\n const newList = [...list];\n normalized.forEach((curr) => {\n const newItem = clone && evt && clone(curr.item, evt);\n newList.splice(curr.newIndex, 0, newItem || curr.item);\n });\n return newList;\n}\n\nexport function getMode(evt: MultiDragEvent): \"multidrag\" | \"swap\" | \"normal\" {\n if (evt.oldIndicies && evt.oldIndicies.length > 0) return \"multidrag\";\n if (evt.swapItem) return \"swap\";\n return \"normal\";\n}\n\nexport function createNormalized<T extends ItemInterface>(\n inputs: Input[],\n list: T[]\n): Normalized<T>[] {\n const normalized = inputs\n .map<Normalized<T>>((curr) => ({ ...curr, item: list[curr.oldIndex] }))\n .sort((a, b) => a.oldIndex - b.oldIndex);\n return normalized;\n}\n\nexport interface Input {\n parentElement: HTMLElement;\n element: HTMLElement;\n oldIndex: number;\n newIndex: number;\n}\n\nexport interface Normalized<T> extends Input {\n item: T;\n}\n\n/**\n * Removes the following group of properties from `props`,\n * leaving only `Sortable.Options` without any `on` methods.\n * @param props `ReactSortable.Props`\n */\nexport function destructurePropsForOptions<T>(\n props: PropsWithChildren<ReactSortableProps<T>>\n): Exclude<Options, AllMethodNames> {\n /* eslint-disable */\n const {\n // react sortable props\n list,\n setList,\n children,\n tag,\n style,\n className,\n clone,\n // sortable options that have methods we want to overwrite\n onAdd,\n onChange,\n onChoose,\n onClone,\n onEnd,\n onFilter,\n onRemove,\n onSort,\n onStart,\n onUnchoose,\n onUpdate,\n onMove,\n onSpill,\n onSelect,\n onDeselect,\n ...options\n } = props;\n /* eslint-enable */\n return options;\n}\n\n/**\n * Construct a type with the properties of T except for those in type K.\n * Including this allows for backwards compatibility with earlier versions of TS.\n */\nexport type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\n","import classNames from \"classnames\";\nimport {\n Children,\n cloneElement,\n Component,\n createElement,\n createRef,\n ReactElement,\n RefObject,\n} from \"react\";\nimport Sortable, { MoveEvent, Options, SortableEvent } from \"sortablejs\";\nimport invariant from \"tiny-invariant\";\nimport {\n AllMethodsExceptMove,\n HandledMethodNames,\n ItemInterface,\n ReactSortableProps,\n Store,\n UnHandledMethodNames,\n} from \"./types\";\nimport {\n createCustoms,\n destructurePropsForOptions,\n getMode,\n handleStateAdd,\n handleStateChanges,\n handleStateRemove,\n insertNodes,\n removeNode,\n removeNodes,\n} from \"./util\";\n\n/** Holds a global reference for which react element is being dragged */\n// @todo - use context to manage this. How does one use 2 different providers?\nconst store: Store = { dragging: null };\n\nexport class ReactSortable<T extends ItemInterface> extends Component<\n ReactSortableProps<T>\n> {\n /* eslint-disable-next-line */\n static defaultProps: Partial<ReactSortableProps<any>> = {\n clone: (item) => item,\n };\n\n private ref: RefObject<HTMLElement>;\n constructor(props: ReactSortableProps<T>) {\n super(props);\n // @todo forward ref this component\n this.ref = createRef<HTMLElement>();\n\n // make all state false because we can't change sortable unless a mouse gesture is made.\n const newList = [...props.list].map((item) =>\n Object.assign(item, {\n chosen: false,\n selected: false,\n })\n );\n\n props.setList(newList, this.sortable, store);\n invariant(\n //@ts-expect-error: Doesn't exist. Will deprecate soon.\n !props.plugins,\n `\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 `\n );\n }\n\n componentDidMount(): void {\n if (this.ref.current === null) return;\n const newOptions = this.makeOptions();\n Sortable.create(this.ref.current, newOptions);\n }\n\n componentDidUpdate(prevProps: ReactSortableProps<T>): void {\n if (prevProps.disabled !== this.props.disabled && this.sortable) {\n this.sortable.option(\"disabled\", this.props.disabled);\n }\n }\n\n render(): JSX.Element {\n const { tag, style, className, id } = this.props;\n const classicProps = { style, className, id };\n\n // if no tag, default to a `div` element.\n const newTag = !tag || tag === null ? \"div\" : tag;\n return createElement(\n newTag,\n {\n // @todo - find a way (perhaps with the callback) to allow AntD components to work\n ref: this.ref,\n ...classicProps,\n },\n this.getChildren()\n );\n }\n\n private getChildren() {\n const {\n children,\n dataIdAttr,\n selectedClass = \"sortable-selected\",\n chosenClass = \"sortable-chosen\",\n /* eslint-disable */\n dragClass = \"sortable-drag\",\n fallbackClass = \"sortable-falback\",\n ghostClass = \"sortable-ghost\",\n swapClass = \"sortable-swap-highlight\",\n /* eslint-enable */\n filter = \"sortable-filter\",\n list,\n } = this.props;\n\n // if no children, don't do anything.\n if (!children || children == null) return null;\n const dataid = dataIdAttr || \"data-id\";\n /* eslint-disable-next-line */\n return Children.map(children as ReactElement<any>[], (child, index) => {\n if (child === undefined) return undefined;\n\n const item = list[index] || {};\n const { className: prevClassName } = child.props;\n\n // @todo - handle the function if avalable. I don't think anyone will be doing this soon.\n const filtered = typeof filter === \"string\" && {\n [filter.replace(\".\", \"\")]: !!item.filtered,\n };\n\n const className = classNames(prevClassName, {\n [selectedClass]: item.selected,\n [chosenClass]: item.chosen,\n ...filtered,\n // [dragClass]: true,\n // [fallbackClass]: true,\n // [ghostClass]: true,\n // [swapClass]: true\n });\n\n return cloneElement(child, {\n [dataid]: child.key,\n className,\n });\n });\n }\n\n /** Appends the `sortable` property to this component */\n private get sortable(): Sortable | null {\n const el = this.ref.current;\n if (el === null) return null;\n const key = Object.keys(el).find((k) => k.includes(\"Sortable\"));\n if (!key) return null;\n //@ts-expect-error: fix me.\n return el[key] as Sortable;\n }\n\n /** Converts all the props from `ReactSortable` into the `options` object that `Sortable.create(el, [options])` can use. */\n makeOptions(): Options {\n const DOMHandlers: HandledMethodNames[] = [\n \"onAdd\",\n \"onChoose\",\n \"onDeselect\",\n \"onEnd\",\n \"onRemove\",\n \"onSelect\",\n \"onSpill\",\n \"onStart\",\n \"onUnchoose\",\n \"onUpdate\",\n ];\n const NonDOMHandlers: UnHandledMethodNames[] = [\n \"onChange\",\n \"onClone\",\n \"onFilter\",\n \"onSort\",\n ];\n const newOptions: Options = destructurePropsForOptions(this.props);\n DOMHandlers.forEach(\n (name) => (newOptions[name] = this.prepareOnHandlerPropAndDOM(name))\n );\n NonDOMHandlers.forEach(\n (name) => (newOptions[name] = this.prepareOnHandlerProp(name))\n );\n\n /** onMove has 2 arguments and needs to be handled seperately. */\n const onMove = (evt: MoveEvent, originalEvt: Event) => {\n const { onMove } = this.props;\n const defaultValue = evt.willInsertAfter || -1;\n if (!onMove) return defaultValue;\n const result = onMove(evt, originalEvt, this.sortable, store);\n if (typeof result === \"undefined\") return false;\n return result;\n };\n\n return {\n ...newOptions,\n onMove,\n };\n }\n\n /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop & an `on[Handler]` ReactSortable method. */\n prepareOnHandlerPropAndDOM(\n evtName: HandledMethodNames\n ): (evt: SortableEvent) => void {\n return (evt) => {\n // call the component prop\n this.callOnHandlerProp(evt, evtName);\n // calls state change\n //@ts-expect-error: until @types multidrag item is in\n this[evtName](evt);\n };\n }\n\n /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop */\n prepareOnHandlerProp(\n evtName: Exclude<AllMethodsExceptMove, HandledMethodNames>\n ): (evt: SortableEvent) => void {\n return (evt) => {\n // call the component prop\n this.callOnHandlerProp(evt, evtName);\n };\n }\n\n /** Calls the `props.on[Handler]` function */\n callOnHandlerProp(evt: SortableEvent, evtName: AllMethodsExceptMove): void {\n const propEvent = this.props[evtName];\n if (propEvent) propEvent(evt, this.sortable, store);\n }\n\n // SORTABLE DOM HANDLING\n\n onAdd(evt: MultiDragEvent): void {\n const { list, setList, clone } = this.props;\n /* eslint-disable-next-line */\n const otherList = [...store.dragging!.props.list];\n const customs = createCustoms(evt, otherList);\n removeNodes(customs);\n\n const newList = handleStateAdd(customs, list, evt, clone).map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n setList(newList, this.sortable, store);\n }\n\n onRemove(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const mode = getMode(evt);\n const customs = createCustoms(evt, list);\n insertNodes(customs);\n\n let newList = [...list];\n // remove state if not in clone mode. otherwise, keep.\n if (evt.pullMode !== \"clone\") newList = handleStateRemove(customs, newList);\n // if clone, it doesn't really remove. instead it clones in place.\n // @todo -\n else {\n // switch used to get the clone\n let customClones = customs;\n switch (mode) {\n case \"multidrag\":\n customClones = customs.map((item, index) => ({\n ...item,\n element: evt.clones[index],\n }));\n break;\n case \"normal\":\n customClones = customs.map((item) => ({\n ...item,\n element: evt.clone,\n }));\n break;\n case \"swap\":\n default: {\n invariant(\n true,\n `mode \"${mode}\" cannot clone. Please remove \"props.clone\" from <ReactSortable/> when using the \"${mode}\" plugin`\n );\n }\n }\n removeNodes(customClones);\n\n // replace selected items with cloned items\n customs.forEach((curr) => {\n const index = curr.oldIndex;\n /* eslint-disable-next-line */\n const newItem = this.props.clone!(curr.item, evt);\n newList.splice(index, 1, newItem);\n });\n }\n\n // remove item.selected from list\n newList = newList.map((item: T) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n setList(newList, this.sortable, store);\n }\n\n onUpdate(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const customs = createCustoms(evt, list);\n removeNodes(customs);\n insertNodes(customs);\n const newList = handleStateChanges(customs, list);\n return setList(newList, this.sortable, store);\n }\n\n onStart(): void {\n store.dragging = this;\n }\n\n onEnd(): void {\n store.dragging = null;\n }\n\n onChoose(evt: SortableEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item, index) => {\n let newItem = item;\n if (index === evt.oldIndex) {\n newItem = Object.assign(item, {\n chosen: true,\n });\n }\n return newItem;\n });\n setList(newList, this.sortable, store);\n }\n\n onUnchoose(evt: SortableEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item, index) => {\n let newItem = item;\n if (index === evt.oldIndex) {\n newItem = Object.assign(newItem, {\n chosen: false,\n });\n }\n return newItem;\n });\n setList(newList, this.sortable, store);\n }\n\n onSpill(evt: SortableEvent): void {\n const { removeOnSpill, revertOnSpill } = this.props;\n if (removeOnSpill && !revertOnSpill) removeNode(evt.item);\n }\n\n onSelect(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n evt.newIndicies.forEach((curr) => {\n const index = curr.index;\n if (index === -1) {\n console.log(\n `\"${evt.type}\" had indice of \"${curr.index}\", which is probably -1 and doesn't usually happen here.`\n );\n console.log(evt);\n return;\n }\n newList[index].selected = true;\n });\n setList(newList, this.sortable, store);\n }\n\n onDeselect(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n evt.newIndicies.forEach((curr) => {\n const index = curr.index;\n if (index === -1) return;\n newList[index].selected = true;\n });\n setList(newList, this.sortable, store);\n }\n}\n\n// everything below this point can be removed\n// once @types has been merged. PR submited\ninterface MultiIndices {\n multiDragElement: HTMLElement;\n index: number;\n}\n\nexport interface MultiDragEvent extends SortableEvent {\n // @todo - add this to @types\n clones: HTMLElement[];\n oldIndicies: MultiIndices[];\n newIndicies: MultiIndices[];\n swapItem: HTMLElement | null;\n}\n","var isProduction = process.env.NODE_ENV === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n if (isProduction) {\n throw new Error(prefix);\n }\n var provided = typeof message === 'function' ? message() : message;\n var value = provided ? prefix + \": \" + provided : prefix;\n throw new Error(value);\n}\n\nexport { invariant as default };\n"],"names":["$eb03e74f8f7db1f3$export$1d0aa160432dfea5","node","parentElement","removeChild","$eb03e74f8f7db1f3$export$77f49a256021c8de","customs","forEach","curr","element","$eb03e74f8f7db1f3$export$a6177d5829f70ebc","parent","newChild","index","refChild","children","insertBefore","$eb03e74f8f7db1f3$export$6d240faa51aa562f","oldIndex","$eb03e74f8f7db1f3$export$4655efe700f887a","evt","list","mode","$eb03e74f8f7db1f3$export$1fc0f6205829e19c","from","custom","item","newIndex","swapItem","oldIndicies","map","multiDragElement","newIndicies","inputs","normalized","sort","a","b","$eb03e74f8f7db1f3$export$bc06a3af7dc65f53","$eb03e74f8f7db1f3$export$c25cf8080bd305ec","$eb03e74f8f7db1f3$export$eca851ee65ae17e4","$eb03e74f8f7db1f3$export$be2da95e6167b0bd","newList","concat","reverse","splice","clone","newItem","length","$eb03e74f8f7db1f3$export$7553c81e62e31b7e","props","setList","tag","style","className","onAdd","onChange","onChoose","onClone","onEnd","onFilter","onRemove","onSort","onStart","onUnchoose","onUpdate","onMove","onSpill","onSelect","onDeselect","options","$7fe8e3ea572bda7a$var$store","dragging","$7fe8e3ea572bda7a$export$11bbed9ee0012c13","$8zHUo$react","Component","static","constructor","super","this","ref","createRef","Object","assign","chosen","selected","sortable","$parcel$interopDefault","$8zHUo$tinyinvariant","plugins","componentDidMount","current","newOptions","makeOptions","$8zHUo$sortablejs","create","componentDidUpdate","prevProps","disabled","option","render","id","classicProps","newTag","createElement","getChildren","dataIdAttr","selectedClass","chosenClass","dragClass","fallbackClass","ghostClass","swapClass","filter","dataid","Children","child","undefined","prevClassName","filtered","replace","$8zHUo$classnames","cloneElement","key","el","keys","find","k","includes","name","prepareOnHandlerPropAndDOM","prepareOnHandlerProp","onMove1","originalEvt","defaultValue","willInsertAfter","result","evtName","callOnHandlerProp","propEvent","pullMode","customClones","clones","removeOnSpill","revertOnSpill","console","log","type","isProduction","process","prefix","invariant","condition","message","Error","provided"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/5786.fd6a0b33.chunk.js","mappings":"kUASO,SAASA,EAAWC,GACE,OAAvBA,EAAKC,eAAwBD,EAAKC,cAAcC,YAAYF,E,CA6B3D,SAASG,EACdC,GAEAA,EAAQC,SAASC,GAASP,EAAWO,EAAKC,U,CAGrC,SAASC,EACdJ,GAEAA,EAAQC,SAASC,KA7BZ,SACLG,EACAC,EACAC,GAEA,MAAMC,EAAWH,EAAOI,SAASF,IAAU,KAC3CF,EAAOK,aAAaJ,EAAUE,E,CAwB5BG,CAAaT,EAAKL,cAAeK,EAAKC,QAASD,EAAKU,SAAS,G,CAI1D,SAASC,EACdC,EACAC,GAEA,MAAMC,EAAOC,EAAQH,GACfjB,EAAgB,CAAEA,cAAeiB,EAAII,MAC3C,IAAIC,EAAS,GACb,OAAQH,GACN,IAAK,SAQHG,EAAS,CANI,CACXhB,QAASW,EAAIM,KACbC,SAAUP,EAAIO,SACdT,SAAUE,EAAIF,SACdf,cAAeiB,EAAII,OAGrB,MACF,IAAK,OAaHC,EAAS,CAZW,CAClBhB,QAASW,EAAIM,KACbR,SAAUE,EAAIF,SACdS,SAAUP,EAAIO,YACXxB,GAEe,CAClBM,QAASW,EAAIQ,SACbV,SAAUE,EAAIO,SACdA,SAAUP,EAAIF,YACXf,IAGL,MACF,IAAK,YACHsB,EAASL,EAAIS,YAAYC,KAAW,CAACtB,EAAMK,KAAU,CACnDJ,QAASD,EAAKuB,iBACdb,SAAUV,EAAKK,MACfc,SAAUP,EAAIY,YAAYnB,GAAOA,SAC9BV,MAMT,MAAMG,EA8CD,SACL2B,EACAZ,GAEA,MAAMa,EAAaD,EAChBH,KAAoBtB,IAAI,IAAWA,EAAMkB,KAAML,EAAKb,EAAKU,cACz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lCF,UAAAA,CAAWjD,GACT,MAAMC,KAAEA,EAAI8B,QAAEA,GAAY4B,KAAK7B,MACzBR,EAAUrB,EAAKS,KAAKJ,GACxBwD,OAAOC,OAAOzD,EAAM,CAClB2D,UAAU,MAGdjE,EAAIY,YAAYzB,SAASC,IACvB,MAAMK,EAAQL,EAAKK,OACJ,IAAXA,IACJ6B,EAAQ7B,GAAOwE,UAAW,EAAI,IAEhClC,EAAQT,EAASqC,KAAKO,SAAUf,E,2PCpYpC,IAAI6E,GAAeC,EACfC,EAAS,mBACb,SAASC,EAAUC,EAAWC,GAC1B,IAAID,EAAJ,CAGA,GAAIJ,EACA,MAAM,IAAIM,MAAMJ,GAEpB,IAAIK,EAA8B,oBAAZF,EAAyBA,IAAYA,EAE3D,MAAM,IAAIC,MADEC,EAAWL,EAAS,KAAOK,EAAWL,EALlD,CAOJ,C","sources":["../node_modules/react-sortablejs/dist/src/util.ts","../node_modules/react-sortablejs/dist/src/react-sortable.tsx","../node_modules/react-sortablejs/node_modules/tiny-invariant/dist/tiny-invariant.esm.js"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport Sortable, { Options } from \"sortablejs\";\nimport { MultiDragEvent } from \"./react-sortable\";\nimport { AllMethodNames, ItemInterface, ReactSortableProps } from \"./types\";\n\n/**\n * Removes the `node` from the DOM\n * @param node\n */\nexport function removeNode(node: HTMLElement): void {\n if (node.parentElement !== null) node.parentElement.removeChild(node);\n}\n\n/**\n * Inserts the `newChild` node at the given index in a parent\n * @param parent The parent HTML Element.\n * @param newChild A HTML eement to add as a child of the parent.\n * @param index index of the parent to place the new child in.\n */\nexport function insertNodeAt(\n parent: HTMLElement,\n newChild: HTMLElement,\n index: number\n): void {\n const refChild = parent.children[index] || null;\n parent.insertBefore(newChild, refChild);\n}\n\n// @todo - create a dom handler function for arrays or not at all\n\n/** removes stuff from the dom in a nice order */\n// @todo - do I need parenElement?\nexport function handleDOMChanges<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n removeNodes(customs);\n insertNodes(customs);\n}\n\nexport function removeNodes<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n customs.forEach((curr) => removeNode(curr.element));\n}\n\nexport function insertNodes<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n customs.forEach((curr) => {\n insertNodeAt(curr.parentElement, curr.element, curr.oldIndex);\n });\n}\n\nexport function createCustoms<T extends ItemInterface>(\n evt: MultiDragEvent,\n list: T[]\n): Normalized<T>[] {\n const mode = getMode(evt);\n const parentElement = { parentElement: evt.from };\n let custom = [];\n switch (mode) {\n case \"normal\":\n /* eslint-disable */\n const item = {\n element: evt.item,\n newIndex: evt.newIndex!,\n oldIndex: evt.oldIndex!,\n parentElement: evt.from,\n };\n custom = [item];\n break;\n case \"swap\":\n const drag: Input = {\n element: evt.item,\n oldIndex: evt.oldIndex!,\n newIndex: evt.newIndex!,\n ...parentElement,\n };\n const swap: Input = {\n element: evt.swapItem!,\n oldIndex: evt.newIndex!,\n newIndex: evt.oldIndex!,\n ...parentElement,\n };\n custom = [drag, swap];\n break;\n case \"multidrag\":\n custom = evt.oldIndicies.map<Input>((curr, index) => ({\n element: curr.multiDragElement,\n oldIndex: curr.index,\n newIndex: evt.newIndicies[index].index,\n ...parentElement,\n }));\n break;\n }\n /* eslint-enable */\n\n const customs = createNormalized(custom, list);\n return customs;\n}\n\n/** moves items form old index to new index without breaking anything ideally. */\nexport function handleStateChanges<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[]\n): T[] {\n const a = handleStateRemove(normalized, list);\n const b = handleStateAdd(normalized, a);\n return b;\n}\n\nexport function handleStateRemove<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[]\n): T[] {\n const newList = [...list];\n normalized\n .concat()\n .reverse()\n .forEach((curr) => newList.splice(curr.oldIndex, 1));\n return newList;\n}\n\nexport function handleStateAdd<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[],\n evt?: Sortable.SortableEvent,\n clone?: ((currentItem: T, evt: Sortable.SortableEvent) => T) | undefined\n): T[] {\n const newList = [...list];\n normalized.forEach((curr) => {\n const newItem = clone && evt && clone(curr.item, evt);\n newList.splice(curr.newIndex, 0, newItem || curr.item);\n });\n return newList;\n}\n\nexport function getMode(evt: MultiDragEvent): \"multidrag\" | \"swap\" | \"normal\" {\n if (evt.oldIndicies && evt.oldIndicies.length > 0) return \"multidrag\";\n if (evt.swapItem) return \"swap\";\n return \"normal\";\n}\n\nexport function createNormalized<T extends ItemInterface>(\n inputs: Input[],\n list: T[]\n): Normalized<T>[] {\n const normalized = inputs\n .map<Normalized<T>>((curr) => ({ ...curr, item: list[curr.oldIndex] }))\n .sort((a, b) => a.oldIndex - b.oldIndex);\n return normalized;\n}\n\nexport interface Input {\n parentElement: HTMLElement;\n element: HTMLElement;\n oldIndex: number;\n newIndex: number;\n}\n\nexport interface Normalized<T> extends Input {\n item: T;\n}\n\n/**\n * Removes the following group of properties from `props`,\n * leaving only `Sortable.Options` without any `on` methods.\n * @param props `ReactSortable.Props`\n */\nexport function destructurePropsForOptions<T>(\n props: PropsWithChildren<ReactSortableProps<T>>\n): Exclude<Options, AllMethodNames> {\n /* eslint-disable */\n const {\n // react sortable props\n list,\n setList,\n children,\n tag,\n style,\n className,\n clone,\n // sortable options that have methods we want to overwrite\n onAdd,\n onChange,\n onChoose,\n onClone,\n onEnd,\n onFilter,\n onRemove,\n onSort,\n onStart,\n onUnchoose,\n onUpdate,\n onMove,\n onSpill,\n onSelect,\n onDeselect,\n ...options\n } = props;\n /* eslint-enable */\n return options;\n}\n\n/**\n * Construct a type with the properties of T except for those in type K.\n * Including this allows for backwards compatibility with earlier versions of TS.\n */\nexport type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\n","import classNames from \"classnames\";\nimport {\n Children,\n cloneElement,\n Component,\n createElement,\n createRef,\n ReactElement,\n RefObject,\n} from \"react\";\nimport Sortable, { MoveEvent, Options, SortableEvent } from \"sortablejs\";\nimport invariant from \"tiny-invariant\";\nimport {\n AllMethodsExceptMove,\n HandledMethodNames,\n ItemInterface,\n ReactSortableProps,\n Store,\n UnHandledMethodNames,\n} from \"./types\";\nimport {\n createCustoms,\n destructurePropsForOptions,\n getMode,\n handleStateAdd,\n handleStateChanges,\n handleStateRemove,\n insertNodes,\n removeNode,\n removeNodes,\n} from \"./util\";\n\n/** Holds a global reference for which react element is being dragged */\n// @todo - use context to manage this. How does one use 2 different providers?\nconst store: Store = { dragging: null };\n\nexport class ReactSortable<T extends ItemInterface> extends Component<\n ReactSortableProps<T>\n> {\n /* eslint-disable-next-line */\n static defaultProps: Partial<ReactSortableProps<any>> = {\n clone: (item) => item,\n };\n\n private ref: RefObject<HTMLElement>;\n constructor(props: ReactSortableProps<T>) {\n super(props);\n // @todo forward ref this component\n this.ref = createRef<HTMLElement>();\n\n // make all state false because we can't change sortable unless a mouse gesture is made.\n const newList = [...props.list].map((item) =>\n Object.assign(item, {\n chosen: false,\n selected: false,\n })\n );\n\n props.setList(newList, this.sortable, store);\n invariant(\n //@ts-expect-error: Doesn't exist. Will deprecate soon.\n !props.plugins,\n `\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 `\n );\n }\n\n componentDidMount(): void {\n if (this.ref.current === null) return;\n const newOptions = this.makeOptions();\n Sortable.create(this.ref.current, newOptions);\n }\n\n componentDidUpdate(prevProps: ReactSortableProps<T>): void {\n if (prevProps.disabled !== this.props.disabled && this.sortable) {\n this.sortable.option(\"disabled\", this.props.disabled);\n }\n }\n\n render(): JSX.Element {\n const { tag, style, className, id } = this.props;\n const classicProps = { style, className, id };\n\n // if no tag, default to a `div` element.\n const newTag = !tag || tag === null ? \"div\" : tag;\n return createElement(\n newTag,\n {\n // @todo - find a way (perhaps with the callback) to allow AntD components to work\n ref: this.ref,\n ...classicProps,\n },\n this.getChildren()\n );\n }\n\n private getChildren() {\n const {\n children,\n dataIdAttr,\n selectedClass = \"sortable-selected\",\n chosenClass = \"sortable-chosen\",\n /* eslint-disable */\n dragClass = \"sortable-drag\",\n fallbackClass = \"sortable-falback\",\n ghostClass = \"sortable-ghost\",\n swapClass = \"sortable-swap-highlight\",\n /* eslint-enable */\n filter = \"sortable-filter\",\n list,\n } = this.props;\n\n // if no children, don't do anything.\n if (!children || children == null) return null;\n const dataid = dataIdAttr || \"data-id\";\n /* eslint-disable-next-line */\n return Children.map(children as ReactElement<any>[], (child, index) => {\n if (child === undefined) return undefined;\n\n const item = list[index] || {};\n const { className: prevClassName } = child.props;\n\n // @todo - handle the function if avalable. I don't think anyone will be doing this soon.\n const filtered = typeof filter === \"string\" && {\n [filter.replace(\".\", \"\")]: !!item.filtered,\n };\n\n const className = classNames(prevClassName, {\n [selectedClass]: item.selected,\n [chosenClass]: item.chosen,\n ...filtered,\n // [dragClass]: true,\n // [fallbackClass]: true,\n // [ghostClass]: true,\n // [swapClass]: true\n });\n\n return cloneElement(child, {\n [dataid]: child.key,\n className,\n });\n });\n }\n\n /** Appends the `sortable` property to this component */\n private get sortable(): Sortable | null {\n const el = this.ref.current;\n if (el === null) return null;\n const key = Object.keys(el).find((k) => k.includes(\"Sortable\"));\n if (!key) return null;\n //@ts-expect-error: fix me.\n return el[key] as Sortable;\n }\n\n /** Converts all the props from `ReactSortable` into the `options` object that `Sortable.create(el, [options])` can use. */\n makeOptions(): Options {\n const DOMHandlers: HandledMethodNames[] = [\n \"onAdd\",\n \"onChoose\",\n \"onDeselect\",\n \"onEnd\",\n \"onRemove\",\n \"onSelect\",\n \"onSpill\",\n \"onStart\",\n \"onUnchoose\",\n \"onUpdate\",\n ];\n const NonDOMHandlers: UnHandledMethodNames[] = [\n \"onChange\",\n \"onClone\",\n \"onFilter\",\n \"onSort\",\n ];\n const newOptions: Options = destructurePropsForOptions(this.props);\n DOMHandlers.forEach(\n (name) => (newOptions[name] = this.prepareOnHandlerPropAndDOM(name))\n );\n NonDOMHandlers.forEach(\n (name) => (newOptions[name] = this.prepareOnHandlerProp(name))\n );\n\n /** onMove has 2 arguments and needs to be handled seperately. */\n const onMove = (evt: MoveEvent, originalEvt: Event) => {\n const { onMove } = this.props;\n const defaultValue = evt.willInsertAfter || -1;\n if (!onMove) return defaultValue;\n const result = onMove(evt, originalEvt, this.sortable, store);\n if (typeof result === \"undefined\") return false;\n return result;\n };\n\n return {\n ...newOptions,\n onMove,\n };\n }\n\n /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop & an `on[Handler]` ReactSortable method. */\n prepareOnHandlerPropAndDOM(\n evtName: HandledMethodNames\n ): (evt: SortableEvent) => void {\n return (evt) => {\n // call the component prop\n this.callOnHandlerProp(evt, evtName);\n // calls state change\n //@ts-expect-error: until @types multidrag item is in\n this[evtName](evt);\n };\n }\n\n /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop */\n prepareOnHandlerProp(\n evtName: Exclude<AllMethodsExceptMove, HandledMethodNames>\n ): (evt: SortableEvent) => void {\n return (evt) => {\n // call the component prop\n this.callOnHandlerProp(evt, evtName);\n };\n }\n\n /** Calls the `props.on[Handler]` function */\n callOnHandlerProp(evt: SortableEvent, evtName: AllMethodsExceptMove): void {\n const propEvent = this.props[evtName];\n if (propEvent) propEvent(evt, this.sortable, store);\n }\n\n // SORTABLE DOM HANDLING\n\n onAdd(evt: MultiDragEvent): void {\n const { list, setList, clone } = this.props;\n /* eslint-disable-next-line */\n const otherList = [...store.dragging!.props.list];\n const customs = createCustoms(evt, otherList);\n removeNodes(customs);\n\n const newList = handleStateAdd(customs, list, evt, clone).map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n setList(newList, this.sortable, store);\n }\n\n onRemove(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const mode = getMode(evt);\n const customs = createCustoms(evt, list);\n insertNodes(customs);\n\n let newList = [...list];\n // remove state if not in clone mode. otherwise, keep.\n if (evt.pullMode !== \"clone\") newList = handleStateRemove(customs, newList);\n // if clone, it doesn't really remove. instead it clones in place.\n // @todo -\n else {\n // switch used to get the clone\n let customClones = customs;\n switch (mode) {\n case \"multidrag\":\n customClones = customs.map((item, index) => ({\n ...item,\n element: evt.clones[index],\n }));\n break;\n case \"normal\":\n customClones = customs.map((item) => ({\n ...item,\n element: evt.clone,\n }));\n break;\n case \"swap\":\n default: {\n invariant(\n true,\n `mode \"${mode}\" cannot clone. Please remove \"props.clone\" from <ReactSortable/> when using the \"${mode}\" plugin`\n );\n }\n }\n removeNodes(customClones);\n\n // replace selected items with cloned items\n customs.forEach((curr) => {\n const index = curr.oldIndex;\n /* eslint-disable-next-line */\n const newItem = this.props.clone!(curr.item, evt);\n newList.splice(index, 1, newItem);\n });\n }\n\n // remove item.selected from list\n newList = newList.map((item: T) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n setList(newList, this.sortable, store);\n }\n\n onUpdate(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const customs = createCustoms(evt, list);\n removeNodes(customs);\n insertNodes(customs);\n const newList = handleStateChanges(customs, list);\n return setList(newList, this.sortable, store);\n }\n\n onStart(): void {\n store.dragging = this;\n }\n\n onEnd(): void {\n store.dragging = null;\n }\n\n onChoose(evt: SortableEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item, index) => {\n let newItem = item;\n if (index === evt.oldIndex) {\n newItem = Object.assign(item, {\n chosen: true,\n });\n }\n return newItem;\n });\n setList(newList, this.sortable, store);\n }\n\n onUnchoose(evt: SortableEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item, index) => {\n let newItem = item;\n if (index === evt.oldIndex) {\n newItem = Object.assign(newItem, {\n chosen: false,\n });\n }\n return newItem;\n });\n setList(newList, this.sortable, store);\n }\n\n onSpill(evt: SortableEvent): void {\n const { removeOnSpill, revertOnSpill } = this.props;\n if (removeOnSpill && !revertOnSpill) removeNode(evt.item);\n }\n\n onSelect(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n evt.newIndicies.forEach((curr) => {\n const index = curr.index;\n if (index === -1) {\n console.log(\n `\"${evt.type}\" had indice of \"${curr.index}\", which is probably -1 and doesn't usually happen here.`\n );\n console.log(evt);\n return;\n }\n newList[index].selected = true;\n });\n setList(newList, this.sortable, store);\n }\n\n onDeselect(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n evt.newIndicies.forEach((curr) => {\n const index = curr.index;\n if (index === -1) return;\n newList[index].selected = true;\n });\n setList(newList, this.sortable, store);\n }\n}\n\n// everything below this point can be removed\n// once @types has been merged. PR submited\ninterface MultiIndices {\n multiDragElement: HTMLElement;\n index: number;\n}\n\nexport interface MultiDragEvent extends SortableEvent {\n // @todo - add this to @types\n clones: HTMLElement[];\n oldIndicies: MultiIndices[];\n newIndicies: MultiIndices[];\n swapItem: HTMLElement | null;\n}\n","var isProduction = process.env.NODE_ENV === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n if (isProduction) {\n throw new Error(prefix);\n }\n var provided = typeof message === 'function' ? message() : message;\n var value = provided ? prefix + \": \" + provided : prefix;\n throw new Error(value);\n}\n\nexport { invariant as default };\n"],"names":["$eb03e74f8f7db1f3$export$1d0aa160432dfea5","node","parentElement","removeChild","$eb03e74f8f7db1f3$export$77f49a256021c8de","customs","forEach","curr","element","$eb03e74f8f7db1f3$export$a6177d5829f70ebc","parent","newChild","index","refChild","children","insertBefore","$eb03e74f8f7db1f3$export$6d240faa51aa562f","oldIndex","$eb03e74f8f7db1f3$export$4655efe700f887a","evt","list","mode","$eb03e74f8f7db1f3$export$1fc0f6205829e19c","from","custom","item","newIndex","swapItem","oldIndicies","map","multiDragElement","newIndicies","inputs","normalized","sort","a","b","$eb03e74f8f7db1f3$export$bc06a3af7dc65f53","$eb03e74f8f7db1f3$export$c25cf8080bd305ec","$eb03e74f8f7db1f3$export$eca851ee65ae17e4","$eb03e74f8f7db1f3$export$be2da95e6167b0bd","newList","concat","reverse","splice","clone","newItem","length","$eb03e74f8f7db1f3$export$7553c81e62e31b7e","props","setList","tag","style","className","onAdd","onChange","onChoose","onClone","onEnd","onFilter","onRemove","onSort","onStart","onUnchoose","onUpdate","onMove","onSpill","onSelect","onDeselect","options","$7fe8e3ea572bda7a$var$store","dragging","$7fe8e3ea572bda7a$export$11bbed9ee0012c13","$8zHUo$react","Component","static","constructor","super","this","ref","createRef","Object","assign","chosen","selected","sortable","$parcel$interopDefault","$8zHUo$tinyinvariant","plugins","componentDidMount","current","newOptions","makeOptions","$8zHUo$sortablejs","create","componentDidUpdate","prevProps","disabled","option","render","id","classicProps","newTag","createElement","getChildren","dataIdAttr","selectedClass","chosenClass","dragClass","fallbackClass","ghostClass","swapClass","filter","dataid","Children","child","undefined","prevClassName","filtered","replace","$8zHUo$classnames","cloneElement","key","el","keys","find","k","includes","name","prepareOnHandlerPropAndDOM","prepareOnHandlerProp","onMove1","originalEvt","defaultValue","willInsertAfter","result","evtName","callOnHandlerProp","propEvent","pullMode","customClones","clones","removeOnSpill","revertOnSpill","console","log","type","isProduction","process","prefix","invariant","condition","message","Error","provided"],"sourceRoot":""}
@@ -0,0 +1,2 @@
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:()=>Z,DragAreaOuter:()=>X,DragButton:()=>Q,FileUpload:()=>le,Title:()=>E,UploadButton:()=>V,UploadTips:()=>q,default:()=>se});var i=s(73884),n=s(33097),a=s.n(n),l=s(55199);const r="style_file-list-outer__wPhbb__3pKBI",o="style_file-list-title__zXM5r__3pKBI",c="style_container__P4RaF__3pKBI",d="style_file-preview-inner__cvE72__3pKBI",p="style_file-preview__M-Asq__3pKBI",u="style_drag-area__Q+lm7__3pKBI",m="style_upload-drag-close__u5o8W__3pKBI",x="style_upload-drag-tips__z7puZ__3pKBI",g="style_upload-drag-icon__sGGoS__3pKBI",f="style_upload-drag-title__9Afmb__3pKBI",_="style_upload-drag-text__o38vS__3pKBI",h="style_title-group__8IJkS__3pKBI",v="style_upload-btn__Q+Jxn__3pKBI",j="style_total-count__z1fyd__3pKBI",y="style_file-select__mHqyI__3pKBI",S="style_file-name__QkvMn__3pKBI",N="style_file-select-info__fOLiM__3pKBI",I="style_file-select-option__AbDrD__3pKBI";var F=s(75087),L=s.n(F),P=s(74065),w=s.n(P),C=s(57469),b=s.n(C),M=s(64671),T=s(67390),z=s(58609),B=s(70579);const D=e=>{let{currentTab:t,setCurrentTab:s,previewMap:i,previewList:n,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:p,maxWidth:u,getPopupContainer:m}=e;return(0,B.jsx)("div",{className:o,children:(0,B.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,B.jsx)(l.Col,{children:(0,B.jsxs)(l.Space,{className:h,size:4,children:[(0,B.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,B.jsxs)(l.Space,{size:4,children:[(0,B.jsx)(M.default,{type:"icon-shitu-liebiao"}),(0,B.jsx)(z.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,B.jsxs)(l.Space,{size:4,children:[(0,B.jsx)(M.default,{type:"icon-shitu-yulan"}),(0,B.jsx)(z.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&i.get(r)&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(l.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:n.map((e=>{let{filename:t,userName:s,date:i,ossId:n}=e;return(0,B.jsx)(l.Select.Option,{className:I,value:n,children:(0,B.jsxs)(l.Space,{direction:"vertical",children:[(0,B.jsxs)(l.Space,{size:4,align:"start",children:[(0,B.jsx)(L(),{type:w()(t.split(".")),size:14}),(0,B.jsx)(l.Typography.Text,{className:S,ellipsis:!0,style:{"--max-width":`${u}px`},children:t})]}),s||i?(0,B.jsxs)(l.Space,{className:N,size:24,children:[(0,B.jsxs)("div",{children:[(0,B.jsx)(z.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,B.jsxs)("div",{children:[(0,B.jsx)(z.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",i&&b()(i).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},n)}))}),(0,B.jsx)(T.OptionButtons,{hasPreview:!1,getPermission:a,item:i.get(r),apis:d}),(0,B.jsx)("div",{className:j,children:(0,B.jsx)(z.FormattedMessage,{id:"totalCount",values:{count:n.length},moduleName:"FileList"})})]})]})}),(0,B.jsx)(l.Col,{children:p})]})})};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 K=s(70720),O=s.n(K),U=s(83136),k=s.n(U);const R=(0,i.createContext)({}),{Provider:G}=R,W=()=>(0,i.useContext)(R);var Y=s(29574),H=s(81348);const Q=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:i}=W();return(0,B.jsx)("div",{ref:i,className:v,onClick:()=>{s((e=>!e))},children:(0,B.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,B.jsx)(M.default,{type:"icon-tuozhuaishangchuan"}),t||(0,B.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},V=e=>{let{children:t}=e;const{accept:s,onFileSelected:i}=W();return(0,B.jsxs)(Y.AG,{className:v,accept:s,multiple:!0,onChange:i,children:[(0,B.jsx)(M.default,{type:"icon-tianjia"}),t]})},X=e=>{let{title:t,accept:s,fileSize:n,maxLength:a,onFileSelected:o,children:d,className:p}=e;const[u,m]=(0,i.useState)(!1),x=(0,i.useRef)(null),g=O()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||m(!1))}));return(0,B.jsx)(z.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,B.jsx)(G,{value:{open:u,onOpenChange:m,accept:s,fileSize:n,maxLength:a,onFileSelected:o,getDragButtonEl:e=>{x.current=e}},children:(0,B.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,B.jsx)("div",{className:k()(c,p),ref:g,onDragEnter:()=>{m(!0)},children:d})]})})})};X.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const q=e=>{let{icon:t,title:s,renderTips:i}=e;const{accept:n,fileSize:a,maxLength:l}=W(),r=i((0,z.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:n.map((e=>e.replace(/^\./,""))).join("\u3001"),size:a}),{fileSize:a,maxLength:l,accept:n});return(0,B.jsxs)("div",{className:k()(x,"upload-drag-tips"),children:[(0,B.jsx)("div",{className:g,children:t||(0,B.jsx)(M.default,{type:"icon-shangchuan",size:64})}),(0,B.jsx)("div",{className:f,children:s||(0,B.jsx)(z.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,B.jsx)("div",{className:_,children:r})]})};q.defaultProps={renderTips:e=>e};const J=e=>{let{children:t,className:s}=e;const{open:i,accept:n,onOpenChange:a,onFileSelected:r}=W();return i?(0,B.jsxs)("div",{className:k()(u,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;a(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,H.A)(e,n)));r(t)},onDragEnd:()=>{a(!1)},children:[(0,B.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,B.jsx)(M.default,{type:"icon-close-bold"}),onClick:()=>{a(!1)}}),t]}):null};J.defaultProps={children:(0,B.jsx)(q,{})};const Z=J;var $=s(51714),ee=s(63908);const te=e=>{var t;let{maxLength:s,list:n,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:u,getPermission:m,titleExtra:x,fileSize:g,accept:f,getPopupContainer:_}=e;const{apis:h}=(0,ee.usePreset)(),v=Object.assign({},h,u),{fileList:j,onFileSelected:y}=(0,Y.lN)({maxLength:s,multiple:!0,value:n,onChange:r,concurrentCount:1,onAdd:()=>{N("list")},onSave:v.onSave,ossUpload:v.ossUpload}),[S,N]=(0,i.useState)(o),{formatMessage:I}=(0,z.useIntl)({moduleName:"FileList"}),{message:F}=l.App.useApp(),L=(0,i.useMemo)((()=>new Map(n.map((e=>[e.ossId,e])))),[n]),[P,w]=(0,i.useState)(c||a()(n,"[0].ossId",null));(0,i.useEffect)((()=>{P&&L.get(P)||w(a()(n,"[0].ossId",null))}),[n,L,P]);const C={onPreview:e=>{w(e.ossId),N("preview")},onDelete:async e=>{v.onDelete&&await v.onDelete(e),r((t=>{const s=t.slice(0),i=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return i>-1&&s.splice(i,1),s})),F.success(I({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;v.onEdit&&await v.onEdit({formData:t,item:s}),r((e=>{const i=e.slice(0),n=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return n>-1&&i.splice(n,1,Object.assign({},s,{filename:t.name})),i})),F.success(I({id:"successEditFileName"},{name:s.filename}))}},b="function"===typeof x?x({currentPreviewFileId:P,currentTab:S}):x;return(0,B.jsxs)(X,{title:(0,B.jsx)(E,{currentTab:S,setCurrentTab:N,previewMap:L,previewList:n,getPermission:m,currentPreviewFileId:P,setCurrentPreviewFileId:w,itemApis:C,getPopupContainer:_,children:(0,B.jsxs)(l.Space,{split:(0,B.jsx)(l.Divider,{type:"vertical"}),children:[b,m("add",{})?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Q,{children:(0,B.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,B.jsx)(V,{children:(0,B.jsx)(z.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:y,accept:f,children:["list"===S?(0,B.jsx)(T.List,{dataSource:[...j,...n],getPermission:m,apis:C}):null,"preview"===S?P?(0,B.jsx)("div",{className:d,children:(0,B.jsx)($.default,{className:p,id:P,apis:v,originName:null===(t=L.get(P))||void 0===t?void 0:t.filename})}):(0,B.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,B.jsx)(Z,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,B.jsx)(z.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,B.jsx)(te,{...e})});var ie=s(10986),ne=s.n(ie);const ae=e=>{let{maxLength:t,apis:s,getPermission:i,fileSize:n,accept:a,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,p]=ne()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:u,onFileSelected:m}=(0,Y.lN)({maxLength:t,multiple:!0,value:d,onChange:p,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,B.jsxs)(X,{title:(0,B.jsxs)(l.Row,{children:[(0,B.jsx)(l.Col,{flex:1}),(0,B.jsx)(l.Col,{children:(0,B.jsxs)(l.Space,{split:(0,B.jsx)(l.Divider,{type:"vertical"}),children:[(0,B.jsx)(Q,{}),(0,B.jsx)(V,{children:"\u4e0a\u4f20"})]})})]}),fileSize:n,maxLength:t,onFileSelected:m,accept:a,children:[(0,B.jsx)(T.List,{dataSource:[...u,...d],getPermission:i,apis:c}),(0,B.jsx)(Z,{})]})};ae.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const le=ae},94710:e=>{e.exports=function(e,t,s,i){for(var n=-1,a=null==e?0:e.length;++n<a;){var l=e[n];t(i,l,s(l),e)}return i}},32952:(e,t,s)=>{var i=s(45652);e.exports=function(e,t,s,n){return i(e,(function(e,i,a){t(n,e,s(e),a)})),n}},45652:(e,t,s)=>{var i=s(94664),n=s(76516)(i);e.exports=n},99910:e=>{e.exports=function(e,t){for(var s,i=-1,n=e.length;++i<n;){var a=t(e[i]);void 0!==a&&(s=void 0===s?a:s+a)}return s}},19449:(e,t,s)=>{var i=s(94710),n=s(32952),a=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?i:n,c=t?t():{};return o(s,e,a(r,2),c)}}},76516:(e,t,s)=>{var i=s(6571);e.exports=function(e,t){return function(s,n){if(null==s)return s;if(!i(s))return e(s,n);for(var a=s.length,l=t?a:-1,r=Object(s);(t?l--:++l<a)&&!1!==n(r[l],l,r););return s}}},26304:(e,t,s)=>{var i=s(53871),n=s(99140);e.exports=function(e,t,s){var a=null==e?0:e.length;return a?(t=s||void 0===t?1:n(t),i(e,0,(t=a-t)<0?0:t)):[]}},39835:(e,t,s)=>{var i=s(71775),n=s(19449),a=Object.prototype.hasOwnProperty,l=n((function(e,t,s){a.call(e,s)?e[s].push(t):i(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var i=s(26989);e.exports=function(e,t,s){var n=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===n?i(e,t,void 0,s):!!n}},60262:(e,t,s)=>{var i=s(99910),n=s(33279);e.exports=function(e){return e&&e.length?i(e,n):0}},99140:(e,t,s)=>{var i=s(37303);e.exports=function(e){var t=i(e),s=t%1;return t===t?s?t-s:t:0}},55664:()=>{},17448:()=>{},71975:()=>{}}]);
2
+ //# sourceMappingURL=5962.ec9b072e.chunk.js.map