@kne-components/components-core 0.4.47 → 0.4.49

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 (134) hide show
  1. package/build/asset-manifest.json +105 -105
  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/{1381.97c23e40.chunk.css → 1381.88787b52.chunk.css} +2 -2
  6. package/build/static/css/{5633.97c23e40.chunk.css.map → 1381.88787b52.chunk.css.map} +1 -1
  7. package/build/static/css/1742.ef613214.chunk.css +2 -0
  8. package/build/static/css/{1742.4c30e2d6.chunk.css.map → 1742.ef613214.chunk.css.map} +1 -1
  9. package/build/static/css/{1996.310f86af.chunk.css → 1996.f8b06269.chunk.css} +2 -2
  10. package/build/static/css/{1996.310f86af.chunk.css.map → 1996.f8b06269.chunk.css.map} +1 -1
  11. package/build/static/css/2004.ed58a6f4.chunk.css +2 -0
  12. package/build/static/css/{2004.a6b0eba7.chunk.css.map → 2004.ed58a6f4.chunk.css.map} +1 -1
  13. package/build/static/css/2307.3c5059f0.chunk.css +2 -0
  14. package/build/static/css/{2307.9184b2df.chunk.css.map → 2307.3c5059f0.chunk.css.map} +1 -1
  15. package/build/static/css/254.b159fe70.chunk.css +2 -0
  16. package/build/static/css/{254.cb221451.chunk.css.map → 254.b159fe70.chunk.css.map} +1 -1
  17. package/build/static/css/3404.018687de.chunk.css +2 -0
  18. package/build/static/css/{3404.c1313374.chunk.css.map → 3404.018687de.chunk.css.map} +1 -1
  19. package/build/static/css/3625.36553112.chunk.css +2 -0
  20. package/build/static/css/{3625.fd2a7f91.chunk.css.map → 3625.36553112.chunk.css.map} +1 -1
  21. package/build/static/css/{3771.c1f85855.chunk.css → 3771.c542f311.chunk.css} +2 -2
  22. package/build/static/css/{3771.c1f85855.chunk.css.map → 3771.c542f311.chunk.css.map} +1 -1
  23. package/build/static/css/{3790.35bf8e8d.chunk.css → 3790.fe8e38db.chunk.css} +2 -2
  24. package/build/static/css/{3790.35bf8e8d.chunk.css.map → 3790.fe8e38db.chunk.css.map} +1 -1
  25. package/build/static/css/5195.c024c488.chunk.css +2 -0
  26. package/build/static/css/{5195.ff488c6d.chunk.css.map → 5195.c024c488.chunk.css.map} +1 -1
  27. package/build/static/css/{5633.97c23e40.chunk.css → 5633.88787b52.chunk.css} +2 -2
  28. package/build/static/css/{1381.97c23e40.chunk.css.map → 5633.88787b52.chunk.css.map} +1 -1
  29. package/build/static/css/5674.d42e8b20.chunk.css +2 -0
  30. package/build/static/css/{5674.6e43f500.chunk.css.map → 5674.d42e8b20.chunk.css.map} +1 -1
  31. package/build/static/css/{653.f1a8c344.chunk.css → 653.b666c943.chunk.css} +2 -2
  32. package/build/static/css/{653.f1a8c344.chunk.css.map → 653.b666c943.chunk.css.map} +1 -1
  33. package/build/static/css/{6763.641c7f0c.chunk.css → 6763.7fb4966d.chunk.css} +2 -2
  34. package/build/static/css/{6763.641c7f0c.chunk.css.map → 6763.7fb4966d.chunk.css.map} +1 -1
  35. package/build/static/css/7227.1fc2b5a4.chunk.css +2 -0
  36. package/build/static/css/{7227.8f746b0e.chunk.css.map → 7227.1fc2b5a4.chunk.css.map} +1 -1
  37. package/build/static/css/{7589.8cff24aa.chunk.css → 7589.4aacb414.chunk.css} +2 -2
  38. package/build/static/css/7589.4aacb414.chunk.css.map +1 -0
  39. package/build/static/css/{760.e5e86367.chunk.css → 760.b409f1cd.chunk.css} +2 -2
  40. package/build/static/css/{760.e5e86367.chunk.css.map → 760.b409f1cd.chunk.css.map} +1 -1
  41. package/build/static/css/7857.585194fa.chunk.css +2 -0
  42. package/build/static/css/{7857.b4796d19.chunk.css.map → 7857.585194fa.chunk.css.map} +1 -1
  43. package/build/static/css/{7987.97c23e40.chunk.css → 7987.88787b52.chunk.css} +2 -2
  44. package/build/static/css/{7987.97c23e40.chunk.css.map → 7987.88787b52.chunk.css.map} +1 -1
  45. package/build/static/css/833.c28022fa.chunk.css +2 -0
  46. package/build/static/css/{833.428eb735.chunk.css.map → 833.c28022fa.chunk.css.map} +1 -1
  47. package/build/static/css/{8593.27a2f164.chunk.css → 8593.602af143.chunk.css} +2 -2
  48. package/build/static/css/{8593.27a2f164.chunk.css.map → 8593.602af143.chunk.css.map} +1 -1
  49. package/build/static/css/{8689.906ec3c8.chunk.css → 8689.1a6dca51.chunk.css} +2 -2
  50. package/build/static/css/{8689.906ec3c8.chunk.css.map → 8689.1a6dca51.chunk.css.map} +1 -1
  51. package/build/static/css/9556.7078bc08.chunk.css +2 -0
  52. package/build/static/css/{9556.a2ecdc2c.chunk.css.map → 9556.7078bc08.chunk.css.map} +1 -1
  53. package/build/static/js/{1381.37b05f38.chunk.js → 1381.097e564d.chunk.js} +1 -1
  54. package/build/static/js/{1742.f9369a31.chunk.js → 1742.b4b3157e.chunk.js} +2 -2
  55. package/build/static/js/{1742.f9369a31.chunk.js.map → 1742.b4b3157e.chunk.js.map} +1 -1
  56. package/build/static/js/1996.75390469.chunk.js +2 -0
  57. package/build/static/js/{1996.067380ac.chunk.js.map → 1996.75390469.chunk.js.map} +1 -1
  58. package/build/static/js/{2004.211a995d.chunk.js → 2004.00308337.chunk.js} +3 -3
  59. package/build/static/js/{2004.211a995d.chunk.js.map → 2004.00308337.chunk.js.map} +1 -1
  60. package/build/static/js/{2242.a721c4d1.chunk.js → 2242.5caf43be.chunk.js} +2 -2
  61. package/build/static/js/2242.5caf43be.chunk.js.map +1 -0
  62. package/build/static/js/{254.322dcaa2.chunk.js → 254.6958b375.chunk.js} +2 -2
  63. package/build/static/js/{254.322dcaa2.chunk.js.map → 254.6958b375.chunk.js.map} +1 -1
  64. package/build/static/js/{2723.38314d6e.chunk.js → 2723.cb6a842c.chunk.js} +1 -1
  65. package/build/static/js/{3404.eaff0649.chunk.js → 3404.8f81d550.chunk.js} +3 -3
  66. package/build/static/js/{3404.eaff0649.chunk.js.map → 3404.8f81d550.chunk.js.map} +1 -1
  67. package/build/static/js/{3625.8871d9e4.chunk.js → 3625.5ec9bf8c.chunk.js} +2 -2
  68. package/build/static/js/{3625.8871d9e4.chunk.js.map → 3625.5ec9bf8c.chunk.js.map} +1 -1
  69. package/build/static/js/3771.088d9358.chunk.js +2 -0
  70. package/build/static/js/{3771.beb7c69b.chunk.js.map → 3771.088d9358.chunk.js.map} +1 -1
  71. package/build/static/js/{3790.210f5aa3.chunk.js → 3790.8624b208.chunk.js} +2 -2
  72. package/build/static/js/{3790.210f5aa3.chunk.js.map → 3790.8624b208.chunk.js.map} +1 -1
  73. package/build/static/js/3856.992e89f5.chunk.js +2 -0
  74. package/build/static/js/{3856.3009f90f.chunk.js.map → 3856.992e89f5.chunk.js.map} +1 -1
  75. package/build/static/js/{3980.ba062933.chunk.js → 3980.8b950921.chunk.js} +2 -2
  76. package/build/static/js/3980.8b950921.chunk.js.map +1 -0
  77. package/build/static/js/{4297.71ba78e9.chunk.js → 4297.30f27b86.chunk.js} +2 -2
  78. package/build/static/js/4297.30f27b86.chunk.js.map +1 -0
  79. package/build/static/js/4474.6d7786ed.chunk.js +2 -0
  80. package/build/static/js/{4474.42e860d2.chunk.js.map → 4474.6d7786ed.chunk.js.map} +1 -1
  81. package/build/static/js/{5195.c373efc4.chunk.js → 5195.16f05876.chunk.js} +2 -2
  82. package/build/static/js/{5195.c373efc4.chunk.js.map → 5195.16f05876.chunk.js.map} +1 -1
  83. package/build/static/js/{5633.10b44bd7.chunk.js → 5633.175e0df7.chunk.js} +1 -1
  84. package/build/static/js/{5674.015aa0a5.chunk.js → 5674.dc0583db.chunk.js} +2 -2
  85. package/build/static/js/{5674.015aa0a5.chunk.js.map → 5674.dc0583db.chunk.js.map} +1 -1
  86. package/build/static/js/{5958.0f13dc94.chunk.js → 5958.0e4aecbc.chunk.js} +2 -2
  87. package/build/static/js/{5958.0f13dc94.chunk.js.map → 5958.0e4aecbc.chunk.js.map} +1 -1
  88. package/build/static/js/{6763.5b29790a.chunk.js → 6763.a55b2e0d.chunk.js} +2 -2
  89. package/build/static/js/{6763.5b29790a.chunk.js.map → 6763.a55b2e0d.chunk.js.map} +1 -1
  90. package/build/static/js/{7040.85ca80c3.chunk.js → 7040.21027489.chunk.js} +2 -2
  91. package/build/static/js/{7040.85ca80c3.chunk.js.map → 7040.21027489.chunk.js.map} +1 -1
  92. package/build/static/js/{7227.60b8b40c.chunk.js → 7227.1053f26b.chunk.js} +3 -3
  93. package/build/static/js/{7227.60b8b40c.chunk.js.map → 7227.1053f26b.chunk.js.map} +1 -1
  94. package/build/static/js/{7589.5dae8029.chunk.js → 7589.90f9b150.chunk.js} +2 -2
  95. package/build/static/js/{7589.5dae8029.chunk.js.map → 7589.90f9b150.chunk.js.map} +1 -1
  96. package/build/static/js/{760.47757625.chunk.js → 760.6b24e4ad.chunk.js} +2 -2
  97. package/build/static/js/{760.47757625.chunk.js.map → 760.6b24e4ad.chunk.js.map} +1 -1
  98. package/build/static/js/7857.37c51907.chunk.js +2 -0
  99. package/build/static/js/{7857.1092602e.chunk.js.map → 7857.37c51907.chunk.js.map} +1 -1
  100. package/build/static/js/{833.407c64f9.chunk.js → 833.c3c7812b.chunk.js} +2 -2
  101. package/build/static/js/{833.407c64f9.chunk.js.map → 833.c3c7812b.chunk.js.map} +1 -1
  102. package/build/static/js/8593.0fe55cd4.chunk.js +2 -0
  103. package/build/static/js/{8593.0d871f1d.chunk.js.map → 8593.0fe55cd4.chunk.js.map} +1 -1
  104. package/build/static/js/{9556.ab9889b5.chunk.js → 9556.bef1a226.chunk.js} +3 -3
  105. package/build/static/js/{9556.ab9889b5.chunk.js.map → 9556.bef1a226.chunk.js.map} +1 -1
  106. package/build/static/js/{main.8e430531.js → main.f8f9eb0f.js} +2 -2
  107. package/build/static/js/{main.8e430531.js.map → main.f8f9eb0f.js.map} +1 -1
  108. package/package.json +3 -3
  109. package/build/static/css/1742.4c30e2d6.chunk.css +0 -2
  110. package/build/static/css/2004.a6b0eba7.chunk.css +0 -2
  111. package/build/static/css/2307.9184b2df.chunk.css +0 -2
  112. package/build/static/css/254.cb221451.chunk.css +0 -2
  113. package/build/static/css/3404.c1313374.chunk.css +0 -2
  114. package/build/static/css/3625.fd2a7f91.chunk.css +0 -2
  115. package/build/static/css/5195.ff488c6d.chunk.css +0 -2
  116. package/build/static/css/5674.6e43f500.chunk.css +0 -2
  117. package/build/static/css/7227.8f746b0e.chunk.css +0 -2
  118. package/build/static/css/7589.8cff24aa.chunk.css.map +0 -1
  119. package/build/static/css/7857.b4796d19.chunk.css +0 -2
  120. package/build/static/css/833.428eb735.chunk.css +0 -2
  121. package/build/static/css/9556.a2ecdc2c.chunk.css +0 -2
  122. package/build/static/js/1996.067380ac.chunk.js +0 -2
  123. package/build/static/js/2242.a721c4d1.chunk.js.map +0 -1
  124. package/build/static/js/3771.beb7c69b.chunk.js +0 -2
  125. package/build/static/js/3856.3009f90f.chunk.js +0 -2
  126. package/build/static/js/3980.ba062933.chunk.js.map +0 -1
  127. package/build/static/js/4297.71ba78e9.chunk.js.map +0 -1
  128. package/build/static/js/4474.42e860d2.chunk.js +0 -2
  129. package/build/static/js/7857.1092602e.chunk.js +0 -2
  130. package/build/static/js/8593.0d871f1d.chunk.js +0 -2
  131. /package/build/static/js/{2004.211a995d.chunk.js.LICENSE.txt → 2004.00308337.chunk.js.LICENSE.txt} +0 -0
  132. /package/build/static/js/{3404.eaff0649.chunk.js.LICENSE.txt → 3404.8f81d550.chunk.js.LICENSE.txt} +0 -0
  133. /package/build/static/js/{7227.60b8b40c.chunk.js.LICENSE.txt → 7227.1053f26b.chunk.js.LICENSE.txt} +0 -0
  134. /package/build/static/js/{9556.ab9889b5.chunk.js.LICENSE.txt → 9556.bef1a226.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([[4474],{1904(e,t,a){a.d(t,{A:()=>i,N:()=>c});var n=a(98434),s=a(43856);const{useOnChange:l,useDecorator:r}=n.hooks,o=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.AddressSelectField);o.Field=s.AddressSelectField,o.AddressEnum=s.AddressSelectField.AddressEnum,o.createAddressApi=s.AddressSelectField.createAddressApi,o.withAddressApi=s.AddressSelectField.withAddressApi;const i=o,c=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(s.AddressInputField);c.Field=s.AddressInputField},2842(e,t,a){a.d(t,{default:()=>s.a});a(2885);var n=a(48553),s=a.n(n);a.o(n,"PHONE_NUMBER_INPUT")&&a.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},5995(e,t,a){a.d(t,{Ay:()=>m,Vl:()=>h,W6:()=>g});var n=a(53986),s=a(89379),l=a(3382),r=a(73025),o=a(55199),i=a(76995),c=a(47094),d=a(70579);const u=["classNames"],p=["modalProps"],m=e=>(0,d.jsx)(l.default,(0,s.A)({},(0,i.A)(Object.assign({},e,{className:c.A["form-modal"]})))),h=()=>{const e=(0,l.useModal)();return t=>e((0,i.A)(Object.assign({},t,{className:c.A["form-modal"]})))},g=e=>{let{classNames:t}=e,a=(0,n.A)(e,u);const l=h();if(!a.api){const{modalProps:e}=a,t=(0,n.A)(a,p);return(0,d.jsx)(o.Button,(0,s.A)((0,s.A)({},t),{},{onClick:()=>{l(e)}}))}return(0,d.jsx)(r.A,(0,s.A)((0,s.A)({},a),{},{modalFunc:l}))}},15209(e,t,a){a.d(t,{A:()=>h});var n=a(53986),s=a(89379),l=a(20454),r=a(55199),o=a(10986),i=a.n(o),c=a(13050),d=a(70579);const u=["remoteModules"],p=e=>{let t=Object.assign({},((0,l.A)(e),e));const[a,n]=i()(t);return(0,d.jsx)(r.Input,(0,s.A)((0,s.A)({},t),{},{value:a,onChange:e=>{n(e.target.value?e.target.value.toUpperCase():e.target.value,e)}}))},m=(0,c.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t}=e,a=(0,n.A)(e,u);const[s]=t,{hooks:l}=s,{useDecorator:r}=l;return r(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(a.label||"")},a))(p)});m.field=p;const h=m},15445(e,t,a){a.d(t,{A:()=>le,E:()=>re});var n=a(89379),s=a(53986),l=a(98434),r=a(30096),o=a(34643),i=a(1904),c=a(83230),d=a(55199),u=a(70579);const{useOnChange:p}=l.hooks,m=e=>(0,u.jsx)(d.ColorPicker,(0,n.A)((0,n.A)({},e),{},{onChange:t=>e.onChange(t.toHexString())})),h=e=>p(Object.assign({},e))(m);h.Field=h;const g=h;var f=a(81026),x=a(78756),A=a(92328),_=a(2842);const v=["checked","children"],{useOnChange:y,useCheckedToValue:j}=l.hooks,{withChecked:b}=l.hoc,S=b(e=>{let{checked:t,children:a=null}=e,l=(0,s.A)(e,v);return(0,u.jsxs)(d.Space,{children:[(0,u.jsx)(d.Switch,(0,n.A)({checked:t},l)),"function"===typeof a?a({checked:t}):a]})}),N=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=j(e);return y(t)(S)};N.Field=d.Switch;const C=N;var T=a(89099),w=a(96339),F=a(36972),P=a(15209),L=a(74529),k=a.n(L),I=a(73884),M=a(52526),O=a(33097),E=a.n(O),R=a(21079),D=a(46237),z=a(56259),U=a(29556),J=a(64671),B=a(83136),V=a.n(B),W=a(70188),H=a(47094);const q=["forwardedRef","label","placeholder","labelRender"],G=["placeholder","label"],Q=["placeholder","label"],Y=["placeholder","label","soFarText"],X=e=>t=>{const a=k()(...e)(e=>{let{forwardedRef:a,label:l,placeholder:r,labelRender:o}=e,i=(0,s.A)(e,q);return(0,u.jsx)(t,(0,n.A)((0,n.A)({},i),{},{label:l,placeholder:r,labelRender:function(){const e="function"===typeof o?o(...arguments):l;return i.tips?(0,u.jsxs)(d.Space,{children:[e,(0,u.jsx)(U.default,{content:i.tips,children:(0,u.jsx)("span",{className:V()(H.A["field-tips"],{[H.A["label-hidden"]]:i.labelHidden}),children:(0,u.jsx)(J.default,{type:"icon-xinxi-miaobian"})})})]}):e},ref:a}))}),l=(0,I.forwardRef)((e,t)=>(0,u.jsx)(a,(0,n.A)((0,n.A)({},e),{},{forwardedRef:t})));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{l[e]=t[e]}),l},$=e=>(0,W.A)(t=>{let{placeholder:a,label:l}=t,r=(0,s.A)(t,G);const{formatMessage:o}=(0,M.useIntl)();return(0,u.jsx)(e,(0,n.A)((0,n.A)({},r),{},{label:l,placeholder:a||o({id:"defaultInputPlaceholder"},{label:l})}))}),Z=e=>(0,W.A)(t=>{let{placeholder:a,label:l}=t,r=(0,s.A)(t,Q);const{formatMessage:o}=(0,M.useIntl)();return(0,u.jsx)(e,(0,n.A)((0,n.A)({},r),{},{label:l,placeholder:a||o({id:"defaultSelectPlaceholder"},{label:l})}))}),K=e=>t=>{const a=(0,l.useGroup)(),s=E()(a,"name"),r=(0,R.get)(a,"index"),o=(0,D.oc)();return o&&Array.isArray(o)&&o.length>0?o.map(a=>{if("string"===typeof a)return(0,I.createElement)(e,(0,n.A)((0,n.A)({},t),{},{key:a}));const{name:l,label:o,options:i}=a,c=E()(i,"ignore",[]),d=E()(i,"disabled",[]),u=E()(i,"fields",[]),p=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==s)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==r);if(c.length>0&&c.find(p))return null;if(u.length>0&&!u.find(p))return null;let m=Object.assign({},t,{name:E()(i,"nameTransform",(e,t)=>"".concat(e).concat(t))(t.name,l),label:E()(i,"labelTransform",(e,t)=>e&&"".concat(e).concat(t))(t.label,o)});return d.length>0&&d.find(p)&&(m.disabled=!0,m.rule=""),(0,I.createElement)(e,(0,n.A)((0,n.A)({},m),{},{key:l}))}):(0,u.jsx)(e,(0,n.A)({},t))},ee=X([K,$])(l.Input),te=X([K,$])(l.InputNumber);ee.Password=X([K,$])(l.Input.Password);const ae=X([K,Z])(l.DatePicker);ae.MonthPicker=X([K,Z])(l.DatePicker.MonthPicker),ae.RangePicker=X([K,Z])(l.DatePicker.RangePicker),ae.WeekPicker=X([K,Z])(l.DatePicker.WeekPicker);const ne=X([K,Z])(l.TimePicker);ne.RangePicker=X([K,Z])(l.TimePicker.RangePicker);const se=X([K])(e=>{let{placeholder:t,label:a,soFarText:r}=e,o=(0,s.A)(e,Y);const{formatMessage:i}=(0,M.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(l.DatePickerToday,(0,n.A)((0,n.A)({},o),{},{label:a,placeholder:[i({id:"startDate"}),i({id:"endDate"})],soFarText:r||i({id:"soFarText"})}))}),le={Input:ee,Checkbox:l.Checkbox,Password:ee.Password,InputNumber:te,DatePicker:ae,MonthPicker:ae.MonthPicker,WeekPicker:ae.WeekPicker,DateRangePicker:ae.RangePicker,TimeRangePicker:ne.RangePicker,TimePicker:ne,DatePickerToday:se,RadioGroup:X([K])(l.RadioGroup),CheckboxGroup:X([K])(l.CheckboxGroup),Rate:X([K])(l.Rate),Switch:X([K])(C),Slider:X([K])(l.Slider),SalaryInput:X([K,$])(F.A),TypeDateRangePicker:X([K])(z.A),MoneyInput:X([K,$])(A.A),PhoneNumber:X([K,$])(_.default),Upload:X([K])(T.A),Avatar:X([K])(w.A),FunctionSelect:X([K,Z])(f.A),IndustrySelect:X([K,Z])(x.A),Cascader:X([K,Z])(c.A),ColorPicker:X([K,Z])(g),AddressSelect:X([K,Z])(i.A),AddressInput:X([K,Z])(i.N),TreeSelect:X([K,Z])(l.TreeSelect),ReactInputNumber:X([K,$])(l.InputNumber),InputUpperCase:X([K,$])(P.A),Select:X([K,Z])(l.Select),TextArea:X([K,$])(l.TextArea),AdvancedSelect:X([K,Z])(r.Ay),SuperSelect:X([K,Z])(o.Ay),SuperSelectTableList:X([K,Z])(o.eM),SuperSelectUser:X([K,Z])(o.Pg),SuperSelectTree:X([K,Z])(o.kx)},re={createWithFieldDecorator:X,withInputDefaultPlaceholder:$,withSelectDefaultPlaceholder:Z,withLang:K}},18936(e,t,a){a.d(t,{A:()=>U});var n=a(89379),s=a(53986);const l={"ant-tag":"style_ant-tag__7ct2q__TkoJL",overlay:"style_overlay__CXfU5__TkoJL",input:"style_input__+OpvV__TkoJL","is-disabled":"style_is-disabled__uX4qq__TkoJL","input-icon":"style_input-icon__E3NjK__TkoJL",large:"style_large__vMozz__TkoJL",small:"style_small__ubqQ+__TkoJL","input-inner":"style_input-inner__sY-6k__TkoJL","input-custom":"style_input-custom__Kxq3n__TkoJL","display-content":"style_display-content__qA1jn__TkoJL","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__TkoJL","selected-tag":"style_selected-tag__BZsMM__TkoJL","selected-tag-list":"style_selected-tag-list__As0ho__TkoJL","selected-tag-inner":"style_selected-tag-inner__2NH59__TkoJL","text-inner":"style_text-inner__Bq2Ji__TkoJL",placeholder:"style_placeholder__odotY__TkoJL","is-modal":"style_is-modal__4cj8L__TkoJL","overlay-content":"style_overlay-content__kpGRn__TkoJL"};var r=a(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,r.A)();var u=a(73884),p=a(10986),m=a.n(p),h=a(87558),g=a(33097),f=a.n(g),x=a(55199),A=a(83136),_=a.n(A),v=a(3382),y=a(64671),j=a(79686),b=a.n(j),S=a(41740),N=a.n(S),C=a(74065),T=a.n(C),w=a(17342),F=a(70579);const P=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],L=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName"],k=["setFetchApi","wrapClassName"],I=["api","className","displayItems","wrapClassName"],M=e=>{let{maxLength:t,single:a,setValue:n,value:s,message:l}=e;return e=>n(!a&&Number.isInteger(t)&&t>0&&e.length>t?(l("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),s):e)},O=e=>{let{single:t,value:a,mapping:n,onClose:s}=e;return a&&Array.isArray(a)&&0!==a.length?t?(0,F.jsx)("span",{className:l["text-inner"],children:f()(n.get(a[0]),"label")||a[0]}):a.map(e=>{const t=n.get(e);return(0,F.jsx)(x.Tag,{className:l["display-tag"],closable:!0,onClose:a=>{a.preventDefault(),s(e,t)},children:(0,F.jsx)("span",{className:l["tag-inner"],children:f()(t,"label")||e})},e)}):null},E=(0,u.forwardRef)((e,t)=>{let{value:a,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,s.A)(e,P);const[m,h]=(0,u.useState)(a),g=(0,u.useRef)(a);g.current=a;const[f,A]=(0,u.useState)(!1),{message:_}=x.App.useApp(),y=M({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:_.error});return(0,u.useEffect)(()=>{f&&h(g.current)},[f]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{A(!0)},close:()=>{A(!1)}})),(0,F.jsx)(v.default,(0,n.A)((0,n.A)({},p),{},{open:f,onConfirm:()=>{r(m)},onClose:()=>{A(!1)},footer:(i||o)&&(0,F.jsxs)(x.Space,{direction:"vertical",className:l["overlay-footer"],children:[o&&(0,F.jsx)("div",{className:l["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:y})]}),children:"function"===typeof d?d({value:m,setValue:y}):d}))}),R=(0,u.forwardRef)((e,t)=>{let{value:a,setValue:r,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:g,wrapClassName:f}=e,A=(0,s.A)(e,L);const[_,v]=(0,u.useState)(!1);return(0,u.useImperativeHandle)(t,()=>({close:()=>{v(!1)}}),[]),(0,F.jsx)(x.Popover,(0,n.A)((0,n.A)({},A),{},{open:_,onOpenChange:v,overlayClassName:l.overlay,arrow:!1,content:(0,F.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:l["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,F.jsx)("div",{className:l["overlay-inner"],children:"function"===typeof o?o({value:a,setValue:e=>{(!m||a[0]!==e[0])&&r(e),m&&v(!1)}}):o}),(c||h)&&(0,F.jsxs)("div",{className:l["overlay-footer"],children:[h&&(0,F.jsx)("div",{className:l["overlay-footer-extra"],children:h}),c&&i({value:a,setValue:r})]})]}),trigger:"click",placement:d,children:(0,F.jsx)("div",{className:l["input-inner"],children:p})}))}),D=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:a}=e,n=(0,s.A)(e,k);const[r,o]=(0,u.useState)(!1),c=(0,u.useRef)(null),d=(0,u.useRef)(null),p=i(),{valueState:m,mapping:h,props:g}=p,[f,A]=m,{single:v,placement:j,getPopupContainer:b,placeholder:S,isPopup:N,disabled:C,showSelectedTag:T,extra:P,inputContent:L}=g,I=(0,u.useRef)(n);I.current=n,(0,u.useEffect)(()=>{t(Object.assign({},I.current,{data:n.data,isComplete:n.isComplete}))},[n.data,t,n.isComplete]);const M=O({single:v,value:f,mapping:h,onClose:e=>{A(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}}),D=e=>{let{value:t,setValue:a}=e;return(0,F.jsxs)(x.Space,{className:l["selected-tag"],align:"center",wrap:!0,children:[(0,F.jsxs)("div",{children:["\u5df2\u9009",!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,F.jsx)(w.A,{className:l["selected-tag-list"],children:(0,F.jsx)("div",{className:l["selected-tag-inner"],children:O({value:t,mapping:h,onClose:e=>{a(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}})})})]})},z=L?L(p):(0,F.jsxs)(x.Space,{className:l["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,F.jsx)("div",{children:M||(0,F.jsx)("span",{className:l.placeholder,children:S})}),r&&f&&f.length>0&&!C?(0,F.jsx)(y.default,{className:_()(l.close,l["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),A([])}}):(0,F.jsx)(y.default,{className:_()(l["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return N?(0,F.jsx)(R,{ref:d,overlayWidth:g.overlayWidth,value:f,setValue:A,single:v,inputContent:z,extra:"function"===typeof P?P({close:()=>d.current.close(),context:p}):P,renderSelectedContent:D,showSelectedTag:T,trigger:"click",placement:j,getPopupContainer:b,children:g.children}):(0,F.jsxs)("div",{className:l["input-inner"],onClick:()=>{c.current.modalOpen()},children:[(0,F.jsx)(E,{size:g.modalSize,ref:c,single:g.single,maxLength:g.maxLength,disabledScroller:!0,wrapClassName:_()(l.overlay,l["is-modal"],a),title:g.placeholder,value:f,onChange:A,extra:"function"===typeof P?P({close:()=>c.current.close(),context:p}):P,showSelectedTag:T,renderSelectedContent:D,children:g.children}),z]})}),z=e=>{let{api:t,className:a,displayItems:r,wrapClassName:o}=e,i=(0,s.A)(e,I);const[d,p]=(0,u.useState)(""),[h,g]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),[A,v]=(0,u.useState)({}),{message:y}=x.App.useApp(),j=e=>{const t=e.filter(e=>h.get(e.value)!==e);0!==t.length&&g(e=>{const a=N()(e);return t.forEach(e=>{a.set(e.value,e)}),a})},S=e=>((e,t,a)=>"all"!==a?e:(t(e),e.map(e=>e.value)))(i.single?b()(e)?[]:[e]:e||[],j,i.valueType),[C,w]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,a)=>"all"!==a?e:e.map(e=>t.get(e)))(e,h,i.valueType);i.onChange&&i.onChange(i.single?T()(t):t)}},"value"in i?{value:S(i.value)}:{defaultValue:S(i.defaultValue)})),P=M({maxLength:i.maxLength,single:i.single,setValue:w,value:C,message:y.error});return(0,F.jsx)(c,{value:{mapping:h,searchText:d,setSearchText:p,appendMapping:j,setItems:e=>{A.setData(e),j(f()(i.dataFormat(e),"list",[]))},fetchApi:A,valueState:[C,P],props:i},children:(0,F.jsx)("div",{className:_()(l["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],a),children:(0,F.jsx)(D,(0,n.A)((0,n.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:v,onRequestSuccess:e=>{j(f()(i.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};z.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},z.useContext=i;const U=z},21649(e,t,a){a.r(t),a.d(t,{default:()=>n});const n={addText:"Add",addSomeThing:"Add {label}",delText:"Delete",selectedTextAdvanced:"Selected",delConfirm:"Are you sure you want to delete this {name}?",defaultInputPlaceholder:"Please enter {label}",defaultSelectPlaceholder:"Please select {label}",startDate:"Start Date",endDate:"End Date",soFarText:"Hitherto",uploadButtonText:"Click Upload",uploadTips:"Support extension {extensionNames}, single file size does not exceed {fileSize} M, upload up to {maxLength} attachments",yuan:"yuan",thousand:"ten thousand yuan",salaryType:"Salary type",Cancel:"Cancel",Save:"Save",Next:"Next",Complete:"Complete",Crop:"Crop",Preview:"Preview",PictureFormat:"Picture Format: ",ImageSize:"Image Size: ",ReUpload:"Re-upload",UploadFailed:"Upload Failed{msg}",NotExceeding:"Not exceeding {size}M",FileNotExceeding:"File {name} not exceeding {size}MB\uff01",Rotate:"Rotate",ImageFull:"Image Full",Size:"Image Size"}},24474(e,t,a){a.r(t),a.d(t,{DragArea:()=>E,DragAreaOuter:()=>M,DragButton:()=>k,FileUpload:()=>W,Title:()=>y,UploadButton:()=>I,UploadTips:()=>O,default:()=>U});var n=a(89379),s=a(73884),l=a(33097),r=a.n(l),o=a(55199);const i={"file-list-title":"style_file-list-title__zXM5r__TkoJL",container:"style_container__P4RaF__TkoJL","file-preview-inner":"style_file-preview-inner__cvE72__TkoJL","file-preview":"style_file-preview__M-Asq__TkoJL","drag-area":"style_drag-area__Q+lm7__TkoJL","upload-drag-close":"style_upload-drag-close__u5o8W__TkoJL","upload-drag-tips":"style_upload-drag-tips__z7puZ__TkoJL","upload-drag-icon":"style_upload-drag-icon__sGGoS__TkoJL","upload-drag-title":"style_upload-drag-title__9Afmb__TkoJL","upload-drag-text":"style_upload-drag-text__o38vS__TkoJL","list-item-outer":"style_list-item-outer__qfopH__TkoJL","list-item":"style_list-item__QUzqW__TkoJL",split:"style_split__8HVlD__TkoJL",loading:"style_loading__OSlYB__TkoJL","list-options":"style_list-options__4l3QJ__TkoJL","list-time":"style_list-time__canbk__TkoJL","title-group":"style_title-group__8IJkS__TkoJL","upload-btn":"style_upload-btn__Q+Jxn__TkoJL","total-count":"style_total-count__z1fyd__TkoJL","file-select":"style_file-select__mHqyI__TkoJL","file-name":"style_file-name__QkvMn__TkoJL","file-select-info":"style_file-select-info__fOLiM__TkoJL","file-select-option":"style_file-select-option__AbDrD__TkoJL"};var c=a(75087),d=a.n(c),u=a(74065),p=a.n(u),m=a(57469),h=a.n(m),g=a(64671),f=a(34699),x=a(47458),A=a(83136),_=a.n(A),v=a(70579);const y=e=>{let{currentTab:t,setCurrentTab:a,previewMap:n,previewList:s,getPermission:l,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:u,children:m,maxWidth:A=260,getPopupContainer:y}=e;return(0,v.jsx)("div",{className:i["file-list-title"],children:(0,v.jsxs)(o.Row,{align:"middle",justify:"space-between",wrap:!0,children:[(0,v.jsx)(o.Col,{children:(0,v.jsxs)(o.Space,{className:_()(i["title-group"],"core-file-list-title-group"),size:4,wrap:!0,children:[(0,v.jsx)(o.Segmented,{value:t,onChange:a,options:[{label:(0,v.jsxs)(o.Space,{size:4,children:[(0,v.jsx)(g.default,{type:"icon-shitu-liebiao"}),(0,v.jsx)(x.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,v.jsxs)(o.Space,{size:4,children:[(0,v.jsx)(g.default,{type:"icon-shitu-yulan"}),(0,v.jsx)(x.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&n.get(r)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o.Select,{className:i["file-select"],variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:y,children:s.map(e=>{let{filename:t,userName:a,date:n,id:s}=e;return(0,v.jsx)(o.Select.Option,{className:i["file-select-option"],value:s,children:(0,v.jsxs)(o.Space,{direction:"vertical",children:[(0,v.jsxs)(o.Space,{size:4,align:"start",children:[(0,v.jsx)(d(),{type:p()(t.split(".")),size:14}),(0,v.jsx)(o.Typography.Text,{className:i["file-name"],ellipsis:!0,style:{"--max-width":"".concat(A,"px")},children:t})]}),a||n?(0,v.jsxs)(o.Space,{className:i["file-select-info"],size:24,children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(x.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",a]}),(0,v.jsxs)("div",{children:[(0,v.jsx)(x.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&h()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},s)})}),(0,v.jsx)(f.OptionButtons,{hasPreview:!1,getPermission:l,item:n.get(r),apis:u}),(0,v.jsx)("div",{className:i["total-count"],children:(0,v.jsx)(x.FormattedMessage,{id:"totalCount",values:{count:s.length},moduleName:"FileList"})})]})]})}),(0,v.jsx)(o.Col,{children:m})]})})};var j=a(53986);const b=e=>({"en-US":()=>a.e(3333).then(a.bind(a,63333)),"zh-CN":()=>a.e(8795).then(a.bind(a,48795))}[e]());var S=a(70720),N=a.n(S);const C=(0,s.createContext)({}),{Provider:T}=C,w=()=>(0,s.useContext)(C);var F=a(61323),P=a(81348);const L=["children"],k=e=>{let{children:t}=e;const{onOpenChange:a,getDragButtonEl:n}=w();return(0,v.jsx)("div",{ref:n,className:i["upload-btn"],onClick:()=>{a(e=>!e)},children:(0,v.jsxs)(o.Button,{type:"text",className:"btn-no-padding",children:[(0,v.jsx)(g.default,{type:"icon-tuozhuaishangchuan"}),t||(0,v.jsx)(x.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},I=e=>{let{children:t}=e;const{accept:a,onFileSelected:s}=w();return(0,v.jsx)(F.FileInput,{className:_()(i["upload-btn"],"btn-no-padding"),accept:a,multiple:!0,onChange:s,children:e=>{let{children:a}=e,s=(0,j.A)(e,L);return(0,v.jsxs)(o.Button,(0,n.A)((0,n.A)({},s),{},{type:"text",children:[(0,v.jsx)(g.default,{type:"icon-tianjia"}),t,a]}))}})},M=e=>{let{title:t,accept:a=[".png",".jpg",".pdf",".docx",".doc"],fileSize:n=20,maxLength:l,onFileSelected:r,children:c,className:d,defaultOpen:u=!1}=e;const[p,m]=(0,s.useState)(u),h=(0,s.useRef)(null),g=N()(e=>{h.current&&(h.current.contains(e.target)||e.target===h.current||m(!1))});return(0,v.jsx)(x.IntlProvider,{importMessages:b,moduleName:"FileList",children:(0,v.jsx)(T,{value:{open:p,onOpenChange:m,accept:a,fileSize:n,maxLength:l,onFileSelected:r,getDragButtonEl:e=>{h.current=e}},children:(0,v.jsxs)(o.Space,{className:i["file-list-outer"],orientation:"vertical",children:[t,(0,v.jsx)("div",{className:_()(i.container,d),ref:g,onDragEnter:()=>{m(!0)},children:c})]})})})},O=e=>{let{icon:t,title:a,renderTips:n=e=>e}=e;const{accept:s,fileSize:l,maxLength:r}=w(),o=n((0,x.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:s.map(e=>e.replace(/^\./,"")).join("\u3001"),size:l}),{fileSize:l,maxLength:r,accept:s});return(0,v.jsxs)("div",{className:_()(i["upload-drag-tips"],"upload-drag-tips"),children:[(0,v.jsx)("div",{className:i["upload-drag-icon"],children:t||(0,v.jsx)(g.default,{type:"icon-shangchuan",size:64})}),(0,v.jsx)("div",{className:i["upload-drag-title"],children:a||(0,v.jsx)(x.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,v.jsx)("div",{className:i["upload-drag-text"],children:o})]})},E=e=>{let{children:t=(0,v.jsx)(O,{}),className:a}=e;const{open:n,accept:s,onOpenChange:l,onFileSelected:r}=w();return n?(0,v.jsxs)("div",{className:_()(i["drag-area"],a),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;l(!1);const t=Array.from(e.dataTransfer.files).filter(e=>(0,P.A)(e,s));r(t)},onDragEnd:()=>{l(!1)},children:[(0,v.jsx)(o.Button,{className:i["upload-drag-close"],type:"text",shape:"circle",size:"small",icon:(0,v.jsx)(g.default,{type:"icon-close-bold"}),onClick:()=>{l(!1)}}),t]}):null};var R=a(50196),D=a(72752);const z=e=>{var t,a;let{className:l,maxLength:c=Number.MAX_VALUE,list:d,setList:u,infoItemRenders:p,defaultTab:m="list",defaultPreviewFileId:h,apis:g,getPermission:A=()=>!0,titleExtra:_=null,fileSize:j=20,accept:b=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:S}=e;const{apis:N}=(0,D.usePreset)(),C=Object.assign({},N,g),T=(d||[]).map(e=>Object.assign({},{id:e.ossId},e)),{fileList:w,onFileSelected:P}=(0,F.useFileUpload)({maxLength:c,multiple:!0,value:T,onChange:u,concurrentCount:1,onAdd:()=>{O("list")},onSave:async function(e){if("function"===typeof C.onSave){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];const s=await C.onSave(e,...a);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:C.onUpload||C.ossUpload}),[L,O]=(0,s.useState)(m),{formatMessage:z}=(0,x.useIntl)({moduleName:"FileList"}),{message:U}=o.App.useApp(),J=(0,s.useMemo)(()=>new Map(T.map(e=>[e.id,e])),[T]),[B,V]=(0,s.useState)(h||r()(T,"[0].id",null));(0,s.useEffect)(()=>{B&&J.get(B)||V(r()(T,"[0].id",null))},[T,J,B]);const W=(0,n.A)((0,n.A)({},C),{},{onPreview:e=>{V(e.id),O("preview")},onDelete:async e=>{C.onDelete&&!1===await C.onDelete(e)||(u(t=>{const a=t.slice(0),n=t.findIndex(t=>{let{id:a}=t;return a===e.id});return n>-1&&a.splice(n,1),a}),U.success(z({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:a}=e;const n=C.onEdit&&await C.onEdit({formData:t,item:a});return!1!==n&&(u(e=>{const n=e.slice(0),s=e.findIndex(e=>{let{id:t}=e;return t===a.id});return s>-1&&n.splice(s,1,Object.assign({},a,{filename:t.name})),n}),U.success(z({id:"successEditFileName"},{name:a.filename}))),n}}),H="function"===typeof _?_({currentPreviewFileId:B,currentTab:L}):_;return(0,v.jsx)("div",{className:l,children:(0,v.jsxs)(M,{title:(0,v.jsx)(y,{currentTab:L,setCurrentTab:O,previewMap:J,previewList:T,getPermission:A,currentPreviewFileId:B,setCurrentPreviewFileId:V,itemApis:W,getPopupContainer:S,children:(0,v.jsxs)(o.Space,{separator:(0,v.jsx)(o.Divider,{type:"vertical"}),children:[H,A("add",{})?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(k,{children:z({id:"dragText"})}),(0,v.jsx)(I,{children:z({id:"uploadFile"})})]}):null]})}),fileSize:j,maxLength:c,onFileSelected:P,accept:b,defaultOpen:0===T.length,children:["list"===L?(0,v.jsx)(f.List,{dataSource:[...T,...w],getPermission:A,apis:W,infoItemRenders:p}):null,"preview"===L?B?(0,v.jsx)("div",{className:i["file-preview-inner"],children:(0,v.jsx)(R.default,{className:i["file-preview"],src:null===(t=J.get(B))||void 0===t?void 0:t.src,id:B,apis:C,filename:null===(a=J.get(B))||void 0===a?void 0:a.filename})}):(0,v.jsx)(o.Empty,{image:o.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,v.jsx)(E,{})]})})},U=e=>(0,v.jsx)(x.IntlProvider,{importMessages:b,moduleName:"FileList",children:(0,v.jsx)(z,(0,n.A)({},e))});var J=a(10986),B=a.n(J);const V=["maxLength","apis","getPermission","fileSize","accept","defaultList"],W=e=>{let{maxLength:t=Number.MAX_VALUE,apis:a,getPermission:s=()=>!0,fileSize:l=20,accept:i=[".png",".jpg",".pdf",".docx",".doc"],defaultList:c=[]}=e,d=(0,j.A)(e,V);const{apis:u}=(0,D.usePreset)(),p=Object.assign({},u,a),[m,h]=B()((0,n.A)({defaultList:c},d),{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:g,onFileSelected:A}=(0,F.useFileUpload)({maxLength:t,multiple:!0,value:m,onChange:h,concurrentCount:1,onSave:async function(e){if("function"===typeof p.onSave){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];const s=await p.onSave(e,...a);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:p.ossUpload});return(0,v.jsxs)(M,{title:(0,v.jsxs)(o.Row,{children:[(0,v.jsx)(o.Col,{flex:1}),(0,v.jsx)(o.Col,{children:(0,v.jsxs)(o.Space,{split:(0,v.jsx)(o.Divider,{type:"vertical"}),children:[(0,v.jsx)(k,{}),(0,v.jsx)(I,{children:(0,v.jsx)(x.IntlProvider,{importMessages:b,moduleName:"FileList",children:(0,v.jsx)(x.FormattedMessage,{id:"upload",moduleName:"FileList"})})})]})})]}),fileSize:l,maxLength:t,onFileSelected:A,accept:i,children:[(0,v.jsx)(f.List,{dataSource:[...g,...m],getPermission:s,apis:p}),(0,v.jsx)(E,{})]})}},29556(e,t,a){a.r(t),a.d(t,{TooltipFetch:()=>L,TooltipInfoLabel:()=>T,default:()=>N});var n=a(89379),s=a(53986),l=a(55199),r=a(83136),o=a.n(r);const i="style_tooltip__zHGMI__TkoJL",c="style_large__lvmsm__TkoJL",d="style_small__nUt0r__TkoJL",u="style_popup-content__-rKQN__TkoJL",p="style_title__1EQPq__TkoJL",m="style_important-info__qTSZY__TkoJL",h="style_error__yTTq3__TkoJL",g="style_warning__CMJxz__TkoJL",f="style_success__AvJVx__TkoJL",x="style_sub-title__uD8CH__TkoJL",A="style_content__lzgUz__TkoJL",_="style_alone__q6q82__TkoJL",v="style_fetch-content__tEOEV__TkoJL",y="style_fetch-loading__tN-WB__TkoJL",j="style_title-info-icon__iY8Q+__TkoJL";var b=a(70579);const S=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],N=e=>{let{overlayClassName:t,title:a,size:r,subtitle:v,content:y,importantInfo:j,importantInfoType:N,moreInfo:C}=e,T=(0,s.A)(e,S);return(0,b.jsx)(l.Tooltip,(0,n.A)((0,n.A)({},T),{},{rootClassName:o()(t,i,{[d]:"small"===r,[c]:"large"===r}),title:(0,b.jsxs)(l.Space,{direction:"vertical",className:u,children:[a&&(0,b.jsx)("div",{className:p,children:a}),j&&(0,b.jsx)("div",{className:o()(m,{[f]:"success"===N,[g]:"warning"===N,[h]:"error"===N}),children:j}),v&&(0,b.jsx)("div",{className:x,children:v}),y&&(0,b.jsx)("div",{className:o()(A,{[_]:[a,v,j,C].every(e=>!e)}),children:y}),C&&(0,b.jsx)("div",{children:C})]})}))};var C=a(64671);const T=e=>{let{title:t,tooltipTitle:a}=e;return(0,b.jsxs)("div",{children:[t,a?(0,b.jsx)(N,(0,n.A)((0,n.A)({},a),{},{children:(0,b.jsx)("span",{children:(0,b.jsx)(C.default,{type:"icon-xinxi-miaobian",className:j,size:14})})})):null]})};var w=a(73884),F=a(87558);const P=["api","children","fetchContent","showLoading","loadingClassName","force"],L=e=>{let{api:t,children:a,fetchContent:r,showLoading:i=!0,loadingClassName:c,force:d}=e,u=(0,s.A)(e,P);const[p,m]=(0,w.useState)(!1),h=(0,F.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:g,isLoading:f,data:x,send:A}=h;return(0,b.jsx)(N,(0,n.A)((0,n.A)({},Object.assign({},u,g?r(x,h):{})),{},{open:p,onOpenChange:async e=>{!e||g&&!d||await A({type:"refresh"}),m(e)},children:(0,b.jsxs)("span",{className:v,children:[a,i&&f?(0,b.jsx)(l.Spin,{size:"small",className:o()(c,y)}):null]})}))}},30096(e,t,a){a.d(t,{Ay:()=>d});var n=a(98434),s=a(43856);const{useOnChange:l}=n.hooks,r=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=r(s.UserField),i=r(s.TableField),c=r(s.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:a}=e;return r((0,s.createListField)({renderList:t,defaultProps:a}))},c.User=o,c.Table=i;const d=c},30891(e,t,a){a.d(t,{A:()=>l});var n=a(89379),s=a(98434);const l=e=>{let{children:t}=e;const{openApi:a,formData:l}=(0,s.useFormContext)();return t((0,n.A)((0,n.A)({},a),{},{formData:l}))}},34643(e,t,a){a.d(t,{Ay:()=>p,Pg:()=>c,eM:()=>d,kx:()=>u});var n=a(98434),s=a(43856),l=a(60586);const{useOnChange:r}=n.hooks,o=e=>{const t=t=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(s.SuperSelectField),c=o(l.$9),d=o(s.SuperSelectTableListField),u=o(s.SuperSelectTreeField),p=i},34699(e,t,a){a.r(t),a.d(t,{Download:()=>m,FileButton:()=>F,FileLink:()=>P,List:()=>C,OptionButtons:()=>N,PrintButton:()=>o.PrintButton,default:()=>i(),download:()=>o.download,downloadBlobFile:()=>o.downloadBlobFile,useDownload:()=>o.useDownload,useFileModal:()=>L});var n=a(89379),s=a(53986),l=(a(64674),a(96418)),r=a.n(l),o=a(61323),i=a.n(o),c=a(3382),d=a(83136),u=a.n(d),p=a(70579);o.Download.useDownload=o.useDownload,o.Download.downloadBlobFile=o.downloadBlobFile;const m=o.Download;var h=a(26304),g=a.n(h),f=a(74065),x=a.n(f),A=a(96252);const _=e=>({"en-US":()=>a.e(5645).then(a.bind(a,75645)),"zh-CN":()=>a.e(6707).then(a.bind(a,26707))}[e]());var v=a(47458);const y=["apis"],j=["onCancel"],b=["onCancel"],S=e=>{let{apis:t}=e;const a=(0,A.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=a({size:"small",title:(0,p.jsx)(v.IntlProvider,{importMessages:_,moduleName:"File",children:(0,p.jsx)(v.FormattedMessage,{id:"editDocumentName",moduleName:"File"})}),formProps:{data:{name:g()(e.filename.split(".")).join(".")},onSubmit:async a=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},a,{name:"".concat(a.name,".").concat(x()(e.filename.split(".")))}),item:e})))&&n.close()}},children:(0,p.jsx)(A.default,{column:1,list:[(0,p.jsx)(A.Input,{name:"name",label:(0,p.jsx)(v.IntlProvider,{importMessages:_,moduleName:"File",children:(0,p.jsx)(v.FormattedMessage,{id:"documentName",moduleName:"File"})}),rule:"REQ LEN-0-100"})]})})}},N=e=>{var t;const a=S({apis:e.apis});return(0,p.jsx)(o.FileListOptionButtons,(0,n.A)((0,n.A)({},e),{},{onEdit:t=>a(t,e.apis),onDelete:null===(t=e.apis)||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof e.renderModal?e.renderModal:e=>{let{onCancel:t}=e,a=(0,s.A)(e,b);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},a)),{},{onClose:t}))}}))},C=e=>{let{apis:t}=e,a=(0,s.A)(e,y);const l=S({apis:t});return(0,p.jsx)(o.FileList,(0,n.A)((0,n.A)({},a),{},{apis:t,onEdit:e=>l(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof a.renderModal?a.renderModal:e=>{let{onCancel:t}=e,a=(0,s.A)(e,j);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},a)),{},{onClose:t}))}}))},T=["onCancel"],w=["className"],F=e=>(0,p.jsx)(o.FileButton,(0,n.A)({},Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t}=e,a=(0,s.A)(e,T);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},a)),{},{onClose:t}))}}}))),P=e=>{const t=Object.assign({},e),{className:a}=t,l=(0,s.A)(t,w);return(0,p.jsx)(F,(0,n.A)((0,n.A)({},l),{},{className:u()(a,"btn-no-padding"),type:"link",children:l.children||l.filename||l.originName}))},L=e=>{const{title:t,children:a,footer:n}=(0,o.useFileModalProps)(Object.assign({},e)),s=(0,c.useModal)();return r()(()=>s({title:t,children:a,footer:n}))}},35774(e,t,a){a.d(t,{A:()=>c});var n=a(89379),s=a(53986),l=a(98434),r=a(81014),o=a(70579);const i=["onClick"],c=e=>{let{onClick:t}=e,a=(0,s.A)(e,i);const c=(0,l.useFormContext)();return(0,o.jsx)(r.default,(0,n.A)((0,n.A)({},a),{},{onClick:e=>t(c,e)}))}},36972(e,t,a){a.d(t,{A:()=>R});var n=a(89379),s=a(53986),l=a(73884),r=a(87558),o=a(98434),i=a(78491),c=a.n(i),d=a(55199);const u="style_salary__sUOtT__TkoJL",p="style_salary-type__Sl1LC__TkoJL",m="style_input-number__eoEZr__TkoJL",h="style_full__NPqJm__TkoJL",g="style_input-group__toLB7__TkoJL",f="style_input-group-no-mb__C4nzh__TkoJL";var x=a(47458),A=a(55431),_=a(48731),v=a(10986),y=a.n(v),j=a(21079),b=a(70579);const S=["data"],N=["getPopupContainer","onBlur","api","isRange","placeholder","disabled","showMonth","remindUnit","req"],C=["api","defaultValue"],T=(0,r.withFetch)(e=>{let{data:t}=e,a=(0,s.A)(e,S);return(0,b.jsx)(d.Select,(0,n.A)((0,n.A)({},a),{},{options:t}))}),{useDecorator:w,useUIDecorator:F}=o.hooks,P=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},L=e=>{let{children:t,isError:a}=e;return(0,b.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(a?"is-error":""),children:(0,b.jsx)("div",{className:"react-form__field-main",children:(0,b.jsx)("div",{className:"react-form__field-input",children:(0,l.cloneElement)(t,{className:"react-form__field-component"})})})})},k=e=>{let{getPopupContainer:t,onBlur:a,api:l,isRange:r=!0,placeholder:o,disabled:i,showMonth:A,remindUnit:v,req:S}=e,C=(0,s.A)(e,N);const[w,F]=y()(C),{formatMessage:k}=(0,x.useIntl)({moduleName:"FormInfo"}),I=k({id:"defaultSelectPlaceholder"},{label:""}),M=k({id:"defaultInputPlaceholder"},{label:""}),O=[6].indexOf((0,j.get)(w,"type"))>-1,E=1===(0,j.get)(w,"type"),R=7===(0,j.get)(w,"type"),D=e=>{if(e)return O?e/1e4:e},z=c()(a||(()=>{}));return(0,b.jsx)("div",{ref:z,className:u,children:(0,b.jsxs)(d.Row,{wrap:!1,gutter:10,children:[(0,b.jsx)(d.Col,{children:(0,b.jsx)(T,(0,n.A)((0,n.A)({className:p},l),{},{value:(0,j.get)(w,"type"),onChange:e=>{F&&F(Object.assign({},E?{}:w,{type:e,min:"",max:""}))},placeholder:o||I,getPopupContainer:t,disabled:i}))}),E?null:(0,b.jsxs)(d.Col,{flex:1,children:[r&&(0,b.jsxs)(d.Row,{className:v&&[5,6].includes(null===w||void 0===w?void 0:w.type)?g:f,wrap:!1,children:[(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(L,{isError:!(0,j.get)(w,"min")&&S,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:M,formatter:P,value:D((0,j.get)(w,"min")),style:{textAlign:"center"},onChange:e=>{F(Object.assign({},w,{min:O?1e4*e:e}))},description:v&&[5,6].includes(null===w||void 0===w?void 0:w.type)?(0,b.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,b.jsx)(_.default,{name:null===w||void 0===w?void 0:w.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",O?k({id:"thousand"}):R?"":k({id:"yuan"})]}):null})})}),(0,b.jsx)(d.Col,{children:(0,b.jsx)(d.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(L,{isError:!(0,j.get)(w,"max")&&S,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:M,formatter:P,value:D((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:O?k({id:"thousand"}):R?"":k({id:"yuan"}),onChange:e=>{F(Object.assign({},w,{max:O?1e4*e:e}))}})})}),5===(0,j.get)(w,"type")&&A&&(0,b.jsx)(d.Col,{children:(0,b.jsxs)("span",{className:(0,j.get)(w,"max")&&(0,j.get)(w,"min")&&!(0,j.get)(w,"month")&&S?"error":"",children:[(0,b.jsx)("span",{className:m,children:"X"}),(0,b.jsx)(d.InputNumber,{min:12,disabled:i,value:(0,j.get)(w,"month"),onChange:e=>{F(Object.assign({},w,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!r&&!R&&(0,b.jsx)(d.InputNumber,{disabled:i,min:0,max:1e8,placeholder:M,className:h,formatter:P,value:D((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:O?k({id:"thousand"}):R?"":k({id:"yuan"}),onChange:e=>{F(Object.assign({},w,{max:O?1e4*e:e}))}}),!r&&R&&(0,b.jsx)(d.Input,{disabled:i,placeholder:M,className:h,onChange:e=>{F(Object.assign({},w,{max:e.target.value}))},value:(0,j.get)(w,"max"),style:{textAlign:"center"}})]})]})})},I={loader:()=>[{value:1,label:"\u9762\u8bae"},{value:2,label:"\u65f6\u85aa"},{value:3,label:"\u65e5\u85aa"},{value:4,label:"\u5468\u85aa"},{value:5,label:"\u6708\u85aa"},{value:6,label:"\u5e74\u85aa"}]},M={type:5,min:"",max:"",month:12},O=e=>{let{api:t=I,defaultValue:a=M}=e,l=(0,s.A)(e,C);return(0,b.jsx)(x.IntlProvider,{moduleName:"FormInfo",importMessages:A.A,children:(0,b.jsx)(k,(0,n.A)((0,n.A)({},l),{},{api:t,defaultValue:a}))})},E=e=>{var t;return w((0,n.A)((0,n.A)({},e),{},{req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1}))(O)};E.Field=O;const R=E},45053(e,t,a){a.d(t,{A:()=>p});var n=a(98434),s=a(55199),l=a(73884),r=a(83136),o=a.n(r),i=a(70720),c=a.n(i),d=a(47094),u=a(70579);const p=e=>{let{name:t,groupName:a,overlayClassName:r,errorRender:i=()=>null,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:a,groupIndex:s}=e;const{emitter:r,formState:o}=(0,n.useFormContext)(),i=(0,l.useRef)({name:t,groupName:a,groupIndex:s});i.current={name:t,groupName:a,groupIndex:s};const c=(0,l.useRef)(o);c.current=o;const[d,u]=(0,l.useState)(null);return(0,l.useEffect)(()=>{const e=r.addListener("form-field-validate-complete",e=>{let{id:t,validate:a}=e;const s=c.current[t];if(!s)return;const l=i.current;s.name!==l.name||l.groupName&&(s.groupName!==l.groupName||s.groupIndex!==l.groupIndex)||u(2===a.status?Object.assign({},a,{label:s.label,errMsg:n.util.compileErrMsg(a.msg,s.label)}):null)});return()=>{e&&e.remove()}},[r]),d})({name:t,groupName:a,groupIndex:p}),[g,f]=(0,l.useState)(!1),x=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),A=(0,l.useRef)(null),_=(0,l.useRef)(null);c()(()=>{f(!1)}).current={contains:e=>A.current.contains(e)||_.current&&_.current.contains(e)};const[v,y]=(0,l.useState)(0);return(0,l.useLayoutEffect)(()=>{const e=()=>{const e=A.current.querySelector(".react-form__field-component");e&&y(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(A.current);const a=new MutationObserver(e);return a.observe(A.current,{subtree:!0,childList:!0}),()=>{a.disconnect(),t.disconnect()}},[]),(0,u.jsx)(s.Popover,{open:!!x,rootClassName:o()(r,d.A["error-tip-overlay"]),content:x&&(0,u.jsx)("div",{ref:_,style:{width:v},className:o()(d.A["error-tip-overlay-content"]),children:x}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:A,onMouseEnter:()=>{f(!0)},children:m})})}},46237(e,t,a){a.d(t,{Ay:()=>i,oc:()=>o});var n=a(73884);const s=(0,n.createContext)([]),{Provider:l,Consumer:r}=s,o=()=>(0,n.useContext)(s),i=l},46732(e,t,a){a.d(t,{A:()=>d,K:()=>c});var n=a(75363),s=a(73884),l=a(98434),r=a(47094),o=a(70579);const i=(0,s.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const a=(0,s.useContext)(i),c=(0,l.useGroup)();return a&&(0,o.jsx)(n.default,{className:r.A["helper-guide-field"],name:a+"-"+(c.name?c.name+"-":"")+t})}},47094(e,t,a){a.d(t,{A:()=>n});const n={}},48221(e,t,a){a.d(t,{Ay:()=>c,WJ:()=>u,Xy:()=>d});var n=a(89379),s=a(25963),l=a(73025),r=a(47094),o=a(76995),i=a(70579);const c=e=>(0,i.jsx)(s.default,(0,n.A)({},(0,o.A)(Object.assign({},e,{className:r.A["form-drawer"]})))),d=()=>{const e=(0,s.useDrawer)();return t=>e((0,o.A)(Object.assign({},t,{className:r.A["form-drawer"]})))},u=e=>{const t=d();return(0,i.jsx)(l.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},50196(e,t,a){a.r(t),a.d(t,{AudioPreview:()=>n.AudioPreview,HtmlPreview:()=>n.HtmlPreview,ImagePreview:()=>n.ImagePreview,OSSFilePreview:()=>n.OSSFilePreview,OfficePreview:()=>n.OfficePreview,PdfPreview:()=>n.PdfPreview,TextPreview:()=>n.TextPreview,UnknownPreview:()=>n.UnknownPreview,VideoPreview:()=>n.VideoPreview,default:()=>n.FilePreview});a(64674);var n=a(61323)},55431(e,t,a){a.d(t,{A:()=>n});const n=e=>({"en-US":()=>Promise.resolve().then(a.bind(a,21649)),"zh-CN":()=>Promise.resolve().then(a.bind(a,80711))}[e]())},56259(e,t,a){a.d(t,{A:()=>o});var n=a(89319),s=a(98434);const{useOnChange:l}=s.hooks,r=e=>l(Object.assign({},{},e))(n.A);r.Field=n.A;const o=r},64261(e,t,a){a.d(t,{A:()=>_});var n=a(89379),s=a(98434),l=a(57469),r=a.n(l),o=a(34677),i=a.n(o),c=a(33097),d=a.n(c),u=a(22717),p=a.n(u),m=(a(17448),a(2842)),h=a(46732),g=a(13050),f=a(70579);const x=s.RULES.REQ,A=s.RULES.LEN,_=async(e,t)=>{const{locale:a}=Object.assign({},t);s.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){const[t,a]=e.split("?"),n=new URLSearchParams(a);return Object.assign({},{id:t},p()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}return e}),s.interceptors.output.use("photo-string",e=>e&&"string"!==typeof e?"".concat(null===e||void 0===e?void 0:e.id).concat(null!==e&&void 0!==e&&e.filename?"?filename=".concat(null===e||void 0===e?void 0:e.filename):""):e),s.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>{const[t,a]=e.split("?"),n=new URLSearchParams(a);return Object.assign({},{id:t},p()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}):e),s.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>"".concat(null===e||void 0===e?void 0:e.id).concat(null!==e&&void 0!==e&&e.filename?"?filename=".concat(null===e||void 0===e?void 0:e.filename):"")):e),s.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),s.interceptors.output.use("to-array",e=>[e]),s.interceptors.input.use("array-single",e=>e?[e]:[]),s.interceptors.output.use("array-single",e=>e?e[0]:null),s.interceptors.input.use("boolean-number",e=>1===e||"1"===e),s.interceptors.output.use("boolean-number",e=>e?1:0),s.interceptors.input.use("un-boolean",e=>!e),s.interceptors.output.use("un-boolean",e=>!e),s.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),s.interceptors.output.use("array-output-value",e=>Array.isArray(e)&&e.length>0?e.map(e=>e.value||e.id):[]),s.interceptors.input.use("date-string",e=>e?r()(e):null),s.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),s.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(r()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(r()(e[1])),t}),s.interceptors.output.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t}),s.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),s.interceptors.input.use("file-format",e=>Array.isArray(e)?e.map(e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename})):[]);const{default:l}=await(0,g.loadModule)("components-iconfont:CountyFlag@load"),o=await l(),c=new Map(o.map(e=>{let{ab:t,country_code:a}=e;return[t,a]})),u=new Map(o.map(e=>{let{ab:t,country_code:a}=e;return[a,t]}));s.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?"+".concat(c.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):""),s.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:u.get(Number(t[1])),value:t[2]}:{code:u.get(86),value:e}});const _=(e,t)=>{t=Object.assign({},t);const n={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},EMAIL:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684%s","en-US":"Please enter a valid %s"},LENGTH_EQUAL:{"zh-CN":"%s\u5fc5\u987b\u7b49\u4e8e".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},s=d()(n,"".concat(e,".").concat(a));return s||d()(n,"".concat(e,".zh-CN"))};(0,s.preset)(i()({},{type:"inner",rules:{REQ:function(){return Object.assign({},x(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];const[n,s,l]=t;let r="";return l===s&&n.length!==Number(l)&&(r="LENGTH_EQUAL"),n.length<s&&(r="LENGTH_MORE"),l&&n.length>l&&(r="LENGTH_LESS"),Object.assign({},A(...t),{errMsg:_(r,{start:s,end:l})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:_("EMAIL")}},PHONE_NUMBER_INPUT:m.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,a)=>a===t&&e.length!==Number(a)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:a})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:a})}:a&&e.length>a?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:a})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},inputNumber:{defaultProps:{changeOnWheel:!1}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,f.jsx)(h.A,(0,n.A)({},e))}},"function"===typeof e?e({interceptors:s.interceptors,RULES:s.RULES}):e))}},70188(e,t,a){a.d(t,{A:()=>r});var n=a(52526),s=a(80711),l=a(21649);const r=(0,n.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":s.default,"en-US":l.default},namespace:"form-info"})},76995(e,t,a){a.d(t,{A:()=>h});var n=a(89379),s=a(53986),l=a(98434),r=a(52526),o=a(83799),i=a(83136),c=a.n(i),d=a(47094),u=a(70579);const p=["className","withDecorator","footerButtons","formProps","cancelText","saveText","autoClose"],m=["onSubmit","key"],h=e=>{let{className:t,withDecorator:a,footerButtons:i,formProps:h,cancelText:g,saveText:f,autoClose:x=!0}=e,A=(0,s.A)(e,p);return(0,n.A)((0,n.A)({},A),{},{footerButtons:i||[{children:g||(0,u.jsx)(r.FormattedMessage,{id:"Cancel"}),ButtonComponent:l.CancelButton},{type:"primary",children:f||(0,u.jsx)(r.FormattedMessage,{id:"Save"}),ButtonComponent:l.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const l=t=>{const a=Object.assign({},"function"===typeof h?h(t):h),{onSubmit:l,key:r}=a,i=(0,s.A)(a,m);return(0,u.jsx)(o.lV,(0,n.A)((0,n.A)({},i),{},{onSubmit:async function(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),s=1;s<a;s++)n[s-1]=arguments[s];!1!==(l&&await l(e,Object.assign({},t),...n))&&x&&t.close()},children:e(t)}))};return"function"===typeof a?a(l,t):l(t)},className:c()(t,d.A["form-outer"])})}},78756(e,t,a){a.d(t,{A:()=>o});var n=a(43856),s=a(98434);const{useOnChange:l}=s.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);r.Field=n.IndustrySelectField,r.Enum=n.IndustrySelectField.Enum;const o=r},80711(e,t,a){a.r(t),a.d(t,{default:()=>n});const n={addText:"\u6dfb\u52a0",addSomeThing:"\u6dfb\u52a0{label}",delText:"\u5220\u9664",selectedTextAdvanced:"\u5df2\u9009",delConfirm:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u6761{name}\u5417?",defaultInputPlaceholder:"\u8bf7\u8f93\u5165{label}",defaultSelectPlaceholder:"\u8bf7\u9009\u62e9{label}",startDate:"\u5f00\u59cb\u65e5\u671f",endDate:"\u7ed3\u675f\u65e5\u671f",soFarText:"\u81f3\u4eca",uploadButtonText:"\u70b9\u51fb\u4e0a\u4f20",uploadTips:"\u652f\u6301\u6269\u5c55\u540d{extensionNames},\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\u4e0d\u8d85\u8fc7{fileSize}M\uff0c\u6700\u591a\u4e0a\u4f20{maxLength}\u4e2a\u9644\u4ef6",yuan:"\u5143",thousand:"\u4e07\u5143",salaryType:"\u85aa\u8d44\u7c7b\u578b",Cancel:"\u53d6\u6d88",Save:"\u4fdd\u5b58",Next:"\u4e0b\u4e00\u6b65",Complete:"\u5b8c\u6210",Crop:"\u88c1\u526a",Preview:"\u9884\u89c8",PictureFormat:"\u56fe\u7247\u683c\u5f0f\uff1a",ImageSize:"\u56fe\u7247\u5c3a\u5bf8\uff1a",ReUpload:"\u91cd\u65b0\u4e0a\u4f20",UploadFailed:"\u4e0a\u4f20\u5931\u8d25{msg}",NotExceeding:"\u4e0d\u8d85\u8fc7{size}M",FileNotExceeding:"\u6587\u4ef6{name}\u4e0d\u80fd\u8d85\u8fc7{size}MB!",Rotate:"\u65cb\u8f6c",ImageFull:"\u5145\u6ee1",Size:"\u5927\u5c0f"}},81026(e,t,a){a.d(t,{A:()=>o});var n=a(43856),s=a(98434);const{useOnChange:l}=s.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);r.Field=n.FunctionSelectField,r.Enum=n.FunctionSelectField.Enum;const o=r},83230(e,t,a){a.d(t,{A:()=>o});var n=a(98434),s=a(43856);const{useOnChange:l}=n.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.CascaderField);r.Field=s.CascaderField,r.createTreeUtils=s.createTreeUtils;const o=r},83799(e,t,a){a.d(t,{NI:()=>q,TQ:()=>m.A,JL:()=>J,eu:()=>v.A,vx:()=>h.A,lr:()=>te,s3:()=>ae,lV:()=>r.A,d4:()=>g.A,ZN:()=>f.A,pd:()=>Q,YI:()=>Z,h2:()=>G,F0:()=>x.A,go:()=>A.default,tt:()=>l.Rate,lu:()=>y.A,l6:()=>$,Ap:()=>l.Slider,wD:()=>B,eM:()=>V,kx:()=>H,Pg:()=>W,dO:()=>l.Switch,EY:()=>k,fs:()=>Y,AG:()=>ee,f7:()=>K,w5:()=>b.A,_O:()=>_.A,nk:()=>ne});var n=a(89379),s=a(53986),l=a(98434),r=a(85696),o=a(52526),i=a(73884),c=a(30891),d=a(47094),u=a(30096),p=a(34643),m=a(1904),h=a(83230),g=a(81026),f=a(78756),x=a(92328),A=a(2842),_=a(89099),v=a(96339),y=a(36972),j=a(15209),b=a(56259),S=a(55199),N=a(10986),C=a.n(N),T=a(70579);const w=["children"],{useDecorator:F}=l.hooks,P=e=>{let{children:t}=e,a=(0,s.A)(e,w);const[l]=C()(a);return(0,T.jsxs)(S.Typography.Text,(0,n.A)((0,n.A)({},a),{},{children:[(0,T.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,T.jsx)(S.Input,{value:l})}),t||l]}))},L=e=>F(e)(P);L.Field=P;const k=L;var I=a(45053),M=a(70188);const O=["placeholder","label"],E=["placeholder","label","className"],R=["placeholder","label"],D=["placeholder","label","soFarText"],z=e=>{const t=(0,M.A)((0,i.forwardRef)((t,a)=>{let{placeholder:l,label:r}=t,i=(0,s.A)(t,O);const{formatMessage:c}=(0,o.useIntl)();return(0,T.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:a,label:r,placeholder:l||c({id:"defaultInputPlaceholder"},{label:r})}))}));return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(a=>{t[a]=e[a]}),t},U=e=>{const t=(0,M.A)((0,i.forwardRef)((t,a)=>{let{placeholder:l,label:r}=t,i=(0,s.A)(t,R);const{formatMessage:c}=(0,o.useIntl)();return(0,T.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:a,label:r,placeholder:l||c({id:"defaultSelectPlaceholder"},{label:r})}))}));return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(a=>{t[a]=e[a]}),t},J=U(u.Ay),B=U(p.Ay),V=U(p.eM),W=U(p.Pg),H=U(p.kx),q=U(m.N),G=z(j.A),Q=z(l.Input);Q.Password=z(l.Input.Password);const Y=(X=l.TextArea,(0,M.A)(e=>{let{placeholder:t,label:a,className:l}=e,r=(0,s.A)(e,E);const{formatMessage:i}=(0,o.useIntl)();return(0,T.jsx)("div",{className:d.A["textarea-wrapped-component"],children:(0,T.jsx)(X,(0,n.A)((0,n.A)({},r),{},{label:a,placeholder:t||i({id:"defaultInputPlaceholder"},{label:a})}))})}));var X;const $=U(l.Select),Z=z(l.InputNumber),K=U(l.TreeSelect),ee=U(l.TimePicker);ee.RangePicker=U(l.TimePicker.RangePicker);const te=U(l.DatePicker);te.MonthPicker=U(l.DatePicker.MonthPicker),te.RangePicker=U(l.DatePicker.RangePicker),te.WeekPicker=U(l.DatePicker.WeekPicker);const ae=e=>{let{placeholder:t,label:a,soFarText:r}=e,i=(0,s.A)(e,D);const{formatMessage:c}=(0,o.useIntl)({moduleName:"FormInfo"});return(0,T.jsx)(l.DatePickerToday,(0,n.A)((0,n.A)({},i),{},{label:a,placeholder:[c({id:"startDate"}),c({id:"endDate"})],soFarText:r||c({id:"soFarText"})}))},ne=Object.assign({},l,{Input:Q,InputUpperCase:G,TextArea:Y,Select:$,InputNumber:Z,TreeSelect:K,TimePicker:ee,DatePicker:te,DatePickerToday:ae,Form:r.A,FormItem:c.A,AdvancedSelect:J,SuperSelect:B,SuperSelectTableList:V,SuperSelectUser:W,SuperSelectTree:H,AddressSelect:m.A,AddressInput:q,MoneyInput:x.A,PhoneNumber:A.default,Cascader:h.A,FunctionSelect:g.A,IndustrySelect:f.A,TypeDateRangePicker:b.A,Upload:_.A,Avatar:v.A,SalaryInput:y.A,Text:k,Rate:l.Rate,Switch:l.Switch,Slider:l.Slider,ErrorTip:I.A})},85696(e,t,a){a.d(t,{A:()=>x});var n=a(89379),s=a(53986),l=a(73884),r=a(72752),o=a(33097),i=a.n(o),c=a(64261),d=a(46237),u=a(53158),p=a(46732),m=(a(39825),a(70188)),h=a(70579);const g=["helperGuideName","lang"],f=e=>{let{children:t}=e;const[a,n]=(0,l.useState)(!1),s=(0,r.usePreset)(),o=(0,r.useGlobalValue)("locale"),d=i()(s,"formInfo",{});return(0,l.useEffect)(()=>{Promise.resolve((0,c.A)(d,{locale:o})).then(()=>{n(!0)})},[d,o]),a?(0,h.jsx)(l.Fragment,{children:t},o):null},x=(0,m.A)((0,l.forwardRef)((e,t)=>{let{helperGuideName:a,lang:l}=e,r=(0,s.A)(e,g);return(0,h.jsx)(d.Ay,{value:l,children:(0,h.jsx)(p.K,{value:a,children:(0,h.jsx)(f,{children:(0,h.jsx)(u.Form,(0,n.A)((0,n.A)({},r),{},{ref:t}))})})})}))},89099(e,t,a){a.d(t,{A:()=>C});var n=a(89379),s=a(53986),l=a(55199),r=a(83136),o=a.n(r),i=a(10986),c=a.n(i);const d="style_upload__t422Q__TkoJL",u="style_upload-list__Q9HDc__TkoJL",p="style_tips__3Gpnu__TkoJL";var m=a(34699),h=a(98434),g=a(47458),f=a(1488),x=a.n(f),A=a(17508),_=a(55431),v=a(70579);const y=["className","fileSize","maxLength","multiple","size","accept","children","renderTips","showUploadList","onSave","ossUpload","onUpload","getPermission","concurrentCount"],j=["interceptor"],{useOnChange:b}=h.hooks,S=(0,g.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,g.useIntl)({moduleName:"FormInfo"}),a=Object.assign({},{defaultValue:[],children:t({id:"uploadButtonText"}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".eml",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30,concurrentCount:10},e),{className:r,fileSize:i,maxLength:h,multiple:f,size:_,accept:j,children:b,renderTips:S,showUploadList:N,onSave:C,ossUpload:T,onUpload:w,getPermission:F,concurrentCount:P}=a,L=(0,s.A)(a,y),[k,I]=c()(L),M=k||[],{fileList:O,onFileSelected:E}=(0,A.lN)({multiple:f,onSave:C,onUpload:T||w,fileSize:i,maxLength:h,value:M,onChange:I,concurrentCount:P}),R=[...O,...M],D=S(t({id:"uploadTips"},{extensionNames:j.map(e=>e.replace(/^\./,"")).join(","),maxLength:h,fileSize:i}),{fileSize:i,maxLength:h,accept:j});return(0,v.jsxs)(l.Space,{direction:"vertical",children:[(0,v.jsxs)(l.Flex,{align:"start",gap:8,vertical:!0,children:[(0,v.jsx)(A.Zi,(0,n.A)((0,n.A)({},x()(L,["value","onChange"])),{},{size:_,multiple:f,accept:j,className:o()(d,r),onChange:E,children:b})),D&&(0,v.jsx)("div",{className:p,children:D})]}),N&&R.length>0&&(0,v.jsx)(m.List,{className:u,dataSource:R,infoItemRenders:[],getPermission:F||(e=>"delete"===e),apis:{onDelete:e=>{const t=M.slice(0),a=t.indexOf(e);a>-1&&t.splice(a,1),I(t)}}})]})}),N=e=>{let{interceptor:t="file-format"}=e,a=(0,s.A)(e,j);return b((0,n.A)({interceptor:t},a))(S)};N.Field=S;const C=N},92328(e,t,a){a.d(t,{A:()=>b});var n=a(89379),s=a(53986),l=a(10986),r=a.n(l),o=a(98434),i=a(55199),c=a(69484);const d="style_money-input__Pyur7__TkoJL",u="style_money-description__9pFk4__TkoJL";var p=a(83136),m=a.n(p),h=a(34677),g=a.n(h),f=a(73884),x=a(70579);const A=["chineseEmpty","className","showError","errorDesc","transformMoneyToChinese","onBlur","moneyFormat"],{isNotEmpty:_}=o.util||o.formUtils,{useOnChange:v}=o.hooks,y=e=>{let{chineseEmpty:t,className:a,showError:l,errorDesc:o,transformMoneyToChinese:p,onBlur:h,moneyFormat:v}=e,y=(0,s.A)(e,A);const[j,b]=(0,f.useState)(""),[S,N]=r()(y),C=g()({controls:!1,precision:2,addonAfter:"\u5143"},y,{max:_(y.max)?y.max>c.e?c.e:y.max:c.e});return(0,x.jsxs)("div",{className:m()(a,"money-input",d),children:[(0,x.jsx)(i.InputNumber,(0,n.A)((0,n.A)({},C),{},{status:j,formatter:v?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=v?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return _(t)?(Number(t)>Number(C.max)||_(C.min)&&Number(t)<Number(C.min))&&b("error"):b(""),_(t)?Number(t):null},onChange:e=>{N(e)},onBlur:e=>{h&&h(e,b)}})),(0,x.jsx)("div",{className:m()(u),children:"error"===j&&l?o:_(S)?(0,c.A)(p?p(S):S):t})]})},j=e=>v(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(y);j.Field=y,j.toChineseCharacter=c.A;const b=j},94005(e,t,a){a.d(t,{$X:()=>N,Ay:()=>S,Wp:()=>C});var n=a(89379),s=a(53986),l=a(3382),r=a(73884),o=a(98434),i=a(73025),c=a(47458),d=a(47094),u=a(55431),p=a(55199),m=a(76995),h=a(70579);const g=["footerButtons","cancelText","completeText","nextText","items","withDecorator","autoClose"],f=["formProps","title"],x=["onSubmit"],A=["formProps"],_=["children","stepSection"],v=["modalProps"],y="FormInfo",j=e=>{let{items:t,children:a}=e;const[n,s]=(0,r.useState)(0);return a({currentIndex:n,setCurrentIndex:s,stepCacheRef:(0,r.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},b=e=>{let{footerButtons:t,cancelText:a,completeText:n,nextText:l,items:r,withDecorator:i,autoClose:v=!0}=e,b=(0,s.A)(e,g);return(0,m.A)(Object.assign({},b,{footerButtons:e=>{let{currentIndex:t,isLastStep:s}=e;const{footerButtons:i}=Object.assign({},r[t]);return i||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:y,children:a||(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:y})}),ButtonComponent:o.CancelButton},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:y,children:s?n||(0,h.jsx)(c.FormattedMessage,{id:"Complete",moduleName:y}):l||(0,h.jsx)(c.FormattedMessage,{id:"Next",moduleName:y})}),ButtonComponent:o.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const a=t=>(0,h.jsx)(j,{items:r,children:a=>{var n;let{currentIndex:l,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}=a;const{formProps:m,title:g}=c,A=(0,s.A)(c,f),_="function"===typeof m?m(t):m,{onSubmit:y}=_,j=(0,s.A)(_,x),b=Object.assign({},j.data,null===(n=u.current[l])||void 0===n?void 0:n.data);return e(Object.assign({},t,A,{currentIndex:l,isLastStep:o,setCurrentIndex:i,stepCacheRef:u,stepSection:(0,h.jsx)(p.Steps,{className:d.A["form-step-section"],current:l,items:r.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},j,{key:l,data:b,onSubmit:async function(e){u.current[l]={data:e};for(var a=arguments.length,n=new Array(a>1?a-1:0),s=1;s<a;s++)n[s-1]=arguments[s];const r=y&&await y(e,Object.assign({},t,{currentIndex:l,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}),...n);return u.current[l]=Object.assign({},u.current[l],{output:r}),v&&!o&&!1!==r&&i(e=>e+1),!!o&&r}})}))}});return"function"===typeof i?i(a,t):a(t)},formProps:e=>{let{formProps:t}=e,a=(0,s.A)(e,A);return Object.assign({},a,t)},children:e=>{let{children:t,stepSection:a}=e,n=(0,s.A)(e,_);return(0,h.jsxs)(p.Flex,{vertical:!0,gap:24,children:[(0,h.jsx)(p.Flex,{justify:"center",children:a}),"function"===typeof t?t(n):t]})}}))},S=e=>(0,h.jsx)(l.default,(0,n.A)({},b(Object.assign({},e,{className:d.A["form-modal"]})))),N=()=>{const e=(0,l.useModal)();return t=>e(b(Object.assign({},t,{className:d.A["form-modal"]})))},C=e=>{const t=N();if(!e.api){const{modalProps:a}=e,l=(0,s.A)(e,v);return(0,h.jsx)(p.Button,(0,n.A)((0,n.A)({},l),{},{onClick:()=>{t(a)}}))}return(0,h.jsx)(i.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},96252(e,t,a){a.r(t),a.d(t,{AddressInput:()=>f.NI,AddressSelect:()=>f.TQ,AdvancedSelect:()=>f.JL,Avatar:()=>f.eu,Cascader:()=>f.vx,DatePicker:()=>f.lr,DatePickerToday:()=>f.s3,ErrorTip:()=>m.A,Form:()=>u.A,FormApiButton:()=>o.A,FormDrawer:()=>d.Ay,FormDrawerButton:()=>d.WJ,FormItem:()=>p.A,FormModal:()=>i.Ay,FormModalButton:()=>i.W6,FormStepModal:()=>c.Ay,FormStepModalButton:()=>c.Wp,FormSteps:()=>l.FormSteps,FunctionSelect:()=>f.d4,IndustrySelect:()=>f.ZN,Input:()=>f.pd,InputNumber:()=>f.YI,InputUpperCase:()=>f.h2,List:()=>l.List,MoneyInput:()=>f.F0,MultiField:()=>l.MultiField,PhoneNumber:()=>f.go,Rate:()=>f.tt,SalaryInput:()=>f.lu,Select:()=>f.l6,SelectInnerInput:()=>x.A,Slider:()=>f.Ap,SuperSelect:()=>f.wD,SuperSelectTableList:()=>f.eM,SuperSelectTree:()=>f.kx,SuperSelectUser:()=>f.Pg,Switch:()=>f.dO,TableList:()=>l.TableList,Text:()=>f.EY,TextArea:()=>f.fs,TimePicker:()=>f.AG,TreeSelect:()=>f.f7,TypeDateRangePicker:()=>f.w5,Upload:()=>f._O,default:()=>A,fieldDecorator:()=>s.E,fields:()=>s.A,formModule:()=>f.nk,useFormDrawer:()=>d.Xy,useFormModal:()=>i.Vl,useFormStepModal:()=>c.$X});var n=a(64261),s=a(15445),l=a(53158),r=a.n(l),o=a(35774),i=a(5995),c=a(94005),d=a(48221),u=a(85696),p=a(30891),m=a(45053),h=a(98434),g={};for(const _ in h)["default","SelectInnerInput","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","FormSteps","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField"].indexOf(_)<0&&(g[_]=()=>h[_]);a.d(t,g);var f=a(83799),x=a(18936);(0,n.A)(),r().fields=s.A,r().List=l.List,r().TableList=l.TableList,r().FormApiButton=o.A,r().FormModal=i.Ay,r().FormSteps=l.FormSteps,r().useFormModal=i.Vl,r().FormModalButton=i.W6,r().FormStepModal=c.Ay,r().useFormStepModal=c.$X,r().FormStepModalButton=c.Wp,r().FormDrawer=d.Ay,r().useFormDrawer=d.Xy,r().FormDrawerButton=d.WJ,r().Form=u.A,r().FormItem=p.A,r().ErrorTip=m.A,r().SubmitButton=h.SubmitButton,r().CancelButton=h.CancelButton,r().fieldDecorator=s.E,r().MultiField=l.MultiField,r().useFormContext=h.useFormContext,r().hooks=h.hooks,r().widget=h.widget,r().utils=h.utils,r().formUtils=h.formUtils;const A=r()},96339(e,t,a){a.d(t,{A:()=>V});var n=a(53986),s=a(89379),l=a(73884),r=a(17508),o=a(40438),i=a(72752),c=a(3382),d=a(64671),u=a(55199),p=a(53202),m=a.n(p),h=a(33097),g=a.n(h),f=a(83136),x=a.n(f),A=a(51941),_=a(98434),v=a(34677),y=a.n(v);const j="style_upload-btn__-6XtP__TkoJL",b="style_square__UPkfA__TkoJL",S="style_is-loading__wx6Pd__TkoJL",N="style_upload-btn-tips__YtxWz__TkoJL",C="style_drop-tips__N-v59__TkoJL",T="style_preview-area__aV3SN__TkoJL";var w=a(18411),F=a(47458),P=a(55431),L=a(70579);const k=["image","width","height","borderRadius","preview","fileSize","accept","renderTips","getApi","shape","border"],I=["image","width","height","borderRadius","getApi","preview","fileSize","accept","renderTips","border","dropModalSize"],{useOnChange:M}=_.hooks,O=o.default.Avatar,E="FormInfo",R=(0,r.Ay)(e=>{let{className:t,icon:a,loading:n,value:l,gender:r,width:o,height:i,children:c,shape:p,defaultAvatar:m,displayAvatar:h,apis:f}=e;const A=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(O,(0,s.A)((0,s.A)({},Object.assign({},"function"===typeof h?h(l):{id:g()(l,"id")})),{},{gender:r,width:64*o/i,height:64,shape:p,defaultAvatar:m,apis:f})),(0,L.jsx)("div",{className:N,children:a||(0,L.jsx)(d.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,L.jsx)("div",{className:x()(t,j,{[S]:n,[b]:"square"===p||!(o&&o===i)}),style:{width:64*o/i},children:n?(0,L.jsx)(u.Spin,{children:A}):A})}),D=e=>{let t=e.split(","),a=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],s=atob(a),l=s.length,r=new Uint8Array(l);for(;l--;)r[l]=s.charCodeAt(l);return new Blob([r],{type:n})},z=(0,l.forwardRef)((e,t)=>{let{image:a,width:o,height:i,borderRadius:c,preview:p,fileSize:h,accept:g,renderTips:f,getApi:x,shape:_,border:v=1}=e,y=(0,n.A)(e,k);const j=(0,F.useIntl)({moduleName:E}),[b,S]=(0,l.useState)(0),N=(0,l.useRef)(null),[w,P]=(0,l.useState)(a),[I,M]=(0,l.useState)(1),[O,R]=(0,l.useState)(0),[z,U]=(0,l.useState)(""),J=(0,l.useRef)(null);(0,l.useLayoutEffect)(()=>{S(2*N.current.clientWidth/3)},[]),x({getImage:()=>{const e=J.current.getImage(),t=document.createElement("canvas"),a=t.getContext("2d");return t.width=o,t.height=i,a.drawImage(e,0,0,t.width,t.height),new window.File([D(t.toDataURL())],w.name,{type:w.type})}});const B=()=>{U(J.current.getImage().toDataURL())},V=(0,A.useDebouncedCallback)(B,500);return(0,L.jsx)("div",{ref:N,children:(0,L.jsxs)(u.Row,{wrap:!1,align:"middle",children:[(0,L.jsx)(u.Col,{span:p?16:24,children:b&&(0,L.jsxs)(u.Space,{direction:"vertical",children:[(0,L.jsx)(m(),(0,s.A)((0,s.A)({},y),{},{ref:J,image:w,scale:I,rotate:O,width:b-2*v,height:i*b/o-2*v*i/o,border:v,color:[0,0,0,.6],borderRadius:c*b/o,onImageReady:B,onImageChange:V})),(0,L.jsx)("div",{className:C,children:f("".concat(j.formatMessage({id:"PictureFormat"})).concat(g.map(e=>e.replace(/^\./,"")).join(" ")," ").concat(j.formatMessage({id:"ImageSize"})).concat(j.formatMessage({id:"NotExceeding"},{size:h})),{accept:g,fileSize:h})}),(0,L.jsxs)(u.Row,{gutter:14,align:"middle",children:[(0,L.jsx)(u.Col,{children:(0,L.jsx)(u.Tooltip,{title:j.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,L.jsx)(d.default,{type:"icon-xuanzhuan",onClick:()=>{R(e=>(e-90)%360)}})})}),(0,L.jsx)(u.Col,{children:(0,L.jsx)(u.Tooltip,{title:j.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,L.jsx)(d.default,{type:"icon-chongman",onClick:()=>{M(1)}})})}),(0,L.jsx)(u.Col,{flex:1,children:(0,L.jsx)(u.Slider,{tooltip:{placement:"bottom",formatter:()=>j.formatMessage({id:"Size"})},value:I,step:.05,min:.2,max:3,onChange:M})}),(0,L.jsx)(u.Col,{children:(0,L.jsx)(r.FI,{accept:g,onChange:e=>{e[0].size>1024*h*1024?u.message.error(j.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:h})):(R(0),M(1),P(e[0]))},children:j.formatMessage({id:"ReUpload"})})})]})]})}),p&&(0,L.jsx)(u.Col,{span:8,children:(0,L.jsx)("div",{className:T,children:(0,L.jsxs)(u.Space,{direction:"vertical",children:[(0,L.jsx)(u.Avatar,{src:z,shape:_,style:{width:b/2-36,height:(b/2-36)*i/o}}),(0,L.jsx)("div",{style:{textAlign:"center"},children:j.formatMessage({id:"Preview"})})]})})})]})})}),U=()=>{const e=(0,c.useModal)();return t=>{const a=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t),{image:l,width:r,height:o,borderRadius:i,getApi:c,preview:d,fileSize:u,accept:p,renderTips:m,border:h,dropModalSize:g}=a,f=(0,n.A)(a,I);return e((0,s.A)((0,s.A)({},f),{},{size:g,children:(0,L.jsx)(z,{preview:d,fileSize:u,accept:p,getApi:c,renderTips:m,width:r,height:o,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:i,image:l,border:h,scale:1,rotate:0})}))}},J=(0,F.createWithIntl)({importMessages:P.A,moduleName:"FormInfo"})(e=>{var t;let{value:a,gender:n,fileSize:s=2,accept:r=[".jpg",".png",".jpeg"],openEditor:o=!0,apis:c,renderTips:d=e=>e,onChange:p,shape:m="circle",width:h=200,height:g=200,title:f=(0,L.jsx)(F.IntlProvider,{importMessages:P.A,moduleName:"FormInfo",children:(0,L.jsx)(F.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:x=1,icon:A,dropModalSize:_="small",defaultAvatar:v=w.A,displayAvatar:j}=e;const[b,S]=(0,l.useState)(!1),{apis:N}=(0,i.usePreset)(),C=y()({},N,c),T=C.ossUpload||C.upload||(null===(t=C.file)||void 0===t?void 0:t.upload),k=(0,l.useRef)(null),I=U(),M=(0,F.useIntl)({moduleName:E});return(0,L.jsx)(R,{value:a,gender:n,accept:r,width:h,height:g,shape:m,icon:A,loading:b,defaultAvatar:v,displayAvatar:j,apis:C,onChange:e=>{if(e[0].size>1024*s*1024)return void u.message.error(M.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:s}));const t=e=>(S(!0),T({file:e}).then(e=>{let{data:t}=e;0===t.code?p(t.data):u.message.error(M.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{S(!1)}));o?I({image:e[0],width:h,height:g,title:f,shape:m,border:x,dropModalSize:_,getApi:e=>k.current=e,fileSize:s,accept:r,renderTips:d,onConfirm:()=>{t(k.current.getImage())}}):t(e[0])}})}),B=e=>M(e)(J);B.Field=J,B.useDropModal=U;const V=B}}]);
2
- //# sourceMappingURL=4474.42e860d2.chunk.js.map
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4671,7857],{3870(){function e(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}const t=Reflect.getPrototypeOf(Int8Array);for(const o of[Array,String,t])Object.defineProperty(o.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},25963(e,t,o){"use strict";o.r(t),o.d(t,{AppDrawer:()=>N,DrawerButton:()=>H,default:()=>U,useDrawer:()=>q});var n=o(20454),r=o(89379),l=o(53986),a=o(55199),s=o(83136),c=o.n(s);const i="style_drawer__hA8bn__TkoJL",d="style_drawer-outer__vuEIf__TkoJL",u="style_drawer-title__71eaW__TkoJL",m="style_drawer-body__frw9I__TkoJL",h="style_is-disabled-scroller__ZsITw__TkoJL",f="style_drawer-body-inner__lci9Z__TkoJL",p="style_drawer-footer__1g8o1__TkoJL",_="style_drawer-close__bpxnp__TkoJL",b=e=>({"en-US":()=>o.e(3172).then(o.bind(o,23172)),"zh-CN":()=>o.e(5254).then(o.bind(o,95254))}[e]());var g=o(47458),y=o(73884);const C=()=>{const[e,t]=(0,y.useState)([]);return[e,(0,y.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var w=o(70579);const A=(0,y.forwardRef)((e,t)=>{let{config:o}=e;const[n,l]=(0,y.useState)(!0),[s,c]=(0,y.useState)(o),i=function(){l(!1);for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const n=t.some(e=>e&&e.triggerCancel);s.onClose&&n&&s.onClose(()=>{},...t.slice(1))};return(0,y.useImperativeHandle)(t,()=>({destroy:i,update:e=>{c(t=>(0,r.A)((0,r.A)({},t),e))}})),(0,w.jsx)(a.Drawer,(0,r.A)((0,r.A)({},s),{},{ref:t,open:n,onClose:i}))});let x=0;function j(e){return(0,r.A)({},e)}const k=[],v=(0,y.memo)((0,y.forwardRef)((e,t)=>{const[o,n]=C();return(0,y.useImperativeHandle)(t,()=>({patchElement:n}),[n]),(0,w.jsx)(w.Fragment,{children:o})}));const L=function(){const e=(0,y.useRef)(null),[t,o]=(0,y.useState)([]);(0,y.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),o([])}},[t]);const n=(0,y.useCallback)(t=>function(n){var r;x+=1;const l=(0,y.createRef)();let a=()=>{};const s=(0,w.jsx)(A,{config:t(n),ref:l,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},"drawer-".concat(x));return a=null===(r=e.current)||void 0===r?void 0:r.patchElement(s),a&&k.push(a),{destroy:()=>{function e(){var e;null===(e=l.current)||void 0===e||e.destroy()}l.current?e():o(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():o(e=>[...e,t])}}},[]);return[(0,y.useMemo)(()=>n(j),[n]),(0,w.jsx)(v,{ref:e},"drawer-holder")]},P=(0,y.createContext)({}),{Provider:S}=P,T=e=>{const{children:t}=e,[o,n]=L(),r=(0,y.useMemo)(()=>({drawer:o}),[o]);return(0,w.jsx)(S,{value:r,children:(0,w.jsxs)("div",{children:[n,t]})})};T.useAppDrawer=()=>(0,y.useContext)(P);const N=T;var G=o(81014),R=o(71298),M=o.n(R),E=o(64671);const B=["ButtonComponent","onClick","autoClose"],J=["children","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator"],I=["size"],O=(e,t)=>"function"===typeof e?e(t):e,D=e=>{let{footer:t,footerButtons:o,onConfirm:n,onCancel:s,onClose:c}=e;return(0,w.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,w.jsx)(a.Col,{flex:1,children:t}),Array.isArray(o)&&0===o.length?null:(0,w.jsx)(a.Col,{children:(0,w.jsx)(a.Space,{children:(o||[{children:"\u53d6\u6d88",onClick:s},{type:"primary",children:"\u786e\u5b9a",onClick:n}]).map((e,t)=>{let{ButtonComponent:o,onClick:n,autoClose:a=!0}=e,s=(0,l.A)(e,B);const i=o||G.default;return(0,y.createElement)(i,(0,r.A)((0,r.A)({},s),{},{key:t,onClick:async function(){const e=await Promise.resolve(n&&n(...arguments));return a&&!1!==e&&c&&c(),e}}))})})})]})},F=e=>{let{title:t,footer:o,disabledScroller:n,footerButtons:r,onClose:l,closable:s,onConfirm:i,onCancel:b,children:g}=e;const C=(0,y.useRef)(null);return(0,y.useEffect)(()=>{!n&&new(M())(C.current)},[n]),(0,w.jsxs)("div",{className:d,"data-testid":"components-core-drawer",children:[!1===s?null:(0,w.jsx)(a.Button,{"data-testid":"components-core-drawer-close-btn",className:c()(_,"drawer-close"),type:"text",icon:(0,w.jsx)(E.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),l&&l()}}),t&&(0,w.jsx)("div",{className:c()(u,"drawer-title"),children:t}),(0,w.jsx)("div",{className:c()(m,"drawer-body",{[h]:n}),ref:C,children:(0,w.jsx)("div",{className:c()(f,"drawer-body-inner"),children:g})}),null!==o||r?(0,w.jsx)("div",{className:c()(p,"drawer-footer"),children:(0,w.jsx)(D,{footer:o,footerButtons:r,onConfirm:i,onCancel:b,onClose:l})}):null]})},z=e=>{let{withDecorator:t,footerButtons:o,title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footer:i,disabledScroller:d,children:u}=e;const m=e=>(e=Object.assign({},e),(0,w.jsx)(F,{title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:O(o,(0,r.A)((0,r.A)({},e),{},{close:a})),disabledScroller:d,footer:O(i,(0,r.A)((0,r.A)({},e),{},{close:a})),children:O(u,(0,r.A)((0,r.A)({},e),{},{close:a}))}));return"function"===typeof t?t(m):m({})},V=e=>{let{children:t,footer:o,footerButtons:n,className:a,size:s,title:d,onClose:u,onConfirm:m,onCancel:h,closable:f,disabledScroller:p,withDecorator:_}=e,y=(0,l.A)(e,J);return(0,r.A)((0,r.A)((0,r.A)({},y),{},{icon:null,title:null,maskClosable:!!y.hasOwnProperty("maskClosable")&&y.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:u,className:c()(a,i)},"large"===(C=s)?{width:"calc(100vw - 64px)"}:"small"===C?{width:"600px"}:{width:"1000px"}),{},{children:(0,w.jsx)(g.IntlProvider,{importMessages:b,moduleName:"Drawer",children:z({withDecorator:_,title:d,closable:f,onClose:u,onConfirm:m,onCancel:h,footer:o,footerButtons:n,disabledScroller:p,children:t})})});var C},q=()=>{const{drawer:e}=N.useAppDrawer();return t=>{const o={},l=V((0,r.A)({onClose:()=>o.close()},t)),a=Object.assign({},((0,n.A)(l),l)),{destroy:s}=e((0,r.A)({},a));return o.close=s,o}},U=e=>{let{size:t="small"}=e,o=(0,l.A)(e,I);return(0,w.jsx)(a.Drawer,(0,r.A)({},V((0,r.A)({size:t},o))))};var W=o(73025);const H=e=>{const t=q();return(0,w.jsx)(W.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},47458(e,t,o){"use strict";o.r(t),o.d(t,{FormattedMessage:()=>A,IntlProvider:()=>w,createWithIntl:()=>j,createWithLocale:()=>g,default:()=>k,useIntl:()=>x});var n=o(89379),r=o(53986),l=o(87558),a=o.n(l),s=o(61032),c=o(72752),i=o(73884),d=o(34677),u=o.n(d),m=o(22717),h=o.n(m),f=o(33097),p=o.n(f),_=o(70579);const b=new Map,g=e=>{let{moduleName:t,importMessages:o}=e;return e=>(0,i.forwardRef)((r,l)=>{const{global:s}=(0,c.useGlobalContext)("locale"),i=s||"zh-CN";return(0,_.jsx)(a(),{params:{locale:i},loader:e=>{let{params:n}=e;const{locale:r}=n,l="".concat(t,"_").concat(r);return b.has(l)?b.get(l):Promise.resolve(o(r)).then(e=>{let{default:t}=e;return b.set(l,t),t})},render:t=>{let{data:o}=t;return(0,_.jsx)(e,(0,n.A)((0,n.A)({},r),{},{locale:o,ref:l}))}})})},y=["id","moduleName","children"],C=(0,l.withFetch)(e=>{let{children:t,data:o,locale:n}=e;return(0,_.jsx)(s.IntlProvider,{locale:n,messages:o,children:t})}),w=e=>{let{locale:t,importMessages:o=()=>({}),moduleName:n="Global",children:r}=e;const{global:{localMessageRef:l,locale:a}}=(0,c.useGlobalContext)(),s=t||a||"zh-CN";return(0,_.jsx)(C,{locale:s,params:{locale:s},loader:e=>{let{params:t}=e;const{locale:r}=t;return Promise.resolve(o(r)).then(e=>{let{default:t}=e;const o=u()({},l.current,h()(t,(e,t,o)=>{e["".concat(n,"_").concat(o)]=t}));return l.current=o,o})},children:r})},A=e=>{let{id:t,moduleName:o="Global",children:l}=e,a=(0,r.A)(e,y);const c="".concat(o,"_").concat(t);return"function"===typeof l?(0,_.jsx)(s.FormattedMessage,(0,n.A)((0,n.A)({},a),{},{id:c,children:e=>l(e&&e.join(""))})):(0,_.jsx)(s.FormattedMessage,(0,n.A)((0,n.A)({},a),{},{id:c}))},x=e=>{let t=p()(e,"moduleName")||"Global";const{formatMessage:o}=(0,s.useIntl)(),n=(0,i.useCallback)((e,n)=>(e.id="".concat(t,"_").concat(e.id),o(e,n)),[t,o]);return{formatMessage:n}},j=e=>{let{importMessages:t,moduleName:o}=e;return e=>(0,i.forwardRef)((r,l)=>(0,_.jsx)(w,{importMessages:t,moduleName:o,children:(0,_.jsx)(e,(0,n.A)((0,n.A)({},r),{},{ref:l}))}))},k=A},64671(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>r.a});var n=o(48781),r=o.n(n),l={};for(const a in n)"default"!==a&&(l[a]=()=>n[a]);o.d(t,l)},72752(e,t,o){"use strict";o.r(t),o.d(t,{GetGlobal:()=>Q,GlobalProvider:()=>W,GlobalSetting:()=>s.GlobalSetting,GlobalValue:()=>s.GlobalValue,PureGlobal:()=>H,SetGlobal:()=>Z,containerClassName:()=>V,default:()=>X,useGlobalContext:()=>K,useGlobalValue:()=>s.useGlobalValue,usePreset:()=>s.usePreset});var n=o(89379),r=o(53986),l=(o(3870),o(21683),o(83136)),a=o.n(l),s=o(83694),c=o(55199),i=o(73884),d=o(71298),u=o.n(d),m=o(36755),h=o(76801);const f=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var p=o(87558),_=o.n(p),b=o(57469),g=o.n(b),y=o(52526);const C=e=>{let{params:t}=e;const{locale:n}=t;return{"en-US":async()=>(await o.e(3513).then(o.t.bind(o,33513,23)),g().locale("en"),await o.e(2397).then(o.t.bind(o,62397,23)).then(e=>{(0,y.localeLoader)("en-US",e.default,"button-group")}),await o.e(9808).then(o.t.bind(o,79808,23)).then(e=>{(0,y.localeLoader)("en-US",e.default,"phone-number-input")}),await o.e(8670).then(o.t.bind(o,78670,23)).then(e=>{(0,y.localeLoader)("en-US",e.default,"scroll-loader")}),await o.e(9223).then(o.t.bind(o,99223,23)).then(e=>{(0,y.localeLoader)("en-US",e.default,"react-file")}),await o.e(7451).then(o.bind(o,47451)).then(e=>e.default)),"zh-CN":async()=>(await o.e(6484).then(o.t.bind(o,76484,23)),g().locale("zh-cn"),await o.e(4965).then(o.bind(o,64965)).then(e=>e.default))}[n]()},w={container:"style_container__k+uRt__TkoJL","is-not-init":"style_is-not-init__BZN0v__TkoJL","loading-rotate":"style_loading-rotate__kLLHV__TkoJL",total_text:"style_total_text__oNKMr__TkoJL","ant-pagination":"style_ant-pagination__4LRg7__TkoJL","ant-pagination-options":"style_ant-pagination-options__mp-tz__TkoJL","ant-select-single":"style_ant-select-single__mL6Zt__TkoJL","ant-select-selector":"style_ant-select-selector__+111I__TkoJL","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__TkoJL","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__TkoJL","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__TkoJL"};var A=o(33097),x=o.n(A),j=o(25963),k=o(64671),v=o(96418),L=o.n(v),P=o(22717),S=o.n(P),T=o(96604),N=o.n(T),G=o(25806),R=o.n(G),M=o(13050),E=o(56641),B=o.n(E);const J=(e,t)=>B()(e,t,(e,t)=>{if("function"===typeof e||"function"===typeof t||"symbol"===typeof e||"symbol"===typeof t)return!0});var I=o(70579);const O=["colorPrimary","components"],D=["preset","children","themeToken","init"],F=["children"],z=["children","className"];document.body.classList.add(w.container),f()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new(u())(document.body),(0,h.h)().classList.add(w.container));const V=w.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),q=(0,p.withFetch)(e=>{let{data:t,themeToken:o,children:l}=e;const[a,s]=(0,i.useState)(!1),d=Object.assign({},{colorPrimary:"#4096ff"},o),{colorPrimary:u,components:m}=d,f=(0,r.A)(d,O),p=(0,i.useMemo)(()=>R()(u),[u]),[_,b]=(0,i.useState)({});return(0,i.useEffect)(()=>{const e=document.querySelector(".".concat(V)),t=getComputedStyle(e);b({colorSuccess:t.getPropertyValue("--state-success-color"),colorError:t.getPropertyValue("--state-error-color"),colorWarning:t.getPropertyValue("--state-warning-color"),colorInfo:t.getPropertyValue("--state-info-color")})},[]),(0,i.useEffect)(()=>{let e=document.head.querySelector("#component-core-theme");e||(e=document.createElement("style"),e.id="component-core-theme",document.head.appendChild(e));const t={"--primary-color":u,"--primary-color-red":p.red(),"--primary-color-green":p.green(),"--primary-color-blue":p.blue(),"--primary-color-06":p.alpha(.06).string()};return N()(0,10).forEach(e=>{t["--primary-color-".concat(e+1)]=p.alpha((e+1)/10).string()}),e.textContent=".".concat(V,"{").concat(S()(t,(e,t,o)=>{e.push("".concat(o,":").concat(t,";"))},[]).join(""),"}"),s(!0),()=>{}},[u,p]),a?(0,I.jsx)(c.ConfigProvider,{getTargetContainer:h.h,getPopupContainer:h.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,warning:{strict:!1},theme:{components:m,token:Object.assign({},(0,n.A)((0,n.A)({},_),{},{colorPrimary:u,colorPrimaryBg:p.alpha(.1).string(),colorLink:u,colorTextBase:"#222222",colorText:"#222222"}),f)},children:l}):null}),U=(0,M.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[o,n]=t;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(k.FontLoader,{path:"".concat(o,"/iconfont.css")}),(0,I.jsx)(k.FontLoader,{path:"".concat(n,"/iconfont.js")})]})}),W=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:o,themeToken:n,init:l}=e,a=(0,r.A)(e,D);const d=x()(t,"locale","zh-CN"),u=(0,i.useRef)(null),m=(0,i.useRef)(null);return(0,I.jsx)(s.Global,{preset:t,initValue:Object.assign({},a,{themeToken:n,localMessageRef:u,enumsRef:m,locale:d},x()(t,"global")),children:(0,I.jsx)(s.GlobalValue,{globalKey:"locale",children:e=>{let{value:t}=e;return(0,I.jsxs)(q,{loader:C,params:{locale:t},themeToken:n,children:[(0,I.jsx)(c.App,{message:{top:100},children:(0,I.jsx)(j.AppDrawer,{children:"function"===typeof l?(0,I.jsx)(_(),{loader:()=>l(),render:()=>o}):o})}),(0,I.jsx)(U,{})]})}})})},H=e=>{let{children:t}=e,o=(0,r.A)(e,F);const l=(0,s.useGlobalValue)("themeToken");return(0,I.jsx)(W,(0,n.A)((0,n.A)({},o),{},{themeToken:o.themeToken||l,children:(0,I.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(w.container,"core-container-body"),children:t})}))},K=e=>{const t=(0,s.useGlobalContext)(),o=L()(o=>{t.setGlobal(t=>"function"===typeof o?Object.assign({},t,{[e]:o(x()(t,e))}):Object.assign({},t,{[e]:o}))});return Object.assign({global:{},setGlobal:()=>{console.warn("\u8c03\u7528setGlobal\u7684\u7ec4\u4ef6\u5e94\u8be5\u88ab\u653e\u7f6e\u5728Global\u4e0a\u4e0b\u6587\u4e2d")}},t,e?{global:x()(t.global,e),setGlobal:o}:{})},Z=e=>{let{globalKey:t,value:o,needReady:n,children:r}=e;const{global:l,setGlobal:a}=K(t),s=L()(a),c=(0,i.useRef)(null);return c.current=l,(0,i.useEffect)(()=>{J(c.current,o)||(c.current=o,s(o))},[o,s]),n&&!l?null:"function"===typeof r?r({global:l,setGlobal:a}):r},Q=e=>{let{globalKey:t,children:o}=e;const{global:n}=K(t);return o({value:n})},X=e=>{let{children:t,className:o}=e,l=(0,r.A)(e,z);return(0,I.jsx)(m.A,{errorRender:()=>(0,I.jsx)(c.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,I.jsx)(W,(0,n.A)((0,n.A)({},l),{},{children:(0,I.jsx)("div",{"data-testid":"components-core-global",className:a()(w.container,"container-body",o),children:t})}))})}},73025(e,t,o){"use strict";o.d(t,{A:()=>m});var n=o(89379),r=o(53986),l=o(73884),a=o(87558),s=o(96418),c=o.n(s),i=o(55199),d=o(70579);const u=["api","modalProps","modalFunc","onError"],m=e=>{let{api:t,modalProps:o={},modalFunc:s,onError:m}=e,h=(0,r.A)(e,u);const f=(0,a.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:p,data:_,error:b,refresh:g}=f,y=c()(m),C=c()(()=>{const e=s("function"===typeof o?o({data:_,fetchApi:f,close:()=>{e.close()}}):o)});return(0,l.useEffect)(()=>{p||(b?y(b):_&&C())},[p,b,_,C,y]),(0,d.jsx)(i.Button,(0,n.A)((0,n.A)({},h),{},{loading:p,onClick:()=>{g({onSuccess:()=>{}})}}))}},76801(e,t,o){"use strict";o.d(t,{c:()=>r,h:()=>n});const n=()=>document.querySelector(".simplebar-content-wrapper"),r=()=>document.querySelector(".container-body")},81014(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>n.LoadingButton,useLoading:()=>n.useLoading});o(9056);var n=o(49461)}}]);
2
- //# sourceMappingURL=7857.1092602e.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[760,2908,8593],{28148(e,s,t){t.r(s),t.d(s,{default:()=>O});var n=t(89379),a=t(53986);const l={menu:"style_menu__gvIvn__TkoJL","all-no-start-icon":"style_all-no-start-icon__CA+zR__TkoJL","no-start-icon":"style_no-start-icon__LnC1S__TkoJL","has-children":"style_has-children__m9tce__TkoJL","has-children-node":"style_has-children-node__2bhEB__TkoJL","is-root":"style_is-root__4hhOc__TkoJL",title:"style_title__+Hcar__TkoJL",active:"style_active__WU49K__TkoJL","no-collapse":"style_no-collapse__aIZBM__TkoJL","title-content":"style_title-content__cQXpK__TkoJL",loading:"style_loading__1pU4P__TkoJL"};var o=t(83136),r=t.n(o),i=t(55199),c=t(94679),d=t(29053),h=t(10986),p=t.n(h),u=t(64671),_=t(73884),y=t(18081),m=t.n(y),g=t(87558),f=t(70579);const k=["className","allowCollapsed","pathMatch","defaultItems"],K=["children","key","originItem"],v=e=>{const s=(0,c.useNavigate)(),{id:t,className:n,label:a,iconType:o,icon:h,path:p,request:_,onClick:y,isOpen:m,isSelected:k,onOpenChange:K,children:v,fetchOptions:O,depth:C,onLoad:A,allowCollapsed:j}=e,b=Array.isArray(v)&&v.length>0||O,{refresh:x,isLoading:L}=(0,g.useFetch)(Object.assign({},O,{auto:!j&&O,onRequestSuccess:e=>{A(e)}}));return(0,f.jsx)(d.default,{request:_,children:(0,f.jsxs)("div",{className:r()(n,l["menu-item"]),children:[(0,f.jsxs)("div",{className:r()(l.title,{[l.active]:k,[l["has-children"]]:b,[l["no-collapse"]]:b&&!j,[l["no-start-icon"]]:!o&&!h,[l["is-root"]]:0===C}),onClick:n=>{n.stopPropagation(),b||!p?b||O?j&&(O&&x({}),K(!m)):null===y||void 0===y||y(t,e):s(p)},children:[o&&!h&&(0,f.jsx)(u.default,{type:o}),h||null,(0,f.jsx)("span",{className:l["title-content"],children:a}),b&&j&&(0,f.jsx)(u.default,{type:m?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),b?!j||m&&v?(0,f.jsx)("div",{className:l["children-list"],children:v}):!j||m&&L?(0,f.jsx)("div",{className:l["children-list"],children:(0,f.jsx)(i.Spin,{className:l.loading,size:"small"})}):void 0:null]})})},O=e=>{let{className:s,allowCollapsed:t=!0,pathMatch:o,defaultItems:i=[]}=e,d=(0,a.A)(e,k);const{pathname:h,search:u}=(0,c.useLocation)(),[y,g]=p()(d,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[O,C]=p()((0,n.A)({defaultItems:i},d),{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:A,defaultOpenKeys:j,links:b,childrenKeys:x,hasStartIcon:L,hasChildren:N}=(0,_.useMemo)(()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,a)=>{const{parentKey:l,depth:o}=Object.assign({parentKey:"root",depth:0,paths:[]},a);return Array.isArray(e)&&e.length>0?e.map((e,a)=>{const r="".concat(e.key||"".concat("root"!==l?"".concat(l,"-"):"","node-").concat(a));s[l]||(s[l]=[]),s[l].push(r);const i=n(e.children,{parentKey:r,depth:o+1});s[r]&&s[l].push(...s[r]);const c=Object.assign({},e,{key:r,parentKey:l,depth:o,children:i,originItem:e});return t[r]=c,c}):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(O);let a=!1,l=!1;const o=[],r=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach(e=>{const s=n[e];(s.iconType||s.icon)&&(a=!0),s.path&&o.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(l=!0,r.push(s.key))}),{defaultOpenKeys:r,links:o,items:s,childrenKeys:t,hasStartIcon:a,hasChildren:l}},[O]);(0,_.useEffect)(()=>{const e=b.find(e=>{let{path:s}=e;return"function"===typeof o?o(s,{pathname:h,search:u}):m()(h.replace(/[#,?].*/,""))===m()(s)||m()(h+u)===m()(s)});e&&g(e.key)},[b,h,u,g,o]);const[T,I]=p()(Object.assign({},d,{defaultOpenKeys:d.defaultOpenKeys||j}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),J=(0,_.useCallback)((e,s)=>{const{parentKey:l,depth:o,selectedKey:r,openKeys:i,paths:c}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map(e=>{let{children:s,key:d,originItem:h}=e,p=(0,a.A)(e,K);return(0,_.createElement)(v,(0,n.A)((0,n.A)({},Object.assign({},p)),{},{id:d,parentId:l,depth:o,allowCollapsed:t,isSelected:d===r||x[d]&&x[d].indexOf(r)>-1,onClick:g,onLoad:e=>{C(s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map(s=>Object.assign({},s,{children:h===s?e:t(s.children)})):null;return t(s)})},isOpen:(i||[]).indexOf(d)>-1,key:d,onOpenChange:()=>{I(e=>{const s=e.slice(0);return e.indexOf(d)>-1?s.splice(e.indexOf(d),1):s.push(d),s})}}),J(s,{parentKey:l,depth:o+1,selectedKey:r,openKeys:i,paths:[...c,d]}))}):null},[C,I,g,x,t]);return(0,f.jsx)("div",{className:r()(s,l.menu,{[l["all-no-start-icon"]]:!L,[l["has-children-node"]]:N}),children:J(A,{selectedKey:y,openKeys:T})})}},29053(e,s,t){t.r(s),t.d(s,{computedIsPass:()=>y,default:()=>f,usePermissions:()=>m,usePermissionsPass:()=>g});var n=t(89379),a=t(53986),l=t(73884),o=t(55199),r=t(33097),i=t.n(r),c=t(83136),d=t.n(c);const h="style_outer__vbHB9__TkoJL";var p=t(72752),u=t(70579);const _=["type","className","tagName","message","request","children"],y=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some(e=>(s||[]).indexOf(e)>-1)},m=()=>{const{global:e}=(0,p.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,p.usePreset)();return{permissions:e.permissions||s||t&&i()(e,t)||[]}},g=e=>{let{request:s}=e;const{permissions:t}=m();return y({permissions:t,request:s})},f=e=>{let{type:s="hidden",className:t,tagName:r="span",message:i="\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458",request:c,children:p}=e,y=(0,a.A)(e,_);const m=g({request:c});return"function"===typeof p?p({isPass:m,type:s,request:c}):!0===m?p:"error"===s?(0,u.jsx)(o.Result,{status:"403",subTitle:i}):"tooltip"===s?(0,u.jsx)(o.Tooltip,{title:i,children:(0,l.createElement)(r,(0,n.A)((0,n.A)({},y),{},{className:d()(h,t)}),p)}):null}}}]);
2
- //# sourceMappingURL=8593.0d871f1d.chunk.js.map