@kne-components/components-core 0.4.12 → 0.4.13

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 (136) hide show
  1. package/build/asset-manifest.json +95 -95
  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/1996.b4f38679.chunk.css +2 -0
  6. package/build/static/css/{1996.b1436cc8.chunk.css.map → 1996.b4f38679.chunk.css.map} +1 -1
  7. package/build/static/css/2004.99fe0683.chunk.css +2 -0
  8. package/build/static/css/{2004.c035d26e.chunk.css.map → 2004.99fe0683.chunk.css.map} +1 -1
  9. package/build/static/css/206.05852c5d.chunk.css +2 -0
  10. package/build/static/css/206.05852c5d.chunk.css.map +1 -0
  11. package/build/static/css/254.10beca73.chunk.css +2 -0
  12. package/build/static/css/{254.a12729ab.chunk.css.map → 254.10beca73.chunk.css.map} +1 -1
  13. package/build/static/css/2628.21fc08fe.chunk.css +2 -0
  14. package/build/static/css/{2628.3188c686.chunk.css.map → 2628.21fc08fe.chunk.css.map} +1 -1
  15. package/build/static/css/3404.67a9e351.chunk.css +2 -0
  16. package/build/static/css/{3404.b9717d24.chunk.css.map → 3404.67a9e351.chunk.css.map} +1 -1
  17. package/build/static/css/3652.e8f881ae.chunk.css +2 -0
  18. package/build/static/css/{3652.86f3b6bb.chunk.css.map → 3652.e8f881ae.chunk.css.map} +1 -1
  19. package/build/static/css/3771.53c92dd6.chunk.css +2 -0
  20. package/build/static/css/{3771.446d3735.chunk.css.map → 3771.53c92dd6.chunk.css.map} +1 -1
  21. package/build/static/css/{3790.d1b530a4.chunk.css → 3790.0bd5dcca.chunk.css} +2 -2
  22. package/build/static/css/{3790.d1b530a4.chunk.css.map → 3790.0bd5dcca.chunk.css.map} +1 -1
  23. package/build/static/css/{4277.3194c080.chunk.css → 4277.1e6d3ee3.chunk.css} +2 -2
  24. package/build/static/css/{4277.3194c080.chunk.css.map → 4277.1e6d3ee3.chunk.css.map} +1 -1
  25. package/build/static/css/4741.8c1069d9.chunk.css +2 -0
  26. package/build/static/css/{4741.5a84abe3.chunk.css.map → 4741.8c1069d9.chunk.css.map} +1 -1
  27. package/build/static/css/4832.01d63eb8.chunk.css +2 -0
  28. package/build/static/css/4832.01d63eb8.chunk.css.map +1 -0
  29. package/build/static/css/5195.5df3263a.chunk.css +2 -0
  30. package/build/static/css/5195.5df3263a.chunk.css.map +1 -0
  31. package/build/static/css/6763.dd66ef2f.chunk.css +2 -0
  32. package/build/static/css/{6763.42d76eb7.chunk.css.map → 6763.dd66ef2f.chunk.css.map} +1 -1
  33. package/build/static/css/6980.5f0b0cb2.chunk.css +12 -0
  34. package/build/static/css/{6980.f5424a2c.chunk.css.map → 6980.5f0b0cb2.chunk.css.map} +1 -1
  35. package/build/static/css/7227.748fb9a1.chunk.css +2 -0
  36. package/build/static/css/{7227.e83fd744.chunk.css.map → 7227.748fb9a1.chunk.css.map} +1 -1
  37. package/build/static/css/760.aed85987.chunk.css +2 -0
  38. package/build/static/css/{760.7efd69c3.chunk.css.map → 760.aed85987.chunk.css.map} +1 -1
  39. package/build/static/css/8593.44f6d410.chunk.css +2 -0
  40. package/build/static/css/{8593.df922b83.chunk.css.map → 8593.44f6d410.chunk.css.map} +1 -1
  41. package/build/static/css/9556.e0c6c7f6.chunk.css +2 -0
  42. package/build/static/css/{9556.3024763d.chunk.css.map → 9556.e0c6c7f6.chunk.css.map} +1 -1
  43. package/build/static/css/9772.94f5f083.chunk.css +2 -0
  44. package/build/static/css/{9772.e21859cf.chunk.css.map → 9772.94f5f083.chunk.css.map} +1 -1
  45. package/build/static/js/{1014.ac7e07be.chunk.js → 1014.e5b4dfc7.chunk.js} +1 -1
  46. package/build/static/js/{1996.1779e813.chunk.js → 1996.3a236927.chunk.js} +2 -2
  47. package/build/static/js/{1996.1779e813.chunk.js.map → 1996.3a236927.chunk.js.map} +1 -1
  48. package/build/static/js/{2004.182c7c0f.chunk.js → 2004.f8dd7cdf.chunk.js} +3 -3
  49. package/build/static/js/{2004.182c7c0f.chunk.js.map → 2004.f8dd7cdf.chunk.js.map} +1 -1
  50. package/build/static/js/206.6d11e36b.chunk.js +2 -0
  51. package/build/static/js/{206.870edee0.chunk.js.map → 206.6d11e36b.chunk.js.map} +1 -1
  52. package/build/static/js/{2097.0567ed2b.chunk.js → 2097.cb0ebbbb.chunk.js} +2 -2
  53. package/build/static/js/{2097.0567ed2b.chunk.js.map → 2097.cb0ebbbb.chunk.js.map} +1 -1
  54. package/build/static/js/254.bb219d2f.chunk.js +2 -0
  55. package/build/static/js/{254.238ab8af.chunk.js.map → 254.bb219d2f.chunk.js.map} +1 -1
  56. package/build/static/js/{2628.13f2cd3d.chunk.js → 2628.f675039d.chunk.js} +2 -2
  57. package/build/static/js/{2628.13f2cd3d.chunk.js.map → 2628.f675039d.chunk.js.map} +1 -1
  58. package/build/static/js/{3404.1b947536.chunk.js → 3404.94f6275b.chunk.js} +3 -3
  59. package/build/static/js/{3404.1b947536.chunk.js.map → 3404.94f6275b.chunk.js.map} +1 -1
  60. package/build/static/js/{3652.5d13bc4c.chunk.js → 3652.e5a28adc.chunk.js} +2 -2
  61. package/build/static/js/{3652.5d13bc4c.chunk.js.map → 3652.e5a28adc.chunk.js.map} +1 -1
  62. package/build/static/js/{3771.60b0504e.chunk.js → 3771.998da4f9.chunk.js} +2 -2
  63. package/build/static/js/{3771.60b0504e.chunk.js.map → 3771.998da4f9.chunk.js.map} +1 -1
  64. package/build/static/js/{3790.72c7a465.chunk.js → 3790.effe004b.chunk.js} +2 -2
  65. package/build/static/js/{3790.72c7a465.chunk.js.map → 3790.effe004b.chunk.js.map} +1 -1
  66. package/build/static/js/3856.d51e240b.chunk.js +2 -0
  67. package/build/static/js/{3856.29d5e528.chunk.js.map → 3856.d51e240b.chunk.js.map} +1 -1
  68. package/build/static/js/4277.c0f74e50.chunk.js +2 -0
  69. package/build/static/js/{4277.de810104.chunk.js.map → 4277.c0f74e50.chunk.js.map} +1 -1
  70. package/build/static/js/4474.8524d82a.chunk.js +2 -0
  71. package/build/static/js/{4474.dfb83cf2.chunk.js.map → 4474.8524d82a.chunk.js.map} +1 -1
  72. package/build/static/js/4832.e478f6cf.chunk.js +2 -0
  73. package/build/static/js/{4832.cf55c52c.chunk.js.map → 4832.e478f6cf.chunk.js.map} +1 -1
  74. package/build/static/js/5195.c7f2e172.chunk.js +2 -0
  75. package/build/static/js/{5195.9ac8caa0.chunk.js.map → 5195.c7f2e172.chunk.js.map} +1 -1
  76. package/build/static/js/{6183.23d57d24.chunk.js → 6183.9f9ecead.chunk.js} +2 -2
  77. package/build/static/js/6183.9f9ecead.chunk.js.map +1 -0
  78. package/build/static/js/{6454.d8a2bc1e.chunk.js → 6454.1dea34c5.chunk.js} +1 -1
  79. package/build/static/js/{6617.94f51cff.chunk.js → 6617.1cb118cb.chunk.js} +1 -1
  80. package/build/static/js/{6763.97f4747b.chunk.js → 6763.c0930523.chunk.js} +2 -2
  81. package/build/static/js/{6763.97f4747b.chunk.js.map → 6763.c0930523.chunk.js.map} +1 -1
  82. package/build/static/js/{6980.5b98fb8f.chunk.js → 6980.eb0ca6af.chunk.js} +2 -2
  83. package/build/static/js/6980.eb0ca6af.chunk.js.map +1 -0
  84. package/build/static/js/7227.6e355494.chunk.js +3 -0
  85. package/build/static/js/{7227.65b21900.chunk.js.map → 7227.6e355494.chunk.js.map} +1 -1
  86. package/build/static/js/{7338.0c458623.chunk.js → 7338.18d781f2.chunk.js} +2 -2
  87. package/build/static/js/{7338.0c458623.chunk.js.map → 7338.18d781f2.chunk.js.map} +1 -1
  88. package/build/static/js/{760.bc8726da.chunk.js → 760.0e9d9610.chunk.js} +2 -2
  89. package/build/static/js/{760.bc8726da.chunk.js.map → 760.0e9d9610.chunk.js.map} +1 -1
  90. package/build/static/js/8593.c2266549.chunk.js +2 -0
  91. package/build/static/js/{8593.a7cfca38.chunk.js.map → 8593.c2266549.chunk.js.map} +1 -1
  92. package/build/static/js/9556.e0e3aa34.chunk.js +3 -0
  93. package/build/static/js/{9556.bd02b06f.chunk.js.map → 9556.e0e3aa34.chunk.js.map} +1 -1
  94. package/build/static/js/{9772.8953d82a.chunk.js → 9772.2e6315a6.chunk.js} +2 -2
  95. package/build/static/js/9772.2e6315a6.chunk.js.map +1 -0
  96. package/build/static/js/{main.83f21429.js → main.d69b3bad.js} +2 -2
  97. package/build/static/js/{main.83f21429.js.map → main.d69b3bad.js.map} +1 -1
  98. package/package.json +2 -2
  99. package/build/static/css/1996.b1436cc8.chunk.css +0 -2
  100. package/build/static/css/2004.c035d26e.chunk.css +0 -2
  101. package/build/static/css/206.c2648b4c.chunk.css +0 -2
  102. package/build/static/css/206.c2648b4c.chunk.css.map +0 -1
  103. package/build/static/css/254.a12729ab.chunk.css +0 -2
  104. package/build/static/css/2628.3188c686.chunk.css +0 -2
  105. package/build/static/css/3404.b9717d24.chunk.css +0 -2
  106. package/build/static/css/3652.86f3b6bb.chunk.css +0 -2
  107. package/build/static/css/3771.446d3735.chunk.css +0 -2
  108. package/build/static/css/4741.5a84abe3.chunk.css +0 -2
  109. package/build/static/css/4832.ee29b4d5.chunk.css +0 -2
  110. package/build/static/css/4832.ee29b4d5.chunk.css.map +0 -1
  111. package/build/static/css/5195.9d6bb120.chunk.css +0 -2
  112. package/build/static/css/5195.9d6bb120.chunk.css.map +0 -1
  113. package/build/static/css/6763.42d76eb7.chunk.css +0 -2
  114. package/build/static/css/6980.f5424a2c.chunk.css +0 -12
  115. package/build/static/css/7227.e83fd744.chunk.css +0 -2
  116. package/build/static/css/760.7efd69c3.chunk.css +0 -2
  117. package/build/static/css/8593.df922b83.chunk.css +0 -2
  118. package/build/static/css/9556.3024763d.chunk.css +0 -2
  119. package/build/static/css/9772.e21859cf.chunk.css +0 -2
  120. package/build/static/js/206.870edee0.chunk.js +0 -2
  121. package/build/static/js/254.238ab8af.chunk.js +0 -2
  122. package/build/static/js/3856.29d5e528.chunk.js +0 -2
  123. package/build/static/js/4277.de810104.chunk.js +0 -2
  124. package/build/static/js/4474.dfb83cf2.chunk.js +0 -2
  125. package/build/static/js/4832.cf55c52c.chunk.js +0 -2
  126. package/build/static/js/5195.9ac8caa0.chunk.js +0 -2
  127. package/build/static/js/6183.23d57d24.chunk.js.map +0 -1
  128. package/build/static/js/6980.5b98fb8f.chunk.js.map +0 -1
  129. package/build/static/js/7227.65b21900.chunk.js +0 -3
  130. package/build/static/js/8593.a7cfca38.chunk.js +0 -2
  131. package/build/static/js/9556.bd02b06f.chunk.js +0 -3
  132. package/build/static/js/9772.8953d82a.chunk.js.map +0 -1
  133. /package/build/static/js/{2004.182c7c0f.chunk.js.LICENSE.txt → 2004.f8dd7cdf.chunk.js.LICENSE.txt} +0 -0
  134. /package/build/static/js/{3404.1b947536.chunk.js.LICENSE.txt → 3404.94f6275b.chunk.js.LICENSE.txt} +0 -0
  135. /package/build/static/js/{7227.65b21900.chunk.js.LICENSE.txt → 7227.6e355494.chunk.js.LICENSE.txt} +0 -0
  136. /package/build/static/js/{9556.bd02b06f.chunk.js.LICENSE.txt → 9556.e0e3aa34.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[206,4671],{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 n of[Array,String,t])Object.defineProperty(n.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},25963:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppDrawer:()=>P,DrawerButton:()=>T,default:()=>O,useDrawer:()=>D});var o=n(55199),l=n(83136),r=n.n(l);const a="style_drawer__hA8bn__RltKb",s="style_drawer-outer__vuEIf__RltKb",c="style_drawer-title__71eaW__RltKb",i="style_drawer-body__frw9I__RltKb",d="style_is-disabled-scroller__ZsITw__RltKb",u="style_drawer-body-inner__lci9Z__RltKb",_="style_drawer-footer__1g8o1__RltKb",p="style_drawer-close__bpxnp__RltKb",m=e=>({"en-US":()=>n.e(3172).then(n.bind(n,23172)),"zh-CN":()=>n.e(5254).then(n.bind(n,95254))}[e]());var h=n(47458),f=n(73884);const b=()=>{const[e,t]=(0,f.useState)([]);return[e,(0,f.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var g=n(70579);const y=(0,f.forwardRef)((e,t)=>{let{config:n}=e;const[l,r]=(0,f.useState)(!0),[a,s]=(0,f.useState)(n),c=function(){r(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.some(e=>e&&e.triggerCancel);a.onClose&&o&&a.onClose(()=>{},...t.slice(1))};return(0,f.useImperativeHandle)(t,()=>({destroy:c,update:e=>{s(t=>({...t,...e}))}})),(0,g.jsx)(o.Drawer,{...a,ref:t,open:l,onClose:c})});let x=0;function C(e){return{...e}}const w=[],j=(0,f.memo)((0,f.forwardRef)((e,t)=>{const[n,o]=b();return(0,f.useImperativeHandle)(t,()=>({patchElement:o}),[o]),(0,g.jsx)(g.Fragment,{children:n})}));const v=function(){const e=(0,f.useRef)(null),[t,n]=(0,f.useState)([]);(0,f.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),n([])}},[t]);const o=(0,f.useCallback)(t=>function(o){var l;x+=1;const r=(0,f.createRef)();let a=()=>{};const s=(0,g.jsx)(y,{config:t(o),ref:r,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},`drawer-${x}`);return a=null===(l=e.current)||void 0===l?void 0:l.patchElement(s),a&&w.push(a),{destroy:()=>{function e(){var e;null===(e=r.current)||void 0===e||e.destroy()}r.current?e():n(t=>[...t,e])},update:e=>{function t(){var t;null===(t=r.current)||void 0===t||t.update(e)}r.current?t():n(e=>[...e,t])}}},[]);return[(0,f.useMemo)(()=>o(C),[o]),(0,g.jsx)(j,{ref:e},"drawer-holder")]},R=(0,f.createContext)({}),{Provider:k}=R,K=e=>{const{children:t}=e,[n,o]=v(),l=(0,f.useMemo)(()=>({drawer:n}),[n]);return(0,g.jsx)(k,{value:l,children:(0,g.jsxs)("div",{children:[o,t]})})};K.useAppDrawer=()=>(0,f.useContext)(R);const P=K;var S=n(81014),N=n(71298),A=n.n(N),G=n(64671);const L=(e,t)=>"function"===typeof e?e(t):e,M=e=>{let{footer:t,footerButtons:n,onConfirm:l,onCancel:r,onClose:a}=e;return(0,g.jsxs)(o.Row,{gutter:10,wrap:!1,children:[(0,g.jsx)(o.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,g.jsx)(o.Col,{children:(0,g.jsx)(o.Space,{children:(n||[{children:"\u53d6\u6d88",onClick:r},{type:"primary",children:"\u786e\u5b9a",onClick:l}]).map((e,t)=>{let{ButtonComponent:n,onClick:o,autoClose:l=!0,...r}=e;const s=n||S.default;return(0,f.createElement)(s,{...r,key:t,onClick:async function(){const e=await Promise.resolve(o&&o(...arguments));return l&&!1!==e&&a&&a(),e}})})})})]})},E=e=>{let{title:t,footer:n,disabledScroller:l,footerButtons:a,onClose:m,closable:h,onConfirm:b,onCancel:y,children:x}=e;const C=(0,f.useRef)(null);return(0,f.useEffect)(()=>{!l&&new(A())(C.current)},[l]),(0,g.jsxs)("div",{className:s,"data-testid":"components-core-drawer",children:[!1===h?null:(0,g.jsx)(o.Button,{"data-testid":"components-core-drawer-close-btn",className:r()(p,"drawer-close"),type:"text",icon:(0,g.jsx)(G.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),m&&m()}}),t&&(0,g.jsx)("div",{className:r()(c,"drawer-title"),children:t}),(0,g.jsx)("div",{className:r()(i,"drawer-body",{[d]:l}),ref:C,children:(0,g.jsx)("div",{className:r()(u,"drawer-body-inner"),children:x})}),null!==n||a?(0,g.jsx)("div",{className:r()(_,"drawer-footer"),children:(0,g.jsx)(M,{footer:n,footerButtons:a,onConfirm:b,onCancel:y,onClose:m})}):null]})},I=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:l,onClose:r,onConfirm:a,onCancel:s,footer:c,disabledScroller:i,children:d}=e;const u=e=>(e=Object.assign({},e),(0,g.jsx)(E,{title:o,closable:l,onClose:r,onConfirm:a,onCancel:s,footerButtons:L(n,{...e,close:r}),disabledScroller:i,footer:L(c,{...e,close:r}),children:L(d,{...e,close:r})}));return"function"===typeof t?t(u):u({})},B=e=>{let{children:t,footer:n,footerButtons:o,className:l,size:s,title:c,onClose:i,onConfirm:d,onCancel:u,closable:_,disabledScroller:p,withDecorator:f,...b}=e;return{...b,icon:null,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:i,className:r()(l,a),...(y=s,"large"===y?{width:"calc(100vw - 64px)"}:"small"===y?{width:"600px"}:{width:"1000px"}),children:(0,g.jsx)(h.IntlProvider,{importMessages:m,moduleName:"Drawer",children:I({withDecorator:f,title:c,closable:_,onClose:i,onConfirm:d,onCancel:u,footer:n,footerButtons:o,disabledScroller:p,children:t})})};var y},D=()=>{const{drawer:e}=P.useAppDrawer();return t=>{const n={},{...o}=B({onClose:()=>n.close(),...t}),{destroy:l}=e({...o});return n.close=l,n}},O=e=>{let{size:t="small",...n}=e;return(0,g.jsx)(o.Drawer,{...B({size:t,...n})})};var $=n(73025);const T=e=>{const t=D();return(0,g.jsx)($.A,{...e,modalFunc:t})}},47458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FormattedMessage:()=>y,IntlProvider:()=>g,createWithIntl:()=>C,createWithLocale:()=>f,default:()=>w,useIntl:()=>x});var o=n(87558),l=n.n(o),r=n(61032),a=n(63743),s=n(73884),c=n(34677),i=n.n(c),d=n(22717),u=n.n(d),_=n(33097),p=n.n(_),m=n(70579);const h=new Map,f=e=>{let{moduleName:t,importMessages:n}=e;return e=>(0,s.forwardRef)((o,r)=>{const{global:s}=(0,a.useGlobalContext)("locale"),c=s||"zh-CN";return(0,m.jsx)(l(),{params:{locale:c},loader:e=>{let{params:o}=e;const{locale:l}=o,r=`${t}_${l}`;return h.has(r)?h.get(r):Promise.resolve(n(l)).then(e=>{let{default:t}=e;return h.set(r,t),t})},render:t=>{let{data:n}=t;return(0,m.jsx)(e,{...o,locale:n,ref:r})}})})},b=(0,o.withFetch)(e=>{let{children:t,data:n,locale:o}=e;return(0,m.jsx)(r.IntlProvider,{locale:o,messages:n,children:t})}),g=e=>{let{locale:t,importMessages:n=()=>({}),moduleName:o="Global",children:l}=e;const{global:{localMessageRef:r,locale:s}}=(0,a.useGlobalContext)(),c=t||s||"zh-CN";return(0,m.jsx)(b,{locale:c,params:{locale:c},loader:e=>{let{params:t}=e;const{locale:l}=t;return Promise.resolve(n(l)).then(e=>{let{default:t}=e;const n=i()({},r.current,u()(t,(e,t,n)=>{e[`${o}_${n}`]=t}));return r.current=n,n})},children:l})},y=e=>{let{id:t,moduleName:n="Global",children:o,...l}=e;const a=`${n}_${t}`;return"function"===typeof o?(0,m.jsx)(r.FormattedMessage,{...l,id:a,children:e=>o(e&&e.join(""))}):(0,m.jsx)(r.FormattedMessage,{...l,id:a})},x=e=>{let t=p()(e,"moduleName")||"Global";const{formatMessage:n}=(0,r.useIntl)(),o=(0,s.useCallback)((e,o)=>(e.id=`${t}_${e.id}`,n(e,o)),[t,n]);return{formatMessage:o}},C=e=>{let{importMessages:t,moduleName:n}=e;return e=>(0,s.forwardRef)((o,l)=>(0,m.jsx)(g,{importMessages:t,moduleName:n,children:(0,m.jsx)(e,{...o,ref:l})}))},w=y},63743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GetGlobal:()=>W,GlobalInfo:()=>H,GlobalProvider:()=>F,PureGlobal:()=>z,SetGlobal:()=>q,default:()=>Z,useGlobalContext:()=>U,usePreset:()=>u});n(3870),n(21683);var o=n(83136),l=n.n(o),r=n(83694),a=n(73884),s=n(70579);const c=(0,a.createContext)({}),{Provider:i}=c,d=e=>{let{value:t={},children:n}=e;const o=(0,a.useRef)(t);return o.current=t,(0,s.jsx)(i,{value:o,children:n})},u=()=>(0,a.useContext)(c).current||{};var _=n(55199),p=n(71298),m=n.n(p),h=n(36755),f=n(76801);const b=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var g=n(87558),y=n.n(g),x=n(57469),C=n.n(x),w=n(52526);const j=e=>{let{params:t}=e;const{locale:o}=t;return{"en-US":async()=>(await n.e(3513).then(n.t.bind(n,33513,23)),C().locale("en"),await n.e(2397).then(n.t.bind(n,62397,23)).then(e=>{(0,w.localeLoader)("en-US",e.default,"button-group")}),await n.e(9808).then(n.t.bind(n,79808,23)).then(e=>{(0,w.localeLoader)("en-US",e.default,"phone-number-input")}),await n.e(8670).then(n.t.bind(n,78670,23)).then(e=>{(0,w.localeLoader)("en-US",e.default,"scroll-loader")}),await n.e(9223).then(n.t.bind(n,99223,23)).then(e=>{(0,w.localeLoader)("en-US",e.default,"react-file")}),await n.e(7451).then(n.bind(n,47451)).then(e=>e.default)),"zh-CN":async()=>(await n.e(6484).then(n.t.bind(n,76484,23)),C().locale("zh-cn"),await n.e(1873).then(n.bind(n,91873)).then(e=>e.default))}[o]()},v={container:"style_container__k+uRt__RltKb","is-not-init":"style_is-not-init__BZN0v__RltKb","loading-rotate":"style_loading-rotate__kLLHV__RltKb",total_text:"style_total_text__oNKMr__RltKb","ant-pagination":"style_ant-pagination__4LRg7__RltKb","ant-pagination-total-text":"style_ant-pagination-total-text__8HE6P__RltKb","ant-pagination-options":"style_ant-pagination-options__mp-tz__RltKb","ant-select-single":"style_ant-select-single__mL6Zt__RltKb","ant-select-selector":"style_ant-select-selector__+111I__RltKb","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__RltKb","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__RltKb","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__RltKb","ant-pagination-item":"style_ant-pagination-item__i8udA__RltKb","ant-pagination-prev":"style_ant-pagination-prev__d03DI__RltKb","ant-pagination-next":"style_ant-pagination-next__lreJT__RltKb","ant-pagination-item-link":"style_ant-pagination-item-link__qPOiQ__RltKb","ant-pagination-jump-prev":"style_ant-pagination-jump-prev__Cdgxu__RltKb","ant-pagination-jump-next":"style_ant-pagination-jump-next__vZW63__RltKb","ant-pagination-item-active":"style_ant-pagination-item-active__uUJBI__RltKb"};var R=n(33097),k=n.n(R),K=n(25963),P=n(64671),S=n(96418),N=n.n(S),A=n(22717),G=n.n(A),L=n(96604),M=n.n(L),E=n(25806),I=n.n(E),B=n(13050),D=n(19853),O=n.n(D);document.body.classList.add(v.container),b()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new(m())(document.body),(0,f.h)().classList.add(v.container));const $=(0,g.withFetch)(e=>{let{data:t,themeToken:n={colorPrimary:"#4096ff"},children:o}=e;const[l,r]=(0,a.useState)(!1),{colorPrimary:c,components:i,...d}=Object.assign({},n);return(0,a.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=I()(c),n={"--primary-color":c,"--primary-color-red":t.red(),"--primary-color-green":t.green(),"--primary-color-blue":t.blue(),"--primary-color-06":t.alpha(.06).string()};return M()(0,10).forEach(e=>{n[`--primary-color-${e+1}`]=t.alpha((e+1)/10).string()}),e.textContent=`.${v.container.replace(/\+/g,"\\+").replace(/\//g,"\\/")}{${G()(n,(e,t,n)=>{e.push(`${n}:${t};`)},[]).join("")}}`,r(!0),()=>{}},[c]),l?(0,s.jsx)(_.ConfigProvider,{getTargetContainer:f.h,getPopupContainer:f.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,theme:{components:i,token:Object.assign({},{colorError:"#f53f3f",colorInfo:"#165dff",colorSuccess:"#00b42a",colorWarning:"#ff7d00",algorithm:d.isDark?_.theme.darkAlgorithm:_.theme.defaultAlgorithm,colorPrimary:c,colorLink:c,colorTextBase:"#222222",colorText:"#222222"},d)},children:o}):null}),T=(0,B.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[n,o]=t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(P.FontLoader,{path:`${n}/iconfont.css`}),(0,s.jsx)(P.FontLoader,{path:`${o}/iconfont.js`})]})}),F=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:n,themeToken:o,init:l,...c}=e;const i=k()(t,"locale","zh-CN"),u=(0,a.useRef)({}),p=(0,a.useRef)(new Map),[m,h]=(0,a.useState)(Object.assign({themeToken:o,localMessageRef:u,enumsRef:p,locale:i},k()(t,"global")));return(0,s.jsx)(r.Provider,{value:{...c,preset:t,locale:i,global:m,setGlobal:h},children:(0,s.jsx)(d,{value:t,children:(0,s.jsxs)($,{loader:j,params:{locale:m.locale},themeToken:m.themeToken,children:[(0,s.jsx)(_.App,{message:{top:100},children:(0,s.jsx)(K.AppDrawer,{children:"function"===typeof l?(0,s.jsx)(y(),{loader:()=>l({preset:t,global:m,setGlobal:h}),render:()=>n}):n})}),(0,s.jsx)(T,{})]})})})},z=e=>{let{children:t,...n}=e;const{global:o}=U("themeToken");return(0,s.jsx)(F,{...n,themeToken:n.themeToken||o,children:(0,s.jsx)("div",{"data-testid":"components-core-pure-global",className:l()(v.container,"core-container-body"),children:t})})},U=e=>{const t=(0,r.useGlobalContext)();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:k()(t.global,e),setGlobal:n=>{t.setGlobal("function"===typeof n?t=>Object.assign({},t,{[e]:n(k()(t,e))}):Object.assign({},t.global,{[e]:n}))}}:{})},q=e=>{let{globalKey:t,value:n,needReady:o,children:l}=e;const{global:r,setGlobal:s}=U(t),c=N()(s),i=(0,a.useRef)(null);return i.current=r,(0,a.useEffect)(()=>{O()(i.current,n)||(i.current=n,c(n))},[n,c]),o&&!r?null:l},W=e=>{let{globalKey:t,children:n}=e;const{global:o}=U(t);return n({value:o})},H=e=>{let{globalKey:t,value:n,needReady:o,children:l}=e;const{global:r,setGlobal:s}=U(t),c=N()(s),i=(0,a.useRef)(null);return i.current=r,(0,a.useEffect)(()=>{O()(i.current,n)||(i.current=n,c(n))},[n,c]),o&&!r?null:l({global:r,setGlobal:s})},Z=e=>{let{children:t,className:n,...o}=e;return(0,s.jsx)(h.A,{errorRender:()=>(0,s.jsx)(_.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,s.jsx)(F,{...o,children:(0,s.jsx)("div",{"data-testid":"components-core-global",className:l()(v.container,"container-body",n),children:t})})})}},64671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l.a});var o=n(48781),l=n.n(o),r={};for(const a in o)"default"!==a&&(r[a]=()=>o[a]);n.d(t,r)},73025:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(73884),l=n(87558),r=n(96418),a=n.n(r),s=n(55199),c=n(70579);const i=e=>{let{api:t,modalProps:n={},modalFunc:r,onError:i,...d}=e;const u=(0,l.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:_,data:p,error:m,refresh:h}=u,f=a()(i),b=a()(()=>{const e=r("function"===typeof n?n({data:p,fetchApi:u,close:()=>{e.close()}}):n)});return(0,o.useEffect)(()=>{_||(m?f(m):p&&b())},[_,m,p,b,f]),(0,c.jsx)(s.Button,{...d,loading:_,onClick:()=>{h({onSuccess:()=>{}})}})}},76801:(e,t,n)=>{"use strict";n.d(t,{c:()=>l,h:()=>o});const o=()=>document.querySelector(".simplebar-content-wrapper"),l=()=>document.querySelector(".container-body")},81014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.LoadingButton,useLoading:()=>o.useLoading});n(9056);var o=n(48686)}}]);
2
- //# sourceMappingURL=206.870edee0.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[254,330],{330:(e,t,l)=>{l.r(t),l.d(t,{default:()=>a});var n=l(29871),r=l.n(n),s={};for(const o in n)"default"!==o&&(s[o]=()=>n[o]);l.d(t,s),r().Fetch=n.FlexBoxFetch;const a=r()},1904:(e,t,l)=>{l.d(t,{A:()=>i,N:()=>d});var n=l(98434),r=l(43856);const{useOnChange:s,useDecorator:a}=n.hooks,o=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.AddressSelectField);o.Field=r.AddressSelectField,o.AddressEnum=r.AddressSelectField.AddressEnum,o.createAddressApi=r.AddressSelectField.createAddressApi,o.withAddressApi=r.AddressSelectField.withAddressApi;const i=o,d=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(r.AddressInputField);d.Field=r.AddressInputField},2196:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55199),r=l(73884),s=l(41381),a=l(330),o=l(68532),i=l(47094),d=l(83136),c=l.n(d),u=l(70579);const m=e=>{let{list:t=[],groupArgs:l,itemRender:d,column:m=2,gap:p,className:h,outer:g=(0,u.jsx)(s.default.Part,{}),children:f,..._}=e;const x=!(Number.isInteger(m)&&m>0),{ref:b,column:v}=(0,a.useFlexBox)(x?m:{}),y=(e,r)=>(0,u.jsx)(o.FormInfo,{list:t,column:e,groupArgs:l,itemRender:(e,t)=>"function"===typeof d?d(e,t):(0,u.jsx)(n.Col,{span:t.span,children:e}),children:(e,t)=>(0,u.jsx)(n.Row,{gutter:[p||24,0],className:c()({[i.A["column-not-layout"]]:r}),children:"function"===typeof f?f(e,t):e})});return(0,r.cloneElement)(g,Object.assign({},_,{className:c()(h,i.A["form-info"])}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:b}),x?v?y(v.col):y(2,!0):y(m)]}))}},2842:(e,t,l)=>{l.d(t,{default:()=>r.a});l(2885);var n=l(22986),r=l.n(n);l.o(n,"PHONE_NUMBER_INPUT")&&l.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},5995:(e,t,l)=>{l.d(t,{Ay:()=>d,Vl:()=>c,W6:()=>u});var n=l(3382),r=l(73025),s=l(55199),a=l(76995),o=l(47094),i=l(70579);const d=e=>(0,i.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:o.A["form-modal"]}))}),c=()=>{const e=(0,n.useModal)();return t=>e((0,a.A)(Object.assign({},t,{className:o.A["form-modal"]})))},u=e=>{let{classNames:t,...l}=e;const n=c();if(!l.api){const{modalProps:e,...t}=l;return(0,i.jsx)(s.Button,{...t,onClick:()=>{n(e)}})}return(0,i.jsx)(r.A,{...l,modalFunc:n})}},15209:(e,t,l)=>{l.d(t,{A:()=>c});var n=l(55199),r=l(10986),s=l.n(r),a=l(13050),o=l(70579);const i=e=>{let{...t}=e;const[l,r]=s()(t);return(0,o.jsx)(n.Input,{...t,value:l,onChange:e=>{r(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},d=(0,a.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t,...l}=e;const[n]=t,{hooks:r}=n,{useDecorator:s}=r;return s(Object.assign({placeholder:`\u8bf7\u8f93\u5165${l.label||""}`},l))(i)});d.field=i;const c=d},15445:(e,t,l)=>{l.d(t,{A:()=>Y,E:()=>J});var n=l(98434),r=l(30096),s=l(34643),a=l(1904),o=l(83230),i=l(55199),d=l(70579);const{useOnChange:c}=n.hooks,u=e=>(0,d.jsx)(i.ColorPicker,{...e,onChange:t=>e.onChange(t.toHexString())}),m=e=>c(Object.assign({},e))(u);m.Field=m;const p=m;var h=l(81026),g=l(78756),f=l(92328),_=l(2842);const{useOnChange:x,useCheckedToValue:b}=n.hooks,{withChecked:v}=n.hoc,y=v(e=>{let{checked:t,children:l=null,...n}=e;return(0,d.jsxs)(i.Space,{children:[(0,d.jsx)(i.Switch,{checked:t,...n}),"function"===typeof l?l({checked:t}):l]})}),A=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=b(e);return x(t)(y)};A.Field=i.Switch;const j=A;var N=l(89099),S=l(96339),C=l(36972),R=l(15209),w=l(74529),F=l.n(w),I=l(73884),P=l(47458),M=l(33097),k=l.n(M),T=l(21079),O=l(46237),E=l(56259),K=l(29556),L=l(64671),D=l(83136),B=l.n(D),U=l(47094);const z=e=>t=>{const l=F()(...e)(e=>{let{forwardedRef:l,label:n,placeholder:r,...s}=e;return(0,d.jsx)(t,{...s,label:n,placeholder:r,labelRender:()=>s.tips?(0,d.jsxs)(i.Space,{children:[n,(0,d.jsx)(K.default,{content:s.tips,children:(0,d.jsx)("span",{className:B()(U.A["field-tips"],{[U.A["label-hidden"]]:s.labelHidden}),children:(0,d.jsx)(L.default,{type:"icon-xinxi-miaobian"})})})]}):n,ref:l})}),n=(0,I.forwardRef)((e,t)=>(0,d.jsx)(l,{...e,forwardedRef:t}));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{n[e]=t[e]}),n},$=e=>t=>{let{placeholder:l,label:n,...r}=t;return(0,d.jsx)(P.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,d.jsx)(e,{...r,label:n,placeholder:l||t})})},W=e=>t=>{let{placeholder:l,label:n,...r}=t;return(0,d.jsx)(P.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,d.jsx)(e,{...r,label:n,placeholder:l||t})})},q=e=>t=>{const l=(0,n.useGroup)(),r=k()(l,"name"),s=(0,T.get)(l,"index"),a=(0,O.oc)();return a&&Array.isArray(a)&&a.length>0?a.map(l=>{if("string"===typeof l)return(0,I.createElement)(e,{...t,key:l});const{name:n,label:a,options:o}=l,i=k()(o,"ignore",[]),d=k()(o,"disabled",[]),c=k()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==r)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==s);if(i.length>0&&i.find(u))return null;if(c.length>0&&!c.find(u))return null;let m=Object.assign({},t,{name:k()(o,"nameTransform",(e,t)=>`${e}${t}`)(t.name,n),label:k()(o,"labelTransform",(e,t)=>e&&`${e}${t}`)(t.label,a)});return d.length>0&&d.find(u)&&(m.disabled=!0,m.rule=""),(0,I.createElement)(e,{...m,key:n})}):(0,d.jsx)(e,{...t})},G=z([q,$])(n.Input),H=z([q,$])(n.InputNumber);G.Password=z([q,$])(n.Input.Password);const V=z([q,W])(n.DatePicker);V.MonthPicker=z([q,W])(n.DatePicker.MonthPicker),V.RangePicker=z([q,W])(n.DatePicker.RangePicker),V.WeekPicker=z([q,W])(n.DatePicker.WeekPicker);const Q=z([q,W])(n.TimePicker);Q.RangePicker=z([q,W])(n.TimePicker.RangePicker);const X=z([q])(e=>{let{placeholder:t,label:l,soFarText:r,...s}=e;const{formatMessage:a}=(0,P.useIntl)({moduleName:"FormInfo"});return(0,d.jsx)(n.DatePickerToday,{...s,label:l,placeholder:[a({id:"startDate"}),a({id:"endDate"})],soFarText:r||a({id:"soFarText"})})}),Y={Input:G,Checkbox:n.Checkbox,Password:G.Password,InputNumber:H,DatePicker:V,MonthPicker:V.MonthPicker,WeekPicker:V.WeekPicker,DateRangePicker:V.RangePicker,TimeRangePicker:Q.RangePicker,TimePicker:Q,DatePickerToday:X,RadioGroup:z([q])(n.RadioGroup),CheckboxGroup:z([q])(n.CheckboxGroup),Rate:z([q])(n.Rate),Switch:z([q])(j),Slider:z([q])(n.Slider),SalaryInput:z([q,$])(C.A),TypeDateRangePicker:z([q])(E.A),MoneyInput:z([q,$])(f.A),PhoneNumber:z([q,$])(_.default),Upload:z([q])(N.A),Avatar:z([q])(S.A),FunctionSelect:z([q,W])(h.A),IndustrySelect:z([q,W])(g.A),Cascader:z([q,W])(o.A),ColorPicker:z([q,W])(p),AddressSelect:z([q,W])(a.A),AddressInput:z([q,W])(a.N),TreeSelect:z([q,W])(n.TreeSelect),ReactInputNumber:z([q,$])(n.InputNumber),InputUpperCase:z([q,$])(R.A),Select:z([q,W])(n.Select),TextArea:z([q,$])(n.TextArea),AdvancedSelect:z([q,W])(r.Ay),SuperSelect:z([q,W])(s.Ay),SuperSelectTableList:z([q,W])(s.eM),SuperSelectUser:z([q,W])(s.Pg)},J={createWithFieldDecorator:z,withInputDefaultPlaceholder:$,withSelectDefaultPlaceholder:W,withLang:q}},18936:(e,t,l)=>{l.d(t,{A:()=>T});const n={"ant-tag":"style_ant-tag__7ct2q__RltKb",overlay:"style_overlay__CXfU5__RltKb",input:"style_input__+OpvV__RltKb","is-disabled":"style_is-disabled__uX4qq__RltKb","input-icon":"style_input-icon__E3NjK__RltKb",large:"style_large__vMozz__RltKb",small:"style_small__ubqQ+__RltKb","input-inner":"style_input-inner__sY-6k__RltKb","input-custom":"style_input-custom__Kxq3n__RltKb","display-content":"style_display-content__qA1jn__RltKb","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__RltKb","selected-tag":"style_selected-tag__BZsMM__RltKb","selected-tag-list":"style_selected-tag-list__As0ho__RltKb","selected-tag-inner":"style_selected-tag-inner__2NH59__RltKb","text-inner":"style_text-inner__Bq2Ji__RltKb",placeholder:"style_placeholder__odotY__RltKb","is-modal":"style_is-modal__4cj8L__RltKb","overlay-content":"style_overlay-content__kpGRn__RltKb"};var r=l(74981);const{context:s,useContext:a,Provider:o,Consumer:i}=(0,r.A)();var d=l(73884),c=l(10986),u=l.n(c),m=l(87558),p=l(33097),h=l.n(p),g=l(55199),f=l(83136),_=l.n(f),x=l(3382),b=l(64671),v=l(79686),y=l.n(v),A=l(41740),j=l.n(A),N=l(74065),S=l.n(N),C=l(17342),R=l(70579);const w=e=>{let{maxLength:t,single:l,setValue:n,value:r,message:s}=e;return e=>n(!l&&Number.isInteger(t)&&t>0&&e.length>t?(s(`\u6700\u591a\u9009\u62e9${t}\u4e2a`),r):e)},F=e=>{let{single:t,value:l,mapping:r,onClose:s}=e;return l&&Array.isArray(l)&&0!==l.length?t?(0,R.jsx)("span",{className:n["text-inner"],children:h()(r.get(l[0]),"label")||l[0]}):l.map(e=>{const t=r.get(e);return(0,R.jsx)(g.Tag,{className:n["display-tag"],closable:!0,onClose:l=>{l.preventDefault(),s(e,t)},children:(0,R.jsx)("span",{className:n["tag-inner"],children:h()(t,"label")||e})},e)}):null},I=(0,d.forwardRef)((e,t)=>{let{value:l,onChange:r,extra:s,showSelectedTag:a,renderSelectedContent:o,children:i,...c}=e;const[u,m]=(0,d.useState)(l),p=(0,d.useRef)(l);p.current=l;const[h,f]=(0,d.useState)(!1),{message:_}=g.App.useApp(),b=w({maxLength:c.maxLength,single:c.single,setValue:m,value:u,message:_.error});return(0,d.useEffect)(()=>{h&&m(p.current)},[h]),(0,d.useImperativeHandle)(t,()=>({modalOpen:()=>{f(!0)},close:()=>{f(!1)}})),(0,R.jsx)(x.default,{...c,open:h,onConfirm:()=>{r(u)},onClose:()=>{f(!1)},footer:(a||s)&&(0,R.jsxs)(g.Space,{direction:"vertical",className:n["overlay-footer"],children:[s&&(0,R.jsx)("div",{className:n["overlay-footer-extra"],children:s}),a&&o({value:u,setValue:b})]}),children:"function"===typeof i?i({value:u,setValue:b}):i})}),P=(0,d.forwardRef)((e,t)=>{let{value:l,setValue:r,children:s,renderSelectedContent:a,showSelectedTag:o,placement:i,inputContent:c,single:u,extra:m,overlayWidth:p,wrapClassName:h,...f}=e;const[_,x]=(0,d.useState)(!1);return(0,d.useImperativeHandle)(t,()=>({close:()=>{x(!1)}}),[]),(0,R.jsx)(g.Popover,{...f,open:_,onOpenChange:x,overlayClassName:n.overlay,arrow:!1,content:(0,R.jsxs)("div",{style:p?{"--overlay-width":p}:{},className:n["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,R.jsx)("div",{className:n["overlay-inner"],children:"function"===typeof s?s({value:l,setValue:e=>{(!u||l[0]!==e[0])&&r(e),u&&x(!1)}}):s}),(o||m)&&(0,R.jsxs)("div",{className:n["overlay-footer"],children:[m&&(0,R.jsx)("div",{className:n["overlay-footer-extra"],children:m}),o&&a({value:l,setValue:r})]})]}),trigger:"click",placement:i,children:(0,R.jsx)("div",{className:n["input-inner"],children:c})})}),M=(0,m.withFetch)(e=>{let{setFetchApi:t,wrapClassName:l,...r}=e;const[s,o]=(0,d.useState)(!1),i=(0,d.useRef)(null),c=(0,d.useRef)(null),u=a(),{valueState:m,mapping:p,props:h}=u,[f,x]=m,{single:v,placement:y,getPopupContainer:A,placeholder:j,isPopup:N,disabled:S,showSelectedTag:w,extra:M,inputContent:k}=h,T=(0,d.useRef)(r);T.current=r,(0,d.useEffect)(()=>{t(Object.assign({},T.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const O=F({single:v,value:f,mapping:p,onClose:e=>{x(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}}),E=e=>{let{value:t,setValue:l}=e;return(0,R.jsxs)(g.Space,{className:n["selected-tag"],align:"center",wrap:!0,children:[(0,R.jsxs)("div",{children:["\u5df2\u9009",!h.single&&Number.isInteger(h.maxLength)&&h.maxLength>0?`(${t.length}/${h.maxLength})`:"",":"]}),(0,R.jsx)(C.A,{className:n["selected-tag-list"],children:(0,R.jsx)("div",{className:n["selected-tag-inner"],children:F({value:t,mapping:p,onClose:e=>{l(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}})})})]})},K=k?k(u):(0,R.jsxs)(g.Space,{className:n["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,R.jsx)("div",{children:O||(0,R.jsx)("span",{className:n.placeholder,children:j})}),s&&f&&f.length>0&&!S?(0,R.jsx)(b.default,{className:_()(n.close,n["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,R.jsx)(b.default,{className:_()(n["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return N?(0,R.jsx)(P,{ref:c,overlayWidth:h.overlayWidth,value:f,setValue:x,single:v,inputContent:K,extra:"function"===typeof M?M({close:()=>c.current.close(),context:u}):M,renderSelectedContent:E,showSelectedTag:w,trigger:"click",placement:y,getPopupContainer:A,children:h.children}):(0,R.jsxs)("div",{className:n["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,R.jsx)(I,{size:h.modalSize,ref:i,single:h.single,maxLength:h.maxLength,disabledScroller:!0,wrapClassName:_()(n.overlay,n["is-modal"],l),title:h.placeholder,value:f,onChange:x,extra:"function"===typeof M?M({close:()=>i.current.close(),context:u}):M,showSelectedTag:w,renderSelectedContent:E,children:h.children}),K]})}),k=e=>{let{api:t,className:l,displayItems:r,wrapClassName:s,...a}=e;const[i,c]=(0,d.useState)(""),[m,p]=(0,d.useState)(new Map(r.map(e=>[e.value,e]))),[f,x]=(0,d.useState)({}),{message:b}=g.App.useApp(),v=e=>{const t=e.filter(e=>m.get(e.value)!==e);0!==t.length&&p(e=>{const l=j()(e);return t.forEach(e=>{l.set(e.value,e)}),l})},A=e=>((e,t,l)=>"all"!==l?e:(t(e),e.map(e=>e.value)))(a.single?y()(e)?[]:[e]:e||[],v,a.valueType),[N,C]=u()(Object.assign({},a,{onChange:e=>{const t=((e,t,l)=>"all"!==l?e:e.map(e=>t.get(e)))(e,m,a.valueType);a.onChange&&a.onChange(a.single?S()(t):t)}},"value"in a?{value:A(a.value)}:{defaultValue:A(a.defaultValue)})),F=w({maxLength:a.maxLength,single:a.single,setValue:C,value:N,message:b.error});return(0,R.jsx)(o,{value:{mapping:m,searchText:i,setSearchText:c,appendMapping:v,setItems:e=>{f.setData(e),v(h()(a.dataFormat(e),"list",[]))},fetchApi:f,valueState:[N,F],props:a},children:(0,R.jsx)("div",{className:_()(n["input"+(a.inputContent&&"function"===typeof a.inputContent?"-custom":"")],l),children:(0,R.jsx)(M,{...t,wrapClassName:s,loading:null,setFetchApi:x,onRequestSuccess:e=>{v(h()(a.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};k.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},k.useContext=a;const T=k},19343:(e,t,l)=>{l.r(t),l.d(t,{Download:()=>u,FileButton:()=>v,FileLink:()=>y,List:()=>b,OptionButtons:()=>x,PrintButton:()=>s.PrintButton,default:()=>a(),download:()=>s.download,downloadBlobFile:()=>s.downloadBlobFile,useDownload:()=>s.useDownload,useFileModal:()=>A});l(64674);var n=l(96418),r=l.n(n),s=l(68827),a=l.n(s),o=l(3382),i=l(83136),d=l.n(i),c=l(70579);s.Download.useDownload=s.useDownload,s.Download.downloadBlobFile=s.downloadBlobFile;const u=s.Download;var m=l(26304),p=l.n(m),h=l(74065),g=l.n(h),f=l(96252);const _=e=>{let{apis:t}=e;const l=(0,f.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=l({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:p()(e.filename.split(".")).join(".")},onSubmit:async l=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},l,{name:`${l.name}.${g()(e.filename.split("."))}`}),item:e})))&&n.close()}},children:(0,c.jsx)(f.default,{column:1,list:[(0,c.jsx)(f.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},x=e=>{var t;const l=_({apis:e.apis});return(0,c.jsx)(s.FileListOptionButtons,{...e,onEdit:t=>l(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,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}})},b=e=>{let{apis:t,...l}=e;const n=_({apis:t});return(0,c.jsx)(s.FileList,{...l,apis:t,onEdit:e=>n(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof l.renderModal?l.renderModal:e=>{let{onCancel:t,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}})},v=e=>(0,c.jsx)(s.FileButton,{...Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}}})}),y=e=>{const{className:t,...l}=Object.assign({},e);return(0,c.jsx)(v,{...l,className:d()(t,"btn-no-padding"),type:"link",children:l.children||l.filename||l.originName})},A=e=>{const{title:t,children:l,footer:n}=(0,s.useFileModalProps)(Object.assign({},e)),a=(0,o.useModal)();return r()(()=>a({title:t,children:l,footer:n}))}},29556:(e,t,l)=>{l.r(t),l.d(t,{TooltipFetch:()=>R,TooltipInfoLabel:()=>N,default:()=>A});var n=l(55199),r=l(83136),s=l.n(r);const a="style_tooltip__zHGMI__RltKb",o="style_large__lvmsm__RltKb",i="style_small__nUt0r__RltKb",d="style_popup-content__-rKQN__RltKb",c="style_title__1EQPq__RltKb",u="style_important-info__qTSZY__RltKb",m="style_error__yTTq3__RltKb",p="style_warning__CMJxz__RltKb",h="style_success__AvJVx__RltKb",g="style_sub-title__uD8CH__RltKb",f="style_content__lzgUz__RltKb",_="style_alone__q6q82__RltKb",x="style_fetch-content__tEOEV__RltKb",b="style_fetch-loading__tN-WB__RltKb",v="style_title-info-icon__iY8Q+__RltKb";var y=l(70579);const A=e=>{let{overlayClassName:t,title:l,size:r,subtitle:x,content:b,importantInfo:v,importantInfoType:A,moreInfo:j,...N}=e;return(0,y.jsx)(n.Tooltip,{...N,rootClassName:s()(t,a,{[i]:"small"===r,[o]:"large"===r}),title:(0,y.jsxs)(n.Space,{direction:"vertical",className:d,children:[l&&(0,y.jsx)("div",{className:c,children:l}),v&&(0,y.jsx)("div",{className:s()(u,{[h]:"success"===A,[p]:"warning"===A,[m]:"error"===A}),children:v}),x&&(0,y.jsx)("div",{className:g,children:x}),b&&(0,y.jsx)("div",{className:s()(f,{[_]:[l,x,v,j].every(e=>!e)}),children:b}),j&&(0,y.jsx)("div",{children:j})]})})};var j=l(64671);const N=e=>{let{title:t,tooltipTitle:l}=e;return(0,y.jsxs)("div",{children:[t,l?(0,y.jsx)(A,{...l,children:(0,y.jsx)("span",{children:(0,y.jsx)(j.default,{type:"icon-xinxi-miaobian",className:v,size:14})})}):null]})};var S=l(73884),C=l(87558);const R=e=>{let{api:t,children:l,fetchContent:r,showLoading:a=!0,loadingClassName:o,force:i,...d}=e;const[c,u]=(0,S.useState)(!1),m=(0,C.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:p,isLoading:h,data:g,send:f}=m;return(0,y.jsx)(A,{...Object.assign({},d,p?r(g,m):{}),open:c,onOpenChange:async e=>{!e||p&&!i||await f({type:"refresh"}),u(e)},children:(0,y.jsxs)("span",{className:x,children:[l,a&&h?(0,y.jsx)(n.Spin,{size:"small",className:s()(o,b)}):null]})})}},30096:(e,t,l)=>{l.d(t,{Ay:()=>c});var n=l(98434),r=l(43856);const{useOnChange:s}=n.hooks,a=e=>{const t=t=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=a(r.UserField),i=a(r.TableField),d=a(r.AdvancedSelectField);d.createdList=e=>{let{renderList:t,defaultProps:l}=e;return a((0,r.createListField)({renderList:t,defaultProps:l}))},d.User=o,d.Table=i;const c=d},30891:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(98434);const r=e=>{let{children:t}=e;const{openApi:l,formData:r}=(0,n.useFormContext)();return t({...l,formData:r})}},34643:(e,t,l)=>{l.d(t,{Ay:()=>u,Pg:()=>d,eM:()=>c});var n=l(98434),r=l(43856),s=l(60586);const{useOnChange:a}=n.hooks,o=e=>{const t=t=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(r.SuperSelectField),d=o(s.$9),c=o(r.SuperSelectTableListField),u=i},35774:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(98434),r=l(81014),s=l(70579);const a=e=>{let{onClick:t,...l}=e;const a=(0,n.useFormContext)();return(0,s.jsx)(r.default,{...l,onClick:e=>t(a,e)})}},36972:(e,t,l)=>{l.d(t,{A:()=>M});var n=l(73884),r=l(87558),s=l(98434),a=l(78491),o=l.n(a),i=l(55199);const d="style_salary__sUOtT__RltKb",c="style_salary-type__Sl1LC__RltKb",u="style_input-number__eoEZr__RltKb",m="style_full__NPqJm__RltKb",p="style_input-group__toLB7__RltKb",h="style_input-group-no-mb__C4nzh__RltKb";var g=l(47458),f=l(55431),_=l(48731),x=l(10986),b=l.n(x),v=l(21079),y=l(70579);const A=(0,r.withFetch)(e=>{let{data:t,...l}=e;return(0,y.jsx)(i.Select,{...l,options:t})}),{useDecorator:j,useUIDecorator:N}=s.hooks,S=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},C=e=>{let{children:t,isError:l}=e;return(0,y.jsx)("div",{style:{marginBottom:0},className:"react-form__field "+(l?"is-error":""),children:(0,y.jsx)("div",{className:"react-form__field-main",children:(0,y.jsx)("div",{className:"react-form__field-input",children:(0,n.cloneElement)(t,{className:"react-form__field-component"})})})})},R=e=>{let{getPopupContainer:t,onBlur:l,api:n,isRange:r=!0,placeholder:s,disabled:a,showMonth:f,remindUnit:x,req:j,...N}=e;const[R,w]=b()(N),{formatMessage:F}=(0,g.useIntl)({moduleName:"FormInfo"}),I=F({id:"defaultSelectPlaceholder"},{label:""}),P=F({id:"defaultInputPlaceholder"},{label:""}),M=[6].indexOf((0,v.get)(R,"type"))>-1,k=1===(0,v.get)(R,"type"),T=7===(0,v.get)(R,"type"),O=e=>{if(e)return M?e/1e4:e},E=o()(l||(()=>{}));return(0,y.jsx)("div",{ref:E,className:d,children:(0,y.jsxs)(i.Row,{wrap:!1,gutter:10,children:[(0,y.jsx)(i.Col,{children:(0,y.jsx)(A,{className:c,...n,value:(0,v.get)(R,"type"),onChange:e=>{w&&w(Object.assign({},k?{}:R,{type:e,min:"",max:""}))},placeholder:s||I,getPopupContainer:t,disabled:a})}),k?null:(0,y.jsxs)(i.Col,{flex:1,children:[r&&(0,y.jsxs)(i.Row,{className:x&&[5,6].includes(null===R||void 0===R?void 0:R.type)?p:h,wrap:!1,children:[(0,y.jsx)(i.Col,{flex:1,children:(0,y.jsx)(C,{isError:!(0,v.get)(R,"min")&&j,children:(0,y.jsx)(i.InputNumber,{disabled:a,placeholder:P,formatter:S,value:O((0,v.get)(R,"min")),style:{textAlign:"center"},onChange:e=>{w(Object.assign({},R,{min:M?1e4*e:e}))},description:x&&[5,6].includes(null===R||void 0===R?void 0:R.type)?(0,y.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,y.jsx)(_.default,{name:null===R||void 0===R?void 0:R.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",M?F({id:"thousand"}):T?"":F({id:"yuan"})]}):null})})}),(0,y.jsx)(i.Col,{children:(0,y.jsx)(i.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,y.jsx)(i.Col,{flex:1,children:(0,y.jsx)(C,{isError:!(0,v.get)(R,"max")&&j,children:(0,y.jsx)(i.InputNumber,{disabled:a,placeholder:P,formatter:S,value:O((0,v.get)(R,"max")),style:{textAlign:"center"},addonAfter:M?F({id:"thousand"}):T?"":F({id:"yuan"}),onChange:e=>{w(Object.assign({},R,{max:M?1e4*e:e}))}})})}),5===(0,v.get)(R,"type")&&f&&(0,y.jsx)(i.Col,{children:(0,y.jsxs)("span",{className:(0,v.get)(R,"max")&&(0,v.get)(R,"min")&&!(0,v.get)(R,"month")&&j?"error":"",children:[(0,y.jsx)("span",{className:u,children:"X"}),(0,y.jsx)(i.InputNumber,{min:12,disabled:a,value:(0,v.get)(R,"month"),onChange:e=>{w(Object.assign({},R,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!r&&!T&&(0,y.jsx)(i.InputNumber,{disabled:a,min:0,max:1e8,placeholder:P,className:m,formatter:S,value:O((0,v.get)(R,"max")),style:{textAlign:"center"},addonAfter:M?F({id:"thousand"}):T?"":F({id:"yuan"}),onChange:e=>{w(Object.assign({},R,{max:M?1e4*e:e}))}}),!r&&T&&(0,y.jsx)(i.Input,{disabled:a,placeholder:P,className:m,onChange:e=>{w(Object.assign({},R,{max:e.target.value}))},value:(0,v.get)(R,"max"),style:{textAlign:"center"}})]})]})})},w={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"}]},F={type:5,min:"",max:"",month:12},I=e=>{let{api:t=w,defaultValue:l=F,...n}=e;return(0,y.jsx)(g.IntlProvider,{moduleName:"FormInfo",importMessages:f.A,children:(0,y.jsx)(R,{...n,api:t,defaultValue:l})})},P=e=>{var t;return j({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(I)};P.Field=I;const M=P},41381:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r.a});l(55664);var n=l(22436),r=l.n(n),s={};for(const a in n)"default"!==a&&(s[a]=()=>n[a]);l.d(t,s)},45053:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(98434),r=l(55199),s=l(73884),a=l(83136),o=l.n(a),i=l(70720),d=l.n(i),c=l(47094),u=l(70579);const m=e=>{let{name:t,groupName:l,overlayClassName:a,errorRender:i=()=>null,groupIndex:m,children:p}=e;const h=(e=>{let{name:t,groupName:l,groupIndex:r}=e;const{emitter:a,formState:o}=(0,n.useFormContext)(),i=(0,s.useRef)({name:t,groupName:l,groupIndex:r});i.current={name:t,groupName:l,groupIndex:r};const d=(0,s.useRef)(o);d.current=o;const[c,u]=(0,s.useState)(null);return(0,s.useEffect)(()=>{const e=a.addListener("form-field-validate-complete",e=>{let{id:t,validate:l}=e;const r=d.current[t];if(!r)return;const s=i.current;r.name!==s.name||s.groupName&&(r.groupName!==s.groupName||r.groupIndex!==s.groupIndex)||u(2===l.status?Object.assign({},l,{label:r.label,errMsg:n.util.compileErrMsg(l.msg,r.label)}):null)});return()=>{e&&e.remove()}},[a]),c})({name:t,groupName:l,groupIndex:m}),[g,f]=(0,s.useState)(!1),_=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),x=(0,s.useRef)(null),b=(0,s.useRef)(null);d()(()=>{f(!1)}).current={contains:e=>x.current.contains(e)||b.current&&b.current.contains(e)};const[v,y]=(0,s.useState)(0);return(0,s.useLayoutEffect)(()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&y(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const l=new MutationObserver(e);return l.observe(x.current,{subtree:!0,childList:!0}),()=>{l.disconnect(),t.disconnect()}},[]),(0,u.jsx)(r.Popover,{open:!!_,rootClassName:o()(a,c.A["error-tip-overlay"]),content:_&&(0,u.jsx)("div",{ref:b,style:{width:v},className:o()(c.A["error-tip-overlay-content"]),children:_}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{f(!0)},children:p})})}},46237:(e,t,l)=>{l.d(t,{Ay:()=>i,oc:()=>o});var n=l(73884);const r=(0,n.createContext)([]),{Provider:s,Consumer:a}=r,o=()=>(0,n.useContext)(r),i=s},46732:(e,t,l)=>{l.d(t,{A:()=>c,K:()=>d});var n=l(75363),r=l(73884),s=l(98434),a=l(47094),o=l(70579);const i=(0,r.createContext)(""),{Provider:d}=i,c=e=>{let{name:t}=e;const l=(0,r.useContext)(i),d=(0,s.useGroup)();return l&&(0,o.jsx)(n.default,{className:a.A["helper-guide-field"],name:l+"-"+(d.name?d.name+"-":"")+t})}},47094:(e,t,l)=>{l.d(t,{A:()=>n});const n={"form-outer":"style_form-outer__IWUs0__RltKb","form-drawer":"style_form-drawer__uYDXS__RltKb","table-list":"style_table-list__6lp-A__RltKb","list-item":"style_list-item__hVzQa__RltKb","table-list-inner":"style_table-list-inner__uc8DK__RltKb","table-list-field":"style_table-list-field__JSJfB__RltKb","table-list-header":"style_table-list-header__KXvKa__RltKb","is-req":"style_is-req__LfXQf__RltKb","table-list-extra":"style_table-list-extra__faYTK__RltKb","list-btn":"style_list-btn__WKYkm__RltKb","form-info":"style_form-info__B8bAP__RltKb","list-part":"style_list-part__Ld0GA__RltKb","is-important":"style_is-important__vaBk1__RltKb","list-item-part":"style_list-item-part__MzKP7__RltKb","money-input":"style_money-input__J86Pb__RltKb","money-description":"style_money-description__Gz3p7__RltKb","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__RltKb","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__RltKb","helper-guide-field":"style_helper-guide-field__Wke3w__RltKb","error-tip-overlay":"style_error-tip-overlay__aNCGc__RltKb","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__RltKb","column-not-layout":"style_column-not-layout__+SXC+__RltKb","mult-field-item":"style_mult-field-item__eS0nJ__RltKb","react-form__field-label":"style_react-form__field-label__2U91E__RltKb","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__RltKb","form-step-section":"style_form-step-section__RvkHy__RltKb"}},47338:(e,t,l)=>{l.r(t),l.d(t,{ConfirmButton:()=>n.ConfirmButton,ConfirmLink:()=>n.ConfirmLink,ConfirmText:()=>n.ConfirmText,default:()=>r,withConfirm:()=>n.withConfirm});l(9056);var n=l(48686);const r=n.ConfirmButton},48221:(e,t,l)=>{l.d(t,{Ay:()=>i,WJ:()=>c,Xy:()=>d});var n=l(25963),r=l(73025),s=l(47094),a=l(76995),o=l(70579);const i=e=>(0,o.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:s.A["form-drawer"]}))}),d=()=>{const e=(0,n.useDrawer)();return t=>e((0,a.A)(Object.assign({},t,{className:s.A["form-drawer"]})))},c=e=>{const t=d();return(0,o.jsx)(r.A,{...e,modalFunc:t})}},48731:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r.a});var n=l(60922),r=l.n(n),s=l(22717),a=l.n(s);(0,n.preset)({base:a()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,t)=>{e[t[0]]=t[1]},{})})},55431:(e,t,l)=>{l.d(t,{A:()=>n});const n=e=>({"en-US":()=>l.e(1649).then(l.bind(l,21649)),"zh-CN":()=>l.e(711).then(l.bind(l,80711))}[e]())},56259:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(89319),r=l(98434);const{useOnChange:s}=r.hooks,a=e=>s(Object.assign({},{},e))(n.A);a.Field=n.A;const o=a},64261:(e,t,l)=>{l.d(t,{A:()=>f});var n=l(98434),r=l(57469),s=l.n(r),a=l(34677),o=l.n(a),i=l(33097),d=l.n(i),c=(l(17448),l(2842)),u=l(46732),m=l(13050),p=l(70579);const h=n.RULES.REQ,g=n.RULES.LEN,f=async(e,t)=>{const{locale:l}=Object.assign({},t);n.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e}),n.interceptors.output.use("photo-string",e=>{var t,l;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(l=t.split("?"))||void 0===l?void 0:l[0])||e.id:e}),n.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>({id:e.split("?")[0]})):e),n.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>null===e||void 0===e?void 0:e.id):e),n.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),n.interceptors.output.use("to-array",e=>[e]),n.interceptors.input.use("array-single",e=>e?[e]:[]),n.interceptors.output.use("array-single",e=>e?e[0]:null),n.interceptors.input.use("boolean-number",e=>1===e||"1"===e),n.interceptors.output.use("boolean-number",e=>e?1:0),n.interceptors.input.use("un-boolean",e=>!e),n.interceptors.output.use("un-boolean",e=>!e),n.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),n.interceptors.input.use("date-string",e=>e?s()(e):null),n.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),n.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(s()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(s()(e[1])),t}),n.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}),n.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),n.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:r}=await(0,m.loadModule)("components-iconfont:CountyFlag@load"),a=await r(),i=new Map(a.map(e=>{let{ab:t,country_code:l}=e;return[t,l]})),f=new Map(a.map(e=>{let{ab:t,country_code:l}=e;return[l,t]}));n.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?`+${i.get(e.code)} ${e.value.replace(/\s+/g,"")}`:""),n.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:f.get(Number(t[1])),value:t[2]}:{code:f.get(86),value:e}});const _=(e,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${(t=Object.assign({},t)).end}`,"en-US":`%s must be equal to ${t.end}`},LENGTH_MORE:{"zh-CN":`%s\u5fc5\u987b\u5927\u4e8e${t.start}`,"en-US":`%s must be greater than ${t.start}`},LENGTH_LESS:{"zh-CN":`%s\u5fc5\u987b\u5c0f\u4e8e${t.end}`,"en-US":`%s must be less than ${t.end}`}},r=d()(n,`${e}.${l}`);return r||d()(n,`${e}.zh-CN`)};(0,n.preset)(o()({},{type:"inner",rules:{REQ:function(){return Object.assign({},h(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];const[n,r,s]=t;let a="";return s===r&&n.length!==Number(s)&&(a="LENGTH_EQUAL"),n.length<r&&(a="LENGTH_MORE"),s&&n.length>s&&(a="LENGTH_LESS"),Object.assign({},g(...t),{errMsg:_(a,{start:r,end:s})})},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:c.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,l)=>l===t&&e.length!==Number(l)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:l})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:l})}:l&&e.length>l?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:l})}:{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,p.jsx)(u.A,{...e})}},"function"===typeof e?e({interceptors:n.interceptors,RULES:n.RULES}):e))}},75363:(e,t,l)=>{l.r(t),l.d(t,{default:()=>g});const n=e=>({"en-US":()=>l.e(9431).then(l.bind(l,9431)),"zh-CN":()=>l.e(1065).then(l.bind(l,81065))}[e]());var r=l(47458),s=l(64671),a=l(55199),o=l(83136),i=l.n(o);const d="style_helper-guide__K5xFw__RltKb",c="style_inner__bMKeU__RltKb",u="style_content__xTfWZ__RltKb",m="style_link__93j7O__RltKb";var p=l(48731),h=l(70579);const g=e=>{let{name:t,className:l}=e;return(0,h.jsx)(r.IntlProvider,{importMessages:n,moduleName:"HelperGuide",children:(0,h.jsx)(p.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(d,l),children:(0,h.jsxs)(a.Space,{className:c,children:[(0,h.jsx)(s.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:u,children:e.content}),e.url&&(0,h.jsxs)(a.Typography.Link,{className:m,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(s.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},76995:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55431),r=l(98434),s=l(47458),a=l(83799),o=l(83136),i=l.n(o),d=l(47094),c=l(70579);const u="FormInfo",m=e=>{let{className:t,withDecorator:l,footerButtons:o,formProps:m,cancelText:p,saveText:h,autoClose:g=!0,...f}=e;return{...f,footerButtons:o||[{children:(0,c.jsx)(s.IntlProvider,{importMessages:n.A,moduleName:u,children:p||(0,c.jsx)(s.FormattedMessage,{id:"Cancel",moduleName:u})}),ButtonComponent:r.CancelButton},{type:"primary",children:(0,c.jsx)(s.IntlProvider,{importMessages:n.A,moduleName:u,children:h||(0,c.jsx)(s.FormattedMessage,{id:"Save",moduleName:u})}),ButtonComponent:r.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const r=t=>{const{onSubmit:l,...r}=Object.assign({},"function"===typeof m?m(t):m);return(0,c.jsx)(a.lV,{...r,onSubmit:async function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];!1!==(l&&await l(e,Object.assign({},t),...r))&&g&&t.close()},children:(0,c.jsx)(s.IntlProvider,{importMessages:n.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof l?l(r,t):r(t)},className:i()(t,d.A["form-outer"])}}},78756:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(43856),r=l(98434);const{useOnChange:s}=r.hooks,a=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);a.Field=n.IndustrySelectField,a.Enum=n.IndustrySelectField.Enum;const o=a},81026:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(43856),r=l(98434);const{useOnChange:s}=r.hooks,a=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);a.Field=n.FunctionSelectField,a.Enum=n.FunctionSelectField.Enum;const o=a},83230:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(98434),r=l(43856);const{useOnChange:s}=n.hooks,a=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.CascaderField);a.Field=r.CascaderField,a.createTreeUtils=r.createTreeUtils;const o=a},83799:(e,t,l)=>{l.d(t,{NI:()=>K,TQ:()=>u.A,JL:()=>k,eu:()=>x.A,vx:()=>m.A,lr:()=>G,s3:()=>H,lV:()=>r.A,d4:()=>p.A,ZN:()=>h.A,pd:()=>D,YI:()=>$,h2:()=>L,F0:()=>g.A,go:()=>f.default,tt:()=>n.Rate,lu:()=>b.A,l6:()=>z,Ap:()=>n.Slider,wD:()=>T,eM:()=>O,Pg:()=>E,dO:()=>n.Switch,EY:()=>F,fs:()=>B,AG:()=>q,f7:()=>W,w5:()=>y.A,_O:()=>_.A,nk:()=>V});var n=l(98434),r=l(85696),s=l(47458),a=l(73884),o=l(30891),i=l(47094),d=l(30096),c=l(34643),u=l(1904),m=l(83230),p=l(81026),h=l(78756),g=l(92328),f=l(2842),_=l(89099),x=l(96339),b=l(36972),v=l(15209),y=l(56259),A=l(55199),j=l(10986),N=l.n(j),S=l(70579);const{useDecorator:C}=n.hooks,R=e=>{let{children:t,...l}=e;const[n]=N()(l);return(0,S.jsxs)(A.Typography.Text,{...l,children:[(0,S.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,S.jsx)(A.Input,{value:n})}),t||n]})},w=e=>C(e)(R);w.Field=R;const F=w;var I=l(45053);const P=e=>{const t=(0,a.forwardRef)((t,l)=>{let{placeholder:n,label:r,...a}=t;return(0,S.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,S.jsx)(e,{...a,ref:l,label:r,placeholder:n||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(l=>{t[l]=e[l]}),t},M=e=>{const t=(0,a.forwardRef)((t,l)=>{let{placeholder:n,label:r,...a}=t;return(0,S.jsx)(s.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,S.jsx)(e,{...a,ref:l,label:r,placeholder:n||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(l=>{t[l]=e[l]}),t},k=M(d.Ay),T=M(c.Ay),O=M(c.eM),E=M(c.Pg),K=M(u.N),L=P(v.A),D=P(n.Input);D.Password=P(n.Input.Password);const B=(U=n.TextArea,e=>{let{placeholder:t,label:l,className:n,...r}=e;return(0,S.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:e=>(0,S.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,S.jsx)(U,{...r,label:l,placeholder:t||e})})})});var U;const z=M(n.Select),$=P(n.InputNumber),W=M(n.TreeSelect),q=M(n.TimePicker);q.RangePicker=M(n.TimePicker.RangePicker);const G=M(n.DatePicker);G.MonthPicker=M(n.DatePicker.MonthPicker),G.RangePicker=M(n.DatePicker.RangePicker),G.WeekPicker=M(n.DatePicker.WeekPicker);const H=e=>{let{placeholder:t,label:l,soFarText:r,...a}=e;const{formatMessage:o}=(0,s.useIntl)({moduleName:"FormInfo"});return(0,S.jsx)(n.DatePickerToday,{...a,label:l,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:r||o({id:"soFarText"})})},V=Object.assign({},n,{Input:D,InputUpperCase:L,TextArea:B,Select:z,InputNumber:$,TreeSelect:W,TimePicker:q,DatePicker:G,DatePickerToday:H,Form:r.A,FormItem:o.A,AdvancedSelect:k,SuperSelect:T,SuperSelectTableList:O,SuperSelectUser:E,AddressSelect:u.A,AddressInput:K,MoneyInput:g.A,PhoneNumber:f.default,Cascader:m.A,FunctionSelect:p.A,IndustrySelect:h.A,TypeDateRangePicker:y.A,Upload:_.A,Avatar:x.A,SalaryInput:b.A,Text:F,Rate:n.Rate,Switch:n.Switch,Slider:n.Slider,ErrorTip:I.A})},85696:(e,t,l)=>{l.d(t,{A:()=>b});var n=l(73884),r=l(63743),s=l(33097),a=l.n(s),o=l(64261),i=l(47458),d=l(55431),c=l(46237),u=l(41381),m=l(46732),p=l(98434),h=l(83136),g=l.n(h),f=l(47094),_=l(70579);const x=e=>{let{children:t}=e;const[l,s]=(0,n.useState)(!1),i=(0,r.usePreset)(),d=a()(i,"formInfo",{}),c=a()(i,"locale");return(0,n.useEffect)(()=>{Promise.resolve((0,o.A)(d,{locale:c})).then(()=>{s(!0)})},[d,c]),l?t:null},b=(0,n.forwardRef)((e,t)=>{let{className:l,helperGuideName:n,children:r,lang:s,...a}=e;return(0,_.jsx)(i.IntlProvider,{importMessages:d.A,moduleName:"FormInfo",children:(0,_.jsx)(c.Ay,{value:s,children:(0,_.jsx)(m.K,{value:n,children:(0,_.jsx)(x,{children:(0,_.jsx)(p.FormAntd,{...a,ref:t,className:g()(l,f.A["form-outer"]),children:(0,_.jsx)(u.default,{children:r})})})})})})})},85846:(e,t,l)=>{l.d(t,{A:()=>x});var n=l(73884),r=l(68532),s=l(55199),a=l(64671),o=l(41381),i=l(47338),d=l(2196),c=l(83136),u=l.n(c),m=l(55431),p=l(47458),h=l(47094),g=l(70579);const f=(0,p.createWithIntl)({moduleName:"FormInfo",importMessages:m.A})(e=>{let{addText:t,className:l,important:o,outer:c=(0,g.jsx)(_,{}),renderChildren:m=e=>e,deleteButtonProps:f,title:x,...b}=e;const{formatMessage:v}=(0,p.useIntl)({moduleName:"FormInfo"});return(0,g.jsx)(r.SubList,{...b,listRender:e=>{let{list:t,title:l,id:n,allowRemove:r,onRemove:c,...m}=e;return(0,g.jsxs)("div",{className:u()(h.A["list-item"],{[h.A["is-important"]]:o}),children:[(0,g.jsx)(d.A,{...m,title:l,list:t,className:h.A["list-item-part"],gap:16,extra:(0,g.jsx)(p.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>r?(0,g.jsx)(i.default,{danger:!0,className:"btn-no-padding",message:v({id:"delConfirm"},{name:l}),type:"link",onClick:()=>{c(n)},...Object.assign({},f),children:null!==f&&void 0!==f&&f.children?null===f||void 0===f?void 0:f.children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.default,{type:"icon-shanchu"}),e]})}):null})}),(0,g.jsx)(s.Divider,{})]},n)},children:(e,r)=>{let{allowAdd:s,onAdd:a}=r;return(0,n.cloneElement)(c,{title:x,addText:t,className:u()(l,h.A["list-part"]),allowAdd:s,add:()=>a({isUnshift:!1})},m(e))}})}),_=e=>{let{add:t,addText:l,className:n,allowAdd:r,...i}=e;return(0,g.jsx)(o.default.Part,{...i,className:n,extra:r&&(0,g.jsx)(p.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,g.jsxs)(s.Typography.Text,{className:h.A["list-btn"],onClick:t,children:[(0,g.jsx)(a.default,{type:"icon-tianjia"}),l||e]})})})},x=f},89099:(e,t,l)=>{l.d(t,{A:()=>A});var n=l(55199),r=l(83136),s=l.n(r),a=l(10986),o=l.n(a);const i="style_upload__t422Q__RltKb",d="style_upload-list__Q9HDc__RltKb",c="style_tips__3Gpnu__RltKb";var u=l(19343),m=l(98434),p=l(47458),h=l(1488),g=l.n(h),f=l(17508),_=l(55431),x=l(70579);const{useOnChange:b}=m.hooks,v=(0,p.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,p.useIntl)({moduleName:"FormInfo"}),{className:l,fileSize:r,maxLength:a,multiple:m,size:h,accept:_,children:b,renderTips:v,showUploadList:y,onSave:A,ossUpload:j,onUpload:N,getPermission:S,concurrentCount:C,...R}=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),[w,F]=o()(R),I=w||[],{fileList:P,onFileSelected:M}=(0,f.lN)({multiple:m,onSave:A,onUpload:j||N,fileSize:r,maxLength:a,value:I,onChange:F,concurrentCount:C}),k=[...P,...I],T=v(t({id:"uploadTips"},{extensionNames:_.map(e=>e.replace(/^\./,"")).join(","),maxLength:a,fileSize:r}),{fileSize:r,maxLength:a,accept:_});return(0,x.jsxs)(n.Space,{direction:"vertical",children:[(0,x.jsxs)(n.Flex,{align:"start",gap:8,vertical:!0,children:[(0,x.jsx)(f.Zi,{...g()(R,["value","onChange"]),size:h,multiple:m,accept:_,className:s()(i,l),onChange:M,children:b}),T&&(0,x.jsx)("div",{className:c,children:T})]}),y&&k.length>0&&(0,x.jsx)(u.List,{className:d,dataSource:k,infoItemRenders:[],getPermission:S||(e=>"delete"===e),apis:{onDelete:e=>{const t=I.slice(0),l=t.indexOf(e);l>-1&&t.splice(l,1),F(t)}}})]})}),y=e=>{let{interceptor:t="file-format",...l}=e;return b({interceptor:t,...l})(v)};y.Field=v;const A=y},92328:(e,t,l)=>{l.d(t,{A:()=>v});var n=l(10986),r=l.n(n),s=l(98434),a=l(55199),o=l(69484);const i="style_money-input__Pyur7__RltKb",d="style_money-description__9pFk4__RltKb";var c=l(83136),u=l.n(c),m=l(34677),p=l.n(m),h=l(73884),g=l(70579);const{isNotEmpty:f}=s.util||s.formUtils,{useOnChange:_}=s.hooks,x=e=>{let{chineseEmpty:t,className:l,showError:n,errorDesc:s,transformMoneyToChinese:c,onBlur:m,moneyFormat:_,...x}=e;const[b,v]=(0,h.useState)(""),[y,A]=r()(x),j=p()({controls:!1,precision:2,addonAfter:"\u5143"},x,{max:f(x.max)?x.max>o.e?o.e:x.max:o.e});return(0,g.jsxs)("div",{className:u()(l,"money-input",i),children:[(0,g.jsx)(a.InputNumber,{...j,status:b,formatter:_?e=>`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=_?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return f(t)?(Number(t)>Number(j.max)||f(j.min)&&Number(t)<Number(j.min))&&v("error"):v(""),f(t)?Number(t):null},onChange:e=>{A(e)},onBlur:e=>{m&&m(e,v)}}),(0,g.jsx)("div",{className:u()(d),children:"error"===b&&n?s:f(y)?(0,o.A)(c?c(y):y):t})]})},b=e=>_(Object.assign({placeholder:`\u8bf7\u8f93\u5165${e.label||""}`},e))(x);b.Field=x,b.toChineseCharacter=o.A;const v=b},94005:(e,t,l)=>{l.d(t,{$X:()=>_,Ay:()=>f,Wp:()=>x});var n=l(3382),r=l(73884),s=l(98434),a=l(73025),o=l(47458),i=l(47094),d=l(55431),c=l(55199),u=l(76995),m=l(70579);const p="FormInfo",h=e=>{let{items:t,children:l}=e;const[n,s]=(0,r.useState)(0);return l({currentIndex:n,setCurrentIndex:s,stepCacheRef:(0,r.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},g=e=>{let{footerButtons:t,cancelText:l,completeText:n,nextText:r,items:a,withDecorator:g,...f}=e;return(0,u.A)(Object.assign({},f,{footerButtons:e=>{let{currentIndex:t,isLastStep:i}=e;const{footerButtons:c}=Object.assign({},a[t]);return c||[{children:(0,m.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:p,children:l||(0,m.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:p})}),ButtonComponent:s.CancelButton},{type:"primary",children:(0,m.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:p,children:i?n||(0,m.jsx)(o.FormattedMessage,{id:"Complete",moduleName:p}):r||(0,m.jsx)(o.FormattedMessage,{id:"Next",moduleName:p})}),ButtonComponent:s.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const l=t=>(0,m.jsx)(h,{items:a,children:l=>{var n;let{currentIndex:r,isLastStep:s,setCurrentIndex:o,currentProps:d,stepCacheRef:u}=l;const{formProps:p,title:h,...g}=d,{onSubmit:_,...x}="function"===typeof p?p(t):p,b=Object.assign({},x.data,null===(n=u.current[r])||void 0===n?void 0:n.data);return e(Object.assign({},t,g,{currentIndex:r,isLastStep:s,setCurrentIndex:o,stepCacheRef:u,stepSection:(0,m.jsx)(c.Steps,{className:i.A["form-step-section"],current:r,items:a.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},x,{key:r,data:b,onSubmit:async function(e){u.current[r]={data:e};for(var l=arguments.length,n=new Array(l>1?l-1:0),a=1;a<l;a++)n[a-1]=arguments[a];const i=_&&await _(e,Object.assign({},t,{currentIndex:r,isLastStep:s,setCurrentIndex:o,currentProps:d,stepCacheRef:u}),...n);return f.autoClose&&!s&&!1!==i&&o(e=>e+1),!!s&&i}})}))}});return"function"===typeof g?g(l,t):l(t)},formProps:e=>{let{formProps:t,...l}=e;return Object.assign({},l,t)},children:e=>{let{children:t,stepSection:l,...n}=e;return(0,m.jsxs)(c.Flex,{vertical:!0,gap:24,children:[(0,m.jsx)(c.Flex,{justify:"center",children:l}),"function"===typeof t?t(n):t]})}}))},f=e=>(0,m.jsx)(n.default,{...g(Object.assign({},e,{className:i.A["form-modal"]}))}),_=()=>{const e=(0,n.useModal)();return t=>e(g(Object.assign({},t,{className:i.A["form-modal"]})))},x=e=>{const t=_();if(!e.api){const{modalProps:l,...n}=e;return(0,m.jsx)(c.Button,{...n,onClick:()=>{t(l)}})}return(0,m.jsx)(a.A,{...e,modalFunc:t})}},96252:(e,t,l)=>{l.r(t),l.d(t,{AddressInput:()=>x.NI,AddressSelect:()=>x.TQ,AdvancedSelect:()=>x.JL,Avatar:()=>x.eu,Cascader:()=>x.vx,DatePicker:()=>x.lr,DatePickerToday:()=>x.s3,ErrorTip:()=>h.A,Form:()=>m.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>p.A,FormModal:()=>d.Ay,FormModalButton:()=>d.W6,FormStepModal:()=>c.Ay,FormStepModalButton:()=>c.Wp,FunctionSelect:()=>x.d4,IndustrySelect:()=>x.ZN,Input:()=>x.pd,InputNumber:()=>x.YI,InputUpperCase:()=>x.h2,List:()=>a.A,MoneyInput:()=>x.F0,MultiField:()=>g.A,PhoneNumber:()=>x.go,Rate:()=>x.tt,SalaryInput:()=>x.lu,Select:()=>x.l6,SelectInnerInput:()=>b.A,Slider:()=>x.Ap,SuperSelect:()=>x.wD,SuperSelectTableList:()=>x.eM,SuperSelectUser:()=>x.Pg,Switch:()=>x.dO,TableList:()=>o.A,Text:()=>x.EY,TextArea:()=>x.fs,TimePicker:()=>x.AG,TreeSelect:()=>x.f7,TypeDateRangePicker:()=>x.w5,Upload:()=>x._O,default:()=>v,fieldDecorator:()=>s.E,fields:()=>s.A,formModule:()=>x.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>d.Vl,useFormStepModal:()=>c.$X});var n=l(64261),r=l(2196),s=l(15445),a=l(85846),o=l(97056),i=l(35774),d=l(5995),c=l(94005),u=l(48221),m=l(85696),p=l(30891),h=l(45053),g=l(97949),f=l(98434),_={};for(const y in f)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField","SelectInnerInput"].indexOf(y)<0&&(_[y]=()=>f[y]);l.d(t,_);var x=l(83799),b=l(18936);(0,n.A)(),r.A.fields=s.A,r.A.List=a.A,r.A.TableList=o.A,r.A.FormApiButton=i.A,r.A.FormModal=d.Ay,r.A.useFormModal=d.Vl,r.A.FormModalButton=d.W6,r.A.FormStepModal=c.Ay,r.A.useFormStepModal=c.$X,r.A.FormStepModalButton=c.Wp,r.A.FormDrawer=u.Ay,r.A.useFormDrawer=u.Xy,r.A.FormDrawerButton=u.WJ,r.A.Form=m.A,r.A.FormItem=p.A,r.A.ErrorTip=h.A,r.A.SubmitButton=f.SubmitButton,r.A.CancelButton=f.CancelButton,r.A.fieldDecorator=s.E,r.A.MultiField=g.A,r.A.useFormContext=f.useFormContext,r.A.hooks=f.hooks,r.A.widget=f.widget,r.A.utils=f.utils,r.A.formUtils=f.formUtils;const v=r.A},96339:(e,t,l)=>{l.d(t,{A:()=>D});var n=l(73884),r=l(17508),s=l(40438),a=l(63743),o=l(3382),i=l(64671),d=l(55199),c=l(53202),u=l.n(c),m=l(33097),p=l.n(m),h=l(83136),g=l.n(h),f=l(51941),_=l(98434),x=l(34677),b=l.n(x);const v="style_upload-btn__-6XtP__RltKb",y="style_square__UPkfA__RltKb",A="style_is-loading__wx6Pd__RltKb",j="style_upload-btn-tips__YtxWz__RltKb",N="style_drop-tips__N-v59__RltKb",S="style_preview-area__aV3SN__RltKb";var C=l(18411),R=l(47458),w=l(55431),F=l(70579);const{useOnChange:I}=_.hooks,P=s.default.Avatar,M="FormInfo",k=(0,r.Ay)(e=>{let{className:t,icon:l,loading:n,value:r,gender:s,width:a,height:o,children:c,shape:u,defaultAvatar:m,displayAvatar:h,apis:f}=e;const _=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(P,{...Object.assign({},"function"===typeof h?h(r):{id:p()(r,"id")}),gender:s,width:64*a/o,height:64,shape:u,defaultAvatar:m,apis:f}),(0,F.jsx)("div",{className:j,children:l||(0,F.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,F.jsx)("div",{className:g()(t,v,{[A]:n,[y]:"square"===u||!(a&&a===o)}),style:{width:64*a/o},children:n?(0,F.jsx)(d.Spin,{children:_}):_})}),T=e=>{let t=e.split(","),l=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],r=atob(l),s=r.length,a=new Uint8Array(s);for(;s--;)a[s]=r.charCodeAt(s);return new Blob([a],{type:n})},O=(0,n.forwardRef)((e,t)=>{let{image:l,width:s,height:a,borderRadius:o,preview:c,fileSize:m,accept:p,renderTips:h,getApi:g,shape:_,border:x=1,...b}=e;const v=(0,R.useIntl)({moduleName:M}),[y,A]=(0,n.useState)(0),j=(0,n.useRef)(null),[C,w]=(0,n.useState)(l),[I,P]=(0,n.useState)(1),[k,O]=(0,n.useState)(0),[E,K]=(0,n.useState)(""),L=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>{A(2*j.current.clientWidth/3)},[]),g({getImage:()=>{const e=L.current.getImage(),t=document.createElement("canvas"),l=t.getContext("2d");return t.width=s,t.height=a,l.drawImage(e,0,0,t.width,t.height),new window.File([T(t.toDataURL())],C.name,{type:C.type})}});const D=()=>{K(L.current.getImage().toDataURL())},B=(0,f.useDebouncedCallback)(D,500);return(0,F.jsx)("div",{ref:j,children:(0,F.jsxs)(d.Row,{wrap:!1,align:"middle",children:[(0,F.jsx)(d.Col,{span:c?16:24,children:y&&(0,F.jsxs)(d.Space,{direction:"vertical",children:[(0,F.jsx)(u(),{...b,ref:L,image:C,scale:I,rotate:k,width:y-2*x,height:a*y/s-2*x*a/s,border:x,color:[0,0,0,.6],borderRadius:o*y/s,onImageReady:D,onImageChange:B}),(0,F.jsx)("div",{className:N,children:h(`${v.formatMessage({id:"PictureFormat"})}${p.map(e=>e.replace(/^\./,"")).join(" ")} ${v.formatMessage({id:"ImageSize"})}${v.formatMessage({id:"NotExceeding"},{size:m})}`,{accept:p,fileSize:m})}),(0,F.jsxs)(d.Row,{gutter:14,align:"middle",children:[(0,F.jsx)(d.Col,{children:(0,F.jsx)(d.Tooltip,{title:v.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{O(e=>(e-90)%360)}})})}),(0,F.jsx)(d.Col,{children:(0,F.jsx)(d.Tooltip,{title:v.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-chongman",onClick:()=>{P(1)}})})}),(0,F.jsx)(d.Col,{flex:1,children:(0,F.jsx)(d.Slider,{tooltip:{placement:"bottom",formatter:()=>v.formatMessage({id:"Size"})},value:I,step:.05,min:.2,max:3,onChange:P})}),(0,F.jsx)(d.Col,{children:(0,F.jsx)(r.FI,{accept:p,onChange:e=>{e[0].size>1024*m*1024?d.message.error(v.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:m})):(O(0),P(1),w(e[0]))},children:v.formatMessage({id:"ReUpload"})})})]})]})}),c&&(0,F.jsx)(d.Col,{span:8,children:(0,F.jsx)("div",{className:S,children:(0,F.jsxs)(d.Space,{direction:"vertical",children:[(0,F.jsx)(d.Avatar,{src:E,shape:_,style:{width:y/2-36,height:(y/2-36)*a/s}}),(0,F.jsx)("div",{style:{textAlign:"center"},children:v.formatMessage({id:"Preview"})})]})})})]})})}),E=()=>{const e=(0,o.useModal)();return t=>{const{image:l,width:n,height:r,borderRadius:s,getApi:a,preview:o,fileSize:i,accept:d,renderTips:c,border:u,dropModalSize:m,...p}=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);return e({...p,size:m,children:(0,F.jsx)(O,{preview:o,fileSize:i,accept:d,getApi:a,renderTips:c,width:n,height:r,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:s,image:l,border:u,scale:1,rotate:0})})}},K=(0,R.createWithIntl)({importMessages:w.A,moduleName:"FormInfo"})(e=>{var t;let{value:l,gender:r,fileSize:s=2,accept:o=[".jpg",".png",".jpeg"],openEditor:i=!0,apis:c,renderTips:u=e=>e,onChange:m,shape:p="circle",width:h=200,height:g=200,title:f=(0,F.jsx)(R.IntlProvider,{importMessages:w.A,moduleName:"FormInfo",children:(0,F.jsx)(R.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:_=1,icon:x,dropModalSize:v="small",defaultAvatar:y=C.A,displayAvatar:A}=e;const[j,N]=(0,n.useState)(!1),{apis:S}=(0,a.usePreset)(),I=b()({},S,c),P=I.ossUpload||I.upload||(null===(t=I.file)||void 0===t?void 0:t.upload),T=(0,n.useRef)(null),O=E(),K=(0,R.useIntl)({moduleName:M});return(0,F.jsx)(k,{value:l,gender:r,accept:o,width:h,height:g,shape:p,icon:x,loading:j,defaultAvatar:y,displayAvatar:A,apis:I,onChange:e=>{if(e[0].size>1024*s*1024)return void d.message.error(K.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:s}));const t=e=>(N(!0),P({file:e}).then(e=>{let{data:t}=e;0===t.code?m(t.data):d.message.error(K.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{N(!1)}));i?O({image:e[0],width:h,height:g,title:f,shape:p,border:_,dropModalSize:v,getApi:e=>T.current=e,fileSize:s,accept:o,renderTips:u,onConfirm:()=>{t(T.current.getImage())}}):t(e[0])}})}),L=e=>I(e)(K);L.Field=K,L.useDropModal=E;const D=L},97056:(e,t,l)=>{l.d(t,{A:()=>p});var n=l(55199),r=l(64671),s=l(83136),a=l.n(s),o=l(47094),i=l(68532),d=l(41381),c=l(47458),u=l(55431),m=l(70579);const p=(0,c.createWithIntl)({moduleName:"FormInfo",importMessages:u.A})(e=>{let{className:t,...l}=e;const{formatMessage:s}=(0,c.useIntl)({moduleName:"FormInfo"});return(0,m.jsx)("div",{className:a()(t,o.A["table-list"]),children:(0,m.jsx)(i.TableList,{...l,className:a()(t,o.A["table-list"]),headerRender:(e,t)=>{let{width:l}=t;return(0,m.jsxs)(n.Row,{wrap:!1,className:o.A["table-list-header"],style:{"--col-width":l},children:[e,(0,m.jsx)(n.Col,{className:o.A["table-list-extra"]})]})},headerItemRender:(e,t)=>{let{id:l,isReq:r}=t;return(0,m.jsx)(n.Col,{className:a()({[o.A["is-req"]]:r}),children:e},l)},listRender:(e,t)=>{let{id:l,width:a,onRemove:i,allowRemove:d}=t;return(0,m.jsxs)(n.Row,{wrap:!1,style:{"--col-width":a},children:[e,(0,m.jsx)(n.Col,{className:o.A["table-list-extra"],children:(0,m.jsx)(n.Button,{type:"link",onClick:i,danger:!0,disabled:!d,children:(0,m.jsxs)("span",{children:[(0,m.jsx)(r.default,{type:"shanchu"}),s({id:"delText"})]})})})]},l)},itemRender:e=>(0,m.jsx)(n.Col,{className:o.A["table-list-field"],flex:1,children:e}),children:(e,t)=>{let{title:l,allowAdd:i,onAdd:c}=t;return(0,m.jsx)(d.default.Part,{title:l,className:a()(o.A["table-list-inner"]),extra:i&&(0,m.jsxs)(n.Typography.Link,{className:o.A["list-btn"],onClick:()=>c({isUnshift:!1}),children:[(0,m.jsx)(r.default,{type:"tianjia"}),s({id:"addText"})]}),children:e})}})})})},97949:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55199),r=l(47458),s=l(64671),a=l(47094),o=l(83136),i=l.n(o),d=l(55431),c=l(68532),u=l(70579);const m=(0,r.createWithIntl)({moduleName:"FormInfo",importMessages:d.A})(e=>{const{formatMessage:t}=(0,r.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(c.MultiField,{...e,itemRender:(e,t)=>{let{id:l,index:r,allowRemove:o,onRemove:d}=t;return(0,u.jsxs)("div",{className:i()(a.A["mult-field-item"],"mult-field-item",{[a.A["first-item"]]:0===r}),children:[e,(0,u.jsxs)("div",{className:i()("form-info-mult-option"),children:[(0,u.jsx)("div",{className:i()(a.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,u.jsx)(n.Button,{icon:(0,u.jsx)(s.default,{type:"shanchu"}),onClick:d,disabled:!o})]})]},l)},children:(l,r)=>{let{allowAdd:o,onAdd:d}=r;return(0,u.jsxs)("div",{className:i()(a.A["mult-field"],"mult-field"),children:[l,o&&(0,u.jsx)("div",{className:i()("form-info-mult-add-btn"),children:(0,u.jsxs)(n.Button,{className:a.A["mult-field-add-btn"],type:"dashed",onClick:()=>d({isUnshift:!1}),children:[(0,u.jsx)(s.default,{type:"tianjia"}),t({id:"addSomeThing"},{label:e.label})]})})]})}})})}}]);
2
- //# sourceMappingURL=254.238ab8af.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3856],{3382:(e,t,l)=>{l.r(t),l.d(t,{ModalButton:()=>I,TabsModal:()=>R,TabsModalButton:()=>O,default:()=>N,useConfirmModal:()=>A,useModal:()=>C,useTabsModal:()=>w});var n=l(73884),a=l(55199),s=l(83136),r=l.n(s);const o={modal:"style_modal__Pm3cF__RltKb",large:"style_large__iaqVE__RltKb","modal-body-inner":"style_modal-body-inner__4PhpA__RltKb","modal-title":"style_modal-title__dswaw__RltKb","modal-outer":"style_modal-outer__r3SkX__RltKb","modal-body":"style_modal-body__jQJSI__RltKb","right-options-modal":"style_right-options-modal__FajDP__RltKb","right-options-row":"style_right-options-row__-mPb9__RltKb","right-options-col":"style_right-options-col__3ilee__RltKb","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__RltKb",content:"style_content__k6MIF__RltKb","modal-footer":"style_modal-footer__-prbN__RltKb","modal-close":"style_modal-close__Oa5Kl__RltKb","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__RltKb","is-danger":"style_is-danger__H5110__RltKb",title:"style_title__orTym__RltKb","has-title":"style_has-title__qy0Wp__RltKb"},i=e=>({"en-US":()=>l.e(4628).then(l.bind(l,74628)),"zh-CN":()=>l.e(7478).then(l.bind(l,87478))}[e]());var c=l(47458),d=l(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var p=l(81014),m=l(17342),h=l(70579);const _="Modal",g=e=>{let{options:t,rightSpan:l=6,children:n}=e;return t?(0,h.jsxs)(a.Row,{wrap:!1,className:o["right-options-row"],children:[(0,h.jsx)(a.Col,{span:24-l,className:o["right-options-col"],children:n}),(0,h.jsx)(a.Col,{span:l,className:o["right-options-col"],children:t})]}):n},f=(e,t)=>e-48-(t?58:0)+"px",x=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":f(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":f(300,t)}}:{width:"1000px",style:{"--min-modal-height":f(500,t)}},y=e=>{let{footer:t,footerButtons:l,onConfirm:s,onCancel:r,onClose:o,targetProps:d}=e;return(0,h.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(a.Col,{flex:1,children:t}),Array.isArray(l)&&0===l.length?null:(0,h.jsx)(a.Col,{children:(0,h.jsx)(a.Space,{children:(l||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:r},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:_})}),onClick:s}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,t)=>{let{ButtonComponent:l,onClick:a,autoClose:s=!0,display:r,...i}=e;const c=l||p.default;return(0,n.createElement)(c,{...i,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];const n=await Promise.resolve(a&&a(...t,d));return s&&!1!==n&&o&&o(),n}})})})})]})},v=e=>{let{title:t,footer:l,disabledScroller:s,footerButtons:i,onClose:c,closable:u,onConfirm:p,onCancel:_,children:g,targetProps:f}=e;const x=(0,n.useRef)(null);return(0,h.jsxs)("div",{className:r()(o["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(a.Button,{"data-testid":"components-core-modal-close-btn",className:r()(o["modal-close"],"modal-close"),type:"text",icon:(0,h.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,h.jsx)("div",{className:o["modal-title"],children:t}),(0,h.jsx)(m.A,{className:r()(o["modal-body"],{[o["is-disabled-scroller"]]:s},"modal-body"),ref:x,children:(0,h.jsx)("div",{className:r()(o["modal-body-inner"],"modal-body-inner"),children:g})}),null!==l||i?(0,h.jsx)("div",{className:r()(o["modal-footer"],"modal-footer"),children:(0,h.jsx)(y,{footer:l,footerButtons:i,onConfirm:p,onCancel:_,onClose:c,targetProps:f})}):null]})},b=e=>{let{withDecorator:t,footerButtons:l,title:n,closable:a,onClose:s,onConfirm:r,onCancel:o,footer:i,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:m,children:_}=e;const f=e=>(e=Object.assign({},{title:n},e),(0,h.jsx)(v,{title:u(e.title,{...e,childrenRef:m,close:s}),closable:a,onClose:s,onConfirm:r,onCancel:o,footerButtons:u(l,{...e,close:s}),disabledScroller:p,footer:u(i,{...e,childrenRef:m,close:s}),targetProps:Object.assign({},e,{childrenRef:m,close:s}),children:(0,h.jsx)(g,{rightSpan:d,options:u(c,{...e,childrenRef:m,close:s}),children:u(_,{...e,childrenRef:m,close:s})})}));return"function"===typeof t?t(f,{childrenRef:m,close:s}):f({})},j=e=>{let{children:t,rightOptions:l,rightSpan:n,footer:a,footerButtons:s,className:d,size:u,title:p,onClose:m,onConfirm:_,onCancel:g,closable:f,disabledScroller:y,withDecorator:v,childrenRef:j,...C}=e;return{...C,icon:null,centered:!0,title:null,maskClosable:!!C.hasOwnProperty("maskClosable")&&C.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:m,className:r()(d,o.modal,o[u],{[o["right-options-modal"]]:l}),...x(u,!(null===a&&!s)),children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:"Modal",children:b({withDecorator:v,title:p,closable:f,onClose:m,onConfirm:_,onCancel:g,footer:a,footerButtons:s,rightOptions:l,rightSpan:n,disabledScroller:y,children:t,childrenRef:j})})}},C=()=>{const{modal:e}=a.App.useApp(),t=(0,n.useRef)(null);return l=>{const n={},{children:a,...s}=j({onClose:()=>n.close(),childrenRef:t,...l}),{destroy:r}=e.info({...s,content:a});return n.close=r,n}},A=()=>{const{modal:e}=a.App.useApp();return t=>{const l={},{type:n,icon:s,title:i,danger:c,wrapClassName:u,message:p,iconSetting:m={},confirmType:_="info",...g}={onClose:()=>l.close(),maskClosable:!1,...t},f=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},m);if(e[n]){const{destroy:t}=e[n]({...g,icon:null,wrapClassName:r()(o["confirm-modal-wrap"],u,{[o["is-danger"]]:c}),title:(0,h.jsx)(a.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:i&&(0,h.jsxs)(a.Space,{size:0,align:"start",className:o.title,children:[c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===n?_:n}`),type:s||f["confirm"===n?_:n]}):null,i]})}),content:(0,h.jsxs)(a.Space,{size:0,align:"start",className:r()(o.content,{[o["has-title"]]:i}),children:[!i&&c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===n?_:n}`),type:s||f["confirm"===n?_:n]}):null,p]})});l.close=t}return l}},N=e=>{let{size:t="default",...l}=e;const s=(0,n.useRef)(null);return(0,h.jsx)(a.Modal,{...j(Object.assign({},l,{size:t,childrenRef:s}))})},S=e=>{let{items:t,className:l,activeKey:n,withDecorator:s,defaultActiveKey:o,onChange:i,...c}=e;return{...c,className:r()(l,"tabs-modal"),withDecorator:e=>{const l=l=>(0,h.jsx)(a.Tabs,{items:t.map(t=>{let{withDecorator:n,...a}=t;return Object.assign({},a,{children:"function"===typeof n?n(t=>e(Object.assign({},l,t,{children:a.children}))):e(Object.assign({},l,{children:a.children}))})}),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:o,onChange:i});return"function"===typeof s?s(l):l()},children:e=>{let{children:t,...l}=e;return"function"===typeof t?t(l):t}}},R=e=>(0,h.jsx)(N,{...S(e)}),w=()=>{const e=C();return t=>e(S(t))};var K=l(73025);const O=e=>{const t=w();return e.api?(0,h.jsx)(K.A,{...e,modalFunc:t}):(0,h.jsx)(a.Button,{...e,onClick:()=>{t(e.modalProps)}})},I=e=>{const t=C();if(!e.api){const{modalProps:l,...n}=e;return(0,h.jsx)(a.Button,{...n,onClick:()=>{t(l)}})}return(0,h.jsx)(K.A,{...e,modalFunc:t})}},12392:(e,t,l)=>{l.d(t,{Bm:()=>V,Eo:()=>E,NR:()=>A,Ay:()=>W});var n=l(55199),a=l(83136),s=l.n(a),r=l(30509),o=l(25438),i=l(78784),c=l(33097),d=l.n(c),u=l(34677),p=l.n(u);const m="create-list_scroll-loader__zoaS7__RltKb",h="create-list_is-popup__t3d-G__RltKb",_="create-list_is-not-full__FXtX1__RltKb",g="create-list_search-input__tV3vf__RltKb",f="create-list_left__EXr3i__RltKb",x="create-list_list-header__3xeJa__RltKb",y="create-list_is-modal__BMfya__RltKb";var v=l(73161),b=l(47458),j=l(70579);const C=r.A.useContext,A=e=>{let{renderList:t,defaultProps:l}=e;const a=e=>{let{value:l,setValue:a}=e;const{fetchApi:r,searchText:c,setSearchText:u,props:A,mapping:N}=C(),S=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},A.pagination),R=d()(r.requestParams,[S.paramsType,S.current],1),w=d()(r.requestParams,[S.paramsType,S.pageSizeName])||S.pageSize,{formatMessage:K}=(0,b.useIntl)({moduleName:"Common"}),O=A.dataFormat(r.data),{right:I,leftBottom:L,leftSpan:P=24}=A,k=1===l.length&&"all"===l[0];return(0,j.jsxs)(n.Row,{wrap:!1,className:I?s()("is-not-full",_):"",children:[(0,j.jsxs)(n.Col,{span:P,className:s()(f,"advance-select-left"),children:[A.getSearchProps?(0,j.jsx)(v.A,{isPopup:A.isPopup,className:s()(g,o.A["search-input"],{[o.A["is-popup"]]:A.isPopup}),placeholder:A.searchPlaceholder||K({id:"search"}),value:c,onSearch:e=>{r.reload(A.getSearchProps(e)),u(e)}}):null,A.single||!A.showSelectedCount&&!A.allowSelectAll?null:(0,j.jsxs)(n.Flex,{className:s()(x,{[y]:!A.isPopup}),justify:"space-between",children:[A.showSelectedCount?(0,j.jsxs)(n.Space,{children:[(0,j.jsx)(n.Typography,{children:"\u5df2\u9009:"}),(0,j.jsx)(n.Typography.Link,{children:k?A.allLabel||(0,j.jsx)(b.FormattedMessage,{id:"all",moduleName:"Common"}):`${l.length}${A.countUnit||K({id:"items"})}`})]}):(0,j.jsx)("div",{}),A.allowSelectAll?(0,j.jsx)("div",{children:(0,j.jsx)(n.Checkbox,{checked:k,onChange:e=>{a(e.target.checked?[A.allValue||"all"]:[])},children:(0,j.jsx)(b.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:A.allLabel||(0,j.jsx)(b.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,j.jsx)("div",{})]}),(0,j.jsx)(i.default,{completeTips:"",isLoading:!r.isComplete,className:s()(m,{[h]:A.isPopup}),noMore:!O.total||R*w>=O.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(p()({[S.paramsType]:{[S.pageSizeName]:w,[S.current]:R+1}},A.getSearchProps&&A.getSearchProps(c)),A.mergeList)},children:(()=>{const e={props:A,value:l,setValue:a,list:O.list,data:r.data,fetchApi:r,itemIsSelected:e=>l.indexOf(e.value)>-1,isSelectedAll:k,onSelect:e=>{if(A.single)return void a([e.value]);const t=l.slice(0),n=t.indexOf(e.value);n>-1?t.splice(n,1):t.push(e.value),a(t)}},n=t(e);return"function"===typeof A.dropdownRender?A.dropdownRender(Object.assign({},e,{children:n})):n})()}),L&&L({fetchApi:r,value:l,mapping:N})]}),I&&I({value:l,mapping:N,fetchApi:r})]})},c=e=>{let{extra:t,...l}=e;return(0,j.jsx)(r.A,{...l,extra:t,children:e=>{let{value:t,setValue:l}=e;return(0,j.jsx)(a,{value:t,setValue:l})}})};return c.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},l),c},N="list_list__TGynD__RltKb",S="list_list-item__WSswf__RltKb",R="list_is-selected__6Wkgt__RltKb",w="list_item-label__bYzhe__RltKb",K="list_item-des__2nsEn__RltKb",O="list_is-disabled__qxCvO__RltKb",I="list_is-selected-all__Mp-hG__RltKb";var L=l(40438),P=l(64671);const k="user_list-inner__V508e__RltKb",F="user_list-info__y2nWo__RltKb",M="user_selected-icon__9OQJL__RltKb",T="user_item-des__o+7UR__RltKb",D="user_is-selected-all__2q0VZ__RltKb",E=A({renderList:e=>{let{list:t,onSelect:l,itemIsSelected:a,isSelectedAll:r}=e;return(0,j.jsx)(n.List,{size:"small",className:s()(N,{[I]:r,[D]:r}),dataSource:t,renderItem:e=>{const t=a(e);return(0,j.jsx)(n.List.Item,{className:s()(S,{[R]:t}),onClick:()=>l(e),children:(0,j.jsxs)(n.Row,{wrap:!1,align:"middle",className:k,children:[(0,j.jsx)(n.Col,{children:(0,j.jsx)(L.default.Avatar,{...Object.assign({},e.avatar),size:40,gender:"M"})}),(0,j.jsx)(n.Col,{className:F,flex:1,children:(0,j.jsxs)(n.Space,{direction:"vertical",children:[(0,j.jsx)("span",{className:w,children:e.label}),e.description&&(0,j.jsx)("span",{className:T,children:e.description})]})}),(0,j.jsx)(n.Col,{children:r||t?(0,j.jsx)(P.default,{className:M,type:"icon-gouxuan"}):null})]})})}})}}),z={"is-selected-all":"table_is-selected-all__IwXUY__RltKb"},V=A({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:l,onSelect:a,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,j.jsx)(n.Table,{className:s()(z.list,N,{[I]:c,[z["is-selected-all"]]:c}),size:"small",dataSource:l,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:l.map(e=>{let{value:t}=e;return t}),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>a(e)})})}}),W=A({renderList:e=>{let{props:t,list:l,itemIsSelected:a,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,j.jsx)(n.List,{className:s()(N,i,{[I]:r}),size:"small",dataSource:l,renderItem:e=>{var l;const i=a(e);return(0,j.jsxs)(n.List.Item,{className:s()(S,{[R]:t.single&&i,[O]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,j.jsxs)(n.Row,{wrap:!1,children:[t.single?null:(0,j.jsx)(n.Col,{children:(0,j.jsx)(n.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,j.jsx)(n.Col,{children:(0,j.jsxs)(n.Space,{className:null!==(l=null===e||void 0===e?void 0:e.className)&&void 0!==l?l:"",children:[(0,j.jsx)("span",{className:w,children:e.label}),e.description&&(0,j.jsx)("span",{className:K,children:e.description})]})})]}),i&&c]})}})}})},17342:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(34581),a=l.n(n);l(46733);const s=a()},17508:(e,t,l)=>{l.d(t,{AG:()=>u,Ay:()=>i,FI:()=>d,Zi:()=>c,lN:()=>n.useFileUpload});var n=l(68827),a=l(55199),s=l(83136),r=l.n(s),o=l(70579);const i=e=>t=>{let{className:l,multiple:a,accept:s,onChange:r,children:i,...c}=t;return(0,o.jsx)(n.FileInput,{className:l,multiple:a,accept:s,onChange:r,children:t=>{let{children:l,...n}=t;return(0,o.jsxs)(e,{...Object.assign({},c,n),children:[i,l]})}})},c=e=>{let{children:t,...l}=e;return(0,o.jsx)(n.FileInput,{...l,buttonText:t})},d=e=>{let{className:t,multiple:l,accept:s,onChange:r,children:i,...c}=e;return(0,o.jsx)(n.FileInput,{className:t,multiple:l,accept:s,onChange:r,children:e=>{let{children:t,...l}=e;return(0,o.jsxs)(a.Typography.Link,{...Object.assign({},c,l),children:[i,t]})}})},u=e=>{let{className:t,multiple:l,accept:s,onChange:i,children:c,...d}=e;return(0,o.jsx)(n.FileInput,{className:r()(t,"ant-btn"),multiple:l,accept:s,onChange:i,children:e=>{let{children:t,...l}=e;return(0,o.jsxs)(a.Typography.Text,{...Object.assign({},d,l),children:[c,t]})}})}},18411:(e,t,l)=>{l.d(t,{A:()=>n});l(73884);const n=l.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},20492:(e,t,l)=>{l.d(t,{A:()=>n});const n=e=>({"en-US":()=>l.e(3086).then(l.bind(l,13086)),"zh-CN":()=>l.e(4308).then(l.bind(l,84308))}[e]())},21485:(e,t,l)=>{l.d(t,{A:()=>c});var n=l(73884),a=l(71298),s=l.n(a),r=l(96418),o=l.n(r),i=l(70579);const c=(0,n.forwardRef)((e,t)=>{let{children:l,onScroll:a,options:r,onReady:c,...d}=e;const u=(0,n.useRef)(null),p=(0,n.useRef)(null),m=(0,n.useRef)(r),h=o()(c),_=o()(a);return(0,n.useImperativeHandle)(t,()=>p.current),(0,n.useEffect)(()=>{const e=new(s())(u.current,m.current);return p.current=e.getScrollElement(),p.current.addEventListener("scroll",_),h(p.current),()=>{p.current.removeEventListener("scroll",_)}},[_,h,l]),(0,i.jsx)("div",{...d,ref:u,children:l})})},25438:(e,t,l)=>{l.d(t,{A:()=>n});const n={"search-input":"common_search-input__P6qLg__RltKb","is-popup":"common_is-popup__fJq+g__RltKb",list:"common_list__TKFzS__RltKb","list-item":"common_list-item__ASse7__RltKb","is-selected":"common_is-selected__-PU4Y__RltKb","item-label":"common_item-label__u+qz1__RltKb","item-des":"common_item-des__no2z0__RltKb"}},27047:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(83694),a=l(33097),s=l.n(a);const r=()=>{const e=(0,n.useGlobalContext)();return s()(e,"preset",{apis:{}})}},30509:(e,t,l)=>{l.d(t,{A:()=>W});const n={"ant-tag":"style_ant-tag__nNp8-__RltKb",overlay:"style_overlay__La5mO__RltKb",input:"style_input__SpJTE__RltKb","is-disabled":"style_is-disabled__joxdl__RltKb","input-icon":"style_input-icon__vVd8R__RltKb",large:"style_large__En6mL__RltKb",small:"style_small__DY0AQ__RltKb","input-inner":"style_input-inner__PWy27__RltKb","input-custom":"style_input-custom__ktsWD__RltKb","display-content":"style_display-content__hIKo+__RltKb","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__RltKb","selected-tag":"style_selected-tag__zXZZO__RltKb","selected-tag-list":"style_selected-tag-list__xUIms__RltKb","selected-tag-inner":"style_selected-tag-inner__Z5gPL__RltKb","text-inner":"style_text-inner__H24hY__RltKb",placeholder:"style_placeholder__x0ccE__RltKb","is-modal":"style_is-modal__JU+uq__RltKb","overlay-content":"style_overlay-content__WKqp+__RltKb"};var a=l(74981);const{context:s,useContext:r,Provider:o,Consumer:i}=(0,a.A)();var c=l(73884),d=l(10986),u=l.n(d),p=l(87558),m=l(33097),h=l.n(m),_=l(55199),g=l(83136),f=l.n(g),x=l(3382),y=l(64671),v=l(79686),b=l.n(v),j=l(41740),C=l.n(j),A=l(74065),N=l.n(A),S=l(21485),R=l(96418),w=l.n(R),K=l(77964),O=l(91176),I=l(47458),L=l(20492),P=l(27047),k=l(70579);const F=e=>{let{maxLength:t,single:l,setValue:n,value:a,message:s}=e;return e=>n(!l&&Number.isInteger(t)&&t>0&&e.length>t?(s(),a):e)},M=e=>{let{single:t,value:l,mapping:a,allValue:s,allLabel:r,onClose:o}=e;return l&&Array.isArray(l)&&0!==l.length?t?(0,k.jsx)("span",{className:n["text-inner"],children:h()(a.get(l[0]),"label")||l[0]}):1===l.length&&l[0]===(s||"all")?(0,k.jsx)("span",{className:n["text-inner"],children:r||(0,k.jsx)(I.FormattedMessage,{id:"all",moduleName:"Common"})}):l.map(e=>{const t=a.get(e);return(0,k.jsx)(_.Tag,{className:n["display-tag"],closable:!0,onClose:l=>{l.preventDefault(),o(e,t)},children:(0,k.jsx)("span",{className:n["tag-inner"],children:h()(t,"label")||e})},e)}):null},T=(0,c.forwardRef)((e,t)=>{let{value:l,onChange:a,extra:s,showSelectedTag:r,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(l),m=(0,c.useRef)(l),{formatMessage:h}=(0,I.useIntl)({moduleName:"Common"});m.current=l;const[g,f]=(0,c.useState)(!1),y=e=>{var t;f(e),null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},{message:v}=_.App.useApp(),b=F({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:()=>v.error(h({id:"maxSelectedCount"},{count:d.maxLength}))});return(0,c.useEffect)(()=>{g&&p(m.current)},[g]),(0,c.useImperativeHandle)(t,()=>({modalOpen:()=>{y(!0)},close:()=>{y(!1)}})),(0,k.jsx)(x.default,{...d,open:g,onConfirm:()=>{a(u)},onClose:()=>{y(!1)},footer:(0,k.jsxs)(_.Space,{direction:"vertical",className:n["overlay-footer"],children:[s&&(0,k.jsx)("div",{className:n["overlay-footer-extra"],children:s}),r&&o({value:u,setValue:b})]}),children:"function"===typeof i?i({value:u,setValue:b}):i})}),D=(0,c.forwardRef)((e,t)=>{let{value:l,setValue:a,children:s,renderSelectedContent:r,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,overlayClassName:g,disabled:x,...y}=e;const[v,b]=(0,c.useState)(!1),j=w()(e=>{var t;b(e),null===(t=y.onOpenChange)||void 0===t||t.call(y,e)});return(0,c.useImperativeHandle)(t,()=>({close:()=>{j(!1)}}),[j]),x?(0,k.jsx)("div",{className:n["input-inner"],children:d}):(0,k.jsx)(_.Popover,{...y,open:v,onOpenChange:j,transitionName:"ant-slide-up",overlayClassName:f()(n.overlay,g),arrow:!1,content:(0,k.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:f()(n["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,k.jsx)("div",{className:n["overlay-inner"],children:"function"===typeof s?s({value:l,setValue:e=>{(!u||l[0]!==e[0])&&a(e),u&&j(!1)}}):s}),(o||p)&&(0,k.jsxs)("div",{className:n["overlay-footer"],children:[p&&(0,k.jsx)("div",{className:n["overlay-footer-extra"],children:p}),o&&r({value:l,setValue:a})]})]}),trigger:"click",placement:i,children:(0,k.jsx)("div",{className:n["input-inner"],children:d})})}),E=(0,p.withFetch)(e=>{let{setFetchApi:t,wrapClassName:l,getContentRef:a,...s}=e;const[o,i]=(0,c.useState)(!1),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=r(),{valueState:m,mapping:h,props:g,inputWidth:x}=p,[v,b]=m,{formatMessage:j}=(0,I.useIntl)({moduleName:"Common"}),{single:C,placement:A,getPopupContainer:N,placeholder:R,isPopup:K,disabled:L,showSelectedTag:P,extra:F,inputContent:E,allowClear:z,overlayClassName:V}=g,W=(0,c.useRef)(s);W.current=s;const U=w()(a);(0,c.useEffect)(()=>{U(K?u:d)},[K,U]),(0,c.useEffect)(()=>{t(Object.assign({},W.current,{data:s.data,isComplete:s.isComplete}))},[s.data,t,s.isComplete]);const B=M({single:C,value:v,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{b(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}}),q=e=>{let{value:t,setValue:l}=e;return(0,k.jsxs)(_.Space,{className:n["selected-tag"],align:"center",wrap:!1,children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(I.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,k.jsx)(S.A,{className:n["selected-tag-list"],children:(0,k.jsx)("div",{className:n["selected-tag-inner"],children:M({value:t,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{l(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}})})})]})},$=E?E(p):(0,k.jsxs)(_.Space,{className:n["display-content"],onMouseOver:()=>{i(!0)},onMouseOut:()=>{i(!1)},children:[(0,k.jsx)("div",{children:B||(0,k.jsx)("span",{className:n.placeholder,children:R||j({id:"pleaseSelect"})})}),o&&v&&v.length>0&&!L&&z?(0,k.jsx)(y.default,{className:f()(n.close,n["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),b([])}}):(0,k.jsx)(y.default,{className:f()(n["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return K?(0,k.jsx)(D,{ref:u,overlayWidth:(0,O.v)(Math.max(x,(0,O.j)(g.overlayWidth))),value:v,setValue:b,single:C,disabled:L,inputContent:$,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof F?F({close:()=>u.current.close(),context:p}):F,renderSelectedContent:q,showSelectedTag:P,trigger:"click",placement:A,getPopupContainer:N,children:g.children}):(0,k.jsxs)("div",{className:n["input-inner"],onClick:()=>{L||d.current.modalOpen()},children:[(0,k.jsx)(T,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:f()(n.overlay,n["is-modal"],l),title:g.placeholder||j({id:"pleaseSelect"}),value:v,onChange:b,extra:"function"===typeof F?F({close:()=>d.current.close(),context:p}):F,showSelectedTag:P,renderSelectedContent:q,children:g.children}),$]})}),z=e=>{let{api:t,className:l,displayItems:a,wrapClassName:s,...r}=e;const{locale:i}=(0,P.A)(),[d,p]=(0,c.useState)(""),[m,g]=(0,c.useState)(new Map(a.map(e=>[e.value,e]))),{formatMessage:x}=(0,I.useIntl)({moduleName:"Common"}),[y,v]=(0,c.useState)(0),j=(0,K.A)(e=>{v(e.clientWidth)}),[A,S]=(0,c.useState)({}),{message:R}=_.App.useApp(),w=e=>{const t=e.filter(e=>m.get(e.value)!==e);0!==t.length&&g(e=>{const l=C()(e);return t.forEach(e=>{l.set(e.value,e)}),l})},O=e=>((e,t)=>Array.isArray(e)&&e.every(e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label"))?(t(e),e.map(e=>e.value)):e)(r.single?b()(e)?[]:[e]:e||[],w,r.valueType),[L,M]=u()(Object.assign({},r,{onChange:e=>{const t=((e,t,l)=>"all"!==l?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,m,r.valueType);r.onChange&&r.onChange(r.single?N()(t):t)}},"value"in r?{value:O(r.value)}:{defaultValue:O(r.defaultValue)})),T=F({maxLength:r.maxLength,single:r.single,setValue:M,value:L,message:()=>R.error(x({id:"maxSelectedCount"},{count:r.maxLength}))}),D=(0,c.useRef)(null);return(0,k.jsx)(o,{value:{inputWidth:y,mapping:m,searchText:d,setSearchText:p,appendMapping:w,setItems:e=>{A.setData(e),w(h()(r.dataFormat(e,{locale:i}),"list",[]))},getContentApi:()=>D.current,fetchApi:A,valueState:[L,T],props:r},children:(0,k.jsx)("div",{ref:j,className:f()(n["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],{"select-input-disabled":!!r.disabled},l),children:(0,k.jsx)(E,{...t,wrapClassName:s,loading:null,setFetchApi:S,getContentRef:e=>{e.current&&(D.current=e.current)},onRequestSuccess:e=>{w(h()(r.dataFormat(e,{locale:i}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};z.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const V=(0,I.createWithIntl)({importMessages:L.A,moduleName:"Common"})(z);V.useContext=r;const W=V},40438:(e,t,l)=>{l.r(t),l.d(t,{default:()=>C});var n=l(87558),a=l.n(n),s=l(97211),r=l(64671),o=l(83136),i=l.n(o),c=l(55199),d=l(73884);const u=e=>{let{params:t}=e;const{data:l}=t;return new Promise((e,t)=>{const n=new window.Image;n.src=l,n.addEventListener("load",()=>{e(l)}),n.addEventListener("error",e=>{t(e)})})},p="style_img-outer__4QLY5__RltKb",m="style_img__PSExq__RltKb",h="style_loading__WCOwA__RltKb",_="style_error__+ECgZ__RltKb";var g=l(18411),f=l(63743),x=l(70579);const y=e=>{let{data:t,className:l,alt:n,innerLoading:s,loading:o=(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0}),error:d=(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:p,children:h,onClick:_,staticUrl:g}=e;const{staticUrl:y}=(0,f.usePreset)(),v=g||y||"";return(0,x.jsx)(a(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:v+t},error:p||d,loading:s||o,render:e=>{let{data:t}=e;return"function"===typeof h?h({alt:n,className:i()(l,m),src:t}):(0,x.jsx)("img",{alt:n,className:i()(l,m),src:t,onClick:_})}})},v=(0,s.A)(y),b=e=>{let{loading:t,error:l,src:n,id:a,alt:s,className:r,children:o,apis:i,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:h}),p=l&&(0,d.cloneElement)(l,{className:_});return n?(0,x.jsx)(y,{alt:s,className:r,data:n,loading:u,error:p,onClick:c,children:o}):a?(0,x.jsx)(v,{alt:s,className:r,id:a,loading:u,innerLoading:u,error:p,innerError:p,apis:i,onClick:c,children:o}):p},j=e=>{let{id:t,src:l,alt:n,onClick:a,loading:s=(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:d,apis:u,...m}=e;return(0,x.jsx)("div",{...m,"data-testid":"components-core-image",className:i()(d,p),children:b({loading:s,error:o,src:l,id:t,alt:n,className:d,apis:u,onClick:a})})};j.Avatar=e=>{let{id:t,src:l,alt:n,gender:a,loading:s=(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:d,gap:u,icon:m,children:h,shape:_,size:f=100,width:y,height:v,defaultAvatar:j=g.A,apis:C,...A}=e;const N=(()=>{const e=y&&v?{style:{width:y,height:v}}:{size:f};if(y&&y!==v&&(_="square"),t||l)return b({loading:s,error:o,src:l,defaultAvatar:j,id:t,alt:n,className:d,apis:C,children:t=>(0,x.jsx)(c.Avatar,{...t,gap:u,shape:_,...e})});if(a){const t=a&&["F","female","f"].indexOf(a)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,x.jsx)(c.Avatar,{...A,src:(0,x.jsx)(r.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:_,...e})}return(0,x.jsx)(c.Avatar,{...A,gap:u,icon:m,shape:_,size:f,src:j,...e,children:h})})();return(0,x.jsx)("div",{...A,"data-testid":"components-core-image-avatar",className:i()(d,p),style:{width:y&&v?y:f,height:y&&v?v:f},children:N})};const C=j},41654:(e,t,l)=>{l.d(t,{A:()=>m,K:()=>p});var n=l(45776),a=l(27047),s=l(33097),r=l.n(s),o=l(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c=()=>l.e(719).then(l.t.bind(l,10719,19)).then(e=>e.__esModule?e.default:e),d={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:c},u=e=>{let{apis:t,...l}=e;const{apis:s,locale:r}=(0,a.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(n.Ay,{...l,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:l}=(0,n.ON)(new Map(t.map(e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}])));return l}},c.functionData)})};u.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},u.defaultData=c;const p=e=>{let{apis:t,...l}=e;const{apis:s,locale:r}=(0,a.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(n.yK,{...l,...c.functionData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};u.FunctionEnum=u.Enum=p;const m=u},43856:(e,t,l)=>{l.r(t),l.d(t,{AddressEnum:()=>m.qn,AddressInputField:()=>m.TM,AddressSelectField:()=>m.Ay,AdvancedSelectField:()=>h.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FetchScrollLoader:()=>o.FetchScrollLoader,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>p.Zi,InputFileLink:()=>p.FI,InputFileText:()=>p.AG,ScrollLoader:()=>o.default,SearchInput:()=>d.A,SelectInnerInput:()=>u.A,SimpleBar:()=>c.A,SuperSelectField:()=>_.Ay,SuperSelectTableListField:()=>_.e0,SuperSelectUserField:()=>_.$9,TableField:()=>h.Bm,TypeDateRangePickerField:()=>y.A,UserField:()=>h.Eo,accept:()=>b.A,changeMoneyToChinese:()=>n.A,createAddressApi:()=>m.LH,createDeferred:()=>C(),createListField:()=>h.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>a.c,getPopupContainer:()=>s,getScrollEl:()=>a.h,isNotEmpty:()=>A.A,numberToPx:()=>N.v,pxToNumber:()=>N.j,useFileUpload:()=>p.lN,useResize:()=>v.A,withAddressApi:()=>m.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var n=l(69484),a=l(76801);const s=e=>{const t=e=>{const l=(0,a.h)();if(!e||e===l||!e.parentElement)return l;return[].slice.call(e.classList,0).find(e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1)?e:t(e.parentElement)};return t(e)};var r=l(97211),o=l(78784),i=l(73025),c=l(17342),d=l(73161),u=l(30509),p=l(17508),m=l(93761),h=l(12392),_=l(60586),g=l(45776),f=l(41654),x=l(53392),y=l(89319),v=l(77964),b=l(81348),j=l(1582),C=l.n(j),A=l(55490),N=l(91176)},45776:(e,t,l)=>{l.d(t,{yK:()=>I,ON:()=>h,Ay:()=>M});var n=l(30509),a=l(73884),s=l(96418),r=l.n(s),o=l(55199),i=l(64671),c=l(73161),d=l(33097),u=l.n(d),p=l(79686),m=l.n(p);const h=e=>{const t=Array.from(e.values()),l=t.filter(e=>null===e.parentId),n=(e,t)=>{const l=e.indexOf(t);l>-1&&e.splice(l,1)},a=t=>{const l=[],n=t=>{const a=e.get(t);a&&Array.isArray(a.children)&&a.children.length>0&&(l.push(...a.children),a.children.forEach(e=>{n(e.id)}))};return n(t),l},s=(t,l)=>{const n=t=>{const a=e.get(t);return a?l(a)?a:m()(a.parentId)?null:n(a.parentId):null};return n(t)},r=t=>{const n=e.get(t);if(!n)return[];const a=n.parentId;if(m()(a))return l;return e.get(a).children},o=(()=>{const e=l=>Array.isArray(l)&&l.length>0?l.map(l=>{const n=t.filter(e=>e.parentId===l.id);return Object.assign({},l,{children:e(n)})}):null;return e(l)})();return{mapping:e,getSelectedQueue:t=>{const l=e.get(t);if(!l)return[];const n=e=>{if(e.children&&e.children.length>0)return n(e.children.find(t=>t.children&&e.children.length>0)||u()(e.children,"0"));const t=a(e.parentId).find(e=>e.children&&e.children.length>0);return t?n(t):e},s=function(t){const l=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],n=e.get(t);return!n||m()(n.parentId)?l:s(n.parentId,l)},r=n(l);return s(u()(r,"id"))},getAllChildren:a,computedCheckboxStatus:function(t){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,e=>l.indexOf(e.id)>-1))return{checked:!0,indeterminate:!1};const n=(t=>{const n=t=>{const a=e.get(t);return a?(s=a,l.indexOf(s.id)>-1?a:Array.isArray(a.children)&&a.children.length>0?a.children.find(e=>!!n(e.id)):void 0):null;var s};return!!n(t)})(t);return n?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const l=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;l.push(t),a(t).forEach(e=>{n(l,e.id)});const i=r(t),c=i.every(e=>l.indexOf(e.id)>-1);o.parentId&&c&&(i.forEach(e=>{n(l,e.id)}),s(o.parentId))};return s(t),l},setNodeUnchecked:function(t){const l=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),a=t=>{const s=e.get(t);if(!s)return;if(l.indexOf(s.id)>-1)return void n(l,s.id);const o=r(t);s.parentId&&(o.forEach(e=>{t!==e.id&&l.push(e.id)}),a(s.parentId))};return a(t),l},treeData:o,treeMapping:new Map(o.map(e=>[e.id,e]))}};var _=l(74065),g=l.n(_),f=l(19853),x=l.n(f),y=l(17342),v=l(83136),b=l.n(v);const j={content:"style_content__Hxlt9__RltKb",columns:"style_columns__FmtPF__RltKb","content-item":"style_content-item__i6HCO__RltKb","last-level-area":"style_last-level-area__2y7jQ__RltKb","is-popup":"style_is-popup__+r3Mn__RltKb",menu:"style_menu__WZUVE__RltKb","scroll-plus-box":"style_scroll-plus-box__QcTst__RltKb","menu-label":"style_menu-label__iGt0Z__RltKb","menu-item":"style_menu-item__hXHfm__RltKb","checkbox-hidden":"style_checkbox-hidden__Xpx7J__RltKb",loading:"style_loading__ZwrVe__RltKb"};var C=l(87558),A=l(47458),N=l(25438),S=l(70579),R=l(27047);const w=new Map,K=(0,C.withFetch)(e=>{let{data:t,name:l,type:n,cache:s,children:r,getLabel:o,...i}=e;const c=(0,a.useMemo)(()=>new Map(t.map(e=>[e.code,{...e,id:e.code,label:o?o(e):e.chName,parentId:e.parentCode||null}])),[t,o]).get(l);return w.set(`${l}_${n}`,c),r(c,i)}),O=e=>{const{locale:t}=(0,R.A)(),l=`${t}_${e.name}_${e.type}`,n=w.get(l);return n&&!e.force?e.children(n):(0,S.jsx)(K,{...e})};O.defaultProps={children:e=>u()(e,"label","")};const I=O,L=n.A.useContext,P=(0,C.withFetch)(e=>{let{data:t,computedIsChecked:l,onSelect:n}=e;return(0,S.jsx)(y.A,{className:j["scroll-plus-box"],children:(0,S.jsx)(o.List,{className:N.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=l(e);return(0,S.jsx)(o.List.Item,{className:b()(N.A["list-item"],{[N.A["is-selected"]]:t}),onClick:()=>n(e,t),children:(0,S.jsx)("span",{className:N.A["item-label"],children:e.label})})}})})}),k=e=>{let{value:t,setValue:l,size:n,selectLevel:s}=e;const{fetchApi:d,props:p}=L(),[m,_]=(0,a.useState)(""),f=r()(p.dataFormat),{formatMessage:v}=(0,A.useIntl)({moduleName:"Common"}),C=d.data,R=(0,a.useMemo)(()=>new Map(f(C).list.map(e=>[e.value,e])),[C,f]),w=(0,a.useMemo)(()=>h(R),[R]),K=(0,a.useRef)({});K.current={createMergeTree:p.createMergeTree,loadMore:d.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:w};const[O,I]=(0,a.useState)(()=>{const e=t.find(e=>!!R.get(e));return w.getSelectedQueue(e||u()(d.data.find(e=>e.children&&e.children.length>0),"id")||u()(d.data,"[0].id"),R)});(0,a.useEffect)(()=>{const{openLoadData:e,loadMore:t,parentIdKey:l,createMergeTree:n,treeUtils:a}=K.current;if(!e)return;const s=R.get(g()(O));if(!s)return;const r=a.getSelectedQueue(s.id);x()(O,r)?s.hasOwnProperty("children")||t({data:{[l]:s.id}},n(s.id)):I(r)},[O,R]);const k=(e,a)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(a),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(a),1),e}return e?w.setNodeChecked(a,t):w.setNodeUnchecked(a,t)})();s.length>n?o.message.error(v({id:"maxSelectedCount"},{count:n})):l(p.single&&s.length>0?[g()(s)]:s)},F=e=>{const t=R.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},M=!p.openLoadData&&"function"===typeof p.onSearch,T=M&&m&&(0,S.jsx)(P,{data:{searchText:m},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:R})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{k(!t,e.id),!t&&I(w.getSelectedQueue(e.id,R)),_("")}});return(0,S.jsxs)("div",{className:b()(j.content,{[j["is-popup"]]:p.isPopup,[j["has-search"]]:M}),style:{"--menu-item-width":p.menuItemWidth},children:[M&&(0,S.jsx)(c.A,{isPopup:p.isPopup,className:b()(N.A["search-input"],{[N.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||v({id:"search"}),value:m,onSearch:e=>{_(e)}}),T||(0,S.jsx)("div",{children:(0,S.jsx)(y.A,{className:j.scroller,options:{autoHide:!1},children:(0,S.jsxs)("div",{className:j.columns,children:[O.map((e,l)=>{const n=R.get(e),r=w.getSiblingNode(e),c=!F(null===n||void 0===n?void 0:n.id)&&l>0;return(0,S.jsx)(y.A,{className:b()(j["content-item"],{[j["last-level-area"]]:c}),children:c?(0,S.jsx)(o.Space,{wrap:!0,children:r.map(e=>(0,a.createElement)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>k(t.target.checked,e.id)},e.label))}):(0,S.jsx)(o.Menu,{className:b()(j.menu),onSelect:e=>{const l=R.get(e.key);if(l)if(F(l.id))I(w.getSelectedQueue(l.id,R));else{const{checked:e}=w.computedCheckboxStatus(l.id,t);k(!e,l.id)}},selectedKeys:l===O.length-1?[]:O,items:r.map(e=>({key:e.id,label:(0,S.jsxs)(o.Space,{className:b()(j["menu-item"],{[j["checkbox-hidden"]]:p.onlyAllowLastLevel&&F(e.id)}),children:[!p.onlyAllowLastLevel&&(0,S.jsx)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>k(t.target.checked,e.id)}),(0,S.jsx)("div",{className:j["menu-label"],children:e.label}),F(e.id)&&(0,S.jsx)(i.default,{className:j["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},u()(r,"[0].id",l))}),d.isComplete?null:(0,S.jsx)("div",{className:j.loading,children:(0,S.jsx)(o.Spin,{size:"small"})})]})})})]})},F=e=>{let{maxLength:t,nodeFormat:l,dataFormat:a,...s}=e;return(0,S.jsx)(n.A,{...s,dataFormat:e=>a(e,l),children:e=>{let{value:l,setValue:n}=e;return(0,S.jsx)(k,{...s,size:t,value:l,setValue:n})}})};F.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:l}=t;return Array.from(l.values()).filter(t=>t.label.indexOf(e)>-1)},dataFormat:(e,t)=>{const l=(e,n)=>{const a=[];return a.push(...(e||[]).map(e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&a.push(...l(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:n})))),a};return{list:l(e,null)}},createMergeTree:e=>(t,l)=>{const n=t=>t.map(t=>t.id===e?Object.assign({},t,{children:l&&l.map(t=>Object.assign({},t,{parentId:e}))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:n(t.children)}):t);return n(t)}};const M=F},53392:(e,t,l)=>{l.d(t,{A:()=>p,W:()=>u});var n=l(45776),a=l(27047),s=l(33097),r=l.n(s),o=l(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>l.e(7183).then(l.t.bind(l,57183,19)).then(e=>e.__esModule?e.default:e)},d=e=>{let{apis:t,...l}=e;const{apis:s,locale:r}=(0,a.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(n.Ay,{...l,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:l}=(0,n.ON)(new Map(t.filter(e=>"000"!==e.code).map(e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}])));return l}},d.industryData)})};d.defaultProps={overlayWidth:"635px"};const u=e=>{let{apis:t,...l}=e;const{apis:s,locale:r}=(0,a.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(n.yK,{...l,...d.industryData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};d.IndustryEnum=d.Enum=u;const p=d},55490:(e,t,l)=>{l.d(t,{A:()=>n.isNotEmpty});var n=l(39129)},60586:(e,t,l)=>{l.d(t,{e0:()=>g,$9:()=>f,Ay:()=>_});var n=l(73884),a=l(82146),s=l.n(a),r=l(3382),o=l(40438),i=l(55199);const c="style_select-list-item-description__ndJSX__RltKb",d="style_select-list-item-label__gyGnt__RltKb";var u=l(83136),p=l.n(u),m=(l(96316),l(70579));const h=(0,n.forwardRef)((e,t)=>{const l=Object.assign({},{children:e=>{let{components:t}=e;return(0,m.jsxs)(i.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,!1!==l.isPopup&&t.selectedTag]})},renderModal:e=>{const{props:t,open:l,onOpenChange:n,value:s,onComplete:o}=e,{placeholder:i,children:c,showSelectedTag:d,onConfirm:u}=t;return(0,m.jsx)(r.default,{title:i,open:l,onClose:()=>{n(!1)},footer:d&&(0,m.jsx)(a.SelectedTagList,{}),onConfirm:()=>{if(o(),"function"===typeof u)return u(s)},children:c(e)})}},e);return(0,m.jsx)(s(),{...l,ref:t})}),_=h,g=(0,n.forwardRef)((e,t)=>{const l=Object.assign({},{renderModal:e=>{const{props:t,open:l,value:n,onOpenChange:a,onComplete:s}=e,{placeholder:o,children:i,onConfirm:c}=t;return(0,m.jsx)(r.default,{title:o,open:l,onClose:()=>{a(!1)},onConfirm:()=>{if(s(),"function"===typeof c)return c(n)},children:i(e)})}},e);return(0,m.jsx)(a.SelectTableList,{...l,ref:t})}),f=(0,n.forwardRef)((e,t)=>(0,m.jsx)(h,{...e,ref:t,renderItemContent:e=>{let{item:t,props:l}=e;const{labelKey:n,avatarKey:a,descriptionKey:s}=l,r=t[a||"avatar"];return(0,m.jsxs)(i.Flex,{gap:8,children:[(0,m.jsx)(o.default.Avatar,{...Object.assign({},"string"===typeof r?{id:r}:r),size:32,gender:"M"}),(0,m.jsxs)(i.Flex,{vertical:!0,gap:8,align:"center",children:[(0,m.jsx)("div",{className:p()(d,"select-list-item-label"),children:t[n]}),t[s||"description"]&&(0,m.jsx)("div",{className:p()(c,"select-list-item-description"),children:t[s||"description"]})]})]})}}))},69484:(e,t,l)=>{l.d(t,{A:()=>a,e:()=>n});const n=1e15,a=e=>{let t,l,a,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=n)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,l=""):(a=e.split("."),t=a[0],l=a[1].substr(0,4)),parseInt(t,10)>0){let e=0,l=t.length;for(let n=0;n<l;n++){let a=t.substr(n,1),i=l-n-1,d=i/4,u=i%4;"0"===a?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(a)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==l){let e=l.length;for(let t=0;t<e;t++){let e=l.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===l&&(c+="\u6574"),c=d+c,c}},73161:(e,t,l)=>{l.d(t,{A:()=>p});var n=l(55199),a=l(83136),s=l.n(a);const r="style_search-input__8aH1G__RltKb",o="style_is-popup__L0973__RltKb";var i=l(64671),c=l(73884),d=l(51941),u=l(70579);const p=e=>{let{value:t,debounce:l=500,onSearch:a,isPopup:p,placeholder:m,className:h,..._}=e;const[g,f]=(0,c.useState)(t),x=(0,c.useRef)(t),y=(0,d.useDebouncedCallback)(a,l);return(0,c.useEffect)(()=>{t!==x.current&&(f(t),x.current=t)},[t]),(0,u.jsx)(n.Input.Search,{..._,allowClear:!0,className:s()(h,r,{[o]:p}),value:g,placeholder:m,prefix:(0,u.jsx)(i.default,{type:"icon-sousuo"}),enterButton:(0,u.jsx)(i.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;x.current=t,f(t),y(t)},onSearch:e=>{y(e)}})}},74981:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(73884);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,n.createContext)(e),{Provider:l,Consumer:a}=t;return{context:t,Provider:l,Consumer:a,useContext:()=>(0,n.useContext)(t)}}},77964:(e,t,l)=>{l.d(t,{A:()=>d});var n=l(73884),a=l(79889),s=l.n(a),r=l(93950),o=l.n(r),i=l(96418),c=l.n(i);const d=(e,t)=>{const l=(0,n.useRef)(null);l.current=Object.assign({},{time:500,isDebounce:!1},t);const a=(0,n.useRef)(null),r=c()(e);return(0,n.useLayoutEffect)(()=>{const e=a.current,t=()=>window.requestAnimationFrame(()=>{e&&r(e)});t();const n=new ResizeObserver((l.current.isDebounce?o():s())(t,l.current.time));return e&&n.observe(e),()=>{n.disconnect()}},[r]),a}},78784:(e,t,l)=>{l.d(t,{default:()=>a.a});l(21219);var n=l(95183),a=l.n(n);l.o(n,"FetchScrollLoader")&&l.d(t,{FetchScrollLoader:function(){return n.FetchScrollLoader}})},81348:(e,t,l)=>{l.d(t,{A:()=>n.computedAccept});var n=l(68827)},89319:(e,t,l)=>{l.d(t,{A:()=>u});var n=l(55199),a=l(10986),s=l.n(a),r=l(57469),o=l.n(r),i=l(20492),c=l(47458),d=l(70579);const u=(0,c.createWithIntl)({importMessages:i.A,moduleName:"Common"})(e=>{let{...t}=e;const{formatMessage:l}=(0,c.useIntl)({moduleName:"Common"}),a=new Map([["date",l({id:"customTime"})],["month",l({id:"monthly"})],["week",l({id:"weekly"})]]),[r,i]=s()(t);return(0,d.jsxs)(n.Space.Compact,{children:[(0,d.jsx)(n.Select,{style:{width:"120px"},value:(null===r||void 0===r?void 0:r.type)||"date",onChange:e=>{i(t=>{var l;return{value:null!==t&&void 0!==t&&null!==(l=t.value)&&void 0!==l&&l.length?[o()(t.value[0]).startOf(e||"date"),o()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}})},options:Array.from(a).map(e=>{let[t,l]=e;return{label:l,value:t}})}),(0,d.jsx)(n.DatePicker.RangePicker,{...t,picker:(null===r||void 0===r?void 0:r.type)||"date",value:Array.isArray(null===r||void 0===r?void 0:r.value)&&2===r.value.length&&r.value.map(e=>e&&o()(e)),onChange:e=>{i(t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})))}})]})})},91176:(e,t,l)=>{l.d(t,{j:()=>a,v:()=>n});const n=e=>"number"===typeof e?`${e}px`:e,a=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},93761:(e,t,l)=>{l.d(t,{qn:()=>T,TM:()=>Z,LH:()=>L,Ay:()=>E,NY:()=>P,DF:()=>D});var n=l(30509),a=l(25438),s=l(55199),r=l(27047),o=l(83136),i=l.n(o),c=l(64671),d=l(73884),u=l(21485),p=l(56434),m=l.n(p),h=l(15797),_=l.n(h),g=l(33097),f=l.n(g);const x="style_address__DIuRX__RltKb",y="style_is-popup__tqVvp__RltKb",v="style_title__FAe12__RltKb",b="style_scroll-box__JWiDl__RltKb",j="style_scroll-plus-box__lidEW__RltKb",C="style_content__lAARZ__RltKb",A="style_col-left__WPfeS__RltKb",N="style_col-right__z0e9-__RltKb";var S=l(87558),R=l.n(S);const w=e=>({"en-US":()=>l.e(3691).then(l.bind(l,83691)),"zh-CN":()=>l.e(2253).then(l.bind(l,32253))}[e]());var K=l(47458),O=l(70579);const I=n.A.useContext,L=e=>{let{city:t,province:l,country:n}=e;const a=_()(()=>{const e=[];return["gangaotai","municipality"].forEach(l=>{e.push(...t.relations[l])}),["provinces","continents"].forEach(l=>{t.relations[l].forEach(l=>{e.push(l),e.push(...t.relations[l])})}),e.map(e=>t.list[e])});return{getCity:_()(e=>{const l=t.list[e];return l?{city:l,parent:l.parentCode?t.list[l.parentCode]:null}:{city:null,parent:null}}),getChinaHotCities:_()(()=>t.relations[2].map(e=>t.list[e])),getChinaCities:_()(()=>["2",...l.relations.municipality,...l.relations.provinces,"gangaotai"].map(e=>Object.assign({id:e},t.list[e]))),getCountries:_()(()=>["1",...n.relations.continents].map(e=>Object.assign({id:e},n.list[e]))),getList:_()((e,a)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},a);if("gangaotai"===e)return l.relations.gangaotai.map(e=>t.list[e]);const o=Object.assign({},t.list[e]);if(l.relations.municipality.indexOf(e)>-1)return o.name=""+(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map(e=>t.list[e]);return l.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),n.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i}),getNationalityList:_()(e=>{let l=m()(t);return"1"===e&&l.relations[1].unshift("410"),"350"===e&&l.relations[350].unshift("410"),l.relations[e].filter(e=>l.list[e]).map(e=>l.list[e])}),getCityByName:_()(e=>{const t=a();let l;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find(e=>(l=t.find(e),l)),l}),combineCities:_()((e,l)=>[...l.filter(l=>t.list[l].parentCode!==e&&t.list[e].parentCode!==l&&e!==l),e]),searchCities:_()(e=>{if(!e)return[];return a().filter(t=>["pinyin","name","enName","spelling"].some(l=>t[l].toUpperCase().indexOf(e.toUpperCase())>-1)).map(e=>{const l=e.parentCode?t.list[e.parentCode]:null;return{label:l?`${l.name}\xb7${e.name}`:e.name,value:e.code}})})}},P=(e,t)=>"en-US"===t?f()(e,"enName"):f()(e,"name"),k={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>l.e(7820).then(l.t.bind(l,37820,19)).then(e=>e.__esModule?e.default:e)},F=e=>{let{value:t,setValue:l}=e;const{fetchApi:n,props:o}=I(),[p,m]=(0,d.useState)(""),[h,_]=(0,d.useState)("2"),{formatMessage:g}=(0,K.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,r.A)(),{getCity:S,getChinaCities:R,getCountries:w,getList:k,searchCities:F}=(0,d.useMemo)(()=>L(n.data),[n.data]),M=e=>{if(o.single)return void l([e]);const n=t.slice(0),a=n.indexOf(e);a>-1?n.splice(a,1):n.push(e),l(n)},T=p&&(0,O.jsx)(u.A,{className:j,children:(0,O.jsx)(s.List,{className:a.A.list,size:"small",dataSource:F(p),rowKey:"value",renderItem:e=>(0,O.jsx)(s.List.Item,{className:a.A["list-item"],onClick:()=>{M(e.value),m("")},children:(0,O.jsx)("span",{className:a.A["item-label"],children:e.label})})})});return(0,O.jsxs)("div",{className:i()(x,{[y]:o.isPopup}),children:[(0,O.jsx)(s.Input.Search,{className:i()(a.A["search-input"],{[a.A["is-popup"]]:o.isPopup}),placeholder:o.searchPlaceholder||g({id:"searchCity"}),prefix:(0,O.jsx)(c.default,{type:"icon-sousuo"}),enterButton:(0,O.jsx)(c.default,{type:"icon-sousuo"}),value:p,allowClear:!0,onChange:e=>{const t=e.target.value;m(t)},onSearch:e=>{m(e)}}),(0,O.jsx)("div",{className:C,children:T||(0,O.jsxs)(s.Row,{wrap:!1,children:[(0,O.jsx)(s.Col,{className:A,children:(0,O.jsx)(s.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,O.jsx)(K.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,O.jsx)(u.A,{className:b,children:(0,O.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:R().map(e=>({label:P(e,f),key:e.id}))})})},{key:"1",label:(0,O.jsx)(K.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,O.jsx)(u.A,{className:b,children:(0,O.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map(e=>({label:P(e,f),key:e.id}))})})}]})}),(0,O.jsxs)(s.Col,{flex:1,className:N,children:[(0,O.jsx)(s.Divider,{className:v,orientation:"left",children:P(S(h).city,f)}),(0,O.jsx)(u.A,{className:b,children:(0,O.jsx)(s.Space,{wrap:!0,children:k(h,{showChinaQuan:o.showChinaQuan,showForeignQuan:o.showForeignQuan}).map(e=>(0,O.jsx)(s.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{M(e.code)},children:P(e,f)},e.code))})})]})]})})]})},M=e=>(0,O.jsx)(n.A,{...e,children:e=>{let{value:t,setValue:l}=e;return(0,O.jsx)(K.IntlProvider,{moduleName:"AddressSelect",importMessages:w,children:(0,O.jsx)(F,{value:t,setValue:l})})}});M.defaultProps={overlayWidth:"500px",isPopup:!0,api:k,dataFormat:(e,t)=>{let{city:l}=e;const{locale:n}=Object.assign({},t);return{list:Object.values(l.list).map(e=>Object.assign({},e,{value:e.code,label:P(e,n)}))}}};const T=(0,S.withFetch)(e=>{let{name:t,data:l,getAddressApi:n,children:a,...s}=e;const{locale:o}=(0,r.A)(),i=(0,d.useMemo)(()=>L(l),[l]);return n?a(i):(0,O.jsx)(R(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:l}=t;return new Promise(e=>{setTimeout(()=>{e(i.getCity(l))},0)})},render:e=>{let{data:t}=e;return a(t,Object.assign({},s,{locale:o}))}})});T.defaultProps={...k,displayParent:!1,children:(e,t)=>{let{city:l,parent:n}=e,{displayParent:a,locale:s}=t;return a&&n?`${P(n,s)}\xb7${P(l,s)}`:P(l,s)}};const D=e=>{const t=(0,S.withFetch)(t=>{let{data:l,...n}=t;const a=(0,d.useMemo)(()=>L(l),[l]);return(0,O.jsx)(e,{...n,addressApi:a})});return t.defaultProps={...k},t};M.AddressEnum=M.Enum=T,M.createAddressApi=L,M.withAddressApi=D,M.getLabelForLocal=P;const E=M;var z=l(10986),V=l.n(z),W=l(78491),U=l.n(W),B=l(20492),q=l(22616),$=l.n(q),Q=l(1488),H=l.n(Q);const X=e=>{const{isPopup:t,size:l,disabled:n,inputPlaceholder:a,onBlur:r,className:o,...i}=e,[c,d]=V()(e),u=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:p}=(0,K.useIntl)({moduleName:"Common"}),m=U()(e=>{r&&r(e)});return(0,O.jsx)("div",{ref:m,children:(0,O.jsxs)(s.Row,{gutter:10,children:[(0,O.jsx)(s.Col,{span:12,children:(0,O.jsx)(E,{...$()(i,u),className:o,disabled:n,single:!0,size:l,value:f()(c,"city"),onChange:e=>{d({city:e,detail:f()(c,"detail")})}})}),(0,O.jsx)(s.Col,{span:12,children:(0,O.jsx)(s.Input,{...H()(i,u),className:o,placeholder:a||p({id:"pleaseInput"}),disabled:n,size:l,value:f()(c,"detail"),onChange:e=>{d({city:f()(c,"city"),detail:e.target.value})}})})]})})};X.defaultProps={};const Z=(0,K.createWithIntl)({importMessages:B.A,moduleName:"Common"})(X)},97211:(e,t,l)=>{l.d(t,{A:()=>n.withOSSFile});var n=l(68827)}}]);
2
- //# sourceMappingURL=3856.29d5e528.chunk.js.map
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2723,2908,4277],{17342:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var i=l(34581),n=l.n(i);l(46733);const s=n()},19449:(e,t,l)=>{var i=l(94710),n=l(32952),s=l(9096),a=l(54052);e.exports=function(e,t){return function(l,o){var r=a(l)?i:n,c=t?t():{};return r(l,e,s(o,2),c)}}},32520:(e,t,l)=>{var i=l(75816),n=l(9096),s=l(99140),a=Math.max;e.exports=function(e,t,l){var o=null==e?0:e.length;if(!o)return-1;var r=null==l?0:s(l);return r<0&&(r=a(o+r,0)),i(e,n(t,3),r)}},32952:(e,t,l)=>{var i=l(45652);e.exports=function(e,t,l,n){return i(e,function(e,i,s){t(n,e,l(e),s)}),n}},39835:(e,t,l)=>{var i=l(71775),n=l(19449),s=Object.prototype.hasOwnProperty,a=n(function(e,t,l){s.call(e,l)?e[l].push(t):i(e,l,[t])});e.exports=a},45652:(e,t,l)=>{var i=l(94664),n=l(76516)(i);e.exports=n},46733:()=>{},75816:e=>{e.exports=function(e,t,l,i){for(var n=e.length,s=l+(i?1:-1);i?s--:++s<n;)if(t(e[s],s,e))return s;return-1}},76516:(e,t,l)=>{var i=l(6571);e.exports=function(e,t){return function(l,n){if(null==l)return l;if(!i(l))return e(l,n);for(var s=l.length,a=t?s:-1,o=Object(l);(t?a--:++a<s)&&!1!==n(o[a],a,o););return l}}},82723:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>i.Content});var i=l(22436)},85855:(e,t,l)=>{e.exports=l(96483)},89384:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>w});var i=l(55199),n=l(53984),s=l.n(n),a=l(83136),o=l.n(a),r=l(17342),c=l(63743),d=l(64671),_=l(82723);const u={notification:"style_notification__Vv-MM__RltKb",list:"style_list__l8KOo__RltKb",header:"style_header__3dcv8__RltKb",item:"style_item__d92RS__RltKb","item-box":"style_item-box__dd-Lk__RltKb","index-1":"style_index-1__f97L0__RltKb","index-2":"style_index-2__04vAw__RltKb","item-box-main":"style_item-box-main__lnSak__RltKb","item-title":"style_item-title__mArMd__RltKb","level-high":"style_level-high__Uys7Y__RltKb","level-middle":"style_level-middle__EewyC__RltKb","level-low":"style_level-low__8kVyL__RltKb","title-icon":"style_title-icon__1EoAG__RltKb","item-subtitle":"style_item-subtitle__xeFJs__RltKb","close-btn":"style_close-btn__7qpG3__RltKb","is-loading":"style_is-loading__upVL+__RltKb","item-content":"style_item-content__8MlsG__RltKb","link-outer":"style_link-outer__kegyZ__RltKb",link:"style_link__F2CO-__RltKb","is-last-item":"style_is-last-item__MytRl__RltKb"};var v=l(73884),h=l(39835),m=l.n(h),x=l(85855),b=l.n(x),p=l(96604),f=l.n(p),g=l(81014),y=l(32520),j=l.n(y),R=l(70579);const k=["high","middle","low"],K=e=>{let{level:t="low",title:l,groupLength:n,subtitle:s,content:a,link:r,id:v,children:h,className:m}=e;const{setGlobal:x}=(0,c.useGlobalContext)("notification"),{apis:b,ajax:p}=(0,c.usePreset)(),{isLoading:y,callback:k}=(0,g.useLoading)(async()=>{var e;const{data:t}=null!==b&&void 0!==b&&null!==(e=b.notification)&&void 0!==e&&e.read?await p(Object.assign({},b.notification.read,{data:{ids:[v]}})):{data:{code:0}};0===t.code&&x(e=>{const t=((null===e||void 0===e?void 0:e.list)||[]).slice(0),l=j()(t,e=>v===e.id);return l>-1&&t.splice(l,1),Object.assign({},e,{list:t})})});return(0,R.jsxs)("div",{className:o()(u.item,m),style:{"--group-length":Math.min(n,3)||1},children:[n&&n>1&&f()(1,Math.min(n,3)).reverse().map(e=>(0,R.jsx)("div",{className:o()(u["item-box"],u[`index-${e}`])},e)),(0,R.jsxs)("div",{className:o()(u["item-box"],u["item-box-main"]),children:[(0,R.jsxs)("div",{className:o()(u["item-title"],u[`level-${t}`]),children:[(0,R.jsx)(d.default,{className:u["title-icon"],type:"high"===t?"icon-tishi":"icon-daiwochuli"}),(0,R.jsx)(i.Typography.Text,{ellipsis:!0,children:l})]}),(0,R.jsxs)("div",{className:u["item-content"],children:[(0,R.jsxs)("div",{className:u["item-subtitle"],children:[(0,R.jsx)(i.Typography.Text,{ellipsis:!0,children:s||""}),(0,R.jsx)(d.default,{className:o()(u["close-btn"],{[u["is-loading"]]:y}),type:"icon-close-thin",onClick:()=>{y||v&&k()}})]}),Array.isArray(a)?(0,R.jsx)(_.default,{list:a,labelAlign:"auto",size:"small"}):h]}),r&&(0,R.jsx)("div",{className:u["link-outer"],children:(0,R.jsx)(g.default,{className:u.link,size:"small",onClick:async()=>{var e;const{data:t}=null!==b&&void 0!==b&&null!==(e=b.notification)&&void 0!==e&&e.read?await p(Object.assign({},b.notification.read,{data:{ids:[v]}})):{data:{code:0}};0===t.code&&window.open(r)},children:"\u67e5\u770b\u8be6\u60c5"})})]})]})},w=e=>{let{itemClassName:t}=e;const{global:l,setGlobal:n}=(0,c.useGlobalContext)("notification"),a=(0,v.useRef)(),{apis:d,ajax:_}=(0,c.usePreset)(),[h,x]=(0,v.useState)(32);(0,v.useEffect)(()=>{var e;a.current&&x(null===(e=a.current)||void 0===e?void 0:e.clientHeight)},[]);const{list:p,expand:f}=Object.assign({},{expand:!1,list:[]},l),y=(0,v.useMemo)(()=>{const e=m()(p,e=>e.level||"low");return k.map(t=>e[t]||[])},[p]);return 0===p.length?null:(0,R.jsxs)("div",{className:o()({},u.notification,"notification"),style:{"--head-option-height":`${h}px`},children:[(0,R.jsx)("div",{ref:a,children:(0,R.jsxs)(i.Row,{justify:"end",wrap:!1,className:u.header,gutter:8,children:[y.some(e=>e.length>1)&&(0,R.jsx)(i.Col,{children:(0,R.jsx)(i.Button,{size:"small",onClick:()=>{n(Object.assign({},l,{expand:!f}))},children:f?"\u5168\u90e8\u6298\u53e0":"\u5168\u90e8\u5c55\u5f00"})}),(0,R.jsx)(i.Col,{children:(0,R.jsx)(g.default,{type:"primary",size:"small",onClick:async()=>{var e;const{data:t}=null!==d&&void 0!==d&&null!==(e=d.notification)&&void 0!==e&&e.read?await _(Object.assign({},d.notification.read,{data:{ids:p.map(e=>e.id).filter(e=>!!e)}})):{data:{code:0}};0===t.code&&n(Object.assign({},l,{list:[]}))},children:"\u5168\u90e8\u6e05\u9664"})})]})}),(0,R.jsx)(r.A,{className:u.list,children:(0,R.jsx)(s(),{leaveReverse:!0,duration:200,interval:20,children:y.filter(e=>e&&e.length>0).map((e,l)=>{var i;if(f)return e.map((t,i)=>{var n;return t&&(0,R.jsx)("div",{children:(0,R.jsx)(K,{...Object.assign({},t),className:o()({[u["is-last-item"]]:+l+1===Math.min(null===(n=y.filter(e=>e&&e.length))||void 0===n?void 0:n.length,3)&&i===(null===e||void 0===e?void 0:e.length)-1})})},`group-${l}-${i}`)});const n=b()(e);return(0,R.jsx)("div",{children:(0,R.jsx)(K,{...Object.assign({},n),groupLength:e.length,className:o()({[u["is-last-item"]]:(null===y||void 0===y?void 0:y.length)&&+l+1===Math.min(null===(i=y.filter(e=>e&&e.length))||void 0===i?void 0:i.length,3)},t)})},`group-${l}-0`)})})})]})}},94710:e=>{e.exports=function(e,t,l,i){for(var n=-1,s=null==e?0:e.length;++n<s;){var a=e[n];t(i,a,l(a),e)}return i}},96483:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},99140:(e,t,l)=>{var i=l(37303);e.exports=function(e){var t=i(e),l=t%1;return t===t?l?t-l:t:0}}}]);
2
- //# sourceMappingURL=4277.de810104.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[330,4474],{330:(e,t,l)=>{l.r(t),l.d(t,{default:()=>a});var n=l(29871),s=l.n(n),r={};for(const o in n)"default"!==o&&(r[o]=()=>n[o]);l.d(t,r),s().Fetch=n.FlexBoxFetch;const a=s()},1904:(e,t,l)=>{l.d(t,{A:()=>i,N:()=>d});var n=l(98434),s=l(43856);const{useOnChange:r,useDecorator:a}=n.hooks,o=e=>r(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,d=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(s.AddressInputField);d.Field=s.AddressInputField},2196:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55199),s=l(73884),r=l(41381),a=l(330),o=l(68532),i=l(47094),d=l(83136),c=l.n(d),u=l(70579);const m=e=>{let{list:t=[],groupArgs:l,itemRender:d,column:m=2,gap:p,className:h,outer:g=(0,u.jsx)(r.default.Part,{}),children:f,..._}=e;const x=!(Number.isInteger(m)&&m>0),{ref:v,column:b}=(0,a.useFlexBox)(x?m:{}),j=(e,s)=>(0,u.jsx)(o.FormInfo,{list:t,column:e,groupArgs:l,itemRender:(e,t)=>"function"===typeof d?d(e,t):(0,u.jsx)(n.Col,{span:t.span,children:e}),children:(e,t)=>(0,u.jsx)(n.Row,{gutter:[p||24,0],className:c()({[i.A["column-not-layout"]]:s}),children:"function"===typeof f?f(e,t):e})});return(0,s.cloneElement)(g,Object.assign({},_,{className:c()(h,i.A["form-info"])}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:v}),x?b?j(b.col):j(2,!0):j(m)]}))}},2842:(e,t,l)=>{l.d(t,{default:()=>s.a});l(2885);var n=l(22986),s=l.n(n);l.o(n,"PHONE_NUMBER_INPUT")&&l.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},5995:(e,t,l)=>{l.d(t,{Ay:()=>d,Vl:()=>c,W6:()=>u});var n=l(3382),s=l(73025),r=l(55199),a=l(76995),o=l(47094),i=l(70579);const d=e=>(0,i.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:o.A["form-modal"]}))}),c=()=>{const e=(0,n.useModal)();return t=>e((0,a.A)(Object.assign({},t,{className:o.A["form-modal"]})))},u=e=>{let{classNames:t,...l}=e;const n=c();if(!l.api){const{modalProps:e,...t}=l;return(0,i.jsx)(r.Button,{...t,onClick:()=>{n(e)}})}return(0,i.jsx)(s.A,{...l,modalFunc:n})}},15209:(e,t,l)=>{l.d(t,{A:()=>c});var n=l(55199),s=l(10986),r=l.n(s),a=l(13050),o=l(70579);const i=e=>{let{...t}=e;const[l,s]=r()(t);return(0,o.jsx)(n.Input,{...t,value:l,onChange:e=>{s(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},d=(0,a.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t,...l}=e;const[n]=t,{hooks:s}=n,{useDecorator:r}=s;return r(Object.assign({placeholder:`\u8bf7\u8f93\u5165${l.label||""}`},l))(i)});d.field=i;const c=d},15445:(e,t,l)=>{l.d(t,{A:()=>Y,E:()=>J});var n=l(98434),s=l(30096),r=l(34643),a=l(1904),o=l(83230),i=l(55199),d=l(70579);const{useOnChange:c}=n.hooks,u=e=>(0,d.jsx)(i.ColorPicker,{...e,onChange:t=>e.onChange(t.toHexString())}),m=e=>c(Object.assign({},e))(u);m.Field=m;const p=m;var h=l(81026),g=l(78756),f=l(92328),_=l(2842);const{useOnChange:x,useCheckedToValue:v}=n.hooks,{withChecked:b}=n.hoc,j=b(e=>{let{checked:t,children:l=null,...n}=e;return(0,d.jsxs)(i.Space,{children:[(0,d.jsx)(i.Switch,{checked:t,...n}),"function"===typeof l?l({checked:t}):l]})}),y=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=v(e);return x(t)(j)};y.Field=i.Switch;const A=y;var N=l(89099),S=l(96339),w=l(36972),C=l(15209),F=l(74529),R=l.n(F),P=l(73884),I=l(47458),M=l(33097),T=l.n(M),k=l(21079),O=l(46237),L=l(56259),E=l(29556),D=l(64671),K=l(83136),z=l.n(K),U=l(47094);const B=e=>t=>{const l=R()(...e)(e=>{let{forwardedRef:l,label:n,placeholder:s,...r}=e;return(0,d.jsx)(t,{...r,label:n,placeholder:s,labelRender:()=>r.tips?(0,d.jsxs)(i.Space,{children:[n,(0,d.jsx)(E.default,{content:r.tips,children:(0,d.jsx)("span",{className:z()(U.A["field-tips"],{[U.A["label-hidden"]]:r.labelHidden}),children:(0,d.jsx)(D.default,{type:"icon-xinxi-miaobian"})})})]}):n,ref:l})}),n=(0,P.forwardRef)((e,t)=>(0,d.jsx)(l,{...e,forwardedRef:t}));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{n[e]=t[e]}),n},$=e=>t=>{let{placeholder:l,label:n,...s}=t;return(0,d.jsx)(I.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,d.jsx)(e,{...s,label:n,placeholder:l||t})})},W=e=>t=>{let{placeholder:l,label:n,...s}=t;return(0,d.jsx)(I.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,d.jsx)(e,{...s,label:n,placeholder:l||t})})},V=e=>t=>{const l=(0,n.useGroup)(),s=T()(l,"name"),r=(0,k.get)(l,"index"),a=(0,O.oc)();return a&&Array.isArray(a)&&a.length>0?a.map(l=>{if("string"===typeof l)return(0,P.createElement)(e,{...t,key:l});const{name:n,label:a,options:o}=l,i=T()(o,"ignore",[]),d=T()(o,"disabled",[]),c=T()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==s)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==r);if(i.length>0&&i.find(u))return null;if(c.length>0&&!c.find(u))return null;let m=Object.assign({},t,{name:T()(o,"nameTransform",(e,t)=>`${e}${t}`)(t.name,n),label:T()(o,"labelTransform",(e,t)=>e&&`${e}${t}`)(t.label,a)});return d.length>0&&d.find(u)&&(m.disabled=!0,m.rule=""),(0,P.createElement)(e,{...m,key:n})}):(0,d.jsx)(e,{...t})},H=B([V,$])(n.Input),q=B([V,$])(n.InputNumber);H.Password=B([V,$])(n.Input.Password);const G=B([V,W])(n.DatePicker);G.MonthPicker=B([V,W])(n.DatePicker.MonthPicker),G.RangePicker=B([V,W])(n.DatePicker.RangePicker),G.WeekPicker=B([V,W])(n.DatePicker.WeekPicker);const Q=B([V,W])(n.TimePicker);Q.RangePicker=B([V,W])(n.TimePicker.RangePicker);const X=B([V])(e=>{let{placeholder:t,label:l,soFarText:s,...r}=e;const{formatMessage:a}=(0,I.useIntl)({moduleName:"FormInfo"});return(0,d.jsx)(n.DatePickerToday,{...r,label:l,placeholder:[a({id:"startDate"}),a({id:"endDate"})],soFarText:s||a({id:"soFarText"})})}),Y={Input:H,Checkbox:n.Checkbox,Password:H.Password,InputNumber:q,DatePicker:G,MonthPicker:G.MonthPicker,WeekPicker:G.WeekPicker,DateRangePicker:G.RangePicker,TimeRangePicker:Q.RangePicker,TimePicker:Q,DatePickerToday:X,RadioGroup:B([V])(n.RadioGroup),CheckboxGroup:B([V])(n.CheckboxGroup),Rate:B([V])(n.Rate),Switch:B([V])(A),Slider:B([V])(n.Slider),SalaryInput:B([V,$])(w.A),TypeDateRangePicker:B([V])(L.A),MoneyInput:B([V,$])(f.A),PhoneNumber:B([V,$])(_.default),Upload:B([V])(N.A),Avatar:B([V])(S.A),FunctionSelect:B([V,W])(h.A),IndustrySelect:B([V,W])(g.A),Cascader:B([V,W])(o.A),ColorPicker:B([V,W])(p),AddressSelect:B([V,W])(a.A),AddressInput:B([V,W])(a.N),TreeSelect:B([V,W])(n.TreeSelect),ReactInputNumber:B([V,$])(n.InputNumber),InputUpperCase:B([V,$])(C.A),Select:B([V,W])(n.Select),TextArea:B([V,$])(n.TextArea),AdvancedSelect:B([V,W])(s.Ay),SuperSelect:B([V,W])(r.Ay),SuperSelectTableList:B([V,W])(r.eM),SuperSelectUser:B([V,W])(r.Pg)},J={createWithFieldDecorator:B,withInputDefaultPlaceholder:$,withSelectDefaultPlaceholder:W,withLang:V}},18936:(e,t,l)=>{l.d(t,{A:()=>k});const n={"ant-tag":"style_ant-tag__7ct2q__RltKb",overlay:"style_overlay__CXfU5__RltKb",input:"style_input__+OpvV__RltKb","is-disabled":"style_is-disabled__uX4qq__RltKb","input-icon":"style_input-icon__E3NjK__RltKb",large:"style_large__vMozz__RltKb",small:"style_small__ubqQ+__RltKb","input-inner":"style_input-inner__sY-6k__RltKb","input-custom":"style_input-custom__Kxq3n__RltKb","display-content":"style_display-content__qA1jn__RltKb","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__RltKb","selected-tag":"style_selected-tag__BZsMM__RltKb","selected-tag-list":"style_selected-tag-list__As0ho__RltKb","selected-tag-inner":"style_selected-tag-inner__2NH59__RltKb","text-inner":"style_text-inner__Bq2Ji__RltKb",placeholder:"style_placeholder__odotY__RltKb","is-modal":"style_is-modal__4cj8L__RltKb","overlay-content":"style_overlay-content__kpGRn__RltKb"};var s=l(74981);const{context:r,useContext:a,Provider:o,Consumer:i}=(0,s.A)();var d=l(73884),c=l(10986),u=l.n(c),m=l(87558),p=l(33097),h=l.n(p),g=l(55199),f=l(83136),_=l.n(f),x=l(3382),v=l(64671),b=l(79686),j=l.n(b),y=l(41740),A=l.n(y),N=l(74065),S=l.n(N),w=l(17342),C=l(70579);const F=e=>{let{maxLength:t,single:l,setValue:n,value:s,message:r}=e;return e=>n(!l&&Number.isInteger(t)&&t>0&&e.length>t?(r(`\u6700\u591a\u9009\u62e9${t}\u4e2a`),s):e)},R=e=>{let{single:t,value:l,mapping:s,onClose:r}=e;return l&&Array.isArray(l)&&0!==l.length?t?(0,C.jsx)("span",{className:n["text-inner"],children:h()(s.get(l[0]),"label")||l[0]}):l.map(e=>{const t=s.get(e);return(0,C.jsx)(g.Tag,{className:n["display-tag"],closable:!0,onClose:l=>{l.preventDefault(),r(e,t)},children:(0,C.jsx)("span",{className:n["tag-inner"],children:h()(t,"label")||e})},e)}):null},P=(0,d.forwardRef)((e,t)=>{let{value:l,onChange:s,extra:r,showSelectedTag:a,renderSelectedContent:o,children:i,...c}=e;const[u,m]=(0,d.useState)(l),p=(0,d.useRef)(l);p.current=l;const[h,f]=(0,d.useState)(!1),{message:_}=g.App.useApp(),v=F({maxLength:c.maxLength,single:c.single,setValue:m,value:u,message:_.error});return(0,d.useEffect)(()=>{h&&m(p.current)},[h]),(0,d.useImperativeHandle)(t,()=>({modalOpen:()=>{f(!0)},close:()=>{f(!1)}})),(0,C.jsx)(x.default,{...c,open:h,onConfirm:()=>{s(u)},onClose:()=>{f(!1)},footer:(a||r)&&(0,C.jsxs)(g.Space,{direction:"vertical",className:n["overlay-footer"],children:[r&&(0,C.jsx)("div",{className:n["overlay-footer-extra"],children:r}),a&&o({value:u,setValue:v})]}),children:"function"===typeof i?i({value:u,setValue:v}):i})}),I=(0,d.forwardRef)((e,t)=>{let{value:l,setValue:s,children:r,renderSelectedContent:a,showSelectedTag:o,placement:i,inputContent:c,single:u,extra:m,overlayWidth:p,wrapClassName:h,...f}=e;const[_,x]=(0,d.useState)(!1);return(0,d.useImperativeHandle)(t,()=>({close:()=>{x(!1)}}),[]),(0,C.jsx)(g.Popover,{...f,open:_,onOpenChange:x,overlayClassName:n.overlay,arrow:!1,content:(0,C.jsxs)("div",{style:p?{"--overlay-width":p}:{},className:n["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,C.jsx)("div",{className:n["overlay-inner"],children:"function"===typeof r?r({value:l,setValue:e=>{(!u||l[0]!==e[0])&&s(e),u&&x(!1)}}):r}),(o||m)&&(0,C.jsxs)("div",{className:n["overlay-footer"],children:[m&&(0,C.jsx)("div",{className:n["overlay-footer-extra"],children:m}),o&&a({value:l,setValue:s})]})]}),trigger:"click",placement:i,children:(0,C.jsx)("div",{className:n["input-inner"],children:c})})}),M=(0,m.withFetch)(e=>{let{setFetchApi:t,wrapClassName:l,...s}=e;const[r,o]=(0,d.useState)(!1),i=(0,d.useRef)(null),c=(0,d.useRef)(null),u=a(),{valueState:m,mapping:p,props:h}=u,[f,x]=m,{single:b,placement:j,getPopupContainer:y,placeholder:A,isPopup:N,disabled:S,showSelectedTag:F,extra:M,inputContent:T}=h,k=(0,d.useRef)(s);k.current=s,(0,d.useEffect)(()=>{t(Object.assign({},k.current,{data:s.data,isComplete:s.isComplete}))},[s.data,t,s.isComplete]);const O=R({single:b,value:f,mapping:p,onClose:e=>{x(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}}),L=e=>{let{value:t,setValue:l}=e;return(0,C.jsxs)(g.Space,{className:n["selected-tag"],align:"center",wrap:!0,children:[(0,C.jsxs)("div",{children:["\u5df2\u9009",!h.single&&Number.isInteger(h.maxLength)&&h.maxLength>0?`(${t.length}/${h.maxLength})`:"",":"]}),(0,C.jsx)(w.A,{className:n["selected-tag-list"],children:(0,C.jsx)("div",{className:n["selected-tag-inner"],children:R({value:t,mapping:p,onClose:e=>{l(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}})})})]})},E=T?T(u):(0,C.jsxs)(g.Space,{className:n["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,C.jsx)("div",{children:O||(0,C.jsx)("span",{className:n.placeholder,children:A})}),r&&f&&f.length>0&&!S?(0,C.jsx)(v.default,{className:_()(n.close,n["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,C.jsx)(v.default,{className:_()(n["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return N?(0,C.jsx)(I,{ref:c,overlayWidth:h.overlayWidth,value:f,setValue:x,single:b,inputContent:E,extra:"function"===typeof M?M({close:()=>c.current.close(),context:u}):M,renderSelectedContent:L,showSelectedTag:F,trigger:"click",placement:j,getPopupContainer:y,children:h.children}):(0,C.jsxs)("div",{className:n["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,C.jsx)(P,{size:h.modalSize,ref:i,single:h.single,maxLength:h.maxLength,disabledScroller:!0,wrapClassName:_()(n.overlay,n["is-modal"],l),title:h.placeholder,value:f,onChange:x,extra:"function"===typeof M?M({close:()=>i.current.close(),context:u}):M,showSelectedTag:F,renderSelectedContent:L,children:h.children}),E]})}),T=e=>{let{api:t,className:l,displayItems:s,wrapClassName:r,...a}=e;const[i,c]=(0,d.useState)(""),[m,p]=(0,d.useState)(new Map(s.map(e=>[e.value,e]))),[f,x]=(0,d.useState)({}),{message:v}=g.App.useApp(),b=e=>{const t=e.filter(e=>m.get(e.value)!==e);0!==t.length&&p(e=>{const l=A()(e);return t.forEach(e=>{l.set(e.value,e)}),l})},y=e=>((e,t,l)=>"all"!==l?e:(t(e),e.map(e=>e.value)))(a.single?j()(e)?[]:[e]:e||[],b,a.valueType),[N,w]=u()(Object.assign({},a,{onChange:e=>{const t=((e,t,l)=>"all"!==l?e:e.map(e=>t.get(e)))(e,m,a.valueType);a.onChange&&a.onChange(a.single?S()(t):t)}},"value"in a?{value:y(a.value)}:{defaultValue:y(a.defaultValue)})),R=F({maxLength:a.maxLength,single:a.single,setValue:w,value:N,message:v.error});return(0,C.jsx)(o,{value:{mapping:m,searchText:i,setSearchText:c,appendMapping:b,setItems:e=>{f.setData(e),b(h()(a.dataFormat(e),"list",[]))},fetchApi:f,valueState:[N,R],props:a},children:(0,C.jsx)("div",{className:_()(n["input"+(a.inputContent&&"function"===typeof a.inputContent?"-custom":"")],l),children:(0,C.jsx)(M,{...t,wrapClassName:r,loading:null,setFetchApi:x,onRequestSuccess:e=>{b(h()(a.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};T.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},T.useContext=a;const k=T},19343:(e,t,l)=>{l.r(t),l.d(t,{Download:()=>u,FileButton:()=>b,FileLink:()=>j,List:()=>v,OptionButtons:()=>x,PrintButton:()=>r.PrintButton,default:()=>a(),download:()=>r.download,downloadBlobFile:()=>r.downloadBlobFile,useDownload:()=>r.useDownload,useFileModal:()=>y});l(64674);var n=l(96418),s=l.n(n),r=l(68827),a=l.n(r),o=l(3382),i=l(83136),d=l.n(i),c=l(70579);r.Download.useDownload=r.useDownload,r.Download.downloadBlobFile=r.downloadBlobFile;const u=r.Download;var m=l(26304),p=l.n(m),h=l(74065),g=l.n(h),f=l(96252);const _=e=>{let{apis:t}=e;const l=(0,f.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=l({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:p()(e.filename.split(".")).join(".")},onSubmit:async l=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},l,{name:`${l.name}.${g()(e.filename.split("."))}`}),item:e})))&&n.close()}},children:(0,c.jsx)(f.default,{column:1,list:[(0,c.jsx)(f.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},x=e=>{var t;const l=_({apis:e.apis});return(0,c.jsx)(r.FileListOptionButtons,{...e,onEdit:t=>l(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,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}})},v=e=>{let{apis:t,...l}=e;const n=_({apis:t});return(0,c.jsx)(r.FileList,{...l,apis:t,onEdit:e=>n(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof l.renderModal?l.renderModal:e=>{let{onCancel:t,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}})},b=e=>(0,c.jsx)(r.FileButton,{...Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}}})}),j=e=>{const{className:t,...l}=Object.assign({},e);return(0,c.jsx)(b,{...l,className:d()(t,"btn-no-padding"),type:"link",children:l.children||l.filename||l.originName})},y=e=>{const{title:t,children:l,footer:n}=(0,r.useFileModalProps)(Object.assign({},e)),a=(0,o.useModal)();return s()(()=>a({title:t,children:l,footer:n}))}},24474:(e,t,l)=>{l.r(t),l.d(t,{DragArea:()=>X,DragAreaOuter:()=>G,DragButton:()=>H,FileUpload:()=>ne,Title:()=>E,UploadButton:()=>q,UploadTips:()=>Q,default:()=>ee});var n=l(73884),s=l(33097),r=l.n(s),a=l(55199);const o="style_file-list-outer__wPhbb__RltKb",i="style_file-list-title__zXM5r__RltKb",d="style_container__P4RaF__RltKb",c="style_file-preview-inner__cvE72__RltKb",u="style_file-preview__M-Asq__RltKb",m="style_drag-area__Q+lm7__RltKb",p="style_upload-drag-close__u5o8W__RltKb",h="style_upload-drag-tips__z7puZ__RltKb",g="style_upload-drag-icon__sGGoS__RltKb",f="style_upload-drag-title__9Afmb__RltKb",_="style_upload-drag-text__o38vS__RltKb",x="style_title-group__8IJkS__RltKb",v="style_upload-btn__Q+Jxn__RltKb",b="style_total-count__z1fyd__RltKb",j="style_file-select__mHqyI__RltKb",y="style_file-name__QkvMn__RltKb",A="style_file-select-info__fOLiM__RltKb",N="style_file-select-option__AbDrD__RltKb";var S=l(75087),w=l.n(S),C=l(74065),F=l.n(C),R=l(57469),P=l.n(R),I=l(64671),M=l(19343),T=l(47458),k=l(83136),O=l.n(k),L=l(70579);const E=e=>{let{currentTab:t,setCurrentTab:l,previewMap:n,previewList:s,getPermission:r,currentPreviewFileId:o,setCurrentPreviewFileId:d,itemApis:c,children:u,maxWidth:m=260,getPopupContainer:p}=e;return(0,L.jsx)("div",{className:i,children:(0,L.jsxs)(a.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,L.jsx)(a.Col,{children:(0,L.jsxs)(a.Space,{className:O()(x,"core-file-list-title-group"),size:4,children:[(0,L.jsx)(a.Segmented,{value:t,onChange:l,options:[{label:(0,L.jsxs)(a.Space,{size:4,children:[(0,L.jsx)(I.default,{type:"icon-shitu-liebiao"}),(0,L.jsx)(T.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,L.jsxs)(a.Space,{size:4,children:[(0,L.jsx)(I.default,{type:"icon-shitu-yulan"}),(0,L.jsx)(T.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&o&&n.get(o)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(a.Select,{className:j,variant:"borderless",popupMatchSelectWidth:!1,value:o,onChange:d,getPopupContainer:p,children:s.map(e=>{let{filename:t,userName:l,date:n,id:s}=e;return(0,L.jsx)(a.Select.Option,{className:N,value:s,children:(0,L.jsxs)(a.Space,{direction:"vertical",children:[(0,L.jsxs)(a.Space,{size:4,align:"start",children:[(0,L.jsx)(w(),{type:F()(t.split(".")),size:14}),(0,L.jsx)(a.Typography.Text,{className:y,ellipsis:!0,style:{"--max-width":`${m}px`},children:t})]}),l||n?(0,L.jsxs)(a.Space,{className:A,size:24,children:[(0,L.jsxs)("div",{children:[(0,L.jsx)(T.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",l]}),(0,L.jsxs)("div",{children:[(0,L.jsx)(T.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&P()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},s)})}),(0,L.jsx)(M.OptionButtons,{hasPreview:!1,getPermission:r,item:n.get(o),apis:c}),(0,L.jsx)("div",{className:b,children:(0,L.jsx)(T.FormattedMessage,{id:"totalCount",values:{count:s.length},moduleName:"FileList"})})]})]})}),(0,L.jsx)(a.Col,{children:u})]})})},D=e=>({"en-US":()=>l.e(3333).then(l.bind(l,63333)),"zh-CN":()=>l.e(8795).then(l.bind(l,48795))}[e]());var K=l(70720),z=l.n(K);const U=(0,n.createContext)({}),{Provider:B}=U,$=()=>(0,n.useContext)(U);var W=l(68827),V=l(81348);const H=e=>{let{children:t}=e;const{onOpenChange:l,getDragButtonEl:n}=$();return(0,L.jsx)("div",{ref:n,className:v,onClick:()=>{l(e=>!e)},children:(0,L.jsxs)(a.Typography.Text,{className:"ant-btn",children:[(0,L.jsx)(I.default,{type:"icon-tuozhuaishangchuan"}),t||(0,L.jsx)(T.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},q=e=>{let{children:t}=e;const{accept:l,onFileSelected:n}=$();return(0,L.jsx)(W.FileInput,{className:O()(v,"btn-no-padding"),accept:l,multiple:!0,onChange:n,children:e=>{let{children:l,...n}=e;return(0,L.jsxs)(a.Button,{...n,type:"text",children:[(0,L.jsx)(I.default,{type:"icon-tianjia"}),t,l]})}})},G=e=>{let{title:t,accept:l=[".png",".jpg",".pdf",".docx",".doc"],fileSize:s=20,maxLength:r,onFileSelected:i,children:c,className:u,defaultOpen:m=!1}=e;const[p,h]=(0,n.useState)(m),g=(0,n.useRef)(null),f=z()(e=>{g.current&&(g.current.contains(e.target)||e.target===g.current||h(!1))});return(0,L.jsx)(T.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,L.jsx)(B,{value:{open:p,onOpenChange:h,accept:l,fileSize:s,maxLength:r,onFileSelected:i,getDragButtonEl:e=>{g.current=e}},children:(0,L.jsxs)(a.Space,{className:o,direction:"vertical",children:[t,(0,L.jsx)("div",{className:O()(d,u),ref:f,onDragEnter:()=>{h(!0)},children:c})]})})})},Q=e=>{let{icon:t,title:l,renderTips:n=e=>e}=e;const{accept:s,fileSize:r,maxLength:a}=$(),o=n((0,T.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:s.map(e=>e.replace(/^\./,"")).join("\u3001"),size:r}),{fileSize:r,maxLength:a,accept:s});return(0,L.jsxs)("div",{className:O()(h,"upload-drag-tips"),children:[(0,L.jsx)("div",{className:g,children:t||(0,L.jsx)(I.default,{type:"icon-shangchuan",size:64})}),(0,L.jsx)("div",{className:f,children:l||(0,L.jsx)(T.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,L.jsx)("div",{className:_,children:o})]})},X=e=>{let{children:t=(0,L.jsx)(Q,{}),className:l}=e;const{open:n,accept:s,onOpenChange:r,onFileSelected:o}=$();return n?(0,L.jsxs)("div",{className:O()(m,l),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;r(!1);const t=Array.from(e.dataTransfer.files).filter(e=>(0,V.A)(e,s));o(t)},onDragEnd:()=>{r(!1)},children:[(0,L.jsx)(a.Button,{className:p,type:"text",shape:"circle",size:"small",icon:(0,L.jsx)(I.default,{type:"icon-close-bold"}),onClick:()=>{r(!1)}}),t]}):null};var Y=l(50196),J=l(63743);const Z=e=>{var t,l;let{className:s,maxLength:o=Number.MAX_VALUE,list:i,setList:d,infoItemRenders:m,defaultTab:p="list",defaultPreviewFileId:h,apis:g,getPermission:f=()=>!0,titleExtra:_=null,fileSize:x=20,accept:v=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:b}=e;const{apis:j}=(0,J.usePreset)(),y=Object.assign({},j,g),A=(i||[]).map(e=>Object.assign({},{id:e.ossId},e)),{fileList:N,onFileSelected:S}=(0,W.useFileUpload)({maxLength:o,multiple:!0,value:A,onChange:d,concurrentCount:1,onAdd:()=>{C("list")},onSave:async function(e){if("function"===typeof y.onSave){for(var t=arguments.length,l=new Array(t>1?t-1:0),n=1;n<t;n++)l[n-1]=arguments[n];const s=await y.onSave(e,...l);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:y.onUpload||y.ossUpload}),[w,C]=(0,n.useState)(p),{formatMessage:F}=(0,T.useIntl)({moduleName:"FileList"}),{message:R}=a.App.useApp(),P=(0,n.useMemo)(()=>new Map(A.map(e=>[e.id,e])),[A]),[I,k]=(0,n.useState)(h||r()(A,"[0].id",null));(0,n.useEffect)(()=>{I&&P.get(I)||k(r()(A,"[0].id",null))},[A,P,I]);const O={...y,onPreview:e=>{k(e.id),C("preview")},onDelete:async e=>{y.onDelete&&!1===await y.onDelete(e)||(d(t=>{const l=t.slice(0),n=t.findIndex(t=>{let{id:l}=t;return l===e.id});return n>-1&&l.splice(n,1),l}),R.success(F({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:l}=e;const n=y.onEdit&&await y.onEdit({formData:t,item:l});return!1!==n&&(d(e=>{const n=e.slice(0),s=e.findIndex(e=>{let{id:t}=e;return t===l.id});return s>-1&&n.splice(s,1,Object.assign({},l,{filename:t.name})),n}),R.success(F({id:"successEditFileName"},{name:l.filename}))),n}},D="function"===typeof _?_({currentPreviewFileId:I,currentTab:w}):_;return(0,L.jsx)("div",{className:s,children:(0,L.jsxs)(G,{title:(0,L.jsx)(E,{currentTab:w,setCurrentTab:C,previewMap:P,previewList:A,getPermission:f,currentPreviewFileId:I,setCurrentPreviewFileId:k,itemApis:O,getPopupContainer:b,children:(0,L.jsxs)(a.Space,{split:(0,L.jsx)(a.Divider,{type:"vertical"}),children:[D,f("add",{})?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(H,{children:F({id:"dragText"})}),(0,L.jsx)(q,{children:F({id:"uploadFile"})})]}):null]})}),fileSize:x,maxLength:o,onFileSelected:S,accept:v,defaultOpen:0===A.length,children:["list"===w?(0,L.jsx)(M.List,{dataSource:[...A,...N],getPermission:f,apis:O,infoItemRenders:m}):null,"preview"===w?I?(0,L.jsx)("div",{className:c,children:(0,L.jsx)(Y.default,{className:u,src:null===(t=P.get(I))||void 0===t?void 0:t.src,id:I,apis:y,filename:null===(l=P.get(I))||void 0===l?void 0:l.filename})}):(0,L.jsx)(a.Empty,{image:a.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,L.jsx)(X,{})]})})},ee=e=>(0,L.jsx)(T.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,L.jsx)(Z,{...e})});var te=l(10986),le=l.n(te);const ne=e=>{let{maxLength:t=Number.MAX_VALUE,apis:l,getPermission:n=()=>!0,fileSize:s=20,accept:o=[".png",".jpg",".pdf",".docx",".doc"],defaultList:i=[],...d}=e;const{apis:c}=(0,J.usePreset)(),u=Object.assign({},c,l),[m,p]=le()({defaultList:i,...d},{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:h,onFileSelected:g}=(0,W.useFileUpload)({maxLength:t,multiple:!0,value:m,onChange:p,concurrentCount:1,onSave:async function(e){if("function"===typeof u.onSave){for(var t=arguments.length,l=new Array(t>1?t-1:0),n=1;n<t;n++)l[n-1]=arguments[n];const s=await u.onSave(e,...l);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:u.ossUpload});return(0,L.jsxs)(G,{title:(0,L.jsxs)(a.Row,{children:[(0,L.jsx)(a.Col,{flex:1}),(0,L.jsx)(a.Col,{children:(0,L.jsxs)(a.Space,{split:(0,L.jsx)(a.Divider,{type:"vertical"}),children:[(0,L.jsx)(H,{}),(0,L.jsx)(q,{children:"\u4e0a\u4f20"})]})})]}),fileSize:s,maxLength:t,onFileSelected:g,accept:o,children:[(0,L.jsx)(M.List,{dataSource:[...h,...m],getPermission:n,apis:u}),(0,L.jsx)(X,{})]})}},29556:(e,t,l)=>{l.r(t),l.d(t,{TooltipFetch:()=>C,TooltipInfoLabel:()=>N,default:()=>y});var n=l(55199),s=l(83136),r=l.n(s);const a="style_tooltip__zHGMI__RltKb",o="style_large__lvmsm__RltKb",i="style_small__nUt0r__RltKb",d="style_popup-content__-rKQN__RltKb",c="style_title__1EQPq__RltKb",u="style_important-info__qTSZY__RltKb",m="style_error__yTTq3__RltKb",p="style_warning__CMJxz__RltKb",h="style_success__AvJVx__RltKb",g="style_sub-title__uD8CH__RltKb",f="style_content__lzgUz__RltKb",_="style_alone__q6q82__RltKb",x="style_fetch-content__tEOEV__RltKb",v="style_fetch-loading__tN-WB__RltKb",b="style_title-info-icon__iY8Q+__RltKb";var j=l(70579);const y=e=>{let{overlayClassName:t,title:l,size:s,subtitle:x,content:v,importantInfo:b,importantInfoType:y,moreInfo:A,...N}=e;return(0,j.jsx)(n.Tooltip,{...N,rootClassName:r()(t,a,{[i]:"small"===s,[o]:"large"===s}),title:(0,j.jsxs)(n.Space,{direction:"vertical",className:d,children:[l&&(0,j.jsx)("div",{className:c,children:l}),b&&(0,j.jsx)("div",{className:r()(u,{[h]:"success"===y,[p]:"warning"===y,[m]:"error"===y}),children:b}),x&&(0,j.jsx)("div",{className:g,children:x}),v&&(0,j.jsx)("div",{className:r()(f,{[_]:[l,x,b,A].every(e=>!e)}),children:v}),A&&(0,j.jsx)("div",{children:A})]})})};var A=l(64671);const N=e=>{let{title:t,tooltipTitle:l}=e;return(0,j.jsxs)("div",{children:[t,l?(0,j.jsx)(y,{...l,children:(0,j.jsx)("span",{children:(0,j.jsx)(A.default,{type:"icon-xinxi-miaobian",className:b,size:14})})}):null]})};var S=l(73884),w=l(87558);const C=e=>{let{api:t,children:l,fetchContent:s,showLoading:a=!0,loadingClassName:o,force:i,...d}=e;const[c,u]=(0,S.useState)(!1),m=(0,w.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:p,isLoading:h,data:g,send:f}=m;return(0,j.jsx)(y,{...Object.assign({},d,p?s(g,m):{}),open:c,onOpenChange:async e=>{!e||p&&!i||await f({type:"refresh"}),u(e)},children:(0,j.jsxs)("span",{className:x,children:[l,a&&h?(0,j.jsx)(n.Spin,{size:"small",className:r()(o,v)}):null]})})}},30096:(e,t,l)=>{l.d(t,{Ay:()=>c});var n=l(98434),s=l(43856);const{useOnChange:r}=n.hooks,a=e=>{const t=t=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=a(s.UserField),i=a(s.TableField),d=a(s.AdvancedSelectField);d.createdList=e=>{let{renderList:t,defaultProps:l}=e;return a((0,s.createListField)({renderList:t,defaultProps:l}))},d.User=o,d.Table=i;const c=d},30891:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(98434);const s=e=>{let{children:t}=e;const{openApi:l,formData:s}=(0,n.useFormContext)();return t({...l,formData:s})}},34643:(e,t,l)=>{l.d(t,{Ay:()=>u,Pg:()=>d,eM:()=>c});var n=l(98434),s=l(43856),r=l(60586);const{useOnChange:a}=n.hooks,o=e=>{const t=t=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(s.SuperSelectField),d=o(r.$9),c=o(s.SuperSelectTableListField),u=i},35774:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(98434),s=l(81014),r=l(70579);const a=e=>{let{onClick:t,...l}=e;const a=(0,n.useFormContext)();return(0,r.jsx)(s.default,{...l,onClick:e=>t(a,e)})}},36972:(e,t,l)=>{l.d(t,{A:()=>M});var n=l(73884),s=l(87558),r=l(98434),a=l(78491),o=l.n(a),i=l(55199);const d="style_salary__sUOtT__RltKb",c="style_salary-type__Sl1LC__RltKb",u="style_input-number__eoEZr__RltKb",m="style_full__NPqJm__RltKb",p="style_input-group__toLB7__RltKb",h="style_input-group-no-mb__C4nzh__RltKb";var g=l(47458),f=l(55431),_=l(48731),x=l(10986),v=l.n(x),b=l(21079),j=l(70579);const y=(0,s.withFetch)(e=>{let{data:t,...l}=e;return(0,j.jsx)(i.Select,{...l,options:t})}),{useDecorator:A,useUIDecorator:N}=r.hooks,S=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},w=e=>{let{children:t,isError:l}=e;return(0,j.jsx)("div",{style:{marginBottom:0},className:"react-form__field "+(l?"is-error":""),children:(0,j.jsx)("div",{className:"react-form__field-main",children:(0,j.jsx)("div",{className:"react-form__field-input",children:(0,n.cloneElement)(t,{className:"react-form__field-component"})})})})},C=e=>{let{getPopupContainer:t,onBlur:l,api:n,isRange:s=!0,placeholder:r,disabled:a,showMonth:f,remindUnit:x,req:A,...N}=e;const[C,F]=v()(N),{formatMessage:R}=(0,g.useIntl)({moduleName:"FormInfo"}),P=R({id:"defaultSelectPlaceholder"},{label:""}),I=R({id:"defaultInputPlaceholder"},{label:""}),M=[6].indexOf((0,b.get)(C,"type"))>-1,T=1===(0,b.get)(C,"type"),k=7===(0,b.get)(C,"type"),O=e=>{if(e)return M?e/1e4:e},L=o()(l||(()=>{}));return(0,j.jsx)("div",{ref:L,className:d,children:(0,j.jsxs)(i.Row,{wrap:!1,gutter:10,children:[(0,j.jsx)(i.Col,{children:(0,j.jsx)(y,{className:c,...n,value:(0,b.get)(C,"type"),onChange:e=>{F&&F(Object.assign({},T?{}:C,{type:e,min:"",max:""}))},placeholder:r||P,getPopupContainer:t,disabled:a})}),T?null:(0,j.jsxs)(i.Col,{flex:1,children:[s&&(0,j.jsxs)(i.Row,{className:x&&[5,6].includes(null===C||void 0===C?void 0:C.type)?p:h,wrap:!1,children:[(0,j.jsx)(i.Col,{flex:1,children:(0,j.jsx)(w,{isError:!(0,b.get)(C,"min")&&A,children:(0,j.jsx)(i.InputNumber,{disabled:a,placeholder:I,formatter:S,value:O((0,b.get)(C,"min")),style:{textAlign:"center"},onChange:e=>{F(Object.assign({},C,{min:M?1e4*e:e}))},description:x&&[5,6].includes(null===C||void 0===C?void 0:C.type)?(0,j.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,j.jsx)(_.default,{name:null===C||void 0===C?void 0:C.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",M?R({id:"thousand"}):k?"":R({id:"yuan"})]}):null})})}),(0,j.jsx)(i.Col,{children:(0,j.jsx)(i.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,j.jsx)(i.Col,{flex:1,children:(0,j.jsx)(w,{isError:!(0,b.get)(C,"max")&&A,children:(0,j.jsx)(i.InputNumber,{disabled:a,placeholder:I,formatter:S,value:O((0,b.get)(C,"max")),style:{textAlign:"center"},addonAfter:M?R({id:"thousand"}):k?"":R({id:"yuan"}),onChange:e=>{F(Object.assign({},C,{max:M?1e4*e:e}))}})})}),5===(0,b.get)(C,"type")&&f&&(0,j.jsx)(i.Col,{children:(0,j.jsxs)("span",{className:(0,b.get)(C,"max")&&(0,b.get)(C,"min")&&!(0,b.get)(C,"month")&&A?"error":"",children:[(0,j.jsx)("span",{className:u,children:"X"}),(0,j.jsx)(i.InputNumber,{min:12,disabled:a,value:(0,b.get)(C,"month"),onChange:e=>{F(Object.assign({},C,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!s&&!k&&(0,j.jsx)(i.InputNumber,{disabled:a,min:0,max:1e8,placeholder:I,className:m,formatter:S,value:O((0,b.get)(C,"max")),style:{textAlign:"center"},addonAfter:M?R({id:"thousand"}):k?"":R({id:"yuan"}),onChange:e=>{F(Object.assign({},C,{max:M?1e4*e:e}))}}),!s&&k&&(0,j.jsx)(i.Input,{disabled:a,placeholder:I,className:m,onChange:e=>{F(Object.assign({},C,{max:e.target.value}))},value:(0,b.get)(C,"max"),style:{textAlign:"center"}})]})]})})},F={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"}]},R={type:5,min:"",max:"",month:12},P=e=>{let{api:t=F,defaultValue:l=R,...n}=e;return(0,j.jsx)(g.IntlProvider,{moduleName:"FormInfo",importMessages:f.A,children:(0,j.jsx)(C,{...n,api:t,defaultValue:l})})},I=e=>{var t;return A({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(P)};I.Field=P;const M=I},41381:(e,t,l)=>{l.r(t),l.d(t,{default:()=>s.a});l(55664);var n=l(22436),s=l.n(n),r={};for(const a in n)"default"!==a&&(r[a]=()=>n[a]);l.d(t,r)},45053:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(98434),s=l(55199),r=l(73884),a=l(83136),o=l.n(a),i=l(70720),d=l.n(i),c=l(47094),u=l(70579);const m=e=>{let{name:t,groupName:l,overlayClassName:a,errorRender:i=()=>null,groupIndex:m,children:p}=e;const h=(e=>{let{name:t,groupName:l,groupIndex:s}=e;const{emitter:a,formState:o}=(0,n.useFormContext)(),i=(0,r.useRef)({name:t,groupName:l,groupIndex:s});i.current={name:t,groupName:l,groupIndex:s};const d=(0,r.useRef)(o);d.current=o;const[c,u]=(0,r.useState)(null);return(0,r.useEffect)(()=>{const e=a.addListener("form-field-validate-complete",e=>{let{id:t,validate:l}=e;const s=d.current[t];if(!s)return;const r=i.current;s.name!==r.name||r.groupName&&(s.groupName!==r.groupName||s.groupIndex!==r.groupIndex)||u(2===l.status?Object.assign({},l,{label:s.label,errMsg:n.util.compileErrMsg(l.msg,s.label)}):null)});return()=>{e&&e.remove()}},[a]),c})({name:t,groupName:l,groupIndex:m}),[g,f]=(0,r.useState)(!1),_=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),x=(0,r.useRef)(null),v=(0,r.useRef)(null);d()(()=>{f(!1)}).current={contains:e=>x.current.contains(e)||v.current&&v.current.contains(e)};const[b,j]=(0,r.useState)(0);return(0,r.useLayoutEffect)(()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&j(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const l=new MutationObserver(e);return l.observe(x.current,{subtree:!0,childList:!0}),()=>{l.disconnect(),t.disconnect()}},[]),(0,u.jsx)(s.Popover,{open:!!_,rootClassName:o()(a,c.A["error-tip-overlay"]),content:_&&(0,u.jsx)("div",{ref:v,style:{width:b},className:o()(c.A["error-tip-overlay-content"]),children:_}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{f(!0)},children:p})})}},46237:(e,t,l)=>{l.d(t,{Ay:()=>i,oc:()=>o});var n=l(73884);const s=(0,n.createContext)([]),{Provider:r,Consumer:a}=s,o=()=>(0,n.useContext)(s),i=r},46732:(e,t,l)=>{l.d(t,{A:()=>c,K:()=>d});var n=l(75363),s=l(73884),r=l(98434),a=l(47094),o=l(70579);const i=(0,s.createContext)(""),{Provider:d}=i,c=e=>{let{name:t}=e;const l=(0,s.useContext)(i),d=(0,r.useGroup)();return l&&(0,o.jsx)(n.default,{className:a.A["helper-guide-field"],name:l+"-"+(d.name?d.name+"-":"")+t})}},47094:(e,t,l)=>{l.d(t,{A:()=>n});const n={"form-outer":"style_form-outer__IWUs0__RltKb","form-drawer":"style_form-drawer__uYDXS__RltKb","table-list":"style_table-list__6lp-A__RltKb","list-item":"style_list-item__hVzQa__RltKb","table-list-inner":"style_table-list-inner__uc8DK__RltKb","table-list-field":"style_table-list-field__JSJfB__RltKb","table-list-header":"style_table-list-header__KXvKa__RltKb","is-req":"style_is-req__LfXQf__RltKb","table-list-extra":"style_table-list-extra__faYTK__RltKb","list-btn":"style_list-btn__WKYkm__RltKb","form-info":"style_form-info__B8bAP__RltKb","list-part":"style_list-part__Ld0GA__RltKb","is-important":"style_is-important__vaBk1__RltKb","list-item-part":"style_list-item-part__MzKP7__RltKb","money-input":"style_money-input__J86Pb__RltKb","money-description":"style_money-description__Gz3p7__RltKb","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__RltKb","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__RltKb","helper-guide-field":"style_helper-guide-field__Wke3w__RltKb","error-tip-overlay":"style_error-tip-overlay__aNCGc__RltKb","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__RltKb","column-not-layout":"style_column-not-layout__+SXC+__RltKb","mult-field-item":"style_mult-field-item__eS0nJ__RltKb","react-form__field-label":"style_react-form__field-label__2U91E__RltKb","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__RltKb","form-step-section":"style_form-step-section__RvkHy__RltKb"}},47338:(e,t,l)=>{l.r(t),l.d(t,{ConfirmButton:()=>n.ConfirmButton,ConfirmLink:()=>n.ConfirmLink,ConfirmText:()=>n.ConfirmText,default:()=>s,withConfirm:()=>n.withConfirm});l(9056);var n=l(48686);const s=n.ConfirmButton},48221:(e,t,l)=>{l.d(t,{Ay:()=>i,WJ:()=>c,Xy:()=>d});var n=l(25963),s=l(73025),r=l(47094),a=l(76995),o=l(70579);const i=e=>(0,o.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:r.A["form-drawer"]}))}),d=()=>{const e=(0,n.useDrawer)();return t=>e((0,a.A)(Object.assign({},t,{className:r.A["form-drawer"]})))},c=e=>{const t=d();return(0,o.jsx)(s.A,{...e,modalFunc:t})}},50196:(e,t,l)=>{l.r(t),l.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});l(64674);var n=l(68827)},55431:(e,t,l)=>{l.d(t,{A:()=>n});const n=e=>({"en-US":()=>l.e(1649).then(l.bind(l,21649)),"zh-CN":()=>l.e(711).then(l.bind(l,80711))}[e]())},56259:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(89319),s=l(98434);const{useOnChange:r}=s.hooks,a=e=>r(Object.assign({},{},e))(n.A);a.Field=n.A;const o=a},64261:(e,t,l)=>{l.d(t,{A:()=>f});var n=l(98434),s=l(57469),r=l.n(s),a=l(34677),o=l.n(a),i=l(33097),d=l.n(i),c=(l(17448),l(2842)),u=l(46732),m=l(13050),p=l(70579);const h=n.RULES.REQ,g=n.RULES.LEN,f=async(e,t)=>{const{locale:l}=Object.assign({},t);n.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e}),n.interceptors.output.use("photo-string",e=>{var t,l;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(l=t.split("?"))||void 0===l?void 0:l[0])||e.id:e}),n.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>({id:e.split("?")[0]})):e),n.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>null===e||void 0===e?void 0:e.id):e),n.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),n.interceptors.output.use("to-array",e=>[e]),n.interceptors.input.use("array-single",e=>e?[e]:[]),n.interceptors.output.use("array-single",e=>e?e[0]:null),n.interceptors.input.use("boolean-number",e=>1===e||"1"===e),n.interceptors.output.use("boolean-number",e=>e?1:0),n.interceptors.input.use("un-boolean",e=>!e),n.interceptors.output.use("un-boolean",e=>!e),n.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),n.interceptors.input.use("date-string",e=>e?r()(e):null),n.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),n.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}),n.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}),n.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),n.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:s}=await(0,m.loadModule)("components-iconfont:CountyFlag@load"),a=await s(),i=new Map(a.map(e=>{let{ab:t,country_code:l}=e;return[t,l]})),f=new Map(a.map(e=>{let{ab:t,country_code:l}=e;return[l,t]}));n.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?`+${i.get(e.code)} ${e.value.replace(/\s+/g,"")}`:""),n.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:f.get(Number(t[1])),value:t[2]}:{code:f.get(86),value:e}});const _=(e,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${(t=Object.assign({},t)).end}`,"en-US":`%s must be equal to ${t.end}`},LENGTH_MORE:{"zh-CN":`%s\u5fc5\u987b\u5927\u4e8e${t.start}`,"en-US":`%s must be greater than ${t.start}`},LENGTH_LESS:{"zh-CN":`%s\u5fc5\u987b\u5c0f\u4e8e${t.end}`,"en-US":`%s must be less than ${t.end}`}},s=d()(n,`${e}.${l}`);return s||d()(n,`${e}.zh-CN`)};(0,n.preset)(o()({},{type:"inner",rules:{REQ:function(){return Object.assign({},h(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];const[n,s,r]=t;let a="";return r===s&&n.length!==Number(r)&&(a="LENGTH_EQUAL"),n.length<s&&(a="LENGTH_MORE"),r&&n.length>r&&(a="LENGTH_LESS"),Object.assign({},g(...t),{errMsg:_(a,{start:s,end:r})})},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:c.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,l)=>l===t&&e.length!==Number(l)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:l})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:l})}:l&&e.length>l?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:l})}:{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,p.jsx)(u.A,{...e})}},"function"===typeof e?e({interceptors:n.interceptors,RULES:n.RULES}):e))}},76995:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55431),s=l(98434),r=l(47458),a=l(83799),o=l(83136),i=l.n(o),d=l(47094),c=l(70579);const u="FormInfo",m=e=>{let{className:t,withDecorator:l,footerButtons:o,formProps:m,cancelText:p,saveText:h,autoClose:g=!0,...f}=e;return{...f,footerButtons:o||[{children:(0,c.jsx)(r.IntlProvider,{importMessages:n.A,moduleName:u,children:p||(0,c.jsx)(r.FormattedMessage,{id:"Cancel",moduleName:u})}),ButtonComponent:s.CancelButton},{type:"primary",children:(0,c.jsx)(r.IntlProvider,{importMessages:n.A,moduleName:u,children:h||(0,c.jsx)(r.FormattedMessage,{id:"Save",moduleName:u})}),ButtonComponent:s.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const s=t=>{const{onSubmit:l,...s}=Object.assign({},"function"===typeof m?m(t):m);return(0,c.jsx)(a.lV,{...s,onSubmit:async function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];!1!==(l&&await l(e,Object.assign({},t),...s))&&g&&t.close()},children:(0,c.jsx)(r.IntlProvider,{importMessages:n.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof l?l(s,t):s(t)},className:i()(t,d.A["form-outer"])}}},78756:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(43856),s=l(98434);const{useOnChange:r}=s.hooks,a=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);a.Field=n.IndustrySelectField,a.Enum=n.IndustrySelectField.Enum;const o=a},81026:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(43856),s=l(98434);const{useOnChange:r}=s.hooks,a=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);a.Field=n.FunctionSelectField,a.Enum=n.FunctionSelectField.Enum;const o=a},83230:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(98434),s=l(43856);const{useOnChange:r}=n.hooks,a=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.CascaderField);a.Field=s.CascaderField,a.createTreeUtils=s.createTreeUtils;const o=a},83799:(e,t,l)=>{l.d(t,{NI:()=>E,TQ:()=>u.A,JL:()=>T,eu:()=>x.A,vx:()=>m.A,lr:()=>H,s3:()=>q,lV:()=>s.A,d4:()=>p.A,ZN:()=>h.A,pd:()=>K,YI:()=>$,h2:()=>D,F0:()=>g.A,go:()=>f.default,tt:()=>n.Rate,lu:()=>v.A,l6:()=>B,Ap:()=>n.Slider,wD:()=>k,eM:()=>O,Pg:()=>L,dO:()=>n.Switch,EY:()=>R,fs:()=>z,AG:()=>V,f7:()=>W,w5:()=>j.A,_O:()=>_.A,nk:()=>G});var n=l(98434),s=l(85696),r=l(47458),a=l(73884),o=l(30891),i=l(47094),d=l(30096),c=l(34643),u=l(1904),m=l(83230),p=l(81026),h=l(78756),g=l(92328),f=l(2842),_=l(89099),x=l(96339),v=l(36972),b=l(15209),j=l(56259),y=l(55199),A=l(10986),N=l.n(A),S=l(70579);const{useDecorator:w}=n.hooks,C=e=>{let{children:t,...l}=e;const[n]=N()(l);return(0,S.jsxs)(y.Typography.Text,{...l,children:[(0,S.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,S.jsx)(y.Input,{value:n})}),t||n]})},F=e=>w(e)(C);F.Field=C;const R=F;var P=l(45053);const I=e=>{const t=(0,a.forwardRef)((t,l)=>{let{placeholder:n,label:s,...a}=t;return(0,S.jsx)(r.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:s},children:t=>(0,S.jsx)(e,{...a,ref:l,label:s,placeholder:n||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(l=>{t[l]=e[l]}),t},M=e=>{const t=(0,a.forwardRef)((t,l)=>{let{placeholder:n,label:s,...a}=t;return(0,S.jsx)(r.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:s},children:t=>(0,S.jsx)(e,{...a,ref:l,label:s,placeholder:n||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(l=>{t[l]=e[l]}),t},T=M(d.Ay),k=M(c.Ay),O=M(c.eM),L=M(c.Pg),E=M(u.N),D=I(b.A),K=I(n.Input);K.Password=I(n.Input.Password);const z=(U=n.TextArea,e=>{let{placeholder:t,label:l,className:n,...s}=e;return(0,S.jsx)(r.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:e=>(0,S.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,S.jsx)(U,{...s,label:l,placeholder:t||e})})})});var U;const B=M(n.Select),$=I(n.InputNumber),W=M(n.TreeSelect),V=M(n.TimePicker);V.RangePicker=M(n.TimePicker.RangePicker);const H=M(n.DatePicker);H.MonthPicker=M(n.DatePicker.MonthPicker),H.RangePicker=M(n.DatePicker.RangePicker),H.WeekPicker=M(n.DatePicker.WeekPicker);const q=e=>{let{placeholder:t,label:l,soFarText:s,...a}=e;const{formatMessage:o}=(0,r.useIntl)({moduleName:"FormInfo"});return(0,S.jsx)(n.DatePickerToday,{...a,label:l,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:s||o({id:"soFarText"})})},G=Object.assign({},n,{Input:K,InputUpperCase:D,TextArea:z,Select:B,InputNumber:$,TreeSelect:W,TimePicker:V,DatePicker:H,DatePickerToday:q,Form:s.A,FormItem:o.A,AdvancedSelect:T,SuperSelect:k,SuperSelectTableList:O,SuperSelectUser:L,AddressSelect:u.A,AddressInput:E,MoneyInput:g.A,PhoneNumber:f.default,Cascader:m.A,FunctionSelect:p.A,IndustrySelect:h.A,TypeDateRangePicker:j.A,Upload:_.A,Avatar:x.A,SalaryInput:v.A,Text:R,Rate:n.Rate,Switch:n.Switch,Slider:n.Slider,ErrorTip:P.A})},85696:(e,t,l)=>{l.d(t,{A:()=>v});var n=l(73884),s=l(63743),r=l(33097),a=l.n(r),o=l(64261),i=l(47458),d=l(55431),c=l(46237),u=l(41381),m=l(46732),p=l(98434),h=l(83136),g=l.n(h),f=l(47094),_=l(70579);const x=e=>{let{children:t}=e;const[l,r]=(0,n.useState)(!1),i=(0,s.usePreset)(),d=a()(i,"formInfo",{}),c=a()(i,"locale");return(0,n.useEffect)(()=>{Promise.resolve((0,o.A)(d,{locale:c})).then(()=>{r(!0)})},[d,c]),l?t:null},v=(0,n.forwardRef)((e,t)=>{let{className:l,helperGuideName:n,children:s,lang:r,...a}=e;return(0,_.jsx)(i.IntlProvider,{importMessages:d.A,moduleName:"FormInfo",children:(0,_.jsx)(c.Ay,{value:r,children:(0,_.jsx)(m.K,{value:n,children:(0,_.jsx)(x,{children:(0,_.jsx)(p.FormAntd,{...a,ref:t,className:g()(l,f.A["form-outer"]),children:(0,_.jsx)(u.default,{children:s})})})})})})})},85846:(e,t,l)=>{l.d(t,{A:()=>x});var n=l(73884),s=l(68532),r=l(55199),a=l(64671),o=l(41381),i=l(47338),d=l(2196),c=l(83136),u=l.n(c),m=l(55431),p=l(47458),h=l(47094),g=l(70579);const f=(0,p.createWithIntl)({moduleName:"FormInfo",importMessages:m.A})(e=>{let{addText:t,className:l,important:o,outer:c=(0,g.jsx)(_,{}),renderChildren:m=e=>e,deleteButtonProps:f,title:x,...v}=e;const{formatMessage:b}=(0,p.useIntl)({moduleName:"FormInfo"});return(0,g.jsx)(s.SubList,{...v,listRender:e=>{let{list:t,title:l,id:n,allowRemove:s,onRemove:c,...m}=e;return(0,g.jsxs)("div",{className:u()(h.A["list-item"],{[h.A["is-important"]]:o}),children:[(0,g.jsx)(d.A,{...m,title:l,list:t,className:h.A["list-item-part"],gap:16,extra:(0,g.jsx)(p.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>s?(0,g.jsx)(i.default,{danger:!0,className:"btn-no-padding",message:b({id:"delConfirm"},{name:l}),type:"link",onClick:()=>{c(n)},...Object.assign({},f),children:null!==f&&void 0!==f&&f.children?null===f||void 0===f?void 0:f.children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.default,{type:"icon-shanchu"}),e]})}):null})}),(0,g.jsx)(r.Divider,{})]},n)},children:(e,s)=>{let{allowAdd:r,onAdd:a}=s;return(0,n.cloneElement)(c,{title:x,addText:t,className:u()(l,h.A["list-part"]),allowAdd:r,add:()=>a({isUnshift:!1})},m(e))}})}),_=e=>{let{add:t,addText:l,className:n,allowAdd:s,...i}=e;return(0,g.jsx)(o.default.Part,{...i,className:n,extra:s&&(0,g.jsx)(p.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,g.jsxs)(r.Typography.Text,{className:h.A["list-btn"],onClick:t,children:[(0,g.jsx)(a.default,{type:"icon-tianjia"}),l||e]})})})},x=f},89099:(e,t,l)=>{l.d(t,{A:()=>y});var n=l(55199),s=l(83136),r=l.n(s),a=l(10986),o=l.n(a);const i="style_upload__t422Q__RltKb",d="style_upload-list__Q9HDc__RltKb",c="style_tips__3Gpnu__RltKb";var u=l(19343),m=l(98434),p=l(47458),h=l(1488),g=l.n(h),f=l(17508),_=l(55431),x=l(70579);const{useOnChange:v}=m.hooks,b=(0,p.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,p.useIntl)({moduleName:"FormInfo"}),{className:l,fileSize:s,maxLength:a,multiple:m,size:h,accept:_,children:v,renderTips:b,showUploadList:j,onSave:y,ossUpload:A,onUpload:N,getPermission:S,concurrentCount:w,...C}=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),[F,R]=o()(C),P=F||[],{fileList:I,onFileSelected:M}=(0,f.lN)({multiple:m,onSave:y,onUpload:A||N,fileSize:s,maxLength:a,value:P,onChange:R,concurrentCount:w}),T=[...I,...P],k=b(t({id:"uploadTips"},{extensionNames:_.map(e=>e.replace(/^\./,"")).join(","),maxLength:a,fileSize:s}),{fileSize:s,maxLength:a,accept:_});return(0,x.jsxs)(n.Space,{direction:"vertical",children:[(0,x.jsxs)(n.Flex,{align:"start",gap:8,vertical:!0,children:[(0,x.jsx)(f.Zi,{...g()(C,["value","onChange"]),size:h,multiple:m,accept:_,className:r()(i,l),onChange:M,children:v}),k&&(0,x.jsx)("div",{className:c,children:k})]}),j&&T.length>0&&(0,x.jsx)(u.List,{className:d,dataSource:T,infoItemRenders:[],getPermission:S||(e=>"delete"===e),apis:{onDelete:e=>{const t=P.slice(0),l=t.indexOf(e);l>-1&&t.splice(l,1),R(t)}}})]})}),j=e=>{let{interceptor:t="file-format",...l}=e;return v({interceptor:t,...l})(b)};j.Field=b;const y=j},92328:(e,t,l)=>{l.d(t,{A:()=>b});var n=l(10986),s=l.n(n),r=l(98434),a=l(55199),o=l(69484);const i="style_money-input__Pyur7__RltKb",d="style_money-description__9pFk4__RltKb";var c=l(83136),u=l.n(c),m=l(34677),p=l.n(m),h=l(73884),g=l(70579);const{isNotEmpty:f}=r.util||r.formUtils,{useOnChange:_}=r.hooks,x=e=>{let{chineseEmpty:t,className:l,showError:n,errorDesc:r,transformMoneyToChinese:c,onBlur:m,moneyFormat:_,...x}=e;const[v,b]=(0,h.useState)(""),[j,y]=s()(x),A=p()({controls:!1,precision:2,addonAfter:"\u5143"},x,{max:f(x.max)?x.max>o.e?o.e:x.max:o.e});return(0,g.jsxs)("div",{className:u()(l,"money-input",i),children:[(0,g.jsx)(a.InputNumber,{...A,status:v,formatter:_?e=>`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=_?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return f(t)?(Number(t)>Number(A.max)||f(A.min)&&Number(t)<Number(A.min))&&b("error"):b(""),f(t)?Number(t):null},onChange:e=>{y(e)},onBlur:e=>{m&&m(e,b)}}),(0,g.jsx)("div",{className:u()(d),children:"error"===v&&n?r:f(j)?(0,o.A)(c?c(j):j):t})]})},v=e=>_(Object.assign({placeholder:`\u8bf7\u8f93\u5165${e.label||""}`},e))(x);v.Field=x,v.toChineseCharacter=o.A;const b=v},94005:(e,t,l)=>{l.d(t,{$X:()=>_,Ay:()=>f,Wp:()=>x});var n=l(3382),s=l(73884),r=l(98434),a=l(73025),o=l(47458),i=l(47094),d=l(55431),c=l(55199),u=l(76995),m=l(70579);const p="FormInfo",h=e=>{let{items:t,children:l}=e;const[n,r]=(0,s.useState)(0);return l({currentIndex:n,setCurrentIndex:r,stepCacheRef:(0,s.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},g=e=>{let{footerButtons:t,cancelText:l,completeText:n,nextText:s,items:a,withDecorator:g,...f}=e;return(0,u.A)(Object.assign({},f,{footerButtons:e=>{let{currentIndex:t,isLastStep:i}=e;const{footerButtons:c}=Object.assign({},a[t]);return c||[{children:(0,m.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:p,children:l||(0,m.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:p})}),ButtonComponent:r.CancelButton},{type:"primary",children:(0,m.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:p,children:i?n||(0,m.jsx)(o.FormattedMessage,{id:"Complete",moduleName:p}):s||(0,m.jsx)(o.FormattedMessage,{id:"Next",moduleName:p})}),ButtonComponent:r.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const l=t=>(0,m.jsx)(h,{items:a,children:l=>{var n;let{currentIndex:s,isLastStep:r,setCurrentIndex:o,currentProps:d,stepCacheRef:u}=l;const{formProps:p,title:h,...g}=d,{onSubmit:_,...x}="function"===typeof p?p(t):p,v=Object.assign({},x.data,null===(n=u.current[s])||void 0===n?void 0:n.data);return e(Object.assign({},t,g,{currentIndex:s,isLastStep:r,setCurrentIndex:o,stepCacheRef:u,stepSection:(0,m.jsx)(c.Steps,{className:i.A["form-step-section"],current:s,items:a.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},x,{key:s,data:v,onSubmit:async function(e){u.current[s]={data:e};for(var l=arguments.length,n=new Array(l>1?l-1:0),a=1;a<l;a++)n[a-1]=arguments[a];const i=_&&await _(e,Object.assign({},t,{currentIndex:s,isLastStep:r,setCurrentIndex:o,currentProps:d,stepCacheRef:u}),...n);return f.autoClose&&!r&&!1!==i&&o(e=>e+1),!!r&&i}})}))}});return"function"===typeof g?g(l,t):l(t)},formProps:e=>{let{formProps:t,...l}=e;return Object.assign({},l,t)},children:e=>{let{children:t,stepSection:l,...n}=e;return(0,m.jsxs)(c.Flex,{vertical:!0,gap:24,children:[(0,m.jsx)(c.Flex,{justify:"center",children:l}),"function"===typeof t?t(n):t]})}}))},f=e=>(0,m.jsx)(n.default,{...g(Object.assign({},e,{className:i.A["form-modal"]}))}),_=()=>{const e=(0,n.useModal)();return t=>e(g(Object.assign({},t,{className:i.A["form-modal"]})))},x=e=>{const t=_();if(!e.api){const{modalProps:l,...n}=e;return(0,m.jsx)(c.Button,{...n,onClick:()=>{t(l)}})}return(0,m.jsx)(a.A,{...e,modalFunc:t})}},96252:(e,t,l)=>{l.r(t),l.d(t,{AddressInput:()=>x.NI,AddressSelect:()=>x.TQ,AdvancedSelect:()=>x.JL,Avatar:()=>x.eu,Cascader:()=>x.vx,DatePicker:()=>x.lr,DatePickerToday:()=>x.s3,ErrorTip:()=>h.A,Form:()=>m.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>p.A,FormModal:()=>d.Ay,FormModalButton:()=>d.W6,FormStepModal:()=>c.Ay,FormStepModalButton:()=>c.Wp,FunctionSelect:()=>x.d4,IndustrySelect:()=>x.ZN,Input:()=>x.pd,InputNumber:()=>x.YI,InputUpperCase:()=>x.h2,List:()=>a.A,MoneyInput:()=>x.F0,MultiField:()=>g.A,PhoneNumber:()=>x.go,Rate:()=>x.tt,SalaryInput:()=>x.lu,Select:()=>x.l6,SelectInnerInput:()=>v.A,Slider:()=>x.Ap,SuperSelect:()=>x.wD,SuperSelectTableList:()=>x.eM,SuperSelectUser:()=>x.Pg,Switch:()=>x.dO,TableList:()=>o.A,Text:()=>x.EY,TextArea:()=>x.fs,TimePicker:()=>x.AG,TreeSelect:()=>x.f7,TypeDateRangePicker:()=>x.w5,Upload:()=>x._O,default:()=>b,fieldDecorator:()=>r.E,fields:()=>r.A,formModule:()=>x.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>d.Vl,useFormStepModal:()=>c.$X});var n=l(64261),s=l(2196),r=l(15445),a=l(85846),o=l(97056),i=l(35774),d=l(5995),c=l(94005),u=l(48221),m=l(85696),p=l(30891),h=l(45053),g=l(97949),f=l(98434),_={};for(const j in f)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField","SelectInnerInput"].indexOf(j)<0&&(_[j]=()=>f[j]);l.d(t,_);var x=l(83799),v=l(18936);(0,n.A)(),s.A.fields=r.A,s.A.List=a.A,s.A.TableList=o.A,s.A.FormApiButton=i.A,s.A.FormModal=d.Ay,s.A.useFormModal=d.Vl,s.A.FormModalButton=d.W6,s.A.FormStepModal=c.Ay,s.A.useFormStepModal=c.$X,s.A.FormStepModalButton=c.Wp,s.A.FormDrawer=u.Ay,s.A.useFormDrawer=u.Xy,s.A.FormDrawerButton=u.WJ,s.A.Form=m.A,s.A.FormItem=p.A,s.A.ErrorTip=h.A,s.A.SubmitButton=f.SubmitButton,s.A.CancelButton=f.CancelButton,s.A.fieldDecorator=r.E,s.A.MultiField=g.A,s.A.useFormContext=f.useFormContext,s.A.hooks=f.hooks,s.A.widget=f.widget,s.A.utils=f.utils,s.A.formUtils=f.formUtils;const b=s.A},96339:(e,t,l)=>{l.d(t,{A:()=>K});var n=l(73884),s=l(17508),r=l(40438),a=l(63743),o=l(3382),i=l(64671),d=l(55199),c=l(53202),u=l.n(c),m=l(33097),p=l.n(m),h=l(83136),g=l.n(h),f=l(51941),_=l(98434),x=l(34677),v=l.n(x);const b="style_upload-btn__-6XtP__RltKb",j="style_square__UPkfA__RltKb",y="style_is-loading__wx6Pd__RltKb",A="style_upload-btn-tips__YtxWz__RltKb",N="style_drop-tips__N-v59__RltKb",S="style_preview-area__aV3SN__RltKb";var w=l(18411),C=l(47458),F=l(55431),R=l(70579);const{useOnChange:P}=_.hooks,I=r.default.Avatar,M="FormInfo",T=(0,s.Ay)(e=>{let{className:t,icon:l,loading:n,value:s,gender:r,width:a,height:o,children:c,shape:u,defaultAvatar:m,displayAvatar:h,apis:f}=e;const _=(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(I,{...Object.assign({},"function"===typeof h?h(s):{id:p()(s,"id")}),gender:r,width:64*a/o,height:64,shape:u,defaultAvatar:m,apis:f}),(0,R.jsx)("div",{className:A,children:l||(0,R.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,R.jsx)("div",{className:g()(t,b,{[y]:n,[j]:"square"===u||!(a&&a===o)}),style:{width:64*a/o},children:n?(0,R.jsx)(d.Spin,{children:_}):_})}),k=e=>{let t=e.split(","),l=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],s=atob(l),r=s.length,a=new Uint8Array(r);for(;r--;)a[r]=s.charCodeAt(r);return new Blob([a],{type:n})},O=(0,n.forwardRef)((e,t)=>{let{image:l,width:r,height:a,borderRadius:o,preview:c,fileSize:m,accept:p,renderTips:h,getApi:g,shape:_,border:x=1,...v}=e;const b=(0,C.useIntl)({moduleName:M}),[j,y]=(0,n.useState)(0),A=(0,n.useRef)(null),[w,F]=(0,n.useState)(l),[P,I]=(0,n.useState)(1),[T,O]=(0,n.useState)(0),[L,E]=(0,n.useState)(""),D=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>{y(2*A.current.clientWidth/3)},[]),g({getImage:()=>{const e=D.current.getImage(),t=document.createElement("canvas"),l=t.getContext("2d");return t.width=r,t.height=a,l.drawImage(e,0,0,t.width,t.height),new window.File([k(t.toDataURL())],w.name,{type:w.type})}});const K=()=>{E(D.current.getImage().toDataURL())},z=(0,f.useDebouncedCallback)(K,500);return(0,R.jsx)("div",{ref:A,children:(0,R.jsxs)(d.Row,{wrap:!1,align:"middle",children:[(0,R.jsx)(d.Col,{span:c?16:24,children:j&&(0,R.jsxs)(d.Space,{direction:"vertical",children:[(0,R.jsx)(u(),{...v,ref:D,image:w,scale:P,rotate:T,width:j-2*x,height:a*j/r-2*x*a/r,border:x,color:[0,0,0,.6],borderRadius:o*j/r,onImageReady:K,onImageChange:z}),(0,R.jsx)("div",{className:N,children:h(`${b.formatMessage({id:"PictureFormat"})}${p.map(e=>e.replace(/^\./,"")).join(" ")} ${b.formatMessage({id:"ImageSize"})}${b.formatMessage({id:"NotExceeding"},{size:m})}`,{accept:p,fileSize:m})}),(0,R.jsxs)(d.Row,{gutter:14,align:"middle",children:[(0,R.jsx)(d.Col,{children:(0,R.jsx)(d.Tooltip,{title:b.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,R.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{O(e=>(e-90)%360)}})})}),(0,R.jsx)(d.Col,{children:(0,R.jsx)(d.Tooltip,{title:b.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,R.jsx)(i.default,{type:"icon-chongman",onClick:()=>{I(1)}})})}),(0,R.jsx)(d.Col,{flex:1,children:(0,R.jsx)(d.Slider,{tooltip:{placement:"bottom",formatter:()=>b.formatMessage({id:"Size"})},value:P,step:.05,min:.2,max:3,onChange:I})}),(0,R.jsx)(d.Col,{children:(0,R.jsx)(s.FI,{accept:p,onChange:e=>{e[0].size>1024*m*1024?d.message.error(b.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:m})):(O(0),I(1),F(e[0]))},children:b.formatMessage({id:"ReUpload"})})})]})]})}),c&&(0,R.jsx)(d.Col,{span:8,children:(0,R.jsx)("div",{className:S,children:(0,R.jsxs)(d.Space,{direction:"vertical",children:[(0,R.jsx)(d.Avatar,{src:L,shape:_,style:{width:j/2-36,height:(j/2-36)*a/r}}),(0,R.jsx)("div",{style:{textAlign:"center"},children:b.formatMessage({id:"Preview"})})]})})})]})})}),L=()=>{const e=(0,o.useModal)();return t=>{const{image:l,width:n,height:s,borderRadius:r,getApi:a,preview:o,fileSize:i,accept:d,renderTips:c,border:u,dropModalSize:m,...p}=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);return e({...p,size:m,children:(0,R.jsx)(O,{preview:o,fileSize:i,accept:d,getApi:a,renderTips:c,width:n,height:s,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:r,image:l,border:u,scale:1,rotate:0})})}},E=(0,C.createWithIntl)({importMessages:F.A,moduleName:"FormInfo"})(e=>{var t;let{value:l,gender:s,fileSize:r=2,accept:o=[".jpg",".png",".jpeg"],openEditor:i=!0,apis:c,renderTips:u=e=>e,onChange:m,shape:p="circle",width:h=200,height:g=200,title:f=(0,R.jsx)(C.IntlProvider,{importMessages:F.A,moduleName:"FormInfo",children:(0,R.jsx)(C.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:_=1,icon:x,dropModalSize:b="small",defaultAvatar:j=w.A,displayAvatar:y}=e;const[A,N]=(0,n.useState)(!1),{apis:S}=(0,a.usePreset)(),P=v()({},S,c),I=P.ossUpload||P.upload||(null===(t=P.file)||void 0===t?void 0:t.upload),k=(0,n.useRef)(null),O=L(),E=(0,C.useIntl)({moduleName:M});return(0,R.jsx)(T,{value:l,gender:s,accept:o,width:h,height:g,shape:p,icon:x,loading:A,defaultAvatar:j,displayAvatar:y,apis:P,onChange:e=>{if(e[0].size>1024*r*1024)return void d.message.error(E.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:r}));const t=e=>(N(!0),I({file:e}).then(e=>{let{data:t}=e;0===t.code?m(t.data):d.message.error(E.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{N(!1)}));i?O({image:e[0],width:h,height:g,title:f,shape:p,border:_,dropModalSize:b,getApi:e=>k.current=e,fileSize:r,accept:o,renderTips:u,onConfirm:()=>{t(k.current.getImage())}}):t(e[0])}})}),D=e=>P(e)(E);D.Field=E,D.useDropModal=L;const K=D},97056:(e,t,l)=>{l.d(t,{A:()=>p});var n=l(55199),s=l(64671),r=l(83136),a=l.n(r),o=l(47094),i=l(68532),d=l(41381),c=l(47458),u=l(55431),m=l(70579);const p=(0,c.createWithIntl)({moduleName:"FormInfo",importMessages:u.A})(e=>{let{className:t,...l}=e;const{formatMessage:r}=(0,c.useIntl)({moduleName:"FormInfo"});return(0,m.jsx)("div",{className:a()(t,o.A["table-list"]),children:(0,m.jsx)(i.TableList,{...l,className:a()(t,o.A["table-list"]),headerRender:(e,t)=>{let{width:l}=t;return(0,m.jsxs)(n.Row,{wrap:!1,className:o.A["table-list-header"],style:{"--col-width":l},children:[e,(0,m.jsx)(n.Col,{className:o.A["table-list-extra"]})]})},headerItemRender:(e,t)=>{let{id:l,isReq:s}=t;return(0,m.jsx)(n.Col,{className:a()({[o.A["is-req"]]:s}),children:e},l)},listRender:(e,t)=>{let{id:l,width:a,onRemove:i,allowRemove:d}=t;return(0,m.jsxs)(n.Row,{wrap:!1,style:{"--col-width":a},children:[e,(0,m.jsx)(n.Col,{className:o.A["table-list-extra"],children:(0,m.jsx)(n.Button,{type:"link",onClick:i,danger:!0,disabled:!d,children:(0,m.jsxs)("span",{children:[(0,m.jsx)(s.default,{type:"shanchu"}),r({id:"delText"})]})})})]},l)},itemRender:e=>(0,m.jsx)(n.Col,{className:o.A["table-list-field"],flex:1,children:e}),children:(e,t)=>{let{title:l,allowAdd:i,onAdd:c}=t;return(0,m.jsx)(d.default.Part,{title:l,className:a()(o.A["table-list-inner"]),extra:i&&(0,m.jsxs)(n.Typography.Link,{className:o.A["list-btn"],onClick:()=>c({isUnshift:!1}),children:[(0,m.jsx)(s.default,{type:"tianjia"}),r({id:"addText"})]}),children:e})}})})})},97949:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55199),s=l(47458),r=l(64671),a=l(47094),o=l(83136),i=l.n(o),d=l(55431),c=l(68532),u=l(70579);const m=(0,s.createWithIntl)({moduleName:"FormInfo",importMessages:d.A})(e=>{const{formatMessage:t}=(0,s.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(c.MultiField,{...e,itemRender:(e,t)=>{let{id:l,index:s,allowRemove:o,onRemove:d}=t;return(0,u.jsxs)("div",{className:i()(a.A["mult-field-item"],"mult-field-item",{[a.A["first-item"]]:0===s}),children:[e,(0,u.jsxs)("div",{className:i()("form-info-mult-option"),children:[(0,u.jsx)("div",{className:i()(a.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,u.jsx)(n.Button,{icon:(0,u.jsx)(r.default,{type:"shanchu"}),onClick:d,disabled:!o})]})]},l)},children:(l,s)=>{let{allowAdd:o,onAdd:d}=s;return(0,u.jsxs)("div",{className:i()(a.A["mult-field"],"mult-field"),children:[l,o&&(0,u.jsx)("div",{className:i()("form-info-mult-add-btn"),children:(0,u.jsxs)(n.Button,{className:a.A["mult-field-add-btn"],type:"dashed",onClick:()=>d({isUnshift:!1}),children:[(0,u.jsx)(r.default,{type:"tianjia"}),t({id:"addSomeThing"},{label:e.label})]})})]})}})})}}]);
2
- //# sourceMappingURL=4474.dfb83cf2.chunk.js.map