@kne-components/components-core 0.2.36 → 0.2.37

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 (175) hide show
  1. package/build/asset-manifest.json +126 -126
  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.03450da5.chunk.css +2 -0
  6. package/build/static/css/{1151.a80a80ff.chunk.css.map → 1151.03450da5.chunk.css.map} +1 -1
  7. package/build/static/css/1153.3faef118.chunk.css +2 -0
  8. package/build/static/css/{1153.43c11830.chunk.css.map → 1153.3faef118.chunk.css.map} +1 -1
  9. package/build/static/css/1154.4e83247f.chunk.css +2 -0
  10. package/build/static/css/1154.4e83247f.chunk.css.map +1 -0
  11. package/build/static/css/1454.d4260759.chunk.css +2 -0
  12. package/build/static/css/1454.d4260759.chunk.css.map +1 -0
  13. package/build/static/css/1554.d5581e19.chunk.css +2 -0
  14. package/build/static/css/{1554.dc6900d7.chunk.css.map → 1554.d5581e19.chunk.css.map} +1 -1
  15. package/build/static/css/{2503.7f8bcae5.chunk.css → 2503.60a49e7c.chunk.css} +2 -2
  16. package/build/static/css/{2503.7f8bcae5.chunk.css.map → 2503.60a49e7c.chunk.css.map} +1 -1
  17. package/build/static/css/{2517.474ff59f.chunk.css → 2517.6163bfe2.chunk.css} +2 -2
  18. package/build/static/css/{2517.474ff59f.chunk.css.map → 2517.6163bfe2.chunk.css.map} +1 -1
  19. package/build/static/css/2716.8e903843.chunk.css +2 -0
  20. package/build/static/css/{2716.c6d39931.chunk.css.map → 2716.8e903843.chunk.css.map} +1 -1
  21. package/build/static/css/{2730.ee227bea.chunk.css → 2730.22558faa.chunk.css} +2 -2
  22. package/build/static/css/{2730.ee227bea.chunk.css.map → 2730.22558faa.chunk.css.map} +1 -1
  23. package/build/static/css/{289.6b06b33f.chunk.css → 289.9209b6e4.chunk.css} +2 -2
  24. package/build/static/css/{289.6b06b33f.chunk.css.map → 289.9209b6e4.chunk.css.map} +1 -1
  25. package/build/static/css/{3142.b0539c73.chunk.css → 3142.d4231892.chunk.css} +2 -2
  26. package/build/static/css/{3142.b0539c73.chunk.css.map → 3142.d4231892.chunk.css.map} +1 -1
  27. package/build/static/css/{3843.09e9528d.chunk.css → 3843.b47c61bf.chunk.css} +2 -2
  28. package/build/static/css/{3843.09e9528d.chunk.css.map → 3843.b47c61bf.chunk.css.map} +1 -1
  29. package/build/static/css/4029.0576aca7.chunk.css +2 -0
  30. package/build/static/css/4029.0576aca7.chunk.css.map +1 -0
  31. package/build/static/css/4265.ced89574.chunk.css +2 -0
  32. package/build/static/css/{4265.e965e5b4.chunk.css.map → 4265.ced89574.chunk.css.map} +1 -1
  33. package/build/static/css/4666.e9a95e1f.chunk.css +2 -0
  34. package/build/static/css/{4666.5b71cb34.chunk.css.map → 4666.e9a95e1f.chunk.css.map} +1 -1
  35. package/build/static/css/5443.a7383489.chunk.css +2 -0
  36. package/build/static/css/{5443.18932897.chunk.css.map → 5443.a7383489.chunk.css.map} +1 -1
  37. package/build/static/css/5600.cebab92d.chunk.css +2 -0
  38. package/build/static/css/{5600.d3c5a68a.chunk.css.map → 5600.cebab92d.chunk.css.map} +1 -1
  39. package/build/static/css/{5873.892e8327.chunk.css → 5873.aae7f120.chunk.css} +2 -2
  40. package/build/static/css/{5873.892e8327.chunk.css.map → 5873.aae7f120.chunk.css.map} +1 -1
  41. package/build/static/css/{5996.bf590434.chunk.css → 5996.9865605d.chunk.css} +2 -2
  42. package/build/static/css/{5996.bf590434.chunk.css.map → 5996.9865605d.chunk.css.map} +1 -1
  43. package/build/static/css/{6611.bebe7241.chunk.css → 6611.6473b951.chunk.css} +2 -2
  44. package/build/static/css/{6611.bebe7241.chunk.css.map → 6611.6473b951.chunk.css.map} +1 -1
  45. package/build/static/css/6779.cda0ec27.chunk.css +2 -0
  46. package/build/static/css/{6779.132d5098.chunk.css.map → 6779.cda0ec27.chunk.css.map} +1 -1
  47. package/build/static/css/7121.2839aaa8.chunk.css +2 -0
  48. package/build/static/css/{7121.40c7a572.chunk.css.map → 7121.2839aaa8.chunk.css.map} +1 -1
  49. package/build/static/css/7227.6d120831.chunk.css +2 -0
  50. package/build/static/css/{7227.bbafae19.chunk.css.map → 7227.6d120831.chunk.css.map} +1 -1
  51. package/build/static/css/8017.a1597ccf.chunk.css +2 -0
  52. package/build/static/css/{8017.937e8dc0.chunk.css.map → 8017.a1597ccf.chunk.css.map} +1 -1
  53. package/build/static/css/8332.6a35eea8.chunk.css +2 -0
  54. package/build/static/css/{8332.2c7068b7.chunk.css.map → 8332.6a35eea8.chunk.css.map} +1 -1
  55. package/build/static/css/{8725.3be892b4.chunk.css → 8725.f814f64b.chunk.css} +2 -2
  56. package/build/static/css/{8725.3be892b4.chunk.css.map → 8725.f814f64b.chunk.css.map} +1 -1
  57. package/build/static/css/9968.4dc84cbd.chunk.css +2 -0
  58. package/build/static/css/{9968.a2b648e8.chunk.css.map → 9968.4dc84cbd.chunk.css.map} +1 -1
  59. package/build/static/js/{1106.ad05f6e7.chunk.js → 1106.6e790ff1.chunk.js} +2 -2
  60. package/build/static/js/{1106.ad05f6e7.chunk.js.map → 1106.6e790ff1.chunk.js.map} +1 -1
  61. package/build/static/js/{1153.05ee5aa0.chunk.js → 1153.3fd2bb84.chunk.js} +3 -3
  62. package/build/static/js/{1153.05ee5aa0.chunk.js.map → 1153.3fd2bb84.chunk.js.map} +1 -1
  63. package/build/static/js/{1154.4ce65ed1.chunk.js → 1154.f2513910.chunk.js} +2 -2
  64. package/build/static/js/{1154.4ce65ed1.chunk.js.map → 1154.f2513910.chunk.js.map} +1 -1
  65. package/build/static/js/{1454.c6f9daf8.chunk.js → 1454.bc4f32da.chunk.js} +3 -3
  66. package/build/static/js/{1454.c6f9daf8.chunk.js.map → 1454.bc4f32da.chunk.js.map} +1 -1
  67. package/build/static/js/1554.e51cd8ad.chunk.js +3 -0
  68. package/build/static/js/{1554.bdd31dbb.chunk.js.map → 1554.e51cd8ad.chunk.js.map} +1 -1
  69. package/build/static/js/2503.4ccaf7e1.chunk.js +2 -0
  70. package/build/static/js/{2503.e5b327f0.chunk.js.map → 2503.4ccaf7e1.chunk.js.map} +1 -1
  71. package/build/static/js/2517.b56f0569.chunk.js +2 -0
  72. package/build/static/js/{2517.3d0f541e.chunk.js.map → 2517.b56f0569.chunk.js.map} +1 -1
  73. package/build/static/js/2716.a14703a4.chunk.js +3 -0
  74. package/build/static/js/{2716.47e84492.chunk.js.map → 2716.a14703a4.chunk.js.map} +1 -1
  75. package/build/static/js/2730.ac67e7c0.chunk.js +2 -0
  76. package/build/static/js/{2730.de30562c.chunk.js.map → 2730.ac67e7c0.chunk.js.map} +1 -1
  77. package/build/static/js/2814.514bc040.chunk.js +2 -0
  78. package/build/static/js/{2814.61ec2bae.chunk.js.map → 2814.514bc040.chunk.js.map} +1 -1
  79. package/build/static/js/{289.94b23fdf.chunk.js → 289.81e61a85.chunk.js} +2 -2
  80. package/build/static/js/{289.94b23fdf.chunk.js.map → 289.81e61a85.chunk.js.map} +1 -1
  81. package/build/static/js/{3142.c72c7566.chunk.js → 3142.f0aa0433.chunk.js} +2 -2
  82. package/build/static/js/{3142.c72c7566.chunk.js.map → 3142.f0aa0433.chunk.js.map} +1 -1
  83. package/build/static/js/36.f294e8d9.chunk.js +2 -0
  84. package/build/static/js/{36.7d143ac6.chunk.js.map → 36.f294e8d9.chunk.js.map} +1 -1
  85. package/build/static/js/{3843.ffa61229.chunk.js → 3843.90f0e061.chunk.js} +2 -2
  86. package/build/static/js/{3843.ffa61229.chunk.js.map → 3843.90f0e061.chunk.js.map} +1 -1
  87. package/build/static/js/{4029.0a1d1bca.chunk.js → 4029.d53c9023.chunk.js} +2 -2
  88. package/build/static/js/{4029.0a1d1bca.chunk.js.map → 4029.d53c9023.chunk.js.map} +1 -1
  89. package/build/static/js/4265.11c373c5.chunk.js +2 -0
  90. package/build/static/js/{4265.bdfd330a.chunk.js.map → 4265.11c373c5.chunk.js.map} +1 -1
  91. package/build/static/js/{4666.667cd1c0.chunk.js → 4666.e0e2e7e8.chunk.js} +3 -3
  92. package/build/static/js/{4666.667cd1c0.chunk.js.map → 4666.e0e2e7e8.chunk.js.map} +1 -1
  93. package/build/static/js/5443.9cb909f2.chunk.js +2 -0
  94. package/build/static/js/{5443.7e2d8f4e.chunk.js.map → 5443.9cb909f2.chunk.js.map} +1 -1
  95. package/build/static/js/5600.eef952fa.chunk.js +2 -0
  96. package/build/static/js/{5600.c50c4e5d.chunk.js.map → 5600.eef952fa.chunk.js.map} +1 -1
  97. package/build/static/js/5873.8b7ebb83.chunk.js +2 -0
  98. package/build/static/js/{5873.ea3f2834.chunk.js.map → 5873.8b7ebb83.chunk.js.map} +1 -1
  99. package/build/static/js/{5996.fd52aa95.chunk.js → 5996.7e7c9380.chunk.js} +2 -2
  100. package/build/static/js/{5996.fd52aa95.chunk.js.map → 5996.7e7c9380.chunk.js.map} +1 -1
  101. package/build/static/js/6213.7375e252.chunk.js +2 -0
  102. package/build/static/js/6213.7375e252.chunk.js.map +1 -0
  103. package/build/static/js/{6569.34e6dd9b.chunk.js → 6569.7522ba31.chunk.js} +2 -2
  104. package/build/static/js/{6569.34e6dd9b.chunk.js.map → 6569.7522ba31.chunk.js.map} +1 -1
  105. package/build/static/js/6611.1e7772f6.chunk.js +2 -0
  106. package/build/static/js/{6611.9697a951.chunk.js.map → 6611.1e7772f6.chunk.js.map} +1 -1
  107. package/build/static/js/6779.fb5f7821.chunk.js +2 -0
  108. package/build/static/js/{6779.67194918.chunk.js.map → 6779.fb5f7821.chunk.js.map} +1 -1
  109. package/build/static/js/6900.40bc5117.chunk.js +2 -0
  110. package/build/static/js/6900.40bc5117.chunk.js.map +1 -0
  111. package/build/static/js/6915.4ba7898a.chunk.js +2 -0
  112. package/build/static/js/{6915.5b103933.chunk.js.map → 6915.4ba7898a.chunk.js.map} +1 -1
  113. package/build/static/js/7121.671101fa.chunk.js +2 -0
  114. package/build/static/js/{7121.4d1c90cb.chunk.js.map → 7121.671101fa.chunk.js.map} +1 -1
  115. package/build/static/js/{7227.c68e1a10.chunk.js → 7227.d7fb7aaa.chunk.js} +3 -3
  116. package/build/static/js/{7227.c68e1a10.chunk.js.map → 7227.d7fb7aaa.chunk.js.map} +1 -1
  117. package/build/static/js/{7790.f10cbd46.chunk.js → 7790.2ca7771a.chunk.js} +2 -2
  118. package/build/static/js/{7790.f10cbd46.chunk.js.map → 7790.2ca7771a.chunk.js.map} +1 -1
  119. package/build/static/js/{8017.2330069d.chunk.js → 8017.128b5017.chunk.js} +2 -2
  120. package/build/static/js/{8017.2330069d.chunk.js.map → 8017.128b5017.chunk.js.map} +1 -1
  121. package/build/static/js/{8332.499847f0.chunk.js → 8332.e21b9b1e.chunk.js} +2 -2
  122. package/build/static/js/{8332.499847f0.chunk.js.map → 8332.e21b9b1e.chunk.js.map} +1 -1
  123. package/build/static/js/8725.122e95a2.chunk.js +2 -0
  124. package/build/static/js/{8725.0b5b5995.chunk.js.map → 8725.122e95a2.chunk.js.map} +1 -1
  125. package/build/static/js/{9968.889b9521.chunk.js → 9968.29807a87.chunk.js} +2 -2
  126. package/build/static/js/{9968.889b9521.chunk.js.map → 9968.29807a87.chunk.js.map} +1 -1
  127. package/build/static/js/{main.e0c812a8.js → main.3b1c8651.js} +2 -2
  128. package/build/static/js/{main.e0c812a8.js.map → main.3b1c8651.js.map} +1 -1
  129. package/package.json +1 -1
  130. package/build/static/css/1151.a80a80ff.chunk.css +0 -2
  131. package/build/static/css/1153.43c11830.chunk.css +0 -2
  132. package/build/static/css/1154.2813078b.chunk.css +0 -2
  133. package/build/static/css/1154.2813078b.chunk.css.map +0 -1
  134. package/build/static/css/1454.72c1c83a.chunk.css +0 -2
  135. package/build/static/css/1454.72c1c83a.chunk.css.map +0 -1
  136. package/build/static/css/1554.dc6900d7.chunk.css +0 -2
  137. package/build/static/css/2716.c6d39931.chunk.css +0 -2
  138. package/build/static/css/4029.47217019.chunk.css +0 -2
  139. package/build/static/css/4029.47217019.chunk.css.map +0 -1
  140. package/build/static/css/4265.e965e5b4.chunk.css +0 -2
  141. package/build/static/css/4666.5b71cb34.chunk.css +0 -2
  142. package/build/static/css/5443.18932897.chunk.css +0 -2
  143. package/build/static/css/5600.d3c5a68a.chunk.css +0 -2
  144. package/build/static/css/6779.132d5098.chunk.css +0 -2
  145. package/build/static/css/7121.40c7a572.chunk.css +0 -2
  146. package/build/static/css/7227.bbafae19.chunk.css +0 -2
  147. package/build/static/css/8017.937e8dc0.chunk.css +0 -2
  148. package/build/static/css/8332.2c7068b7.chunk.css +0 -2
  149. package/build/static/css/9968.a2b648e8.chunk.css +0 -2
  150. package/build/static/js/1554.bdd31dbb.chunk.js +0 -3
  151. package/build/static/js/2503.e5b327f0.chunk.js +0 -2
  152. package/build/static/js/2517.3d0f541e.chunk.js +0 -2
  153. package/build/static/js/2716.47e84492.chunk.js +0 -3
  154. package/build/static/js/2730.de30562c.chunk.js +0 -2
  155. package/build/static/js/2814.61ec2bae.chunk.js +0 -2
  156. package/build/static/js/36.7d143ac6.chunk.js +0 -2
  157. package/build/static/js/4265.bdfd330a.chunk.js +0 -2
  158. package/build/static/js/5443.7e2d8f4e.chunk.js +0 -2
  159. package/build/static/js/5600.c50c4e5d.chunk.js +0 -2
  160. package/build/static/js/5873.ea3f2834.chunk.js +0 -2
  161. package/build/static/js/6213.1666f238.chunk.js +0 -2
  162. package/build/static/js/6213.1666f238.chunk.js.map +0 -1
  163. package/build/static/js/6611.9697a951.chunk.js +0 -2
  164. package/build/static/js/6779.67194918.chunk.js +0 -2
  165. package/build/static/js/6900.5fe2f2fb.chunk.js +0 -2
  166. package/build/static/js/6900.5fe2f2fb.chunk.js.map +0 -1
  167. package/build/static/js/6915.5b103933.chunk.js +0 -2
  168. package/build/static/js/7121.4d1c90cb.chunk.js +0 -2
  169. package/build/static/js/8725.0b5b5995.chunk.js +0 -2
  170. /package/build/static/js/{1153.05ee5aa0.chunk.js.LICENSE.txt → 1153.3fd2bb84.chunk.js.LICENSE.txt} +0 -0
  171. /package/build/static/js/{1454.c6f9daf8.chunk.js.LICENSE.txt → 1454.bc4f32da.chunk.js.LICENSE.txt} +0 -0
  172. /package/build/static/js/{1554.bdd31dbb.chunk.js.LICENSE.txt → 1554.e51cd8ad.chunk.js.LICENSE.txt} +0 -0
  173. /package/build/static/js/{2716.47e84492.chunk.js.LICENSE.txt → 2716.a14703a4.chunk.js.LICENSE.txt} +0 -0
  174. /package/build/static/js/{4666.667cd1c0.chunk.js.LICENSE.txt → 4666.e0e2e7e8.chunk.js.LICENSE.txt} +0 -0
  175. /package/build/static/js/{7227.c68e1a10.chunk.js.LICENSE.txt → 7227.d7fb7aaa.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[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:()=>R,TM:()=>G,LH:()=>L,Ay:()=>E,NY:()=>k,DF:()=>D});var a=n(30509),l=n(25438),s=n(55199),r=n(27047),i=n(83136),o=n.n(i),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),j=n.n(g);const f="style_address__DIuRX__HjjiH",x="style_is-popup__tqVvp__HjjiH",y="style_title__FAe12__HjjiH",v="style_scroll-box__JWiDl__HjjiH",C="style_scroll-plus-box__lidEW__HjjiH",b="style_content__lAARZ__HjjiH",A="style_col-left__WPfeS__HjjiH",N="style_col-right__z0e9-__HjjiH";var H=n(87558),S=n.n(H);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 O=n(58609),P=n(70579);const I=a.A.useContext,L=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 i=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return i.name=""+(s?"\u5168":"")+i.name,[i];const o=t.relations[e].map((e=>t.list[e]));return n.relations.provinces.indexOf(e)>-1&&s&&(i.name="\u5168"+i.name,o.splice(0,0,i)),a.relations.continents.indexOf(e)>-1&&r&&(i.name="\u5168"+i.name,o.splice(0,0,i)),o})),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}}))}))}},k=(e,t)=>"en-US"===t?j()(e,"enName"):j()(e,"name"),M={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))},F=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:i}=I(),[p,m]=(0,d.useState)(""),[h,_]=(0,d.useState)("2"),{formatMessage:g}=(0,O.useIntl)({moduleName:"AddressSelect"}),{locale:j}=(0,r.A)(),{getCity:H,getChinaCities:S,getCountries:w,getList:M,searchCities:F}=(0,d.useMemo)((()=>L(a.data)),[a.data]),T=e=>{if(i.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)},R=p&&(0,P.jsx)(u.A,{className:C,children:(0,P.jsx)(s.List,{className:l.A.list,size:"small",dataSource:F(p),rowKey:"value",renderItem:e=>(0,P.jsx)(s.List.Item,{className:l.A["list-item"],onClick:()=>{T(e.value),m("")},children:(0,P.jsx)("span",{className:l.A["item-label"],children:e.label})})})});return(0,P.jsxs)("div",{className:o()(f,{[x]:i.isPopup}),children:[(0,P.jsx)(s.Input.Search,{className:o()(l.A["search-input"],{[l.A["is-popup"]]:i.isPopup}),placeholder:i.searchPlaceholder||g({id:"searchCity"}),prefix:(0,P.jsx)(c.default,{type:"icon-sousuo"}),enterButton:(0,P.jsx)(c.default,{type:"icon-sousuo"}),value:p,allowClear:!0,onChange:e=>{const t=e.target.value;m(t)},onSearch:e=>{m(e)}}),(0,P.jsx)("div",{className:b,children:R||(0,P.jsxs)(s.Row,{wrap:!1,children:[(0,P.jsx)(s.Col,{className:A,children:(0,P.jsx)(s.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,P.jsx)(O.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,P.jsx)(u.A,{className:v,children:(0,P.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:S().map((e=>({label:k(e,j),key:e.id})))})})},{key:"1",label:(0,P.jsx)(O.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,P.jsx)(u.A,{className:v,children:(0,P.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map((e=>({label:k(e,j),key:e.id})))})})}]})}),(0,P.jsxs)(s.Col,{flex:1,className:N,children:[(0,P.jsx)(s.Divider,{className:y,orientation:"left",children:k(H(h).city,j)}),(0,P.jsx)(u.A,{className:v,children:(0,P.jsx)(s.Space,{wrap:!0,children:M(h,{showChinaQuan:i.showChinaQuan,showForeignQuan:i.showForeignQuan}).map((e=>(0,P.jsx)(s.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{T(e.code)},children:k(e,j)},e.code)))})})]})]})})]})},T=e=>(0,P.jsx)(a.A,{...e,children:e=>{let{value:t,setValue:n}=e;return(0,P.jsx)(O.IntlProvider,{moduleName:"AddressSelect",importMessages:w,children:(0,P.jsx)(F,{value:t,setValue:n})})}});T.defaultProps={overlayWidth:"500px",isPopup:!0,api:M,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:k(e,a)})))}}};const R=(0,H.withFetch)((e=>{let{name:t,data:n,getAddressApi:a,children:l,...s}=e;const{locale:i}=(0,r.A)(),o=(0,d.useMemo)((()=>L(n)),[n]);return a?l(o):(0,P.jsx)(S(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise((e=>{setTimeout((()=>{e(o.getCity(n))}),0)}))},render:e=>{let{data:t}=e;return l(t,Object.assign({},s,{locale:i}))}})}));R.defaultProps={...M,displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?`${k(a,s)}\xb7${k(n,s)}`:k(n,s)}};const D=e=>{const t=(0,H.withFetch)((t=>{let{data:n,...a}=t;const l=(0,d.useMemo)((()=>L(n)),[n]);return(0,P.jsx)(e,{...a,addressApi:l})}));return t.defaultProps={...M},t};T.AddressEnum=T.Enum=R,T.createAddressApi=L,T.withAddressApi=D,T.getLabelForLocal=k;const E=T;var z=n(10986),V=n.n(z),W=n(78491),B=n.n(W),U=n(20492),$=n(22616),K=n.n($),q=n(1488),Q=n.n(q);const Z=e=>{const{isPopup:t,size:n,disabled:a,inputPlaceholder:l,onBlur:r,className:i,...o}=e,[c,d]=V()(e),u=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:p}=(0,O.useIntl)({moduleName:"Common"}),m=B()((e=>{r&&r(e)}));return(0,P.jsx)("div",{ref:m,children:(0,P.jsxs)(s.Row,{gutter:10,children:[(0,P.jsx)(s.Col,{span:12,children:(0,P.jsx)(E,{...K()(o,u),className:i,disabled:a,single:!0,size:n,value:j()(c,"city"),onChange:e=>{d({city:e,detail:j()(c,"detail")})}})}),(0,P.jsx)(s.Col,{span:12,children:(0,P.jsx)(s.Input,{...Q()(o,u),className:i,placeholder:l||p({id:"pleaseInput"}),disabled:a,size:n,value:j()(c,"detail"),onChange:e=>{d({city:j()(c,"city"),detail:e.target.value})}})})]})})};Z.defaultProps={};const G=(0,O.createWithIntl)({importMessages:U.A,moduleName:"Common"})(Z)},12392:(e,t,n)=>{n.d(t,{Bm:()=>V,Eo:()=>E,NR:()=>A,Ay:()=>W});var a=n(55199),l=n(83136),s=n.n(l),r=n(30509),i=n(25438),o=n(26475),c=n(33097),d=n.n(c),u=n(34677),p=n.n(u);const m="create-list_scroll-loader__zoaS7__HjjiH",h="create-list_is-popup__t3d-G__HjjiH",_="create-list_is-not-full__FXtX1__HjjiH",g="create-list_search-input__tV3vf__HjjiH",j="create-list_left__EXr3i__HjjiH",f="create-list_list-header__3xeJa__HjjiH",x="create-list_is-modal__BMfya__HjjiH";var y=n(73161),v=n(58609),C=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(),H=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},A.pagination),S=d()(r.requestParams,[H.paramsType,H.current],1),w=d()(r.requestParams,[H.paramsType,H.pageSizeName])||H.pageSize,{formatMessage:O}=(0,v.useIntl)({moduleName:"Common"}),P=A.dataFormat(r.data),{right:I,leftBottom:L,leftSpan:k=24}=A,M=1===n.length&&"all"===n[0];return(0,C.jsxs)(a.Row,{wrap:!1,className:I?s()("is-not-full",_):"",children:[(0,C.jsxs)(a.Col,{span:k,className:s()(j,"advance-select-left"),children:[A.getSearchProps?(0,C.jsx)(y.A,{isPopup:A.isPopup,className:s()(g,i.A["search-input"],{[i.A["is-popup"]]:A.isPopup}),placeholder:A.searchPlaceholder||O({id:"search"}),value:c,onSearch:e=>{r.reload(A.getSearchProps(e)),u(e)}}):null,A.single||!A.showSelectedCount&&!A.allowSelectAll?null:(0,C.jsxs)(a.Flex,{className:s()(f,{[x]:!A.isPopup}),justify:"space-between",children:[A.showSelectedCount?(0,C.jsxs)(a.Space,{children:[(0,C.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,C.jsx)(a.Typography.Link,{children:M?A.allLabel||(0,C.jsx)(v.FormattedMessage,{id:"all",moduleName:"Common"}):`${n.length}${A.countUnit||O({id:"items"})}`})]}):(0,C.jsx)("div",{}),A.allowSelectAll?(0,C.jsx)("div",{children:(0,C.jsx)(a.Checkbox,{checked:M,onChange:e=>{l(e.target.checked?[A.allValue||"all"]:[])},children:(0,C.jsx)(v.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:A.allLabel||(0,C.jsx)(v.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,C.jsx)("div",{})]}),(0,C.jsx)(o.A,{completeTips:"",isLoading:!r.isComplete,className:s()(m,{[h]:A.isPopup}),noMore:!P.total||S*w>=P.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(p()({[H.paramsType]:{[H.pageSizeName]:w,[H.current]:S+1}},A.getSearchProps&&A.getSearchProps(c)),A.mergeList)},children:t({props:A,value:n,setValue:l,list:P.list,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:M,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)}})}),L&&L({fetchApi:r,value:n,mapping:N})]}),I&&I({value:n,mapping:N,fetchApi:r})]})},c=e=>{let{extra:t,...n}=e;return(0,C.jsx)(r.A,{...n,extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,C.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__HjjiH",H="list_list-item__WSswf__HjjiH",S="list_is-selected__6Wkgt__HjjiH",w="list_item-label__bYzhe__HjjiH",O="list_item-des__2nsEn__HjjiH",P="list_is-disabled__qxCvO__HjjiH",I="list_is-selected-all__Mp-hG__HjjiH";var L=n(40438),k=n(64671);const M="user_list-inner__V508e__HjjiH",F="user_list-info__y2nWo__HjjiH",T="user_selected-icon__9OQJL__HjjiH",R="user_item-des__o+7UR__HjjiH",D="user_is-selected-all__2q0VZ__HjjiH",E=A({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:r}=e;return(0,C.jsx)(a.List,{size:"small",className:s()(N,{[I]:r,[D]:r}),dataSource:t,renderItem:e=>{const t=l(e);return(0,C.jsx)(a.List.Item,{className:s()(H,{[S]:t}),onClick:()=>n(e),children:(0,C.jsxs)(a.Row,{wrap:!1,align:"middle",className:M,children:[(0,C.jsx)(a.Col,{children:(0,C.jsx)(L.default.Avatar,{...Object.assign({},e.avatar),size:40,gender:"M"})}),(0,C.jsx)(a.Col,{className:F,flex:1,children:(0,C.jsxs)(a.Space,{direction:"vertical",children:[(0,C.jsx)("span",{className:w,children:e.label}),e.description&&(0,C.jsx)("span",{className:R,children:e.description})]})}),(0,C.jsx)(a.Col,{children:r||t?(0,C.jsx)(k.default,{className:T,type:"icon-gouxuan"}):null})]})})}})}}),z={"is-selected-all":"table_is-selected-all__IwXUY__HjjiH"},V=A({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:i,itemIsSelected:o,isSelectedAll:c}=e;return(0,C.jsx)(a.Table,{className:s()(z.list,N,{[I]:c,[z["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":o(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=>{i(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),W=A({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:i}=e;const{listClassName:o="",selectIcon:c=null}=t||{};return(0,C.jsx)(a.List,{className:s()(N,o,{[I]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const o=l(e);return(0,C.jsxs)(a.List.Item,{className:s()(H,{[S]:t.single&&o,[P]:r||e.disabled}),onClick:()=>{e.disabled||i(e)},children:[(0,C.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,C.jsx)(a.Col,{children:(0,C.jsx)(a.Checkbox,{checked:r||o,disabled:r||e.disabled})}),(0,C.jsx)(a.Col,{children:(0,C.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,C.jsx)("span",{className:w,children:e.label}),e.description&&(0,C.jsx)("span",{className:O,children:e.description})]})})]}),o&&c]})}})}})},45776:(e,t,n)=>{n.d(t,{yK:()=>I,ON:()=>h,Ay:()=>T});var a=n(30509),l=n(73884),s=n(96418),r=n.n(s),i=n(55199),o=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},i=(()=>{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 i=e.get(t);if(!i)return;n.push(t),l(t).forEach((e=>{a(n,e.id)}));const o=r(t),c=o.every((e=>n.indexOf(e.id)>-1));i.parentId&&c&&(o.forEach((e=>{a(n,e.id)})),s(i.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 i=r(t);s.parentId&&(i.forEach((e=>{t!==e.id&&n.push(e.id)})),l(s.parentId))};return l(t),n},treeData:i,treeMapping:new Map(i.map((e=>[e.id,e])))}};var _=n(74065),g=n.n(_),j=n(19853),f=n.n(j),x=n(17342),y=n(83136),v=n.n(y);const C={content:"style_content__Hxlt9__HjjiH",columns:"style_columns__FmtPF__HjjiH","content-item":"style_content-item__i6HCO__HjjiH","last-level-area":"style_last-level-area__2y7jQ__HjjiH","is-popup":"style_is-popup__+r3Mn__HjjiH",menu:"style_menu__WZUVE__HjjiH","scroll-plus-box":"style_scroll-plus-box__QcTst__HjjiH","menu-label":"style_menu-label__iGt0Z__HjjiH","menu-item":"style_menu-item__hXHfm__HjjiH","checkbox-hidden":"style_checkbox-hidden__Xpx7J__HjjiH",loading:"style_loading__ZwrVe__HjjiH"};var b=n(87558),A=n(58609),N=n(25438),H=n(70579),S=n(27047);const w=new Map,O=(0,b.withFetch)((e=>{let{data:t,name:n,type:a,cache:s,children:r,getLabel:i,...o}=e;const c=(0,l.useMemo)((()=>new Map(t.map((e=>[e.code,{...e,id:e.code,label:i?i(e):e.chName,parentId:e.parentCode||null}])))),[t,i]).get(n);return w.set(`${n}_${a}`,c),r(c,o)})),P=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,H.jsx)(O,{...e})};P.defaultProps={children:e=>u()(e,"label","")};const I=P,L=a.A.useContext,k=(0,b.withFetch)((e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,H.jsx)(x.A,{className:C["scroll-plus-box"],children:(0,H.jsx)(i.List,{className:N.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,H.jsx)(i.List.Item,{className:v()(N.A["list-item"],{[N.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,H.jsx)("span",{className:N.A["item-label"],children:e.label})})}})})})),M=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:d,props:p}=L(),[m,_]=(0,l.useState)(""),j=r()(p.dataFormat),{formatMessage:y}=(0,A.useIntl)({moduleName:"Common"}),b=d.data,S=(0,l.useMemo)((()=>new Map(j(b).list.map((e=>[e.value,e])))),[b,j]),w=(0,l.useMemo)((()=>h(S)),[S]),O=(0,l.useRef)({});O.current={createMergeTree:p.createMergeTree,loadMore:d.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:w};const[P,I]=(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}=O.current;if(!e)return;const s=S.get(g()(P));if(!s)return;const r=l.getSelectedQueue(s.id);f()(P,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):I(r)}),[P,S]);const M=(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?i.message.error(y({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[g()(s)]:s)},F=e=>{const t=S.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},T=!p.openLoadData&&"function"===typeof p.onSearch,R=T&&m&&(0,H.jsx)(k,{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)=>{M(!t,e.id),!t&&I(w.getSelectedQueue(e.id,S)),_("")}});return(0,H.jsxs)("div",{className:v()(C.content,{[C["is-popup"]]:p.isPopup,[C["has-search"]]:T}),style:{"--menu-item-width":p.menuItemWidth},children:[T&&(0,H.jsx)(c.A,{isPopup:p.isPopup,className:v()(N.A["search-input"],{[N.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||y({id:"search"}),value:m,onSearch:e=>{_(e)}}),R||(0,H.jsx)("div",{children:(0,H.jsx)(x.A,{className:C.scroller,options:{autoHide:!1},children:(0,H.jsxs)("div",{className:C.columns,children:[P.map(((e,n)=>{const a=S.get(e),r=w.getSiblingNode(e),c=!F(null===a||void 0===a?void 0:a.id)&&n>0;return(0,H.jsx)(x.A,{className:v()(C["content-item"],{[C["last-level-area"]]:c}),children:c?(0,H.jsx)(i.Space,{wrap:!0,children:r.map((e=>(0,l.createElement)(i.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=>M(t.target.checked,e.id)},e.label)))}):(0,H.jsx)(i.Menu,{className:v()(C.menu),onSelect:e=>{const n=S.get(e.key);if(n)if(F(n.id))I(w.getSelectedQueue(n.id,S));else{const{checked:e}=w.computedCheckboxStatus(n.id,t);M(!e,n.id)}},selectedKeys:n===P.length-1?[]:P,items:r.map((e=>({key:e.id,label:(0,H.jsxs)(i.Space,{className:v()(C["menu-item"],{[C["checkbox-hidden"]]:p.onlyAllowLastLevel&&F(e.id)}),children:[!p.onlyAllowLastLevel&&(0,H.jsx)(i.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>M(t.target.checked,e.id)}),(0,H.jsx)("div",{className:C["menu-label"],children:e.label}),F(e.id)&&(0,H.jsx)(o.default,{className:C["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})})))})},u()(r,"[0].id",n))})),d.isComplete?null:(0,H.jsx)("div",{className:C.loading,children:(0,H.jsx)(i.Spin,{size:"small"})})]})})})]})},F=e=>{let{maxLength:t,nodeFormat:n,dataFormat:l,...s}=e;return(0,H.jsx)(a.A,{...s,dataFormat:e=>l(e,n),children:e=>{let{value:n,setValue:a}=e;return(0,H.jsx)(M,{...s,size:t,value:n,setValue:a})}})};F.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 T=F},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),i=n(70579);const o=(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,i.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:o(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,i.jsx)(a.yK,{...n,...c.functionData,type:"function",getLabel:e=>o(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),i=n(70579);const o=(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,i.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:o(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,i.jsx)(a.yK,{...n,...d.industryData,type:"function",getLabel:e=>o(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),i=n(17342),o=n(83136),c=n.n(o),d=n(51941);const u="style_scroller-no-more__EH2J+__HjjiH";var p=n(70579);const m=e=>{let{getScrollerRef:t,loadMore:n,maxFullCount:l}=e;const s=r()(n),i=r()(t);return(0,a.useEffect)((()=>{let e=l;const t=i(),n=async()=>{t.clientHeight===t.scrollHeight&&e>0&&(await s().then((()=>new Promise((e=>{setTimeout(e,500)})))),e--,await n())};n()}),[l,s,i]),null},h=(0,a.forwardRef)(((e,t)=>{let{className:n,noMore:s,onLoader:o,isLoading:h,completeTips:_,maxFullCount:g,children:j}=e;const f=(0,a.useRef)(),x=r()(o),y=(0,a.useRef)(!s&&!h);y.current=!s&&!h,(0,a.useImperativeHandle)(t,(()=>f.current),[]);const v=(0,d.useThrottledCallback)((e=>{const t=e.target;y.current&&t.clientHeight+t.scrollTop+20>t.scrollHeight&&x()}),100);return(0,p.jsxs)(i.A,{className:c()("load-container",n),scrollableNodeProps:{ref:f,onScroll:v},children:[!h&&!s&&(0,p.jsx)(m,{maxFullCount:g,getScrollerRef:()=>f.current,loadMore:x}),(0,p.jsxs)(l.Space,{direction:"vertical",children:[(0,p.jsx)("div",{children:j}),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__HjjiH",i="style_is-popup__L0973__HjjiH";var o=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,j]=(0,c.useState)(t),f=(0,c.useRef)(t),x=(0,d.useDebouncedCallback)(l,n);return(0,c.useEffect)((()=>{t!==f.current&&(j(t),f.current=t)}),[t]),(0,u.jsx)(a.Input.Search,{..._,allowClear:!0,className:s()(h,r,{[i]:p}),value:g,placeholder:m,prefix:(0,u.jsx)(o.default,{type:"icon-sousuo"}),enterButton:(0,u.jsx)(o.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;f.current=t,j(t),x(t)},onSearch:e=>{x(e)}})};p.defaultProps={debounce:500};const m=p},30509:(e,t,n)=>{n.d(t,{A:()=>W});const a={"ant-tag":"style_ant-tag__nNp8-__HjjiH",overlay:"style_overlay__La5mO__HjjiH",input:"style_input__SpJTE__HjjiH","is-disabled":"style_is-disabled__joxdl__HjjiH","input-icon":"style_input-icon__vVd8R__HjjiH",large:"style_large__En6mL__HjjiH",small:"style_small__DY0AQ__HjjiH","input-inner":"style_input-inner__PWy27__HjjiH","input-custom":"style_input-custom__ktsWD__HjjiH","display-content":"style_display-content__hIKo+__HjjiH","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__HjjiH","selected-tag":"style_selected-tag__zXZZO__HjjiH","selected-tag-list":"style_selected-tag-list__xUIms__HjjiH","selected-tag-inner":"style_selected-tag-inner__Z5gPL__HjjiH","text-inner":"style_text-inner__H24hY__HjjiH",placeholder:"style_placeholder__x0ccE__HjjiH","is-modal":"style_is-modal__JU+uq__HjjiH","overlay-content":"style_overlay-content__WKqp+__HjjiH"};var l=n(74981);const{context:s,useContext:r,Provider:i,Consumer:o}=(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),j=n.n(g),f=n(3382),x=n(64671),y=n(79686),v=n.n(y),C=n(41740),b=n.n(C),A=n(74065),N=n.n(A),H=n(21485),S=n(96418),w=n.n(S),O=n(77964),P=n(91176),I=n(58609),L=n(20492),k=n(27047),M=n(70579);const F=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)},T=e=>{let{single:t,value:n,mapping:l,allValue:s,allLabel:r,onClose:i}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,M.jsx)("span",{className:a["text-inner"],children:h()(l.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(s||"all")?(0,M.jsx)("span",{className:a["text-inner"],children:r||(0,M.jsx)(I.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map((e=>{const t=l.get(e);return(0,M.jsx)(_.Tag,{className:a["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),i(e,t)},children:(0,M.jsx)("span",{className:a["tag-inner"],children:h()(t,"label")||e})},e)})):null},R=(0,c.forwardRef)(((e,t)=>{let{value:n,onChange:l,extra:s,showSelectedTag:r,renderSelectedContent:i,children:o,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n),{formatMessage:h}=(0,I.useIntl)({moduleName:"Common"});m.current=n;const[g,j]=(0,c.useState)(!1),x=e=>{var t;j(e),null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},{message:y}=_.App.useApp(),v=F({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:()=>y.error(h({id:"maxSelectedCount"},{count:d.maxLength}))});return(0,c.useEffect)((()=>{g&&p(m.current)}),[g]),(0,c.useImperativeHandle)(t,(()=>({modalOpen:()=>{x(!0)},close:()=>{x(!1)}}))),(0,M.jsx)(f.default,{...d,open:g,onConfirm:()=>{l(u)},onClose:()=>{x(!1)},footer:(0,M.jsxs)(_.Space,{direction:"vertical",className:a["overlay-footer"],children:[s&&(0,M.jsx)("div",{className:a["overlay-footer-extra"],children:s}),r&&i({value:u,setValue:v})]}),children:"function"===typeof o?o({value:u,setValue:v}):o})})),D=(0,c.forwardRef)(((e,t)=>{let{value:n,setValue:l,children:s,renderSelectedContent:r,showSelectedTag:i,placement:o,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,overlayClassName:g,disabled:f,...x}=e;const[y,v]=(0,c.useState)(!1),C=w()((e=>{var t;v(e),null===(t=x.onOpenChange)||void 0===t||t.call(x,e)}));return(0,c.useImperativeHandle)(t,(()=>({close:()=>{C(!1)}})),[C]),f?(0,M.jsx)("div",{className:a["input-inner"],children:d}):(0,M.jsx)(_.Popover,{...x,open:y,onOpenChange:C,transitionName:"ant-slide-up",overlayClassName:j()(a.overlay,g),arrow:!1,content:(0,M.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:j()(a["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,M.jsx)("div",{className:a["overlay-inner"],children:"function"===typeof s?s({value:n,setValue:e=>{(!u||n[0]!==e[0])&&l(e),u&&C(!1)}}):s}),(i||p)&&(0,M.jsxs)("div",{className:a["overlay-footer"],children:[p&&(0,M.jsx)("div",{className:a["overlay-footer-extra"],children:p}),i&&r({value:n,setValue:l})]})]}),trigger:"click",placement:o,children:(0,M.jsx)("div",{className:a["input-inner"],children:d})})})),E=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:l,...s}=e;const[i,o]=(0,c.useState)(!1),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=r(),{valueState:m,mapping:h,props:g,inputWidth:f}=p,[y,v]=m,{formatMessage:C}=(0,I.useIntl)({moduleName:"Common"}),{single:b,placement:A,getPopupContainer:N,placeholder:S,isPopup:O,disabled:L,showSelectedTag:k,extra:F,inputContent:E,allowClear:z,overlayClassName:V}=g,W=(0,c.useRef)(s);W.current=s;const B=w()(l);(0,c.useEffect)((()=>{B(O?u:d)}),[O,B]),(0,c.useEffect)((()=>{t(Object.assign({},W.current,{data:s.data,isComplete:s.isComplete}))}),[s.data,t,s.isComplete]);const U=T({single:b,value:y,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{v((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,M.jsxs)(_.Space,{className:a["selected-tag"],align:"center",wrap:!1,children:[(0,M.jsxs)("div",{children:[(0,M.jsx)(I.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,M.jsx)(H.A,{className:a["selected-tag-list"],children:(0,M.jsx)("div",{className:a["selected-tag-inner"],children:T({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}))}})})})]})},K=E?E(p):(0,M.jsxs)(_.Space,{className:a["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,M.jsx)("div",{children:U||(0,M.jsx)("span",{className:a.placeholder,children:S||C({id:"pleaseSelect"})})}),i&&y&&y.length>0&&!L&&z?(0,M.jsx)(x.default,{className:j()(a.close,a["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),v([])}}):(0,M.jsx)(x.default,{className:j()(a["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return O?(0,M.jsx)(D,{ref:u,overlayWidth:(0,P.v)(Math.max(f,(0,P.j)(g.overlayWidth))),value:y,setValue:v,single:b,disabled:L,inputContent:K,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof F?F({close:()=>u.current.close(),context:p}):F,renderSelectedContent:$,showSelectedTag:k,trigger:"click",placement:A,getPopupContainer:N,children:g.children}):(0,M.jsxs)("div",{className:a["input-inner"],onClick:()=>{L||d.current.modalOpen()},children:[(0,M.jsx)(R,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:j()(a.overlay,a["is-modal"],n),title:g.placeholder||C({id:"pleaseSelect"}),value:y,onChange:v,extra:"function"===typeof F?F({close:()=>d.current.close(),context:p}):F,showSelectedTag:k,renderSelectedContent:$,children:g.children}),K]})})),z=e=>{let{api:t,className:n,displayItems:l,wrapClassName:s,...r}=e;const{locale:o}=(0,k.A)(),[d,p]=(0,c.useState)(""),[m,g]=(0,c.useState)(new Map(l.map((e=>[e.value,e])))),{formatMessage:f}=(0,I.useIntl)({moduleName:"Common"}),[x,y]=(0,c.useState)(0),C=(0,O.A)((e=>{y(e.clientWidth)})),[A,H]=(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}))},P=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?v()(e)?[]:[e]:e||[],w,r.valueType),[L,T]=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:P(r.value)}:{defaultValue:P(r.defaultValue)})),R=F({maxLength:r.maxLength,single:r.single,setValue:T,value:L,message:()=>S.error(f({id:"maxSelectedCount"},{count:r.maxLength}))}),D=(0,c.useRef)(null);return(0,M.jsx)(i,{value:{inputWidth:x,mapping:m,searchText:d,setSearchText:p,appendMapping:w,setItems:e=>{A.setData(e),w(h()(r.dataFormat(e,{locale:o}),"list",[]))},getContentApi:()=>D.current,fetchApi:A,valueState:[L,R],props:r},children:(0,M.jsx)("div",{ref:C,className:j()(a["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],{"select-input-disabled":!!r.disabled},n),children:(0,M.jsx)(E,{...t,wrapClassName:s,loading:null,setFetchApi:H,getContentRef:e=>{e.current&&(D.current=e.current)},onRequestSuccess:e=>{w(h()(r.dataFormat(e,{locale:o}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};z.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const V=(0,I.createWithIntl)({importMessages:L.A,moduleName:"Common"})(z);V.useContext=r;const W=V},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),i=n.n(r),o=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=i()(c),_=i()(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,o.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),i=n.n(r),o=n(20492),c=n(58609),d=n(70579);const u=(0,c.createWithIntl)({importMessages:o.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,o]=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=>{o((t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[i()(t.value[0]).startOf(e||"date"),i()(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&&i()(e))),onChange:e=>{o((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:()=>j,Ay:()=>x,lN:()=>f});const a="style_input-file__3JGm6__HjjiH",l="style_input-file-input__Fb5iw__HjjiH";var s=n(83136),r=n.n(s),i=n(73884),o=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:o,onChange:c,children:d,...u}=t;const p=(0,i.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:o,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(o.Button),g=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(o.Typography.Link,{...n,className:t})})),j=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(o.Typography.Text,{...n,className:r()("ant-btn",t)})})),f=e=>{const{message:t}=o.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:j}=(0,c.usePreset)(),[f,x]=(0,i.useState)([]),y=(0,i.useRef)(r),v=(0,i.useMemo)((()=>(0,d.A)(y.current)),[]);return{fileList:f,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}),x((e=>{const t=e.slice(0),n=t.findIndex((e=>e.uuid===s));return n>-1&&t.splice(n,1),t}))};try{x(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||j.ossUpload,{data:a}=await v((()=>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 i=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};x((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?[i]:e=>{const t=e.slice(0);return t.push(i),t})}catch(i){r(i)}})))}}},x=h},97211:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(87558),l=n.n(a),s=n(63908),r=n(34677),i=n.n(r),o=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=i()({},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),j={};return j[h]={[_]:n},(0,o.jsx)(l(),{...Object.assign({},g,j),updateType:"refresh",error:r,loading:d,cache:"oss-file",ttl:6e6,render:t=>{let{data:a}=t;return(0,o.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),i=n.n(r),o=n(96418),c=n.n(o);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?i():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"],i=["","\u4e07","\u4ebf","\u5146"],o=["\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),o=n-a-1,d=o/4,u=o%4;"0"===l?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(l)]+r[u]),0===u&&e<4&&(c+=i[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)]+o[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),i=n(54052),o=n.n(i);const c=e=>{if(l()(e)){const t=r()(e);return t.length>0&&t.some((e=>c(e)))}return o()(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:()=>o.A,FunctionEnum:()=>j.K,FunctionSelectField:()=>j.A,IndustryEnum:()=>f.W,IndustrySelectField:()=>f.A,InputFileButton:()=>m.Zi,InputFileLink:()=>m.FI,InputFileText:()=>m.AG,ScrollLoader:()=>i.A,SearchInput:()=>u.A,SelectInnerInput:()=>p.A,SimpleBar:()=>d.A,SimpleBarBox:()=>c.A,TableField:()=>_.Bm,TypeDateRangePickerField:()=>x.A,UserField:()=>_.Eo,accept:()=>v.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>h.LH,createDeferred:()=>C.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:()=>y.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),i=n(26475),o=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),j=n(41654),f=n(53392),x=n(89319),y=n(77964),v=n(81348),C=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),i=n(83136),o=n.n(i),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__HjjiH",m="style_img__PSExq__HjjiH",h="style_loading__WCOwA__HjjiH",_="style_error__+ECgZ__HjjiH";var g=n(18411),j=n(63908),f=n(70579);const x=e=>{let{data:t,className:n,alt:a,innerLoading:s,loading:r,error:i,innerError:c,children:d,onClick:p,staticUrl:h}=e;const{staticUrl:_}=(0,j.usePreset)(),g=h||_||"";return(0,f.jsx)(l(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:g+t},error:c||i,loading:s||r,render:e=>{let{data:t}=e;return"function"===typeof d?d({alt:a,className:o()(n,m),src:t}):(0,f.jsx)("img",{alt:a,className:o()(n,m),src:t,onClick:p})}})},y=(0,s.A)(x),v=e=>{let{loading:t,error:n,src:a,id:l,alt:s,className:r,children:i,apis:o,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:h}),p=n&&(0,d.cloneElement)(n,{className:_});return a?(0,f.jsx)(x,{alt:s,className:r,data:a,loading:u,error:p,onClick:c,children:i}):l?(0,f.jsx)(y,{alt:s,className:r,id:l,loading:u,innerLoading:u,error:p,innerError:p,apis:o,onClick:c,children:i}):p},C=e=>{let{id:t,src:n,alt:a,onClick:l,loading:s,error:r,className:i,apis:c,...d}=e;return(0,f.jsx)("div",{...d,"data-testid":"components-core-image",className:o()(i,p),children:v({loading:s,error:r,src:n,id:t,alt:a,className:i,apis:c,onClick:l})})};C.Avatar=e=>{let{id:t,src:n,alt:a,gender:l,loading:s,error:i,className:d,gap:u,icon:m,children:h,shape:_,size:g,width:j,height:x,defaultAvatar:y,apis:C,...b}=e;const A=(()=>{const e=j&&x?{style:{width:j,height:x}}:{size:g};if(j&&j!==x&&(_="square"),t||n)return v({loading:s,error:i,src:n,defaultAvatar:y,id:t,alt:a,className:d,apis:C,children:t=>(0,f.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,f.jsx)(c.Avatar,{...b,src:(0,f.jsx)(r.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:_,...e})}return(0,f.jsx)(c.Avatar,{...b,gap:u,icon:m,shape:_,size:g,src:y,...e,children:h})})();return(0,f.jsx)("div",{...b,"data-testid":"components-core-image-avatar",className:o()(d,p),style:{width:j&&x?j:g,height:j&&x?x:g},children:A})};const b={error:(0,f.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,f.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0})};C.defaultProps=Object.assign({},b),C.Avatar.defaultProps=Object.assign({},b,{size:100,defaultAvatar:g.A});const A=C},3382:(e,t,n)=>{n.r(t),n.d(t,{ModalButton:()=>L,TabsModal:()=>w,TabsModalButton:()=>I,default:()=>H,useConfirmModal:()=>N,useModal:()=>A,useTabsModal:()=>O});var a=n(73884),l=n(55199),s=n(83136),r=n.n(s);const i={modal:"style_modal__Pm3cF__HjjiH",large:"style_large__iaqVE__HjjiH","modal-body-inner":"style_modal-body-inner__4PhpA__HjjiH","modal-title":"style_modal-title__dswaw__HjjiH","modal-outer":"style_modal-outer__r3SkX__HjjiH","modal-body":"style_modal-body__jQJSI__HjjiH","right-options-modal":"style_right-options-modal__FajDP__HjjiH","right-options-row":"style_right-options-row__-mPb9__HjjiH","right-options-col":"style_right-options-col__3ilee__HjjiH","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__HjjiH",content:"style_content__k6MIF__HjjiH","modal-footer":"style_modal-footer__-prbN__HjjiH","modal-close":"style_modal-close__Oa5Kl__HjjiH","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__HjjiH","is-danger":"style_is-danger__H5110__HjjiH",title:"style_title__orTym__HjjiH","has-title":"style_has-title__qy0Wp__HjjiH"},o=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:i["right-options-row"],children:[(0,h.jsx)(l.Col,{span:24-n,className:i["right-options-col"],children:a}),(0,h.jsx)(l.Col,{span:n,className:i["right-options-col"],children:t})]}):a},j=(e,t)=>e-48-(t?58:0)+"px",f=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":j(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":j(300,t)}}:{width:"1000px",style:{"--min-modal-height":j(500,t)}},x=e=>{let{footer:t,footerButtons:n,onConfirm:s,onCancel:r,onClose:i,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:o,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:r},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:o,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,...o}=e;const c=n||p.default;return(0,a.createElement)(c,{...o,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&&i&&i(),a}})}))})})]})},y=e=>{let{title:t,footer:n,disabledScroller:s,footerButtons:o,onClose:c,closable:u,onConfirm:p,onCancel:_,children:g,targetProps:j}=e;const f=(0,a.useRef)(null);return(0,h.jsxs)("div",{className:i["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:i["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:i["modal-title"],children:t}),(0,h.jsx)(m.A,{className:r()(i["modal-body"],{[i["is-disabled-scroller"]]:s},"modal-body"),ref:f,children:(0,h.jsx)("div",{className:r()(i["modal-body-inner"],"modal-body-inner"),children:g})}),null!==n||o?(0,h.jsx)("div",{className:r()(i["modal-footer"],"modal-footer"),children:(0,h.jsx)(x,{footer:n,footerButtons:o,onConfirm:p,onCancel:_,onClose:c,targetProps:j})}):null]})},v=e=>{let{withDecorator:t,footerButtons:n,title:a,closable:l,onClose:s,onConfirm:r,onCancel:i,footer:o,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:m,children:_}=e;const j=e=>(e=Object.assign({},{title:a},e),(0,h.jsx)(y,{title:u(e.title,{...e,childrenRef:m,close:s}),closable:l,onClose:s,onConfirm:r,onCancel:i,footerButtons:u(n,{...e,close:s}),disabledScroller:p,footer:u(o,{...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(j):j({})},C=e=>{let{children:t,rightOptions:n,rightSpan:a,footer:l,footerButtons:s,className:d,size:u,title:p,onClose:m,onConfirm:_,onCancel:g,closable:j,disabledScroller:x,withDecorator:y,childrenRef:C,...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,i.modal,i[u],{[i["right-options-modal"]]:n}),...f(u,!(null===l&&!s)),children:(0,h.jsx)(c.IntlProvider,{importMessages:o,moduleName:"Modal",children:v({withDecorator:y,title:p,closable:j,onClose:m,onConfirm:_,onCancel:g,footer:l,footerButtons:s,rightOptions:n,rightSpan:a,disabledScroller:x,children:t,childrenRef:C})})}},b=e=>{const t=(0,a.useRef)(null);return(0,h.jsx)(l.Modal,{...C(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}=C({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:o,danger:c,wrapClassName:u,message:p,iconSetting:m={},confirmType:_="info",...g}={onClose:()=>n.close(),maskClosable:!1,...t},j=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()(i["confirm-modal-wrap"],u,{[i["is-danger"]]:c}),title:(0,h.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:o&&(0,h.jsxs)(l.Space,{size:0,align:"start",className:i.title,children:[c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||j["confirm"===a?_:a]}):null,o]})}),content:(0,h.jsxs)(l.Space,{size:0,align:"start",className:r()(i.content,{[i["has-title"]]:o}),children:[!o&&c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||j["confirm"===a?_:a]}):null,p]})});n.close=t}return n}},H=b,S=e=>{let{items:t,className:n,activeKey:a,withDecorator:s,defaultActiveKey:i,onChange:o,...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:i,onChange:o});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)(H,{...S(e)}),O=()=>{const e=A();return t=>e(S(t))};var P=n(73025);const I=e=>{const t=O();return e.api?(0,h.jsx)(P.A,{...e,modalFunc:t}):(0,h.jsx)(l.Button,{...e,onClick:()=>{t(e.modalProps)}})},L=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)(P.A,{...e,modalFunc:t})}},25438:(e,t,n)=>{n.d(t,{A:()=>a});const a={"search-input":"common_search-input__P6qLg__HjjiH","is-popup":"common_is-popup__fJq+g__HjjiH",list:"common_list__TKFzS__HjjiH","list-item":"common_list-item__ASse7__HjjiH","is-selected":"common_is-selected__-PU4Y__HjjiH","item-label":"common_item-label__u+qz1__HjjiH","item-des":"common_item-des__no2z0__HjjiH"}}}]);
2
- //# sourceMappingURL=36.7d143ac6.chunk.js.map
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4265,1151,9034,6611,3142,8017],{42787:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var s=n(10486),r=n(73884),a=n(96418),i=n.n(a),l=n(83136),o=n.n(l);const c={scroller:"style_scroller__EfuqR__HjjiH","scroller-inner":"style_scroller-inner__NJSE0__HjjiH","is-moving":"style_is-moving__jGuy0__HjjiH"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...a}=e;const i=(0,r.useRef)(0),[l,d]=(0,r.useState)(!1),p=(0,r.useRef)(l);p.current=l;const _=(0,r.useRef)(t);_.current=t;const h=(0,r.useRef)(1);return h.current=a.width/a.innerWidth,(0,r.useEffect)((()=>{const e=e=>{p.current&&_.current(h.current*(e.clientX-i.current)),i.current=e.clientX},t=()=>{d(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,s.createPortal)(a.hasScroller?(0,u.jsx)("div",{className:c.scroller,style:{left:a.left,width:a.width,height:15},children:(0,u.jsx)("div",{className:o()(c["scroller-inner"],{[c["is-moving"]]:l}),style:{width:a.innerWidth,left:a.innerLeft},onMouseDown:e=>{e.preventDefault(),i.current=e.clientX,d(!0)}})}):null,n()||document.body)},p=e=>{let{className:t,scroller:n,getScrollTarget:s,children:a}=e;const[l,p]=(0,r.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),_=(0,r.useRef)(null),h=i()((()=>_.current&&s(_.current))),m=(0,r.useRef)();return m.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,r.useEffect)((()=>{const e=m.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:s,top:r,height:a}=t.getBoundingClientRect(),i=t.offsetHeight-t.clientHeight||15,l=s*t.clientWidth/t.scrollWidth-6,o=t.scrollLeft*t.clientWidth/t.scrollWidth+2,c=e.getBoundingClientRect();p((u=>Object.assign({},u,{left:n,width:s,innerLeft:o,innerWidth:l,height:i,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?r+a-e.offsetHeight>0&&r<e.offsetHeight:r<c.top+c.height&&r+a>c.top+c.height)})))},s=new ResizeObserver(n);return new ResizeObserver((()=>{t=h(),t&&(s.disconnect(),n(),Array.from(t.children).forEach((e=>{s.observe(e)})),t.addEventListener("scroll",n))})).observe(_.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[h]),n?(0,u.jsxs)("div",{className:o()(c["scroller-outer"],t),ref:_,style:{"--scroller-bar-height":null!==l&&void 0!==l&&l.hasScroller?"15px":"0px"},children:[a,(0,u.jsx)(d,{...l,getContainer:m.current,onScroll:e=>{h().scrollLeft+=e}})]}):a};p.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const _=p},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f,useFeatureCall:()=>j});var s=n(73884),r=n(63908),a=n(33097),i=n.n(a),l=n(15797),o=n.n(l),c=n(1488),u=n.n(c),d=n(70579);const p=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{p(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),p(e.children,t,n?n+":"+e.id:e.id)))},_=o()((e=>{const t=(()=>{const t=new Map;return p(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),h=(e,t)=>{let{profileMap:n,features:s}=t;const r=n.get(e);return-1!==s.indexOf(e)&&!0!==r.close&&i()(r,"dependencies",[]).every((t=>{const r=n.get(e);return s.indexOf(t)>-1&&!0!==r.close}))},m=(0,s.createContext)(null),{Provider:g}=m,j=e=>{const{features:t,profile:n,profileMap:a,debug:l}=(()=>{const e=(0,r.usePreset)(),{profile:t,debug:n}=i()(e,"features",{debug:!1,profile:{}});return Object.assign({},_(t),{debug:n})})(),o="system"===n.type?n.id:"root",c=(0,s.useContext)(m),u=c?c+":"+e:o+":"+e;return(0,s.useEffect)((()=>{t&&t.length>0&&l&&console.log(`[featureId] ${u},[state] ${h(u,{features:t,profileMap:a})}`,a.get(u))}),[t,a,l,u]),{isPass:!(e&&t&&t.length>0)||h(u,{features:t,profileMap:a}),currentId:u,feature:a.get(u)}},f=e=>{let{id:t,children:n}=e;const{isPass:s,feature:r,currentId:a}=j(t);return(0,d.jsx)(g,{value:a,children:"function"===typeof n?n({isPass:s,options:s?i()(r,"options"):i()(r,"rejectedOptions"),currentId:a}):s&&n})}},75363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});const s=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var r=n(58609),a=n(64671),i=n(55199),l=n(83136),o=n.n(l);const c="style_helper-guide__K5xFw__HjjiH",u="style_inner__bMKeU__HjjiH",d="style_content__xTfWZ__HjjiH",p="style_link__93j7O__HjjiH";var _=n(48731),h=n(70579);const m=e=>{let{name:t,className:n}=e;return(0,h.jsx)(r.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,h.jsx)(_.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:o()(c,n),children:(0,h.jsxs)(i.Space,{className:u,children:[(0,h.jsx)(a.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:d,children:e.content}),e.url&&(0,h.jsxs)(i.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(a.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},51516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Affix:()=>K,Menu:()=>X.default,Page:()=>S,PermissionsPage:()=>V,StateBarPage:()=>D,TablePage:()=>Q,default:()=>$});var s=n(55199),r=n(73884);const a={menu:null,filter:null,menuOpen:!0,menuWidth:"240px",menuFixed:!0,menuCloseButton:!0,backgroundColor:null,header:null,headerHeight:0,headerFixed:!0,headerInfo:null,backUrl:null,title:null,titleExtra:null,titleLeftExtra:null,noMargin:!1,noPadding:!1,optionFooterHeight:0,option:null,optionWidth:"400px",optionNoPadding:!1,optionFixed:!0,optionFooter:null},i=(0,r.createContext)({}),{Provider:l,Consumer:o}=i,c=()=>(0,r.useContext)(i);var u=n(79329),d=n(76801),p=n(36755),_=n(19853),h=n.n(_),m=n(63361),g=n(83136),j=n.n(g);const f={layout:"style_layout__k+lxR__HjjiH","page-content":"style_page-content__4XeN8__HjjiH","page-main":"style_page-main__P0yEF__HjjiH","page-main-content":"style_page-main-content__1OVPN__HjjiH","table-page":"style_table-page__JkbLf__HjjiH","helper-guide":"style_helper-guide__vzw4z__HjjiH","page-outer":"style_page-outer__2a6iH__HjjiH","no-margin":"style_no-margin__S6caT__HjjiH","page-menu":"style_page-menu__CZSa9__HjjiH",closed:"style_closed__hmnft__HjjiH","page-menu-inner":"style_page-menu-inner__rmKpu__HjjiH","page-menu-main":"style_page-menu-main__OXg2M__HjjiH","page-option-main":"style_page-option-main__LyfT3__HjjiH","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__HjjiH","page-option":"style_page-option__diS2S__HjjiH","page-option-inner":"style_page-option-inner__Fj1JH__HjjiH","page-option-footer":"style_page-option-footer__d7xE0__HjjiH","fixed-container":"style_fixed-container__1VZwY__HjjiH","is-fixed":"style_is-fixed__1aQhp__HjjiH","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__HjjiH","page-menu-btn":"style_page-menu-btn__BiTy8__HjjiH","page-title":"style_page-title__zw-Fd__HjjiH","page-title-text":"style_page-title-text__Rj4RC__HjjiH","no-padding":"style_no-padding__V7Dwy__HjjiH","page-header":"style_page-header__a813p__HjjiH","page-header-info":"style_page-header-info__cMrZR__HjjiH","layout-menu":"style_layout-menu__yiab0__HjjiH","sub-menu":"style_sub-menu__dyqK7__HjjiH","no-collapsed":"style_no-collapsed__76h8W__HjjiH","has-not-children":"style_has-not-children__fnjRK__HjjiH","table-page-top":"style_table-page-top__bt1l9__HjjiH","error-component":"style_error-component__HvghB__HjjiH","state-bar-page":"style_state-bar-page__+aUM4__HjjiH","back-icon":"style_back-icon__79v2G__HjjiH"};var y=n(70579);const x=e=>{let{className:t,isFixed:n,children:s}=e;return n?(0,y.jsx)("div",{className:j()(t,"fixed-container",f["fixed-container"],{[f["is-fixed"]]:n}),children:s}):(0,y.jsx)("div",{className:j()(t,"fixed-container",f["fixed-container"]),children:s})};var v=n(64671),H=n(17342),b=n(94679),N=n(33097),C=n.n(N),O=n(55490),w=n(25644);const P="CORE_PAGE_MENU_OPEN_KEY",k=()=>{const{pageProps:e,setPageProps:t}=c(),{menu:n,menuOpen:r,menuWidth:a,menuFixed:i,menuCloseButton:l}=e,o=(0,b.useLocation)().pathname.split("/")[1];return n?(0,y.jsxs)(s.Col,{className:j()(f["page-menu"],{[f.closed]:!r}),style:{"--width":a},children:[(0,y.jsx)(x,{className:f["page-menu-inner"],isFixed:i,children:(0,y.jsx)("div",{className:f["page-menu-main-outer"],children:(0,y.jsx)(H.A,{className:f["page-menu-main"],children:n})})}),l?(0,y.jsx)(x,{className:j()(f["page-menu-btn-outer"],{[f["is-fixed"]]:i}),isFixed:i,children:(0,y.jsx)(s.Button,{className:j()(f["page-menu-btn"],{[f.closed]:!r}),icon:r?(0,y.jsx)(v.default,{type:"icon-arrow-bold-left"}):(0,y.jsx)(v.default,{type:"icon-arrow-bold-right"}),onClick:()=>{t({menuOpen:!e.menuOpen});const n=w.A.getItem(P)||{};n[o]=!e.menuOpen,w.A.setItem(P,n),t({menuOpen:!e.menuOpen})}})}):null]}):null},E=e=>{let{children:t,isPass:n,...i}=e;const{setPageProps:l}=c(),o=(0,r.useRef)(null),u=(()=>{const e=(0,b.useLocation)().pathname.split("/")[1];return(0,r.useMemo)((()=>{const t=w.A.getItem(P)||{};return!(0,O.A)(C()(t,e))||C()(t,e)}),[e])})(),d=(0,r.useRef)(u);return d.current=u,(0,r.useEffect)((()=>{if(!h()(o.current,i)){o.current=i;const e=Object.assign({},a,i,"boolean"===typeof d.current?{menuOpen:d.current}:{});e.header&&0===e.headerHeight&&delete e.headerHeight,e.optionFooter&&0===e.optionFooterHeight&&delete e.optionFooter,l(e)}}),[i,l]),!1===n?(0,y.jsx)(s.Result,{status:"403",subTitle:"\u6682\u672a\u5f00\u653e\u6b64\u529f\u80fd"}):t},L=e=>{let{featureId:t,name:n,openFeatures:s,...a}=e;return!0===s?(0,y.jsx)(m.default,{id:n,children:e=>{let{isPass:t}=e;return(0,r.createElement)(E,{...a,key:n,isPass:t})}}):(0,r.createElement)(E,{...a,key:n})};L.defaultProps=a;const S=L,K=e=>{let{isFixed:t,offsetTop:n,offsetBottom:r,onChange:a,...i}=e;return t?(0,y.jsx)(s.Affix,{...i,offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:r,onChange:a}):(0,y.jsx)("div",{...i})},R=e=>{let{targetKey:t,...n}=e;const s=(e=>{let{targetKey:t}=e;const{setPageProps:n}=c(),s=(0,r.useRef)(null);return(0,r.useLayoutEffect)((()=>{const e=()=>{n({[t]:s.current.offsetHeight})};e();const r=new MutationObserver(e);return r.observe(s.current,{subtree:!0,childList:!0}),()=>{r.disconnect()}}),[n,t]),s})({targetKey:t});return(0,y.jsx)("div",{...n,ref:s})},A=()=>{const{pageProps:e}=c(),{header:t,headerFixed:n}=e;return t?(0,y.jsx)(K,{isFixed:n,className:f["page-header"],offsetTop:u.navigationHeight,children:(0,y.jsx)(R,{targetKey:"headerHeight",children:t})}):null},F=()=>{const{pageProps:e}=c(),{headerInfo:t}=e,n=(0,r.useRef)(null);return t?(0,y.jsx)("div",{ref:n,className:j()(f["page-header-info"],"page-header-info"),children:t}):null};var I=n(16915);const M=e=>{let{title:t,filter:n,titleExtra:r,titleLeftExtra:a,backUrl:i}=e;const l=(0,b.useNavigate)();return n?(0,y.jsx)(I.default,{className:f["page-title"],...n,extra:r}):t||a||r?(0,y.jsxs)(s.Row,{justify:"space-between",align:"middle",className:f["page-title"],children:[(0,y.jsx)(s.Col,{children:(0,y.jsxs)(s.Space,{children:[t?(0,y.jsx)("div",{className:f["page-title-text"],children:i?(0,y.jsxs)(s.Space,{children:[(0,y.jsx)("span",{className:f["back-icon"],onClick:()=>{l(i)},children:(0,y.jsx)(v.default,{type:"icon-arrow-thin-left"})}),(0,y.jsx)("span",{children:t})]}):t}):null,a||null]})}),(0,y.jsx)(s.Col,{children:r})]}):null},T=()=>{const{pageProps:e}=c(),{option:t,optionWidth:n,optionFixed:r,optionFooter:a,optionFooterHeight:i,optionNoPadding:l}=e;return t?(0,y.jsx)(s.Col,{className:j()(f["page-option"],"page-option"),style:{"--width":n,"--foot-height":i+"px"},children:(0,y.jsxs)(x,{className:f["page-option-inner"],isFixed:r,children:[(0,y.jsx)(H.A,{className:j()(f["page-option-main"],"page-option-main"),style:{padding:l?"0px":"var(--padding-width)"},children:t}),a?(0,y.jsx)(R,{className:f["page-option-footer"],targetKey:"optionFooterHeight",children:(0,y.jsx)(s.Space,{align:"center",children:a})}):null]})}):null};var W=n(75363),q=n(29053);const{Content:B}=s.Layout,z=()=>(0,y.jsx)(s.Alert,{message:"\u7cfb\u7edf\u51fa\u4e86\u70b9\u5c0f\u95ee\u9898\uff0c\u53ef\u5237\u65b0\u9875\u9762\u8fdb\u884c\u89e3\u51b3",showIcon:!0,type:"error",action:(0,y.jsx)(s.Button,{size:"small",danger:!0,onClick:()=>window.location.reload(),children:"\u5237\u65b0"})}),U=e=>(0,y.jsx)(p.A,{...e,errorComponent:z}),G=e=>{let{children:t,theme:n,navigation:i}=e;const[o,c]=(0,r.useState)(0),[p,_]=(0,r.useState)(Object.assign({},a)),{permissions:h}=(0,q.usePermissions)(),m=(0,r.useCallback)((e=>_((t=>Object.assign({},t,e)))),[]);return(0,r.useEffect)((()=>{const e=(0,d.h)(),t=()=>{c(e.scrollLeft)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}}),[]),(0,y.jsxs)(s.Layout,{className:f.layout,style:Object.assign({},{"--nav-height":u.navigationHeight+"px","--nav-height-base":"var(--nav-height)","--scroll-left":-o+"px"},n),children:[i&&(0,y.jsx)(U,{children:(0,y.jsx)(u.default,{permissions:h,...i,onChange:e=>{(null===i||void 0===i?void 0:i.onChange)&&i.onChange(e)}})}),(0,y.jsx)(U,{children:(0,y.jsx)(B,{className:f["layout-content-wrap"],children:(0,y.jsxs)(l,{value:{pageProps:p,setPageProps:m},children:[(0,y.jsx)(U,{children:(0,y.jsx)(A,{})}),(0,y.jsx)(U,{children:(0,y.jsx)(F,{})}),(0,y.jsx)(U,{children:(0,y.jsxs)(s.Row,{className:j()(p.className,f["page-outer"]),wrap:!1,style:{"--nav-height":`calc(${p.headerFixed?p.headerHeight:0}px + var(--nav-height-base))`,"--nav-only-height":"var(--nav-height-base)"},children:[(0,y.jsx)(U,{children:(0,y.jsx)(k,{})}),(0,y.jsx)(s.Col,{className:j()(f["page-content"],{[f["no-margin"]]:p.noMargin}),flex:1,style:{"--background-color":p.backgroundColor},children:(0,y.jsxs)("div",{className:f["page-main"],children:[(0,y.jsx)(U,{children:(0,y.jsx)(M,{title:p.title,backUrl:p.backUrl,filter:p.filter,titleExtra:p.titleExtra,titleLeftExtra:p.titleLeftExtra})}),(0,y.jsx)("div",{className:j()(f["page-main-content"],{[f["no-padding"]]:p.noPadding}),children:(0,y.jsxs)(U,{children:[p.helperGuideName&&(0,y.jsx)(W.default,{className:f["helper-guide-page"],name:p.helperGuideName}),t]})})]})}),(0,y.jsx)(U,{children:(0,y.jsx)(T,{})})]})})]})})})]})};G.defaultProps={navigation:{}};const $=G,V=e=>{let{permissions:t,...n}=e;return(0,y.jsx)(q.default,{...Object.assign({},t,{type:"error"}),children:(0,y.jsx)(S,{...n})})};var X=n(28148),J=n(22814);const Q=(0,r.forwardRef)(((e,t)=>{let{helperGuideName:n,permissions:s,page:a,openFeatures:i,name:l,topArea:o,...c}=e;const[u,d]=(0,r.useState)(null);return(0,y.jsxs)(V,{name:l,openFeatures:i,permissions:s,...a,children:[o?(0,y.jsx)("div",{className:f["table-page-top"],children:"function"===typeof o?o(u):o}):null,(0,y.jsxs)("div",{className:f["table-page"],children:[n&&(0,y.jsx)(W.default,{className:j()("helper-guide",f["helper-guide"]),name:n}),(0,y.jsx)(J.TablePage,{...c,ref:t,name:l,onRequestSuccess:e=>{d(e)}})]})]})}));var Z=n(87227);const D=e=>{let{helperGuideName:t,permissions:n,page:s,stateBar:r,children:a,...i}=e;return(0,y.jsxs)(V,{...s,permissions:n,...i,children:[(0,y.jsx)("div",{className:f["state-bar-page"],children:(0,y.jsx)(Z.default,{...r})}),t&&(0,y.jsx)(W.default,{className:f["helper-guide"],name:t}),a]})}},28148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});const s={menu:"style_menu__gvIvn__HjjiH","all-no-start-icon":"style_all-no-start-icon__CA+zR__HjjiH","no-start-icon":"style_no-start-icon__LnC1S__HjjiH","has-children":"style_has-children__m9tce__HjjiH","has-children-node":"style_has-children-node__2bhEB__HjjiH","is-root":"style_is-root__4hhOc__HjjiH",title:"style_title__+Hcar__HjjiH",active:"style_active__WU49K__HjjiH","no-collapse":"style_no-collapse__aIZBM__HjjiH","title-content":"style_title-content__cQXpK__HjjiH",loading:"style_loading__1pU4P__HjjiH"};var r=n(83136),a=n.n(r),i=n(55199),l=n(94679),o=n(29053),c=n(10986),u=n.n(c),d=n(64671),p=n(73884),_=n(18081),h=n.n(_),m=n(87558),g=n(70579);const j=e=>{const t=(0,l.useNavigate)(),{id:n,className:r,label:c,iconType:u,path:p,request:_,onClick:h,isOpen:j,isSelected:f,onOpenChange:y,children:x,fetchOptions:v,depth:H,onLoad:b,allowCollapsed:N}=e,C=Array.isArray(x)&&x.length>0||v,{refresh:O,isLoading:w}=(0,m.useFetch)(Object.assign({},v,{auto:!N&&v,onRequestSuccess:e=>{b(e)}}));return(0,g.jsx)(o.default,{request:_,children:(0,g.jsxs)("div",{className:a()(r,s["menu-item"]),children:[(0,g.jsxs)("div",{className:a()(s.title,{[s.active]:f,[s["has-children"]]:C,[s["no-collapse"]]:C&&!N,[s["no-start-icon"]]:!u,[s["is-root"]]:0===H}),onClick:s=>{s.stopPropagation(),C||!p?C||v?N&&(v&&O({}),y(!j)):null===h||void 0===h||h(n,e):t(p)},children:[u&&(0,g.jsx)(d.default,{type:u}),(0,g.jsx)("span",{className:s["title-content"],children:c}),C&&N&&(0,g.jsx)(d.default,{type:j?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),C?!N||j&&x?(0,g.jsx)("div",{className:s["children-list"],children:x}):!N||j&&w?(0,g.jsx)("div",{className:s["children-list"],children:(0,g.jsx)(i.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},f=e=>{let{className:t,allowCollapsed:n,pathMatch:r,...i}=e;const{pathname:o,search:c}=(0,l.useLocation)(),[d,_]=u()(i,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[m,f]=u()(i,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:y,defaultOpenKeys:x,links:v,childrenKeys:H,hasStartIcon:b,hasChildren:N}=(0,p.useMemo)((()=>{var e;const{items:t,childrenKeys:n,nodeMapping:s}=(e=>{const t={},n=[],s=(e,r)=>{const{parentKey:a,depth:i}=Object.assign({parentKey:"root",depth:0,paths:[]},r);return Array.isArray(e)&&e.length>0?e.map(((e,r)=>{const l=`${e.key||`${"root"!==a?`${a}-`:""}node-${r}`}`;t[a]||(t[a]=[]),t[a].push(l);const o=s(e.children,{parentKey:l,depth:i+1});t[l]&&t[a].push(...t[l]);const c=Object.assign({},e,{key:l,parentKey:a,depth:i,children:o,originItem:e});return n[l]=c,c})):null};return{items:s(e),childrenKeys:t,nodeMapping:n}})(m);let r=!1,a=!1;const i=[],l=[];return null===n||void 0===n||null===(e=n.root)||void 0===e||e.forEach((e=>{const t=s[e];t.iconType&&(r=!0),t.path&&i.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(a=!0,l.push(t.key))})),{defaultOpenKeys:l,links:i,items:t,childrenKeys:n,hasStartIcon:r,hasChildren:a}}),[m]);(0,p.useEffect)((()=>{const e=v.find((e=>{let{path:t}=e;return"function"===typeof r?r(t,{pathname:o,search:c}):h()(o.replace(/[#,?].*/,""))===h()(t)||h()(o+c)===h()(t)}));e&&_(e.key)}),[v,o,c,_,r]);const[C,O]=u()(Object.assign({},i,{defaultOpenKeys:i.defaultOpenKeys||x}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),w=(0,p.useCallback)(((e,t)=>{const{parentKey:s,depth:r,selectedKey:a,openKeys:i,paths:l}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:t,key:o,originItem:c,...u}=e;return(0,p.createElement)(j,{...Object.assign({},u),id:o,parentId:s,depth:r,allowCollapsed:n,isSelected:o===a||H[o]&&H[o].indexOf(a)>-1,onClick:_,onLoad:e=>{f((t=>{const n=t=>Array.isArray(t)&&t.length>0?t.map((t=>Object.assign({},t,{children:c===t?e:n(t.children)}))):null;return n(t)}))},isOpen:(i||[]).indexOf(o)>-1,key:o,onOpenChange:()=>{O((e=>{const t=e.slice(0);return e.indexOf(o)>-1?t.splice(e.indexOf(o),1):t.push(o),t}))}},w(t,{parentKey:s,depth:r+1,selectedKey:a,openKeys:i,paths:[...l,o]}))})):null}),[f,O,_,H,n]);return(0,g.jsx)("div",{className:a()(t,s.menu,{[s["all-no-start-icon"]]:!b,[s["has-children-node"]]:N}),children:w(y,{selectedKey:d,openKeys:C})})};f.defaultProps={defaultItems:[],allowCollapsed:!0};const y=f},79329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>L,navigationHeight:()=>w});var s=n(55199),r=n(94679),a=n(33097),i=n.n(a),l=n(73884),o=n(83136),c=n.n(o);const u=n.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var d=n(40438);const p=e=>({"en-US":()=>n.e(257).then(n.bind(n,30257)),"zh-CN":()=>n.e(5671).then(n.bind(n,5671))}[e]());var _=n(58609),h=n(96418),m=n.n(h),g=n(64671);const j="style_navigation-wrap__VF8x2__HjjiH",f="style_navigation__60RrS__HjjiH",y="style_is-fixed__kHFWj__HjjiH",x="style_navigation-logo__q9qHu__HjjiH",v="style_logo__lB9RC__HjjiH",H="style_navigation-list__EYtkg__HjjiH",b="style_navigation-options__0BdJU__HjjiH",N="style_more-icon__gNMnt__HjjiH";var C=n(70579);const{Header:O}=s.Layout,w=48,P=e=>{let{name:t,mapping:n,defaultTitle:s}=e;const r=(0,l.useRef)({mapping:n,defaultTitle:s});return(0,l.useEffect)((()=>{const e=i()(r.current.mapping.get(t),"title");document.title=(e?e+"-":"")+r.current.defaultTitle}),[t]),null},k=e=>{let{onReady:t}=e;const n=m()(t);return(0,l.useEffect)((()=>{n()}),[n]),null},E=e=>{let{permissions:t,list:n,headerLogo:a,rightOptions:o,isFixed:h,showIndex:m,indexLabel:w,defaultTitle:E,overflowedIndicator:L,base:S,onChange:K,className:R}=e;const A=(0,l.useMemo)((()=>new Map(n.map((e=>{let{key:t,...n}=e;return[t,n]})))),[n]),F=(0,r.useNavigate)(),I=(0,r.useLocation)(),M=(0,l.useRef)(),T=(0,l.useRef)(null),[W,q]=(0,l.useState)("\u66f4\u591a"),[B,z]=(0,l.useState)(!1),U=I.pathname.replace(new RegExp(`^${S}`),"").split("/")[1],G=U?i()(Array.from(A.entries()).find((e=>{let[n,{path:s,permission:r}]=e;return-1!==("function"===typeof s?s(r,t):s).indexOf("/"+U)})),"[0]"):"home";(0,l.useEffect)((()=>{const e=()=>{if(M.current){const e=M.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let s=0;s<e.length;s++){if(-1!==e[s].getAttribute("data-menu-id").indexOf(G)){t=!0;break}}let n=A.get(G)&&!t?i()(A.get(G),"title"):"";q(n)}},t={attributes:!0,childList:!0,subtree:!0};return B&&M&&M.current&&(e(),T.current&&T.current.disconnect(),T.current=new MutationObserver(e),T.current.observe(M.current,t)),()=>{T.current&&T.current.disconnect()}}),[G,A,B]);const $=!!m&&{label:w||(0,C.jsx)(_.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{K&&K("/"),setTimeout((()=>{F("/")}),0)}};return(0,C.jsxs)(_.IntlProvider,{importMessages:p,moduleName:"Navigation",children:[(0,C.jsx)(_.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,C.jsx)(P,{defaultTitle:E||e,mapping:A,name:G})}),(0,C.jsx)("div",{className:c()(j,R),children:(0,C.jsx)(O,{className:c()("navigation",f,{[y]:h}),children:(0,C.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,C.jsx)(s.Col,{className:c()("navigation-logo",x),children:(0,C.jsx)(d.default,{className:c()(v),src:u,alt:"logo",...a})}),(0,C.jsxs)(s.Col,{ref:M,flex:1,className:c()("navigation-list",H),children:[(0,C.jsx)(k,{onReady:()=>{z(!0)}}),(0,C.jsx)(s.Menu,{selectedKeys:[G],mode:"horizontal",overflowedIndicator:L||(0,C.jsxs)(s.Space,{size:4,children:[(0,C.jsx)("span",{children:W||(0,C.jsx)(_.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,C.jsx)("span",{className:N,children:(0,C.jsx)(g.default,{type:"icon-arrow-thin-down"})})]}),items:[$,...Array.from(A.entries()).filter((e=>{let[n,{permission:s}]=e;if("string"===typeof s)return t.indexOf(s)>-1;if("function"===typeof s)return s(t);if(Array.isArray(s)){for(let e of s)if(t.indexOf(e)>-1)return!0;return!1}return!0})).map((e=>{let[n,{title:s,path:r,permission:a}]=e;const i="function"===typeof r?r(a,t):r;return{label:s,key:n,onClick:()=>{K&&K(i),setTimeout((()=>{F(i)}),0)}}}))]})]}),(0,C.jsx)(s.Col,{className:b,children:o})]})})})]})};E.defaultProps={isFixed:!0,permissions:[],list:[],showIndex:!0,base:""};const L=E},29053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{computedIsPass:()=>p,default:()=>g,usePermissions:()=>_,usePermissionsPass:()=>h});var s=n(73884),r=n(55199),a=n(33097),i=n.n(a),l=n(83136),o=n.n(l);const c="style_outer__vbHB9__HjjiH";var u=n(63908),d=n(70579);const p=e=>{let{permissions:t,request:n}=e;return!(Array.isArray(n)&&n.length>0)||n.some((e=>(t||[]).indexOf(e)>-1))},_=()=>{const{global:e}=(0,u.useGlobalContext)(),{permissions:t,permissionsPath:n}=(0,u.usePreset)();return{permissions:e.permissions||t||n&&i()(e,n)||[]}},h=e=>{let{request:t}=e;const{permissions:n}=_();return p({permissions:n,request:t})},m=e=>{let{type:t,className:n,tagName:a,message:i,request:l,children:u,...p}=e;const _=h({request:l});return"function"===typeof u?u({isPass:_,type:t,request:l}):!0===_?u:"error"===t?(0,d.jsx)(r.Result,{status:"403",subTitle:i}):"tooltip"===t?(0,d.jsx)(r.Tooltip,{title:i,children:(0,s.createElement)(a,{...p,className:o()(c,n)},u)}):null};m.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const g=m},87227:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(55199),r=n(83136),a=n.n(r);const i={"state-bar":"style_state-bar__3jfis__HjjiH","has-children":"style_has-children__oQDqU__HjjiH","tab-tab-control":"style_tab-tab-control__SopeO__HjjiH","tab-radio-control":"style_tab-radio-control__R8X6-__HjjiH","tab-step-control":"style_tab-step-control__EQaCl__HjjiH","inner-state-bar":"style_inner-state-bar__lWmOz__HjjiH"};var l=n(70579);const o=e=>{let{className:t,type:n="tab",stateOption:r=[],isInner:o,...c}=e;return(0,l.jsx)(s.Tabs,{...c,"data-testid":"components-core-state-bar",className:a()(i["state-bar"],i[`tab-${n}-control`],t,{[i["inner-state-bar"]]:o,[i["has-children"]]:r.some((e=>!!e.children))}),style:{"--total-count":r.length},animated:!1,items:r.map((e=>{let{tab:t,label:n,key:s,...r}=e;return{label:t||n,key:s,...r}}))})}},94710:e=>{e.exports=function(e,t,n,s){for(var r=-1,a=null==e?0:e.length;++r<a;){var i=e[r];t(s,i,n(i),e)}return s}},32952:(e,t,n)=>{var s=n(45652);e.exports=function(e,t,n,r){return s(e,(function(e,s,a){t(r,e,n(e),a)})),r}},45652:(e,t,n)=>{var s=n(94664),r=n(76516)(s);e.exports=r},75816:e=>{e.exports=function(e,t,n,s){for(var r=e.length,a=n+(s?1:-1);s?a--:++a<r;)if(t(e[a],a,e))return a;return-1}},99910:e=>{e.exports=function(e,t){for(var n,s=-1,r=e.length;++s<r;){var a=t(e[s]);void 0!==a&&(n=void 0===n?a:n+a)}return n}},19449:(e,t,n)=>{var s=n(94710),r=n(32952),a=n(9096),i=n(54052);e.exports=function(e,t){return function(n,l){var o=i(n)?s:r,c=t?t():{};return o(n,e,a(l,2),c)}}},76516:(e,t,n)=>{var s=n(6571);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!s(n))return e(n,r);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i<a)&&!1!==r(l[i],i,l););return n}}},21844:(e,t,n)=>{var s=n(75816),r=n(9096),a=n(99140),i=Math.max,l=Math.min;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var c=o-1;return void 0!==n&&(c=a(n),c=n<0?i(o+c,0):l(c,o-1)),s(e,r(t,3),c,!0)}},39835:(e,t,n)=>{var s=n(71775),r=n(19449),a=Object.prototype.hasOwnProperty,i=r((function(e,t,n){a.call(e,n)?e[n].push(t):s(e,n,[t])}));e.exports=i},79160:(e,t,n)=>{var s=n(16913),r=n(22761);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==s(e)}},69613:(e,t,n)=>{var s=n(9261);e.exports=function(e,t,n){return null==e?e:s(e,t,n)}},42907:(e,t,n)=>{var s=n(9096),r=n(99910);e.exports=function(e,t){return e&&e.length?r(e,s(t,2)):0}},99140:(e,t,n)=>{var s=n(37303);e.exports=function(e){var t=s(e),n=t%1;return t===t?n?t-n:t:0}}}]);
2
- //# sourceMappingURL=4265.bdfd330a.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5443],{42787:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(10486),s=n(73884),o=n(96418),l=n.n(o),a=n(83136),i=n.n(a);const c={scroller:"style_scroller__EfuqR__HjjiH","scroller-inner":"style_scroller-inner__NJSE0__HjjiH","is-moving":"style_is-moving__jGuy0__HjjiH"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...o}=e;const l=(0,s.useRef)(0),[a,d]=(0,s.useState)(!1),m=(0,s.useRef)(a);m.current=a;const h=(0,s.useRef)(t);h.current=t;const g=(0,s.useRef)(1);return g.current=o.width/o.innerWidth,(0,s.useEffect)((()=>{const e=e=>{m.current&&h.current(g.current*(e.clientX-l.current)),l.current=e.clientX},t=()=>{d(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,r.createPortal)(o.hasScroller?(0,u.jsx)("div",{className:c.scroller,style:{left:o.left,width:o.width,height:15},children:(0,u.jsx)("div",{className:i()(c["scroller-inner"],{[c["is-moving"]]:a}),style:{width:o.innerWidth,left:o.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,d(!0)}})}):null,n()||document.body)},m=e=>{let{className:t,scroller:n,getScrollTarget:r,children:o}=e;const[a,m]=(0,s.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),h=(0,s.useRef)(null),g=l()((()=>h.current&&r(h.current))),p=(0,s.useRef)();return p.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,s.useEffect)((()=>{const e=p.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:r,top:s,height:o}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,a=r*t.clientWidth/t.scrollWidth-6,i=t.scrollLeft*t.clientWidth/t.scrollWidth+2,c=e.getBoundingClientRect();m((u=>Object.assign({},u,{left:n,width:r,innerLeft:i,innerWidth:a,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+o-e.offsetHeight>0&&s<e.offsetHeight:s<c.top+c.height&&s+o>c.top+c.height)})))},r=new ResizeObserver(n);return new ResizeObserver((()=>{t=g(),t&&(r.disconnect(),n(),Array.from(t.children).forEach((e=>{r.observe(e)})),t.addEventListener("scroll",n))})).observe(h.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[g]),n?(0,u.jsxs)("div",{className:i()(c["scroller-outer"],t),ref:h,style:{"--scroller-bar-height":null!==a&&void 0!==a&&a.hasScroller?"15px":"0px"},children:[o,(0,u.jsx)(d,{...a,getContainer:p.current,onScroll:e=>{g().scrollLeft+=e}})]}):o};m.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const h=m},63361:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x,useFeatureCall:()=>j});var r=n(73884),s=n(63908),o=n(33097),l=n.n(o),a=n(15797),i=n.n(a),c=n(1488),u=n.n(c),d=n(70579);const m=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{m(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),m(e.children,t,n?n+":"+e.id:e.id)))},h=i()((e=>{const t=(()=>{const t=new Map;return m(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),g=(e,t)=>{let{profileMap:n,features:r}=t;const s=n.get(e);return-1!==r.indexOf(e)&&!0!==s.close&&l()(s,"dependencies",[]).every((t=>{const s=n.get(e);return r.indexOf(t)>-1&&!0!==s.close}))},p=(0,r.createContext)(null),{Provider:f}=p,j=e=>{const{features:t,profile:n,profileMap:o,debug:a}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},h(t),{debug:n})})(),i="system"===n.type?n.id:"root",c=(0,r.useContext)(p),u=c?c+":"+e:i+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&a&&console.log(`[featureId] ${u},[state] ${g(u,{features:t,profileMap:o})}`,o.get(u))}),[t,o,a,u]),{isPass:!(e&&t&&t.length>0)||g(u,{features:t,profileMap:o}),currentId:u,feature:o.get(u)}},x=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:o}=j(t);return(0,d.jsx)(f,{value:o,children:"function"===typeof n?n({isPass:r,options:r?l()(s,"options"):l()(s,"rejectedOptions"),currentId:o}):r&&n})}},27777:(e,t,n)=>{n.r(t),n.d(t,{Table:()=>F,default:()=>W});var r=n(55199),s=n(73884),o=n(96418),l=n.n(o),a=n(87558),i=n.n(a),c=n(83136),u=n.n(c),d=n(33097),m=n.n(d),h=n(42787),g=n(76801),p=n(60262),f=n.n(p),j=n(56641),x=n.n(j),_=n(51941);const y={"loading-container":"style_loading-container__tATe2__HjjiH","width-changer":"style_width-changer__2ZxQE__HjjiH","table-changer-setting":"style_table-changer-setting__vHBi5__HjjiH","width-changer-sign":"style_width-changer-sign__JpI-0__HjjiH","columns-control":"style_columns-control__Yt34Y__HjjiH","columns-control-content":"style_columns-control-content__1wnZG__HjjiH","columns-control-content-title":"style_columns-control-content-title__MsQpI__HjjiH","columns-control-content-scroller":"style_columns-control-content-scroller__VEy4q__HjjiH","columns-control-content-footer":"style_columns-control-content-footer__rvk74__HjjiH","columns-control-content-input":"style_columns-control-content-input__fYYyr__HjjiH","columns-control-content-list":"style_columns-control-content-list__wepM4__HjjiH","columns-control-content-item":"style_columns-control-content-item__1cPXT__HjjiH","is-drag":"style_is-drag__HRe9m__HjjiH","columns-control-content-item-icon":"style_columns-control-content-item-icon__oku-X__HjjiH","sortable-drag":"style_sortable-drag__N6+aC__HjjiH","sortable-ghost":"style_sortable-ghost__EbwXI__HjjiH","columns-control-overlay":"style_columns-control-overlay__QYEXZ__HjjiH"};var C=n(63908),b=n(70579);const v=e=>"TH"===e.tagName.toUpperCase()&&[].indexOf.call(e.classList,"ant-table-cell")>-1&&-1===[].indexOf.call(e.classList,"ant-table-selection-column")?e:null!==e.parentElement&&e.parentElement!==document.body&&v(e.parentElement),w=e=>{let{columns:t,setData:n,name:r,initColumnsData:o}=e;const i=(0,s.useRef)(null),c=(0,s.useRef)(r);c.current=r;const d=(0,s.useMemo)((()=>new Map(t.map((e=>[e.key,e])))),[t]),m=(0,s.useRef)(d);m.current=d;const{tablePageServerApis:h}=(0,C.usePreset)(),g=(0,_.useDebouncedCallback)((()=>{(0,a.getCache)().delByCacheName(`TABLE_CONFIG_${c.current}`),h&&h.setDataFunc&&(h.setDataFunc(c.current,k),n(k))}),1e3),[p,j]=(0,s.useState)(!1),w=(0,s.useRef)(!1),A=(0,s.useRef)({index:-1,width:0}),[S,I]=(0,s.useState)({}),H=(0,s.useRef)(0),E=(0,s.useCallback)((()=>o&&o.length>0&&t.length===o.length&&x()(t,o,((e,t)=>e.key===t.id))?o.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})):t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})))),[o,t]);(0,s.useEffect)((()=>{O(E())}),[E]);const[k,O]=(0,s.useState)(E),L=l()((e=>{O(e),g()})),N=(0,s.useRef)(k),R=(0,s.useRef)(k);N.current=R.current=k;const M=l()((()=>{const e=t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})));R.current=e,L(e)}));return(0,s.useEffect)((()=>{if(!i.current)return;const e=e=>{const t=e.target;w.current||t.classList.contains("changer-sign")||v(t)||j(!1)},t=()=>{document.body.style.cursor="unset",w.current=!1,A.current={index:-1,width:0},j(!1)};return i.current.addEventListener("mousemove",(e=>{const t=v(e.target)||e.target,{left:n,top:r}=i.current.getBoundingClientRect(),{left:s,width:o,height:l}=t.getBoundingClientRect(),a=i.current.querySelector(".ant-table-thead"),c=a.getBoundingClientRect().top,u=Array.from(a.querySelectorAll("th")),d=Array.from(a.querySelectorAll("th:not(.ant-table-selection-column)"));if(!w.current&&v(t)&&0<e.pageX-s+8&&(A.current={index:d.indexOf(t),locationIndex:u.indexOf(t),width:o,left:s,height:l},I({left:s-n+o-8,top:c-r,height:l}),j(!0)),!w.current&&v(t)&&0>e.pageX-s+8&&j(!1),w.current&&A.current.index>-1){const t=e.pageX-H.current,n=(i.current.querySelector(".ant-table-body")||i.current.querySelector(".ant-table-content")).scrollLeft,s=Math.max(t+A.current.width,100);I({left:Math.max(f()(u.slice(0,A.current.locationIndex).map((e=>e.clientWidth)))-n,0)+s-8,top:c-r,height:A.current.height}),L((e=>{const t=e.slice(0);return t.filter((e=>{let{hidden:t}=e;return!0!==t})).forEach(((e,t)=>{var n;e.width=A.current.index===t?s:(null===(n=d[t])||void 0===n?void 0:n.clientWidth)||100})),t}))}}),!0),window.addEventListener("mouseup",t),document.addEventListener("mousemove",e,!0),()=>{document.removeEventListener("mousemove",e,!0),window.removeEventListener("mouseup",t)}}),[M,L]),{ref:i,sign:p&&(0,b.jsx)("div",{className:u()(y["width-changer-sign"],"changer-sign"),style:{top:S.top,left:S.left,height:S.height},onMouseDown:e=>{e.preventDefault(),w.current=!0,H.current=e.pageX,document.body.style.cursor="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAMAAACgaw2xAAAANlBMVEUAAAAjIyMiIiIhISEjIyMiIiIhISEiIiIjIyMiIiIjIyMjIyMiIiIiIiIiIiIiIiIiIiL///8npLH6AAAAEHRSTlMAZm9zdnd7gISIjKq78fL+6p9oYgAAAAFiS0dEEeK1PboAAAA/SURBVBgZ1cGJDYAgEEXBh7JyKPj7r9ZkQyKUwAx7yhfurCyyDHe8lUlRf4auws/U7qHJmJgSLslYxIALkS192tYB4NtE/LQAAAAASUVORK5CYII=) 12 10,col-resize"}}),targetColumns:k.filter((e=>{let{hidden:t}=e;return!0!==t})).map((e=>{let{id:t,width:n}=e;return Object.assign({},d.get(t),{width:n,ellipsis:!1})})),popupColumns:R.current,columnMap:m.current,setColumns:e=>{R.current=e},onConfirm:()=>{L(R.current)},onCancel:()=>{R.current=N.current},onReset:()=>{M()}}},A=e=>{const t=(0,a.withFetch)(e);return n=>{const{name:r,controllerOpen:s}=n,{tablePageServerApis:o}=(0,C.usePreset)();return s&&r&&o&&o.getDataApi?(0,b.jsx)(t,{...n,...o.getDataApi(r),cache:`TABLE_CONFIG_${r}`,isLocal:!0,ttl:5e3,error:(0,b.jsx)(e,{...n})}):(0,b.jsx)(e,{...n})}};var S=n(74529);const I=n.n(S)()(A,(e=>t=>{let{name:n,controllerOpen:r,columns:s,data:o,setData:l,...a}=t;const{ref:i,targetColumns:c,sign:d}=w({columns:s,name:n,initColumnsData:o,setData:l});return r?(0,b.jsxs)("div",{className:u()(y["width-changer"],"table-page-columns-width-changer"),ref:i,children:[(0,b.jsx)(e,{...a,name:n,controllerOpen:r,originColumns:s,tableColumnFetchApi:{data:o,setData:l},columns:c}),d]}):(0,b.jsx)(e,{columns:s,controllerOpen:r,originColumns:s,name:n,...a})}));var H=n(63361);const E=e=>({"en-US":()=>n.e(6222).then(n.bind(n,86222)),"zh-CN":()=>n.e(6964).then(n.bind(n,56964))}[e]());var k=n(58609),O=n(39835),L=n.n(O),N=n(64671),R=n(81014),M=n(36),P=n(76441);const{Panel:z}=r.Collapse,D=e=>{let{close:t,onCancel:n,onConfirm:o,onReset:l,columns:a,setColumns:i}=e;const[c,d]=(0,s.useState)(a),[m,h]=(0,s.useState)(""),{leftFixedColumns:g,rightFixedColumns:p,visibleColumns:f,hiddenColumns:j}=(0,s.useMemo)((()=>Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},L()(c,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":e.hidden?"hiddenColumns":"visibleColumns")))),[c]),x=e=>{d(e),i(e)};return(0,b.jsxs)("div",{className:y["columns-control-content"],children:[(0,b.jsx)("div",{className:y["columns-control-content-title"],children:(0,b.jsxs)(r.Row,{align:"middle",justify:"space-between",children:[(0,b.jsx)(r.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,b.jsx)(r.Col,{children:(0,b.jsx)(r.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,b.jsx)(R.default,{type:"text",icon:(0,b.jsx)(N.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{l&&await l(),t()}})})})]})}),(0,b.jsx)("div",{className:y["columns-control-content-scroller"],children:(0,b.jsxs)(r.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,b.jsx)(z,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,b.jsxs)(r.List,{className:y["columns-control-content-list"],children:[g.map((e=>(0,b.jsx)(r.List.Item,{className:y["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id))),(0,b.jsx)(P.ReactSortable,{list:f,filter:".ignore-elements",dragClass:y["sortable-drag"],ghostClass:y["sortable-ghost"],forceFallback:!0,setList:e=>{x([...g,...e,...j,...p])},animation:300,delayOnTouchStart:!0,delay:2,children:f.map((e=>(0,b.jsxs)(r.List.Item,{className:u()(y["columns-control-content-item"],y["is-drag"]),children:[(0,b.jsx)(N.default,{type:"icon-paixu",className:y["columns-control-content-item-icon"]}),(0,b.jsx)(r.Checkbox,{checked:!0,disabled:e.fixed,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=c.indexOf(e),r=c.slice(0);r[n]=Object.assign({},r[n],{hidden:!0}),x(r)},children:e.name})]},e.id)))}),p.map((e=>(0,b.jsx)(r.List.Item,{className:y["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id)))]})},"active"),(0,b.jsx)(z,{header:(0,b.jsxs)(r.Row,{wrap:!1,justify:"space-between",children:[(0,b.jsx)(r.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,b.jsx)(r.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,b.jsx)(M.SearchInput,{prefix:(0,b.jsx)(N.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{h(e)},className:y["columns-control-content-input"],size:"small"})})]}),children:(0,b.jsx)(r.List,{dataSource:j.filter((e=>"string"===typeof e.name&&e.name.indexOf(m)>-1)),renderItem:e=>(0,b.jsx)(r.List.Item,{className:y["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=c.indexOf(e),r=c.slice(0);r[n]=Object.assign({},r[n],{hidden:!1,width:r[n].width||200}),x(r)},children:e.name})},e.id)})},"un-active")]})}),(0,b.jsxs)(r.Row,{className:y["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,b.jsx)(r.Col,{children:(0,b.jsx)(r.Button,{size:"small",onClick:()=>{n&&n(),t()},children:"\u53d6\u6d88"})}),(0,b.jsx)(r.Col,{children:(0,b.jsx)(R.default,{type:"primary",size:"small",onClick:async()=>{o&&await o(),t()},children:"\u786e\u5b9a"})})]})]})},T=e=>{let{columns:t,name:n,data:o,setData:l,...a}=e;const[i,c]=(0,s.useState)(!1),{popupColumns:u,columnMap:d,setColumns:h,onConfirm:g,onCancel:p,onReset:f}=w({columns:t,name:n,initColumnsData:o,setData:l});return(0,b.jsx)(r.Popover,{...a,open:i,overlayClassName:y["columns-control-overlay"],trigger:"click",autoAdjustOverflow:!1,placement:"bottomRight",content:(0,b.jsx)(D,{columns:u.map((e=>{const t=d.get(e.id);return Object.assign({},e,{name:m()(t,"titleText")||m()(t,"title")||"\u672a\u547d\u540d\u5217",fixed:m()(t,"fixed")})})),setColumns:e=>{h(e.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})))},close:()=>c(!1),onConfirm:g,onCancel:p,onReset:f}),onOpenChange:e=>c(e),children:(0,b.jsx)("span",{className:y["table-changer-setting"],children:(0,b.jsx)(N.default,{type:"icon-shezhi"})})})},F=I((e=>{let{className:t,columns:n,originColumns:s,controllerOpen:o,tableColumnFetchApi:l,name:a,scroller:i,featureId:c,...d}=e;const{data:g,setData:p}=l||{},f=e=>{let{children:t}=e;return c?(0,b.jsx)(H.default,{id:c,children:e=>t(e)}):t({})};return(e=>(0,b.jsx)(h.A,{className:"table-page-scroller",scroller:i,getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:f({children:n=>{let{options:l}=n;const i=e.filter((e=>!e.key||(!Array.isArray(m()(l,"hiddenColumns"))||-1===l.hiddenColumns.indexOf(e.key))));return(0,b.jsx)(r.Table,{...d,columns:!1===o?i:i.map(((e,t)=>i.length-1===t?{...e,title:()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{children:e.title}),(0,b.jsx)(T,{data:g,columns:s,setData:p,name:a})]})}:e)),className:u()(t,"table-page")})}})}))(n)})),B=(0,a.withFetch)((e=>{let{data:t,refresh:n,reload:r,requestParams:o,fetchProps:a,isComplete:c,setData:d,loadMore:h,send:g,dataFormat:p,pagination:f,scroller:j,getColumns:x,getColumnsParams:_,className:C,columns:v,featureId:w,stickyOffset:A,...S}=e;const I=l()(p),H=l()(x),O=(0,s.useMemo)((()=>I(t)),[t,I]),L={dataSource:O.list,pagination:!!f.open&&{total:O.total,showTotal:e=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.FormattedMessage,{id:"Page_Total",moduleName:"TablePage",defaultMessage:"\u5171"}),(0,b.jsx)("span",{className:y.total_text,children:e}),(0,b.jsx)(k.FormattedMessage,{id:"Page_TotalCount",moduleName:"TablePage",defaultMessage:"\u6761"})]}),current:m()(o,[f.paramsType,f.current],1),pageSize:f.defaultPageSize,onChange:f.onChange?f.onChange:(e,t)=>{e!==m()(o,[f.paramsType,f.current],1)?("refresh"===f.requestType?n:r)({[f.paramsType]:{[f.current]:e,[f.pageSize]:t}}):f.onShowSizeChange&&f.onShowSizeChange(e,t)},size:f.size,showSizeChanger:f.showSizeChanger,showQuickJumper:f.showQuickJumper},className:C,style:{"--sticky-offset":A}};return(0,b.jsx)(k.IntlProvider,{importMessages:E,moduleName:"TablePage",children:(0,b.jsx)("div",{className:u()(y["loading-container"],"loading-container",{"is-loading":!c}),children:"function"!==typeof x||v?(0,b.jsx)(F,{...S,...L,columns:v,scroller:j,featureId:w}):(0,b.jsx)(i(),{data:t,params:_,loader:e=>{let{data:t,params:n}=e;return H({data:t,params:n,formatData:O})},render:e=>{let{data:t}=e;return(0,b.jsx)(F,{...S,...L,columns:t,scroller:j,featureId:w})}})})})})),q=(0,s.forwardRef)(((e,t)=>{let{pagination:n,...r}=e;const[o,l]=(0,s.useState)(20);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",current:"currentPage",pageSize:"perPage",size:"default"},n);const a=(0,s.useMemo)((()=>{const e={};return r.params&&Object.keys(r.params).length>0&&(e.params={...r.params,[n.pageSize]:o}),r.data&&Object.keys(r.data).length>0&&(e.data={...r.data,[n.pageSize]:o}),e}),[r.params,r.data,n.pageSize,o]);return(0,b.jsx)(B,{...r,pagination:Object.assign({},{defaultPageSize:o,onShowSizeChange:(e,t)=>{l(t)}},n),...a,ref:t})}));q.defaultProps={controllerOpen:!0,size:"middle",stickyOffset:"var(--nav-height)",sticky:{getContainer:g.h},scroller:{getContainer:g.h},scroll:{x:"max-content"},rowKey:"id",pagination:{},dataFormat:e=>({list:e.pageData,total:e.totalCount})};const W=q}}]);
2
- //# sourceMappingURL=5443.7e2d8f4e.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5600,9034,2517],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(8762),l=t.n(n);t(46733);const s=l()},58407:(e,o,t)=>{t.r(o),t.d(o,{ConfirmLink:()=>j,ConfirmText:()=>g,default:()=>y,withConfirm:()=>f});t(73884);var n=t(55199);const l=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var s=t(64671),i=t(58609),a=t(3382),r=t(83136),c=t.n(r);const d="style_overlay__99t5t__HjjiH",m="style_is-danger__gxyAB__HjjiH",h="style_title__EEPu2__HjjiH",_="style_content__mZZg5__HjjiH",p="style_has-title__5+PEt__HjjiH";var u=t(70579);const f=e=>{const o=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:l})((o=>{let{title:t,message:l,isDelete:r=!0,onClick:f,onCancel:j,disabled:g,showCancel:y,cancelText:C,isModal:x,okText:b,placement:H,getContainer:w,...N}=o;const{formatMessage:k}=(0,i.useIntl)({moduleName:"ConfirmButton"}),v=(0,a.useConfirmModal)();return x?(0,u.jsx)(e,{...N,disabled:g,onClick:e=>{v({type:"confirm",title:t,getContainer:w,danger:r,confirmType:r?"warning":"info",message:l||k({id:"message"}),okText:b||k(r?{id:"delete"}:{id:"confirm"}),cancelText:C||k({id:"cancel"}),onCancel:j,onOk:f})}}):(0,u.jsx)(n.Popconfirm,{title:(0,u.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(n.Space,{size:0,align:"start",className:h,children:[r&&(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,u.jsxs)(n.Space,{size:0,align:"start",className:c()(_,{[p]:t}),children:[!t&&r?(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||k({id:"message"})]})]}),placement:H,onConfirm:f,okButtonProps:{danger:r},onCancel:j,overlayClassName:c()(d,{[m]:r}),getPopupContainer:w,disabled:g,showCancel:y,cancelText:C,okText:b||k(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...N,disabled:g})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},j=f(n.Typography.Link),g=f(n.Typography.Text),y=f(n.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>T,TabsModal:()=>P,TabsModalButton:()=>B,default:()=>k,useConfirmModal:()=>N,useModal:()=>w,useTabsModal:()=>S});var n=t(73884),l=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__HjjiH",large:"style_large__iaqVE__HjjiH","modal-body-inner":"style_modal-body-inner__4PhpA__HjjiH","modal-title":"style_modal-title__dswaw__HjjiH","modal-outer":"style_modal-outer__r3SkX__HjjiH","modal-body":"style_modal-body__jQJSI__HjjiH","right-options-modal":"style_right-options-modal__FajDP__HjjiH","right-options-row":"style_right-options-row__-mPb9__HjjiH","right-options-col":"style_right-options-col__3ilee__HjjiH","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__HjjiH",content:"style_content__k6MIF__HjjiH","modal-footer":"style_modal-footer__-prbN__HjjiH","modal-close":"style_modal-close__Oa5Kl__HjjiH","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__HjjiH","is-danger":"style_is-danger__H5110__HjjiH",title:"style_title__orTym__HjjiH","has-title":"style_has-title__qy0Wp__HjjiH"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=t(81014),_=t(17342),p=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:n}=e;return o?(0,p.jsxs)(l.Row,{wrap:!1,className:a["right-options-row"],children:[(0,p.jsx)(l.Col,{span:24-t,className:a["right-options-col"],children:n}),(0,p.jsx)(l.Col,{span:t,className:a["right-options-col"],children:o})]}):n},j=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":j(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":j(300,o)}}:{width:"1000px",style:{"--min-modal-height":j(500,o)}},y=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,p.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,p.jsx)(l.Col,{children:(0,p.jsx)(l.Space,{children:(t||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:l,autoClose:s=!0,display:i,...r}=e;const c=t||h.default;return(0,n.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(l&&l(...o,d));return s&&!1!==n&&a&&a(),n}})}))})})]})},C=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:j}=e;const g=(0,n.useRef)(null);return(0,p.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,p.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,p.jsx)("div",{className:a["modal-title"],children:o}),(0,p.jsx)(_.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,p.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,p.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,p.jsx)(y,{footer:t,footerButtons:r,onConfirm:h,onCancel:u,onClose:c,targetProps:j})}):null]})},x=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,rightSpan:d,disabledScroller:h,childrenRef:_,children:u}=e;const j=e=>(e=Object.assign({},{title:n},e),(0,p.jsx)(C,{title:m(e.title,{...e,childrenRef:_,close:s}),closable:l,onClose:s,onConfirm:i,onCancel:a,footerButtons:m(t,{...e,close:s}),disabledScroller:h,footer:m(r,{...e,childrenRef:_,close:s}),targetProps:Object.assign({},e,{childrenRef:_,close:s}),children:(0,p.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:_,close:s}),children:m(u,{...e,childrenRef:_,close:s})})}));return"function"===typeof o?o(j):j({})},b=e=>{let{children:o,rightOptions:t,rightSpan:n,footer:l,footerButtons:s,className:d,size:m,title:h,onClose:_,onConfirm:u,onCancel:f,closable:j,disabledScroller:y,withDecorator:C,childrenRef:b,...H}=e;return{...H,icon:null,centered:!0,title:null,maskClosable:!!H.hasOwnProperty("maskClosable")&&H.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:_,className:i()(d,a.modal,a[m],{[a["right-options-modal"]]:t}),...g(m,!(null===l&&!s)),children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:x({withDecorator:C,title:h,closable:j,onClose:_,onConfirm:u,onCancel:f,footer:l,footerButtons:s,rightOptions:t,rightSpan:n,disabledScroller:y,children:o,childrenRef:b})})}},H=e=>{const o=(0,n.useRef)(null);return(0,p.jsx)(l.Modal,{...b(Object.assign({},e,{childrenRef:o}))})};H.defaultProps={size:"default"};const w=()=>{const{modal:e}=l.App.useApp(),o=(0,n.useRef)(null);return t=>{const n={},{children:l,...s}=b({onClose:()=>n.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:l});return n.close=i,n}},N=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:r,danger:c,wrapClassName:m,message:h,iconSetting:_={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},j=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},_);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,p.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,p.jsxs)(l.Space,{size:0,align:"start",className:a.title,children:[c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||j["confirm"===n?u:n]}):null,r]})}),content:(0,p.jsxs)(l.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||j["confirm"===n?u:n]}):null,h]})});t.close=o}return t}},k=H,v=e=>{let{items:o,className:t,activeKey:n,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,p.jsx)(l.Tabs,{items:o.map((o=>{let{withDecorator:n,...l}=o;return Object.assign({},l,{children:"function"===typeof n?n((o=>e(Object.assign({},t,o,{children:l.children})))):e(Object.assign({},t,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},P=e=>(0,p.jsx)(k,{...v(e)}),S=()=>{const e=w();return o=>e(v(o))};var M=t(73025);const B=e=>{const o=S();return e.api?(0,p.jsx)(M.A,{...e,modalFunc:o}):(0,p.jsx)(l.Button,{...e,onClick:()=>{o(e.modalProps)}})},T=e=>{const o=w();if(!e.api){const{modalProps:t,...n}=e;return(0,p.jsx)(l.Button,{...n,onClick:()=>{o(t)}})}return(0,p.jsx)(M.A,{...e,modalFunc:o})}},46733:()=>{}}]);
2
- //# sourceMappingURL=5600.c50c4e5d.chunk.js.map
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5873,9034,7790,4912],{58407:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ConfirmLink:()=>x,ConfirmText:()=>v,default:()=>h,withConfirm:()=>g});s(73884);var i=s(55199);const n=e=>({"en-US":()=>s.e(3275).then(s.bind(s,63275)),"zh-CN":()=>s.e(5181).then(s.bind(s,25181))}[e]());var a=s(64671),l=s(58609),r=s(3382),o=s(83136),c=s.n(o);const d="style_overlay__99t5t__HjjiH",u="style_is-danger__gxyAB__HjjiH",p="style_title__EEPu2__HjjiH",m="style_content__mZZg5__HjjiH",j="style_has-title__5+PEt__HjjiH";var f=s(70579);const g=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:n})((t=>{let{title:s,message:n,isDelete:o=!0,onClick:g,onCancel:x,disabled:v,showCancel:h,cancelText:_,isModal:y,okText:N,placement:S,getContainer:C,...w}=t;const{formatMessage:H}=(0,l.useIntl)({moduleName:"ConfirmButton"}),P=(0,r.useConfirmModal)();return y?(0,f.jsx)(e,{...w,disabled:v,onClick:e=>{P({type:"confirm",title:s,getContainer:C,danger:o,confirmType:o?"warning":"info",message:n||H({id:"message"}),okText:N||H(o?{id:"delete"}:{id:"confirm"}),cancelText:_||H({id:"cancel"}),onCancel:x,onOk:g})}}):(0,f.jsx)(i.Popconfirm,{title:(0,f.jsxs)(i.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[s&&(0,f.jsxs)(i.Space,{size:0,align:"start",className:p,children:[o&&(0,f.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}),s]}),(0,f.jsxs)(i.Space,{size:0,align:"start",className:c()(m,{[j]:s}),children:[!s&&o?(0,f.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,n||H({id:"message"})]})]}),placement:S,onConfirm:g,okButtonProps:{danger:o},onCancel:x,overlayClassName:c()(d,{[u]:o}),getPopupContainer:C,disabled:v,showCancel:h,cancelText:_,okText:N||H(o?{id:"delete"}:{id:"confirm"}),children:(0,f.jsx)(e,{...w,disabled:v})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},x=g(i.Typography.Link),v=g(i.Typography.Text),h=g(i.Button)},48731:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>g});var i=s(73884),n=s(87558),a=s(63908),l=s(15797),r=s.n(l),o=s(79686),c=s.n(o),d=s(70579);const u=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],p=(0,n.withFetch)((e=>{let{data:t,children:s}=e;return"function"===typeof s?s(t):s||(null===t||void 0===t?void 0:t.description)})),m=r()((e=>new Map(u.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),j=e=>{let{loader:t,...s}=e;const{global:{enumsRef:n}}=(0,a.useGlobalContext)(),l=(0,i.useRef)(null);return(0,d.jsx)(p,{...s,loader:async function(){const e=m(await t(...arguments)),{params:s}=arguments.length<=0?void 0:arguments[0],{moduleName:i,name:a,force:r,locale:o}=s,d=async t=>!0!==r&&l.current===o&&n.current.get(t)||await(async()=>{const s=e.get(t),i=await(async()=>"function"===typeof s?new Map((await s({locale:o})).map((e=>[e.value.toString(),e]))):Array.isArray(s)?new Map(s.map((e=>[e.value.toString(),e]))):"object"===typeof s?new Map(Object.keys(s).map((e=>[e.toString(),s[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return n.current.set(t,i),l.current=o,i})();if(Array.isArray(i))return await Promise.all(i.map((e=>d(e).then((e=>Array.from(e.values()))))));const u=await d(i);return c()(a)?Array.from(u.values()):u.get(a.toString())}})},f=e=>{let{moduleName:t,name:s,force:i,children:n,...l}=e;const r=(0,a.usePreset)();return(0,d.jsx)(j,{...l,params:{moduleName:t,locale:null===r||void 0===r?void 0:r.locale,enums:null===r||void 0===r?void 0:r.enums,name:s,force:i},loader:e=>{let{params:t}=e;return t.enums},children:n})};f.defaultProps={force:!1};const g=f},24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>$,DragAreaOuter:()=>Z,DragButton:()=>V,FileUpload:()=>le,Title:()=>A,UploadButton:()=>X,UploadTips:()=>q,default:()=>se});var i=s(73884),n=s(33097),a=s.n(n),l=s(55199);const r="style_file-list-outer__wPhbb__HjjiH",o="style_file-list-title__zXM5r__HjjiH",c="style_container__P4RaF__HjjiH",d="style_file-preview-inner__cvE72__HjjiH",u="style_file-preview__M-Asq__HjjiH",p="style_drag-area__Q+lm7__HjjiH",m="style_upload-drag-close__u5o8W__HjjiH",j="style_upload-drag-tips__z7puZ__HjjiH",f="style_upload-drag-icon__sGGoS__HjjiH",g="style_upload-drag-title__9Afmb__HjjiH",x="style_upload-drag-text__o38vS__HjjiH",v="style_title-group__8IJkS__HjjiH",h="style_upload-btn__Q+Jxn__HjjiH",_="style_total-count__z1fyd__HjjiH",y="style_file-select__mHqyI__HjjiH",N="style_file-name__QkvMn__HjjiH",S="style_file-select-info__fOLiM__HjjiH",C="style_file-select-option__AbDrD__HjjiH";var w=s(75087),H=s.n(w),P=s(74065),F=s.n(P),b=s(57469),L=s.n(b),M=s(64671),T=s(67390),z=s(58609),E=s(70579);const I=e=>{let{currentTab:t,setCurrentTab:s,previewMap:i,previewList:n,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:p,getPopupContainer:m}=e;return(0,E.jsx)("div",{className:o,children:(0,E.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,E.jsx)(l.Col,{children:(0,E.jsxs)(l.Space,{className:v,size:4,children:[(0,E.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,E.jsxs)(l.Space,{size:4,children:[(0,E.jsx)(M.default,{type:"icon-shitu-liebiao"}),(0,E.jsx)(z.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,E.jsxs)(l.Space,{size:4,children:[(0,E.jsx)(M.default,{type:"icon-shitu-yulan"}),(0,E.jsx)(z.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&i.get(r)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(l.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:n.map((e=>{let{filename:t,userName:s,date:i,ossId:n}=e;return(0,E.jsx)(l.Select.Option,{className:C,value:n,children:(0,E.jsxs)(l.Space,{direction:"vertical",children:[(0,E.jsxs)(l.Space,{size:4,align:"start",children:[(0,E.jsx)(H(),{type:F()(t.split(".")),size:14}),(0,E.jsx)(l.Typography.Text,{className:N,ellipsis:!0,style:{"--max-width":`${p}px`},children:t})]}),s||i?(0,E.jsxs)(l.Space,{className:S,size:24,children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(z.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,E.jsxs)("div",{children:[(0,E.jsx)(z.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",i&&L()(i).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},n)}))}),(0,E.jsx)(T.OptionButtons,{hasPreview:!1,getPermission:a,item:i.get(r),apis:d}),(0,E.jsx)("div",{className:_,children:(0,E.jsx)(z.FormattedMessage,{id:"totalCount",values:{count:n.length},moduleName:"FileList"})})]})]})}),(0,E.jsx)(l.Col,{children:u})]})})};I.defaultProps={maxWidth:260};const A=I,D=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var k=s(70720),O=s.n(k),U=s(83136),B=s.n(U);const R=(0,i.createContext)({}),{Provider:Y}=R,G=()=>(0,i.useContext)(R);var W=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:i}=G();return(0,E.jsx)("div",{ref:i,className:h,onClick:()=>{s((e=>!e))},children:(0,E.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,E.jsx)(M.default,{type:"icon-tuozhuaishangchuan"}),t||(0,E.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:i}=G();return(0,E.jsxs)(W.AG,{className:h,accept:s,multiple:!0,onChange:i,children:[(0,E.jsx)(M.default,{type:"icon-tianjia"}),t]})},Z=e=>{let{title:t,accept:s,fileSize:n,maxLength:a,onFileSelected:o,children:d,className:u}=e;const[p,m]=(0,i.useState)(!1),j=(0,i.useRef)(null),f=O()((e=>{j.current&&(j.current.contains(e.target)||e.target===j.current||m(!1))}));return(0,E.jsx)(z.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,E.jsx)(Y,{value:{open:p,onOpenChange:m,accept:s,fileSize:n,maxLength:a,onFileSelected:o,getDragButtonEl:e=>{j.current=e}},children:(0,E.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,E.jsx)("div",{className:B()(c,u),ref:f,onDragEnter:()=>{m(!0)},children:d})]})})})};Z.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const q=e=>{let{icon:t,title:s,renderTips:i}=e;const{accept:n,fileSize:a,maxLength:l}=G(),r=i((0,z.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:n.map((e=>e.replace(/^\./,""))).join("\u3001"),size:a}),{fileSize:a,maxLength:l,accept:n});return(0,E.jsxs)("div",{className:B()(j,"upload-drag-tips"),children:[(0,E.jsx)("div",{className:f,children:t||(0,E.jsx)(M.default,{type:"icon-shangchuan",size:64})}),(0,E.jsx)("div",{className:g,children:s||(0,E.jsx)(z.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,E.jsx)("div",{className:x,children:r})]})};q.defaultProps={renderTips:e=>e};const J=e=>{let{children:t,className:s}=e;const{open:i,accept:n,onOpenChange:a,onFileSelected:r}=G();return i?(0,E.jsxs)("div",{className:B()(p,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;a(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,n)));r(t)},onDragEnd:()=>{a(!1)},children:[(0,E.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,E.jsx)(M.default,{type:"icon-close-bold"}),onClick:()=>{a(!1)}}),t]}):null};J.defaultProps={children:(0,E.jsx)(q,{})};const $=J;var K=s(51714),ee=s(63908);const te=e=>{var t;let{maxLength:s,list:n,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:p,getPermission:m,titleExtra:j,fileSize:f,accept:g,getPopupContainer:x}=e;const{apis:v}=(0,ee.usePreset)(),h=Object.assign({},v,p),{fileList:_,onFileSelected:y}=(0,W.lN)({maxLength:s,multiple:!0,value:n,onChange:r,concurrentCount:1,onAdd:()=>{S("list")},onSave:h.onSave,ossUpload:h.ossUpload}),[N,S]=(0,i.useState)(o),{formatMessage:C}=(0,z.useIntl)({moduleName:"FileList"}),{message:w}=l.App.useApp(),H=(0,i.useMemo)((()=>new Map(n.map((e=>[e.ossId,e])))),[n]),[P,F]=(0,i.useState)(c||a()(n,"[0].ossId",null));(0,i.useEffect)((()=>{P&&H.get(P)||F(a()(n,"[0].ossId",null))}),[n,H,P]);const b={onPreview:e=>{F(e.ossId),S("preview")},onDelete:async e=>{h.onDelete&&await h.onDelete(e),r((t=>{const s=t.slice(0),i=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return i>-1&&s.splice(i,1),s})),w.success(C({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;h.onEdit&&await h.onEdit({formData:t,item:s}),r((e=>{const i=e.slice(0),n=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return n>-1&&i.splice(n,1,Object.assign({},s,{filename:t.name})),i})),w.success(C({id:"successEditFileName"},{name:s.filename}))}},L="function"===typeof j?j({currentPreviewFileId:P,currentTab:N}):j;return(0,E.jsxs)(Z,{title:(0,E.jsx)(A,{currentTab:N,setCurrentTab:S,previewMap:H,previewList:n,getPermission:m,currentPreviewFileId:P,setCurrentPreviewFileId:F,itemApis:b,getPopupContainer:x,children:(0,E.jsxs)(l.Space,{split:(0,E.jsx)(l.Divider,{type:"vertical"}),children:[L,m("add",{})?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(V,{children:(0,E.jsx)(z.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,E.jsx)(X,{children:(0,E.jsx)(z.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:f,maxLength:s,onFileSelected:y,accept:g,children:["list"===N?(0,E.jsx)(T.List,{dataSource:[..._,...n],getPermission:m,apis:b}):null,"preview"===N?P?(0,E.jsx)("div",{className:d,children:(0,E.jsx)(K.default,{className:u,id:P,apis:h,originName:null===(t=H.get(P))||void 0===t?void 0:t.filename})}):(0,E.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,E.jsx)($,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,E.jsx)(z.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,E.jsx)(te,{...e})});var ie=s(10986),ne=s.n(ie);const ae=e=>{let{maxLength:t,apis:s,getPermission:i,fileSize:n,accept:a,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,u]=ne()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:p,onFileSelected:m}=(0,W.lN)({maxLength:t,multiple:!0,value:d,onChange:u,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,E.jsxs)(Z,{title:(0,E.jsxs)(l.Row,{children:[(0,E.jsx)(l.Col,{flex:1}),(0,E.jsx)(l.Col,{children:(0,E.jsxs)(l.Space,{split:(0,E.jsx)(l.Divider,{type:"vertical"}),children:[(0,E.jsx)(V,{}),(0,E.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:n,maxLength:t,onFileSelected:m,accept:a,children:[(0,E.jsx)(T.List,{dataSource:[...p,...d],getPermission:i,apis:c}),(0,E.jsx)($,{})]})};ae.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const le=ae},94710:e=>{e.exports=function(e,t,s,i){for(var n=-1,a=null==e?0:e.length;++n<a;){var l=e[n];t(i,l,s(l),e)}return i}},32952:(e,t,s)=>{var i=s(45652);e.exports=function(e,t,s,n){return i(e,(function(e,i,a){t(n,e,s(e),a)})),n}},45652:(e,t,s)=>{var i=s(94664),n=s(76516)(i);e.exports=n},99910:e=>{e.exports=function(e,t){for(var s,i=-1,n=e.length;++i<n;){var a=t(e[i]);void 0!==a&&(s=void 0===s?a:s+a)}return s}},19449:(e,t,s)=>{var i=s(94710),n=s(32952),a=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?i:n,c=t?t():{};return o(s,e,a(r,2),c)}}},76516:(e,t,s)=>{var i=s(6571);e.exports=function(e,t){return function(s,n){if(null==s)return s;if(!i(s))return e(s,n);for(var a=s.length,l=t?a:-1,r=Object(s);(t?l--:++l<a)&&!1!==n(r[l],l,r););return s}}},26304:(e,t,s)=>{var i=s(53871),n=s(99140);e.exports=function(e,t,s){var a=null==e?0:e.length;return a?(t=s||void 0===t?1:n(t),i(e,0,(t=a-t)<0?0:t)):[]}},39835:(e,t,s)=>{var i=s(71775),n=s(19449),a=Object.prototype.hasOwnProperty,l=n((function(e,t,s){a.call(e,s)?e[s].push(t):i(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var i=s(26989);e.exports=function(e,t,s){var n=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===n?i(e,t,void 0,s):!!n}},60262:(e,t,s)=>{var i=s(99910),n=s(33279);e.exports=function(e){return e&&e.length?i(e,n):0}},99140:(e,t,s)=>{var i=s(37303);e.exports=function(e){var t=i(e),s=t%1;return t===t?s?t-s:t:0}},17448:()=>{},71975:()=>{}}]);
2
- //# sourceMappingURL=5873.ea3f2834.chunk.js.map