@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
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2970],{2970:(r,n,e)=>{e.r(n),e.d(n,{useDebounce:()=>a,useDebouncedCallback:()=>u,useThrottledCallback:()=>o});var t=e(73884);function u(r,n,e){var u=this,c=(0,t.useRef)(null),i=(0,t.useRef)(0),a=(0,t.useRef)(null),o=(0,t.useRef)([]),f=(0,t.useRef)(),l=(0,t.useRef)(),s=(0,t.useRef)(r),m=(0,t.useRef)(!0);(0,t.useEffect)((function(){s.current=r}),[r]);var v=!n&&0!==n&&"undefined"!=typeof window;if("function"!=typeof r)throw new TypeError("Expected a function");n=+n||0;var d=!!(e=e||{}).leading,p=!("trailing"in e)||!!e.trailing,k="maxWait"in e,h=k?Math.max(+e.maxWait||0,n):null;(0,t.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=(0,t.useMemo)((function(){var r=function(r){var n=o.current,e=f.current;return o.current=f.current=null,i.current=r,l.current=s.current.apply(e,n)},e=function(r,n){v&&cancelAnimationFrame(a.current),a.current=v?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!m.current)return!1;var e=r-c.current;return!c.current||e>=n||e<0||k&&r-i.current>=h},w=function(n){return a.current=null,p&&o.current?r(n):(o.current=f.current=null,l.current)},R=function r(){var u=Date.now();if(t(u))return w(u);if(m.current){var a=n-(u-c.current),o=k?Math.min(a,h-(u-i.current)):a;e(r,o)}},b=function(){var s=Date.now(),v=t(s);if(o.current=[].slice.call(arguments),f.current=u,c.current=s,v){if(!a.current&&m.current)return i.current=c.current,e(R,n),d?r(c.current):l.current;if(k)return e(R,n),r(c.current)}return a.current||e(R,n),l.current};return b.cancel=function(){a.current&&(v?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,o.current=c.current=f.current=a.current=null},b.isPending=function(){return!!a.current},b.flush=function(){return a.current?w(Date.now()):l.current},b}),[d,k,n,h,p,v]);return w}function c(r,n){return r===n}function i(r){return"function"==typeof r?function(){return r}:r}function a(r,n,e){var a,o,f=e&&e.equalityFn||c,l=(a=(0,t.useState)(i(r)),o=a[1],[a[0],(0,t.useCallback)((function(r){return o(i(r))}),[])]),s=l[0],m=l[1],v=u((0,t.useCallback)((function(r){return m(r)}),[m]),n,e),d=(0,t.useRef)(r);return f(d.current,r)||(v(r),d.current=r),[s,v]}function o(r,n,e){var t=void 0===e?{}:e,c=t.leading,i=t.trailing;return u(r,n,{maxWait:n,leading:void 0===c||c,trailing:void 0===i||i})}}}]);
2
+ //# sourceMappingURL=2970.cb5e7784.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/2970.326287df.chunk.js","mappings":"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","sources":["../node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/use-debounce/src/useDebounce.ts","../node_modules/use-debounce/src/useThrottledCallback.ts"],"sourcesContent":["import { useRef, useEffect, useMemo } from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n}\n\nexport interface ControlFunctions {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => void;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function `debounced.callback` return the result of the last func invocation.\n * Note, that if there are no previous invocations it's mean you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState<T extends (...args: any) => ReturnType<T>> extends ControlFunctions {\n (...args: Parameters<T>): ReturnType<T> | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * <button onClick={clickHandler}>click me</button>\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.pending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<T extends (...args: any) => ReturnType<T>>(\n func: T,\n wait?: number,\n options?: Options\n): DebouncedState<T> {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef<unknown[]>([]);\n const lastThis = useRef<unknown>();\n const result = useRef<ReturnType<T>>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n\n useEffect(() => {\n funcRef.current = func;\n }, [func]);\n\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && typeof window !== 'undefined';\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF ? requestAnimationFrame(pendingFunc) : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const func: DebouncedState<T> = (...args: Parameters<T>): ReturnType<T> => {\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n if (timerId.current) {\n useRAF ? cancelAnimationFrame(timerId.current) : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current = lastCallTime.current = lastThis.current = timerId.current = null;\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [leading, maxing, wait, maxWait, trailing, useRAF]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState, Dispatch } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality<T>(left: T, right: T): boolean {\n return left === right;\n}\n\nfunction adjustFunctionValueOfSetState<T>(value: T): T | (() => T) {\n return typeof value === 'function' ? () => value : value;\n}\n\nfunction useStateIgnoreCallback<T>(initialState: T): [T, Dispatch<T>] {\n const [state, setState] = useState(adjustFunctionValueOfSetState(initialState));\n const setStateIgnoreCallback = useCallback((value: T) => setState(adjustFunctionValueOfSetState(value)), []);\n return [state, setStateIgnoreCallback];\n}\n\nexport default function useDebounce<T>(\n value: T,\n delay: number,\n options?: { maxWait?: number; leading?: boolean; trailing?: boolean; equalityFn?: (left: T, right: T) => boolean }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const [state, dispatch] = useStateIgnoreCallback(value);\n const debounced = useDebouncedCallback(useCallback((value: T) => dispatch(value), [dispatch]), delay, options);\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [state, debounced];\n}\n","import useDebouncedCallback, { CallOptions, DebouncedState } from './useDebouncedCallback';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds (or once per browser frame).\n *\n * The throttled function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the throttled function.\n *\n * Subsequent calls to the throttled function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `throttle` and `debounce`.\n *\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0]\n * The number of milliseconds to throttle invocations to; if omitted,\n * `requestAnimationFrame` is used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * const scrollHandler = useThrottledCallback(updatePosition, 100)\n * window.addEventListener('scroll', scrollHandler)\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * const { callback } = useThrottledCallback(renewToken, 300000, { 'trailing': false })\n * <button onClick={callback}>click</button>\n *\n * // Cancel the trailing throttled invocation.\n * window.addEventListener('popstate', throttled.cancel);\n */\nexport default function useThrottledCallback<T extends (...args: any) => ReturnType<T>>(\n func: T,\n wait: number,\n { leading = true, trailing = true }: CallOptions = {}\n): DebouncedState<T> {\n return useDebouncedCallback(func, wait, {\n maxWait: wait,\n leading,\n trailing,\n });\n}\n"],"names":["c","u","e","i","a","r","o","f","l","m","v","d","p","n","current","g","window","TypeError","w","leading","s","trailing","x","y","Math","max","maxWait","h","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","slice","call","arguments","cancel","clearTimeout","isPending","flush","equalityFn"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/2970.cb5e7784.chunk.js","mappings":"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","sources":["../node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/use-debounce/src/useDebounce.ts","../node_modules/use-debounce/src/useThrottledCallback.ts"],"sourcesContent":["import { useRef, useEffect, useMemo } from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n}\n\nexport interface ControlFunctions {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => void;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function `debounced.callback` return the result of the last func invocation.\n * Note, that if there are no previous invocations it's mean you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState<T extends (...args: any) => ReturnType<T>> extends ControlFunctions {\n (...args: Parameters<T>): ReturnType<T> | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * <button onClick={clickHandler}>click me</button>\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.pending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<T extends (...args: any) => ReturnType<T>>(\n func: T,\n wait?: number,\n options?: Options\n): DebouncedState<T> {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef<unknown[]>([]);\n const lastThis = useRef<unknown>();\n const result = useRef<ReturnType<T>>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n\n useEffect(() => {\n funcRef.current = func;\n }, [func]);\n\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && typeof window !== 'undefined';\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF ? requestAnimationFrame(pendingFunc) : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const func: DebouncedState<T> = (...args: Parameters<T>): ReturnType<T> => {\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n if (timerId.current) {\n useRAF ? cancelAnimationFrame(timerId.current) : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current = lastCallTime.current = lastThis.current = timerId.current = null;\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [leading, maxing, wait, maxWait, trailing, useRAF]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState, Dispatch } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality<T>(left: T, right: T): boolean {\n return left === right;\n}\n\nfunction adjustFunctionValueOfSetState<T>(value: T): T | (() => T) {\n return typeof value === 'function' ? () => value : value;\n}\n\nfunction useStateIgnoreCallback<T>(initialState: T): [T, Dispatch<T>] {\n const [state, setState] = useState(adjustFunctionValueOfSetState(initialState));\n const setStateIgnoreCallback = useCallback((value: T) => setState(adjustFunctionValueOfSetState(value)), []);\n return [state, setStateIgnoreCallback];\n}\n\nexport default function useDebounce<T>(\n value: T,\n delay: number,\n options?: { maxWait?: number; leading?: boolean; trailing?: boolean; equalityFn?: (left: T, right: T) => boolean }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const [state, dispatch] = useStateIgnoreCallback(value);\n const debounced = useDebouncedCallback(useCallback((value: T) => dispatch(value), [dispatch]), delay, options);\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [state, debounced];\n}\n","import useDebouncedCallback, { CallOptions, DebouncedState } from './useDebouncedCallback';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds (or once per browser frame).\n *\n * The throttled function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the throttled function.\n *\n * Subsequent calls to the throttled function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `throttle` and `debounce`.\n *\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0]\n * The number of milliseconds to throttle invocations to; if omitted,\n * `requestAnimationFrame` is used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * const scrollHandler = useThrottledCallback(updatePosition, 100)\n * window.addEventListener('scroll', scrollHandler)\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * const { callback } = useThrottledCallback(renewToken, 300000, { 'trailing': false })\n * <button onClick={callback}>click</button>\n *\n * // Cancel the trailing throttled invocation.\n * window.addEventListener('popstate', throttled.cancel);\n */\nexport default function useThrottledCallback<T extends (...args: any) => ReturnType<T>>(\n func: T,\n wait: number,\n { leading = true, trailing = true }: CallOptions = {}\n): DebouncedState<T> {\n return useDebouncedCallback(func, wait, {\n maxWait: wait,\n leading,\n trailing,\n });\n}\n"],"names":["c","u","e","i","a","r","o","f","l","m","v","d","p","n","current","g","window","TypeError","w","leading","s","trailing","x","y","Math","max","maxWait","h","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","slice","call","arguments","cancel","clearTimeout","isPending","flush","equalityFn"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3142,9034],{29053:(s,e,t)=>{t.r(e),t.d(e,{computedIsPass:()=>m,default:()=>P,usePermissions:()=>_,usePermissionsPass:()=>d});var n=t(73884),r=t(55199),o=t(33097),i=t.n(o),a=t(83136),u=t.n(a);const l="style_outer__vbHB9__8lUc4";var c=t(63908),p=t(70579);const m=s=>{let{permissions:e,request:t}=s;return!(Array.isArray(t)&&t.length>0)||t.some((s=>(e||[]).indexOf(s)>-1))},_=()=>{const{global:s}=(0,c.useGlobalContext)(),{permissions:e,permissionsPath:t}=(0,c.usePreset)();return{permissions:s.permissions||e||t&&i()(s,t)||[]}},d=s=>{let{request:e}=s;const{permissions:t}=_();return m({permissions:t,request:e})},h=s=>{let{type:e,className:t,tagName:o,message:i,request:a,children:c,...m}=s;const _=d({request:a});return"function"===typeof c?c({isPass:_,type:e,request:a}):!0===_?c:"error"===e?(0,p.jsx)(r.Result,{status:"403",subTitle:i}):"tooltip"===e?(0,p.jsx)(r.Tooltip,{title:i,children:(0,n.createElement)(o,{...m,className:u()(l,t)},c)}):null};h.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const P=h}}]);
2
- //# sourceMappingURL=3142.f0188353.chunk.js.map
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3142,9034],{29053:(s,e,t)=>{t.r(e),t.d(e,{computedIsPass:()=>m,default:()=>P,usePermissions:()=>_,usePermissionsPass:()=>d});var n=t(73884),r=t(55199),o=t(33097),i=t.n(o),a=t(83136),u=t.n(a);const l="style_outer__vbHB9__3pKBI";var p=t(63908),c=t(70579);const m=s=>{let{permissions:e,request:t}=s;return!(Array.isArray(t)&&t.length>0)||t.some((s=>(e||[]).indexOf(s)>-1))},_=()=>{const{global:s}=(0,p.useGlobalContext)(),{permissions:e,permissionsPath:t}=(0,p.usePreset)();return{permissions:s.permissions||e||t&&i()(s,t)||[]}},d=s=>{let{request:e}=s;const{permissions:t}=_();return m({permissions:t,request:e})},h=s=>{let{type:e,className:t,tagName:o,message:i,request:a,children:p,...m}=s;const _=d({request:a});return"function"===typeof p?p({isPass:_,type:e,request:a}):!0===_?p:"error"===e?(0,c.jsx)(r.Result,{status:"403",subTitle:i}):"tooltip"===e?(0,c.jsx)(r.Tooltip,{title:i,children:(0,n.createElement)(o,{...m,className:u()(l,t)},p)}):null};h.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const P=h}}]);
2
+ //# sourceMappingURL=3142.8eb71b87.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/3142.f0188353.chunk.js","mappings":"2TACA,QAAwB,4B,0BCMjB,MAAMA,EAAiBC,IAA+B,IAA9B,YAAEC,EAAW,QAAEC,GAASF,EACrD,QAAOG,MAAMC,QAAQF,IAAYA,EAAQG,OAAS,IAC9CH,EAAQI,MAAMC,IAAgBN,GAAe,IAAIO,QAAQD,IAAe,GACpE,EAGGE,EAAiBA,KAC5B,MAAM,OAAEC,IAAWC,EAAAA,EAAAA,qBACb,YAAEV,EAAW,gBAAEW,IAAoBC,EAAAA,EAAAA,aACzC,MAAO,CACLZ,YACES,EAAOT,aACPA,GACCW,GAAmBE,IAAIJ,EAAQE,IAChC,GACH,EAGUG,EAAqBC,IAAkB,IAAjB,QAAEd,GAASc,EAC5C,MAAM,YAAEf,GAAgBQ,IACxB,OAAOV,EAAe,CAAEE,cAAaC,WAAU,EAG3Ce,EAAcC,IAQb,IARc,KACnBC,EAAI,UACJC,EAAS,QACTC,EAAO,QACPC,EAAO,QACPpB,EAAO,SACPqB,KACGC,GACJN,EACC,MAAMO,EAASV,EAAmB,CAAEb,YACpC,MAAwB,oBAAbqB,EACFA,EAAS,CAAEE,SAAQN,OAAMjB,aAGnB,IAAXuB,EACKF,EAGI,UAATJ,GACKO,EAAAA,EAAAA,KAACC,EAAAA,OAAM,CAACC,OAAO,MAAMC,SAAUP,IAG3B,YAATH,GAEAO,EAAAA,EAAAA,KAACI,EAAAA,QAAO,CAACC,MAAOT,EAAQC,UACrBS,EAAAA,EAAAA,eACCX,EACA,IAAKG,EAAOJ,UAAWa,IAAWC,EAAgBd,IAClDG,KAMD,IAAI,EAGbN,EAAYkB,aAAe,CACzBhB,KAAM,SACNE,QAAS,OACTC,QAAS,4EAGX,S","sources":["webpack://@kne-components/components-core/./src/components/Permissions/style.module.scss?e327","components/Permissions/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"outer\":\"style_outer__vbHB9__8lUc4\"};","import { createElement } from \"react\";\nimport { Result, Tooltip } from \"antd\";\nimport get from \"lodash/get\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport { useGlobalContext, usePreset } from \"@components/Global\";\n\nexport const computedIsPass = ({ permissions, request }) => {\n return Array.isArray(request) && request.length > 0\n ? request.some((currentKey) => (permissions || []).indexOf(currentKey) > -1)\n : true;\n};\n\nexport const usePermissions = () => {\n const { global } = useGlobalContext();\n const { permissions, permissionsPath } = usePreset();\n return {\n permissions:\n global.permissions ||\n permissions ||\n (permissionsPath && get(global, permissionsPath)) ||\n [],\n };\n};\n\nexport const usePermissionsPass = ({ request }) => {\n const { permissions } = usePermissions();\n return computedIsPass({ permissions, request });\n};\n\nconst Permissions = ({\n type,\n className,\n tagName,\n message,\n request,\n children,\n ...props\n}) => {\n const isPass = usePermissionsPass({ request });\n if (typeof children === \"function\") {\n return children({ isPass, type, request });\n }\n\n if (isPass === true) {\n return children;\n }\n\n if (type === \"error\") {\n return <Result status=\"403\" subTitle={message} />;\n }\n\n if (type === \"tooltip\") {\n return (\n <Tooltip title={message}>\n {createElement(\n tagName,\n { ...props, className: classnames(style[\"outer\"], className) },\n children\n )}\n </Tooltip>\n );\n }\n\n return null;\n};\n\nPermissions.defaultProps = {\n type: \"hidden\",\n tagName: \"span\",\n message: \"您暂无权限,请联系管理员\",\n};\n\nexport default Permissions;\n"],"names":["computedIsPass","_ref","permissions","request","Array","isArray","length","some","currentKey","indexOf","usePermissions","global","useGlobalContext","permissionsPath","usePreset","get","usePermissionsPass","_ref2","Permissions","_ref3","type","className","tagName","message","children","props","isPass","_jsx","Result","status","subTitle","Tooltip","title","createElement","classnames","style","defaultProps"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/3142.8eb71b87.chunk.js","mappings":"2TACA,QAAwB,4B,0BCMjB,MAAMA,EAAiBC,IAA+B,IAA9B,YAAEC,EAAW,QAAEC,GAASF,EACrD,QAAOG,MAAMC,QAAQF,IAAYA,EAAQG,OAAS,IAC9CH,EAAQI,MAAMC,IAAgBN,GAAe,IAAIO,QAAQD,IAAe,GACpE,EAGGE,EAAiBA,KAC5B,MAAM,OAAEC,IAAWC,EAAAA,EAAAA,qBACb,YAAEV,EAAW,gBAAEW,IAAoBC,EAAAA,EAAAA,aACzC,MAAO,CACLZ,YACES,EAAOT,aACPA,GACCW,GAAmBE,IAAIJ,EAAQE,IAChC,GACH,EAGUG,EAAqBC,IAAkB,IAAjB,QAAEd,GAASc,EAC5C,MAAM,YAAEf,GAAgBQ,IACxB,OAAOV,EAAe,CAAEE,cAAaC,WAAU,EAG3Ce,EAAcC,IAQb,IARc,KACnBC,EAAI,UACJC,EAAS,QACTC,EAAO,QACPC,EAAO,QACPpB,EAAO,SACPqB,KACGC,GACJN,EACC,MAAMO,EAASV,EAAmB,CAAEb,YACpC,MAAwB,oBAAbqB,EACFA,EAAS,CAAEE,SAAQN,OAAMjB,aAGnB,IAAXuB,EACKF,EAGI,UAATJ,GACKO,EAAAA,EAAAA,KAACC,EAAAA,OAAM,CAACC,OAAO,MAAMC,SAAUP,IAG3B,YAATH,GAEAO,EAAAA,EAAAA,KAACI,EAAAA,QAAO,CAACC,MAAOT,EAAQC,UACrBS,EAAAA,EAAAA,eACCX,EACA,IAAKG,EAAOJ,UAAWa,IAAWC,EAAgBd,IAClDG,KAMD,IAAI,EAGbN,EAAYkB,aAAe,CACzBhB,KAAM,SACNE,QAAS,OACTC,QAAS,4EAGX,S","sources":["webpack://@kne-components/components-core/./src/components/Permissions/style.module.scss?e327","components/Permissions/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"outer\":\"style_outer__vbHB9__3pKBI\"};","import { createElement } from \"react\";\nimport { Result, Tooltip } from \"antd\";\nimport get from \"lodash/get\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport { useGlobalContext, usePreset } from \"@components/Global\";\n\nexport const computedIsPass = ({ permissions, request }) => {\n return Array.isArray(request) && request.length > 0\n ? request.some((currentKey) => (permissions || []).indexOf(currentKey) > -1)\n : true;\n};\n\nexport const usePermissions = () => {\n const { global } = useGlobalContext();\n const { permissions, permissionsPath } = usePreset();\n return {\n permissions:\n global.permissions ||\n permissions ||\n (permissionsPath && get(global, permissionsPath)) ||\n [],\n };\n};\n\nexport const usePermissionsPass = ({ request }) => {\n const { permissions } = usePermissions();\n return computedIsPass({ permissions, request });\n};\n\nconst Permissions = ({\n type,\n className,\n tagName,\n message,\n request,\n children,\n ...props\n}) => {\n const isPass = usePermissionsPass({ request });\n if (typeof children === \"function\") {\n return children({ isPass, type, request });\n }\n\n if (isPass === true) {\n return children;\n }\n\n if (type === \"error\") {\n return <Result status=\"403\" subTitle={message} />;\n }\n\n if (type === \"tooltip\") {\n return (\n <Tooltip title={message}>\n {createElement(\n tagName,\n { ...props, className: classnames(style[\"outer\"], className) },\n children\n )}\n </Tooltip>\n );\n }\n\n return null;\n};\n\nPermissions.defaultProps = {\n type: \"hidden\",\n tagName: \"span\",\n message: \"您暂无权限,请联系管理员\",\n};\n\nexport default Permissions;\n"],"names":["computedIsPass","_ref","permissions","request","Array","isArray","length","some","currentKey","indexOf","usePermissions","global","useGlobalContext","permissionsPath","usePreset","get","usePermissionsPass","_ref2","Permissions","_ref3","type","className","tagName","message","children","props","isPass","_jsx","Result","status","subTitle","Tooltip","title","createElement","classnames","style","defaultProps"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[36],{18411:(e,t,n)=>{n.d(t,{A:()=>a});n(73884);const a=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},93761:(e,t,n)=>{n.d(t,{qn:()=>T,TM:()=>G,LH:()=>P,Ay:()=>D,NY:()=>L,DF:()=>R});var a=n(30509),l=n(25438),s=n(55199),r=n(27047),o=n(83136),i=n.n(o),c=n(64671),d=n(73884),u=n(21485),p=n(56434),m=n.n(p),h=n(15797),_=n.n(h),g=n(33097),f=n.n(g);const x="style_address__DIuRX__3pKBI",y="style_is-popup__tqVvp__3pKBI",v="style_title__FAe12__3pKBI",C="style_scroll-box__JWiDl__3pKBI",j="style_scroll-plus-box__lidEW__3pKBI",b="style_content__lAARZ__3pKBI",A="style_col-left__WPfeS__3pKBI",N="style_col-right__z0e9-__3pKBI";var I=n(87558),S=n.n(I);const w=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var B=n(58609),K=n(70579);const O=a.A.useContext,P=e=>{let{city:t,province:n,country:a}=e;const l=_()((()=>{const e=[];return["gangaotai","municipality"].forEach((n=>{e.push(...t.relations[n])})),["provinces","continents"].forEach((n=>{t.relations[n].forEach((n=>{e.push(n),e.push(...t.relations[n])}))})),e.map((e=>t.list[e]))}));return{getCity:_()((e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}})),getChinaHotCities:_()((()=>t.relations[2].map((e=>t.list[e])))),getChinaCities:_()((()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map((e=>Object.assign({id:e},t.list[e]))))),getCountries:_()((()=>["1",...a.relations.continents].map((e=>Object.assign({id:e},a.list[e]))))),getList:_()(((e,l)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map((e=>t.list[e]));const o=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return o.name=""+(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map((e=>t.list[e]));return n.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),a.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i})),getNationalityList:_()((e=>{let n=m()(t);return"1"===e&&n.relations[1].unshift("410"),"350"===e&&n.relations[350].unshift("410"),n.relations[e].filter((e=>n.list[e])).map((e=>n.list[e]))})),getCityByName:_()((e=>{const t=l();let n;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find((e=>(n=t.find(e),n))),n})),combineCities:_()(((e,n)=>[...n.filter((n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n)),e])),searchCities:_()((e=>{if(!e)return[];return l().filter((t=>["pinyin","name","enName","spelling"].some((n=>t[n].toUpperCase().indexOf(e.toUpperCase())>-1)))).map((e=>{const n=e.parentCode?t.list[e.parentCode]:null;return{label:n?`${n.name}\xb7${e.name}`:e.name,value:e.code}}))}))}},L=(e,t)=>"en-US"===t?f()(e,"enName"):f()(e,"name"),k={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7820).then(n.t.bind(n,37820,19)).then((e=>e.__esModule?e.default:e))},M=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:o}=O(),[p,m]=(0,d.useState)(""),[h,_]=(0,d.useState)("2"),{formatMessage:g}=(0,B.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,r.A)(),{getCity:I,getChinaCities:S,getCountries:w,getList:k,searchCities:M}=(0,d.useMemo)((()=>P(a.data)),[a.data]),F=e=>{if(o.single)return void n([e]);const a=t.slice(0),l=a.indexOf(e);l>-1?a.splice(l,1):a.push(e),n(a)},T=p&&(0,K.jsx)(u.A,{className:j,children:(0,K.jsx)(s.List,{className:l.A.list,size:"small",dataSource:M(p),rowKey:"value",renderItem:e=>(0,K.jsx)(s.List.Item,{className:l.A["list-item"],onClick:()=>{F(e.value),m("")},children:(0,K.jsx)("span",{className:l.A["item-label"],children:e.label})})})});return(0,K.jsxs)("div",{className:i()(x,{[y]:o.isPopup}),children:[(0,K.jsx)(s.Input.Search,{className:i()(l.A["search-input"],{[l.A["is-popup"]]:o.isPopup}),placeholder:o.searchPlaceholder||g({id:"searchCity"}),prefix:(0,K.jsx)(c.default,{type:"icon-sousuo"}),enterButton:(0,K.jsx)(c.default,{type:"icon-sousuo"}),value:p,allowClear:!0,onChange:e=>{const t=e.target.value;m(t)},onSearch:e=>{m(e)}}),(0,K.jsx)("div",{className:b,children:T||(0,K.jsxs)(s.Row,{wrap:!1,children:[(0,K.jsx)(s.Col,{className:A,children:(0,K.jsx)(s.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,K.jsx)(B.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,K.jsx)(u.A,{className:C,children:(0,K.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:S().map((e=>({label:L(e,f),key:e.id})))})})},{key:"1",label:(0,K.jsx)(B.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,K.jsx)(u.A,{className:C,children:(0,K.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map((e=>({label:L(e,f),key:e.id})))})})}]})}),(0,K.jsxs)(s.Col,{flex:1,className:N,children:[(0,K.jsx)(s.Divider,{className:v,orientation:"left",children:L(I(h).city,f)}),(0,K.jsx)(u.A,{className:C,children:(0,K.jsx)(s.Space,{wrap:!0,children:k(h,{showChinaQuan:o.showChinaQuan,showForeignQuan:o.showForeignQuan}).map((e=>(0,K.jsx)(s.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{F(e.code)},children:L(e,f)},e.code)))})})]})]})})]})},F=e=>(0,K.jsx)(a.A,{...e,children:e=>{let{value:t,setValue:n}=e;return(0,K.jsx)(B.IntlProvider,{moduleName:"AddressSelect",importMessages:w,children:(0,K.jsx)(M,{value:t,setValue:n})})}});F.defaultProps={overlayWidth:"500px",isPopup:!0,api:k,dataFormat:(e,t)=>{let{city:n}=e;const{locale:a}=Object.assign({},t);return{list:Object.values(n.list).map((e=>Object.assign({},e,{value:e.code,label:L(e,a)})))}}};const T=(0,I.withFetch)((e=>{let{name:t,data:n,getAddressApi:a,children:l,...s}=e;const{locale:o}=(0,r.A)(),i=(0,d.useMemo)((()=>P(n)),[n]);return a?l(i):(0,K.jsx)(S(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise((e=>{setTimeout((()=>{e(i.getCity(n))}),0)}))},render:e=>{let{data:t}=e;return l(t,Object.assign({},s,{locale:o}))}})}));T.defaultProps={...k,displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?`${L(a,s)}\xb7${L(n,s)}`:L(n,s)}};const R=e=>{const t=(0,I.withFetch)((t=>{let{data:n,...a}=t;const l=(0,d.useMemo)((()=>P(n)),[n]);return(0,K.jsx)(e,{...a,addressApi:l})}));return t.defaultProps={...k},t};F.AddressEnum=F.Enum=T,F.createAddressApi=P,F.withAddressApi=R,F.getLabelForLocal=L;const D=F;var E=n(10986),z=n.n(E),V=n(78491),W=n.n(V),U=n(20492),$=n(22616),q=n.n($),H=n(1488),Q=n.n(H);const Z=e=>{const{isPopup:t,size:n,disabled:a,inputPlaceholder:l,onBlur:r,className:o,...i}=e,[c,d]=z()(e),u=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:p}=(0,B.useIntl)({moduleName:"Common"}),m=W()((e=>{r&&r(e)}));return(0,K.jsx)("div",{ref:m,children:(0,K.jsxs)(s.Row,{gutter:10,children:[(0,K.jsx)(s.Col,{span:12,children:(0,K.jsx)(D,{...q()(i,u),className:o,disabled:a,single:!0,size:n,value:f()(c,"city"),onChange:e=>{d({city:e,detail:f()(c,"detail")})}})}),(0,K.jsx)(s.Col,{span:12,children:(0,K.jsx)(s.Input,{...Q()(i,u),className:o,placeholder:l||p({id:"pleaseInput"}),disabled:a,size:n,value:f()(c,"detail"),onChange:e=>{d({city:f()(c,"city"),detail:e.target.value})}})})]})})};Z.defaultProps={};const G=(0,B.createWithIntl)({importMessages:U.A,moduleName:"Common"})(Z)},12392:(e,t,n)=>{n.d(t,{Bm:()=>z,Eo:()=>D,NR:()=>A,Ay:()=>V});var a=n(55199),l=n(83136),s=n.n(l),r=n(30509),o=n(25438),i=n(26475),c=n(33097),d=n.n(c),u=n(34677),p=n.n(u);const m="create-list_scroll-loader__zoaS7__3pKBI",h="create-list_is-popup__t3d-G__3pKBI",_="create-list_is-not-full__FXtX1__3pKBI",g="create-list_search-input__tV3vf__3pKBI",f="create-list_left__EXr3i__3pKBI",x="create-list_list-header__3xeJa__3pKBI",y="create-list_is-modal__BMfya__3pKBI";var v=n(73161),C=n(58609),j=n(70579);const b=r.A.useContext,A=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:c,setSearchText:u,props:A,mapping:N}=b(),I=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},A.pagination),S=d()(r.requestParams,[I.paramsType,I.current],1),w=d()(r.requestParams,[I.paramsType,I.pageSizeName])||I.pageSize,{formatMessage:B}=(0,C.useIntl)({moduleName:"Common"}),K=A.dataFormat(r.data),{right:O,leftBottom:P,leftSpan:L=24}=A,k=1===n.length&&"all"===n[0];return(0,j.jsxs)(a.Row,{wrap:!1,className:O?s()("is-not-full",_):"",children:[(0,j.jsxs)(a.Col,{span:L,className:s()(f,"advance-select-left"),children:[A.getSearchProps?(0,j.jsx)(v.A,{isPopup:A.isPopup,className:s()(g,o.A["search-input"],{[o.A["is-popup"]]:A.isPopup}),placeholder:A.searchPlaceholder||B({id:"search"}),value:c,onSearch:e=>{r.reload(A.getSearchProps(e)),u(e)}}):null,A.single||!A.showSelectedCount&&!A.allowSelectAll?null:(0,j.jsxs)(a.Flex,{className:s()(x,{[y]:!A.isPopup}),justify:"space-between",children:[A.showSelectedCount?(0,j.jsxs)(a.Space,{children:[(0,j.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,j.jsx)(a.Typography.Link,{children:k?A.allLabel||(0,j.jsx)(C.FormattedMessage,{id:"all",moduleName:"Common"}):`${n.length}${A.countUnit||B({id:"items"})}`})]}):(0,j.jsx)("div",{}),A.allowSelectAll?(0,j.jsx)("div",{children:(0,j.jsx)(a.Checkbox,{checked:k,onChange:e=>{l(e.target.checked?[A.allValue||"all"]:[])},children:(0,j.jsx)(C.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:A.allLabel||(0,j.jsx)(C.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,j.jsx)("div",{})]}),(0,j.jsx)(i.A,{completeTips:"",isLoading:!r.isComplete,className:s()(m,{[h]:A.isPopup}),noMore:!K.total||S*w>=K.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(p()({[I.paramsType]:{[I.pageSizeName]:w,[I.current]:S+1}},A.getSearchProps&&A.getSearchProps(c)),A.mergeList)},children:t({props:A,value:n,setValue:l,list:K.list,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:k,onSelect:e=>{if(A.single)return void l([e.value]);const t=n.slice(0),a=t.indexOf(e.value);a>-1?t.splice(a,1):t.push(e.value),l(t)}})}),P&&P({fetchApi:r,value:n,mapping:N})]}),O&&O({value:n,mapping:N,fetchApi:r})]})},c=e=>{let{extra:t,...n}=e;return(0,j.jsx)(r.A,{...n,extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,j.jsx)(l,{value:t,setValue:n})}})};return c.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},n),c},N="list_list__TGynD__3pKBI",I="list_list-item__WSswf__3pKBI",S="list_is-selected__6Wkgt__3pKBI",w="list_item-label__bYzhe__3pKBI",B="list_item-des__2nsEn__3pKBI",K="list_is-disabled__qxCvO__3pKBI",O="list_is-selected-all__Mp-hG__3pKBI";var P=n(40438),L=n(64671);const k="user_list-inner__V508e__3pKBI",M="user_list-info__y2nWo__3pKBI",F="user_selected-icon__9OQJL__3pKBI",T="user_item-des__o+7UR__3pKBI",R="user_is-selected-all__2q0VZ__3pKBI",D=A({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:r}=e;return(0,j.jsx)(a.List,{size:"small",className:s()(N,{[O]:r,[R]:r}),dataSource:t,renderItem:e=>{const t=l(e);return(0,j.jsx)(a.List.Item,{className:s()(I,{[S]:t}),onClick:()=>n(e),children:(0,j.jsxs)(a.Row,{wrap:!1,align:"middle",className:k,children:[(0,j.jsx)(a.Col,{children:(0,j.jsx)(P.default.Avatar,{...Object.assign({},e.avatar),size:40,gender:"M"})}),(0,j.jsx)(a.Col,{className:M,flex:1,children:(0,j.jsxs)(a.Space,{direction:"vertical",children:[(0,j.jsx)("span",{className:w,children:e.label}),e.description&&(0,j.jsx)("span",{className:T,children:e.description})]})}),(0,j.jsx)(a.Col,{children:r||t?(0,j.jsx)(L.default,{className:F,type:"icon-gouxuan"}):null})]})})}})}}),E={"is-selected-all":"table_is-selected-all__IwXUY__3pKBI"},z=A({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,j.jsx)(a.Table,{className:s()(E.list,N,{[O]:c,[E["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map((e=>{let{value:t}=e;return t})),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),V=A({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,j.jsx)(a.List,{className:s()(N,i,{[O]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const i=l(e);return(0,j.jsxs)(a.List.Item,{className:s()(I,{[S]:t.single&&i,[K]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,j.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,j.jsx)(a.Col,{children:(0,j.jsx)(a.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,j.jsx)(a.Col,{children:(0,j.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,j.jsx)("span",{className:w,children:e.label}),e.description&&(0,j.jsx)("span",{className:B,children:e.description})]})})]}),i&&c]})}})}})},45776:(e,t,n)=>{n.d(t,{yK:()=>O,ON:()=>h,Ay:()=>F});var a=n(30509),l=n(73884),s=n(96418),r=n.n(s),o=n(55199),i=n(64671),c=n(73161),d=n(33097),u=n.n(d),p=n(79686),m=n.n(p);const h=e=>{const t=Array.from(e.values()),n=t.filter((e=>null===e.parentId)),a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],a=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach((e=>{a(e.id)})))};return a(t),n},s=(t,n)=>{const a=t=>{const l=e.get(t);return l?n(l)?l:m()(l.parentId)?null:a(l.parentId):null};return a(t)},r=t=>{const a=e.get(t);if(!a)return[];const l=a.parentId;if(m()(l))return n;return e.get(l).children},o=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map((n=>{const a=t.filter((e=>e.parentId===n.id));return Object.assign({},n,{children:e(a)})})):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const a=e=>{if(e.children&&e.children.length>0)return a(e.children.find((t=>t.children&&e.children.length>0))||u()(e.children,"0"));const t=l(e.parentId).find((e=>e.children&&e.children.length>0));return t?a(t):e},s=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],a=e.get(t);return!a||m()(a.parentId)?n:s(a.parentId,n)},r=a(n);return s(u()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,(e=>n.indexOf(e.id)>-1)))return{checked:!0,indeterminate:!1};const a=(t=>{const a=t=>{const l=e.get(t);return l?(s=l,n.indexOf(s.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find((e=>!!a(e.id))):void 0):null;var s};return!!a(t)})(t);return a?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;n.push(t),l(t).forEach((e=>{a(n,e.id)}));const i=r(t),c=i.every((e=>n.indexOf(e.id)>-1));o.parentId&&c&&(i.forEach((e=>{a(n,e.id)})),s(o.parentId))};return s(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const s=e.get(t);if(!s)return;if(n.indexOf(s.id)>-1)return void a(n,s.id);const o=r(t);s.parentId&&(o.forEach((e=>{t!==e.id&&n.push(e.id)})),l(s.parentId))};return l(t),n},treeData:o,treeMapping:new Map(o.map((e=>[e.id,e])))}};var _=n(74065),g=n.n(_),f=n(19853),x=n.n(f),y=n(17342),v=n(83136),C=n.n(v);const j={content:"style_content__Hxlt9__3pKBI",columns:"style_columns__FmtPF__3pKBI","content-item":"style_content-item__i6HCO__3pKBI","last-level-area":"style_last-level-area__2y7jQ__3pKBI","is-popup":"style_is-popup__+r3Mn__3pKBI",menu:"style_menu__WZUVE__3pKBI","scroll-plus-box":"style_scroll-plus-box__QcTst__3pKBI","menu-label":"style_menu-label__iGt0Z__3pKBI","menu-item":"style_menu-item__hXHfm__3pKBI","checkbox-hidden":"style_checkbox-hidden__Xpx7J__3pKBI",loading:"style_loading__ZwrVe__3pKBI"};var b=n(87558),A=n(58609),N=n(25438),I=n(70579),S=n(27047);const w=new Map,B=(0,b.withFetch)((e=>{let{data:t,name:n,type:a,cache:s,children:r,getLabel:o,...i}=e;const c=(0,l.useMemo)((()=>new Map(t.map((e=>[e.code,{...e,id:e.code,label:o?o(e):e.chName,parentId:e.parentCode||null}])))),[t,o]).get(n);return w.set(`${n}_${a}`,c),r(c,i)})),K=e=>{const{locale:t}=(0,S.A)(),n=`${t}_${e.name}_${e.type}`,a=w.get(n);return a&&!e.force?e.children(a):(0,I.jsx)(B,{...e})};K.defaultProps={children:e=>u()(e,"label","")};const O=K,P=a.A.useContext,L=(0,b.withFetch)((e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,I.jsx)(y.A,{className:j["scroll-plus-box"],children:(0,I.jsx)(o.List,{className:N.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,I.jsx)(o.List.Item,{className:C()(N.A["list-item"],{[N.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,I.jsx)("span",{className:N.A["item-label"],children:e.label})})}})})})),k=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:d,props:p}=P(),[m,_]=(0,l.useState)(""),f=r()(p.dataFormat),{formatMessage:v}=(0,A.useIntl)({moduleName:"Common"}),b=d.data,S=(0,l.useMemo)((()=>new Map(f(b).list.map((e=>[e.value,e])))),[b,f]),w=(0,l.useMemo)((()=>h(S)),[S]),B=(0,l.useRef)({});B.current={createMergeTree:p.createMergeTree,loadMore:d.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:w};const[K,O]=(0,l.useState)((()=>{const e=t.find((e=>!!S.get(e)));return w.getSelectedQueue(e||u()(d.data.find((e=>e.children&&e.children.length>0)),"id")||u()(d.data,"[0].id"),S)}));(0,l.useEffect)((()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:a,treeUtils:l}=B.current;if(!e)return;const s=S.get(g()(K));if(!s)return;const r=l.getSelectedQueue(s.id);x()(K,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):O(r)}),[K,S]);const k=(e,l)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?w.setNodeChecked(l,t):w.setNodeUnchecked(l,t)})();s.length>a?o.message.error(v({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[g()(s)]:s)},M=e=>{const t=S.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},F=!p.openLoadData&&"function"===typeof p.onSearch,T=F&&m&&(0,I.jsx)(L,{data:{searchText:m},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:S})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{k(!t,e.id),!t&&O(w.getSelectedQueue(e.id,S)),_("")}});return(0,I.jsxs)("div",{className:C()(j.content,{[j["is-popup"]]:p.isPopup,[j["has-search"]]:F}),style:{"--menu-item-width":p.menuItemWidth},children:[F&&(0,I.jsx)(c.A,{isPopup:p.isPopup,className:C()(N.A["search-input"],{[N.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||v({id:"search"}),value:m,onSearch:e=>{_(e)}}),T||(0,I.jsx)("div",{children:(0,I.jsx)(y.A,{className:j.scroller,options:{autoHide:!1},children:(0,I.jsxs)("div",{className:j.columns,children:[K.map(((e,n)=>{const a=S.get(e),r=w.getSiblingNode(e),c=!M(null===a||void 0===a?void 0:a.id)&&n>0;return(0,I.jsx)(y.A,{className:C()(j["content-item"],{[j["last-level-area"]]:c}),children:c?(0,I.jsx)(o.Space,{wrap:!0,children:r.map((e=>(0,l.createElement)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>k(t.target.checked,e.id)},e.label)))}):(0,I.jsx)(o.Menu,{className:C()(j.menu),onSelect:e=>{const n=S.get(e.key);if(n)if(M(n.id))O(w.getSelectedQueue(n.id,S));else{const{checked:e}=w.computedCheckboxStatus(n.id,t);k(!e,n.id)}},selectedKeys:n===K.length-1?[]:K,items:r.map((e=>({key:e.id,label:(0,I.jsxs)(o.Space,{className:C()(j["menu-item"],{[j["checkbox-hidden"]]:p.onlyAllowLastLevel&&M(e.id)}),children:[!p.onlyAllowLastLevel&&(0,I.jsx)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>k(t.target.checked,e.id)}),(0,I.jsx)("div",{className:j["menu-label"],children:e.label}),M(e.id)&&(0,I.jsx)(i.default,{className:j["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})})))})},u()(r,"[0].id",n))})),d.isComplete?null:(0,I.jsx)("div",{className:j.loading,children:(0,I.jsx)(o.Spin,{size:"small"})})]})})})]})},M=e=>{let{maxLength:t,nodeFormat:n,dataFormat:l,...s}=e;return(0,I.jsx)(a.A,{...s,dataFormat:e=>l(e,n),children:e=>{let{value:n,setValue:a}=e;return(0,I.jsx)(k,{...s,size:t,value:n,setValue:a})}})};M.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:n}=t;return Array.from(n.values()).filter((t=>t.label.indexOf(e)>-1))},dataFormat:(e,t)=>{const n=(e,a)=>{const l=[];return l.push(...(e||[]).map((e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...n(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:a}))))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const a=t=>t.map((t=>t.id===e?Object.assign({},t,{children:n&&n.map((t=>Object.assign({},t,{parentId:e})))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:a(t.children)}):t));return a(t)}};const F=M},41654:(e,t,n)=>{n.d(t,{A:()=>m,K:()=>p});var a=n(45776),l=n(27047),s=n(33097),r=n.n(s),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c=()=>n.e(719).then(n.t.bind(n,10719,19)).then((e=>e.__esModule?e.default:e)),d={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:c},u=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,a.ON)(new Map(t.map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},c.functionData)})};u.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},u.defaultData=c;const p=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.yK,{...n,...c.functionData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};u.FunctionEnum=u.Enum=p;const m=u},53392:(e,t,n)=>{n.d(t,{A:()=>p,W:()=>u});var a=n(45776),l=n(27047),s=n(33097),r=n.n(s),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7183).then(n.t.bind(n,57183,19)).then((e=>e.__esModule?e.default:e))},d=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,a.ON)(new Map(t.filter((e=>"000"!==e.code)).map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},d.industryData)})};d.defaultProps={overlayWidth:"635px"};const u=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.yK,{...n,...d.industryData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};d.IndustryEnum=d.Enum=u;const p=d},26475:(e,t,n)=>{n.d(t,{A:()=>_});var a=n(73884),l=n(55199),s=n(96418),r=n.n(s),o=n(17342),i=n(83136),c=n.n(i),d=n(51941);const u="style_scroller-no-more__EH2J+__3pKBI";var p=n(70579);const m=e=>{let{getScrollerRef:t,loadMore:n,maxFullCount:l}=e;const s=r()(n),o=r()(t);return(0,a.useEffect)((()=>{let e=l;const t=o(),n=async()=>{t.clientHeight===t.scrollHeight&&e>0&&(await s().then((()=>new Promise((e=>{setTimeout(e,500)})))),e--,await n())};n()}),[l,s,o]),null},h=(0,a.forwardRef)(((e,t)=>{let{className:n,noMore:s,onLoader:i,isLoading:h,completeTips:_,maxFullCount:g,children:f}=e;const x=(0,a.useRef)(),y=r()(i),v=(0,a.useRef)(!s&&!h);v.current=!s&&!h,(0,a.useImperativeHandle)(t,(()=>x.current),[]);const C=(0,d.useThrottledCallback)((e=>{const t=e.target;v.current&&t.clientHeight+t.scrollTop+20>t.scrollHeight&&y()}),100);return(0,p.jsxs)(o.A,{className:c()("load-container",n),scrollableNodeProps:{ref:x,onScroll:C},children:[!h&&!s&&(0,p.jsx)(m,{maxFullCount:g,getScrollerRef:()=>x.current,loadMore:y}),(0,p.jsxs)(l.Space,{direction:"vertical",children:[(0,p.jsx)("div",{children:f}),h?(0,p.jsx)("div",{className:u,children:(0,p.jsx)(l.Spin,{size:"small"})}):null,s&&_?(0,p.jsx)("div",{className:u,children:_}):null]})]})}));h.defaultProps={maxFullCount:3,completeTips:"\u52a0\u8f7d\u5b8c\u6210"};const _=h},73161:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(55199),l=n(83136),s=n.n(l);const r="style_search-input__8aH1G__3pKBI",o="style_is-popup__L0973__3pKBI";var i=n(64671),c=n(73884),d=n(51941),u=n(70579);const p=e=>{let{value:t,debounce:n,onSearch:l,isPopup:p,placeholder:m,className:h,..._}=e;const[g,f]=(0,c.useState)(t),x=(0,c.useRef)(t),y=(0,d.useDebouncedCallback)(l,n);return(0,c.useEffect)((()=>{t!==x.current&&(f(t),x.current=t)}),[t]),(0,u.jsx)(a.Input.Search,{..._,allowClear:!0,className:s()(h,r,{[o]:p}),value:g,placeholder:m,prefix:(0,u.jsx)(i.default,{type:"icon-sousuo"}),enterButton:(0,u.jsx)(i.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;x.current=t,f(t),y(t)},onSearch:e=>{y(e)}})};p.defaultProps={debounce:500};const m=p},30509:(e,t,n)=>{n.d(t,{A:()=>V});const a={"ant-tag":"style_ant-tag__nNp8-__3pKBI",overlay:"style_overlay__La5mO__3pKBI",input:"style_input__SpJTE__3pKBI","is-disabled":"style_is-disabled__joxdl__3pKBI","input-icon":"style_input-icon__vVd8R__3pKBI",large:"style_large__En6mL__3pKBI",small:"style_small__DY0AQ__3pKBI","input-inner":"style_input-inner__PWy27__3pKBI","input-custom":"style_input-custom__ktsWD__3pKBI","display-content":"style_display-content__hIKo+__3pKBI","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__3pKBI","selected-tag":"style_selected-tag__zXZZO__3pKBI","selected-tag-list":"style_selected-tag-list__xUIms__3pKBI","selected-tag-inner":"style_selected-tag-inner__Z5gPL__3pKBI","text-inner":"style_text-inner__H24hY__3pKBI",placeholder:"style_placeholder__x0ccE__3pKBI","is-modal":"style_is-modal__JU+uq__3pKBI","overlay-content":"style_overlay-content__WKqp+__3pKBI"};var l=n(74981);const{context:s,useContext:r,Provider:o,Consumer:i}=(0,l.A)();var c=n(73884),d=n(10986),u=n.n(d),p=n(87558),m=n(33097),h=n.n(m),_=n(55199),g=n(83136),f=n.n(g),x=n(3382),y=n(64671),v=n(79686),C=n.n(v),j=n(41740),b=n.n(j),A=n(74065),N=n.n(A),I=n(21485),S=n(96418),w=n.n(S),B=n(77964),K=n(91176),O=n(58609),P=n(20492),L=n(27047),k=n(70579);const M=e=>{let{maxLength:t,single:n,setValue:a,value:l,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s(),l):e)},F=e=>{let{single:t,value:n,mapping:l,allValue:s,allLabel:r,onClose:o}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,k.jsx)("span",{className:a["text-inner"],children:h()(l.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(s||"all")?(0,k.jsx)("span",{className:a["text-inner"],children:r||(0,k.jsx)(O.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map((e=>{const t=l.get(e);return(0,k.jsx)(_.Tag,{className:a["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,k.jsx)("span",{className:a["tag-inner"],children:h()(t,"label")||e})},e)})):null},T=(0,c.forwardRef)(((e,t)=>{let{value:n,onChange:l,extra:s,showSelectedTag:r,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n),{formatMessage:h}=(0,O.useIntl)({moduleName:"Common"});m.current=n;const[g,f]=(0,c.useState)(!1),y=e=>{var t;f(e),null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},{message:v}=_.App.useApp(),C=M({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:()=>v.error(h({id:"maxSelectedCount"},{count:d.maxLength}))});return(0,c.useEffect)((()=>{g&&p(m.current)}),[g]),(0,c.useImperativeHandle)(t,(()=>({modalOpen:()=>{y(!0)},close:()=>{y(!1)}}))),(0,k.jsx)(x.default,{...d,open:g,onConfirm:()=>{l(u)},onClose:()=>{y(!1)},footer:(0,k.jsxs)(_.Space,{direction:"vertical",className:a["overlay-footer"],children:[s&&(0,k.jsx)("div",{className:a["overlay-footer-extra"],children:s}),r&&o({value:u,setValue:C})]}),children:"function"===typeof i?i({value:u,setValue:C}):i})})),R=(0,c.forwardRef)(((e,t)=>{let{value:n,setValue:l,children:s,renderSelectedContent:r,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,overlayClassName:g,disabled:x,...y}=e;const[v,C]=(0,c.useState)(!1),j=w()((e=>{var t;C(e),null===(t=y.onOpenChange)||void 0===t||t.call(y,e)}));return(0,c.useImperativeHandle)(t,(()=>({close:()=>{j(!1)}})),[j]),x?(0,k.jsx)("div",{className:a["input-inner"],children:d}):(0,k.jsx)(_.Popover,{...y,open:v,onOpenChange:j,transitionName:"ant-slide-up",overlayClassName:f()(a.overlay,g),arrow:!1,content:(0,k.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:f()(a["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,k.jsx)("div",{className:a["overlay-inner"],children:"function"===typeof s?s({value:n,setValue:e=>{(!u||n[0]!==e[0])&&l(e),u&&j(!1)}}):s}),(o||p)&&(0,k.jsxs)("div",{className:a["overlay-footer"],children:[p&&(0,k.jsx)("div",{className:a["overlay-footer-extra"],children:p}),o&&r({value:n,setValue:l})]})]}),trigger:"click",placement:i,children:(0,k.jsx)("div",{className:a["input-inner"],children:d})})})),D=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:l,...s}=e;const[o,i]=(0,c.useState)(!1),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=r(),{valueState:m,mapping:h,props:g,inputWidth:x}=p,[v,C]=m,{formatMessage:j}=(0,O.useIntl)({moduleName:"Common"}),{single:b,placement:A,getPopupContainer:N,placeholder:S,isPopup:B,disabled:P,showSelectedTag:L,extra:M,inputContent:D,allowClear:E,overlayClassName:z}=g,V=(0,c.useRef)(s);V.current=s;const W=w()(l);(0,c.useEffect)((()=>{W(B?u:d)}),[B,W]),(0,c.useEffect)((()=>{t(Object.assign({},V.current,{data:s.data,isComplete:s.isComplete}))}),[s.data,t,s.isComplete]);const U=F({single:b,value:v,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{C((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}}),$=e=>{let{value:t,setValue:n}=e;return(0,k.jsxs)(_.Space,{className:a["selected-tag"],align:"center",wrap:!1,children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(O.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,k.jsx)(I.A,{className:a["selected-tag-list"],children:(0,k.jsx)("div",{className:a["selected-tag-inner"],children:F({value:t,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}})})})]})},q=D?D(p):(0,k.jsxs)(_.Space,{className:a["display-content"],onMouseOver:()=>{i(!0)},onMouseOut:()=>{i(!1)},children:[(0,k.jsx)("div",{children:U||(0,k.jsx)("span",{className:a.placeholder,children:S||j({id:"pleaseSelect"})})}),o&&v&&v.length>0&&!P&&E?(0,k.jsx)(y.default,{className:f()(a.close,a["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),C([])}}):(0,k.jsx)(y.default,{className:f()(a["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return B?(0,k.jsx)(R,{ref:u,overlayWidth:(0,K.v)(Math.max(x,(0,K.j)(g.overlayWidth))),value:v,setValue:C,single:b,disabled:P,inputContent:q,onOpenChange:g.onOpenChange,overlayClassName:z,extra:"function"===typeof M?M({close:()=>u.current.close(),context:p}):M,renderSelectedContent:$,showSelectedTag:L,trigger:"click",placement:A,getPopupContainer:N,children:g.children}):(0,k.jsxs)("div",{className:a["input-inner"],onClick:()=>{P||d.current.modalOpen()},children:[(0,k.jsx)(T,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:f()(a.overlay,a["is-modal"],n),title:g.placeholder||j({id:"pleaseSelect"}),value:v,onChange:C,extra:"function"===typeof M?M({close:()=>d.current.close(),context:p}):M,showSelectedTag:L,renderSelectedContent:$,children:g.children}),q]})})),E=e=>{let{api:t,className:n,displayItems:l,wrapClassName:s,...r}=e;const{locale:i}=(0,L.A)(),[d,p]=(0,c.useState)(""),[m,g]=(0,c.useState)(new Map(l.map((e=>[e.value,e])))),{formatMessage:x}=(0,O.useIntl)({moduleName:"Common"}),[y,v]=(0,c.useState)(0),j=(0,B.A)((e=>{v(e.clientWidth)})),[A,I]=(0,c.useState)({}),{message:S}=_.App.useApp(),w=e=>{const t=e.filter((e=>m.get(e.value)!==e));0!==t.length&&g((e=>{const n=b()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},K=e=>((e,t)=>Array.isArray(e)&&e.every((e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label")))?(t(e),e.map((e=>e.value))):e)(r.single?C()(e)?[]:[e]:e||[],w,r.valueType),[P,F]=u()(Object.assign({},r,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map((e=>t.get(e))).filter((e=>!!e)))(e,m,r.valueType);r.onChange&&r.onChange(r.single?N()(t):t)}},"value"in r?{value:K(r.value)}:{defaultValue:K(r.defaultValue)})),T=M({maxLength:r.maxLength,single:r.single,setValue:F,value:P,message:()=>S.error(x({id:"maxSelectedCount"},{count:r.maxLength}))}),R=(0,c.useRef)(null);return(0,k.jsx)(o,{value:{inputWidth:y,mapping:m,searchText:d,setSearchText:p,appendMapping:w,setItems:e=>{A.setData(e),w(h()(r.dataFormat(e,{locale:i}),"list",[]))},getContentApi:()=>R.current,fetchApi:A,valueState:[P,T],props:r},children:(0,k.jsx)("div",{ref:j,className:f()(a["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],{"select-input-disabled":!!r.disabled},n),children:(0,k.jsx)(D,{...t,wrapClassName:s,loading:null,setFetchApi:I,getContentRef:e=>{e.current&&(R.current=e.current)},onRequestSuccess:e=>{w(h()(r.dataFormat(e,{locale:i}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};E.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const z=(0,O.createWithIntl)({importMessages:P.A,moduleName:"Common"})(E);z.useContext=r;const V=z},17342:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(8762),l=n.n(a);n(46733);const s=l()},21485:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(73884),l=n(44418),s=n.n(l),r=n(96418),o=n.n(r),i=n(70579);const c=(0,a.forwardRef)(((e,t)=>{let{children:n,onScroll:l,options:r,onReady:c,...d}=e;const u=(0,a.useRef)(null),p=(0,a.useRef)(null),m=(0,a.useRef)(r),h=o()(c),_=o()(l);return(0,a.useImperativeHandle)(t,(()=>p.current)),(0,a.useEffect)((()=>{const e=new(s())(u.current,m.current);return p.current=e.getScrollElement(),p.current.addEventListener("scroll",_),h(p.current),()=>{p.current.removeEventListener("scroll",_)}}),[_,h,n]),(0,i.jsx)("div",{...d,ref:u,children:n})}))},89319:(e,t,n)=>{n.d(t,{A:()=>u});var a=n(55199),l=n(10986),s=n.n(l),r=n(57469),o=n.n(r),i=n(20492),c=n(58609),d=n(70579);const u=(0,c.createWithIntl)({importMessages:i.A,moduleName:"Common"})((e=>{let{...t}=e;const{formatMessage:n}=(0,c.useIntl)({moduleName:"Common"}),l=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[r,i]=s()(t);return(0,d.jsxs)(a.Space.Compact,{children:[(0,d.jsx)(a.Select,{style:{width:"120px"},value:(null===r||void 0===r?void 0:r.type)||"date",onChange:e=>{i((t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[o()(t.value[0]).startOf(e||"date"),o()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}}))},options:Array.from(l).map((e=>{let[t,n]=e;return{label:n,value:t}}))}),(0,d.jsx)(a.DatePicker.RangePicker,{...t,picker:(null===r||void 0===r?void 0:r.type)||"date",value:Array.isArray(null===r||void 0===r?void 0:r.value)&&2===r.value.length&&r.value.map((e=>e&&o()(e))),onChange:e=>{i((t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]}))))}})]})}))},20492:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(3086).then(n.bind(n,13086)),"zh-CN":()=>n.e(4308).then(n.bind(n,84308))}[e]())},29574:(e,t,n)=>{n.d(t,{Zi:()=>_,FI:()=>g,AG:()=>f,Ay:()=>y,lN:()=>x});const a="style_input-file__3JGm6__3pKBI",l="style_input-file-input__Fb5iw__3pKBI";var s=n(83136),r=n.n(s),o=n(73884),i=n(55199),c=n(63908),d=n(28987),u=n(80111),p=n.n(u),m=n(70579);const h=e=>t=>{let{className:n,accept:s,multiple:i,onChange:c,children:d,...u}=t;const p=(0,o.useRef)(null);return(0,m.jsxs)(e,{...u,className:r()(n,a),children:[d,!0!==u.disabled&&(0,m.jsx)("input",{ref:p,type:"file",accept:s,multiple:i,className:l,onChange:e=>{const t=[].slice.call(e.target.files,0);0!==t.length&&(p.current.setAttribute("type","text"),p.current.setAttribute("type","file"),c(t))}})]})},_=h(i.Button),g=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(i.Typography.Link,{...n,className:t})})),f=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(i.Typography.Text,{...n,className:r()("ant-btn",t)})})),x=e=>{const{message:t}=i.App.useApp(),{multiple:n,fileSize:a,maxLength:l,value:s,concurrentCount:r,onAdd:u,onError:m,onSave:h,onChange:_,ossUpload:g}=Object.assign({},{concurrentCount:1,value:[]},e),{apis:f}=(0,c.usePreset)(),[x,y]=(0,o.useState)([]),v=(0,o.useRef)(r),C=(0,o.useMemo)((()=>(0,d.A)(v.current)),[]);return{fileList:x,onFileSelected:async e=>{const r=l-s.length;1!==l&&!0===n&&e.length>r?t.error(`\u4e0a\u4f20\u6587\u4ef6\u4e0d\u80fd\u8d85\u8fc7\u6700\u5927\u5141\u8bb8\u6570\u91cf${l}`):await Promise.allSettled(e.map((async e=>{if(e.size>1024*a*1024)return void t.error(`\u6587\u4ef6${e.name}\u4e0d\u80fd\u8d85\u8fc7${a}MB!`);const s=p()(),r=n=>{const a=n.message||`\u6587\u4ef6${e.name}\u4e0a\u4f20\u9519\u8bef${n.message?":"+n.message:""}`;t.error(a),m&&m({file:e,error:n,errMsg:a}),y((e=>{const t=e.slice(0),n=t.findIndex((e=>e.uuid===s));return n>-1&&t.splice(n,1),t}))};try{y(1===l||!0!==n?[{uuid:s,type:"uploading",filename:e.name}]:t=>{const n=t.slice(0);return n.unshift({uuid:s,type:"uploading",filename:e.name}),n}),u&&await Promise.resolve(u(e));const t=g||f.ossUpload,{data:a}=await C((()=>t({file:e})));if(0!==a.code)return void r(new Error(`\u6587\u4ef6${e.name}\u4e0a\u4f20\u5f02\u5e38${a.msg?":"+a.msg:""}`));const o=h?await Promise.resolve(h(a,e,s)):{filename:a.data.originalName||a.data.filename||e.name,id:a.data.id,ossId:a.data.id,uuid:s};y((e=>{const t=e.slice(0),n=t.findIndex((e=>e.uuid===s));return n>-1&&t.splice(n,1),t})),_(1===l||!0!==n?[o]:e=>{const t=e.slice(0);return t.push(o),t})}catch(o){r(o)}})))}}},y=h},97211:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(87558),l=n.n(a),s=n(63908),r=n(34677),o=n.n(r),i=n(70579);const c=e=>{const t=t=>{let{id:n,url:a,error:r,apis:c,loading:d,...u}=t;const{apis:p}=(0,s.usePreset)(),m=o()({},p,c);if(!n)return null;if(!m.oss)throw new Error("\u8bf7\u5728Global\u7ec4\u4ef6\u8bbe\u7f6epreset.apis.oss\u53c2\u6570");const{paramsType:h,paramsName:_,...g}=Object.assign({paramsType:"params",paramsName:"id"},m.oss),f={};return f[h]={[_]:n},(0,i.jsx)(l(),{...Object.assign({},g,f),updateType:"refresh",error:r,loading:d,cache:"oss-file",ttl:6e6,render:t=>{let{data:a}=t;return(0,i.jsx)(e,{...u,id:n,data:a})}})};return t.defaultProps={loading:null},t}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(83694),l=n(33097),s=n.n(l);const r=()=>{const e=(0,a.useGlobalContext)();return s()(e,"preset",{apis:{}})}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(73884),l=n(79889),s=n.n(l),r=n(93950),o=n.n(r),i=n(96418),c=n.n(i);const d=(e,t)=>{const n=(0,a.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,a.useRef)(null),r=c()(e);return(0,a.useLayoutEffect)((()=>{const e=l.current,t=()=>window.requestAnimationFrame((()=>{e&&r(e)}));t();const a=new ResizeObserver((n.current.isDebounce?o():s())(t,n.current.time));return e&&a.observe(e),()=>{a.disconnect()}}),[r]),l}},81348:(e,t,n)=>{n.d(t,{A:()=>a});const a=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),a=e.name||"",l=(e.type||"").toLowerCase(),s=l.replace(/\/.*$/,"");return n.some((e=>{const t=e.trim().toLowerCase();return"."===t.charAt(0)?a.toLowerCase().endsWith(t):t.endsWith("/*")?s===t.replace(/\/.*$/,""):l===t}))}return!0}},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>a});const a=1e15,l=e=>{let t,n,l,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=a)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(l=e.split("."),t=l[0],n=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let a=0;a<n;a++){let l=t.substr(a,1),i=n-a-1,d=i/4,u=i%4;"0"===l?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(l)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},74981:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,a.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,a.useContext)(t)}}},28987:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>{const t=[];let n=0;const a=()=>{if(0!==t.length){if(n<e){const e=t.shift();n+=1,e().finally((()=>{n-=1,a()}))}}else n=0};return e=>new Promise((n=>{t.push((()=>{const t=Promise.resolve().then((()=>e()));return n(t),t})),a()}))}},55490:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(12322),l=n.n(a),s=n(26727),r=n.n(s),o=n(54052),i=n.n(o);const c=e=>{if(l()(e)){const t=r()(e);return t.length>0&&t.some((e=>c(e)))}return i()(e)?e.length>0&&e.some((e=>c(e))):"number"===typeof e?!isNaN(e):!(void 0===e||null===e||""===e||0===e.length)},d=c},91176:(e,t,n)=>{n.d(t,{j:()=>l,v:()=>a});const a=e=>"number"===typeof e?`${e}px`:e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},36:(e,t,n)=>{n.r(t),n.d(t,{AddressEnum:()=>h.qn,AddressInputField:()=>h.TM,AddressSelectField:()=>h.Ay,AdvancedSelectField:()=>_.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>m.Zi,InputFileLink:()=>m.FI,InputFileText:()=>m.AG,ScrollLoader:()=>o.A,SearchInput:()=>u.A,SelectInnerInput:()=>p.A,SimpleBar:()=>d.A,SimpleBarBox:()=>c.A,TableField:()=>_.Bm,TypeDateRangePickerField:()=>y.A,UserField:()=>_.Eo,accept:()=>C.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>h.LH,createDeferred:()=>j.A,createListField:()=>_.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>b.A,numberToPx:()=>A.v,pxToNumber:()=>A.j,useFileUpload:()=>m.lN,useResize:()=>v.A,withAddressApi:()=>h.DF,withInputFile:()=>m.Ay,withOSSFile:()=>r.A});var a=n(69484),l=n(76801);const s=e=>{const t=e=>{const n=(0,l.h)();if(!e||e===n||!e.parentElement)return n;return[].slice.call(e.classList,0).find((e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1))?e:t(e.parentElement)};return t(e)};var r=n(97211),o=n(26475),i=n(73025),c=n(21485),d=n(17342),u=n(73161),p=n(30509),m=n(29574),h=n(93761),_=n(12392),g=n(45776),f=n(41654),x=n(53392),y=n(89319),v=n(77964),C=n(81348),j=n(28987),b=n(55490),A=n(91176)},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>A});var a=n(87558),l=n.n(a),s=n(97211),r=n(64671),o=n(83136),i=n.n(o),c=n(55199),d=n(73884);const u=e=>{let{params:t}=e;const{data:n}=t;return new Promise(((e,t)=>{const a=new window.Image;a.src=n,a.addEventListener("load",(()=>{e(n)})),a.addEventListener("error",(e=>{t(e)}))}))},p="style_img-outer__4QLY5__3pKBI",m="style_img__PSExq__3pKBI",h="style_loading__WCOwA__3pKBI",_="style_error__+ECgZ__3pKBI";var g=n(18411),f=n(63908),x=n(70579);const y=e=>{let{data:t,className:n,alt:a,innerLoading:s,loading:r,error:o,innerError:c,children:d,onClick:p,staticUrl:h}=e;const{staticUrl:_}=(0,f.usePreset)(),g=h||_||"";return(0,x.jsx)(l(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:g+t},error:c||o,loading:s||r,render:e=>{let{data:t}=e;return"function"===typeof d?d({alt:a,className:i()(n,m),src:t}):(0,x.jsx)("img",{alt:a,className:i()(n,m),src:t,onClick:p})}})},v=(0,s.A)(y),C=e=>{let{loading:t,error:n,src:a,id:l,alt:s,className:r,children:o,apis:i,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:h}),p=n&&(0,d.cloneElement)(n,{className:_});return a?(0,x.jsx)(y,{alt:s,className:r,data:a,loading:u,error:p,onClick:c,children:o}):l?(0,x.jsx)(v,{alt:s,className:r,id:l,loading:u,innerLoading:u,error:p,innerError:p,apis:i,onClick:c,children:o}):p},j=e=>{let{id:t,src:n,alt:a,onClick:l,loading:s,error:r,className:o,apis:c,...d}=e;return(0,x.jsx)("div",{...d,"data-testid":"components-core-image",className:i()(o,p),children:C({loading:s,error:r,src:n,id:t,alt:a,className:o,apis:c,onClick:l})})};j.Avatar=e=>{let{id:t,src:n,alt:a,gender:l,loading:s,error:o,className:d,gap:u,icon:m,children:h,shape:_,size:g,width:f,height:y,defaultAvatar:v,apis:j,...b}=e;const A=(()=>{const e=f&&y?{style:{width:f,height:y}}:{size:g};if(f&&f!==y&&(_="square"),t||n)return C({loading:s,error:o,src:n,defaultAvatar:v,id:t,alt:a,className:d,apis:j,children:t=>(0,x.jsx)(c.Avatar,{...t,gap:u,shape:_,...e})});if(l){const t=l&&["F","female","f"].indexOf(l)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,x.jsx)(c.Avatar,{...b,src:(0,x.jsx)(r.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:_,...e})}return(0,x.jsx)(c.Avatar,{...b,gap:u,icon:m,shape:_,size:g,src:v,...e,children:h})})();return(0,x.jsx)("div",{...b,"data-testid":"components-core-image-avatar",className:i()(d,p),style:{width:f&&y?f:g,height:f&&y?y:g},children:A})};const b={error:(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0})};j.defaultProps=Object.assign({},b),j.Avatar.defaultProps=Object.assign({},b,{size:100,defaultAvatar:g.A});const A=j},3382:(e,t,n)=>{n.r(t),n.d(t,{ModalButton:()=>P,TabsModal:()=>w,TabsModalButton:()=>O,default:()=>I,useConfirmModal:()=>N,useModal:()=>A,useTabsModal:()=>B});var a=n(73884),l=n(55199),s=n(83136),r=n.n(s);const o={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"},i=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var p=n(81014),m=n(17342),h=n(70579);const _="Modal",g=e=>{let{options:t,rightSpan:n=6,children:a}=e;return t?(0,h.jsxs)(l.Row,{wrap:!1,className:o["right-options-row"],children:[(0,h.jsx)(l.Col,{span:24-n,className:o["right-options-col"],children:a}),(0,h.jsx)(l.Col,{span:n,className:o["right-options-col"],children:t})]}):a},f=(e,t)=>e-48-(t?58:0)+"px",x=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":f(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":f(300,t)}}:{width:"1000px",style:{"--min-modal-height":f(500,t)}},y=e=>{let{footer:t,footerButtons:n,onConfirm:s,onCancel:r,onClose:o,targetProps:d}=e;return(0,h.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(l.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,h.jsx)(l.Col,{children:(0,h.jsx)(l.Space,{children:(n||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:r},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:_})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:l,autoClose:s=!0,display:r,...i}=e;const c=n||p.default;return(0,a.createElement)(c,{...i,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=await Promise.resolve(l&&l(...t,d));return s&&!1!==a&&o&&o(),a}})}))})})]})},v=e=>{let{title:t,footer:n,disabledScroller:s,footerButtons:i,onClose:c,closable:u,onConfirm:p,onCancel:_,children:g,targetProps:f}=e;const x=(0,a.useRef)(null);return(0,h.jsxs)("div",{className:o["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:o["modal-close"],type:"text",icon:(0,h.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,h.jsx)("div",{className:o["modal-title"],children:t}),(0,h.jsx)(m.A,{className:r()(o["modal-body"],{[o["is-disabled-scroller"]]:s},"modal-body"),ref:x,children:(0,h.jsx)("div",{className:r()(o["modal-body-inner"],"modal-body-inner"),children:g})}),null!==n||i?(0,h.jsx)("div",{className:r()(o["modal-footer"],"modal-footer"),children:(0,h.jsx)(y,{footer:n,footerButtons:i,onConfirm:p,onCancel:_,onClose:c,targetProps:f})}):null]})},C=e=>{let{withDecorator:t,footerButtons:n,title:a,closable:l,onClose:s,onConfirm:r,onCancel:o,footer:i,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:m,children:_}=e;const f=e=>(e=Object.assign({},{title:a},e),(0,h.jsx)(v,{title:u(e.title,{...e,childrenRef:m,close:s}),closable:l,onClose:s,onConfirm:r,onCancel:o,footerButtons:u(n,{...e,close:s}),disabledScroller:p,footer:u(i,{...e,childrenRef:m,close:s}),targetProps:Object.assign({},e,{childrenRef:m,close:s}),children:(0,h.jsx)(g,{rightSpan:d,options:u(c,{...e,childrenRef:m,close:s}),children:u(_,{...e,childrenRef:m,close:s})})}));return"function"===typeof t?t(f):f({})},j=e=>{let{children:t,rightOptions:n,rightSpan:a,footer:l,footerButtons:s,className:d,size:u,title:p,onClose:m,onConfirm:_,onCancel:g,closable:f,disabledScroller:y,withDecorator:v,childrenRef:j,...b}=e;return{...b,icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:r()(d,o.modal,o[u],{[o["right-options-modal"]]:n}),...x(u,!(null===l&&!s)),children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:"Modal",children:C({withDecorator:v,title:p,closable:f,onClose:m,onConfirm:_,onCancel:g,footer:l,footerButtons:s,rightOptions:n,rightSpan:a,disabledScroller:y,children:t,childrenRef:j})})}},b=e=>{const t=(0,a.useRef)(null);return(0,h.jsx)(l.Modal,{...j(Object.assign({},e,{childrenRef:t}))})};b.defaultProps={size:"default"};const A=()=>{const{modal:e}=l.App.useApp(),t=(0,a.useRef)(null);return n=>{const a={},{children:l,...s}=j({onClose:()=>a.close(),childrenRef:t,...n}),{destroy:r}=e.info({...s,content:l});return a.close=r,a}},N=()=>{const{modal:e}=l.App.useApp();return t=>{const n={},{type:a,icon:s,title:i,danger:c,wrapClassName:u,message:p,iconSetting:m={},confirmType:_="info",...g}={onClose:()=>n.close(),maskClosable:!1,...t},f=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},m);if(e[a]){const{destroy:t}=e[a]({...g,icon:null,wrapClassName:r()(o["confirm-modal-wrap"],u,{[o["is-danger"]]:c}),title:(0,h.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:i&&(0,h.jsxs)(l.Space,{size:0,align:"start",className:o.title,children:[c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||f["confirm"===a?_:a]}):null,i]})}),content:(0,h.jsxs)(l.Space,{size:0,align:"start",className:r()(o.content,{[o["has-title"]]:i}),children:[!i&&c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||f["confirm"===a?_:a]}):null,p]})});n.close=t}return n}},I=b,S=e=>{let{items:t,className:n,activeKey:a,withDecorator:s,defaultActiveKey:o,onChange:i,...c}=e;return{...c,className:r()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,h.jsx)(l.Tabs,{items:t.map((t=>{let{withDecorator:a,...l}=t;return Object.assign({},l,{children:"function"===typeof a?a((t=>e(Object.assign({},n,t,{children:l.children})))):e(Object.assign({},n,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:a,defaultActiveKey:o,onChange:i});return"function"===typeof s?s(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},w=e=>(0,h.jsx)(I,{...S(e)}),B=()=>{const e=A();return t=>e(S(t))};var K=n(73025);const O=e=>{const t=B();return e.api?(0,h.jsx)(K.A,{...e,modalFunc:t}):(0,h.jsx)(l.Button,{...e,onClick:()=>{t(e.modalProps)}})},P=e=>{const t=A();if(!e.api){const{modalProps:n,...a}=e;return(0,h.jsx)(l.Button,{...a,onClick:()=>{t(n)}})}return(0,h.jsx)(K.A,{...e,modalFunc:t})}},25438:(e,t,n)=>{n.d(t,{A:()=>a});const a={"search-input":"common_search-input__P6qLg__3pKBI","is-popup":"common_is-popup__fJq+g__3pKBI",list:"common_list__TKFzS__3pKBI","list-item":"common_list-item__ASse7__3pKBI","is-selected":"common_is-selected__-PU4Y__3pKBI","item-label":"common_item-label__u+qz1__3pKBI","item-des":"common_item-des__no2z0__3pKBI"}}}]);
2
+ //# sourceMappingURL=36.07c5e1a6.chunk.js.map