@kne-components/components-core 0.4.32 → 0.4.34
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 +91 -91
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1996.9bed2329.chunk.css +2 -0
- package/build/static/css/{1996.1feb46e4.chunk.css.map → 1996.9bed2329.chunk.css.map} +1 -1
- package/build/static/css/2004.d6c55d50.chunk.css +2 -0
- package/build/static/css/{2004.737b39bc.chunk.css.map → 2004.d6c55d50.chunk.css.map} +1 -1
- package/build/static/css/206.361be49f.chunk.css +2 -0
- package/build/static/css/206.361be49f.chunk.css.map +1 -0
- package/build/static/css/254.27bad6c9.chunk.css +2 -0
- package/build/static/css/{254.b824e50e.chunk.css.map → 254.27bad6c9.chunk.css.map} +1 -1
- package/build/static/css/2628.25e3f37c.chunk.css +2 -0
- package/build/static/css/{2628.d7dccf55.chunk.css.map → 2628.25e3f37c.chunk.css.map} +1 -1
- package/build/static/css/3404.5cd6e139.chunk.css +2 -0
- package/build/static/css/{3404.6c847cf6.chunk.css.map → 3404.5cd6e139.chunk.css.map} +1 -1
- package/build/static/css/3771.7b274802.chunk.css +2 -0
- package/build/static/css/{3771.1fa66ff2.chunk.css.map → 3771.7b274802.chunk.css.map} +1 -1
- package/build/static/css/{3790.d31be1bd.chunk.css → 3790.a1dca75c.chunk.css} +2 -2
- package/build/static/css/{3790.d31be1bd.chunk.css.map → 3790.a1dca75c.chunk.css.map} +1 -1
- package/build/static/css/4741.ab17c01b.chunk.css +2 -0
- package/build/static/css/{4741.ae13daff.chunk.css.map → 4741.ab17c01b.chunk.css.map} +1 -1
- package/build/static/css/4834.5758cb4b.chunk.css +2 -0
- package/build/static/css/{4834.48591cce.chunk.css.map → 4834.5758cb4b.chunk.css.map} +1 -1
- package/build/static/css/5195.a6e0460c.chunk.css +2 -0
- package/build/static/css/5195.a6e0460c.chunk.css.map +1 -0
- package/build/static/css/6763.6a544314.chunk.css +2 -0
- package/build/static/css/{6763.1a96d043.chunk.css.map → 6763.6a544314.chunk.css.map} +1 -1
- package/build/static/css/7227.bf67f594.chunk.css +2 -0
- package/build/static/css/{7227.2cf2bf33.chunk.css.map → 7227.bf67f594.chunk.css.map} +1 -1
- package/build/static/css/7371.2715730e.chunk.css +2 -0
- package/build/static/css/{7371.128298a9.chunk.css.map → 7371.2715730e.chunk.css.map} +1 -1
- package/build/static/css/7548.1ff965d9.chunk.css +12 -0
- package/build/static/css/{7548.e087a24a.chunk.css.map → 7548.1ff965d9.chunk.css.map} +1 -1
- package/build/static/css/760.e5c2e72c.chunk.css +2 -0
- package/build/static/css/{760.ca58e057.chunk.css.map → 760.e5c2e72c.chunk.css.map} +1 -1
- package/build/static/css/833.74e553af.chunk.css +2 -0
- package/build/static/css/{833.3df58f30.chunk.css.map → 833.74e553af.chunk.css.map} +1 -1
- package/build/static/css/8593.52d4a5dc.chunk.css +2 -0
- package/build/static/css/{8593.5838ba2d.chunk.css.map → 8593.52d4a5dc.chunk.css.map} +1 -1
- package/build/static/css/9556.934cb4f3.chunk.css +2 -0
- package/build/static/css/{9556.6ee73384.chunk.css.map → 9556.934cb4f3.chunk.css.map} +1 -1
- package/build/static/js/{1353.a91edf5b.chunk.js → 1353.7388baf9.chunk.js} +3 -3
- package/build/static/js/1353.7388baf9.chunk.js.map +1 -0
- package/build/static/js/{196.8bd96f9f.chunk.js → 196.3a94bd36.chunk.js} +1 -1
- package/build/static/js/1996.81780952.chunk.js +2 -0
- package/build/static/js/{1996.9f7e6143.chunk.js.map → 1996.81780952.chunk.js.map} +1 -1
- package/build/static/js/{2004.c830e5a3.chunk.js → 2004.667cba21.chunk.js} +3 -3
- package/build/static/js/{2004.c830e5a3.chunk.js.map → 2004.667cba21.chunk.js.map} +1 -1
- package/build/static/js/206.debedb25.chunk.js +2 -0
- package/build/static/js/206.debedb25.chunk.js.map +1 -0
- package/build/static/js/{2242.94fc47d8.chunk.js → 2242.dbfecdb7.chunk.js} +2 -2
- package/build/static/js/2242.dbfecdb7.chunk.js.map +1 -0
- package/build/static/js/254.802450c0.chunk.js +2 -0
- package/build/static/js/254.802450c0.chunk.js.map +1 -0
- package/build/static/js/{2628.df78cca9.chunk.js → 2628.b5bdedc8.chunk.js} +2 -2
- package/build/static/js/{2628.df78cca9.chunk.js.map → 2628.b5bdedc8.chunk.js.map} +1 -1
- package/build/static/js/2995.a8e5278e.chunk.js +2 -0
- package/build/static/js/2995.a8e5278e.chunk.js.map +1 -0
- package/build/static/js/{3404.9cb3e523.chunk.js → 3404.ede50d81.chunk.js} +3 -3
- package/build/static/js/{3404.9cb3e523.chunk.js.map → 3404.ede50d81.chunk.js.map} +1 -1
- package/build/static/js/3771.a2e5aca8.chunk.js +2 -0
- package/build/static/js/{3771.c34bfb11.chunk.js.map → 3771.a2e5aca8.chunk.js.map} +1 -1
- package/build/static/js/{3790.16145fc5.chunk.js → 3790.4ff8aa89.chunk.js} +2 -2
- package/build/static/js/{3790.16145fc5.chunk.js.map → 3790.4ff8aa89.chunk.js.map} +1 -1
- package/build/static/js/3856.683070f5.chunk.js +2 -0
- package/build/static/js/{3856.3decac1c.chunk.js.map → 3856.683070f5.chunk.js.map} +1 -1
- package/build/static/js/4474.47697046.chunk.js +2 -0
- package/build/static/js/4474.47697046.chunk.js.map +1 -0
- package/build/static/js/{4834.775e30b7.chunk.js → 4834.ddb658d0.chunk.js} +2 -2
- package/build/static/js/{4834.775e30b7.chunk.js.map → 4834.ddb658d0.chunk.js.map} +1 -1
- package/build/static/js/5083.a75cd808.chunk.js +3 -0
- package/build/static/js/5083.a75cd808.chunk.js.map +1 -0
- package/build/static/js/5195.969ae76a.chunk.js +2 -0
- package/build/static/js/{5195.06d77bb4.chunk.js.map → 5195.969ae76a.chunk.js.map} +1 -1
- package/build/static/js/6763.3efba0fa.chunk.js +2 -0
- package/build/static/js/{6763.add67f95.chunk.js.map → 6763.3efba0fa.chunk.js.map} +1 -1
- package/build/static/js/{7227.b6c123d7.chunk.js → 7227.83427af0.chunk.js} +3 -3
- package/build/static/js/{7227.b6c123d7.chunk.js.map → 7227.83427af0.chunk.js.map} +1 -1
- package/build/static/js/{7371.227ccafe.chunk.js → 7371.b37a6b03.chunk.js} +2 -2
- package/build/static/js/{7371.227ccafe.chunk.js.map → 7371.b37a6b03.chunk.js.map} +1 -1
- package/build/static/js/{7548.45e5dc85.chunk.js → 7548.f0ea309c.chunk.js} +2 -2
- package/build/static/js/{7548.45e5dc85.chunk.js.map → 7548.f0ea309c.chunk.js.map} +1 -1
- package/build/static/js/{760.64f75f04.chunk.js → 760.4c6c3bd8.chunk.js} +2 -2
- package/build/static/js/{760.64f75f04.chunk.js.map → 760.4c6c3bd8.chunk.js.map} +1 -1
- package/build/static/js/833.e99f3b90.chunk.js +2 -0
- package/build/static/js/{833.32a27f72.chunk.js.map → 833.e99f3b90.chunk.js.map} +1 -1
- package/build/static/js/8593.af5c71f2.chunk.js +2 -0
- package/build/static/js/{8593.0af3f1bd.chunk.js.map → 8593.af5c71f2.chunk.js.map} +1 -1
- package/build/static/js/9556.7a7bb4d4.chunk.js +3 -0
- package/build/static/js/{9556.f28d3154.chunk.js.map → 9556.7a7bb4d4.chunk.js.map} +1 -1
- package/build/static/js/{main.3f7d3274.js → main.9960c7c0.js} +2 -2
- package/build/static/js/{main.3f7d3274.js.map → main.9960c7c0.js.map} +1 -1
- package/package.json +2 -2
- package/build/static/css/1996.1feb46e4.chunk.css +0 -2
- package/build/static/css/2004.737b39bc.chunk.css +0 -2
- package/build/static/css/206.710bf519.chunk.css +0 -2
- package/build/static/css/206.710bf519.chunk.css.map +0 -1
- package/build/static/css/254.b824e50e.chunk.css +0 -2
- package/build/static/css/2628.d7dccf55.chunk.css +0 -2
- package/build/static/css/3404.6c847cf6.chunk.css +0 -2
- package/build/static/css/3771.1fa66ff2.chunk.css +0 -2
- package/build/static/css/4741.ae13daff.chunk.css +0 -2
- package/build/static/css/4834.48591cce.chunk.css +0 -2
- package/build/static/css/5195.339dc2db.chunk.css +0 -2
- package/build/static/css/5195.339dc2db.chunk.css.map +0 -1
- package/build/static/css/6763.1a96d043.chunk.css +0 -2
- package/build/static/css/7227.2cf2bf33.chunk.css +0 -2
- package/build/static/css/7371.128298a9.chunk.css +0 -2
- package/build/static/css/7548.e087a24a.chunk.css +0 -12
- package/build/static/css/760.ca58e057.chunk.css +0 -2
- package/build/static/css/833.3df58f30.chunk.css +0 -2
- package/build/static/css/8593.5838ba2d.chunk.css +0 -2
- package/build/static/css/9556.6ee73384.chunk.css +0 -2
- package/build/static/js/1353.a91edf5b.chunk.js.map +0 -1
- package/build/static/js/1996.9f7e6143.chunk.js +0 -2
- package/build/static/js/206.b6813a7e.chunk.js +0 -2
- package/build/static/js/206.b6813a7e.chunk.js.map +0 -1
- package/build/static/js/2242.94fc47d8.chunk.js.map +0 -1
- package/build/static/js/254.13803525.chunk.js +0 -2
- package/build/static/js/254.13803525.chunk.js.map +0 -1
- package/build/static/js/2995.156074ac.chunk.js +0 -2
- package/build/static/js/2995.156074ac.chunk.js.map +0 -1
- package/build/static/js/3771.c34bfb11.chunk.js +0 -2
- package/build/static/js/3856.3decac1c.chunk.js +0 -2
- package/build/static/js/4474.e0342d87.chunk.js +0 -2
- package/build/static/js/4474.e0342d87.chunk.js.map +0 -1
- package/build/static/js/5083.4e45cda2.chunk.js +0 -3
- package/build/static/js/5083.4e45cda2.chunk.js.map +0 -1
- package/build/static/js/5195.06d77bb4.chunk.js +0 -2
- package/build/static/js/6763.add67f95.chunk.js +0 -2
- package/build/static/js/833.32a27f72.chunk.js +0 -2
- package/build/static/js/8593.0af3f1bd.chunk.js +0 -2
- package/build/static/js/9556.f28d3154.chunk.js +0 -3
- /package/build/static/js/{1353.a91edf5b.chunk.js.LICENSE.txt → 1353.7388baf9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2004.c830e5a3.chunk.js.LICENSE.txt → 2004.667cba21.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.9cb3e523.chunk.js.LICENSE.txt → 3404.ede50d81.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5083.4e45cda2.chunk.js.LICENSE.txt → 5083.a75cd808.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.b6c123d7.chunk.js.LICENSE.txt → 7227.83427af0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.f28d3154.chunk.js.LICENSE.txt → 9556.7a7bb4d4.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([[330,4474],{330:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r});var n=s(29871),a=s.n(n),l={};for(const o in n)"default"!==o&&(l[o]=()=>n[o]);s.d(t,l),a().Fetch=n.FlexBoxFetch;const r=a()},1904:(e,t,s)=>{s.d(t,{A:()=>i,N:()=>c});var n=s(98434),a=s(43856);const{useOnChange:l,useDecorator:r}=n.hooks,o=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.AddressSelectField);o.Field=a.AddressSelectField,o.AddressEnum=a.AddressSelectField.AddressEnum,o.createAddressApi=a.AddressSelectField.createAddressApi,o.withAddressApi=a.AddressSelectField.withAddressApi;const i=o,c=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(a.AddressInputField);c.Field=a.AddressInputField},2196:(e,t,s)=>{s.d(t,{A:()=>h});var n=s(53986),a=s(55199),l=s(73884),r=s(41381),o=s(330),i=s(82962),c=s(47094),d=s(83136),u=s.n(d),p=s(70579);const m=["list","groupArgs","itemRender","column","gap","className","outer","children"],h=e=>{let{list:t=[],groupArgs:s,itemRender:d,column:h=2,gap:g,className:f,outer:x=(0,p.jsx)(r.default.Part,{}),children:_}=e,A=(0,n.A)(e,m);const j=!(Number.isInteger(h)&&h>0),{ref:v,column:y}=(0,o.useFlexBox)(j?h:{}),S=(e,n)=>(0,p.jsx)(i.FormInfo,{list:t,column:e,groupArgs:s,itemRender:(e,t)=>"function"===typeof d?d(e,t):(0,p.jsx)(a.Col,{span:t.span,children:e}),children:(e,t)=>(0,p.jsx)(a.Row,{gutter:[g||24,0],className:u()({[c.A["column-not-layout"]]:n}),children:"function"===typeof _?_(e,t):e})});return(0,l.cloneElement)(x,Object.assign({},A,{className:u()(f,c.A["form-info"])}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{ref:v}),j?y?S(y.col):S(2,!0):S(h)]}))}},2842:(e,t,s)=>{s.d(t,{default:()=>a.a});s(2885);var n=s(48553),a=s.n(n);s.o(n,"PHONE_NUMBER_INPUT")&&s.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},5995:(e,t,s)=>{s.d(t,{Ay:()=>m,Vl:()=>h,W6:()=>g});var n=s(53986),a=s(89379),l=s(3382),r=s(73025),o=s(55199),i=s(76995),c=s(47094),d=s(70579);const u=["classNames"],p=["modalProps"],m=e=>(0,d.jsx)(l.default,(0,a.A)({},(0,i.A)(Object.assign({},e,{className:c.A["form-modal"]})))),h=()=>{const e=(0,l.useModal)();return t=>e((0,i.A)(Object.assign({},t,{className:c.A["form-modal"]})))},g=e=>{let{classNames:t}=e,s=(0,n.A)(e,u);const l=h();if(!s.api){const{modalProps:e}=s,t=(0,n.A)(s,p);return(0,d.jsx)(o.Button,(0,a.A)((0,a.A)({},t),{},{onClick:()=>{l(e)}}))}return(0,d.jsx)(r.A,(0,a.A)((0,a.A)({},s),{},{modalFunc:l}))}},15209:(e,t,s)=>{s.d(t,{A:()=>h});var n=s(53986),a=s(89379),l=s(20454),r=s(55199),o=s(10986),i=s.n(o),c=s(13050),d=s(70579);const u=["remoteModules"],p=e=>{let t=Object.assign({},((0,l.A)(e),e));const[s,n]=i()(t);return(0,d.jsx)(r.Input,(0,a.A)((0,a.A)({},t),{},{value:s,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,s=(0,n.A)(e,u);const[a]=t,{hooks:l}=a,{useDecorator:r}=l;return r(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(s.label||"")},s))(p)});m.field=p;const h=m},15445:(e,t,s)=>{s.d(t,{A:()=>ae,E:()=>le});var n=s(89379),a=s(53986),l=s(98434),r=s(30096),o=s(34643),i=s(1904),c=s(83230),d=s(55199),u=s(70579);const{useOnChange:p}=l.hooks,m=e=>(0,u.jsx)(d.ColorPicker,(0,n.A)((0,n.A)({},e),{},{onChange:t=>e.onChange(t.toHexString())})),h=e=>p(Object.assign({},e))(m);h.Field=h;const g=h;var f=s(81026),x=s(78756),_=s(92328),A=s(2842);const j=["checked","children"],{useOnChange:v,useCheckedToValue:y}=l.hooks,{withChecked:S}=l.hoc,b=S(e=>{let{checked:t,children:s=null}=e,l=(0,a.A)(e,j);return(0,u.jsxs)(d.Space,{children:[(0,u.jsx)(d.Switch,(0,n.A)({checked:t},l)),"function"===typeof s?s({checked:t}):s]})}),N=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=y(e);return v(t)(b)};N.Field=d.Switch;const w=N;var C=s(89099),F=s(96339),P=s(36972),I=s(15209),T=s(74529),M=s.n(T),k=s(73884),O=s(47458),L=s(33097),R=s.n(L),E=s(21079),D=s(46237),z=s(56259),U=s(29556),B=s(64671),W=s(83136),V=s.n(W),q=s(47094);const H=["forwardedRef","label","placeholder"],G=["placeholder","label"],Q=["placeholder","label"],X=["placeholder","label","soFarText"],Y=e=>t=>{const s=M()(...e)(e=>{let{forwardedRef:s,label:l,placeholder:r}=e,o=(0,a.A)(e,H);return(0,u.jsx)(t,(0,n.A)((0,n.A)({},o),{},{label:l,placeholder:r,labelRender:()=>o.tips?(0,u.jsxs)(d.Space,{children:[l,(0,u.jsx)(U.default,{content:o.tips,children:(0,u.jsx)("span",{className:V()(q.A["field-tips"],{[q.A["label-hidden"]]:o.labelHidden}),children:(0,u.jsx)(B.default,{type:"icon-xinxi-miaobian"})})})]}):l,ref:s}))}),l=(0,k.forwardRef)((e,t)=>(0,u.jsx)(s,(0,n.A)((0,n.A)({},e),{},{forwardedRef:t})));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{l[e]=t[e]}),l},J=e=>t=>{let{placeholder:s,label:l}=t,r=(0,a.A)(t,G);return(0,u.jsx)(O.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,u.jsx)(e,(0,n.A)((0,n.A)({},r),{},{label:l,placeholder:s||t}))})},K=e=>t=>{let{placeholder:s,label:l}=t,r=(0,a.A)(t,Q);return(0,u.jsx)(O.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,u.jsx)(e,(0,n.A)((0,n.A)({},r),{},{label:l,placeholder:s||t}))})},$=e=>t=>{const s=(0,l.useGroup)(),a=R()(s,"name"),r=(0,E.get)(s,"index"),o=(0,D.oc)();return o&&Array.isArray(o)&&o.length>0?o.map(s=>{if("string"===typeof s)return(0,k.createElement)(e,(0,n.A)((0,n.A)({},t),{},{key:s}));const{name:l,label:o,options:i}=s,c=R()(i,"ignore",[]),d=R()(i,"disabled",[]),u=R()(i,"fields",[]),p=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==a)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==r);if(c.length>0&&c.find(p))return null;if(u.length>0&&!u.find(p))return null;let m=Object.assign({},t,{name:R()(i,"nameTransform",(e,t)=>"".concat(e).concat(t))(t.name,l),label:R()(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,k.createElement)(e,(0,n.A)((0,n.A)({},m),{},{key:l}))}):(0,u.jsx)(e,(0,n.A)({},t))},Z=Y([$,J])(l.Input),ee=Y([$,J])(l.InputNumber);Z.Password=Y([$,J])(l.Input.Password);const te=Y([$,K])(l.DatePicker);te.MonthPicker=Y([$,K])(l.DatePicker.MonthPicker),te.RangePicker=Y([$,K])(l.DatePicker.RangePicker),te.WeekPicker=Y([$,K])(l.DatePicker.WeekPicker);const se=Y([$,K])(l.TimePicker);se.RangePicker=Y([$,K])(l.TimePicker.RangePicker);const ne=Y([$])(e=>{let{placeholder:t,label:s,soFarText:r}=e,o=(0,a.A)(e,X);const{formatMessage:i}=(0,O.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(l.DatePickerToday,(0,n.A)((0,n.A)({},o),{},{label:s,placeholder:[i({id:"startDate"}),i({id:"endDate"})],soFarText:r||i({id:"soFarText"})}))}),ae={Input:Z,Checkbox:l.Checkbox,Password:Z.Password,InputNumber:ee,DatePicker:te,MonthPicker:te.MonthPicker,WeekPicker:te.WeekPicker,DateRangePicker:te.RangePicker,TimeRangePicker:se.RangePicker,TimePicker:se,DatePickerToday:ne,RadioGroup:Y([$])(l.RadioGroup),CheckboxGroup:Y([$])(l.CheckboxGroup),Rate:Y([$])(l.Rate),Switch:Y([$])(w),Slider:Y([$])(l.Slider),SalaryInput:Y([$,J])(P.A),TypeDateRangePicker:Y([$])(z.A),MoneyInput:Y([$,J])(_.A),PhoneNumber:Y([$,J])(A.default),Upload:Y([$])(C.A),Avatar:Y([$])(F.A),FunctionSelect:Y([$,K])(f.A),IndustrySelect:Y([$,K])(x.A),Cascader:Y([$,K])(c.A),ColorPicker:Y([$,K])(g),AddressSelect:Y([$,K])(i.A),AddressInput:Y([$,K])(i.N),TreeSelect:Y([$,K])(l.TreeSelect),ReactInputNumber:Y([$,J])(l.InputNumber),InputUpperCase:Y([$,J])(I.A),Select:Y([$,K])(l.Select),TextArea:Y([$,J])(l.TextArea),AdvancedSelect:Y([$,K])(r.Ay),SuperSelect:Y([$,K])(o.Ay),SuperSelectTableList:Y([$,K])(o.eM),SuperSelectUser:Y([$,K])(o.Pg),SuperSelectTree:Y([$,K])(o.kx)},le={createWithFieldDecorator:Y,withInputDefaultPlaceholder:J,withSelectDefaultPlaceholder:K,withLang:$}},18936:(e,t,s)=>{s.d(t,{A:()=>U});var n=s(89379),a=s(53986);const l={"ant-tag":"style_ant-tag__7ct2q__j+s1S",overlay:"style_overlay__CXfU5__j+s1S",input:"style_input__+OpvV__j+s1S","is-disabled":"style_is-disabled__uX4qq__j+s1S","input-icon":"style_input-icon__E3NjK__j+s1S",large:"style_large__vMozz__j+s1S",small:"style_small__ubqQ+__j+s1S","input-inner":"style_input-inner__sY-6k__j+s1S","input-custom":"style_input-custom__Kxq3n__j+s1S","display-content":"style_display-content__qA1jn__j+s1S","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__j+s1S","selected-tag":"style_selected-tag__BZsMM__j+s1S","selected-tag-list":"style_selected-tag-list__As0ho__j+s1S","selected-tag-inner":"style_selected-tag-inner__2NH59__j+s1S","text-inner":"style_text-inner__Bq2Ji__j+s1S",placeholder:"style_placeholder__odotY__j+s1S","is-modal":"style_is-modal__4cj8L__j+s1S","overlay-content":"style_overlay-content__kpGRn__j+s1S"};var r=s(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,r.A)();var u=s(73884),p=s(10986),m=s.n(p),h=s(87558),g=s(33097),f=s.n(g),x=s(55199),_=s(83136),A=s.n(_),j=s(3382),v=s(64671),y=s(79686),S=s.n(y),b=s(41740),N=s.n(b),w=s(74065),C=s.n(w),F=s(17342),P=s(70579);const I=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],T=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName"],M=["setFetchApi","wrapClassName"],k=["api","className","displayItems","wrapClassName"],O=e=>{let{maxLength:t,single:s,setValue:n,value:a,message:l}=e;return e=>n(!s&&Number.isInteger(t)&&t>0&&e.length>t?(l("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),a):e)},L=e=>{let{single:t,value:s,mapping:n,onClose:a}=e;return s&&Array.isArray(s)&&0!==s.length?t?(0,P.jsx)("span",{className:l["text-inner"],children:f()(n.get(s[0]),"label")||s[0]}):s.map(e=>{const t=n.get(e);return(0,P.jsx)(x.Tag,{className:l["display-tag"],closable:!0,onClose:s=>{s.preventDefault(),a(e,t)},children:(0,P.jsx)("span",{className:l["tag-inner"],children:f()(t,"label")||e})},e)}):null},R=(0,u.forwardRef)((e,t)=>{let{value:s,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,a.A)(e,I);const[m,h]=(0,u.useState)(s),g=(0,u.useRef)(s);g.current=s;const[f,_]=(0,u.useState)(!1),{message:A}=x.App.useApp(),v=O({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:()=>{_(!0)},close:()=>{_(!1)}})),(0,P.jsx)(j.default,(0,n.A)((0,n.A)({},p),{},{open:f,onConfirm:()=>{r(m)},onClose:()=>{_(!1)},footer:(i||o)&&(0,P.jsxs)(x.Space,{direction:"vertical",className:l["overlay-footer"],children:[o&&(0,P.jsx)("div",{className:l["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:v})]}),children:"function"===typeof d?d({value:m,setValue:v}):d}))}),E=(0,u.forwardRef)((e,t)=>{let{value:s,setValue:r,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:g,wrapClassName:f}=e,_=(0,a.A)(e,T);const[A,j]=(0,u.useState)(!1);return(0,u.useImperativeHandle)(t,()=>({close:()=>{j(!1)}}),[]),(0,P.jsx)(x.Popover,(0,n.A)((0,n.A)({},_),{},{open:A,onOpenChange:j,overlayClassName:l.overlay,arrow:!1,content:(0,P.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:l["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,P.jsx)("div",{className:l["overlay-inner"],children:"function"===typeof o?o({value:s,setValue:e=>{(!m||s[0]!==e[0])&&r(e),m&&j(!1)}}):o}),(c||h)&&(0,P.jsxs)("div",{className:l["overlay-footer"],children:[h&&(0,P.jsx)("div",{className:l["overlay-footer-extra"],children:h}),c&&i({value:s,setValue:r})]})]}),trigger:"click",placement:d,children:(0,P.jsx)("div",{className:l["input-inner"],children:p})}))}),D=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:s}=e,n=(0,a.A)(e,M);const[r,o]=(0,u.useState)(!1),c=(0,u.useRef)(null),d=(0,u.useRef)(null),p=i(),{valueState:m,mapping:h,props:g}=p,[f,_]=m,{single:j,placement:y,getPopupContainer:S,placeholder:b,isPopup:N,disabled:w,showSelectedTag:C,extra:I,inputContent:T}=g,k=(0,u.useRef)(n);k.current=n,(0,u.useEffect)(()=>{t(Object.assign({},k.current,{data:n.data,isComplete:n.isComplete}))},[n.data,t,n.isComplete]);const O=L({single:j,value:f,mapping:h,onClose:e=>{_(t=>{const s=t.slice(0),n=t.indexOf(e);return n>-1&&s.splice(n,1),s})}}),D=e=>{let{value:t,setValue:s}=e;return(0,P.jsxs)(x.Space,{className:l["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)(F.A,{className:l["selected-tag-list"],children:(0,P.jsx)("div",{className:l["selected-tag-inner"],children:L({value:t,mapping:h,onClose:e=>{s(t=>{const s=t.slice(0),n=t.indexOf(e);return n>-1&&s.splice(n,1),s})}})})})]})},z=T?T(p):(0,P.jsxs)(x.Space,{className:l["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,P.jsx)("div",{children:O||(0,P.jsx)("span",{className:l.placeholder,children:b})}),r&&f&&f.length>0&&!w?(0,P.jsx)(v.default,{className:A()(l.close,l["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),_([])}}):(0,P.jsx)(v.default,{className:A()(l["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return N?(0,P.jsx)(E,{ref:d,overlayWidth:g.overlayWidth,value:f,setValue:_,single:j,inputContent:z,extra:"function"===typeof I?I({close:()=>d.current.close(),context:p}):I,renderSelectedContent:D,showSelectedTag:C,trigger:"click",placement:y,getPopupContainer:S,children:g.children}):(0,P.jsxs)("div",{className:l["input-inner"],onClick:()=>{c.current.modalOpen()},children:[(0,P.jsx)(R,{size:g.modalSize,ref:c,single:g.single,maxLength:g.maxLength,disabledScroller:!0,wrapClassName:A()(l.overlay,l["is-modal"],s),title:g.placeholder,value:f,onChange:_,extra:"function"===typeof I?I({close:()=>c.current.close(),context:p}):I,showSelectedTag:C,renderSelectedContent:D,children:g.children}),z]})}),z=e=>{let{api:t,className:s,displayItems:r,wrapClassName:o}=e,i=(0,a.A)(e,k);const[d,p]=(0,u.useState)(""),[h,g]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),[_,j]=(0,u.useState)({}),{message:v}=x.App.useApp(),y=e=>{const t=e.filter(e=>h.get(e.value)!==e);0!==t.length&&g(e=>{const s=N()(e);return t.forEach(e=>{s.set(e.value,e)}),s})},b=e=>((e,t,s)=>"all"!==s?e:(t(e),e.map(e=>e.value)))(i.single?S()(e)?[]:[e]:e||[],y,i.valueType),[w,F]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,s)=>"all"!==s?e:e.map(e=>t.get(e)))(e,h,i.valueType);i.onChange&&i.onChange(i.single?C()(t):t)}},"value"in i?{value:b(i.value)}:{defaultValue:b(i.defaultValue)})),I=O({maxLength:i.maxLength,single:i.single,setValue:F,value:w,message:v.error});return(0,P.jsx)(c,{value:{mapping:h,searchText:d,setSearchText:p,appendMapping:y,setItems:e=>{_.setData(e),y(f()(i.dataFormat(e),"list",[]))},fetchApi:_,valueState:[w,I],props:i},children:(0,P.jsx)("div",{className:A()(l["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],s),children:(0,P.jsx)(D,(0,n.A)((0,n.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:j,onRequestSuccess:e=>{y(f()(i.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};z.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},z.useContext=i;const U=z},19343:(e,t,s)=>{s.r(t),s.d(t,{Download:()=>m,FileButton:()=>C,FileLink:()=>F,List:()=>b,OptionButtons:()=>S,PrintButton:()=>o.PrintButton,default:()=>i(),download:()=>o.download,downloadBlobFile:()=>o.downloadBlobFile,useDownload:()=>o.useDownload,useFileModal:()=>P});var n=s(89379),a=s(53986),l=(s(64674),s(96418)),r=s.n(l),o=s(99776),i=s.n(o),c=s(3382),d=s(83136),u=s.n(d),p=s(70579);o.Download.useDownload=o.useDownload,o.Download.downloadBlobFile=o.downloadBlobFile;const m=o.Download;var h=s(26304),g=s.n(h),f=s(74065),x=s.n(f),_=s(96252);const A=["apis"],j=["onCancel"],v=["onCancel"],y=e=>{let{apis:t}=e;const s=(0,_.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=s({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:g()(e.filename.split(".")).join(".")},onSubmit:async s=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},s,{name:"".concat(s.name,".").concat(x()(e.filename.split(".")))}),item:e})))&&n.close()}},children:(0,p.jsx)(_.default,{column:1,list:[(0,p.jsx)(_.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},S=e=>{var t;const s=y({apis:e.apis});return(0,p.jsx)(o.FileListOptionButtons,(0,n.A)((0,n.A)({},e),{},{onEdit:t=>s(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,s=(0,a.A)(e,v);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},s)),{},{onClose:t}))}}))},b=e=>{let{apis:t}=e,s=(0,a.A)(e,A);const l=y({apis:t});return(0,p.jsx)(o.FileList,(0,n.A)((0,n.A)({},s),{},{apis:t,onEdit:e=>l(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof s.renderModal?s.renderModal:e=>{let{onCancel:t}=e,s=(0,a.A)(e,j);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},s)),{},{onClose:t}))}}))},N=["onCancel"],w=["className"],C=e=>(0,p.jsx)(o.FileButton,(0,n.A)({},Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t}=e,s=(0,a.A)(e,N);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},s)),{},{onClose:t}))}}}))),F=e=>{const t=Object.assign({},e),{className:s}=t,l=(0,a.A)(t,w);return(0,p.jsx)(C,(0,n.A)((0,n.A)({},l),{},{className:u()(s,"btn-no-padding"),type:"link",children:l.children||l.filename||l.originName}))},P=e=>{const{title:t,children:s,footer:n}=(0,o.useFileModalProps)(Object.assign({},e)),a=(0,c.useModal)();return r()(()=>a({title:t,children:s,footer:n}))}},24474:(e,t,s)=>{s.r(t),s.d(t,{DragArea:()=>Z,DragAreaOuter:()=>K,DragButton:()=>Y,FileUpload:()=>oe,Title:()=>D,UploadButton:()=>J,UploadTips:()=>$,default:()=>ne});var n=s(89379),a=s(73884),l=s(33097),r=s.n(l),o=s(55199);const i="style_file-list-outer__wPhbb__j+s1S",c="style_file-list-title__zXM5r__j+s1S",d="style_container__P4RaF__j+s1S",u="style_file-preview-inner__cvE72__j+s1S",p="style_file-preview__M-Asq__j+s1S",m="style_drag-area__Q+lm7__j+s1S",h="style_upload-drag-close__u5o8W__j+s1S",g="style_upload-drag-tips__z7puZ__j+s1S",f="style_upload-drag-icon__sGGoS__j+s1S",x="style_upload-drag-title__9Afmb__j+s1S",_="style_upload-drag-text__o38vS__j+s1S",A="style_title-group__8IJkS__j+s1S",j="style_upload-btn__Q+Jxn__j+s1S",v="style_total-count__z1fyd__j+s1S",y="style_file-select__mHqyI__j+s1S",S="style_file-name__QkvMn__j+s1S",b="style_file-select-info__fOLiM__j+s1S",N="style_file-select-option__AbDrD__j+s1S";var w=s(75087),C=s.n(w),F=s(74065),P=s.n(F),I=s(57469),T=s.n(I),M=s(64671),k=s(19343),O=s(47458),L=s(83136),R=s.n(L),E=s(70579);const D=e=>{let{currentTab:t,setCurrentTab:s,previewMap:n,previewList:a,getPermission:l,currentPreviewFileId:r,setCurrentPreviewFileId:i,itemApis:d,children:u,maxWidth:p=260,getPopupContainer:m}=e;return(0,E.jsx)("div",{className:c,children:(0,E.jsxs)(o.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,E.jsx)(o.Col,{children:(0,E.jsxs)(o.Space,{className:R()(A,"core-file-list-title-group"),size:4,children:[(0,E.jsx)(o.Segmented,{value:t,onChange:s,options:[{label:(0,E.jsxs)(o.Space,{size:4,children:[(0,E.jsx)(M.default,{type:"icon-shitu-liebiao"}),(0,E.jsx)(O.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,E.jsxs)(o.Space,{size:4,children:[(0,E.jsx)(M.default,{type:"icon-shitu-yulan"}),(0,E.jsx)(O.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&n.get(r)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(o.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:i,getPopupContainer:m,children:a.map(e=>{let{filename:t,userName:s,date:n,id:a}=e;return(0,E.jsx)(o.Select.Option,{className:N,value:a,children:(0,E.jsxs)(o.Space,{direction:"vertical",children:[(0,E.jsxs)(o.Space,{size:4,align:"start",children:[(0,E.jsx)(C(),{type:P()(t.split(".")),size:14}),(0,E.jsx)(o.Typography.Text,{className:S,ellipsis:!0,style:{"--max-width":"".concat(p,"px")},children:t})]}),s||n?(0,E.jsxs)(o.Space,{className:b,size:24,children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(O.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,E.jsxs)("div",{children:[(0,E.jsx)(O.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&T()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},a)})}),(0,E.jsx)(k.OptionButtons,{hasPreview:!1,getPermission:l,item:n.get(r),apis:d}),(0,E.jsx)("div",{className:v,children:(0,E.jsx)(O.FormattedMessage,{id:"totalCount",values:{count:a.length},moduleName:"FileList"})})]})]})}),(0,E.jsx)(o.Col,{children:u})]})})};var z=s(53986);const U=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var B=s(70720),W=s.n(B);const V=(0,a.createContext)({}),{Provider:q}=V,H=()=>(0,a.useContext)(V);var G=s(99776),Q=s(81348);const X=["children"],Y=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:n}=H();return(0,E.jsx)("div",{ref:n,className:j,onClick:()=>{s(e=>!e)},children:(0,E.jsxs)(o.Typography.Text,{className:"ant-btn",children:[(0,E.jsx)(M.default,{type:"icon-tuozhuaishangchuan"}),t||(0,E.jsx)(O.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},J=e=>{let{children:t}=e;const{accept:s,onFileSelected:a}=H();return(0,E.jsx)(G.FileInput,{className:R()(j,"btn-no-padding"),accept:s,multiple:!0,onChange:a,children:e=>{let{children:s}=e,a=(0,z.A)(e,X);return(0,E.jsxs)(o.Button,(0,n.A)((0,n.A)({},a),{},{type:"text",children:[(0,E.jsx)(M.default,{type:"icon-tianjia"}),t,s]}))}})},K=e=>{let{title:t,accept:s=[".png",".jpg",".pdf",".docx",".doc"],fileSize:n=20,maxLength:l,onFileSelected:r,children:c,className:u,defaultOpen:p=!1}=e;const[m,h]=(0,a.useState)(p),g=(0,a.useRef)(null),f=W()(e=>{g.current&&(g.current.contains(e.target)||e.target===g.current||h(!1))});return(0,E.jsx)(O.IntlProvider,{importMessages:U,moduleName:"FileList",children:(0,E.jsx)(q,{value:{open:m,onOpenChange:h,accept:s,fileSize:n,maxLength:l,onFileSelected:r,getDragButtonEl:e=>{g.current=e}},children:(0,E.jsxs)(o.Space,{className:i,direction:"vertical",children:[t,(0,E.jsx)("div",{className:R()(d,u),ref:f,onDragEnter:()=>{h(!0)},children:c})]})})})},$=e=>{let{icon:t,title:s,renderTips:n=e=>e}=e;const{accept:a,fileSize:l,maxLength:r}=H(),o=n((0,O.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:a.map(e=>e.replace(/^\./,"")).join("\u3001"),size:l}),{fileSize:l,maxLength:r,accept:a});return(0,E.jsxs)("div",{className:R()(g,"upload-drag-tips"),children:[(0,E.jsx)("div",{className:f,children:t||(0,E.jsx)(M.default,{type:"icon-shangchuan",size:64})}),(0,E.jsx)("div",{className:x,children:s||(0,E.jsx)(O.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,E.jsx)("div",{className:_,children:o})]})},Z=e=>{let{children:t=(0,E.jsx)($,{}),className:s}=e;const{open:n,accept:a,onOpenChange:l,onFileSelected:r}=H();return n?(0,E.jsxs)("div",{className:R()(m,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;l(!1);const t=Array.from(e.dataTransfer.files).filter(e=>(0,Q.A)(e,a));r(t)},onDragEnd:()=>{l(!1)},children:[(0,E.jsx)(o.Button,{className:h,type:"text",shape:"circle",size:"small",icon:(0,E.jsx)(M.default,{type:"icon-close-bold"}),onClick:()=>{l(!1)}}),t]}):null};var ee=s(50196),te=s(63743);const se=e=>{var t,s;let{className:l,maxLength:i=Number.MAX_VALUE,list:c,setList:d,infoItemRenders:m,defaultTab:h="list",defaultPreviewFileId:g,apis:f,getPermission:x=()=>!0,titleExtra:_=null,fileSize:A=20,accept:j=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:v}=e;const{apis:y}=(0,te.usePreset)(),S=Object.assign({},y,f),b=(c||[]).map(e=>Object.assign({},{id:e.ossId},e)),{fileList:N,onFileSelected:w}=(0,G.useFileUpload)({maxLength:i,multiple:!0,value:b,onChange:d,concurrentCount:1,onAdd:()=>{F("list")},onSave:async function(e){if("function"===typeof S.onSave){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];const a=await S.onSave(e,...s);return Object.assign({},{id:null===a||void 0===a?void 0:a.ossId},a)}return r()(e,"data")||{}},onUpload:S.onUpload||S.ossUpload}),[C,F]=(0,a.useState)(h),{formatMessage:P}=(0,O.useIntl)({moduleName:"FileList"}),{message:I}=o.App.useApp(),T=(0,a.useMemo)(()=>new Map(b.map(e=>[e.id,e])),[b]),[M,L]=(0,a.useState)(g||r()(b,"[0].id",null));(0,a.useEffect)(()=>{M&&T.get(M)||L(r()(b,"[0].id",null))},[b,T,M]);const R=(0,n.A)((0,n.A)({},S),{},{onPreview:e=>{L(e.id),F("preview")},onDelete:async e=>{S.onDelete&&!1===await S.onDelete(e)||(d(t=>{const s=t.slice(0),n=t.findIndex(t=>{let{id:s}=t;return s===e.id});return n>-1&&s.splice(n,1),s}),I.success(P({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:s}=e;const n=S.onEdit&&await S.onEdit({formData:t,item:s});return!1!==n&&(d(e=>{const n=e.slice(0),a=e.findIndex(e=>{let{id:t}=e;return t===s.id});return a>-1&&n.splice(a,1,Object.assign({},s,{filename:t.name})),n}),I.success(P({id:"successEditFileName"},{name:s.filename}))),n}}),z="function"===typeof _?_({currentPreviewFileId:M,currentTab:C}):_;return(0,E.jsx)("div",{className:l,children:(0,E.jsxs)(K,{title:(0,E.jsx)(D,{currentTab:C,setCurrentTab:F,previewMap:T,previewList:b,getPermission:x,currentPreviewFileId:M,setCurrentPreviewFileId:L,itemApis:R,getPopupContainer:v,children:(0,E.jsxs)(o.Space,{split:(0,E.jsx)(o.Divider,{type:"vertical"}),children:[z,x("add",{})?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Y,{children:P({id:"dragText"})}),(0,E.jsx)(J,{children:P({id:"uploadFile"})})]}):null]})}),fileSize:A,maxLength:i,onFileSelected:w,accept:j,defaultOpen:0===b.length,children:["list"===C?(0,E.jsx)(k.List,{dataSource:[...b,...N],getPermission:x,apis:R,infoItemRenders:m}):null,"preview"===C?M?(0,E.jsx)("div",{className:u,children:(0,E.jsx)(ee.default,{className:p,src:null===(t=T.get(M))||void 0===t?void 0:t.src,id:M,apis:S,filename:null===(s=T.get(M))||void 0===s?void 0:s.filename})}):(0,E.jsx)(o.Empty,{image:o.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,E.jsx)(Z,{})]})})},ne=e=>(0,E.jsx)(O.IntlProvider,{importMessages:U,moduleName:"FileList",children:(0,E.jsx)(se,(0,n.A)({},e))});var ae=s(10986),le=s.n(ae);const re=["maxLength","apis","getPermission","fileSize","accept","defaultList"],oe=e=>{let{maxLength:t=Number.MAX_VALUE,apis:s,getPermission:a=()=>!0,fileSize:l=20,accept:i=[".png",".jpg",".pdf",".docx",".doc"],defaultList:c=[]}=e,d=(0,z.A)(e,re);const{apis:u}=(0,te.usePreset)(),p=Object.assign({},u,s),[m,h]=le()((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,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];const a=await p.onSave(e,...s);return Object.assign({},{id:null===a||void 0===a?void 0:a.ossId},a)}return r()(e,"data")||{}},onUpload:p.ossUpload});return(0,E.jsxs)(K,{title:(0,E.jsxs)(o.Row,{children:[(0,E.jsx)(o.Col,{flex:1}),(0,E.jsx)(o.Col,{children:(0,E.jsxs)(o.Space,{split:(0,E.jsx)(o.Divider,{type:"vertical"}),children:[(0,E.jsx)(Y,{}),(0,E.jsx)(J,{children:"\u4e0a\u4f20"})]})})]}),fileSize:l,maxLength:t,onFileSelected:f,accept:i,children:[(0,E.jsx)(k.List,{dataSource:[...g,...m],getPermission:a,apis:p}),(0,E.jsx)(Z,{})]})}},29556:(e,t,s)=>{s.r(t),s.d(t,{TooltipFetch:()=>T,TooltipInfoLabel:()=>C,default:()=>N});var n=s(89379),a=s(53986),l=s(55199),r=s(83136),o=s.n(r);const i="style_tooltip__zHGMI__j+s1S",c="style_large__lvmsm__j+s1S",d="style_small__nUt0r__j+s1S",u="style_popup-content__-rKQN__j+s1S",p="style_title__1EQPq__j+s1S",m="style_important-info__qTSZY__j+s1S",h="style_error__yTTq3__j+s1S",g="style_warning__CMJxz__j+s1S",f="style_success__AvJVx__j+s1S",x="style_sub-title__uD8CH__j+s1S",_="style_content__lzgUz__j+s1S",A="style_alone__q6q82__j+s1S",j="style_fetch-content__tEOEV__j+s1S",v="style_fetch-loading__tN-WB__j+s1S",y="style_title-info-icon__iY8Q+__j+s1S";var S=s(70579);const b=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],N=e=>{let{overlayClassName:t,title:s,size:r,subtitle:j,content:v,importantInfo:y,importantInfoType:N,moreInfo:w}=e,C=(0,a.A)(e,b);return(0,S.jsx)(l.Tooltip,(0,n.A)((0,n.A)({},C),{},{rootClassName:o()(t,i,{[d]:"small"===r,[c]:"large"===r}),title:(0,S.jsxs)(l.Space,{direction:"vertical",className:u,children:[s&&(0,S.jsx)("div",{className:p,children:s}),y&&(0,S.jsx)("div",{className:o()(m,{[f]:"success"===N,[g]:"warning"===N,[h]:"error"===N}),children:y}),j&&(0,S.jsx)("div",{className:x,children:j}),v&&(0,S.jsx)("div",{className:o()(_,{[A]:[s,j,y,w].every(e=>!e)}),children:v}),w&&(0,S.jsx)("div",{children:w})]})}))};var w=s(64671);const C=e=>{let{title:t,tooltipTitle:s}=e;return(0,S.jsxs)("div",{children:[t,s?(0,S.jsx)(N,(0,n.A)((0,n.A)({},s),{},{children:(0,S.jsx)("span",{children:(0,S.jsx)(w.default,{type:"icon-xinxi-miaobian",className:y,size:14})})})):null]})};var F=s(73884),P=s(87558);const I=["api","children","fetchContent","showLoading","loadingClassName","force"],T=e=>{let{api:t,children:s,fetchContent:r,showLoading:i=!0,loadingClassName:c,force:d}=e,u=(0,a.A)(e,I);const[p,m]=(0,F.useState)(!1),h=(0,P.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:g,isLoading:f,data:x,send:_}=h;return(0,S.jsx)(N,(0,n.A)((0,n.A)({},Object.assign({},u,g?r(x,h):{})),{},{open:p,onOpenChange:async e=>{!e||g&&!d||await _({type:"refresh"}),m(e)},children:(0,S.jsxs)("span",{className:j,children:[s,i&&f?(0,S.jsx)(l.Spin,{size:"small",className:o()(c,v)}):null]})}))}},30096:(e,t,s)=>{s.d(t,{Ay:()=>d});var n=s(98434),a=s(43856);const{useOnChange:l}=n.hooks,r=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=r(a.UserField),i=r(a.TableField),c=r(a.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:s}=e;return r((0,a.createListField)({renderList:t,defaultProps:s}))},c.User=o,c.Table=i;const d=c},30891:(e,t,s)=>{s.d(t,{A:()=>l});var n=s(89379),a=s(98434);const l=e=>{let{children:t}=e;const{openApi:s,formData:l}=(0,a.useFormContext)();return t((0,n.A)((0,n.A)({},s),{},{formData:l}))}},34643:(e,t,s)=>{s.d(t,{Ay:()=>p,Pg:()=>c,eM:()=>d,kx:()=>u});var n=s(98434),a=s(43856),l=s(60586);const{useOnChange:r}=n.hooks,o=e=>{const t=t=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(a.SuperSelectField),c=o(l.$9),d=o(a.SuperSelectTableListField),u=o(a.SuperSelectTreeField),p=i},35774:(e,t,s)=>{s.d(t,{A:()=>c});var n=s(89379),a=s(53986),l=s(98434),r=s(81014),o=s(70579);const i=["onClick"],c=e=>{let{onClick:t}=e,s=(0,a.A)(e,i);const c=(0,l.useFormContext)();return(0,o.jsx)(r.default,(0,n.A)((0,n.A)({},s),{},{onClick:e=>t(c,e)}))}},36972:(e,t,s)=>{s.d(t,{A:()=>E});var n=s(89379),a=s(53986),l=s(73884),r=s(87558),o=s(98434),i=s(78491),c=s.n(i),d=s(55199);const u="style_salary__sUOtT__j+s1S",p="style_salary-type__Sl1LC__j+s1S",m="style_input-number__eoEZr__j+s1S",h="style_full__NPqJm__j+s1S",g="style_input-group__toLB7__j+s1S",f="style_input-group-no-mb__C4nzh__j+s1S";var x=s(47458),_=s(55431),A=s(48731),j=s(10986),v=s.n(j),y=s(21079),S=s(70579);const b=["data"],N=["getPopupContainer","onBlur","api","isRange","placeholder","disabled","showMonth","remindUnit","req"],w=["api","defaultValue"],C=(0,r.withFetch)(e=>{let{data:t}=e,s=(0,a.A)(e,b);return(0,S.jsx)(d.Select,(0,n.A)((0,n.A)({},s),{},{options:t}))}),{useDecorator:F,useUIDecorator:P}=o.hooks,I=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:s}=e;return(0,S.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(s?"is-error":""),children:(0,S.jsx)("div",{className:"react-form__field-main",children:(0,S.jsx)("div",{className:"react-form__field-input",children:(0,l.cloneElement)(t,{className:"react-form__field-component"})})})})},M=e=>{let{getPopupContainer:t,onBlur:s,api:l,isRange:r=!0,placeholder:o,disabled:i,showMonth:_,remindUnit:j,req:b}=e,w=(0,a.A)(e,N);const[F,P]=v()(w),{formatMessage:M}=(0,x.useIntl)({moduleName:"FormInfo"}),k=M({id:"defaultSelectPlaceholder"},{label:""}),O=M({id:"defaultInputPlaceholder"},{label:""}),L=[6].indexOf((0,y.get)(F,"type"))>-1,R=1===(0,y.get)(F,"type"),E=7===(0,y.get)(F,"type"),D=e=>{if(e)return L?e/1e4:e},z=c()(s||(()=>{}));return(0,S.jsx)("div",{ref:z,className:u,children:(0,S.jsxs)(d.Row,{wrap:!1,gutter:10,children:[(0,S.jsx)(d.Col,{children:(0,S.jsx)(C,(0,n.A)((0,n.A)({className:p},l),{},{value:(0,y.get)(F,"type"),onChange:e=>{P&&P(Object.assign({},R?{}:F,{type:e,min:"",max:""}))},placeholder:o||k,getPopupContainer:t,disabled:i}))}),R?null:(0,S.jsxs)(d.Col,{flex:1,children:[r&&(0,S.jsxs)(d.Row,{className:j&&[5,6].includes(null===F||void 0===F?void 0:F.type)?g:f,wrap:!1,children:[(0,S.jsx)(d.Col,{flex:1,children:(0,S.jsx)(T,{isError:!(0,y.get)(F,"min")&&b,children:(0,S.jsx)(d.InputNumber,{disabled:i,placeholder:O,formatter:I,value:D((0,y.get)(F,"min")),style:{textAlign:"center"},onChange:e=>{P(Object.assign({},F,{min:L?1e4*e:e}))},description:j&&[5,6].includes(null===F||void 0===F?void 0:F.type)?(0,S.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,S.jsx)(A.default,{name:null===F||void 0===F?void 0:F.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",L?M({id:"thousand"}):E?"":M({id:"yuan"})]}):null})})}),(0,S.jsx)(d.Col,{children:(0,S.jsx)(d.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,S.jsx)(d.Col,{flex:1,children:(0,S.jsx)(T,{isError:!(0,y.get)(F,"max")&&b,children:(0,S.jsx)(d.InputNumber,{disabled:i,placeholder:O,formatter:I,value:D((0,y.get)(F,"max")),style:{textAlign:"center"},addonAfter:L?M({id:"thousand"}):E?"":M({id:"yuan"}),onChange:e=>{P(Object.assign({},F,{max:L?1e4*e:e}))}})})}),5===(0,y.get)(F,"type")&&_&&(0,S.jsx)(d.Col,{children:(0,S.jsxs)("span",{className:(0,y.get)(F,"max")&&(0,y.get)(F,"min")&&!(0,y.get)(F,"month")&&b?"error":"",children:[(0,S.jsx)("span",{className:m,children:"X"}),(0,S.jsx)(d.InputNumber,{min:12,disabled:i,value:(0,y.get)(F,"month"),onChange:e=>{P(Object.assign({},F,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!r&&!E&&(0,S.jsx)(d.InputNumber,{disabled:i,min:0,max:1e8,placeholder:O,className:h,formatter:I,value:D((0,y.get)(F,"max")),style:{textAlign:"center"},addonAfter:L?M({id:"thousand"}):E?"":M({id:"yuan"}),onChange:e=>{P(Object.assign({},F,{max:L?1e4*e:e}))}}),!r&&E&&(0,S.jsx)(d.Input,{disabled:i,placeholder:O,className:h,onChange:e=>{P(Object.assign({},F,{max:e.target.value}))},value:(0,y.get)(F,"max"),style:{textAlign:"center"}})]})]})})},k={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"}]},O={type:5,min:"",max:"",month:12},L=e=>{let{api:t=k,defaultValue:s=O}=e,l=(0,a.A)(e,w);return(0,S.jsx)(x.IntlProvider,{moduleName:"FormInfo",importMessages:_.A,children:(0,S.jsx)(M,(0,n.A)((0,n.A)({},l),{},{api:t,defaultValue:s}))})},R=e=>{var t;return F((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)};R.Field=L;const E=R},41381:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a.a});s(55664);var n=s(97738),a=s.n(n),l={};for(const r in n)"default"!==r&&(l[r]=()=>n[r]);s.d(t,l)},45053:(e,t,s)=>{s.d(t,{A:()=>p});var n=s(98434),a=s(55199),l=s(73884),r=s(83136),o=s.n(r),i=s(70720),c=s.n(i),d=s(47094),u=s(70579);const p=e=>{let{name:t,groupName:s,overlayClassName:r,errorRender:i=()=>null,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:s,groupIndex:a}=e;const{emitter:r,formState:o}=(0,n.useFormContext)(),i=(0,l.useRef)({name:t,groupName:s,groupIndex:a});i.current={name:t,groupName:s,groupIndex:a};const c=(0,l.useRef)(o);c.current=o;const[d,u]=(0,l.useState)(null);return(0,l.useEffect)(()=>{const e=r.addListener("form-field-validate-complete",e=>{let{id:t,validate:s}=e;const a=c.current[t];if(!a)return;const l=i.current;a.name!==l.name||l.groupName&&(a.groupName!==l.groupName||a.groupIndex!==l.groupIndex)||u(2===s.status?Object.assign({},s,{label:a.label,errMsg:n.util.compileErrMsg(s.msg,a.label)}):null)});return()=>{e&&e.remove()}},[r]),d})({name:t,groupName:s,groupIndex:p}),[g,f]=(0,l.useState)(!1),x=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),_=(0,l.useRef)(null),A=(0,l.useRef)(null);c()(()=>{f(!1)}).current={contains:e=>_.current.contains(e)||A.current&&A.current.contains(e)};const[j,v]=(0,l.useState)(0);return(0,l.useLayoutEffect)(()=>{const e=()=>{const e=_.current.querySelector(".react-form__field-component");e&&v(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(_.current);const s=new MutationObserver(e);return s.observe(_.current,{subtree:!0,childList:!0}),()=>{s.disconnect(),t.disconnect()}},[]),(0,u.jsx)(a.Popover,{open:!!x,rootClassName:o()(r,d.A["error-tip-overlay"]),content:x&&(0,u.jsx)("div",{ref:A,style:{width:j},className:o()(d.A["error-tip-overlay-content"]),children:x}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:_,onMouseEnter:()=>{f(!0)},children:m})})}},46237:(e,t,s)=>{s.d(t,{Ay:()=>i,oc:()=>o});var n=s(73884);const a=(0,n.createContext)([]),{Provider:l,Consumer:r}=a,o=()=>(0,n.useContext)(a),i=l},46732:(e,t,s)=>{s.d(t,{A:()=>d,K:()=>c});var n=s(75363),a=s(73884),l=s(98434),r=s(47094),o=s(70579);const i=(0,a.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const s=(0,a.useContext)(i),c=(0,l.useGroup)();return s&&(0,o.jsx)(n.default,{className:r.A["helper-guide-field"],name:s+"-"+(c.name?c.name+"-":"")+t})}},47094:(e,t,s)=>{s.d(t,{A:()=>n});const n={"form-outer":"style_form-outer__IWUs0__j+s1S","form-drawer":"style_form-drawer__uYDXS__j+s1S","table-list":"style_table-list__6lp-A__j+s1S","list-item":"style_list-item__hVzQa__j+s1S","table-list-inner":"style_table-list-inner__uc8DK__j+s1S","table-list-field":"style_table-list-field__JSJfB__j+s1S","table-list-header":"style_table-list-header__KXvKa__j+s1S","is-req":"style_is-req__LfXQf__j+s1S","table-list-extra":"style_table-list-extra__faYTK__j+s1S","list-btn":"style_list-btn__WKYkm__j+s1S","form-info":"style_form-info__B8bAP__j+s1S","list-part":"style_list-part__Ld0GA__j+s1S","is-important":"style_is-important__vaBk1__j+s1S","list-item-part":"style_list-item-part__MzKP7__j+s1S","money-input":"style_money-input__J86Pb__j+s1S","money-description":"style_money-description__Gz3p7__j+s1S","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__j+s1S","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__j+s1S","helper-guide-field":"style_helper-guide-field__Wke3w__j+s1S","error-tip-overlay":"style_error-tip-overlay__aNCGc__j+s1S","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__j+s1S","column-not-layout":"style_column-not-layout__+SXC+__j+s1S","mult-field-item":"style_mult-field-item__eS0nJ__j+s1S","react-form__field-label":"style_react-form__field-label__2U91E__j+s1S","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__j+s1S","form-step-section":"style_form-step-section__RvkHy__j+s1S"}},47338:(e,t,s)=>{s.r(t),s.d(t,{ConfirmButton:()=>n.ConfirmButton,ConfirmLink:()=>n.ConfirmLink,ConfirmText:()=>n.ConfirmText,default:()=>a,withConfirm:()=>n.withConfirm});s(9056);var n=s(38885);const a=n.ConfirmButton},48221:(e,t,s)=>{s.d(t,{Ay:()=>c,WJ:()=>u,Xy:()=>d});var n=s(89379),a=s(25963),l=s(73025),r=s(47094),o=s(76995),i=s(70579);const c=e=>(0,i.jsx)(a.default,(0,n.A)({},(0,o.A)(Object.assign({},e,{className:r.A["form-drawer"]})))),d=()=>{const e=(0,a.useDrawer)();return t=>e((0,o.A)(Object.assign({},t,{className:r.A["form-drawer"]})))},u=e=>{const t=d();return(0,i.jsx)(l.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},50196:(e,t,s)=>{s.r(t),s.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});s(64674);var n=s(99776)},55431:(e,t,s)=>{s.d(t,{A:()=>n});const n=e=>({"en-US":()=>s.e(1649).then(s.bind(s,21649)),"zh-CN":()=>s.e(711).then(s.bind(s,80711))}[e]())},56259:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(89319),a=s(98434);const{useOnChange:l}=a.hooks,r=e=>l(Object.assign({},{},e))(n.A);r.Field=n.A;const o=r},64261:(e,t,s)=>{s.d(t,{A:()=>A});var n=s(89379),a=s(98434),l=s(57469),r=s.n(l),o=s(34677),i=s.n(o),c=s(33097),d=s.n(c),u=s(22717),p=s.n(u),m=(s(17448),s(2842)),h=s(46732),g=s(13050),f=s(70579);const x=a.RULES.REQ,_=a.RULES.LEN,A=async(e,t)=>{const{locale:s}=Object.assign({},t);a.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){const[t,s]=e.split("?"),n=new URLSearchParams(s);return Object.assign({},{id:t},p()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}return e}),a.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),a.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>{const[t,s]=e.split("?"),n=new URLSearchParams(s);return Object.assign({},{id:t},p()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}):e),a.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),a.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),a.interceptors.output.use("to-array",e=>[e]),a.interceptors.input.use("array-single",e=>e?[e]:[]),a.interceptors.output.use("array-single",e=>e?e[0]:null),a.interceptors.input.use("boolean-number",e=>1===e||"1"===e),a.interceptors.output.use("boolean-number",e=>e?1:0),a.interceptors.input.use("un-boolean",e=>!e),a.interceptors.output.use("un-boolean",e=>!e),a.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),a.interceptors.output.use("array-output-value",e=>Array.isArray(e)&&e.length>0?e.map(e=>e.value||e.id):[]),a.interceptors.input.use("date-string",e=>e?r()(e):null),a.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),a.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}),a.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}),a.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),a.interceptors.input.use("file-format",e=>Array.isArray(e)?e.map(e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename})):[]);const{default:l}=await(0,g.loadModule)("components-iconfont:CountyFlag@load"),o=await l(),c=new Map(o.map(e=>{let{ab:t,country_code:s}=e;return[t,s]})),u=new Map(o.map(e=>{let{ab:t,country_code:s}=e;return[s,t]}));a.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,"")):""),a.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)}},a=d()(n,"".concat(e,".").concat(s));return a||d()(n,"".concat(e,".zh-CN"))};(0,a.preset)(i()({},{type:"inner",rules:{REQ:function(){return Object.assign({},x(...arguments),{errMsg:A("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const[n,a,l]=t;let r="";return l===a&&n.length!==Number(l)&&(r="LENGTH_EQUAL"),n.length<a&&(r="LENGTH_MORE"),l&&n.length>l&&(r="LENGTH_LESS"),Object.assign({},_(...t),{errMsg:A(r,{start:a,end:l})})},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,s)=>s===t&&e.length!==Number(s)?{result:!1,errMsg:A("LENGTH_EQUAL",{start:t,end:s})}:e.length<t?{result:!1,errMsg:A("LENGTH_MORE",{start:t,end:s})}:s&&e.length>s?{result:!1,errMsg:A("LENGTH_LESS",{start:t,end:s})}:{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:a.interceptors,RULES:a.RULES}):e))}},76995:(e,t,s)=>{s.d(t,{A:()=>f});var n=s(89379),a=s(53986),l=s(55431),r=s(98434),o=s(47458),i=s(83799),c=s(83136),d=s.n(c),u=s(47094),p=s(70579);const m=["className","withDecorator","footerButtons","formProps","cancelText","saveText","autoClose"],h=["onSubmit","key"],g="FormInfo",f=e=>{let{className:t,withDecorator:s,footerButtons:c,formProps:f,cancelText:x,saveText:_,autoClose:A=!0}=e,j=(0,a.A)(e,m);return(0,n.A)((0,n.A)({},j),{},{footerButtons:c||[{children:(0,p.jsx)(o.IntlProvider,{importMessages:l.A,moduleName:g,children:x||(0,p.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:g})}),ButtonComponent:r.CancelButton},{type:"primary",children:(0,p.jsx)(o.IntlProvider,{importMessages:l.A,moduleName:g,children:_||(0,p.jsx)(o.FormattedMessage,{id:"Save",moduleName:g})}),ButtonComponent:r.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const r=t=>{const s=Object.assign({},"function"===typeof f?f(t):f),{onSubmit:r,key:c}=s,d=(0,a.A)(s,h);return(0,p.jsx)(i.lV,(0,n.A)((0,n.A)({},d),{},{onSubmit:async function(e){for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];!1!==(r&&await r(e,Object.assign({},t),...n))&&A&&t.close()},children:(0,p.jsx)(o.IntlProvider,{importMessages:l.A,moduleName:"FormInfo",children:e(t)})}))};return"function"===typeof s?s(r,t):r(t)},className:d()(t,u.A["form-outer"])})}},78756:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(43856),a=s(98434);const{useOnChange:l}=a.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);r.Field=n.IndustrySelectField,r.Enum=n.IndustrySelectField.Enum;const o=r},81026:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(43856),a=s(98434);const{useOnChange:l}=a.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);r.Field=n.FunctionSelectField,r.Enum=n.FunctionSelectField.Enum;const o=r},83230:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(98434),a=s(43856);const{useOnChange:l}=n.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.CascaderField);r.Field=a.CascaderField,r.createTreeUtils=a.createTreeUtils;const o=r},83799:(e,t,s)=>{s.d(t,{NI:()=>H,TQ:()=>m.A,JL:()=>U,eu:()=>j.A,vx:()=>h.A,lr:()=>ee,s3:()=>te,lV:()=>r.A,d4:()=>g.A,ZN:()=>f.A,pd:()=>Q,YI:()=>K,h2:()=>G,F0:()=>x.A,go:()=>_.default,tt:()=>l.Rate,lu:()=>v.A,l6:()=>J,Ap:()=>l.Slider,wD:()=>B,eM:()=>W,kx:()=>q,Pg:()=>V,dO:()=>l.Switch,EY:()=>M,fs:()=>X,AG:()=>Z,f7:()=>$,w5:()=>S.A,_O:()=>A.A,nk:()=>se});var n=s(89379),a=s(53986),l=s(98434),r=s(85696),o=s(47458),i=s(73884),c=s(30891),d=s(47094),u=s(30096),p=s(34643),m=s(1904),h=s(83230),g=s(81026),f=s(78756),x=s(92328),_=s(2842),A=s(89099),j=s(96339),v=s(36972),y=s(15209),S=s(56259),b=s(55199),N=s(10986),w=s.n(N),C=s(70579);const F=["children"],{useDecorator:P}=l.hooks,I=e=>{let{children:t}=e,s=(0,a.A)(e,F);const[l]=w()(s);return(0,C.jsxs)(b.Typography.Text,(0,n.A)((0,n.A)({},s),{},{children:[(0,C.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,C.jsx)(b.Input,{value:l})}),t||l]}))},T=e=>P(e)(I);T.Field=I;const M=T;var k=s(45053);const O=["placeholder","label"],L=["placeholder","label","className"],R=["placeholder","label"],E=["placeholder","label","soFarText"],D=e=>{const t=(0,i.forwardRef)((t,s)=>{let{placeholder:l,label:r}=t,i=(0,a.A)(t,O);return(0,C.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,C.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:s,label:r,placeholder:l||t}))})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(s=>{t[s]=e[s]}),t},z=e=>{const t=(0,i.forwardRef)((t,s)=>{let{placeholder:l,label:r}=t,i=(0,a.A)(t,R);return(0,C.jsx)(o.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,C.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:s,label:r,placeholder:l||t}))})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(s=>{t[s]=e[s]}),t},U=z(u.Ay),B=z(p.Ay),W=z(p.eM),V=z(p.Pg),q=z(p.kx),H=z(m.N),G=D(y.A),Q=D(l.Input);Q.Password=D(l.Input.Password);const X=(Y=l.TextArea,e=>{let{placeholder:t,label:s,className:l}=e,r=(0,a.A)(e,L);return(0,C.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:s},children:e=>(0,C.jsx)("div",{className:d.A["textarea-wrapped-component"],children:(0,C.jsx)(Y,(0,n.A)((0,n.A)({},r),{},{label:s,placeholder:t||e}))})})});var Y;const J=z(l.Select),K=D(l.InputNumber),$=z(l.TreeSelect),Z=z(l.TimePicker);Z.RangePicker=z(l.TimePicker.RangePicker);const ee=z(l.DatePicker);ee.MonthPicker=z(l.DatePicker.MonthPicker),ee.RangePicker=z(l.DatePicker.RangePicker),ee.WeekPicker=z(l.DatePicker.WeekPicker);const te=e=>{let{placeholder:t,label:s,soFarText:r}=e,i=(0,a.A)(e,E);const{formatMessage:c}=(0,o.useIntl)({moduleName:"FormInfo"});return(0,C.jsx)(l.DatePickerToday,(0,n.A)((0,n.A)({},i),{},{label:s,placeholder:[c({id:"startDate"}),c({id:"endDate"})],soFarText:r||c({id:"soFarText"})}))},se=Object.assign({},l,{Input:Q,InputUpperCase:G,TextArea:X,Select:J,InputNumber:K,TreeSelect:$,TimePicker:Z,DatePicker:ee,DatePickerToday:te,Form:r.A,FormItem:c.A,AdvancedSelect:U,SuperSelect:B,SuperSelectTableList:W,SuperSelectUser:V,SuperSelectTree:q,AddressSelect:m.A,AddressInput:H,MoneyInput:x.A,PhoneNumber:_.default,Cascader:h.A,FunctionSelect:g.A,IndustrySelect:f.A,TypeDateRangePicker:S.A,Upload:A.A,Avatar:j.A,SalaryInput:v.A,Text:M,Rate:l.Rate,Switch:l.Switch,Slider:l.Slider,ErrorTip:k.A})},85696:(e,t,s)=>{s.d(t,{A:()=>y});var n=s(89379),a=s(53986),l=s(73884),r=s(63743),o=s(33097),i=s.n(o),c=s(64261),d=s(47458),u=s(55431),p=s(46237),m=s(41381),h=s(46732),g=s(98434),f=s(83136),x=s.n(f),_=s(47094),A=s(70579);const j=["className","helperGuideName","children","lang"],v=e=>{let{children:t}=e;const[s,n]=(0,l.useState)(!1),a=(0,r.usePreset)(),o=i()(a,"formInfo",{}),d=i()(a,"locale");return(0,l.useEffect)(()=>{Promise.resolve((0,c.A)(o,{locale:d})).then(()=>{n(!0)})},[o,d]),s?t:null},y=(0,l.forwardRef)((e,t)=>{let{className:s,helperGuideName:l,children:r,lang:o}=e,i=(0,a.A)(e,j);return(0,A.jsx)(d.IntlProvider,{importMessages:u.A,moduleName:"FormInfo",children:(0,A.jsx)(p.Ay,{value:o,children:(0,A.jsx)(h.K,{value:l,children:(0,A.jsx)(v,{children:(0,A.jsx)(g.FormAntd,(0,n.A)((0,n.A)({},i),{},{ref:t,className:x()(s,_.A["form-outer"]),children:(0,A.jsx)(m.default,{children:r})}))})})})})})},85846:(e,t,s)=>{s.d(t,{A:()=>S});var n=s(89379),a=s(53986),l=s(73884),r=s(82962),o=s(55199),i=s(64671),c=s(41381),d=s(47338),u=s(2196),p=s(83136),m=s.n(p),h=s(55431),g=s(47458),f=s(47094),x=s(70579);const _=["addText","className","important","outer","renderChildren","deleteButtonProps","title"],A=["list","title","id","allowRemove","onRemove"],j=["add","addText","className","allowAdd"],v=(0,g.createWithIntl)({moduleName:"FormInfo",importMessages:h.A})(e=>{let{addText:t,className:s,important:c,outer:p=(0,x.jsx)(y,{}),renderChildren:h=e=>e,deleteButtonProps:j,title:v}=e,S=(0,a.A)(e,_);const{formatMessage:b}=(0,g.useIntl)({moduleName:"FormInfo"});return(0,x.jsx)(r.SubList,(0,n.A)((0,n.A)({},S),{},{listRender:e=>{let{list:t,title:s,id:l,allowRemove:r,onRemove:p}=e,h=(0,a.A)(e,A);return(0,x.jsxs)("div",{className:m()(f.A["list-item"],{[f.A["is-important"]]:c}),children:[(0,x.jsx)(u.A,(0,n.A)((0,n.A)({},h),{},{title:s,list:t,className:f.A["list-item-part"],gap:16,extra:(0,x.jsx)(g.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>r?(0,x.jsx)(d.default,(0,n.A)((0,n.A)({danger:!0,className:"btn-no-padding",message:b({id:"delConfirm"},{name:s}),type:"link",onClick:()=>{p(l)}},Object.assign({},j)),{},{children:null!==j&&void 0!==j&&j.children?null===j||void 0===j?void 0:j.children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(i.default,{type:"icon-shanchu"}),e]})})):null})})),(0,x.jsx)(o.Divider,{})]},l)},children:(e,n)=>{let{allowAdd:a,onAdd:r}=n;return(0,l.cloneElement)(p,{title:v,addText:t,className:m()(s,f.A["list-part"]),allowAdd:a,add:()=>r({isUnshift:!1})},h(e))}}))}),y=e=>{let{add:t,addText:s,className:l,allowAdd:r}=e,d=(0,a.A)(e,j);return(0,x.jsx)(c.default.Part,(0,n.A)((0,n.A)({},d),{},{className:l,extra:r&&(0,x.jsx)(g.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,x.jsxs)(o.Typography.Text,{className:f.A["list-btn"],onClick:t,children:[(0,x.jsx)(i.default,{type:"icon-tianjia"}),s||e]})})}))},S=v},89099:(e,t,s)=>{s.d(t,{A:()=>w});var n=s(89379),a=s(53986),l=s(55199),r=s(83136),o=s.n(r),i=s(10986),c=s.n(i);const d="style_upload__t422Q__j+s1S",u="style_upload-list__Q9HDc__j+s1S",p="style_tips__3Gpnu__j+s1S";var m=s(19343),h=s(98434),g=s(47458),f=s(1488),x=s.n(f),_=s(17508),A=s(55431),j=s(70579);const v=["className","fileSize","maxLength","multiple","size","accept","children","renderTips","showUploadList","onSave","ossUpload","onUpload","getPermission","concurrentCount"],y=["interceptor"],{useOnChange:S}=h.hooks,b=(0,g.createWithIntl)({importMessages:A.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,g.useIntl)({moduleName:"FormInfo"}),s=Object.assign({},{defaultValue:[],children:t({id:"uploadButtonText"}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".eml",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30,concurrentCount:10},e),{className:r,fileSize:i,maxLength:h,multiple:f,size:A,accept:y,children:S,renderTips:b,showUploadList:N,onSave:w,ossUpload:C,onUpload:F,getPermission:P,concurrentCount:I}=s,T=(0,a.A)(s,v),[M,k]=c()(T),O=M||[],{fileList:L,onFileSelected:R}=(0,_.lN)({multiple:f,onSave:w,onUpload:C||F,fileSize:i,maxLength:h,value:O,onChange:k,concurrentCount:I}),E=[...L,...O],D=b(t({id:"uploadTips"},{extensionNames:y.map(e=>e.replace(/^\./,"")).join(","),maxLength:h,fileSize:i}),{fileSize:i,maxLength:h,accept:y});return(0,j.jsxs)(l.Space,{direction:"vertical",children:[(0,j.jsxs)(l.Flex,{align:"start",gap:8,vertical:!0,children:[(0,j.jsx)(_.Zi,(0,n.A)((0,n.A)({},x()(T,["value","onChange"])),{},{size:A,multiple:f,accept:y,className:o()(d,r),onChange:R,children:S})),D&&(0,j.jsx)("div",{className:p,children:D})]}),N&&E.length>0&&(0,j.jsx)(m.List,{className:u,dataSource:E,infoItemRenders:[],getPermission:P||(e=>"delete"===e),apis:{onDelete:e=>{const t=O.slice(0),s=t.indexOf(e);s>-1&&t.splice(s,1),k(t)}}})]})}),N=e=>{let{interceptor:t="file-format"}=e,s=(0,a.A)(e,y);return S((0,n.A)({interceptor:t},s))(b)};N.Field=b;const w=N},92328:(e,t,s)=>{s.d(t,{A:()=>S});var n=s(89379),a=s(53986),l=s(10986),r=s.n(l),o=s(98434),i=s(55199),c=s(69484);const d="style_money-input__Pyur7__j+s1S",u="style_money-description__9pFk4__j+s1S";var p=s(83136),m=s.n(p),h=s(34677),g=s.n(h),f=s(73884),x=s(70579);const _=["chineseEmpty","className","showError","errorDesc","transformMoneyToChinese","onBlur","moneyFormat"],{isNotEmpty:A}=o.util||o.formUtils,{useOnChange:j}=o.hooks,v=e=>{let{chineseEmpty:t,className:s,showError:l,errorDesc:o,transformMoneyToChinese:p,onBlur:h,moneyFormat:j}=e,v=(0,a.A)(e,_);const[y,S]=(0,f.useState)(""),[b,N]=r()(v),w=g()({controls:!1,precision:2,addonAfter:"\u5143"},v,{max:A(v.max)?v.max>c.e?c.e:v.max:c.e});return(0,x.jsxs)("div",{className:m()(s,"money-input",d),children:[(0,x.jsx)(i.InputNumber,(0,n.A)((0,n.A)({},w),{},{status:y,formatter:j?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=j?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return A(t)?(Number(t)>Number(w.max)||A(w.min)&&Number(t)<Number(w.min))&&S("error"):S(""),A(t)?Number(t):null},onChange:e=>{N(e)},onBlur:e=>{h&&h(e,S)}})),(0,x.jsx)("div",{className:m()(u),children:"error"===y&&l?o:A(b)?(0,c.A)(p?p(b):b):t})]})},y=e=>j(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(v);y.Field=v,y.toChineseCharacter=c.A;const S=y},94005:(e,t,s)=>{s.d(t,{$X:()=>N,Ay:()=>b,Wp:()=>w});var n=s(89379),a=s(53986),l=s(3382),r=s(73884),o=s(98434),i=s(73025),c=s(47458),d=s(47094),u=s(55431),p=s(55199),m=s(76995),h=s(70579);const g=["footerButtons","cancelText","completeText","nextText","items","withDecorator","autoClose"],f=["formProps","title"],x=["onSubmit"],_=["formProps"],A=["children","stepSection"],j=["modalProps"],v="FormInfo",y=e=>{let{items:t,children:s}=e;const[n,a]=(0,r.useState)(0);return s({currentIndex:n,setCurrentIndex:a,stepCacheRef:(0,r.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},S=e=>{let{footerButtons:t,cancelText:s,completeText:n,nextText:l,items:r,withDecorator:i,autoClose:j=!0}=e,S=(0,a.A)(e,g);return(0,m.A)(Object.assign({},S,{footerButtons:e=>{let{currentIndex:t,isLastStep:a}=e;const{footerButtons:i}=Object.assign({},r[t]);return i||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:v,children:s||(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:v})}),ButtonComponent:o.CancelButton},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:v,children:a?n||(0,h.jsx)(c.FormattedMessage,{id:"Complete",moduleName:v}):l||(0,h.jsx)(c.FormattedMessage,{id:"Next",moduleName:v})}),ButtonComponent:o.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const s=t=>(0,h.jsx)(y,{items:r,children:s=>{var n;let{currentIndex:l,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}=s;const{formProps:m,title:g}=c,_=(0,a.A)(c,f),A="function"===typeof m?m(t):m,{onSubmit:v}=A,y=(0,a.A)(A,x),S=Object.assign({},y.data,null===(n=u.current[l])||void 0===n?void 0:n.data);return e(Object.assign({},t,_,{currentIndex:l,isLastStep:o,setCurrentIndex:i,stepCacheRef:u,stepSection:(0,h.jsx)(p.Steps,{className:d.A["form-step-section"],current:l,items:r.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},y,{key:l,data:S,onSubmit:async function(e){u.current[l]={data:e};for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];const r=v&&await v(e,Object.assign({},t,{currentIndex:l,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}),...n);return u.current[l]=Object.assign({},u.current[l],{output:r}),j&&!o&&!1!==r&&i(e=>e+1),!!o&&r}})}))}});return"function"===typeof i?i(s,t):s(t)},formProps:e=>{let{formProps:t}=e,s=(0,a.A)(e,_);return Object.assign({},s,t)},children:e=>{let{children:t,stepSection:s}=e,n=(0,a.A)(e,A);return(0,h.jsxs)(p.Flex,{vertical:!0,gap:24,children:[(0,h.jsx)(p.Flex,{justify:"center",children:s}),"function"===typeof t?t(n):t]})}}))},b=e=>(0,h.jsx)(l.default,(0,n.A)({},S(Object.assign({},e,{className:d.A["form-modal"]})))),N=()=>{const e=(0,l.useModal)();return t=>e(S(Object.assign({},t,{className:d.A["form-modal"]})))},w=e=>{const t=N();if(!e.api){const{modalProps:s}=e,l=(0,a.A)(e,j);return(0,h.jsx)(p.Button,(0,n.A)((0,n.A)({},l),{},{onClick:()=>{t(s)}}))}return(0,h.jsx)(i.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},96252:(e,t,s)=>{s.r(t),s.d(t,{AddressInput:()=>_.NI,AddressSelect:()=>_.TQ,AdvancedSelect:()=>_.JL,Avatar:()=>_.eu,Cascader:()=>_.vx,DatePicker:()=>_.lr,DatePickerToday:()=>_.s3,ErrorTip:()=>h.A,Form:()=>p.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>m.A,FormModal:()=>c.Ay,FormModalButton:()=>c.W6,FormStepModal:()=>d.Ay,FormStepModalButton:()=>d.Wp,FunctionSelect:()=>_.d4,IndustrySelect:()=>_.ZN,Input:()=>_.pd,InputNumber:()=>_.YI,InputUpperCase:()=>_.h2,List:()=>r.A,MoneyInput:()=>_.F0,MultiField:()=>g.A,PhoneNumber:()=>_.go,Rate:()=>_.tt,SalaryInput:()=>_.lu,Select:()=>_.l6,SelectInnerInput:()=>A.A,Slider:()=>_.Ap,SuperSelect:()=>_.wD,SuperSelectTableList:()=>_.eM,SuperSelectTree:()=>_.kx,SuperSelectUser:()=>_.Pg,Switch:()=>_.dO,TableList:()=>o.A,Text:()=>_.EY,TextArea:()=>_.fs,TimePicker:()=>_.AG,TreeSelect:()=>_.f7,TypeDateRangePicker:()=>_.w5,Upload:()=>_._O,default:()=>j,fieldDecorator:()=>l.E,fields:()=>l.A,formModule:()=>_.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var n=s(64261),a=s(2196),l=s(15445),r=s(85846),o=s(97056),i=s(35774),c=s(5995),d=s(94005),u=s(48221),p=s(85696),m=s(30891),h=s(45053),g=s(97949),f=s(98434),x={};for(const v in f)["default","SelectInnerInput","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField"].indexOf(v)<0&&(x[v]=()=>f[v]);s.d(t,x);var _=s(83799),A=s(18936);(0,n.A)(),a.A.fields=l.A,a.A.List=r.A,a.A.TableList=o.A,a.A.FormApiButton=i.A,a.A.FormModal=c.Ay,a.A.useFormModal=c.Vl,a.A.FormModalButton=c.W6,a.A.FormStepModal=d.Ay,a.A.useFormStepModal=d.$X,a.A.FormStepModalButton=d.Wp,a.A.FormDrawer=u.Ay,a.A.useFormDrawer=u.Xy,a.A.FormDrawerButton=u.WJ,a.A.Form=p.A,a.A.FormItem=m.A,a.A.ErrorTip=h.A,a.A.SubmitButton=f.SubmitButton,a.A.CancelButton=f.CancelButton,a.A.fieldDecorator=l.E,a.A.MultiField=g.A,a.A.useFormContext=f.useFormContext,a.A.hooks=f.hooks,a.A.widget=f.widget,a.A.utils=f.utils,a.A.formUtils=f.formUtils;const j=a.A},96339:(e,t,s)=>{s.d(t,{A:()=>V});var n=s(53986),a=s(89379),l=s(73884),r=s(17508),o=s(40438),i=s(63743),c=s(3382),d=s(64671),u=s(55199),p=s(53202),m=s.n(p),h=s(33097),g=s.n(h),f=s(83136),x=s.n(f),_=s(51941),A=s(98434),j=s(34677),v=s.n(j);const y="style_upload-btn__-6XtP__j+s1S",S="style_square__UPkfA__j+s1S",b="style_is-loading__wx6Pd__j+s1S",N="style_upload-btn-tips__YtxWz__j+s1S",w="style_drop-tips__N-v59__j+s1S",C="style_preview-area__aV3SN__j+s1S";var F=s(18411),P=s(47458),I=s(55431),T=s(70579);const M=["image","width","height","borderRadius","preview","fileSize","accept","renderTips","getApi","shape","border"],k=["image","width","height","borderRadius","getApi","preview","fileSize","accept","renderTips","border","dropModalSize"],{useOnChange:O}=A.hooks,L=o.default.Avatar,R="FormInfo",E=(0,r.Ay)(e=>{let{className:t,icon:s,loading:n,value:l,gender:r,width:o,height:i,children:c,shape:p,defaultAvatar:m,displayAvatar:h,apis:f}=e;const _=(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(L,(0,a.A)((0,a.A)({},Object.assign({},"function"===typeof h?h(l):{id:g()(l,"id")})),{},{gender:r,width:64*o/i,height:64,shape:p,defaultAvatar:m,apis:f})),(0,T.jsx)("div",{className:N,children:s||(0,T.jsx)(d.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,T.jsx)("div",{className:x()(t,y,{[b]:n,[S]:"square"===p||!(o&&o===i)}),style:{width:64*o/i},children:n?(0,T.jsx)(u.Spin,{children:_}):_})}),D=e=>{let t=e.split(","),s=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],a=atob(s),l=a.length,r=new Uint8Array(l);for(;l--;)r[l]=a.charCodeAt(l);return new Blob([r],{type:n})},z=(0,l.forwardRef)((e,t)=>{let{image:s,width:o,height:i,borderRadius:c,preview:p,fileSize:h,accept:g,renderTips:f,getApi:x,shape:A,border:j=1}=e,v=(0,n.A)(e,M);const y=(0,P.useIntl)({moduleName:R}),[S,b]=(0,l.useState)(0),N=(0,l.useRef)(null),[F,I]=(0,l.useState)(s),[k,O]=(0,l.useState)(1),[L,E]=(0,l.useState)(0),[z,U]=(0,l.useState)(""),B=(0,l.useRef)(null);(0,l.useLayoutEffect)(()=>{b(2*N.current.clientWidth/3)},[]),x({getImage:()=>{const e=B.current.getImage(),t=document.createElement("canvas"),s=t.getContext("2d");return t.width=o,t.height=i,s.drawImage(e,0,0,t.width,t.height),new window.File([D(t.toDataURL())],F.name,{type:F.type})}});const W=()=>{U(B.current.getImage().toDataURL())},V=(0,_.useDebouncedCallback)(W,500);return(0,T.jsx)("div",{ref:N,children:(0,T.jsxs)(u.Row,{wrap:!1,align:"middle",children:[(0,T.jsx)(u.Col,{span:p?16:24,children:S&&(0,T.jsxs)(u.Space,{direction:"vertical",children:[(0,T.jsx)(m(),(0,a.A)((0,a.A)({},v),{},{ref:B,image:F,scale:k,rotate:L,width:S-2*j,height:i*S/o-2*j*i/o,border:j,color:[0,0,0,.6],borderRadius:c*S/o,onImageReady:W,onImageChange:V})),(0,T.jsx)("div",{className:w,children:f("".concat(y.formatMessage({id:"PictureFormat"})).concat(g.map(e=>e.replace(/^\./,"")).join(" ")," ").concat(y.formatMessage({id:"ImageSize"})).concat(y.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:y.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,T.jsx)(d.default,{type:"icon-xuanzhuan",onClick:()=>{E(e=>(e-90)%360)}})})}),(0,T.jsx)(u.Col,{children:(0,T.jsx)(u.Tooltip,{title:y.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,T.jsx)(d.default,{type:"icon-chongman",onClick:()=>{O(1)}})})}),(0,T.jsx)(u.Col,{flex:1,children:(0,T.jsx)(u.Slider,{tooltip:{placement:"bottom",formatter:()=>y.formatMessage({id:"Size"})},value:k,step:.05,min:.2,max:3,onChange:O})}),(0,T.jsx)(u.Col,{children:(0,T.jsx)(r.FI,{accept:g,onChange:e=>{e[0].size>1024*h*1024?u.message.error(y.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:h})):(E(0),O(1),I(e[0]))},children:y.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:z,shape:A,style:{width:S/2-36,height:(S/2-36)*i/o}}),(0,T.jsx)("div",{style:{textAlign:"center"},children:y.formatMessage({id:"Preview"})})]})})})]})})}),U=()=>{const e=(0,c.useModal)();return t=>{const s=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t),{image:l,width:r,height:o,borderRadius:i,getApi:c,preview:d,fileSize:u,accept:p,renderTips:m,border:h,dropModalSize:g}=s,f=(0,n.A)(s,k);return e((0,a.A)((0,a.A)({},f),{},{size:g,children:(0,T.jsx)(z,{preview:d,fileSize:u,accept:p,getApi:c,renderTips:m,width:r,height:o,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:i,image:l,border:h,scale:1,rotate:0})}))}},B=(0,P.createWithIntl)({importMessages:I.A,moduleName:"FormInfo"})(e=>{var t;let{value:s,gender:n,fileSize:a=2,accept:r=[".jpg",".png",".jpeg"],openEditor:o=!0,apis:c,renderTips:d=e=>e,onChange:p,shape:m="circle",width:h=200,height:g=200,title:f=(0,T.jsx)(P.IntlProvider,{importMessages:I.A,moduleName:"FormInfo",children:(0,T.jsx)(P.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:x=1,icon:_,dropModalSize:A="small",defaultAvatar:j=F.A,displayAvatar:y}=e;const[S,b]=(0,l.useState)(!1),{apis:N}=(0,i.usePreset)(),w=v()({},N,c),C=w.ossUpload||w.upload||(null===(t=w.file)||void 0===t?void 0:t.upload),M=(0,l.useRef)(null),k=U(),O=(0,P.useIntl)({moduleName:R});return(0,T.jsx)(E,{value:s,gender:n,accept:r,width:h,height:g,shape:m,icon:_,loading:S,defaultAvatar:j,displayAvatar:y,apis:w,onChange:e=>{if(e[0].size>1024*a*1024)return void u.message.error(O.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:a}));const t=e=>(b(!0),C({file:e}).then(e=>{let{data:t}=e;0===t.code?p(t.data):u.message.error(O.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{b(!1)}));o?k({image:e[0],width:h,height:g,title:f,shape:m,border:x,dropModalSize:A,getApi:e=>M.current=e,fileSize:a,accept:r,renderTips:d,onConfirm:()=>{t(M.current.getImage())}}):t(e[0])}})}),W=e=>O(e)(B);W.Field=B,W.useDropModal=U;const V=W},97056:(e,t,s)=>{s.d(t,{A:()=>f});var n=s(89379),a=s(53986),l=s(55199),r=s(64671),o=s(83136),i=s.n(o),c=s(47094),d=s(82962),u=s(41381),p=s(47458),m=s(55431),h=s(70579);const g=["className"],f=(0,p.createWithIntl)({moduleName:"FormInfo",importMessages:m.A})(e=>{let{className:t}=e,s=(0,a.A)(e,g);const{formatMessage:o}=(0,p.useIntl)({moduleName:"FormInfo"});return(0,h.jsx)("div",{className:i()(t,c.A["table-list"]),children:(0,h.jsx)(d.TableList,(0,n.A)((0,n.A)({},s),{},{className:i()(t,c.A["table-list"]),headerRender:(e,t)=>{let{width:s}=t;return(0,h.jsxs)(l.Row,{wrap:!1,className:c.A["table-list-header"],style:{"--col-width":s},children:[e,(0,h.jsx)(l.Col,{className:c.A["table-list-extra"]})]})},headerItemRender:(e,t)=>{let{id:s,isReq:n}=t;return(0,h.jsx)(l.Col,{className:i()({[c.A["is-req"]]:n}),children:e},s)},listRender:(e,t)=>{let{id:s,width:n,onRemove:a,allowRemove:i}=t;return(0,h.jsxs)(l.Row,{wrap:!1,style:{"--col-width":n},children:[e,(0,h.jsx)(l.Col,{className:c.A["table-list-extra"],children:(0,h.jsx)(l.Button,{type:"link",onClick:a,danger:!0,disabled:!i,children:(0,h.jsxs)("span",{children:[(0,h.jsx)(r.default,{type:"shanchu"}),o({id:"delText"})]})})})]},s)},itemRender:e=>(0,h.jsx)(l.Col,{className:c.A["table-list-field"],flex:1,children:e}),children:(e,t)=>{let{title:s,allowAdd:n,onAdd:a}=t;return(0,h.jsx)(u.default.Part,{title:s,className:i()(c.A["table-list-inner"]),extra:n&&(0,h.jsxs)(l.Typography.Link,{className:c.A["list-btn"],onClick:()=>a({isUnshift:!1}),children:[(0,h.jsx)(r.default,{type:"tianjia"}),o({id:"addText"})]}),children:e})}}))})})},97949:(e,t,s)=>{s.d(t,{A:()=>m});var n=s(89379),a=s(55199),l=s(47458),r=s(64671),o=s(47094),i=s(83136),c=s.n(i),d=s(55431),u=s(82962),p=s(70579);const m=(0,l.createWithIntl)({moduleName:"FormInfo",importMessages:d.A})(e=>{const{formatMessage:t}=(0,l.useIntl)({moduleName:"FormInfo"});return(0,p.jsx)(u.MultiField,(0,n.A)((0,n.A)({},e),{},{itemRender:(e,t)=>{let{id:s,index:n,allowRemove:l,onRemove:i}=t;return(0,p.jsxs)("div",{className:c()(o.A["mult-field-item"],"mult-field-item",{[o.A["first-item"]]:0===n}),children:[e,(0,p.jsxs)("div",{className:c()("form-info-mult-option"),children:[(0,p.jsx)("div",{className:c()(o.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,p.jsx)(a.Button,{icon:(0,p.jsx)(r.default,{type:"shanchu"}),onClick:i,disabled:!l})]})]},s)},children:(s,n)=>{let{allowAdd:l,onAdd:i}=n;return(0,p.jsxs)("div",{className:c()(o.A["mult-field"],"mult-field"),children:[s,l&&(0,p.jsx)("div",{className:c()("form-info-mult-add-btn"),children:(0,p.jsxs)(a.Button,{className:o.A["mult-field-add-btn"],type:"dashed",onClick:()=>i({isUnshift:!1}),children:[(0,p.jsx)(r.default,{type:"tianjia"}),t({id:"addSomeThing"},{label:e.label})]})})]})}}))})}}]);
|
|
2
|
-
//# sourceMappingURL=4474.e0342d87.chunk.js.map
|