@kne-components/components-core 0.4.45 → 0.4.46
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.
- package/build/asset-manifest.json +111 -111
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1381.97c23e40.chunk.css +2 -0
- package/build/static/css/1381.97c23e40.chunk.css.map +1 -0
- package/build/static/css/1742.72826de6.chunk.css +2 -0
- package/build/static/css/{1742.12f27291.chunk.css.map → 1742.72826de6.chunk.css.map} +1 -1
- package/build/static/css/{1996.e97d56df.chunk.css → 1996.052f96b0.chunk.css} +2 -2
- package/build/static/css/{1996.e97d56df.chunk.css.map → 1996.052f96b0.chunk.css.map} +1 -1
- package/build/static/css/2004.59eeddc7.chunk.css +2 -0
- package/build/static/css/{2004.33c1e186.chunk.css.map → 2004.59eeddc7.chunk.css.map} +1 -1
- package/build/static/css/2307.4b3df026.chunk.css +2 -0
- package/build/static/css/2307.4b3df026.chunk.css.map +1 -0
- package/build/static/css/254.ee7957b1.chunk.css +2 -0
- package/build/static/css/254.ee7957b1.chunk.css.map +1 -0
- package/build/static/css/3404.f9aed7da.chunk.css +2 -0
- package/build/static/css/{3404.6f0b882e.chunk.css.map → 3404.f9aed7da.chunk.css.map} +1 -1
- package/build/static/css/3625.de3c6911.chunk.css +2 -0
- package/build/static/css/3625.de3c6911.chunk.css.map +1 -0
- package/build/static/css/{3771.accb9a83.chunk.css → 3771.0b0ceea9.chunk.css} +2 -2
- package/build/static/css/{3771.accb9a83.chunk.css.map → 3771.0b0ceea9.chunk.css.map} +1 -1
- package/build/static/css/{3790.8118caa7.chunk.css → 3790.0a878038.chunk.css} +2 -2
- package/build/static/css/{3790.8118caa7.chunk.css.map → 3790.0a878038.chunk.css.map} +1 -1
- package/build/static/css/5195.841f8004.chunk.css +2 -0
- package/build/static/css/5195.841f8004.chunk.css.map +1 -0
- package/build/static/css/{5582.877dc4db.chunk.css → 5582.1990debe.chunk.css} +2 -2
- package/build/static/css/5582.1990debe.chunk.css.map +1 -0
- package/build/static/css/5633.97c23e40.chunk.css +2 -0
- package/build/static/css/5633.97c23e40.chunk.css.map +1 -0
- package/build/static/css/5674.c88fd2db.chunk.css +2 -0
- package/build/static/css/5674.c88fd2db.chunk.css.map +1 -0
- package/build/static/css/653.f1a8c344.chunk.css +2 -0
- package/build/static/css/653.f1a8c344.chunk.css.map +1 -0
- package/build/static/css/{6763.5cb27d52.chunk.css → 6763.0df869ff.chunk.css} +2 -2
- package/build/static/css/{6763.5cb27d52.chunk.css.map → 6763.0df869ff.chunk.css.map} +1 -1
- package/build/static/css/7227.d9d1299c.chunk.css +2 -0
- package/build/static/css/{7227.65ee4c4e.chunk.css.map → 7227.d9d1299c.chunk.css.map} +1 -1
- package/build/static/css/7589.f3c8f89b.chunk.css +2 -0
- package/build/static/css/7589.f3c8f89b.chunk.css.map +1 -0
- package/build/static/css/{760.9d94b7ab.chunk.css → 760.f8be7f84.chunk.css} +2 -2
- package/build/static/css/{760.9d94b7ab.chunk.css.map → 760.f8be7f84.chunk.css.map} +1 -1
- package/build/static/css/7857.484072c1.chunk.css +2 -0
- package/build/static/css/{7857.ec76e428.chunk.css.map → 7857.484072c1.chunk.css.map} +1 -1
- package/build/static/css/7987.97c23e40.chunk.css +2 -0
- package/build/static/css/7987.97c23e40.chunk.css.map +1 -0
- package/build/static/css/833.e28708c8.chunk.css +2 -0
- package/build/static/css/{833.deb93503.chunk.css.map → 833.e28708c8.chunk.css.map} +1 -1
- package/build/static/css/{8593.4a9031dc.chunk.css → 8593.7ef21cba.chunk.css} +2 -2
- package/build/static/css/{8593.4a9031dc.chunk.css.map → 8593.7ef21cba.chunk.css.map} +1 -1
- package/build/static/css/8689.906ec3c8.chunk.css +12 -0
- package/build/static/css/8689.906ec3c8.chunk.css.map +1 -0
- package/build/static/css/9556.3c875a41.chunk.css +2 -0
- package/build/static/css/{9556.78fa406b.chunk.css.map → 9556.3c875a41.chunk.css.map} +1 -1
- package/build/static/js/{1381.3a1fb929.chunk.js → 1381.37b05f38.chunk.js} +1 -1
- package/build/static/js/1742.59b24864.chunk.js +2 -0
- package/build/static/js/1742.59b24864.chunk.js.map +1 -0
- package/build/static/js/{1996.758be72d.chunk.js → 1996.14344c2d.chunk.js} +2 -2
- package/build/static/js/{1996.758be72d.chunk.js.map → 1996.14344c2d.chunk.js.map} +1 -1
- package/build/static/js/{2004.74384107.chunk.js → 2004.d8122da2.chunk.js} +3 -3
- package/build/static/js/{2004.74384107.chunk.js.map → 2004.d8122da2.chunk.js.map} +1 -1
- package/build/static/js/2086.c3a0124d.chunk.js +3 -0
- package/build/static/js/2086.c3a0124d.chunk.js.map +1 -0
- package/build/static/js/{2242.a0059cca.chunk.js → 2242.a55a6844.chunk.js} +2 -2
- package/build/static/js/2242.a55a6844.chunk.js.map +1 -0
- package/build/static/js/254.e7805354.chunk.js +2 -0
- package/build/static/js/254.e7805354.chunk.js.map +1 -0
- package/build/static/js/{2723.a5f0a1fa.chunk.js → 2723.38314d6e.chunk.js} +1 -1
- package/build/static/js/{3404.b93a548c.chunk.js → 3404.1557958c.chunk.js} +3 -3
- package/build/static/js/{3404.b93a548c.chunk.js.map → 3404.1557958c.chunk.js.map} +1 -1
- package/build/static/js/{3625.db151aab.chunk.js → 3625.23761746.chunk.js} +2 -2
- package/build/static/js/{3625.db151aab.chunk.js.map → 3625.23761746.chunk.js.map} +1 -1
- package/build/static/js/{3771.d4bd749c.chunk.js → 3771.997ccc57.chunk.js} +2 -2
- package/build/static/js/{3771.d4bd749c.chunk.js.map → 3771.997ccc57.chunk.js.map} +1 -1
- package/build/static/js/{3790.6af26115.chunk.js → 3790.805593bc.chunk.js} +2 -2
- package/build/static/js/{3790.6af26115.chunk.js.map → 3790.805593bc.chunk.js.map} +1 -1
- package/build/static/js/{3856.23c16ed0.chunk.js → 3856.bfc95e79.chunk.js} +2 -2
- package/build/static/js/{3856.23c16ed0.chunk.js.map → 3856.bfc95e79.chunk.js.map} +1 -1
- package/build/static/js/{4189.473f9ca6.chunk.js → 4189.4161d40a.chunk.js} +3 -3
- package/build/static/js/4189.4161d40a.chunk.js.map +1 -0
- package/build/static/js/4297.71ba78e9.chunk.js +2 -0
- package/build/static/js/4297.71ba78e9.chunk.js.map +1 -0
- package/build/static/js/4474.bf030f69.chunk.js +2 -0
- package/build/static/js/4474.bf030f69.chunk.js.map +1 -0
- package/build/static/js/5195.605db17c.chunk.js +2 -0
- package/build/static/js/5195.605db17c.chunk.js.map +1 -0
- package/build/static/js/{5633.d81b4db2.chunk.js → 5633.10b44bd7.chunk.js} +1 -1
- package/build/static/js/{5674.8d9c60e9.chunk.js → 5674.86bb2ec6.chunk.js} +2 -2
- package/build/static/js/{5674.8d9c60e9.chunk.js.map → 5674.86bb2ec6.chunk.js.map} +1 -1
- package/build/static/js/5958.89468fa5.chunk.js +2 -0
- package/build/static/js/5958.89468fa5.chunk.js.map +1 -0
- package/build/static/js/{6763.77f6d956.chunk.js → 6763.f0ced4ef.chunk.js} +2 -2
- package/build/static/js/{6763.77f6d956.chunk.js.map → 6763.f0ced4ef.chunk.js.map} +1 -1
- package/build/static/js/{7040.fb2de04f.chunk.js → 7040.85ca80c3.chunk.js} +2 -2
- package/build/static/js/{7040.fb2de04f.chunk.js.map → 7040.85ca80c3.chunk.js.map} +1 -1
- package/build/static/js/{7227.3a5d8032.chunk.js → 7227.7bdd14a5.chunk.js} +3 -3
- package/build/static/js/{7227.3a5d8032.chunk.js.map → 7227.7bdd14a5.chunk.js.map} +1 -1
- package/build/static/js/{7589.03d16dce.chunk.js → 7589.19464c85.chunk.js} +2 -2
- package/build/static/js/{7589.03d16dce.chunk.js.map → 7589.19464c85.chunk.js.map} +1 -1
- package/build/static/js/{760.7adc7293.chunk.js → 760.93414278.chunk.js} +2 -2
- package/build/static/js/{760.7adc7293.chunk.js.map → 760.93414278.chunk.js.map} +1 -1
- package/build/static/js/7857.b3aee7e8.chunk.js +2 -0
- package/build/static/js/7857.b3aee7e8.chunk.js.map +1 -0
- package/build/static/js/7899.92317382.chunk.js +2 -0
- package/build/static/js/7899.92317382.chunk.js.map +1 -0
- package/build/static/js/833.61f11966.chunk.js +2 -0
- package/build/static/js/833.61f11966.chunk.js.map +1 -0
- package/build/static/js/{8593.92a539df.chunk.js → 8593.d3cad462.chunk.js} +2 -2
- package/build/static/js/{8593.92a539df.chunk.js.map → 8593.d3cad462.chunk.js.map} +1 -1
- package/build/static/js/{9556.46180fc4.chunk.js → 9556.1ce5861f.chunk.js} +3 -3
- package/build/static/js/{9556.46180fc4.chunk.js.map → 9556.1ce5861f.chunk.js.map} +1 -1
- package/build/static/js/main.26785b52.js +2 -0
- package/build/static/js/{main.3f3ac682.js.map → main.26785b52.js.map} +1 -1
- package/package.json +3 -3
- package/build/static/css/1381.ae89d4cb.chunk.css +0 -2
- package/build/static/css/1381.ae89d4cb.chunk.css.map +0 -1
- package/build/static/css/1742.12f27291.chunk.css +0 -2
- package/build/static/css/2004.33c1e186.chunk.css +0 -2
- package/build/static/css/2307.0ec76807.chunk.css +0 -2
- package/build/static/css/2307.0ec76807.chunk.css.map +0 -1
- package/build/static/css/254.b513f3ff.chunk.css +0 -2
- package/build/static/css/254.b513f3ff.chunk.css.map +0 -1
- package/build/static/css/3404.6f0b882e.chunk.css +0 -2
- package/build/static/css/3625.d84a60b5.chunk.css +0 -2
- package/build/static/css/3625.d84a60b5.chunk.css.map +0 -1
- package/build/static/css/5195.b239bddb.chunk.css +0 -2
- package/build/static/css/5195.b239bddb.chunk.css.map +0 -1
- package/build/static/css/5582.877dc4db.chunk.css.map +0 -1
- package/build/static/css/5633.ae89d4cb.chunk.css +0 -2
- package/build/static/css/5633.ae89d4cb.chunk.css.map +0 -1
- package/build/static/css/5674.49c3a29d.chunk.css +0 -2
- package/build/static/css/5674.49c3a29d.chunk.css.map +0 -1
- package/build/static/css/653.e0c03500.chunk.css +0 -2
- package/build/static/css/653.e0c03500.chunk.css.map +0 -1
- package/build/static/css/7227.65ee4c4e.chunk.css +0 -2
- package/build/static/css/7589.e72d7a14.chunk.css +0 -2
- package/build/static/css/7589.e72d7a14.chunk.css.map +0 -1
- package/build/static/css/7857.ec76e428.chunk.css +0 -2
- package/build/static/css/7987.ae89d4cb.chunk.css +0 -2
- package/build/static/css/7987.ae89d4cb.chunk.css.map +0 -1
- package/build/static/css/833.deb93503.chunk.css +0 -2
- package/build/static/css/8689.67d74ad5.chunk.css +0 -12
- package/build/static/css/8689.67d74ad5.chunk.css.map +0 -1
- package/build/static/css/9556.78fa406b.chunk.css +0 -2
- package/build/static/js/1742.190ff95f.chunk.js +0 -2
- package/build/static/js/1742.190ff95f.chunk.js.map +0 -1
- package/build/static/js/2086.04de3393.chunk.js +0 -3
- package/build/static/js/2086.04de3393.chunk.js.map +0 -1
- package/build/static/js/2242.a0059cca.chunk.js.map +0 -1
- package/build/static/js/254.54f5f58b.chunk.js +0 -2
- package/build/static/js/254.54f5f58b.chunk.js.map +0 -1
- package/build/static/js/4189.473f9ca6.chunk.js.map +0 -1
- package/build/static/js/4297.cb02aafc.chunk.js +0 -2
- package/build/static/js/4297.cb02aafc.chunk.js.map +0 -1
- package/build/static/js/4474.1059ef67.chunk.js +0 -2
- package/build/static/js/4474.1059ef67.chunk.js.map +0 -1
- package/build/static/js/5195.d3ea6ecc.chunk.js +0 -2
- package/build/static/js/5195.d3ea6ecc.chunk.js.map +0 -1
- package/build/static/js/5958.25a2c01c.chunk.js +0 -2
- package/build/static/js/5958.25a2c01c.chunk.js.map +0 -1
- package/build/static/js/7857.3ddc9e5b.chunk.js +0 -2
- package/build/static/js/7857.3ddc9e5b.chunk.js.map +0 -1
- package/build/static/js/7899.633b8c99.chunk.js +0 -2
- package/build/static/js/7899.633b8c99.chunk.js.map +0 -1
- package/build/static/js/833.816bfa8f.chunk.js +0 -2
- package/build/static/js/833.816bfa8f.chunk.js.map +0 -1
- package/build/static/js/main.3f3ac682.js +0 -2
- /package/build/static/js/{2004.74384107.chunk.js.LICENSE.txt → 2004.d8122da2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2086.04de3393.chunk.js.LICENSE.txt → 2086.c3a0124d.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.b93a548c.chunk.js.LICENSE.txt → 3404.1557958c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4189.473f9ca6.chunk.js.LICENSE.txt → 4189.4161d40a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.3a5d8032.chunk.js.LICENSE.txt → 7227.7bdd14a5.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.46180fc4.chunk.js.LICENSE.txt → 9556.1ce5861f.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4474],{1550(e,t,a){a.d(t,{A:()=>v});var n=a(89379),r=a(53986),s=a(73884),l=a(72752),o=a(33097),i=a.n(o),c=a(64261),d=a(46237),u=a(5180),p=a(46732),m=(a(39825),a(52526)),h=a(80711),g=a(21649);const f=(0,m.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":h.default,"en-US":g.default},namespace:"form-info"});var _=a(70579);const x=["helperGuideName","lang"],A=e=>{let{children:t}=e;const[a,n]=(0,s.useState)(!1),r=(0,l.usePreset)(),{locale:o}=(0,l.useGlobalContext)(),d=i()(r,"formInfo",{});return(0,s.useEffect)(()=>{Promise.resolve((0,c.A)(d,{locale:o})).then(()=>{n(!0)})},[d,o]),a?t:null},v=f((0,s.forwardRef)((e,t)=>{let{helperGuideName:a,lang:s}=e,l=(0,r.A)(e,x);return(0,_.jsx)(d.Ay,{value:s,children:(0,_.jsx)(p.K,{value:a,children:(0,_.jsx)(A,{children:(0,_.jsx)(u.Form,(0,n.A)((0,n.A)({},l),{},{ref:t}))})})})}))},1904(e,t,a){a.d(t,{A:()=>i,N:()=>c});var n=a(98434),r=a(43856);const{useOnChange:s,useDecorator:l}=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,c=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(r.AddressInputField);c.Field=r.AddressInputField},2842(e,t,a){a.d(t,{default:()=>r.a});a(2885);var n=a(48553),r=a.n(n);a.o(n,"PHONE_NUMBER_INPUT")&&a.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},5995(e,t,a){a.d(t,{Ay:()=>m,Vl:()=>h,W6:()=>g});var n=a(53986),r=a(89379),s=a(3382),l=a(73025),o=a(55199),i=a(76995),c=a(47094),d=a(70579);const u=["classNames"],p=["modalProps"],m=e=>(0,d.jsx)(s.default,(0,r.A)({},(0,i.A)(Object.assign({},e,{className:c.A["form-modal"]})))),h=()=>{const e=(0,s.useModal)();return t=>e((0,i.A)(Object.assign({},t,{className:c.A["form-modal"]})))},g=e=>{let{classNames:t}=e,a=(0,n.A)(e,u);const s=h();if(!a.api){const{modalProps:e}=a,t=(0,n.A)(a,p);return(0,d.jsx)(o.Button,(0,r.A)((0,r.A)({},t),{},{onClick:()=>{s(e)}}))}return(0,d.jsx)(l.A,(0,r.A)((0,r.A)({},a),{},{modalFunc:s}))}},15209(e,t,a){a.d(t,{A:()=>h});var n=a(53986),r=a(89379),s=a(20454),l=a(55199),o=a(10986),i=a.n(o),c=a(13050),d=a(70579);const u=["remoteModules"],p=e=>{let t=Object.assign({},((0,s.A)(e),e));const[a,n]=i()(t);return(0,d.jsx)(l.Input,(0,r.A)((0,r.A)({},t),{},{value:a,onChange:e=>{n(e.target.value?e.target.value.toUpperCase():e.target.value,e)}}))},m=(0,c.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t}=e,a=(0,n.A)(e,u);const[r]=t,{hooks:s}=r,{useDecorator:l}=s;return l(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(a.label||"")},a))(p)});m.field=p;const h=m},15445(e,t,a){a.d(t,{A:()=>re,E:()=>se});var n=a(89379),r=a(53986),s=a(98434),l=a(30096),o=a(34643),i=a(1904),c=a(83230),d=a(55199),u=a(70579);const{useOnChange:p}=s.hooks,m=e=>(0,u.jsx)(d.ColorPicker,(0,n.A)((0,n.A)({},e),{},{onChange:t=>e.onChange(t.toHexString())})),h=e=>p(Object.assign({},e))(m);h.Field=h;const g=h;var f=a(81026),_=a(78756),x=a(92328),A=a(2842);const v=["checked","children"],{useOnChange:y,useCheckedToValue:j}=s.hooks,{withChecked:b}=s.hoc,S=b(e=>{let{checked:t,children:a=null}=e,s=(0,r.A)(e,v);return(0,u.jsxs)(d.Space,{children:[(0,u.jsx)(d.Switch,(0,n.A)({checked:t},s)),"function"===typeof a?a({checked:t}):a]})}),I=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=j(e);return y(t)(S)};I.Field=d.Switch;const N=I;var C=a(89099),w=a(96339),P=a(36972),F=a(15209),T=a(74529),M=a.n(T),O=a(73884),k=a(52526),L=a(33097),E=a.n(L),D=a(21079),Q=a(46237),R=a(56259),z=a(29556),U=a(64671),B=a(83136),W=a.n(B),V=a(47094);const H=["forwardedRef","label","placeholder"],G=["placeholder","label"],q=["placeholder","label"],X=["placeholder","label","soFarText"],Y=e=>t=>{const a=M()(...e)(e=>{let{forwardedRef:a,label:s,placeholder:l}=e,o=(0,r.A)(e,H);return(0,u.jsx)(t,(0,n.A)((0,n.A)({},o),{},{label:s,placeholder:l,labelRender:()=>o.tips?(0,u.jsxs)(d.Space,{children:[s,(0,u.jsx)(z.default,{content:o.tips,children:(0,u.jsx)("span",{className:W()(V.A["field-tips"],{[V.A["label-hidden"]]:o.labelHidden}),children:(0,u.jsx)(U.default,{type:"icon-xinxi-miaobian"})})})]}):s,ref:a}))}),s=(0,O.forwardRef)((e,t)=>(0,u.jsx)(a,(0,n.A)((0,n.A)({},e),{},{forwardedRef:t})));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{s[e]=t[e]}),s},J=e=>t=>{let{placeholder:a,label:s}=t,l=(0,r.A)(t,G);const{formatMessage:o}=(0,k.useIntl)();return(0,u.jsx)(e,(0,n.A)((0,n.A)({},l),{},{label:s,placeholder:a||o({id:"defaultInputPlaceholder"},{label:s})}))},K=e=>t=>{let{placeholder:a,label:s}=t,l=(0,r.A)(t,q);const{formatMessage:o}=(0,k.useIntl)();return(0,u.jsx)(e,(0,n.A)((0,n.A)({},l),{},{label:s,placeholder:a||o({id:"defaultSelectPlaceholder"},{label:s})}))},$=e=>t=>{const a=(0,s.useGroup)(),r=E()(a,"name"),l=(0,D.get)(a,"index"),o=(0,Q.oc)();return o&&Array.isArray(o)&&o.length>0?o.map(a=>{if("string"===typeof a)return(0,O.createElement)(e,(0,n.A)((0,n.A)({},t),{},{key:a}));const{name:s,label:o,options:i}=a,c=E()(i,"ignore",[]),d=E()(i,"disabled",[]),u=E()(i,"fields",[]),p=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==r)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==l);if(c.length>0&&c.find(p))return null;if(u.length>0&&!u.find(p))return null;let m=Object.assign({},t,{name:E()(i,"nameTransform",(e,t)=>"".concat(e).concat(t))(t.name,s),label:E()(i,"labelTransform",(e,t)=>e&&"".concat(e).concat(t))(t.label,o)});return d.length>0&&d.find(p)&&(m.disabled=!0,m.rule=""),(0,O.createElement)(e,(0,n.A)((0,n.A)({},m),{},{key:s}))}):(0,u.jsx)(e,(0,n.A)({},t))},Z=Y([$,J])(s.Input),ee=Y([$,J])(s.InputNumber);Z.Password=Y([$,J])(s.Input.Password);const te=Y([$,K])(s.DatePicker);te.MonthPicker=Y([$,K])(s.DatePicker.MonthPicker),te.RangePicker=Y([$,K])(s.DatePicker.RangePicker),te.WeekPicker=Y([$,K])(s.DatePicker.WeekPicker);const ae=Y([$,K])(s.TimePicker);ae.RangePicker=Y([$,K])(s.TimePicker.RangePicker);const ne=Y([$])(e=>{let{placeholder:t,label:a,soFarText:l}=e,o=(0,r.A)(e,X);const{formatMessage:i}=(0,k.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(s.DatePickerToday,(0,n.A)((0,n.A)({},o),{},{label:a,placeholder:[i({id:"startDate"}),i({id:"endDate"})],soFarText:l||i({id:"soFarText"})}))}),re={Input:Z,Checkbox:s.Checkbox,Password:Z.Password,InputNumber:ee,DatePicker:te,MonthPicker:te.MonthPicker,WeekPicker:te.WeekPicker,DateRangePicker:te.RangePicker,TimeRangePicker:ae.RangePicker,TimePicker:ae,DatePickerToday:ne,RadioGroup:Y([$])(s.RadioGroup),CheckboxGroup:Y([$])(s.CheckboxGroup),Rate:Y([$])(s.Rate),Switch:Y([$])(N),Slider:Y([$])(s.Slider),SalaryInput:Y([$,J])(P.A),TypeDateRangePicker:Y([$])(R.A),MoneyInput:Y([$,J])(x.A),PhoneNumber:Y([$,J])(A.default),Upload:Y([$])(C.A),Avatar:Y([$])(w.A),FunctionSelect:Y([$,K])(f.A),IndustrySelect:Y([$,K])(_.A),Cascader:Y([$,K])(c.A),ColorPicker:Y([$,K])(g),AddressSelect:Y([$,K])(i.A),AddressInput:Y([$,K])(i.N),TreeSelect:Y([$,K])(s.TreeSelect),ReactInputNumber:Y([$,J])(s.InputNumber),InputUpperCase:Y([$,J])(F.A),Select:Y([$,K])(s.Select),TextArea:Y([$,J])(s.TextArea),AdvancedSelect:Y([$,K])(l.Ay),SuperSelect:Y([$,K])(o.Ay),SuperSelectTableList:Y([$,K])(o.eM),SuperSelectUser:Y([$,K])(o.Pg),SuperSelectTree:Y([$,K])(o.kx)},se={createWithFieldDecorator:Y,withInputDefaultPlaceholder:J,withSelectDefaultPlaceholder:K,withLang:$}},18936(e,t,a){a.d(t,{A:()=>z});var n=a(89379),r=a(53986);const s={"ant-tag":"style_ant-tag__7ct2q__-0IeQ",overlay:"style_overlay__CXfU5__-0IeQ",input:"style_input__+OpvV__-0IeQ","is-disabled":"style_is-disabled__uX4qq__-0IeQ","input-icon":"style_input-icon__E3NjK__-0IeQ",large:"style_large__vMozz__-0IeQ",small:"style_small__ubqQ+__-0IeQ","input-inner":"style_input-inner__sY-6k__-0IeQ","input-custom":"style_input-custom__Kxq3n__-0IeQ","display-content":"style_display-content__qA1jn__-0IeQ","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__-0IeQ","selected-tag":"style_selected-tag__BZsMM__-0IeQ","selected-tag-list":"style_selected-tag-list__As0ho__-0IeQ","selected-tag-inner":"style_selected-tag-inner__2NH59__-0IeQ","text-inner":"style_text-inner__Bq2Ji__-0IeQ",placeholder:"style_placeholder__odotY__-0IeQ","is-modal":"style_is-modal__4cj8L__-0IeQ","overlay-content":"style_overlay-content__kpGRn__-0IeQ"};var l=a(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,l.A)();var u=a(73884),p=a(10986),m=a.n(p),h=a(87558),g=a(33097),f=a.n(g),_=a(55199),x=a(83136),A=a.n(x),v=a(3382),y=a(64671),j=a(79686),b=a.n(j),S=a(41740),I=a.n(S),N=a(74065),C=a.n(N),w=a(17342),P=a(70579);const F=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],T=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName"],M=["setFetchApi","wrapClassName"],O=["api","className","displayItems","wrapClassName"],k=e=>{let{maxLength:t,single:a,setValue:n,value:r,message:s}=e;return e=>n(!a&&Number.isInteger(t)&&t>0&&e.length>t?(s("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),r):e)},L=e=>{let{single:t,value:a,mapping:n,onClose:r}=e;return a&&Array.isArray(a)&&0!==a.length?t?(0,P.jsx)("span",{className:s["text-inner"],children:f()(n.get(a[0]),"label")||a[0]}):a.map(e=>{const t=n.get(e);return(0,P.jsx)(_.Tag,{className:s["display-tag"],closable:!0,onClose:a=>{a.preventDefault(),r(e,t)},children:(0,P.jsx)("span",{className:s["tag-inner"],children:f()(t,"label")||e})},e)}):null},E=(0,u.forwardRef)((e,t)=>{let{value:a,onChange:l,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,r.A)(e,F);const[m,h]=(0,u.useState)(a),g=(0,u.useRef)(a);g.current=a;const[f,x]=(0,u.useState)(!1),{message:A}=_.App.useApp(),y=k({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:A.error});return(0,u.useEffect)(()=>{f&&h(g.current)},[f]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{x(!0)},close:()=>{x(!1)}})),(0,P.jsx)(v.default,(0,n.A)((0,n.A)({},p),{},{open:f,onConfirm:()=>{l(m)},onClose:()=>{x(!1)},footer:(i||o)&&(0,P.jsxs)(_.Space,{direction:"vertical",className:s["overlay-footer"],children:[o&&(0,P.jsx)("div",{className:s["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:y})]}),children:"function"===typeof d?d({value:m,setValue:y}):d}))}),D=(0,u.forwardRef)((e,t)=>{let{value:a,setValue:l,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:g,wrapClassName:f}=e,x=(0,r.A)(e,T);const[A,v]=(0,u.useState)(!1);return(0,u.useImperativeHandle)(t,()=>({close:()=>{v(!1)}}),[]),(0,P.jsx)(_.Popover,(0,n.A)((0,n.A)({},x),{},{open:A,onOpenChange:v,overlayClassName:s.overlay,arrow:!1,content:(0,P.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:s["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,P.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof o?o({value:a,setValue:e=>{(!m||a[0]!==e[0])&&l(e),m&&v(!1)}}):o}),(c||h)&&(0,P.jsxs)("div",{className:s["overlay-footer"],children:[h&&(0,P.jsx)("div",{className:s["overlay-footer-extra"],children:h}),c&&i({value:a,setValue:l})]})]}),trigger:"click",placement:d,children:(0,P.jsx)("div",{className:s["input-inner"],children:p})}))}),Q=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:a}=e,n=(0,r.A)(e,M);const[l,o]=(0,u.useState)(!1),c=(0,u.useRef)(null),d=(0,u.useRef)(null),p=i(),{valueState:m,mapping:h,props:g}=p,[f,x]=m,{single:v,placement:j,getPopupContainer:b,placeholder:S,isPopup:I,disabled:N,showSelectedTag:C,extra:F,inputContent:T}=g,O=(0,u.useRef)(n);O.current=n,(0,u.useEffect)(()=>{t(Object.assign({},O.current,{data:n.data,isComplete:n.isComplete}))},[n.data,t,n.isComplete]);const k=L({single:v,value:f,mapping:h,onClose:e=>{x(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}}),Q=e=>{let{value:t,setValue:a}=e;return(0,P.jsxs)(_.Space,{className:s["selected-tag"],align:"center",wrap:!0,children:[(0,P.jsxs)("div",{children:["\u5df2\u9009",!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,P.jsx)(w.A,{className:s["selected-tag-list"],children:(0,P.jsx)("div",{className:s["selected-tag-inner"],children:L({value:t,mapping:h,onClose:e=>{a(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}})})})]})},R=T?T(p):(0,P.jsxs)(_.Space,{className:s["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,P.jsx)("div",{children:k||(0,P.jsx)("span",{className:s.placeholder,children:S})}),l&&f&&f.length>0&&!N?(0,P.jsx)(y.default,{className:A()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,P.jsx)(y.default,{className:A()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return I?(0,P.jsx)(D,{ref:d,overlayWidth:g.overlayWidth,value:f,setValue:x,single:v,inputContent:R,extra:"function"===typeof F?F({close:()=>d.current.close(),context:p}):F,renderSelectedContent:Q,showSelectedTag:C,trigger:"click",placement:j,getPopupContainer:b,children:g.children}):(0,P.jsxs)("div",{className:s["input-inner"],onClick:()=>{c.current.modalOpen()},children:[(0,P.jsx)(E,{size:g.modalSize,ref:c,single:g.single,maxLength:g.maxLength,disabledScroller:!0,wrapClassName:A()(s.overlay,s["is-modal"],a),title:g.placeholder,value:f,onChange:x,extra:"function"===typeof F?F({close:()=>c.current.close(),context:p}):F,showSelectedTag:C,renderSelectedContent:Q,children:g.children}),R]})}),R=e=>{let{api:t,className:a,displayItems:l,wrapClassName:o}=e,i=(0,r.A)(e,O);const[d,p]=(0,u.useState)(""),[h,g]=(0,u.useState)(new Map(l.map(e=>[e.value,e]))),[x,v]=(0,u.useState)({}),{message:y}=_.App.useApp(),j=e=>{const t=e.filter(e=>h.get(e.value)!==e);0!==t.length&&g(e=>{const a=I()(e);return t.forEach(e=>{a.set(e.value,e)}),a})},S=e=>((e,t,a)=>"all"!==a?e:(t(e),e.map(e=>e.value)))(i.single?b()(e)?[]:[e]:e||[],j,i.valueType),[N,w]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,a)=>"all"!==a?e:e.map(e=>t.get(e)))(e,h,i.valueType);i.onChange&&i.onChange(i.single?C()(t):t)}},"value"in i?{value:S(i.value)}:{defaultValue:S(i.defaultValue)})),F=k({maxLength:i.maxLength,single:i.single,setValue:w,value:N,message:y.error});return(0,P.jsx)(c,{value:{mapping:h,searchText:d,setSearchText:p,appendMapping:j,setItems:e=>{x.setData(e),j(f()(i.dataFormat(e),"list",[]))},fetchApi:x,valueState:[N,F],props:i},children:(0,P.jsx)("div",{className:A()(s["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],a),children:(0,P.jsx)(Q,(0,n.A)((0,n.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:v,onRequestSuccess:e=>{j(f()(i.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};R.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},R.useContext=i;const z=R},19343(e,t,a){a.r(t),a.d(t,{Download:()=>m,FileButton:()=>C,FileLink:()=>w,List:()=>S,OptionButtons:()=>b,PrintButton:()=>o.PrintButton,default:()=>i(),download:()=>o.download,downloadBlobFile:()=>o.downloadBlobFile,useDownload:()=>o.useDownload,useFileModal:()=>P});var n=a(89379),r=a(53986),s=(a(64674),a(96418)),l=a.n(s),o=a(61323),i=a.n(o),c=a(3382),d=a(83136),u=a.n(d),p=a(70579);o.Download.useDownload=o.useDownload,o.Download.downloadBlobFile=o.downloadBlobFile;const m=o.Download;var h=a(26304),g=a.n(h),f=a(74065),_=a.n(f),x=a(96252);const A=["apis"],v=["onCancel"],y=["onCancel"],j=e=>{let{apis:t}=e;const a=(0,x.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=a({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:g()(e.filename.split(".")).join(".")},onSubmit:async a=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},a,{name:"".concat(a.name,".").concat(_()(e.filename.split(".")))}),item:e})))&&n.close()}},children:(0,p.jsx)(x.default,{column:1,list:[(0,p.jsx)(x.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},b=e=>{var t;const a=j({apis:e.apis});return(0,p.jsx)(o.FileListOptionButtons,(0,n.A)((0,n.A)({},e),{},{onEdit:t=>a(t,e.apis),onDelete:null===(t=e.apis)||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof e.renderModal?e.renderModal:e=>{let{onCancel:t}=e,a=(0,r.A)(e,y);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},a)),{},{onClose:t}))}}))},S=e=>{let{apis:t}=e,a=(0,r.A)(e,A);const s=j({apis:t});return(0,p.jsx)(o.FileList,(0,n.A)((0,n.A)({},a),{},{apis:t,onEdit:e=>s(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof a.renderModal?a.renderModal:e=>{let{onCancel:t}=e,a=(0,r.A)(e,v);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},a)),{},{onClose:t}))}}))},I=["onCancel"],N=["className"],C=e=>(0,p.jsx)(o.FileButton,(0,n.A)({},Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t}=e,a=(0,r.A)(e,I);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},a)),{},{onClose:t}))}}}))),w=e=>{const t=Object.assign({},e),{className:a}=t,s=(0,r.A)(t,N);return(0,p.jsx)(C,(0,n.A)((0,n.A)({},s),{},{className:u()(a,"btn-no-padding"),type:"link",children:s.children||s.filename||s.originName}))},P=e=>{const{title:t,children:a,footer:n}=(0,o.useFileModalProps)(Object.assign({},e)),r=(0,c.useModal)();return l()(()=>r({title:t,children:a,footer:n}))}},21649(e,t,a){a.r(t),a.d(t,{default:()=>n});const n={addText:"Add",addSomeThing:"Add {label}",delText:"Delete",selectedTextAdvanced:"Selected",delConfirm:"Are you sure you want to delete this {name}?",defaultInputPlaceholder:"Please enter {label}",defaultSelectPlaceholder:"Please select {label}",startDate:"Start Date",endDate:"End Date",soFarText:"Hitherto",uploadButtonText:"Click Upload",uploadTips:"Support extension {extensionNames}, single file size does not exceed {fileSize} M, upload up to {maxLength} attachments",yuan:"yuan",thousand:"ten thousand yuan",salaryType:"Salary type",Cancel:"Cancel",Save:"Save",Next:"Next",Complete:"Complete",Crop:"Crop",Preview:"Preview",PictureFormat:"Picture Format: ",ImageSize:"Image Size: ",ReUpload:"Re-upload",UploadFailed:"Upload Failed{msg}",NotExceeding:"Not exceeding {size}M",FileNotExceeding:"File {name} not exceeding {size}MB\uff01",Rotate:"Rotate",ImageFull:"Image Full",Size:"Image Size"}},24474(e,t,a){a.r(t),a.d(t,{DragArea:()=>Z,DragAreaOuter:()=>K,DragButton:()=>Y,FileUpload:()=>oe,Title:()=>Q,UploadButton:()=>J,UploadTips:()=>$,default:()=>ne});var n=a(89379),r=a(73884),s=a(33097),l=a.n(s),o=a(55199);const i="style_file-list-outer__wPhbb__-0IeQ",c="style_file-list-title__zXM5r__-0IeQ",d="style_container__P4RaF__-0IeQ",u="style_file-preview-inner__cvE72__-0IeQ",p="style_file-preview__M-Asq__-0IeQ",m="style_drag-area__Q+lm7__-0IeQ",h="style_upload-drag-close__u5o8W__-0IeQ",g="style_upload-drag-tips__z7puZ__-0IeQ",f="style_upload-drag-icon__sGGoS__-0IeQ",_="style_upload-drag-title__9Afmb__-0IeQ",x="style_upload-drag-text__o38vS__-0IeQ",A="style_title-group__8IJkS__-0IeQ",v="style_upload-btn__Q+Jxn__-0IeQ",y="style_total-count__z1fyd__-0IeQ",j="style_file-select__mHqyI__-0IeQ",b="style_file-name__QkvMn__-0IeQ",S="style_file-select-info__fOLiM__-0IeQ",I="style_file-select-option__AbDrD__-0IeQ";var N=a(75087),C=a.n(N),w=a(74065),P=a.n(w),F=a(57469),T=a.n(F),M=a(64671),O=a(19343),k=a(47458),L=a(83136),E=a.n(L),D=a(70579);const Q=e=>{let{currentTab:t,setCurrentTab:a,previewMap:n,previewList:r,getPermission:s,currentPreviewFileId:l,setCurrentPreviewFileId:i,itemApis:d,children:u,maxWidth:p=260,getPopupContainer:m}=e;return(0,D.jsx)("div",{className:c,children:(0,D.jsxs)(o.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,D.jsx)(o.Col,{children:(0,D.jsxs)(o.Space,{className:E()(A,"core-file-list-title-group"),size:4,children:[(0,D.jsx)(o.Segmented,{value:t,onChange:a,options:[{label:(0,D.jsxs)(o.Space,{size:4,children:[(0,D.jsx)(M.default,{type:"icon-shitu-liebiao"}),(0,D.jsx)(k.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,D.jsxs)(o.Space,{size:4,children:[(0,D.jsx)(M.default,{type:"icon-shitu-yulan"}),(0,D.jsx)(k.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&l&&n.get(l)&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o.Select,{className:j,variant:"borderless",popupMatchSelectWidth:!1,value:l,onChange:i,getPopupContainer:m,children:r.map(e=>{let{filename:t,userName:a,date:n,id:r}=e;return(0,D.jsx)(o.Select.Option,{className:I,value:r,children:(0,D.jsxs)(o.Space,{direction:"vertical",children:[(0,D.jsxs)(o.Space,{size:4,align:"start",children:[(0,D.jsx)(C(),{type:P()(t.split(".")),size:14}),(0,D.jsx)(o.Typography.Text,{className:b,ellipsis:!0,style:{"--max-width":"".concat(p,"px")},children:t})]}),a||n?(0,D.jsxs)(o.Space,{className:S,size:24,children:[(0,D.jsxs)("div",{children:[(0,D.jsx)(k.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",a]}),(0,D.jsxs)("div",{children:[(0,D.jsx)(k.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&T()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},r)})}),(0,D.jsx)(O.OptionButtons,{hasPreview:!1,getPermission:s,item:n.get(l),apis:d}),(0,D.jsx)("div",{className:y,children:(0,D.jsx)(k.FormattedMessage,{id:"totalCount",values:{count:r.length},moduleName:"FileList"})})]})]})}),(0,D.jsx)(o.Col,{children:u})]})})};var R=a(53986);const z=e=>({"en-US":()=>a.e(3333).then(a.bind(a,63333)),"zh-CN":()=>a.e(8795).then(a.bind(a,48795))}[e]());var U=a(70720),B=a.n(U);const W=(0,r.createContext)({}),{Provider:V}=W,H=()=>(0,r.useContext)(W);var G=a(61323),q=a(81348);const X=["children"],Y=e=>{let{children:t}=e;const{onOpenChange:a,getDragButtonEl:n}=H();return(0,D.jsx)("div",{ref:n,className:v,onClick:()=>{a(e=>!e)},children:(0,D.jsxs)(o.Button,{type:"text",className:"btn-no-padding",children:[(0,D.jsx)(M.default,{type:"icon-tuozhuaishangchuan"}),t||(0,D.jsx)(k.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},J=e=>{let{children:t}=e;const{accept:a,onFileSelected:r}=H();return(0,D.jsx)(G.FileInput,{className:E()(v,"btn-no-padding"),accept:a,multiple:!0,onChange:r,children:e=>{let{children:a}=e,r=(0,R.A)(e,X);return(0,D.jsxs)(o.Button,(0,n.A)((0,n.A)({},r),{},{type:"text",children:[(0,D.jsx)(M.default,{type:"icon-tianjia"}),t,a]}))}})},K=e=>{let{title:t,accept:a=[".png",".jpg",".pdf",".docx",".doc"],fileSize:n=20,maxLength:s,onFileSelected:l,children:c,className:u,defaultOpen:p=!1}=e;const[m,h]=(0,r.useState)(p),g=(0,r.useRef)(null),f=B()(e=>{g.current&&(g.current.contains(e.target)||e.target===g.current||h(!1))});return(0,D.jsx)(k.IntlProvider,{importMessages:z,moduleName:"FileList",children:(0,D.jsx)(V,{value:{open:m,onOpenChange:h,accept:a,fileSize:n,maxLength:s,onFileSelected:l,getDragButtonEl:e=>{g.current=e}},children:(0,D.jsxs)(o.Space,{className:i,direction:"vertical",children:[t,(0,D.jsx)("div",{className:E()(d,u),ref:f,onDragEnter:()=>{h(!0)},children:c})]})})})},$=e=>{let{icon:t,title:a,renderTips:n=e=>e}=e;const{accept:r,fileSize:s,maxLength:l}=H(),o=n((0,k.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:r.map(e=>e.replace(/^\./,"")).join("\u3001"),size:s}),{fileSize:s,maxLength:l,accept:r});return(0,D.jsxs)("div",{className:E()(g,"upload-drag-tips"),children:[(0,D.jsx)("div",{className:f,children:t||(0,D.jsx)(M.default,{type:"icon-shangchuan",size:64})}),(0,D.jsx)("div",{className:_,children:a||(0,D.jsx)(k.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,D.jsx)("div",{className:x,children:o})]})},Z=e=>{let{children:t=(0,D.jsx)($,{}),className:a}=e;const{open:n,accept:r,onOpenChange:s,onFileSelected:l}=H();return n?(0,D.jsxs)("div",{className:E()(m,a),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;s(!1);const t=Array.from(e.dataTransfer.files).filter(e=>(0,q.A)(e,r));l(t)},onDragEnd:()=>{s(!1)},children:[(0,D.jsx)(o.Button,{className:h,type:"text",shape:"circle",size:"small",icon:(0,D.jsx)(M.default,{type:"icon-close-bold"}),onClick:()=>{s(!1)}}),t]}):null};var ee=a(50196),te=a(72752);const ae=e=>{var t,a;let{className:s,maxLength:i=Number.MAX_VALUE,list:c,setList:d,infoItemRenders:m,defaultTab:h="list",defaultPreviewFileId:g,apis:f,getPermission:_=()=>!0,titleExtra:x=null,fileSize:A=20,accept:v=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:y}=e;const{apis:j}=(0,te.usePreset)(),b=Object.assign({},j,f),S=(c||[]).map(e=>Object.assign({},{id:e.ossId},e)),{fileList:I,onFileSelected:N}=(0,G.useFileUpload)({maxLength:i,multiple:!0,value:S,onChange:d,concurrentCount:1,onAdd:()=>{w("list")},onSave:async function(e){if("function"===typeof b.onSave){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];const r=await b.onSave(e,...a);return Object.assign({},{id:null===r||void 0===r?void 0:r.ossId},r)}return l()(e,"data")||{}},onUpload:b.onUpload||b.ossUpload}),[C,w]=(0,r.useState)(h),{formatMessage:P}=(0,k.useIntl)({moduleName:"FileList"}),{message:F}=o.App.useApp(),T=(0,r.useMemo)(()=>new Map(S.map(e=>[e.id,e])),[S]),[M,L]=(0,r.useState)(g||l()(S,"[0].id",null));(0,r.useEffect)(()=>{M&&T.get(M)||L(l()(S,"[0].id",null))},[S,T,M]);const E=(0,n.A)((0,n.A)({},b),{},{onPreview:e=>{L(e.id),w("preview")},onDelete:async e=>{b.onDelete&&!1===await b.onDelete(e)||(d(t=>{const a=t.slice(0),n=t.findIndex(t=>{let{id:a}=t;return a===e.id});return n>-1&&a.splice(n,1),a}),F.success(P({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:a}=e;const n=b.onEdit&&await b.onEdit({formData:t,item:a});return!1!==n&&(d(e=>{const n=e.slice(0),r=e.findIndex(e=>{let{id:t}=e;return t===a.id});return r>-1&&n.splice(r,1,Object.assign({},a,{filename:t.name})),n}),F.success(P({id:"successEditFileName"},{name:a.filename}))),n}}),R="function"===typeof x?x({currentPreviewFileId:M,currentTab:C}):x;return(0,D.jsx)("div",{className:s,children:(0,D.jsxs)(K,{title:(0,D.jsx)(Q,{currentTab:C,setCurrentTab:w,previewMap:T,previewList:S,getPermission:_,currentPreviewFileId:M,setCurrentPreviewFileId:L,itemApis:E,getPopupContainer:y,children:(0,D.jsxs)(o.Space,{separator:(0,D.jsx)(o.Divider,{type:"vertical"}),children:[R,_("add",{})?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Y,{children:P({id:"dragText"})}),(0,D.jsx)(J,{children:P({id:"uploadFile"})})]}):null]})}),fileSize:A,maxLength:i,onFileSelected:N,accept:v,defaultOpen:0===S.length,children:["list"===C?(0,D.jsx)(O.List,{dataSource:[...S,...I],getPermission:_,apis:E,infoItemRenders:m}):null,"preview"===C?M?(0,D.jsx)("div",{className:u,children:(0,D.jsx)(ee.default,{className:p,src:null===(t=T.get(M))||void 0===t?void 0:t.src,id:M,apis:b,filename:null===(a=T.get(M))||void 0===a?void 0:a.filename})}):(0,D.jsx)(o.Empty,{image:o.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,D.jsx)(Z,{})]})})},ne=e=>(0,D.jsx)(k.IntlProvider,{importMessages:z,moduleName:"FileList",children:(0,D.jsx)(ae,(0,n.A)({},e))});var re=a(10986),se=a.n(re);const le=["maxLength","apis","getPermission","fileSize","accept","defaultList"],oe=e=>{let{maxLength:t=Number.MAX_VALUE,apis:a,getPermission:r=()=>!0,fileSize:s=20,accept:i=[".png",".jpg",".pdf",".docx",".doc"],defaultList:c=[]}=e,d=(0,R.A)(e,le);const{apis:u}=(0,te.usePreset)(),p=Object.assign({},u,a),[m,h]=se()((0,n.A)({defaultList:c},d),{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:g,onFileSelected:f}=(0,G.useFileUpload)({maxLength:t,multiple:!0,value:m,onChange:h,concurrentCount:1,onSave:async function(e){if("function"===typeof p.onSave){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];const r=await p.onSave(e,...a);return Object.assign({},{id:null===r||void 0===r?void 0:r.ossId},r)}return l()(e,"data")||{}},onUpload:p.ossUpload});return(0,D.jsxs)(K,{title:(0,D.jsxs)(o.Row,{children:[(0,D.jsx)(o.Col,{flex:1}),(0,D.jsx)(o.Col,{children:(0,D.jsxs)(o.Space,{split:(0,D.jsx)(o.Divider,{type:"vertical"}),children:[(0,D.jsx)(Y,{}),(0,D.jsx)(J,{children:"\u4e0a\u4f20"})]})})]}),fileSize:s,maxLength:t,onFileSelected:f,accept:i,children:[(0,D.jsx)(O.List,{dataSource:[...g,...m],getPermission:r,apis:p}),(0,D.jsx)(Z,{})]})}},29556(e,t,a){a.r(t),a.d(t,{TooltipFetch:()=>T,TooltipInfoLabel:()=>C,default:()=>I});var n=a(89379),r=a(53986),s=a(55199),l=a(83136),o=a.n(l);const i="style_tooltip__zHGMI__-0IeQ",c="style_large__lvmsm__-0IeQ",d="style_small__nUt0r__-0IeQ",u="style_popup-content__-rKQN__-0IeQ",p="style_title__1EQPq__-0IeQ",m="style_important-info__qTSZY__-0IeQ",h="style_error__yTTq3__-0IeQ",g="style_warning__CMJxz__-0IeQ",f="style_success__AvJVx__-0IeQ",_="style_sub-title__uD8CH__-0IeQ",x="style_content__lzgUz__-0IeQ",A="style_alone__q6q82__-0IeQ",v="style_fetch-content__tEOEV__-0IeQ",y="style_fetch-loading__tN-WB__-0IeQ",j="style_title-info-icon__iY8Q+__-0IeQ";var b=a(70579);const S=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],I=e=>{let{overlayClassName:t,title:a,size:l,subtitle:v,content:y,importantInfo:j,importantInfoType:I,moreInfo:N}=e,C=(0,r.A)(e,S);return(0,b.jsx)(s.Tooltip,(0,n.A)((0,n.A)({},C),{},{rootClassName:o()(t,i,{[d]:"small"===l,[c]:"large"===l}),title:(0,b.jsxs)(s.Space,{direction:"vertical",className:u,children:[a&&(0,b.jsx)("div",{className:p,children:a}),j&&(0,b.jsx)("div",{className:o()(m,{[f]:"success"===I,[g]:"warning"===I,[h]:"error"===I}),children:j}),v&&(0,b.jsx)("div",{className:_,children:v}),y&&(0,b.jsx)("div",{className:o()(x,{[A]:[a,v,j,N].every(e=>!e)}),children:y}),N&&(0,b.jsx)("div",{children:N})]})}))};var N=a(64671);const C=e=>{let{title:t,tooltipTitle:a}=e;return(0,b.jsxs)("div",{children:[t,a?(0,b.jsx)(I,(0,n.A)((0,n.A)({},a),{},{children:(0,b.jsx)("span",{children:(0,b.jsx)(N.default,{type:"icon-xinxi-miaobian",className:j,size:14})})})):null]})};var w=a(73884),P=a(87558);const F=["api","children","fetchContent","showLoading","loadingClassName","force"],T=e=>{let{api:t,children:a,fetchContent:l,showLoading:i=!0,loadingClassName:c,force:d}=e,u=(0,r.A)(e,F);const[p,m]=(0,w.useState)(!1),h=(0,P.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:g,isLoading:f,data:_,send:x}=h;return(0,b.jsx)(I,(0,n.A)((0,n.A)({},Object.assign({},u,g?l(_,h):{})),{},{open:p,onOpenChange:async e=>{!e||g&&!d||await x({type:"refresh"}),m(e)},children:(0,b.jsxs)("span",{className:v,children:[a,i&&f?(0,b.jsx)(s.Spin,{size:"small",className:o()(c,y)}):null]})}))}},30096(e,t,a){a.d(t,{Ay:()=>d});var n=a(98434),r=a(43856);const{useOnChange:s}=n.hooks,l=e=>{const t=t=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=l(r.UserField),i=l(r.TableField),c=l(r.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:a}=e;return l((0,r.createListField)({renderList:t,defaultProps:a}))},c.User=o,c.Table=i;const d=c},30891(e,t,a){a.d(t,{A:()=>s});var n=a(89379),r=a(98434);const s=e=>{let{children:t}=e;const{openApi:a,formData:s}=(0,r.useFormContext)();return t((0,n.A)((0,n.A)({},a),{},{formData:s}))}},34643(e,t,a){a.d(t,{Ay:()=>p,Pg:()=>c,eM:()=>d,kx:()=>u});var n=a(98434),r=a(43856),s=a(60586);const{useOnChange:l}=n.hooks,o=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(r.SuperSelectField),c=o(s.$9),d=o(r.SuperSelectTableListField),u=o(r.SuperSelectTreeField),p=i},35774(e,t,a){a.d(t,{A:()=>c});var n=a(89379),r=a(53986),s=a(98434),l=a(81014),o=a(70579);const i=["onClick"],c=e=>{let{onClick:t}=e,a=(0,r.A)(e,i);const c=(0,s.useFormContext)();return(0,o.jsx)(l.default,(0,n.A)((0,n.A)({},a),{},{onClick:e=>t(c,e)}))}},36972(e,t,a){a.d(t,{A:()=>D});var n=a(89379),r=a(53986),s=a(73884),l=a(87558),o=a(98434),i=a(78491),c=a.n(i),d=a(55199);const u="style_salary__sUOtT__-0IeQ",p="style_salary-type__Sl1LC__-0IeQ",m="style_input-number__eoEZr__-0IeQ",h="style_full__NPqJm__-0IeQ",g="style_input-group__toLB7__-0IeQ",f="style_input-group-no-mb__C4nzh__-0IeQ";var _=a(47458),x=a(55431),A=a(48731),v=a(10986),y=a.n(v),j=a(21079),b=a(70579);const S=["data"],I=["getPopupContainer","onBlur","api","isRange","placeholder","disabled","showMonth","remindUnit","req"],N=["api","defaultValue"],C=(0,l.withFetch)(e=>{let{data:t}=e,a=(0,r.A)(e,S);return(0,b.jsx)(d.Select,(0,n.A)((0,n.A)({},a),{},{options:t}))}),{useDecorator:w,useUIDecorator:P}=o.hooks,F=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},T=e=>{let{children:t,isError:a}=e;return(0,b.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(a?"is-error":""),children:(0,b.jsx)("div",{className:"react-form__field-main",children:(0,b.jsx)("div",{className:"react-form__field-input",children:(0,s.cloneElement)(t,{className:"react-form__field-component"})})})})},M=e=>{let{getPopupContainer:t,onBlur:a,api:s,isRange:l=!0,placeholder:o,disabled:i,showMonth:x,remindUnit:v,req:S}=e,N=(0,r.A)(e,I);const[w,P]=y()(N),{formatMessage:M}=(0,_.useIntl)({moduleName:"FormInfo"}),O=M({id:"defaultSelectPlaceholder"},{label:""}),k=M({id:"defaultInputPlaceholder"},{label:""}),L=[6].indexOf((0,j.get)(w,"type"))>-1,E=1===(0,j.get)(w,"type"),D=7===(0,j.get)(w,"type"),Q=e=>{if(e)return L?e/1e4:e},R=c()(a||(()=>{}));return(0,b.jsx)("div",{ref:R,className:u,children:(0,b.jsxs)(d.Row,{wrap:!1,gutter:10,children:[(0,b.jsx)(d.Col,{children:(0,b.jsx)(C,(0,n.A)((0,n.A)({className:p},s),{},{value:(0,j.get)(w,"type"),onChange:e=>{P&&P(Object.assign({},E?{}:w,{type:e,min:"",max:""}))},placeholder:o||O,getPopupContainer:t,disabled:i}))}),E?null:(0,b.jsxs)(d.Col,{flex:1,children:[l&&(0,b.jsxs)(d.Row,{className:v&&[5,6].includes(null===w||void 0===w?void 0:w.type)?g:f,wrap:!1,children:[(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(T,{isError:!(0,j.get)(w,"min")&&S,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:k,formatter:F,value:Q((0,j.get)(w,"min")),style:{textAlign:"center"},onChange:e=>{P(Object.assign({},w,{min:L?1e4*e:e}))},description:v&&[5,6].includes(null===w||void 0===w?void 0:w.type)?(0,b.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,b.jsx)(A.default,{name:null===w||void 0===w?void 0:w.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",L?M({id:"thousand"}):D?"":M({id:"yuan"})]}):null})})}),(0,b.jsx)(d.Col,{children:(0,b.jsx)(d.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(T,{isError:!(0,j.get)(w,"max")&&S,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:k,formatter:F,value:Q((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:L?M({id:"thousand"}):D?"":M({id:"yuan"}),onChange:e=>{P(Object.assign({},w,{max:L?1e4*e:e}))}})})}),5===(0,j.get)(w,"type")&&x&&(0,b.jsx)(d.Col,{children:(0,b.jsxs)("span",{className:(0,j.get)(w,"max")&&(0,j.get)(w,"min")&&!(0,j.get)(w,"month")&&S?"error":"",children:[(0,b.jsx)("span",{className:m,children:"X"}),(0,b.jsx)(d.InputNumber,{min:12,disabled:i,value:(0,j.get)(w,"month"),onChange:e=>{P(Object.assign({},w,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!l&&!D&&(0,b.jsx)(d.InputNumber,{disabled:i,min:0,max:1e8,placeholder:k,className:h,formatter:F,value:Q((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:L?M({id:"thousand"}):D?"":M({id:"yuan"}),onChange:e=>{P(Object.assign({},w,{max:L?1e4*e:e}))}}),!l&&D&&(0,b.jsx)(d.Input,{disabled:i,placeholder:k,className:h,onChange:e=>{P(Object.assign({},w,{max:e.target.value}))},value:(0,j.get)(w,"max"),style:{textAlign:"center"}})]})]})})},O={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"}]},k={type:5,min:"",max:"",month:12},L=e=>{let{api:t=O,defaultValue:a=k}=e,s=(0,r.A)(e,N);return(0,b.jsx)(_.IntlProvider,{moduleName:"FormInfo",importMessages:x.A,children:(0,b.jsx)(M,(0,n.A)((0,n.A)({},s),{},{api:t,defaultValue:a}))})},E=e=>{var t;return w((0,n.A)((0,n.A)({},e),{},{req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1}))(L)};E.Field=L;const D=E},45053(e,t,a){a.d(t,{A:()=>p});var n=a(98434),r=a(55199),s=a(73884),l=a(83136),o=a.n(l),i=a(70720),c=a.n(i),d=a(47094),u=a(70579);const p=e=>{let{name:t,groupName:a,overlayClassName:l,errorRender:i=()=>null,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:a,groupIndex:r}=e;const{emitter:l,formState:o}=(0,n.useFormContext)(),i=(0,s.useRef)({name:t,groupName:a,groupIndex:r});i.current={name:t,groupName:a,groupIndex:r};const c=(0,s.useRef)(o);c.current=o;const[d,u]=(0,s.useState)(null);return(0,s.useEffect)(()=>{const e=l.addListener("form-field-validate-complete",e=>{let{id:t,validate:a}=e;const r=c.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===a.status?Object.assign({},a,{label:r.label,errMsg:n.util.compileErrMsg(a.msg,r.label)}):null)});return()=>{e&&e.remove()}},[l]),d})({name:t,groupName:a,groupIndex:p}),[g,f]=(0,s.useState)(!1),_=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),x=(0,s.useRef)(null),A=(0,s.useRef)(null);c()(()=>{f(!1)}).current={contains:e=>x.current.contains(e)||A.current&&A.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 a=new MutationObserver(e);return a.observe(x.current,{subtree:!0,childList:!0}),()=>{a.disconnect(),t.disconnect()}},[]),(0,u.jsx)(r.Popover,{open:!!_,rootClassName:o()(l,d.A["error-tip-overlay"]),content:_&&(0,u.jsx)("div",{ref:A,style:{width:v},className:o()(d.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:m})})}},46237(e,t,a){a.d(t,{Ay:()=>i,oc:()=>o});var n=a(73884);const r=(0,n.createContext)([]),{Provider:s,Consumer:l}=r,o=()=>(0,n.useContext)(r),i=s},46732(e,t,a){a.d(t,{A:()=>d,K:()=>c});var n=a(75363),r=a(73884),s=a(98434),l=a(47094),o=a(70579);const i=(0,r.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const a=(0,r.useContext)(i),c=(0,s.useGroup)();return a&&(0,o.jsx)(n.default,{className:l.A["helper-guide-field"],name:a+"-"+(c.name?c.name+"-":"")+t})}},47094(e,t,a){a.d(t,{A:()=>n});const n={"form-outer":"style_form-outer__IWUs0__-0IeQ","form-drawer":"style_form-drawer__uYDXS__-0IeQ","table-list":"style_table-list__6lp-A__-0IeQ","list-item":"style_list-item__hVzQa__-0IeQ","table-list-inner":"style_table-list-inner__uc8DK__-0IeQ","table-list-field":"style_table-list-field__JSJfB__-0IeQ","table-list-header":"style_table-list-header__KXvKa__-0IeQ","is-req":"style_is-req__LfXQf__-0IeQ","table-list-extra":"style_table-list-extra__faYTK__-0IeQ","list-btn":"style_list-btn__WKYkm__-0IeQ","form-info":"style_form-info__B8bAP__-0IeQ","list-part":"style_list-part__Ld0GA__-0IeQ","is-important":"style_is-important__vaBk1__-0IeQ","list-item-part":"style_list-item-part__MzKP7__-0IeQ","money-input":"style_money-input__J86Pb__-0IeQ","money-description":"style_money-description__Gz3p7__-0IeQ","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__-0IeQ","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__-0IeQ","helper-guide-field":"style_helper-guide-field__Wke3w__-0IeQ","error-tip-overlay":"style_error-tip-overlay__aNCGc__-0IeQ","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__-0IeQ","column-not-layout":"style_column-not-layout__+SXC+__-0IeQ","mult-field-item":"style_mult-field-item__eS0nJ__-0IeQ","react-form__field-label":"style_react-form__field-label__2U91E__-0IeQ","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__-0IeQ","form-step-section":"style_form-step-section__RvkHy__-0IeQ"}},48221(e,t,a){a.d(t,{Ay:()=>c,WJ:()=>u,Xy:()=>d});var n=a(89379),r=a(25963),s=a(73025),l=a(47094),o=a(76995),i=a(70579);const c=e=>(0,i.jsx)(r.default,(0,n.A)({},(0,o.A)(Object.assign({},e,{className:l.A["form-drawer"]})))),d=()=>{const e=(0,r.useDrawer)();return t=>e((0,o.A)(Object.assign({},t,{className:l.A["form-drawer"]})))},u=e=>{const t=d();return(0,i.jsx)(s.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},50196(e,t,a){a.r(t),a.d(t,{AudioPreview:()=>n.AudioPreview,HtmlPreview:()=>n.HtmlPreview,ImagePreview:()=>n.ImagePreview,OSSFilePreview:()=>n.OSSFilePreview,OfficePreview:()=>n.OfficePreview,PdfPreview:()=>n.PdfPreview,TextPreview:()=>n.TextPreview,UnknownPreview:()=>n.UnknownPreview,VideoPreview:()=>n.VideoPreview,default:()=>n.FilePreview});a(64674);var n=a(61323)},55431(e,t,a){a.d(t,{A:()=>n});const n=e=>({"en-US":()=>Promise.resolve().then(a.bind(a,21649)),"zh-CN":()=>Promise.resolve().then(a.bind(a,80711))}[e]())},56259(e,t,a){a.d(t,{A:()=>o});var n=a(89319),r=a(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{},e))(n.A);l.Field=n.A;const o=l},64261(e,t,a){a.d(t,{A:()=>A});var n=a(89379),r=a(98434),s=a(57469),l=a.n(s),o=a(34677),i=a.n(o),c=a(33097),d=a.n(c),u=a(22717),p=a.n(u),m=(a(17448),a(2842)),h=a(46732),g=a(13050),f=a(70579);const _=r.RULES.REQ,x=r.RULES.LEN,A=async(e,t)=>{const{locale:a}=Object.assign({},t);r.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){const[t,a]=e.split("?"),n=new URLSearchParams(a);return Object.assign({},{id:t},p()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}return e}),r.interceptors.output.use("photo-string",e=>e&&"string"!==typeof e?"".concat(null===e||void 0===e?void 0:e.id).concat(null!==e&&void 0!==e&&e.filename?"?filename=".concat(null===e||void 0===e?void 0:e.filename):""):e),r.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>{const[t,a]=e.split("?"),n=new URLSearchParams(a);return Object.assign({},{id:t},p()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}):e),r.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>"".concat(null===e||void 0===e?void 0:e.id).concat(null!==e&&void 0!==e&&e.filename?"?filename=".concat(null===e||void 0===e?void 0:e.filename):"")):e),r.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),r.interceptors.output.use("to-array",e=>[e]),r.interceptors.input.use("array-single",e=>e?[e]:[]),r.interceptors.output.use("array-single",e=>e?e[0]:null),r.interceptors.input.use("boolean-number",e=>1===e||"1"===e),r.interceptors.output.use("boolean-number",e=>e?1:0),r.interceptors.input.use("un-boolean",e=>!e),r.interceptors.output.use("un-boolean",e=>!e),r.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),r.interceptors.output.use("array-output-value",e=>Array.isArray(e)&&e.length>0?e.map(e=>e.value||e.id):[]),r.interceptors.input.use("date-string",e=>e?l()(e):null),r.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),r.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(l()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(l()(e[1])),t}),r.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}),r.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),r.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,g.loadModule)("components-iconfont:CountyFlag@load"),o=await s(),c=new Map(o.map(e=>{let{ab:t,country_code:a}=e;return[t,a]})),u=new Map(o.map(e=>{let{ab:t,country_code:a}=e;return[a,t]}));r.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?"+".concat(c.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):""),r.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:u.get(Number(t[1])),value:t[2]}:{code:u.get(86),value:e}});const A=(e,t)=>{t=Object.assign({},t);const n={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},EMAIL:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684%s","en-US":"Please enter a valid %s"},LENGTH_EQUAL:{"zh-CN":"%s\u5fc5\u987b\u7b49\u4e8e".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},r=d()(n,"".concat(e,".").concat(a));return r||d()(n,"".concat(e,".zh-CN"))};(0,r.preset)(i()({},{type:"inner",rules:{REQ:function(){return Object.assign({},_(...arguments),{errMsg:A("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];const[n,r,s]=t;let l="";return s===r&&n.length!==Number(s)&&(l="LENGTH_EQUAL"),n.length<r&&(l="LENGTH_MORE"),s&&n.length>s&&(l="LENGTH_LESS"),Object.assign({},x(...t),{errMsg:A(l,{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:A("EMAIL")}},PHONE_NUMBER_INPUT:m.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,a)=>a===t&&e.length!==Number(a)?{result:!1,errMsg:A("LENGTH_EQUAL",{start:t,end:a})}:e.length<t?{result:!1,errMsg:A("LENGTH_MORE",{start:t,end:a})}:a&&e.length>a?{result:!1,errMsg:A("LENGTH_LESS",{start:t,end:a})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},inputNumber:{defaultProps:{changeOnWheel:!1}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,f.jsx)(h.A,(0,n.A)({},e))}},"function"===typeof e?e({interceptors:r.interceptors,RULES:r.RULES}):e))}},76995(e,t,a){a.d(t,{A:()=>h});var n=a(89379),r=a(53986),s=a(98434),l=a(52526),o=a(83799),i=a(83136),c=a.n(i),d=a(47094),u=a(70579);const p=["className","withDecorator","footerButtons","formProps","cancelText","saveText","autoClose"],m=["onSubmit","key"],h=e=>{let{className:t,withDecorator:a,footerButtons:i,formProps:h,cancelText:g,saveText:f,autoClose:_=!0}=e,x=(0,r.A)(e,p);return(0,n.A)((0,n.A)({},x),{},{footerButtons:i||[{children:g||(0,u.jsx)(l.FormattedMessage,{id:"Cancel"}),ButtonComponent:s.CancelButton},{type:"primary",children:f||(0,u.jsx)(l.FormattedMessage,{id:"Save"}),ButtonComponent:s.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const s=t=>{const a=Object.assign({},"function"===typeof h?h(t):h),{onSubmit:s,key:l}=a,i=(0,r.A)(a,m);return(0,u.jsx)(o.lV,(0,n.A)((0,n.A)({},i),{},{onSubmit:async function(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),r=1;r<a;r++)n[r-1]=arguments[r];!1!==(s&&await s(e,Object.assign({},t),...n))&&_&&t.close()},children:e(t)}))};return"function"===typeof a?a(s,t):s(t)},className:c()(t,d.A["form-outer"])})}},78756(e,t,a){a.d(t,{A:()=>o});var n=a(43856),r=a(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);l.Field=n.IndustrySelectField,l.Enum=n.IndustrySelectField.Enum;const o=l},80711(e,t,a){a.r(t),a.d(t,{default:()=>n});const n={addText:"\u6dfb\u52a0",addSomeThing:"\u6dfb\u52a0{label}",delText:"\u5220\u9664",selectedTextAdvanced:"\u5df2\u9009",delConfirm:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u6761{name}\u5417?",defaultInputPlaceholder:"\u8bf7\u8f93\u5165{label}",defaultSelectPlaceholder:"\u8bf7\u9009\u62e9{label}",startDate:"\u5f00\u59cb\u65e5\u671f",endDate:"\u7ed3\u675f\u65e5\u671f",soFarText:"\u81f3\u4eca",uploadButtonText:"\u70b9\u51fb\u4e0a\u4f20",uploadTips:"\u652f\u6301\u6269\u5c55\u540d{extensionNames},\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\u4e0d\u8d85\u8fc7{fileSize}M\uff0c\u6700\u591a\u4e0a\u4f20{maxLength}\u4e2a\u9644\u4ef6",yuan:"\u5143",thousand:"\u4e07\u5143",salaryType:"\u85aa\u8d44\u7c7b\u578b",Cancel:"\u53d6\u6d88",Save:"\u4fdd\u5b58",Next:"\u4e0b\u4e00\u6b65",Complete:"\u5b8c\u6210",Crop:"\u88c1\u526a",Preview:"\u9884\u89c8",PictureFormat:"\u56fe\u7247\u683c\u5f0f\uff1a",ImageSize:"\u56fe\u7247\u5c3a\u5bf8\uff1a",ReUpload:"\u91cd\u65b0\u4e0a\u4f20",UploadFailed:"\u4e0a\u4f20\u5931\u8d25{msg}",NotExceeding:"\u4e0d\u8d85\u8fc7{size}M",FileNotExceeding:"\u6587\u4ef6{name}\u4e0d\u80fd\u8d85\u8fc7{size}MB!",Rotate:"\u65cb\u8f6c",ImageFull:"\u5145\u6ee1",Size:"\u5927\u5c0f"}},81026(e,t,a){a.d(t,{A:()=>o});var n=a(43856),r=a(98434);const{useOnChange:s}=r.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);l.Field=n.FunctionSelectField,l.Enum=n.FunctionSelectField.Enum;const o=l},83230(e,t,a){a.d(t,{A:()=>o});var n=a(98434),r=a(43856);const{useOnChange:s}=n.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.CascaderField);l.Field=r.CascaderField,l.createTreeUtils=r.createTreeUtils;const o=l},83799(e,t,a){a.d(t,{NI:()=>H,TQ:()=>m.A,JL:()=>z,eu:()=>v.A,vx:()=>h.A,lr:()=>ee,s3:()=>te,lV:()=>l.A,d4:()=>g.A,ZN:()=>f.A,pd:()=>q,YI:()=>K,h2:()=>G,F0:()=>_.A,go:()=>x.default,tt:()=>s.Rate,lu:()=>y.A,l6:()=>J,Ap:()=>s.Slider,wD:()=>U,eM:()=>B,kx:()=>V,Pg:()=>W,dO:()=>s.Switch,EY:()=>M,fs:()=>X,AG:()=>Z,f7:()=>$,w5:()=>b.A,_O:()=>A.A,nk:()=>ae});var n=a(89379),r=a(53986),s=a(98434),l=a(1550),o=a(52526),i=a(73884),c=a(30891),d=a(47094),u=a(30096),p=a(34643),m=a(1904),h=a(83230),g=a(81026),f=a(78756),_=a(92328),x=a(2842),A=a(89099),v=a(96339),y=a(36972),j=a(15209),b=a(56259),S=a(55199),I=a(10986),N=a.n(I),C=a(70579);const w=["children"],{useDecorator:P}=s.hooks,F=e=>{let{children:t}=e,a=(0,r.A)(e,w);const[s]=N()(a);return(0,C.jsxs)(S.Typography.Text,(0,n.A)((0,n.A)({},a),{},{children:[(0,C.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,C.jsx)(S.Input,{value:s})}),t||s]}))},T=e=>P(e)(F);T.Field=F;const M=T;var O=a(45053);const k=["placeholder","label"],L=["placeholder","label","className"],E=["placeholder","label"],D=["placeholder","label","soFarText"],Q=e=>{const t=(0,i.forwardRef)((t,a)=>{let{placeholder:s,label:l}=t,i=(0,r.A)(t,k);const{formatMessage:c}=(0,o.useIntl)();return(0,C.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:a,label:l,placeholder:s||c({id:"defaultInputPlaceholder"},{label:l})}))});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(a=>{t[a]=e[a]}),t},R=e=>{const t=(0,i.forwardRef)((t,a)=>{let{placeholder:s,label:l}=t,i=(0,r.A)(t,E);const{formatMessage:c}=(0,o.useIntl)();return(0,C.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:a,label:l,placeholder:s||c({id:"defaultSelectPlaceholder"},{label:l})}))});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(a=>{t[a]=e[a]}),t},z=R(u.Ay),U=R(p.Ay),B=R(p.eM),W=R(p.Pg),V=R(p.kx),H=R(m.N),G=Q(j.A),q=Q(s.Input);q.Password=Q(s.Input.Password);const X=(Y=s.TextArea,e=>{let{placeholder:t,label:a,className:s}=e,l=(0,r.A)(e,L);const{formatMessage:i}=(0,o.useIntl)();return(0,C.jsx)("div",{className:d.A["textarea-wrapped-component"],children:(0,C.jsx)(Y,(0,n.A)((0,n.A)({},l),{},{label:a,placeholder:t||i({id:"defaultInputPlaceholder"},{label:a})}))})});var Y;const J=R(s.Select),K=Q(s.InputNumber),$=R(s.TreeSelect),Z=R(s.TimePicker);Z.RangePicker=R(s.TimePicker.RangePicker);const ee=R(s.DatePicker);ee.MonthPicker=R(s.DatePicker.MonthPicker),ee.RangePicker=R(s.DatePicker.RangePicker),ee.WeekPicker=R(s.DatePicker.WeekPicker);const te=e=>{let{placeholder:t,label:a,soFarText:l}=e,i=(0,r.A)(e,D);const{formatMessage:c}=(0,o.useIntl)({moduleName:"FormInfo"});return(0,C.jsx)(s.DatePickerToday,(0,n.A)((0,n.A)({},i),{},{label:a,placeholder:[c({id:"startDate"}),c({id:"endDate"})],soFarText:l||c({id:"soFarText"})}))},ae=Object.assign({},s,{Input:q,InputUpperCase:G,TextArea:X,Select:J,InputNumber:K,TreeSelect:$,TimePicker:Z,DatePicker:ee,DatePickerToday:te,Form:l.A,FormItem:c.A,AdvancedSelect:z,SuperSelect:U,SuperSelectTableList:B,SuperSelectUser:W,SuperSelectTree:V,AddressSelect:m.A,AddressInput:H,MoneyInput:_.A,PhoneNumber:x.default,Cascader:h.A,FunctionSelect:g.A,IndustrySelect:f.A,TypeDateRangePicker:b.A,Upload:A.A,Avatar:v.A,SalaryInput:y.A,Text:M,Rate:s.Rate,Switch:s.Switch,Slider:s.Slider,ErrorTip:O.A})},89099(e,t,a){a.d(t,{A:()=>N});var n=a(89379),r=a(53986),s=a(55199),l=a(83136),o=a.n(l),i=a(10986),c=a.n(i);const d="style_upload__t422Q__-0IeQ",u="style_upload-list__Q9HDc__-0IeQ",p="style_tips__3Gpnu__-0IeQ";var m=a(19343),h=a(98434),g=a(47458),f=a(1488),_=a.n(f),x=a(17508),A=a(55431),v=a(70579);const y=["className","fileSize","maxLength","multiple","size","accept","children","renderTips","showUploadList","onSave","ossUpload","onUpload","getPermission","concurrentCount"],j=["interceptor"],{useOnChange:b}=h.hooks,S=(0,g.createWithIntl)({importMessages:A.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,g.useIntl)({moduleName:"FormInfo"}),a=Object.assign({},{defaultValue:[],children:t({id:"uploadButtonText"}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".eml",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30,concurrentCount:10},e),{className:l,fileSize:i,maxLength:h,multiple:f,size:A,accept:j,children:b,renderTips:S,showUploadList:I,onSave:N,ossUpload:C,onUpload:w,getPermission:P,concurrentCount:F}=a,T=(0,r.A)(a,y),[M,O]=c()(T),k=M||[],{fileList:L,onFileSelected:E}=(0,x.lN)({multiple:f,onSave:N,onUpload:C||w,fileSize:i,maxLength:h,value:k,onChange:O,concurrentCount:F}),D=[...L,...k],Q=S(t({id:"uploadTips"},{extensionNames:j.map(e=>e.replace(/^\./,"")).join(","),maxLength:h,fileSize:i}),{fileSize:i,maxLength:h,accept:j});return(0,v.jsxs)(s.Space,{direction:"vertical",children:[(0,v.jsxs)(s.Flex,{align:"start",gap:8,vertical:!0,children:[(0,v.jsx)(x.Zi,(0,n.A)((0,n.A)({},_()(T,["value","onChange"])),{},{size:A,multiple:f,accept:j,className:o()(d,l),onChange:E,children:b})),Q&&(0,v.jsx)("div",{className:p,children:Q})]}),I&&D.length>0&&(0,v.jsx)(m.List,{className:u,dataSource:D,infoItemRenders:[],getPermission:P||(e=>"delete"===e),apis:{onDelete:e=>{const t=k.slice(0),a=t.indexOf(e);a>-1&&t.splice(a,1),O(t)}}})]})}),I=e=>{let{interceptor:t="file-format"}=e,a=(0,r.A)(e,j);return b((0,n.A)({interceptor:t},a))(S)};I.Field=S;const N=I},92328(e,t,a){a.d(t,{A:()=>b});var n=a(89379),r=a(53986),s=a(10986),l=a.n(s),o=a(98434),i=a(55199),c=a(69484);const d="style_money-input__Pyur7__-0IeQ",u="style_money-description__9pFk4__-0IeQ";var p=a(83136),m=a.n(p),h=a(34677),g=a.n(h),f=a(73884),_=a(70579);const x=["chineseEmpty","className","showError","errorDesc","transformMoneyToChinese","onBlur","moneyFormat"],{isNotEmpty:A}=o.util||o.formUtils,{useOnChange:v}=o.hooks,y=e=>{let{chineseEmpty:t,className:a,showError:s,errorDesc:o,transformMoneyToChinese:p,onBlur:h,moneyFormat:v}=e,y=(0,r.A)(e,x);const[j,b]=(0,f.useState)(""),[S,I]=l()(y),N=g()({controls:!1,precision:2,addonAfter:"\u5143"},y,{max:A(y.max)?y.max>c.e?c.e:y.max:c.e});return(0,_.jsxs)("div",{className:m()(a,"money-input",d),children:[(0,_.jsx)(i.InputNumber,(0,n.A)((0,n.A)({},N),{},{status:j,formatter:v?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=v?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return A(t)?(Number(t)>Number(N.max)||A(N.min)&&Number(t)<Number(N.min))&&b("error"):b(""),A(t)?Number(t):null},onChange:e=>{I(e)},onBlur:e=>{h&&h(e,b)}})),(0,_.jsx)("div",{className:m()(u),children:"error"===j&&s?o:A(S)?(0,c.A)(p?p(S):S):t})]})},j=e=>v(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(y);j.Field=y,j.toChineseCharacter=c.A;const b=j},94005(e,t,a){a.d(t,{$X:()=>I,Ay:()=>S,Wp:()=>N});var n=a(89379),r=a(53986),s=a(3382),l=a(73884),o=a(98434),i=a(73025),c=a(47458),d=a(47094),u=a(55431),p=a(55199),m=a(76995),h=a(70579);const g=["footerButtons","cancelText","completeText","nextText","items","withDecorator","autoClose"],f=["formProps","title"],_=["onSubmit"],x=["formProps"],A=["children","stepSection"],v=["modalProps"],y="FormInfo",j=e=>{let{items:t,children:a}=e;const[n,r]=(0,l.useState)(0);return a({currentIndex:n,setCurrentIndex:r,stepCacheRef:(0,l.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},b=e=>{let{footerButtons:t,cancelText:a,completeText:n,nextText:s,items:l,withDecorator:i,autoClose:v=!0}=e,b=(0,r.A)(e,g);return(0,m.A)(Object.assign({},b,{footerButtons:e=>{let{currentIndex:t,isLastStep:r}=e;const{footerButtons:i}=Object.assign({},l[t]);return i||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:y,children:a||(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:y})}),ButtonComponent:o.CancelButton},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:y,children:r?n||(0,h.jsx)(c.FormattedMessage,{id:"Complete",moduleName:y}):s||(0,h.jsx)(c.FormattedMessage,{id:"Next",moduleName:y})}),ButtonComponent:o.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const a=t=>(0,h.jsx)(j,{items:l,children:a=>{var n;let{currentIndex:s,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}=a;const{formProps:m,title:g}=c,x=(0,r.A)(c,f),A="function"===typeof m?m(t):m,{onSubmit:y}=A,j=(0,r.A)(A,_),b=Object.assign({},j.data,null===(n=u.current[s])||void 0===n?void 0:n.data);return e(Object.assign({},t,x,{currentIndex:s,isLastStep:o,setCurrentIndex:i,stepCacheRef:u,stepSection:(0,h.jsx)(p.Steps,{className:d.A["form-step-section"],current:s,items:l.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},j,{key:s,data:b,onSubmit:async function(e){u.current[s]={data:e};for(var a=arguments.length,n=new Array(a>1?a-1:0),r=1;r<a;r++)n[r-1]=arguments[r];const l=y&&await y(e,Object.assign({},t,{currentIndex:s,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}),...n);return u.current[s]=Object.assign({},u.current[s],{output:l}),v&&!o&&!1!==l&&i(e=>e+1),!!o&&l}})}))}});return"function"===typeof i?i(a,t):a(t)},formProps:e=>{let{formProps:t}=e,a=(0,r.A)(e,x);return Object.assign({},a,t)},children:e=>{let{children:t,stepSection:a}=e,n=(0,r.A)(e,A);return(0,h.jsxs)(p.Flex,{vertical:!0,gap:24,children:[(0,h.jsx)(p.Flex,{justify:"center",children:a}),"function"===typeof t?t(n):t]})}}))},S=e=>(0,h.jsx)(s.default,(0,n.A)({},b(Object.assign({},e,{className:d.A["form-modal"]})))),I=()=>{const e=(0,s.useModal)();return t=>e(b(Object.assign({},t,{className:d.A["form-modal"]})))},N=e=>{const t=I();if(!e.api){const{modalProps:a}=e,s=(0,r.A)(e,v);return(0,h.jsx)(p.Button,(0,n.A)((0,n.A)({},s),{},{onClick:()=>{t(a)}}))}return(0,h.jsx)(i.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},96252(e,t,a){a.r(t),a.d(t,{AddressInput:()=>f.NI,AddressSelect:()=>f.TQ,AdvancedSelect:()=>f.JL,Avatar:()=>f.eu,Cascader:()=>f.vx,DatePicker:()=>f.lr,DatePickerToday:()=>f.s3,ErrorTip:()=>m.A,Form:()=>u.A,FormApiButton:()=>o.A,FormDrawer:()=>d.Ay,FormDrawerButton:()=>d.WJ,FormItem:()=>p.A,FormModal:()=>i.Ay,FormModalButton:()=>i.W6,FormStepModal:()=>c.Ay,FormStepModalButton:()=>c.Wp,FunctionSelect:()=>f.d4,IndustrySelect:()=>f.ZN,Input:()=>f.pd,InputNumber:()=>f.YI,InputUpperCase:()=>f.h2,List:()=>s.List,MoneyInput:()=>f.F0,MultiField:()=>s.MultiField,PhoneNumber:()=>f.go,Rate:()=>f.tt,SalaryInput:()=>f.lu,Select:()=>f.l6,SelectInnerInput:()=>_.A,Slider:()=>f.Ap,SuperSelect:()=>f.wD,SuperSelectTableList:()=>f.eM,SuperSelectTree:()=>f.kx,SuperSelectUser:()=>f.Pg,Switch:()=>f.dO,TableList:()=>s.TableList,Text:()=>f.EY,TextArea:()=>f.fs,TimePicker:()=>f.AG,TreeSelect:()=>f.f7,TypeDateRangePicker:()=>f.w5,Upload:()=>f._O,default:()=>x,fieldDecorator:()=>r.E,fields:()=>r.A,formModule:()=>f.nk,useFormDrawer:()=>d.Xy,useFormModal:()=>i.Vl,useFormStepModal:()=>c.$X});var n=a(64261),r=a(15445),s=a(5180),l=a.n(s),o=a(35774),i=a(5995),c=a(94005),d=a(48221),u=a(1550),p=a(30891),m=a(45053),h=a(98434),g={};for(const A in h)["default","SelectInnerInput","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField"].indexOf(A)<0&&(g[A]=()=>h[A]);a.d(t,g);var f=a(83799),_=a(18936);(0,n.A)(),l().fields=r.A,l().List=s.List,l().TableList=s.TableList,l().FormApiButton=o.A,l().FormModal=i.Ay,l().useFormModal=i.Vl,l().FormModalButton=i.W6,l().FormStepModal=c.Ay,l().useFormStepModal=c.$X,l().FormStepModalButton=c.Wp,l().FormDrawer=d.Ay,l().useFormDrawer=d.Xy,l().FormDrawerButton=d.WJ,l().Form=u.A,l().FormItem=p.A,l().ErrorTip=m.A,l().SubmitButton=h.SubmitButton,l().CancelButton=h.CancelButton,l().fieldDecorator=r.E,l().MultiField=s.MultiField,l().useFormContext=h.useFormContext,l().hooks=h.hooks,l().widget=h.widget,l().utils=h.utils,l().formUtils=h.formUtils;const x=l()},96339(e,t,a){a.d(t,{A:()=>W});var n=a(53986),r=a(89379),s=a(73884),l=a(17508),o=a(40438),i=a(72752),c=a(3382),d=a(64671),u=a(55199),p=a(53202),m=a.n(p),h=a(33097),g=a.n(h),f=a(83136),_=a.n(f),x=a(51941),A=a(98434),v=a(34677),y=a.n(v);const j="style_upload-btn__-6XtP__-0IeQ",b="style_square__UPkfA__-0IeQ",S="style_is-loading__wx6Pd__-0IeQ",I="style_upload-btn-tips__YtxWz__-0IeQ",N="style_drop-tips__N-v59__-0IeQ",C="style_preview-area__aV3SN__-0IeQ";var w=a(18411),P=a(47458),F=a(55431),T=a(70579);const M=["image","width","height","borderRadius","preview","fileSize","accept","renderTips","getApi","shape","border"],O=["image","width","height","borderRadius","getApi","preview","fileSize","accept","renderTips","border","dropModalSize"],{useOnChange:k}=A.hooks,L=o.default.Avatar,E="FormInfo",D=(0,l.Ay)(e=>{let{className:t,icon:a,loading:n,value:s,gender:l,width:o,height:i,children:c,shape:p,defaultAvatar:m,displayAvatar:h,apis:f}=e;const x=(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(L,(0,r.A)((0,r.A)({},Object.assign({},"function"===typeof h?h(s):{id:g()(s,"id")})),{},{gender:l,width:64*o/i,height:64,shape:p,defaultAvatar:m,apis:f})),(0,T.jsx)("div",{className:I,children:a||(0,T.jsx)(d.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,T.jsx)("div",{className:_()(t,j,{[S]:n,[b]:"square"===p||!(o&&o===i)}),style:{width:64*o/i},children:n?(0,T.jsx)(u.Spin,{children:x}):x})}),Q=e=>{let t=e.split(","),a=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],r=atob(a),s=r.length,l=new Uint8Array(s);for(;s--;)l[s]=r.charCodeAt(s);return new Blob([l],{type:n})},R=(0,s.forwardRef)((e,t)=>{let{image:a,width:o,height:i,borderRadius:c,preview:p,fileSize:h,accept:g,renderTips:f,getApi:_,shape:A,border:v=1}=e,y=(0,n.A)(e,M);const j=(0,P.useIntl)({moduleName:E}),[b,S]=(0,s.useState)(0),I=(0,s.useRef)(null),[w,F]=(0,s.useState)(a),[O,k]=(0,s.useState)(1),[L,D]=(0,s.useState)(0),[R,z]=(0,s.useState)(""),U=(0,s.useRef)(null);(0,s.useLayoutEffect)(()=>{S(2*I.current.clientWidth/3)},[]),_({getImage:()=>{const e=U.current.getImage(),t=document.createElement("canvas"),a=t.getContext("2d");return t.width=o,t.height=i,a.drawImage(e,0,0,t.width,t.height),new window.File([Q(t.toDataURL())],w.name,{type:w.type})}});const B=()=>{z(U.current.getImage().toDataURL())},W=(0,x.useDebouncedCallback)(B,500);return(0,T.jsx)("div",{ref:I,children:(0,T.jsxs)(u.Row,{wrap:!1,align:"middle",children:[(0,T.jsx)(u.Col,{span:p?16:24,children:b&&(0,T.jsxs)(u.Space,{direction:"vertical",children:[(0,T.jsx)(m(),(0,r.A)((0,r.A)({},y),{},{ref:U,image:w,scale:O,rotate:L,width:b-2*v,height:i*b/o-2*v*i/o,border:v,color:[0,0,0,.6],borderRadius:c*b/o,onImageReady:B,onImageChange:W})),(0,T.jsx)("div",{className:N,children:f("".concat(j.formatMessage({id:"PictureFormat"})).concat(g.map(e=>e.replace(/^\./,"")).join(" ")," ").concat(j.formatMessage({id:"ImageSize"})).concat(j.formatMessage({id:"NotExceeding"},{size:h})),{accept:g,fileSize:h})}),(0,T.jsxs)(u.Row,{gutter:14,align:"middle",children:[(0,T.jsx)(u.Col,{children:(0,T.jsx)(u.Tooltip,{title:j.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,T.jsx)(d.default,{type:"icon-xuanzhuan",onClick:()=>{D(e=>(e-90)%360)}})})}),(0,T.jsx)(u.Col,{children:(0,T.jsx)(u.Tooltip,{title:j.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,T.jsx)(d.default,{type:"icon-chongman",onClick:()=>{k(1)}})})}),(0,T.jsx)(u.Col,{flex:1,children:(0,T.jsx)(u.Slider,{tooltip:{placement:"bottom",formatter:()=>j.formatMessage({id:"Size"})},value:O,step:.05,min:.2,max:3,onChange:k})}),(0,T.jsx)(u.Col,{children:(0,T.jsx)(l.FI,{accept:g,onChange:e=>{e[0].size>1024*h*1024?u.message.error(j.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:h})):(D(0),k(1),F(e[0]))},children:j.formatMessage({id:"ReUpload"})})})]})]})}),p&&(0,T.jsx)(u.Col,{span:8,children:(0,T.jsx)("div",{className:C,children:(0,T.jsxs)(u.Space,{direction:"vertical",children:[(0,T.jsx)(u.Avatar,{src:R,shape:A,style:{width:b/2-36,height:(b/2-36)*i/o}}),(0,T.jsx)("div",{style:{textAlign:"center"},children:j.formatMessage({id:"Preview"})})]})})})]})})}),z=()=>{const e=(0,c.useModal)();return t=>{const a=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t),{image:s,width:l,height:o,borderRadius:i,getApi:c,preview:d,fileSize:u,accept:p,renderTips:m,border:h,dropModalSize:g}=a,f=(0,n.A)(a,O);return e((0,r.A)((0,r.A)({},f),{},{size:g,children:(0,T.jsx)(R,{preview:d,fileSize:u,accept:p,getApi:c,renderTips:m,width:l,height:o,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:i,image:s,border:h,scale:1,rotate:0})}))}},U=(0,P.createWithIntl)({importMessages:F.A,moduleName:"FormInfo"})(e=>{var t;let{value:a,gender:n,fileSize:r=2,accept:l=[".jpg",".png",".jpeg"],openEditor:o=!0,apis:c,renderTips:d=e=>e,onChange:p,shape:m="circle",width:h=200,height:g=200,title:f=(0,T.jsx)(P.IntlProvider,{importMessages:F.A,moduleName:"FormInfo",children:(0,T.jsx)(P.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:_=1,icon:x,dropModalSize:A="small",defaultAvatar:v=w.A,displayAvatar:j}=e;const[b,S]=(0,s.useState)(!1),{apis:I}=(0,i.usePreset)(),N=y()({},I,c),C=N.ossUpload||N.upload||(null===(t=N.file)||void 0===t?void 0:t.upload),M=(0,s.useRef)(null),O=z(),k=(0,P.useIntl)({moduleName:E});return(0,T.jsx)(D,{value:a,gender:n,accept:l,width:h,height:g,shape:m,icon:x,loading:b,defaultAvatar:v,displayAvatar:j,apis:N,onChange:e=>{if(e[0].size>1024*r*1024)return void u.message.error(k.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:r}));const t=e=>(S(!0),C({file:e}).then(e=>{let{data:t}=e;0===t.code?p(t.data):u.message.error(k.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{S(!1)}));o?O({image:e[0],width:h,height:g,title:f,shape:m,border:_,dropModalSize:A,getApi:e=>M.current=e,fileSize:r,accept:l,renderTips:d,onConfirm:()=>{t(M.current.getImage())}}):t(e[0])}})}),B=e=>k(e)(U);B.Field=U,B.useDropModal=z;const W=B}}]);
|
|
2
|
-
//# sourceMappingURL=4474.1059ef67.chunk.js.map
|