@kne-components/components-core 0.3.8 → 0.3.9
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 +95 -95
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{1045.accb2796.chunk.css → 1045.88c30095.chunk.css} +2 -2
- package/build/static/css/{1045.accb2796.chunk.css.map → 1045.88c30095.chunk.css.map} +1 -1
- package/build/static/css/1153.945cf7e6.chunk.css +2 -0
- package/build/static/css/{1153.f1d47d46.chunk.css.map → 1153.945cf7e6.chunk.css.map} +1 -1
- package/build/static/css/1554.51a32bba.chunk.css +2 -0
- package/build/static/css/{1554.1d55e556.chunk.css.map → 1554.51a32bba.chunk.css.map} +1 -1
- package/build/static/css/2716.70849cda.chunk.css +2 -0
- package/build/static/css/{2716.823de112.chunk.css.map → 2716.70849cda.chunk.css.map} +1 -1
- package/build/static/css/4200.b70f4cca.chunk.css +2 -0
- package/build/static/css/{4200.5c94106b.chunk.css.map → 4200.b70f4cca.chunk.css.map} +1 -1
- package/build/static/css/4666.26494bce.chunk.css +2 -0
- package/build/static/css/{4666.13dc9380.chunk.css.map → 4666.26494bce.chunk.css.map} +1 -1
- package/build/static/css/{5371.d0f7e06e.chunk.css → 5371.eaaea094.chunk.css} +2 -2
- package/build/static/css/{5371.d0f7e06e.chunk.css.map → 5371.eaaea094.chunk.css.map} +1 -1
- package/build/static/css/5422.1565baad.chunk.css +2 -0
- package/build/static/css/{5422.310e1746.chunk.css.map → 5422.1565baad.chunk.css.map} +1 -1
- package/build/static/css/5939.e820dc6e.chunk.css +2 -0
- package/build/static/css/{5939.3ca38e02.chunk.css.map → 5939.e820dc6e.chunk.css.map} +1 -1
- package/build/static/css/{624.7e444e52.chunk.css → 624.5c94244f.chunk.css} +2 -2
- package/build/static/css/{624.7e444e52.chunk.css.map → 624.5c94244f.chunk.css.map} +1 -1
- package/build/static/css/6401.11c50ba9.chunk.css +2 -0
- package/build/static/css/{6401.ad14a7de.chunk.css.map → 6401.11c50ba9.chunk.css.map} +1 -1
- package/build/static/css/663.7cf66cf1.chunk.css +12 -0
- package/build/static/css/{663.2b351b88.chunk.css.map → 663.7cf66cf1.chunk.css.map} +1 -1
- package/build/static/css/7227.5e916f38.chunk.css +2 -0
- package/build/static/css/{7227.512b1bd4.chunk.css.map → 7227.5e916f38.chunk.css.map} +1 -1
- package/build/static/css/{7253.b98e67c6.chunk.css → 7253.413e10d4.chunk.css} +2 -2
- package/build/static/css/{7253.b98e67c6.chunk.css.map → 7253.413e10d4.chunk.css.map} +1 -1
- package/build/static/css/7277.270c08ea.chunk.css +2 -0
- package/build/static/css/{7277.8c85618a.chunk.css.map → 7277.270c08ea.chunk.css.map} +1 -1
- package/build/static/css/{7334.caeed1d4.chunk.css → 7334.953916f0.chunk.css} +2 -2
- package/build/static/css/{7334.caeed1d4.chunk.css.map → 7334.953916f0.chunk.css.map} +1 -1
- package/build/static/css/{7866.dae33b92.chunk.css → 7866.fce61354.chunk.css} +2 -2
- package/build/static/css/{7866.dae33b92.chunk.css.map → 7866.fce61354.chunk.css.map} +1 -1
- package/build/static/css/8278.6382d2e7.chunk.css +2 -0
- package/build/static/css/{8278.fcb465e6.chunk.css.map → 8278.6382d2e7.chunk.css.map} +1 -1
- package/build/static/css/{8503.ebfee031.chunk.css → 8503.4d3c5da9.chunk.css} +2 -2
- package/build/static/css/{8503.ebfee031.chunk.css.map → 8503.4d3c5da9.chunk.css.map} +1 -1
- package/build/static/css/9119.e54bf070.chunk.css +2 -0
- package/build/static/css/{9119.e9ce052d.chunk.css.map → 9119.e54bf070.chunk.css.map} +1 -1
- package/build/static/css/9791.87133052.chunk.css +2 -0
- package/build/static/css/{9791.5bdbda51.chunk.css.map → 9791.87133052.chunk.css.map} +1 -1
- package/build/static/js/{1045.9e73f95d.chunk.js → 1045.a424dbdb.chunk.js} +2 -2
- package/build/static/js/{1045.9e73f95d.chunk.js.map → 1045.a424dbdb.chunk.js.map} +1 -1
- package/build/static/js/{1153.b9171501.chunk.js → 1153.77196558.chunk.js} +3 -3
- package/build/static/js/{1153.b9171501.chunk.js.map → 1153.77196558.chunk.js.map} +1 -1
- package/build/static/js/1554.19cd56c5.chunk.js +3 -0
- package/build/static/js/{1554.cf310150.chunk.js.map → 1554.19cd56c5.chunk.js.map} +1 -1
- package/build/static/js/2716.21ac3741.chunk.js +3 -0
- package/build/static/js/{2716.bf29712e.chunk.js.map → 2716.21ac3741.chunk.js.map} +1 -1
- package/build/static/js/{2818.73343977.chunk.js → 2818.7ecd7f1d.chunk.js} +2 -2
- package/build/static/js/{2818.73343977.chunk.js.map → 2818.7ecd7f1d.chunk.js.map} +1 -1
- package/build/static/js/3856.c3cb9417.chunk.js +2 -0
- package/build/static/js/{3856.1c4c0238.chunk.js.map → 3856.c3cb9417.chunk.js.map} +1 -1
- package/build/static/js/4200.bc8ff6dc.chunk.js +2 -0
- package/build/static/js/{4200.a0c7214c.chunk.js.map → 4200.bc8ff6dc.chunk.js.map} +1 -1
- package/build/static/js/4474.990b8320.chunk.js +2 -0
- package/build/static/js/{4474.b8b8989a.chunk.js.map → 4474.990b8320.chunk.js.map} +1 -1
- package/build/static/js/{4666.a2a6a63b.chunk.js → 4666.e42fff5c.chunk.js} +3 -3
- package/build/static/js/{4666.a2a6a63b.chunk.js.map → 4666.e42fff5c.chunk.js.map} +1 -1
- package/build/static/js/{4671.a8affe38.chunk.js → 4671.ae56180e.chunk.js} +1 -1
- package/build/static/js/{4982.248a99b8.chunk.js → 4982.c6e0af0e.chunk.js} +2 -2
- package/build/static/js/{4982.248a99b8.chunk.js.map → 4982.c6e0af0e.chunk.js.map} +1 -1
- package/build/static/js/5371.c558f92b.chunk.js +2 -0
- package/build/static/js/{5371.04d99a42.chunk.js.map → 5371.c558f92b.chunk.js.map} +1 -1
- package/build/static/js/5422.e5d1a77d.chunk.js +2 -0
- package/build/static/js/{5422.26676c80.chunk.js.map → 5422.e5d1a77d.chunk.js.map} +1 -1
- package/build/static/js/{5939.00b485f1.chunk.js → 5939.c22680b8.chunk.js} +2 -2
- package/build/static/js/5939.c22680b8.chunk.js.map +1 -0
- package/build/static/js/{624.02a5bf5e.chunk.js → 624.fcbf7a1d.chunk.js} +2 -2
- package/build/static/js/{624.02a5bf5e.chunk.js.map → 624.fcbf7a1d.chunk.js.map} +1 -1
- package/build/static/js/{663.c2a54511.chunk.js → 663.e20d14a6.chunk.js} +2 -2
- package/build/static/js/{663.c2a54511.chunk.js.map → 663.e20d14a6.chunk.js.map} +1 -1
- package/build/static/js/7227.da550474.chunk.js +3 -0
- package/build/static/js/{7227.ae0a1442.chunk.js.map → 7227.da550474.chunk.js.map} +1 -1
- package/build/static/js/7253.0b9c55f8.chunk.js +2 -0
- package/build/static/js/{7253.4af34e91.chunk.js.map → 7253.0b9c55f8.chunk.js.map} +1 -1
- package/build/static/js/{7277.42a3af18.chunk.js → 7277.4cdf9475.chunk.js} +2 -2
- package/build/static/js/{7277.42a3af18.chunk.js.map → 7277.4cdf9475.chunk.js.map} +1 -1
- package/build/static/js/7334.bd4445b1.chunk.js +2 -0
- package/build/static/js/{7334.84c039d3.chunk.js.map → 7334.bd4445b1.chunk.js.map} +1 -1
- package/build/static/js/{7866.c1ec7c03.chunk.js → 7866.e161b53e.chunk.js} +2 -2
- package/build/static/js/{7866.c1ec7c03.chunk.js.map → 7866.e161b53e.chunk.js.map} +1 -1
- package/build/static/js/8278.1663ecfd.chunk.js +2 -0
- package/build/static/js/{8278.c853ecb3.chunk.js.map → 8278.1663ecfd.chunk.js.map} +1 -1
- package/build/static/js/8503.321aaf69.chunk.js +2 -0
- package/build/static/js/{8503.98dd7b65.chunk.js.map → 8503.321aaf69.chunk.js.map} +1 -1
- package/build/static/js/9119.7d6d0e78.chunk.js +2 -0
- package/build/static/js/{9119.a1f1316a.chunk.js.map → 9119.7d6d0e78.chunk.js.map} +1 -1
- package/build/static/js/{9791.135c76d6.chunk.js → 9791.ab1f8f28.chunk.js} +2 -2
- package/build/static/js/{9791.135c76d6.chunk.js.map → 9791.ab1f8f28.chunk.js.map} +1 -1
- package/build/static/js/{main.e8d0bfdf.js → main.4ec49d16.js} +2 -2
- package/build/static/js/{main.e8d0bfdf.js.map → main.4ec49d16.js.map} +1 -1
- package/package.json +2 -2
- package/build/static/css/1153.f1d47d46.chunk.css +0 -2
- package/build/static/css/1554.1d55e556.chunk.css +0 -2
- package/build/static/css/2716.823de112.chunk.css +0 -2
- package/build/static/css/4200.5c94106b.chunk.css +0 -2
- package/build/static/css/4666.13dc9380.chunk.css +0 -2
- package/build/static/css/5422.310e1746.chunk.css +0 -2
- package/build/static/css/5939.3ca38e02.chunk.css +0 -2
- package/build/static/css/6401.ad14a7de.chunk.css +0 -2
- package/build/static/css/663.2b351b88.chunk.css +0 -12
- package/build/static/css/7227.512b1bd4.chunk.css +0 -2
- package/build/static/css/7277.8c85618a.chunk.css +0 -2
- package/build/static/css/8278.fcb465e6.chunk.css +0 -2
- package/build/static/css/9119.e9ce052d.chunk.css +0 -2
- package/build/static/css/9791.5bdbda51.chunk.css +0 -2
- package/build/static/js/1554.cf310150.chunk.js +0 -3
- package/build/static/js/2716.bf29712e.chunk.js +0 -3
- package/build/static/js/3856.1c4c0238.chunk.js +0 -2
- package/build/static/js/4200.a0c7214c.chunk.js +0 -2
- package/build/static/js/4474.b8b8989a.chunk.js +0 -2
- package/build/static/js/5371.04d99a42.chunk.js +0 -2
- package/build/static/js/5422.26676c80.chunk.js +0 -2
- package/build/static/js/5939.00b485f1.chunk.js.map +0 -1
- package/build/static/js/7227.ae0a1442.chunk.js +0 -3
- package/build/static/js/7253.4af34e91.chunk.js +0 -2
- package/build/static/js/7334.84c039d3.chunk.js +0 -2
- package/build/static/js/8278.c853ecb3.chunk.js +0 -2
- package/build/static/js/8503.98dd7b65.chunk.js +0 -2
- package/build/static/js/9119.a1f1316a.chunk.js +0 -2
- /package/build/static/js/{1153.b9171501.chunk.js.LICENSE.txt → 1153.77196558.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.cf310150.chunk.js.LICENSE.txt → 1554.19cd56c5.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.bf29712e.chunk.js.LICENSE.txt → 2716.21ac3741.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.a2a6a63b.chunk.js.LICENSE.txt → 4666.e42fff5c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.ae0a1442.chunk.js.LICENSE.txt → 7227.da550474.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
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,{FlexBoxFetch:()=>n.FlexBoxFetch,default:()=>l,useFlexBox:()=>n.useFlexBox});var n=s(29871),r=s.n(n);r().Fetch=n.FlexBoxFetch;const l=r()},1904:(e,t,s)=>{s.d(t,{A:()=>i,N:()=>d});var n=s(98434),r=s(43856);const{useOnChange:l,useDecorator:a}=n.hooks,o=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.AddressSelectField);o.Field=r.AddressSelectField,o.AddressEnum=r.AddressSelectField.AddressEnum,o.createAddressApi=r.AddressSelectField.createAddressApi,o.withAddressApi=r.AddressSelectField.withAddressApi;const i=o,d=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(r.AddressInputField);d.Field=r.AddressInputField},2196:(e,t,s)=>{s.d(t,{A:()=>m});var n=s(55199),r=s(73884),l=s(41381),a=s(330),o=s(83560),i=s(47094),d=s(83136),c=s.n(d),u=s(70579);const p=e=>{let{list:t,groupArgs:s,column:l,gap:d,className:p,outer:m,...h}=e;const x=!(Number.isInteger(l)&&l>0),{ref:f,column:g}=(0,a.useFlexBox)(x?l:{}),_=(e,r)=>(0,u.jsx)(n.Row,{gutter:[d||24,0],className:c()({[i.A["column-not-layout"]]:r}),children:(0,u.jsx)(o.A,{list:t,groupArgs:s,itemRender:(t,s)=>(0,u.jsx)(n.Col,{span:!0===s.block?24:Math.round(24/(e||1)),children:t})})});return(0,r.cloneElement)(m,Object.assign({},h,{className:c()(p,i.A["form-info"])}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:f}),x?g?_(g.col):_(2,!0):_(l)]}))};p.defaultProps={column:2,list:[],outer:(0,u.jsx)(l.default.Part,{})};const m=p},2842:(e,t,s)=>{s.d(t,{default:()=>r.a});s(2885);var n=s(22986),r=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:()=>d,Vl:()=>c,W6:()=>u});var n=s(3382),r=s(73025),l=s(55199),a=s(76995),o=s(47094),i=s(70579);const d=e=>(0,i.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:o.A["form-modal"]}))}),c=()=>{const e=(0,n.useModal)();return t=>e((0,a.A)(Object.assign({},t,{className:o.A["form-modal"]})))},u=e=>{let{classNames:t,...s}=e;const n=c();if(!s.api){const{modalProps:e,...t}=s;return(0,i.jsx)(l.Button,{...t,onClick:()=>{n(e)}})}return(0,i.jsx)(r.A,{...s,modalFunc:n})}},15209:(e,t,s)=>{s.d(t,{A:()=>c});var n=s(55199),r=s(10986),l=s.n(r),a=s(13050),o=s(70579);const i=e=>{let{...t}=e;const[s,r]=l()(t);return(0,o.jsx)(n.Input,{...t,value:s,onChange:e=>{r(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},d=(0,a.createWithRemoteLoader)({modules:["FormInfo@formModule"]})((e=>{let{remoteModules:t,...s}=e;const[n]=t,{hooks:r}=n,{useDecorator:l}=r;return l(Object.assign({placeholder:`\u8bf7\u8f93\u5165${s.label||""}`},s))(i)}));d.field=i;const c=d},18936:(e,t,s)=>{s.d(t,{A:()=>L});const n={"ant-tag":"style_ant-tag__7ct2q__psX7x",overlay:"style_overlay__CXfU5__psX7x",input:"style_input__+OpvV__psX7x","is-disabled":"style_is-disabled__uX4qq__psX7x","input-icon":"style_input-icon__E3NjK__psX7x",large:"style_large__vMozz__psX7x",small:"style_small__ubqQ+__psX7x","input-inner":"style_input-inner__sY-6k__psX7x","input-custom":"style_input-custom__Kxq3n__psX7x","display-content":"style_display-content__qA1jn__psX7x","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__psX7x","selected-tag":"style_selected-tag__BZsMM__psX7x","selected-tag-list":"style_selected-tag-list__As0ho__psX7x","selected-tag-inner":"style_selected-tag-inner__2NH59__psX7x","text-inner":"style_text-inner__Bq2Ji__psX7x",placeholder:"style_placeholder__odotY__psX7x","is-modal":"style_is-modal__4cj8L__psX7x","overlay-content":"style_overlay-content__kpGRn__psX7x"};var r=s(74981);const{context:l,useContext:a,Provider:o,Consumer:i}=(0,r.A)();var d=s(73884),c=s(10986),u=s.n(c),p=s(87558),m=s(33097),h=s.n(m),x=s(55199),f=s(83136),g=s.n(f),_=s(3382),v=s(64671),j=s(79686),y=s.n(j),A=s(41740),b=s.n(A),N=s(74065),S=s.n(N),F=s(17342),w=s(70579);const C=e=>{let{maxLength:t,single:s,setValue:n,value:r,message:l}=e;return e=>n(!s&&Number.isInteger(t)&&t>0&&e.length>t?(l(`\u6700\u591a\u9009\u62e9${t}\u4e2a`),r):e)},P=e=>{let{single:t,value:s,mapping:r,onClose:l}=e;return s&&Array.isArray(s)&&0!==s.length?t?(0,w.jsx)("span",{className:n["text-inner"],children:h()(r.get(s[0]),"label")||s[0]}):s.map((e=>{const t=r.get(e);return(0,w.jsx)(x.Tag,{className:n["display-tag"],closable:!0,onClose:s=>{s.preventDefault(),l(e,t)},children:(0,w.jsx)("span",{className:n["tag-inner"],children:h()(t,"label")||e})},e)})):null},I=(0,d.forwardRef)(((e,t)=>{let{value:s,onChange:r,extra:l,showSelectedTag:a,renderSelectedContent:o,children:i,...c}=e;const[u,p]=(0,d.useState)(s),m=(0,d.useRef)(s);m.current=s;const[h,f]=(0,d.useState)(!1),{message:g}=x.App.useApp(),v=C({maxLength:c.maxLength,single:c.single,setValue:p,value:u,message:g.error});return(0,d.useEffect)((()=>{h&&p(m.current)}),[h]),(0,d.useImperativeHandle)(t,(()=>({modalOpen:()=>{f(!0)},close:()=>{f(!1)}}))),(0,w.jsx)(_.default,{...c,open:h,onConfirm:()=>{r(u)},onClose:()=>{f(!1)},footer:(a||l)&&(0,w.jsxs)(x.Space,{direction:"vertical",className:n["overlay-footer"],children:[l&&(0,w.jsx)("div",{className:n["overlay-footer-extra"],children:l}),a&&o({value:u,setValue:v})]}),children:"function"===typeof i?i({value:u,setValue:v}):i})})),M=(0,d.forwardRef)(((e,t)=>{let{value:s,setValue:r,children:l,renderSelectedContent:a,showSelectedTag:o,placement:i,inputContent:c,single:u,extra:p,overlayWidth:m,wrapClassName:h,...f}=e;const[g,_]=(0,d.useState)(!1);return(0,d.useImperativeHandle)(t,(()=>({close:()=>{_(!1)}})),[]),(0,w.jsx)(x.Popover,{...f,open:g,onOpenChange:_,overlayClassName:n.overlay,arrow:!1,content:(0,w.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:n["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,w.jsx)("div",{className:n["overlay-inner"],children:"function"===typeof l?l({value:s,setValue:e=>{(!u||s[0]!==e[0])&&r(e),u&&_(!1)}}):l}),(o||p)&&(0,w.jsxs)("div",{className:n["overlay-footer"],children:[p&&(0,w.jsx)("div",{className:n["overlay-footer-extra"],children:p}),o&&a({value:s,setValue:r})]})]}),trigger:"click",placement:i,children:(0,w.jsx)("div",{className:n["input-inner"],children:c})})})),T=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:s,...r}=e;const[l,o]=(0,d.useState)(!1),i=(0,d.useRef)(null),c=(0,d.useRef)(null),u=a(),{valueState:p,mapping:m,props:h}=u,[f,_]=p,{single:j,placement:y,getPopupContainer:A,placeholder:b,isPopup:N,disabled:S,showSelectedTag:C,extra:T,inputContent:k}=h,L=(0,d.useRef)(r);L.current=r,(0,d.useEffect)((()=>{t(Object.assign({},L.current,{data:r.data,isComplete:r.isComplete}))}),[r.data,t,r.isComplete]);const O=P({single:j,value:f,mapping:m,onClose:e=>{_((t=>{const s=t.slice(0),n=t.indexOf(e);return n>-1&&s.splice(n,1),s}))}}),E=e=>{let{value:t,setValue:s}=e;return(0,w.jsxs)(x.Space,{className:n["selected-tag"],align:"center",wrap:!0,children:[(0,w.jsxs)("div",{children:["\u5df2\u9009",!h.single&&Number.isInteger(h.maxLength)&&h.maxLength>0?`(${t.length}/${h.maxLength})`:"",":"]}),(0,w.jsx)(F.A,{className:n["selected-tag-list"],children:(0,w.jsx)("div",{className:n["selected-tag-inner"],children:P({value:t,mapping:m,onClose:e=>{s((t=>{const s=t.slice(0),n=t.indexOf(e);return n>-1&&s.splice(n,1),s}))}})})})]})},R=k?k(u):(0,w.jsxs)(x.Space,{className:n["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,w.jsx)("div",{children:O||(0,w.jsx)("span",{className:n.placeholder,children:b})}),l&&f&&f.length>0&&!S?(0,w.jsx)(v.default,{className:g()(n.close,n["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),_([])}}):(0,w.jsx)(v.default,{className:g()(n["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return N?(0,w.jsx)(M,{ref:c,overlayWidth:h.overlayWidth,value:f,setValue:_,single:j,inputContent:R,extra:"function"===typeof T?T({close:()=>c.current.close(),context:u}):T,renderSelectedContent:E,showSelectedTag:C,trigger:"click",placement:y,getPopupContainer:A,children:h.children}):(0,w.jsxs)("div",{className:n["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,w.jsx)(I,{size:h.modalSize,ref:i,single:h.single,maxLength:h.maxLength,disabledScroller:!0,wrapClassName:g()(n.overlay,n["is-modal"],s),title:h.placeholder,value:f,onChange:_,extra:"function"===typeof T?T({close:()=>i.current.close(),context:u}):T,showSelectedTag:C,renderSelectedContent:E,children:h.children}),R]})})),k=e=>{let{api:t,className:s,displayItems:r,wrapClassName:l,...a}=e;const[i,c]=(0,d.useState)(""),[p,m]=(0,d.useState)(new Map(r.map((e=>[e.value,e])))),[f,_]=(0,d.useState)({}),{message:v}=x.App.useApp(),j=e=>{const t=e.filter((e=>p.get(e.value)!==e));0!==t.length&&m((e=>{const s=b()(e);return t.forEach((e=>{s.set(e.value,e)})),s}))},A=e=>((e,t,s)=>"all"!==s?e:(t(e),e.map((e=>e.value))))(a.single?y()(e)?[]:[e]:e||[],j,a.valueType),[N,F]=u()(Object.assign({},a,{onChange:e=>{const t=((e,t,s)=>"all"!==s?e:e.map((e=>t.get(e))))(e,p,a.valueType);a.onChange&&a.onChange(a.single?S()(t):t)}},"value"in a?{value:A(a.value)}:{defaultValue:A(a.defaultValue)})),P=C({maxLength:a.maxLength,single:a.single,setValue:F,value:N,message:v.error});return(0,w.jsx)(o,{value:{mapping:p,searchText:i,setSearchText:c,appendMapping:j,setItems:e=>{f.setData(e),j(h()(a.dataFormat(e),"list",[]))},fetchApi:f,valueState:[N,P],props:a},children:(0,w.jsx)("div",{className:g()(n["input"+(a.inputContent&&"function"===typeof a.inputContent?"-custom":"")],s),children:(0,w.jsx)(T,{...t,wrapClassName:l,loading:null,setFetchApi:_,onRequestSuccess:e=>{j(h()(a.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};k.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},k.useContext=a;const L=k},19343:(e,t,s)=>{s.r(t),s.d(t,{Download:()=>u,FileButton:()=>j,FileLink:()=>y,List:()=>v,OptionButtons:()=>_,default:()=>a(),downloadBlobFile:()=>l.downloadBlobFile,useDownload:()=>l.useDownload,useFileModal:()=>A});s(64674);var n=s(96418),r=s.n(n),l=s(12212),a=s.n(l),o=s(3382),i=s(83136),d=s.n(i),c=s(70579);l.Download.useDownload=l.useDownload,l.Download.downloadBlobFile=l.downloadBlobFile;const u=l.Download;var p=s(26304),m=s.n(p),h=s(74065),x=s.n(h),f=s(96252);const g=e=>{let{apis:t}=e;const s=(0,f.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:m()(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:`${s.name}.${x()(e.filename.split("."))}`}),item:e})))&&n.close()}},children:(0,c.jsx)(f.default,{column:1,list:[(0,c.jsx)(f.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},_=e=>{var t;const s=g({apis:e.apis});return(0,c.jsx)(l.FileListOptionButtons,{...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,...s}=e;return(0,c.jsx)(o.default,{...Object.assign({},s),onClose:t})}})},v=e=>{let{apis:t,...s}=e;const n=g({apis:t});return(0,c.jsx)(l.FileList,{...s,apis:t,onEdit:e=>n(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof s.renderModal?s.renderModal:e=>{let{onCancel:t,...s}=e;return(0,c.jsx)(o.default,{...Object.assign({},s),onClose:t})}})},j=e=>(0,c.jsx)(l.FileButton,{...Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t,...s}=e;return(0,c.jsx)(o.default,{...Object.assign({},s),onClose:t})}}})}),y=e=>{const{className:t,...s}=Object.assign({},e);return(0,c.jsx)(j,{...s,className:d()(t,"btn-no-padding"),type:"link",children:s.children||s.filename||s.originName})},A=e=>{const{title:t,children:s,footer:n}=(0,l.useFileModalProps)(Object.assign({},e)),a=(0,o.useModal)();return r()((()=>a({title:t,children:s,footer:n})))}},21554:(e,t,s)=>{s.r(t),s.d(t,{TooltipFetch:()=>P,TooltipInfoLabel:()=>S,default:()=>b});var n=s(55199),r=s(83136),l=s.n(r);const a="style_tooltip__zHGMI__psX7x",o="style_large__lvmsm__psX7x",i="style_small__nUt0r__psX7x",d="style_popup-content__-rKQN__psX7x",c="style_title__1EQPq__psX7x",u="style_important-info__qTSZY__psX7x",p="style_error__yTTq3__psX7x",m="style_warning__CMJxz__psX7x",h="style_success__AvJVx__psX7x",x="style_sub-title__uD8CH__psX7x",f="style_content__lzgUz__psX7x",g="style_alone__q6q82__psX7x",_="style_fetch-content__tEOEV__psX7x",v="style_fetch-loading__tN-WB__psX7x",j="style_title-info-icon__iY8Q+__psX7x";var y=s(70579);const A=e=>{let{overlayClassName:t,title:s,size:r,subtitle:_,content:v,importantInfo:j,importantInfoType:A,moreInfo:b,...N}=e;return(0,y.jsx)(n.Tooltip,{...N,overlayClassName:l()(t,a,{[i]:"small"===r,[o]:"large"===r}),title:(0,y.jsxs)(n.Space,{direction:"vertical",className:d,children:[s&&(0,y.jsx)("div",{className:c,children:s}),j&&(0,y.jsx)("div",{className:l()(u,{[h]:"success"===A,[m]:"warning"===A,[p]:"error"===A}),children:j}),_&&(0,y.jsx)("div",{className:x,children:_}),v&&(0,y.jsx)("div",{className:l()(f,{[g]:[s,_,j,b].every((e=>!e))}),children:v}),b&&(0,y.jsx)("div",{children:b})]})})};A.defaultProps={};const b=A;var N=s(64671);const S=e=>{let{title:t,tooltipTitle:s}=e;return(0,y.jsxs)("div",{children:[t,s?(0,y.jsx)(b,{...s,children:(0,y.jsx)("span",{children:(0,y.jsx)(N.default,{type:"icon-xinxi-miaobian",className:j,size:14})})}):null]})};var F=s(73884),w=s(87558);const C=e=>{let{api:t,children:s,fetchContent:r,showLoading:a,loadingClassName:o,force:i,...d}=e;const[c,u]=(0,F.useState)(!1),p=(0,w.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:m,isLoading:h,data:x,send:f}=p;return(0,y.jsx)(b,{...Object.assign({},d,m?r(x,p):{}),open:c,onOpenChange:async e=>{!e||m&&!i||await f({type:"refresh"}),u(e)},children:(0,y.jsxs)("span",{className:_,children:[s,a&&h?(0,y.jsx)(n.Spin,{size:"small",className:l()(o,v)}):null]})})};C.defaultProps={showLoading:!0};const P=C},24474:(e,t,s)=>{s.r(t),s.d(t,{DragArea:()=>K,DragAreaOuter:()=>Q,DragButton:()=>V,FileUpload:()=>ae,Title:()=>X,UploadButton:()=>q,UploadTips:()=>Y,default:()=>se});var n=s(73884),r=s(33097),l=s.n(r),a=s(55199);const o="style_file-list-outer__wPhbb__psX7x",i="style_file-list-title__zXM5r__psX7x",d="style_container__P4RaF__psX7x",c="style_file-preview-inner__cvE72__psX7x",u="style_file-preview__M-Asq__psX7x",p="style_drag-area__Q+lm7__psX7x",m="style_upload-drag-close__u5o8W__psX7x",h="style_upload-drag-tips__z7puZ__psX7x",x="style_upload-drag-icon__sGGoS__psX7x",f="style_upload-drag-title__9Afmb__psX7x",g="style_upload-drag-text__o38vS__psX7x",_="style_title-group__8IJkS__psX7x",v="style_upload-btn__Q+Jxn__psX7x",j="style_total-count__z1fyd__psX7x",y="style_file-select__mHqyI__psX7x",A="style_file-name__QkvMn__psX7x",b="style_file-select-info__fOLiM__psX7x",N="style_file-select-option__AbDrD__psX7x";var S=s(75087),F=s.n(S),w=s(74065),C=s.n(w),P=s(57469),I=s.n(P),M=s(64671),T=s(19343),k=s(47458),L=s(83136),O=s.n(L),E=s(70579);const R=e=>{let{currentTab:t,setCurrentTab:s,previewMap:n,previewList:r,getPermission:l,currentPreviewFileId:o,setCurrentPreviewFileId:d,itemApis:c,children:u,maxWidth:p,getPopupContainer:m}=e;return(0,E.jsx)("div",{className:i,children:(0,E.jsxs)(a.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,E.jsx)(a.Col,{children:(0,E.jsxs)(a.Space,{className:O()(_,"core-file-list-title-group"),size:4,children:[(0,E.jsx)(a.Segmented,{value:t,onChange:s,options:[{label:(0,E.jsxs)(a.Space,{size:4,children:[(0,E.jsx)(M.default,{type:"icon-shitu-liebiao"}),(0,E.jsx)(k.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,E.jsxs)(a.Space,{size:4,children:[(0,E.jsx)(M.default,{type:"icon-shitu-yulan"}),(0,E.jsx)(k.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&o&&n.get(o)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(a.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:o,onChange:d,getPopupContainer:m,children:r.map((e=>{let{filename:t,userName:s,date:n,id:r}=e;return(0,E.jsx)(a.Select.Option,{className:N,value:r,children:(0,E.jsxs)(a.Space,{direction:"vertical",children:[(0,E.jsxs)(a.Space,{size:4,align:"start",children:[(0,E.jsx)(F(),{type:C()(t.split(".")),size:14}),(0,E.jsx)(a.Typography.Text,{className:A,ellipsis:!0,style:{"--max-width":`${p}px`},children:t})]}),s||n?(0,E.jsxs)(a.Space,{className:b,size:24,children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(k.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,E.jsxs)("div",{children:[(0,E.jsx)(k.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&I()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},r)}))}),(0,E.jsx)(T.OptionButtons,{hasPreview:!1,getPermission:l,item:n.get(o),apis:c}),(0,E.jsx)("div",{className:j,children:(0,E.jsx)(k.FormattedMessage,{id:"totalCount",values:{count:r.length},moduleName:"FileList"})})]})]})}),(0,E.jsx)(a.Col,{children:u})]})})};R.defaultProps={maxWidth:260};const X=R,D=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var z=s(70720),B=s.n(z);const U=(0,n.createContext)({}),{Provider:$}=U,W=()=>(0,n.useContext)(U);var H=s(12212),G=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:n}=W();return(0,E.jsx)("div",{ref:n,className:v,onClick:()=>{s((e=>!e))},children:(0,E.jsxs)(a.Typography.Text,{className:"ant-btn",children:[(0,E.jsx)(M.default,{type:"icon-tuozhuaishangchuan"}),t||(0,E.jsx)(k.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},q=e=>{let{children:t}=e;const{accept:s,onFileSelected:n}=W();return(0,E.jsx)(H.FileInput,{className:O()(v,"btn-no-padding"),accept:s,multiple:!0,onChange:n,children:e=>{let{children:s,...n}=e;return(0,E.jsxs)(a.Button,{...n,type:"text",children:[(0,E.jsx)(M.default,{type:"icon-tianjia"}),t,s]})}})},Q=e=>{let{title:t,accept:s,fileSize:r,maxLength:l,onFileSelected:i,children:c,className:u,defaultOpen:p=!1}=e;const[m,h]=(0,n.useState)(p),x=(0,n.useRef)(null),f=B()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||h(!1))}));return(0,E.jsx)(k.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,E.jsx)($,{value:{open:m,onOpenChange:h,accept:s,fileSize:r,maxLength:l,onFileSelected:i,getDragButtonEl:e=>{x.current=e}},children:(0,E.jsxs)(a.Space,{className:o,direction:"vertical",children:[t,(0,E.jsx)("div",{className:O()(d,u),ref:f,onDragEnter:()=>{h(!0)},children:c})]})})})};Q.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const Y=e=>{let{icon:t,title:s,renderTips:n}=e;const{accept:r,fileSize:l,maxLength:a}=W(),o=n((0,k.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:r.map((e=>e.replace(/^\./,""))).join("\u3001"),size:l}),{fileSize:l,maxLength:a,accept:r});return(0,E.jsxs)("div",{className:O()(h,"upload-drag-tips"),children:[(0,E.jsx)("div",{className:x,children:t||(0,E.jsx)(M.default,{type:"icon-shangchuan",size:64})}),(0,E.jsx)("div",{className:f,children:s||(0,E.jsx)(k.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,E.jsx)("div",{className:g,children:o})]})};Y.defaultProps={renderTips:e=>e};const J=e=>{let{children:t,className:s}=e;const{open:n,accept:r,onOpenChange:l,onFileSelected:o}=W();return n?(0,E.jsxs)("div",{className:O()(p,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;l(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,G.A)(e,r)));o(t)},onDragEnd:()=>{l(!1)},children:[(0,E.jsx)(a.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,E.jsx)(M.default,{type:"icon-close-bold"}),onClick:()=>{l(!1)}}),t]}):null};J.defaultProps={children:(0,E.jsx)(Y,{})};const K=J;var Z=s(50196),ee=s(63908);const te=e=>{var t,s;let{className:r,maxLength:o,list:i,setList:d,infoItemRenders:p,defaultTab:m,defaultPreviewFileId:h,apis:x,getPermission:f,titleExtra:g,fileSize:_,accept:v,getPopupContainer:j}=e;const{apis:y}=(0,ee.usePreset)(),A=Object.assign({},y,x),b=(i||[]).map((e=>Object.assign({},{id:e.ossId},e))),{fileList:N,onFileSelected:S}=(0,H.useFileUpload)({maxLength:o,multiple:!0,value:b,onChange:d,concurrentCount:1,onAdd:()=>{w("list")},onSave:async function(e){if("function"===typeof A.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 r=await A.onSave(e,...s);return Object.assign({},{id:null===r||void 0===r?void 0:r.ossId},r)}return l()(e,"data")||{}},onUpload:A.onUpload||A.ossUpload}),[F,w]=(0,n.useState)(m),{formatMessage:C}=(0,k.useIntl)({moduleName:"FileList"}),{message:P}=a.App.useApp(),I=(0,n.useMemo)((()=>new Map(b.map((e=>[e.id,e])))),[b]),[M,L]=(0,n.useState)(h||l()(b,"[0].id",null));(0,n.useEffect)((()=>{M&&I.get(M)||L(l()(b,"[0].id",null))}),[b,I,M]);const O={...A,onPreview:e=>{L(e.id),w("preview")},onDelete:async e=>{A.onDelete&&!1===await A.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})),P.success(C({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:s}=e;const n=A.onEdit&&await A.onEdit({formData:t,item:s});return!1!==n&&(d((e=>{const n=e.slice(0),r=e.findIndex((e=>{let{id:t}=e;return t===s.id}));return r>-1&&n.splice(r,1,Object.assign({},s,{filename:t.name})),n})),P.success(C({id:"successEditFileName"},{name:s.filename}))),n}},R="function"===typeof g?g({currentPreviewFileId:M,currentTab:F}):g;return(0,E.jsx)("div",{className:r,children:(0,E.jsxs)(Q,{title:(0,E.jsx)(X,{currentTab:F,setCurrentTab:w,previewMap:I,previewList:b,getPermission:f,currentPreviewFileId:M,setCurrentPreviewFileId:L,itemApis:O,getPopupContainer:j,children:(0,E.jsxs)(a.Space,{split:(0,E.jsx)(a.Divider,{type:"vertical"}),children:[R,f("add",{})?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(V,{children:(0,E.jsx)(k.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,E.jsx)(q,{children:(0,E.jsx)(k.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:_,maxLength:o,onFileSelected:S,accept:v,defaultOpen:0===b.length,children:["list"===F?(0,E.jsx)(T.List,{dataSource:[...b,...N],getPermission:f,apis:O,infoItemRenders:p}):null,"preview"===F?M?(0,E.jsx)("div",{className:c,children:(0,E.jsx)(Z.default,{className:u,src:null===(t=I.get(M))||void 0===t?void 0:t.src,id:M,apis:A,filename:null===(s=I.get(M))||void 0===s?void 0:s.filename})}):(0,E.jsx)(a.Empty,{image:a.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,E.jsx)(K,{})]})})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,E.jsx)(k.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,E.jsx)(te,{...e})});var ne=s(10986),re=s.n(ne);const le=e=>{let{maxLength:t,apis:s,getPermission:n,fileSize:r,accept:o,...i}=e;const{apis:d}=(0,ee.usePreset)(),c=Object.assign({},d,s),[u,p]=re()(i,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:m,onFileSelected:h}=(0,H.useFileUpload)({maxLength:t,multiple:!0,value:u,onChange:p,concurrentCount:1,onSave:async function(e){if("function"===typeof c.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 r=await c.onSave(e,...s);return Object.assign({},{id:null===r||void 0===r?void 0:r.ossId},r)}return l()(e,"data")||{}},onUpload:c.ossUpload});return(0,E.jsxs)(Q,{title:(0,E.jsxs)(a.Row,{children:[(0,E.jsx)(a.Col,{flex:1}),(0,E.jsx)(a.Col,{children:(0,E.jsxs)(a.Space,{split:(0,E.jsx)(a.Divider,{type:"vertical"}),children:[(0,E.jsx)(V,{}),(0,E.jsx)(q,{children:"\u4e0a\u4f20"})]})})]}),fileSize:r,maxLength:t,onFileSelected:h,accept:o,children:[(0,E.jsx)(T.List,{dataSource:[...m,...u],getPermission:n,apis:c}),(0,E.jsx)(K,{})]})};le.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const ae=le},30096:(e,t,s)=>{s.d(t,{Ay:()=>c});var n=s(98434),r=s(43856);const{useOnChange:l}=n.hooks,a=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=a(r.UserField),i=a(r.TableField),d=a(r.AdvancedSelectField);d.createdList=e=>{let{renderList:t,defaultProps:s}=e;return a((0,r.createListField)({renderList:t,defaultProps:s}))},d.User=o,d.Table=i;const c=d},30891:(e,t,s)=>{s.d(t,{A:()=>r});var n=s(98434);const r=e=>{let{children:t}=e;const{openApi:s,formData:r}=(0,n.useFormContext)();return t({...s,formData:r})}},34643:(e,t,s)=>{s.d(t,{Ay:()=>u,Pg:()=>d,eM:()=>c});var n=s(98434),r=s(43856),l=s(35063);const{useOnChange:a}=n.hooks,o=e=>{const t=t=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(r.SuperSelectField),d=o(l.$9),c=o(r.SuperSelectTableListField),u=i},35774:(e,t,s)=>{s.d(t,{A:()=>a});var n=s(98434),r=s(81014),l=s(70579);const a=e=>{let{onClick:t,...s}=e;const a=(0,n.useFormContext)();return(0,l.jsx)(r.default,{...s,onClick:e=>t(a,e)})}},36972:(e,t,s)=>{s.d(t,{A:()=>I});var n=s(73884),r=s(87558),l=s(98434),a=s(78491),o=s.n(a),i=s(55199);const d="style_salary__sUOtT__psX7x",c="style_salary-type__Sl1LC__psX7x",u="style_input-number__eoEZr__psX7x",p="style_full__NPqJm__psX7x",m="style_input-group__toLB7__psX7x",h="style_input-group-no-mb__C4nzh__psX7x";var x=s(47458),f=s(55431),g=s(48731),_=s(10986),v=s.n(_),j=s(21079),y=s(70579);const A=(0,r.withFetch)((e=>{let{data:t,...s}=e;return(0,y.jsx)(i.Select,{...s,options:t})})),{useDecorator:b,useUIDecorator:N}=l.hooks,S=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},F=e=>{let{children:t,isError:s}=e;return(0,y.jsx)("div",{style:{marginBottom:0},className:"react-form__field "+(s?"is-error":""),children:(0,y.jsx)("div",{className:"react-form__field-main",children:(0,y.jsx)("div",{className:"react-form__field-input",children:(0,n.cloneElement)(t,{className:"react-form__field-component"})})})})},w=e=>{let{getPopupContainer:t,onBlur:s,api:n,isRange:r=!0,placeholder:l,disabled:a,showMonth:f,remindUnit:_,req:b,...N}=e;const[w,C]=v()(N),{formatMessage:P}=(0,x.useIntl)({moduleName:"FormInfo"}),I=P({id:"defaultSelectPlaceholder"},{label:""}),M=P({id:"defaultInputPlaceholder"},{label:""}),T=[6].indexOf((0,j.get)(w,"type"))>-1,k=1===(0,j.get)(w,"type"),L=7===(0,j.get)(w,"type"),O=e=>{if(e)return T?e/1e4:e},E=o()(s||(()=>{}));return(0,y.jsx)("div",{ref:E,className:d,children:(0,y.jsxs)(i.Row,{wrap:!1,gutter:10,children:[(0,y.jsx)(i.Col,{children:(0,y.jsx)(A,{className:c,...n,value:(0,j.get)(w,"type"),onChange:e=>{C&&C(Object.assign({},k?{}:w,{type:e,min:"",max:""}))},placeholder:l||I,getPopupContainer:t,disabled:a})}),k?null:(0,y.jsxs)(i.Col,{flex:1,children:[r&&(0,y.jsxs)(i.Row,{className:_&&[5,6].includes(null===w||void 0===w?void 0:w.type)?m:h,wrap:!1,children:[(0,y.jsx)(i.Col,{flex:1,children:(0,y.jsx)(F,{isError:!(0,j.get)(w,"min")&&b,children:(0,y.jsx)(i.InputNumber,{disabled:a,placeholder:M,formatter:S,value:O((0,j.get)(w,"min")),style:{textAlign:"center"},onChange:e=>{C(Object.assign({},w,{min:T?1e4*e:e}))},description:_&&[5,6].includes(null===w||void 0===w?void 0:w.type)?(0,y.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,y.jsx)(g.default,{name:null===w||void 0===w?void 0:w.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",T?P({id:"thousand"}):L?"":P({id:"yuan"})]}):null})})}),(0,y.jsx)(i.Col,{children:(0,y.jsx)(i.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,y.jsx)(i.Col,{flex:1,children:(0,y.jsx)(F,{isError:!(0,j.get)(w,"max")&&b,children:(0,y.jsx)(i.InputNumber,{disabled:a,placeholder:M,formatter:S,value:O((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:T?P({id:"thousand"}):L?"":P({id:"yuan"}),onChange:e=>{C(Object.assign({},w,{max:T?1e4*e:e}))}})})}),5===(0,j.get)(w,"type")&&f&&(0,y.jsx)(i.Col,{children:(0,y.jsxs)("span",{className:(0,j.get)(w,"max")&&(0,j.get)(w,"min")&&!(0,j.get)(w,"month")&&b?"error":"",children:[(0,y.jsx)("span",{className:u,children:"X"}),(0,y.jsx)(i.InputNumber,{min:12,disabled:a,value:(0,j.get)(w,"month"),onChange:e=>{C(Object.assign({},w,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!r&&!L&&(0,y.jsx)(i.InputNumber,{disabled:a,min:0,max:1e8,placeholder:M,className:p,formatter:S,value:O((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:T?P({id:"thousand"}):L?"":P({id:"yuan"}),onChange:e=>{C(Object.assign({},w,{max:T?1e4*e:e}))}}),!r&&L&&(0,y.jsx)(i.Input,{disabled:a,placeholder:M,className:p,onChange:e=>{C(Object.assign({},w,{max:e.target.value}))},value:(0,j.get)(w,"max"),style:{textAlign:"center"}})]})]})})},C=e=>(0,y.jsx)(x.IntlProvider,{moduleName:"FormInfo",importMessages:f.A,children:(0,y.jsx)(w,{...e})});C.defaultProps={api:{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"}]},defaultValue:{type:5,min:"",max:"",month:12}};const P=e=>{var t;return b({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(C)};P.Field=C;const I=P},41381:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r.a});s(55664);var n=s(47819),r=s.n(n),l={};for(const a in n)"default"!==a&&(l[a]=()=>n[a]);s.d(t,l)},45053:(e,t,s)=>{s.d(t,{A:()=>m});var n=s(98434),r=s(55199),l=s(73884),a=s(83136),o=s.n(a),i=s(70720),d=s.n(i),c=s(47094),u=s(70579);const p=e=>{let{name:t,groupName:s,overlayClassName:a,errorRender:i,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:s,groupIndex:r}=e;const{emitter:a,formState:o}=(0,n.useFormContext)(),i=(0,l.useRef)({name:t,groupName:s,groupIndex:r});i.current={name:t,groupName:s,groupIndex:r};const d=(0,l.useRef)(o);d.current=o;const[c,u]=(0,l.useState)(null);return(0,l.useEffect)((()=>{const e=a.addListener("form-field-validate-complete",(e=>{let{id:t,validate:s}=e;const r=d.current[t];if(!r)return;const l=i.current;r.name!==l.name||l.groupName&&(r.groupName!==l.groupName||r.groupIndex!==l.groupIndex)||u(2===s.status?Object.assign({},s,{label:r.label,errMsg:n.util.compileErrMsg(s.msg,r.label)}):null)}));return()=>{e&&e.remove()}}),[a]),c})({name:t,groupName:s,groupIndex:p}),[x,f]=(0,l.useState)(!1),g=h&&x&&i(Object.assign({},h,{closeHover:()=>f(!1)})),_=(0,l.useRef)(null),v=(0,l.useRef)(null);d()((()=>{f(!1)})).current={contains:e=>_.current.contains(e)||v.current&&v.current.contains(e)};const[j,y]=(0,l.useState)(0);return(0,l.useLayoutEffect)((()=>{const e=()=>{const e=_.current.querySelector(".react-form__field-component");e&&y(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)(r.Popover,{open:!!g,overlayClassName:o()(a,c.A["error-tip-overlay"]),content:g&&(0,u.jsx)("div",{ref:v,style:{width:j},className:o()(c.A["error-tip-overlay-content"]),children:g}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:_,onMouseEnter:()=>{f(!0)},children:m})})};p.defaultProps={errorRender:()=>null};const m=p},46237:(e,t,s)=>{s.d(t,{Ay:()=>i,oc:()=>o});var n=s(73884);const r=(0,n.createContext)([]),{Provider:l,Consumer:a}=r,o=()=>(0,n.useContext)(r),i=l},46732:(e,t,s)=>{s.d(t,{A:()=>c,K:()=>d});var n=s(75363),r=s(73884),l=s(98434),a=s(47094),o=s(70579);const i=(0,r.createContext)(""),{Provider:d}=i,c=e=>{let{name:t}=e;const s=(0,r.useContext)(i),d=(0,l.useGroup)();return s&&(0,o.jsx)(n.default,{className:a.A["helper-guide-field"],name:s+"-"+(d.name?d.name+"-":"")+t})}},47094:(e,t,s)=>{s.d(t,{A:()=>n});const n={"form-outer":"style_form-outer__IWUs0__psX7x","form-drawer":"style_form-drawer__uYDXS__psX7x","table-list":"style_table-list__6lp-A__psX7x","list-item":"style_list-item__hVzQa__psX7x","table-list-inner":"style_table-list-inner__uc8DK__psX7x","table-list-field":"style_table-list-field__JSJfB__psX7x","table-list-header":"style_table-list-header__KXvKa__psX7x","is-req":"style_is-req__LfXQf__psX7x","table-list-extra":"style_table-list-extra__faYTK__psX7x","list-btn":"style_list-btn__WKYkm__psX7x","form-info":"style_form-info__B8bAP__psX7x","list-part":"style_list-part__Ld0GA__psX7x","is-important":"style_is-important__vaBk1__psX7x","list-item-part":"style_list-item-part__MzKP7__psX7x","money-input":"style_money-input__J86Pb__psX7x","money-description":"style_money-description__Gz3p7__psX7x","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__psX7x","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__psX7x","helper-guide-field":"style_helper-guide-field__Wke3w__psX7x","error-tip-overlay":"style_error-tip-overlay__aNCGc__psX7x","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__psX7x","column-not-layout":"style_column-not-layout__+SXC+__psX7x","mult-field-item":"style_mult-field-item__eS0nJ__psX7x","react-form__field-label":"style_react-form__field-label__2U91E__psX7x","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__psX7x","form-step-section":"style_form-step-section__RvkHy__psX7x"}},47338:(e,t,s)=>{s.r(t),s.d(t,{ConfirmButton:()=>n.ConfirmButton,ConfirmLink:()=>n.ConfirmLink,ConfirmText:()=>n.ConfirmText,default:()=>r,withConfirm:()=>n.withConfirm});s(9056);var n=s(97973);const r=n.ConfirmButton},48221:(e,t,s)=>{s.d(t,{Ay:()=>i,WJ:()=>c,Xy:()=>d});var n=s(25963),r=s(73025),l=s(47094),a=s(76995),o=s(70579);const i=e=>(0,o.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:l.A["form-drawer"]}))}),d=()=>{const e=(0,n.useDrawer)();return t=>e((0,a.A)(Object.assign({},t,{className:l.A["form-drawer"]})))},c=e=>{const t=d();return(0,o.jsx)(r.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(12212)},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),r=s(98434);const{useOnChange:l}=r.hooks,a=e=>l(Object.assign({},{},e))(n.A);a.Field=n.A;const o=a},64261:(e,t,s)=>{s.d(t,{A:()=>h});var n=s(98434),r=s(57469),l=s.n(r),a=s(34677),o=s.n(a),i=s(33097),d=s.n(i),c=(s(17448),s(2842)),u=s(46732),p=s(13050),m=s(70579);const h=async(e,t)=>{const{locale:s}=Object.assign({},t);n.interceptors.input.use("photo-string",(e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e})),n.interceptors.output.use("photo-string",(e=>{var t,s;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(s=t.split("?"))||void 0===s?void 0:s[0])||e.id:e})),n.interceptors.input.use("to-array",(e=>Array.isArray(e)?e[0]:e)),n.interceptors.output.use("to-array",(e=>[e])),n.interceptors.input.use("array-single",(e=>e?[e]:[])),n.interceptors.output.use("array-single",(e=>e?e[0]:null)),n.interceptors.input.use("boolean-number",(e=>1===e||"1"===e)),n.interceptors.output.use("boolean-number",(e=>e?1:0)),n.interceptors.input.use("un-boolean",(e=>!e)),n.interceptors.output.use("un-boolean",(e=>!e)),n.interceptors.output.use("object-output-value",(e=>e?e.value||e.id:e)),n.interceptors.input.use("date-string",(e=>e?l()(e):null)),n.interceptors.output.use("date-string",(e=>e?new Date(e.valueOf()).toISOString():"")),n.interceptors.input.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(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})),n.interceptors.output.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t})),n.interceptors.output.use("file-format",(e=>Array.isArray(e)?e.map((e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename}))):[])),n.interceptors.input.use("file-format",(e=>Array.isArray(e)?e.map((e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename}))):[]));const{default:r}=await(0,p.loadModule)("components-iconfont:CountyFlag@load"),a=await r(),i=new Map(a.map((e=>{let{ab:t,country_code:s}=e;return[t,s]}))),h=new Map(a.map((e=>{let{ab:t,country_code:s}=e;return[s,t]})));n.interceptors.output.use("phone-number-string",(e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?`+${i.get(e.code)} ${e.value.replace(/\s+/g,"")}`:"")),n.interceptors.input.use("phone-number-string",(e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:h.get(Number(t[1])),value:t[2]}:{code:h.get(86),value:e}}));const x=n.RULES.REQ,f=n.RULES.LEN,g=(e,t)=>{const n={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},EMAIL:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684%s","en-US":"Please enter a valid %s"},LENGTH_EQUAL:{"zh-CN":`%s\u5fc5\u987b\u7b49\u4e8e${(t=Object.assign({},t)).end}`,"en-US":`%s must be equal to ${t.end}`},LENGTH_MORE:{"zh-CN":`%s\u5fc5\u987b\u5927\u4e8e${t.start}`,"en-US":`%s must be greater than ${t.start}`},LENGTH_LESS:{"zh-CN":`%s\u5fc5\u987b\u5c0f\u4e8e${t.end}`,"en-US":`%s must be less than ${t.end}`}},r=d()(n,`${e}.${s}`);return r||d()(n,`${e}.zh-CN`)};(0,n.preset)(o()({},{type:"inner",rules:{REQ:function(){return Object.assign({},x(...arguments),{errMsg:g("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];const[n,r,l]=t;let a="";return l===r&&n.length!==Number(l)&&(a="LENGTH_EQUAL"),n.length<r&&(a="LENGTH_MORE"),l&&n.length>l&&(a="LENGTH_LESS"),Object.assign({},f(...t),{errMsg:g(a,{start:r,end:l})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:g("EMAIL")}},PHONE_NUMBER_INPUT:c.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,s)=>s===t&&e.length!==Number(s)?{result:!1,errMsg:g("LENGTH_EQUAL",{start:t,end:s})}:e.length<t?{result:!1,errMsg:g("LENGTH_MORE",{start:t,end:s})}:s&&e.length>s?{result:!1,errMsg:g("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,m.jsx)(u.A,{...e})}},"function"===typeof e?e({interceptors:n.interceptors,RULES:n.RULES}):e))}},72297:(e,t,s)=>{s.d(t,{A:()=>V,E:()=>q});var n=s(98434),r=s(30096),l=s(34643),a=s(1904),o=s(83230),i=s(81026),d=s(78756),c=s(92328),u=s(2842),p=s(55199),m=s(70579);const{useOnChange:h,useCheckedToValue:x}=n.hooks,{withChecked:f}=n.hoc,g=f((e=>{let{checked:t,children:s=null,...n}=e;return(0,m.jsxs)(p.Space,{children:[(0,m.jsx)(p.Switch,{checked:t,...n}),"function"===typeof s?s({checked:t}):s]})})),_=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=x(e);return h(t)(g)};_.Field=p.Switch;const v=_;var j=s(89099),y=s(96339),A=s(36972),b=s(15209),N=s(74529),S=s.n(N),F=s(73884),w=s(47458),C=s(33097),P=s.n(C),I=s(21079),M=s(46237),T=s(56259),k=s(21554),L=s(64671),O=s(83136),E=s.n(O),R=s(47094);const X=e=>t=>{const s=S()(...e)((e=>{let{forwardedRef:s,label:n,placeholder:r,...l}=e;return(0,m.jsx)(t,{...l,label:n,placeholder:r,labelRender:()=>l.tips?(0,m.jsxs)(p.Space,{children:[n,(0,m.jsx)(k.default,{content:l.tips,children:(0,m.jsx)("span",{className:E()(R.A["field-tips"],{[R.A["label-hidden"]]:l.labelHidden}),children:(0,m.jsx)(L.default,{type:"icon-xinxi-miaobian"})})})]}):n,ref:s})})),n=(0,F.forwardRef)(((e,t)=>(0,m.jsx)(s,{...e,forwardedRef:t})));return Object.keys(t).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((e=>{n[e]=t[e]})),n},D=e=>t=>{let{placeholder:s,label:n,...r}=t;return(0,m.jsx)(w.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,m.jsx)(e,{...r,label:n,placeholder:s||t})})},z=e=>t=>{let{placeholder:s,label:n,...r}=t;return(0,m.jsx)(w.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,m.jsx)(e,{...r,label:n,placeholder:s||t})})},B=e=>t=>{const s=(0,n.useGroup)(),r=P()(s,"name"),l=(0,I.get)(s,"index"),a=(0,M.oc)();return a&&Array.isArray(a)&&a.length>0?a.map((s=>{if("string"===typeof s)return(0,F.createElement)(e,{...t,key:s});const{name:n,label:a,options:o}=s,i=P()(o,"ignore",[]),d=P()(o,"disabled",[]),c=P()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==r)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==l);if(i.length>0&&i.find(u))return null;if(c.length>0&&!c.find(u))return null;let p=Object.assign({},t,{name:P()(o,"nameTransform",((e,t)=>`${e}${t}`))(t.name,n),label:P()(o,"labelTransform",((e,t)=>e&&`${e}${t}`))(t.label,a)});return d.length>0&&d.find(u)&&(p.disabled=!0,p.rule=""),(0,F.createElement)(e,{...p,key:n})})):(0,m.jsx)(e,{...t})},U=X([B,D])(n.Input),$=X([B,D])(n.InputNumber);U.Password=X([B,D])(n.Input.Password);const W=X([B,z])(n.DatePicker);W.MonthPicker=X([B,z])(n.DatePicker.MonthPicker),W.RangePicker=X([B,z])(n.DatePicker.RangePicker),W.WeekPicker=X([B,z])(n.DatePicker.WeekPicker);const H=X([B,z])(n.TimePicker);H.RangePicker=X([B,z])(n.TimePicker.RangePicker);const G=X([B])((e=>{let{placeholder:t,label:s,soFarText:r,...l}=e;const{formatMessage:a}=(0,w.useIntl)({moduleName:"FormInfo"});return(0,m.jsx)(n.DatePickerToday,{...l,label:s,placeholder:[a({id:"startDate"}),a({id:"endDate"})],soFarText:r||a({id:"soFarText"})})})),V={Input:U,Checkbox:n.Checkbox,Password:U.Password,InputNumber:$,DatePicker:W,MonthPicker:W.MonthPicker,WeekPicker:W.WeekPicker,DateRangePicker:W.RangePicker,TimeRangePicker:H.RangePicker,TimePicker:H,DatePickerToday:G,RadioGroup:X([B])(n.RadioGroup),CheckboxGroup:X([B])(n.CheckboxGroup),Rate:X([B])(n.Rate),Switch:X([B])(v),Slider:X([B])(n.Slider),SalaryInput:X([B,D])(A.A),TypeDateRangePicker:X([B])(T.A),MoneyInput:X([B,D])(c.A),PhoneNumber:X([B,D])(u.default),Upload:X([B])(j.A),Avatar:X([B])(y.A),FunctionSelect:X([B,z])(i.A),IndustrySelect:X([B,z])(d.A),Cascader:X([B,z])(o.A),AddressSelect:X([B,z])(a.A),AddressInput:X([B,z])(a.N),TreeSelect:X([B,z])(n.TreeSelect),ReactInputNumber:X([B,D])(n.InputNumber),InputUpperCase:X([B,D])(b.A),Select:X([B,z])(n.Select),TextArea:X([B,D])(n.TextArea),AdvancedSelect:X([B,z])(r.Ay),SuperSelect:X([B,z])(l.Ay),SuperSelectTableList:X([B,z])(l.eM),SuperSelectUser:X([B,z])(l.Pg)},q={createWithFieldDecorator:X,withInputDefaultPlaceholder:D,withSelectDefaultPlaceholder:z,withLang:B}},76995:(e,t,s)=>{s.d(t,{A:()=>p});var n=s(55431),r=s(98434),l=s(47458),a=s(83799),o=s(83136),i=s.n(o),d=s(47094),c=s(70579);const u="FormInfo",p=e=>{let{className:t,withDecorator:s,footerButtons:o,formProps:p,cancelText:m,saveText:h,autoClose:x,...f}=e;return{...f,footerButtons:o||[{children:(0,c.jsx)(l.IntlProvider,{importMessages:n.A,moduleName:u,children:m||(0,c.jsx)(l.FormattedMessage,{id:"Cancel",moduleName:u})}),ButtonComponent:r.CancelButton},{type:"primary",children:(0,c.jsx)(l.IntlProvider,{importMessages:n.A,moduleName:u,children:h||(0,c.jsx)(l.FormattedMessage,{id:"Save",moduleName:u})}),ButtonComponent:r.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const r=t=>{const{onSubmit:s,...r}="function"===typeof p?p(t):p;return(0,c.jsx)(a.lV,{...r,onSubmit:async function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];!1!==(s&&await s(e,Object.assign({},t),...r))&&x&&t.close()},children:(0,c.jsx)(l.IntlProvider,{importMessages:n.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof s?s(r,t):r(t)},className:i()(t,d.A["form-outer"])}}},78756:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(43856),r=s(98434);const{useOnChange:l}=r.hooks,a=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);a.Field=n.IndustrySelectField,a.Enum=n.IndustrySelectField.Enum;const o=a},81026:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(43856),r=s(98434);const{useOnChange:l}=r.hooks,a=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);a.Field=n.FunctionSelectField,a.Enum=n.FunctionSelectField.Enum;const o=a},83230:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(98434),r=s(43856);const{useOnChange:l}=n.hooks,a=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.CascaderField);a.Field=r.CascaderField,a.createTreeUtils=r.createTreeUtils;const o=a},83560:(e,t,s)=>{s.d(t,{A:()=>h});var n=s(55199),r=s(98434),l=s(63361),a=s(73884),o=s(10486),i=s(21554),d=s(64671),c=s(83136),u=s.n(c),p=s(47094),m=s(70579);const h=e=>{let{list:t,groupArgs:s,itemRender:c}=e;const h=(0,r.useFormContext)(),x=Object.assign({},h,s?{groupArgs:s}:{}),f=(0,a.useRef)(null),[g,_]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{_(!0)}),[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{ref:f,style:{display:"none"}}),t.filter((e=>"function"===typeof e.props.display?e.props.display(x):!1!==e.props.display)).map(((e,r)=>{const h=e.props.name+r||s&&s[0]+r||r,_={key:h,list:t,props:e.props},v=Object.assign({},e.props),j=e.type;["display","block","hidden","setExtraProps","isBlock","featureId"].forEach((t=>{e.props.hasOwnProperty(t)&&(_[t]=e.props[t]),delete v[t]})),_.hasOwnProperty("isBlock")&&(v.block=_.isBlock);const y=(0,m.jsx)(j,{...Object.assign({},v,"function"===typeof _.setExtraProps?_.setExtraProps({props:v,contextApi:x}):{}),onChange:function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return e.props.onChange&&e.props.onChange(...s,x)}}),A=_.hidden?g&&(0,o.createPortal)(y,f.current):c(_.tips?(0,m.jsxs)(n.Row,{gutter:8,align:"top",children:[(0,m.jsx)(n.Col,{flex:1,children:y}),(0,m.jsx)(n.Col,{children:(0,m.jsx)(i.default,{content:_.tips,children:(0,m.jsx)("span",{className:u()(p.A["field-tips"],{[p.A["label-hidden"]]:v.labelHidden}),children:(0,m.jsx)(d.default,{type:"icon-xinxi-miaobian"})})})})]}):y,_);return(0,m.jsx)(a.Fragment,{children:_.hasOwnProperty("featureId")?(0,m.jsx)(l.default,{id:_.featureId,children:A},h):A},h)}))]})}},83799:(e,t,s)=>{s.d(t,{NI:()=>R,TQ:()=>u.A,JL:()=>k,eu:()=>_.A,vx:()=>p.A,lr:()=>G,s3:()=>V,lV:()=>r.A,d4:()=>m.A,ZN:()=>h.A,pd:()=>D,YI:()=>$,h2:()=>X,F0:()=>x.A,go:()=>f.default,tt:()=>n.Rate,lu:()=>v.A,l6:()=>U,Ap:()=>n.Slider,wD:()=>L,eM:()=>O,Pg:()=>E,dO:()=>n.Switch,EY:()=>P,fs:()=>z,AG:()=>H,f7:()=>W,w5:()=>y.A,_O:()=>g.A,nk:()=>q});var n=s(98434),r=s(85696),l=s(47458),a=s(73884),o=s(30891),i=s(47094),d=s(30096),c=s(34643),u=s(1904),p=s(83230),m=s(81026),h=s(78756),x=s(92328),f=s(2842),g=s(89099),_=s(96339),v=s(36972),j=s(15209),y=s(56259),A=s(55199),b=s(10986),N=s.n(b),S=s(70579);const{useDecorator:F}=n.hooks,w=e=>{let{children:t,...s}=e;const[n]=N()(s);return(0,S.jsxs)(A.Typography.Text,{...s,children:[(0,S.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,S.jsx)(A.Input,{value:n})}),t||n]})},C=e=>F(e)(w);C.Field=w;const P=C;var I=s(45053);const M=e=>{const t=(0,a.forwardRef)(((t,s)=>{let{placeholder:n,label:r,...a}=t;return(0,S.jsx)(l.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,S.jsx)(e,{...a,ref:s,label:r,placeholder:n||t})})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((s=>{t[s]=e[s]})),t},T=e=>{const t=(0,a.forwardRef)(((t,s)=>{let{placeholder:n,label:r,...a}=t;return(0,S.jsx)(l.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,S.jsx)(e,{...a,ref:s,label:r,placeholder:n||t})})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((s=>{t[s]=e[s]})),t},k=T(d.Ay),L=T(c.Ay),O=T(c.eM),E=T(c.Pg),R=T(u.N),X=M(j.A),D=M(n.Input);D.Password=M(n.Input.Password);const z=(B=n.TextArea,e=>{let{placeholder:t,label:s,className:n,...r}=e;return(0,S.jsx)(l.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:s},children:e=>(0,S.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,S.jsx)(B,{...r,label:s,placeholder:t||e})})})});var B;const U=T(n.Select),$=M(n.InputNumber),W=T(n.TreeSelect),H=T(n.TimePicker);H.RangePicker=T(n.TimePicker.RangePicker);const G=T(n.DatePicker);G.MonthPicker=T(n.DatePicker.MonthPicker),G.RangePicker=T(n.DatePicker.RangePicker),G.WeekPicker=T(n.DatePicker.WeekPicker);const V=e=>{let{placeholder:t,label:s,soFarText:r,...a}=e;const{formatMessage:o}=(0,l.useIntl)({moduleName:"FormInfo"});return(0,S.jsx)(n.DatePickerToday,{...a,label:s,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:r||o({id:"soFarText"})})},q=Object.assign({},n,{Input:D,InputUpperCase:X,TextArea:z,Select:U,InputNumber:$,TreeSelect:W,TimePicker:H,DatePicker:G,DatePickerToday:V,Form:r.A,FormItem:o.A,AdvancedSelect:k,SuperSelect:L,SuperSelectTableList:O,SuperSelectUser:E,AddressSelect:u.A,AddressInput:R,MoneyInput:x.A,PhoneNumber:f.default,Cascader:p.A,FunctionSelect:m.A,IndustrySelect:h.A,TypeDateRangePicker:y.A,Upload:g.A,Avatar:_.A,SalaryInput:v.A,Text:P,Rate:n.Rate,Switch:n.Switch,Slider:n.Slider,ErrorTip:I.A})},85696:(e,t,s)=>{s.d(t,{A:()=>v});var n=s(73884),r=s(63908),l=s(33097),a=s.n(l),o=s(64261),i=s(47458),d=s(55431),c=s(46237),u=s(41381),p=s(46732),m=s(98434),h=s(83136),x=s.n(h),f=s(47094),g=s(70579);const _=e=>{let{children:t}=e;const[s,l]=(0,n.useState)(!1),i=(0,r.usePreset)(),d=a()(i,"formInfo",{}),c=a()(i,"locale");return(0,n.useEffect)((()=>{Promise.resolve((0,o.A)(d,{locale:c})).then((()=>{l(!0)}))}),[d,c]),s?t:null},v=(0,n.forwardRef)(((e,t)=>{let{className:s,helperGuideName:n,children:r,lang:l,...a}=e;return(0,g.jsx)(i.IntlProvider,{importMessages:d.A,moduleName:"FormInfo",children:(0,g.jsx)(c.Ay,{value:l,children:(0,g.jsx)(p.K,{value:n,children:(0,g.jsx)(_,{children:(0,g.jsx)(m.FormAntd,{...a,ref:t,className:x()(s,f.A["form-outer"]),children:(0,g.jsx)(u.default,{children:r})})})})})})}))},85846:(e,t,s)=>{s.d(t,{A:()=>v});var n=s(73884),r=s(55199),l=s(47338),a=s(64671),o=s(41381),i=s(98434),d=s(2196),c=s(83136),u=s.n(c),p=s(55431),m=s(47458),h=s(33097),x=s.n(h),f=s(47094),g=s(70579);const _=(0,m.createWithIntl)({moduleName:"FormInfo",importMessages:p.A})((e=>{let{title:t,addText:s,minLength:o,isUnshift:c,maxLength:p,defaultLength:h,label:_,name:v,beforeAdd:j,afterDelete:y,column:A,list:b,listRender:N,itemTitle:S,outer:F,renderChildren:w,className:C,important:P,deleteButtonProps:I}=e;const M=(0,n.useRef)(null),T=(0,i.useFormContext)(),{formData:k}=T,L=!(p&&p<=x()(k,`${v}.length`,0)),{formatMessage:O}=(0,m.useIntl)({moduleName:"FormInfo"}),E=()=>{"function"===typeof j&&!1===j(v,T,{isUnshift:c,group:M.current})||M.current.onAdd({isUnshift:c})};return(0,g.jsxs)(g.Fragment,{children:[(0,n.cloneElement)(F,{title:t,addText:s,className:u()(C,f.A["list-part"]),allowAdd:c&&L,add:E},w((0,g.jsx)(i.GroupList,{name:v,defaultLength:h,ref:M,children:function(){for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];const{id:i,index:c,onRemove:p,length:h}=(e=>{if("object"===typeof e[0])return e[0];const[t,{index:s,onRemove:n,length:r}]=e;return{id:t,index:s,onRemove:n,length:r}})(s),x={key:i,column:A,list:"function"===typeof b?b(...s,T):b,title:"function"===typeof S?S({index:c,key:i,onRemove:p}):S,groupArgs:s,extra:(0,g.jsx)(m.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>o&&o>=h?null:(0,g.jsx)(l.default,{danger:!0,className:"btn-no-padding",message:O({id:"delConfirm"},{name:_||t}),type:"link",onClick:()=>{p(i),y&&y(...s,T)},...Object.assign({},I),children:null!==I&&void 0!==I&&I.children?null===I||void 0===I?void 0:I.children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.default,{type:"icon-shanchu"}),e]})})})};return(0,g.jsxs)("div",{className:u()(f.A["list-item"],{[f.A["is-important"]]:P}),children:["function"===typeof N?N(x):(0,g.jsx)(d.A,{...x,className:f.A["list-item-part"],gap:16}),(0,g.jsx)(r.Divider,{})]},i)}}))),!c&&L?(0,g.jsx)(m.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,g.jsx)("div",{className:u()("form-info-list-add-btn"),children:(0,g.jsxs)(r.Button,{onClick:E,children:[(0,g.jsx)(a.default,{type:"icon-tianjia"}),s||e]})})}):null]})}));_.defaultProps={minLength:0,isUnshift:!0,defaultLength:1,outer:(0,g.jsx)((e=>{let{add:t,addText:s,className:n,allowAdd:l,...i}=e;return(0,g.jsx)(o.default.Part,{...i,className:n,extra:l&&(0,g.jsx)(m.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,g.jsxs)(r.Typography.Text,{className:f.A["list-btn"],onClick:t,children:[(0,g.jsx)(a.default,{type:"icon-tianjia"}),s||e]})})})}),{}),renderChildren:e=>e};const v=_},89099:(e,t,s)=>{s.d(t,{A:()=>A});var n=s(55199),r=s(83136),l=s.n(r),a=s(10986),o=s.n(a);const i="style_upload__t422Q__psX7x",d="style_upload-list__Q9HDc__psX7x",c="style_tips__3Gpnu__psX7x";var u=s(19343),p=s(98434),m=s(47458),h=s(1488),x=s.n(h),f=s(17508),g=s(55431),_=s(70579);const{useOnChange:v}=p.hooks,j=(0,m.createWithIntl)({importMessages:g.A,moduleName:"FormInfo"})((e=>{const{formatMessage:t}=(0,m.useIntl)({moduleName:"FormInfo"}),{className:s,fileSize:r,maxLength:a,multiple:p,size:h,accept:g,children:v,renderTips:j,showUploadList:y,onSave:A,ossUpload:b,onUpload:N,getPermission:S,concurrentCount:F,...w}=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),[C,P]=o()(w),I=C||[],{fileList:M,onFileSelected:T}=(0,f.lN)({multiple:p,onSave:A,onUpload:b||N,fileSize:r,maxLength:a,value:I,onChange:P,concurrentCount:F}),k=[...M,...I],L=j(t({id:"uploadTips"},{extensionNames:g.map((e=>e.replace(/^\./,""))).join(","),maxLength:a,fileSize:r}),{fileSize:r,maxLength:a,accept:g});return(0,_.jsxs)(n.Space,{direction:"vertical",children:[(0,_.jsxs)("div",{align:"start",children:[(0,_.jsx)(f.Zi,{...x()(w,["value","onChange"]),size:h,multiple:p,accept:g,className:l()(i,s),onChange:T,children:v}),L&&(0,_.jsx)("div",{className:c,children:L})]}),y&&k.length>0&&(0,_.jsx)(u.List,{className:d,dataSource:k,infoItemRenders:[],getPermission:S||(e=>"delete"===e),apis:{onDelete:e=>{const t=I.slice(0),s=t.indexOf(e);s>-1&&t.splice(s,1),P(t)}}})]})})),y=e=>v(e)(j);y.defaultProps={interceptor:"file-format"},y.Field=j;const A=y},92328:(e,t,s)=>{s.d(t,{A:()=>j});var n=s(10986),r=s.n(n),l=s(98434),a=s(55199),o=s(69484);const i="style_money-input__Pyur7__psX7x",d="style_money-description__9pFk4__psX7x";var c=s(83136),u=s.n(c),p=s(34677),m=s.n(p),h=s(73884),x=s(70579);const{isNotEmpty:f}=l.util||l.formUtils,{useOnChange:g}=l.hooks,_=e=>{let{chineseEmpty:t,className:s,showError:n,errorDesc:l,transformMoneyToChinese:c,onBlur:p,moneyFormat:g,..._}=e;const[v,j]=(0,h.useState)(""),[y,A]=r()(_),b=m()({controls:!1,precision:2,addonAfter:"\u5143"},_,{max:f(_.max)?_.max>o.e?o.e:_.max:o.e});return(0,x.jsxs)("div",{className:u()(s,"money-input",i),children:[(0,x.jsx)(a.InputNumber,{...b,status:v,formatter:g?e=>`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=g?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return f(t)?(Number(t)>Number(b.max)||f(b.min)&&Number(t)<Number(b.min))&&j("error"):j(""),f(t)?Number(t):null},onChange:e=>{A(e)},onBlur:e=>{p&&p(e,j)}}),(0,x.jsx)("div",{className:u()(d),children:"error"===v&&n?l:f(y)?(0,o.A)(c?c(y):y):t})]})},v=e=>g(Object.assign({placeholder:`\u8bf7\u8f93\u5165${e.label||""}`},e))(_);v.Field=_,v.toChineseCharacter=o.A;const j=v},94005:(e,t,s)=>{s.d(t,{$X:()=>g,Ay:()=>f,Wp:()=>_});var n=s(3382),r=s(73884),l=s(98434),a=s(73025),o=s(47458),i=s(47094),d=s(55431),c=s(55199),u=s(76995),p=s(70579);const m="FormInfo",h=e=>{let{items:t,children:s}=e;const[n,l]=(0,r.useState)(0);return s({currentIndex:n,setCurrentIndex:l,stepCacheRef:(0,r.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},x=e=>{let{footerButtons:t,cancelText:s,completeText:n,nextText:r,items:a,withDecorator:x,...f}=e;return(0,u.A)(Object.assign({},f,{footerButtons:e=>{let{currentIndex:t,isLastStep:i}=e;const{footerButtons:c}=Object.assign({},a[t]);return c||[{children:(0,p.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:m,children:s||(0,p.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:m})}),ButtonComponent:l.CancelButton},{type:"primary",children:(0,p.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:m,children:i?n||(0,p.jsx)(o.FormattedMessage,{id:"Complete",moduleName:m}):r||(0,p.jsx)(o.FormattedMessage,{id:"Next",moduleName:m})}),ButtonComponent:l.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const s=t=>(0,p.jsx)(h,{items:a,children:s=>{var n;let{currentIndex:r,isLastStep:l,setCurrentIndex:o,currentProps:d,stepCacheRef:u}=s;const{formProps:m,title:h,...x}=d,{onSubmit:g,..._}="function"===typeof m?m(t):m,v=Object.assign({},_.data,null===(n=u.current[r])||void 0===n?void 0:n.data);return e(Object.assign({},t,x,{currentIndex:r,isLastStep:l,setCurrentIndex:o,stepCacheRef:u,stepSection:(0,p.jsx)(c.Steps,{className:i.A["form-step-section"],current:r,items:a.map((e=>{let{title:t}=e;return{title:t}}))}),formProps:Object.assign({},_,{key:r,data:v,onSubmit:async function(e){u.current[r]={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 i=g&&await g(e,Object.assign({},t,{currentIndex:r,isLastStep:l,setCurrentIndex:o,currentProps:d,stepCacheRef:u}),...n);return f.autoClose&&!l&&!1!==i&&o((e=>e+1)),!!l&&i}})}))}});return"function"===typeof x?x(s,t):s(t)},formProps:e=>{let{formProps:t,...s}=e;return Object.assign({},s,t)},children:e=>{let{children:t,stepSection:s,...n}=e;return(0,p.jsxs)(c.Flex,{vertical:!0,gap:24,children:[(0,p.jsx)(c.Flex,{justify:"center",children:s}),"function"===typeof t?t(n):t]})}}))},f=e=>(0,p.jsx)(n.default,{...x(Object.assign({},e,{className:i.A["form-modal"]}))}),g=()=>{const e=(0,n.useModal)();return t=>e(x(Object.assign({},t,{className:i.A["form-modal"]})))},_=e=>{const t=g();if(!e.api){const{modalProps:s,...n}=e;return(0,p.jsx)(c.Button,{...n,onClick:()=>{t(s)}})}return(0,p.jsx)(a.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:()=>d.Ay,FormModalButton:()=>d.W6,FormStepModal:()=>c.Ay,FormStepModalButton:()=>c.Wp,FunctionSelect:()=>_.d4,IndustrySelect:()=>_.ZN,Input:()=>_.pd,InputNumber:()=>_.YI,InputUpperCase:()=>_.h2,List:()=>a.A,MoneyInput:()=>_.F0,MultiField:()=>x.A,PhoneNumber:()=>_.go,Rate:()=>_.tt,SalaryInput:()=>_.lu,Select:()=>_.l6,SelectInnerInput:()=>v.A,Slider:()=>_.Ap,SuperSelect:()=>_.wD,SuperSelectTableList:()=>_.eM,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:()=>d.Vl,useFormStepModal:()=>c.$X});var n=s(64261),r=s(2196),l=s(72297),a=s(85846),o=s(97056),i=s(35774),d=s(5995),c=s(94005),u=s(48221),p=s(85696),m=s(30891),h=s(45053),x=s(97949),f=s(98434),g={};for(const y in f)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField","SelectInnerInput"].indexOf(y)<0&&(g[y]=()=>f[y]);s.d(t,g);var _=s(83799),v=s(18936);(0,n.A)(),r.A.fields=l.A,r.A.List=a.A,r.A.TableList=o.A,r.A.FormApiButton=i.A,r.A.FormModal=d.Ay,r.A.useFormModal=d.Vl,r.A.FormModalButton=d.W6,r.A.FormStepModal=c.Ay,r.A.useFormStepModal=c.$X,r.A.FormStepModalButton=c.Wp,r.A.FormDrawer=u.Ay,r.A.useFormDrawer=u.Xy,r.A.FormDrawerButton=u.WJ,r.A.Form=p.A,r.A.FormItem=m.A,r.A.ErrorTip=h.A,r.A.SubmitButton=f.SubmitButton,r.A.CancelButton=f.CancelButton,r.A.fieldDecorator=l.E,r.A.MultiField=x.A,r.A.useFormContext=f.useFormContext,r.A.hooks=f.hooks,r.A.widget=f.widget,r.A.utils=f.utils,r.A.formUtils=f.formUtils;const j=r.A},96339:(e,t,s)=>{s.d(t,{A:()=>D});var n=s(73884),r=s(17508),l=s(40438),a=s(63908),o=s(3382),i=s(64671),d=s(55199),c=s(53202),u=s.n(c),p=s(33097),m=s.n(p),h=s(83136),x=s.n(h),f=s(51941),g=s(98434),_=s(34677),v=s.n(_);const j="style_upload-btn__-6XtP__psX7x",y="style_square__UPkfA__psX7x",A="style_is-loading__wx6Pd__psX7x",b="style_upload-btn-tips__YtxWz__psX7x",N="style_drop-tips__N-v59__psX7x",S="style_preview-area__aV3SN__psX7x";var F=s(18411),w=s(47458),C=s(55431),P=s(70579);const{useOnChange:I}=g.hooks,M=l.default.Avatar,T="FormInfo",k=(0,r.Ay)((e=>{let{className:t,icon:s,loading:n,value:r,gender:l,width:a,height:o,children:c,shape:u,defaultAvatar:p,displayAvatar:h,apis:f}=e;const g=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(M,{...Object.assign({},"function"===typeof h?h(r):{id:m()(r,"id")}),gender:l,width:64*a/o,height:64,shape:u,defaultAvatar:p,apis:f}),(0,P.jsx)("div",{className:b,children:s||(0,P.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,P.jsx)("div",{className:x()(t,j,{[A]:n,[y]:"square"===u||!(a&&a===o)}),style:{width:64*a/o},children:n?(0,P.jsx)(d.Spin,{children:g}):g})})),L=e=>{let t=e.split(","),s=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],r=atob(s),l=r.length,a=new Uint8Array(l);for(;l--;)a[l]=r.charCodeAt(l);return new Blob([a],{type:n})},O=(0,n.forwardRef)(((e,t)=>{let{image:s,width:l,height:a,borderRadius:o,preview:c,fileSize:p,accept:m,renderTips:h,getApi:x,shape:g,border:_,...v}=e;const j=(0,w.useIntl)({moduleName:T}),[y,A]=(0,n.useState)(0),b=(0,n.useRef)(null),[F,C]=(0,n.useState)(s),[I,M]=(0,n.useState)(1),[k,O]=(0,n.useState)(0),[E,R]=(0,n.useState)(""),X=(0,n.useRef)(null);(0,n.useLayoutEffect)((()=>{A(2*b.current.clientWidth/3)}),[]),x({getImage:()=>{const e=X.current.getImage(),t=document.createElement("canvas"),s=t.getContext("2d");return t.width=l,t.height=a,s.drawImage(e,0,0,t.width,t.height),new window.File([L(t.toDataURL())],F.name,{type:F.type})}});const D=()=>{R(X.current.getImage().toDataURL())},z=(0,f.useDebouncedCallback)(D,500);return(0,P.jsx)("div",{ref:b,children:(0,P.jsxs)(d.Row,{wrap:!1,align:"middle",children:[(0,P.jsx)(d.Col,{span:c?16:24,children:y&&(0,P.jsxs)(d.Space,{direction:"vertical",children:[(0,P.jsx)(u(),{...v,ref:X,image:F,scale:I,rotate:k,width:y-2*_,height:a*y/l-2*_*a/l,border:_,color:[0,0,0,.6],borderRadius:o*y/l,onImageReady:D,onImageChange:z}),(0,P.jsx)("div",{className:N,children:h(`${j.formatMessage({id:"PictureFormat"})}${m.map((e=>e.replace(/^\./,""))).join(" ")} ${j.formatMessage({id:"ImageSize"})}${j.formatMessage({id:"NotExceeding"},{size:p})}`,{accept:m,fileSize:p})}),(0,P.jsxs)(d.Row,{gutter:14,align:"middle",children:[(0,P.jsx)(d.Col,{children:(0,P.jsx)(d.Tooltip,{title:j.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,P.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{O((e=>(e-90)%360))}})})}),(0,P.jsx)(d.Col,{children:(0,P.jsx)(d.Tooltip,{title:j.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,P.jsx)(i.default,{type:"icon-chongman",onClick:()=>{M(1)}})})}),(0,P.jsx)(d.Col,{flex:1,children:(0,P.jsx)(d.Slider,{tooltip:{placement:"bottom",formatter:()=>j.formatMessage({id:"Size"})},value:I,step:.05,min:.2,max:3,onChange:M})}),(0,P.jsx)(d.Col,{children:(0,P.jsx)(r.FI,{accept:m,onChange:e=>{e[0].size>1024*p*1024?d.message.error(j.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:p})):(O(0),M(1),C(e[0]))},children:(0,P.jsx)(w.FormattedMessage,{id:"ReUpload",moduleName:T})})})]})]})}),c&&(0,P.jsx)(d.Col,{span:8,children:(0,P.jsx)("div",{className:S,children:(0,P.jsxs)(d.Space,{direction:"vertical",children:[(0,P.jsx)(d.Avatar,{src:E,shape:g,style:{width:y/2-36,height:(y/2-36)*a/l}}),(0,P.jsx)("div",{style:{textAlign:"center"},children:(0,P.jsx)(w.FormattedMessage,{id:"Preview",moduleName:T})})]})})})]})})}));O.defaultProps={border:1};const E=()=>{const e=(0,o.useModal)();return t=>{const{image:s,width:n,height:r,borderRadius:l,getApi:a,preview:o,fileSize:i,accept:d,renderTips:c,border:u,dropModalSize:p,...m}=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t);return e({...m,size:p,children:(0,P.jsx)(O,{preview:o,fileSize:i,accept:d,getApi:a,renderTips:c,width:n,height:r,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:l,image:s,border:u,scale:1,rotate:0})})}},R=(0,w.createWithIntl)({importMessages:C.A,moduleName:"FormInfo"})((e=>{var t;let{value:s,gender:r,fileSize:l,accept:o,openEditor:i,apis:c,renderTips:u,onChange:p,shape:m,width:h,height:x,title:f,border:g,icon:_,dropModalSize:j,defaultAvatar:y,displayAvatar:A}=e;const[b,N]=(0,n.useState)(!1),{apis:S}=(0,a.usePreset)(),F=v()({},S,c),C=(null===(t=F.file)||void 0===t?void 0:t.upload)||F.ossUpload,I=(0,n.useRef)(null),M=E(),L=(0,w.useIntl)({moduleName:T});return(0,P.jsx)(k,{value:s,gender:r,accept:o,width:h,height:x,shape:m,icon:_,loading:b,defaultAvatar:y,displayAvatar:A,apis:F,onChange:e=>{if(e[0].size>1024*l*1024)return void d.message.error(L.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:l}));const t=e=>(N(!0),C({file:e}).then((e=>{let{data:t}=e;0===t.code?p(t.data):d.message.error(L.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))})).finally((()=>{N(!1)})));i?M({image:e[0],width:h,height:x,title:f,shape:m,border:g,dropModalSize:j,getApi:e=>I.current=e,fileSize:l,accept:o,renderTips:u,onConfirm:()=>{t(I.current.getImage())}}):t(e[0])}})}));R.defaultProps={defaultAvatar:F.A,openEditor:!0,fileSize:2,width:200,height:200,dropModalSize:"small",border:1,title:(0,P.jsx)(w.IntlProvider,{importMessages:C.A,moduleName:"FormInfo",children:(0,P.jsx)(w.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),accept:[".jpg",".png",".jpeg"],renderTips:e=>e,shape:"circle"};const X=e=>I(e)(R);X.defaultProps={},X.Field=R,X.useDropModal=E;const D=X},97056:(e,t,s)=>{s.d(t,{A:()=>h});var n=s(85846),r=s(83560),l=s(55199),a=s(41740),o=s.n(a),i=s(73884),d=s(83136),c=s.n(d),u=s(47094),p=s(70579);const m=(0,i.forwardRef)(((e,t)=>{const[s,n]=(0,i.useState)(new Map);return(0,i.useImperativeHandle)(t,(()=>e=>{setTimeout((()=>{n((t=>{if(t.has(e.key))return t;const s=o()(t);return s.set(e.key,e.props),s}))}))}),[]),(0,p.jsxs)(l.Row,{wrap:!1,className:u.A["table-list-header"],style:{"--col-width":100/s.size+"%"},children:[Array.from(s).map((e=>{let[t,{label:s,rule:n}]=e;return(0,p.jsx)(l.Col,{className:c()({[u.A["is-req"]]:0===(n||"").split(" ").indexOf("REQ")}),children:s},t)})),(0,p.jsx)(l.Col,{className:u.A["table-list-extra"]})]})})),h=e=>{let{list:t,className:s,...a}=e;const o=(0,i.useRef)(null);return(0,p.jsx)(n.A,{...a,className:c()(s,u.A["table-list"]),list:t,renderChildren:e=>(0,p.jsxs)("div",{className:u.A["table-list-inner"],children:[(0,p.jsx)(m,{ref:o}),e]}),listRender:e=>{let{list:t,groupArgs:s,extra:n,key:a}=e;return(0,p.jsxs)(l.Row,{wrap:!1,align:"top",style:{"--col-width":100/t.length+"%"},children:[(0,p.jsx)(r.A,{list:t,groupArgs:s,itemRender:(e,t)=>(o.current(t),(0,p.jsx)(l.Col,{className:u.A["table-list-field"],flex:1,children:e}))}),(0,p.jsx)(l.Col,{className:u.A["table-list-extra"],children:n})]},a)}})}},97949:(e,t,s)=>{s.d(t,{A:()=>f});var n=s(73884),r=s(55199),l=s(98434),a=s(47458),o=s(64671),i=s(33097),d=s.n(i),c=s(47094),u=s(83136),p=s.n(u),m=s(55431),h=s(70579);const x=(0,a.createWithIntl)({moduleName:"FormInfo",importMessages:m.A})((e=>{let{name:t,label:s,rule:i,field:u,defaultLength:m,minLength:x,maxLength:f,...g}=e;const _=(0,n.useRef)(null),v=u,j=(0,l.useFormContext)(),{formData:y}=j,A=!(f&&f<=d()(y,`${t}.length`,0)),{formatMessage:b}=(0,a.useIntl)({moduleName:"FormInfo"});return(0,h.jsxs)("div",{className:p()(c.A["mult-field"],"mult-field"),children:[(0,h.jsx)(l.GroupList,{ref:_,name:t,defaultLength:Math.max(m,x,1),children:function(){for(var e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];const{id:a,index:d,onRemove:u,length:m}=(e=>{if("object"===typeof e[0])return e[0];const[t,{index:s,onRemove:n,length:r}]=e;return{id:t,index:s,onRemove:n,length:r}})(n);return(0,h.jsxs)("div",{className:p()(c.A["mult-field-item"],"mult-field-item",{[c.A["first-item"]]:0===d}),children:[(0,h.jsx)(v,{...g,name:t,label:s,rule:i}),(0,h.jsxs)("div",{className:p()("form-info-mult-option"),children:[(0,h.jsx)("div",{className:p()(c.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,h.jsx)(r.Button,{icon:(0,h.jsx)(o.default,{type:"shanchu"}),onClick:u,disabled:m<=Math.max(x,1)})]})]},a)}}),A&&(0,h.jsx)("div",{className:p()("form-info-mult-add-btn"),children:(0,h.jsxs)(r.Button,{className:c.A["mult-field-add-btn"],type:"dashed",onClick:()=>_.current.onAdd(),children:[(0,h.jsx)(o.default,{type:"tianjia"}),b({id:"addSomeThing"},{label:s})]})})]})}));x.defaultProps={minLength:1,defaultLength:1};const f=x}}]);
|
|
2
|
+
//# sourceMappingURL=4474.990b8320.chunk.js.map
|