@kne-components/components-core 0.4.66 → 0.4.67
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/111.f68f5313.chunk.css +2 -0
- package/build/static/css/{111.af43bf41.chunk.css.map → 111.f68f5313.chunk.css.map} +1 -1
- package/build/static/css/2753.e7949ab3.chunk.css +2 -0
- package/build/static/css/{2753.65190152.chunk.css.map → 2753.e7949ab3.chunk.css.map} +1 -1
- package/build/static/css/{3771.a16d89be.chunk.css → 3771.ff018f27.chunk.css} +2 -2
- package/build/static/css/{3771.a16d89be.chunk.css.map → 3771.ff018f27.chunk.css.map} +1 -1
- package/build/static/css/{3790.5abb16a3.chunk.css → 3790.4526e53c.chunk.css} +2 -2
- package/build/static/css/{3790.5abb16a3.chunk.css.map → 3790.4526e53c.chunk.css.map} +1 -1
- package/build/static/css/3841.c7026264.chunk.css +2 -0
- package/build/static/css/{3841.9195867c.chunk.css.map → 3841.c7026264.chunk.css.map} +1 -1
- package/build/static/css/3874.5d044f62.chunk.css +2 -0
- package/build/static/css/{3874.4a2de703.chunk.css.map → 3874.5d044f62.chunk.css.map} +1 -1
- package/build/static/css/{4302.dad10603.chunk.css → 4302.651d68fa.chunk.css} +2 -2
- package/build/static/css/{4302.dad10603.chunk.css.map → 4302.651d68fa.chunk.css.map} +1 -1
- package/build/static/css/4666.8f03839e.chunk.css +2 -0
- package/build/static/css/{4666.2c927cd4.chunk.css.map → 4666.8f03839e.chunk.css.map} +1 -1
- package/build/static/css/5628.e4fcb2cc.chunk.css +12 -0
- package/build/static/css/{5628.97e556c6.chunk.css.map → 5628.e4fcb2cc.chunk.css.map} +1 -1
- package/build/static/css/{6763.3f4c0ba1.chunk.css → 6763.a832c4fd.chunk.css} +2 -2
- package/build/static/css/{6763.3f4c0ba1.chunk.css.map → 6763.a832c4fd.chunk.css.map} +1 -1
- package/build/static/css/7227.031856f2.chunk.css +2 -0
- package/build/static/css/{7227.2a0a9dd0.chunk.css.map → 7227.031856f2.chunk.css.map} +1 -1
- package/build/static/css/7372.5d6553e3.chunk.css +2 -0
- package/build/static/css/{7372.e23f18b8.chunk.css.map → 7372.5d6553e3.chunk.css.map} +1 -1
- package/build/static/css/{760.7bd56434.chunk.css → 760.27c95225.chunk.css} +2 -2
- package/build/static/css/{760.7bd56434.chunk.css.map → 760.27c95225.chunk.css.map} +1 -1
- package/build/static/css/{8221.99a45fda.chunk.css → 8221.bcf604af.chunk.css} +2 -2
- package/build/static/css/{8221.99a45fda.chunk.css.map → 8221.bcf604af.chunk.css.map} +1 -1
- package/build/static/css/8377.1bbf012a.chunk.css +2 -0
- package/build/static/css/{8377.a8cb24d1.chunk.css.map → 8377.1bbf012a.chunk.css.map} +1 -1
- package/build/static/css/{8593.11db5d93.chunk.css → 8593.e59836d7.chunk.css} +2 -2
- package/build/static/css/{8593.11db5d93.chunk.css.map → 8593.e59836d7.chunk.css.map} +1 -1
- package/build/static/css/9387.59954fd1.chunk.css +2 -0
- package/build/static/css/{9387.d02253f6.chunk.css.map → 9387.59954fd1.chunk.css.map} +1 -1
- package/build/static/css/9556.27566499.chunk.css +2 -0
- package/build/static/css/{9556.828a556c.chunk.css.map → 9556.27566499.chunk.css.map} +1 -1
- package/build/static/css/9666.a4e2b163.chunk.css +2 -0
- package/build/static/css/{9666.d8c91149.chunk.css.map → 9666.a4e2b163.chunk.css.map} +1 -1
- package/build/static/js/{111.f812617f.chunk.js → 111.f4b5ea98.chunk.js} +2 -2
- package/build/static/js/{111.f812617f.chunk.js.map → 111.f4b5ea98.chunk.js.map} +1 -1
- package/build/static/js/{196.74a1326d.chunk.js → 196.80a3177c.chunk.js} +1 -1
- package/build/static/js/{2833.2cdd46e6.chunk.js → 2833.1d09d414.chunk.js} +2 -2
- package/build/static/js/2833.1d09d414.chunk.js.map +1 -0
- package/build/static/js/3771.0d3884d1.chunk.js +2 -0
- package/build/static/js/{3771.e50184d9.chunk.js.map → 3771.0d3884d1.chunk.js.map} +1 -1
- package/build/static/js/{3790.03afba35.chunk.js → 3790.595590c0.chunk.js} +2 -2
- package/build/static/js/{3790.03afba35.chunk.js.map → 3790.595590c0.chunk.js.map} +1 -1
- package/build/static/js/{3841.de64ea1f.chunk.js → 3841.bcb1e477.chunk.js} +2 -2
- package/build/static/js/{3841.de64ea1f.chunk.js.map → 3841.bcb1e477.chunk.js.map} +1 -1
- package/build/static/js/{3856.3bc4f554.chunk.js → 3856.9b306735.chunk.js} +2 -2
- package/build/static/js/{3856.3bc4f554.chunk.js.map → 3856.9b306735.chunk.js.map} +1 -1
- package/build/static/js/{3874.43b3a191.chunk.js → 3874.f239c12f.chunk.js} +3 -3
- package/build/static/js/{3874.43b3a191.chunk.js.map → 3874.f239c12f.chunk.js.map} +1 -1
- package/build/static/js/4302.1e65d1a3.chunk.js +2 -0
- package/build/static/js/{4302.77e57d61.chunk.js.map → 4302.1e65d1a3.chunk.js.map} +1 -1
- package/build/static/js/4474.25d1469a.chunk.js +2 -0
- package/build/static/js/{4474.19db5271.chunk.js.map → 4474.25d1469a.chunk.js.map} +1 -1
- package/build/static/js/{4666.ced49dea.chunk.js → 4666.da12dcad.chunk.js} +3 -3
- package/build/static/js/{4666.ced49dea.chunk.js.map → 4666.da12dcad.chunk.js.map} +1 -1
- package/build/static/js/{2363.e9d2eed8.chunk.js → 4744.68f457ed.chunk.js} +2 -2
- package/build/static/js/{2363.e9d2eed8.chunk.js.map → 4744.68f457ed.chunk.js.map} +1 -1
- package/build/static/js/5628.92cde7ac.chunk.js +2 -0
- package/build/static/js/{5628.72e29acc.chunk.js.map → 5628.92cde7ac.chunk.js.map} +1 -1
- package/build/static/js/6460.c05b642e.chunk.js +9 -0
- package/build/static/js/6460.c05b642e.chunk.js.map +1 -0
- package/build/static/js/6763.f212e86e.chunk.js +2 -0
- package/build/static/js/{6763.3a0a852f.chunk.js.map → 6763.f212e86e.chunk.js.map} +1 -1
- package/build/static/js/{7227.d189f8e3.chunk.js → 7227.9ba0d1ca.chunk.js} +3 -3
- package/build/static/js/{7227.d189f8e3.chunk.js.map → 7227.9ba0d1ca.chunk.js.map} +1 -1
- package/build/static/js/{7372.7e6e421a.chunk.js → 7372.2abd5112.chunk.js} +2 -2
- package/build/static/js/{7372.7e6e421a.chunk.js.map → 7372.2abd5112.chunk.js.map} +1 -1
- package/build/static/js/{760.185e0aa5.chunk.js → 760.64ddb4b7.chunk.js} +2 -2
- package/build/static/js/{760.185e0aa5.chunk.js.map → 760.64ddb4b7.chunk.js.map} +1 -1
- package/build/static/js/7857.07e102fc.chunk.js +2 -0
- package/build/static/js/{7857.6ed907e0.chunk.js.map → 7857.07e102fc.chunk.js.map} +1 -1
- package/build/static/js/8221.5cde284c.chunk.js +2 -0
- package/build/static/js/{8221.c93d129f.chunk.js.map → 8221.5cde284c.chunk.js.map} +1 -1
- package/build/static/js/{8377.f4903a9e.chunk.js → 8377.32461eb9.chunk.js} +2 -2
- package/build/static/js/{8377.f4903a9e.chunk.js.map → 8377.32461eb9.chunk.js.map} +1 -1
- package/build/static/js/8593.53fd497a.chunk.js +2 -0
- package/build/static/js/{8593.18b7475f.chunk.js.map → 8593.53fd497a.chunk.js.map} +1 -1
- package/build/static/js/{9223.800c4315.chunk.js → 9223.0adf8af5.chunk.js} +2 -2
- package/build/static/js/9223.0adf8af5.chunk.js.map +1 -0
- package/build/static/js/9556.59fe644a.chunk.js +3 -0
- package/build/static/js/{9556.2fa191f6.chunk.js.map → 9556.59fe644a.chunk.js.map} +1 -1
- package/build/static/js/9666.51562fa6.chunk.js +2 -0
- package/build/static/js/{9666.61a8e69f.chunk.js.map → 9666.51562fa6.chunk.js.map} +1 -1
- package/build/static/js/{main.94eeacc5.js → main.3892a3eb.js} +2 -2
- package/build/static/js/{main.94eeacc5.js.map → main.3892a3eb.js.map} +1 -1
- package/package.json +2 -2
- package/build/static/css/111.af43bf41.chunk.css +0 -2
- package/build/static/css/2753.65190152.chunk.css +0 -2
- package/build/static/css/3841.9195867c.chunk.css +0 -2
- package/build/static/css/3874.4a2de703.chunk.css +0 -2
- package/build/static/css/4666.2c927cd4.chunk.css +0 -2
- package/build/static/css/5628.97e556c6.chunk.css +0 -12
- package/build/static/css/7227.2a0a9dd0.chunk.css +0 -2
- package/build/static/css/7372.e23f18b8.chunk.css +0 -2
- package/build/static/css/8377.a8cb24d1.chunk.css +0 -2
- package/build/static/css/9387.d02253f6.chunk.css +0 -2
- package/build/static/css/9556.828a556c.chunk.css +0 -2
- package/build/static/css/9666.d8c91149.chunk.css +0 -2
- package/build/static/js/2833.2cdd46e6.chunk.js.map +0 -1
- package/build/static/js/3771.e50184d9.chunk.js +0 -2
- package/build/static/js/4302.77e57d61.chunk.js +0 -2
- package/build/static/js/4474.19db5271.chunk.js +0 -2
- package/build/static/js/5628.72e29acc.chunk.js +0 -2
- package/build/static/js/6460.02f933ea.chunk.js +0 -9
- package/build/static/js/6460.02f933ea.chunk.js.map +0 -1
- package/build/static/js/6763.3a0a852f.chunk.js +0 -2
- package/build/static/js/7857.6ed907e0.chunk.js +0 -2
- package/build/static/js/8221.c93d129f.chunk.js +0 -2
- package/build/static/js/8593.18b7475f.chunk.js +0 -2
- package/build/static/js/9223.800c4315.chunk.js.map +0 -1
- package/build/static/js/9556.2fa191f6.chunk.js +0 -3
- package/build/static/js/9666.61a8e69f.chunk.js +0 -2
- /package/build/static/js/{3874.43b3a191.chunk.js.LICENSE.txt → 3874.f239c12f.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.ced49dea.chunk.js.LICENSE.txt → 4666.da12dcad.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6460.02f933ea.chunk.js.LICENSE.txt → 6460.c05b642e.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.d189f8e3.chunk.js.LICENSE.txt → 7227.9ba0d1ca.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.2fa191f6.chunk.js.LICENSE.txt → 9556.59fe644a.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kne_components_components_core=globalThis.webpackChunk_kne_components_components_core||[]).push([[2908,3771],{17342(e,o,t){t.d(o,{A:()=>n});var l=t(34581);t(46733);const n=l.default},3382(e,o,t){t.r(o),t.d(o,{ModalButton:()=>S,TabsModal:()=>k,TabsModalButton:()=>P,default:()=>B,useConfirmModal:()=>w,useModal:()=>j,useTabsModal:()=>K});var l=t(73884),n=t(55199),s=t(83136),i=t.n(s);const r={modal:"style_modal__Pm3cF__NN-KB",large:"style_large__iaqVE__NN-KB","modal-body-inner":"style_modal-body-inner__4PhpA__NN-KB","modal-title":"style_modal-title__dswaw__NN-KB","modal-outer":"style_modal-outer__r3SkX__NN-KB","modal-body":"style_modal-body__jQJSI__NN-KB","right-options-modal":"style_right-options-modal__FajDP__NN-KB","right-options-row":"style_right-options-row__-mPb9__NN-KB","right-options-col":"style_right-options-col__3ilee__NN-KB","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__NN-KB",content:"style_content__k6MIF__NN-KB","modal-footer":"style_modal-footer__-prbN__NN-KB","modal-close":"style_modal-close__Oa5Kl__NN-KB","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__NN-KB","is-danger":"style_is-danger__H5110__NN-KB",title:"style_title__orTym__NN-KB","has-title":"style_has-title__qy0Wp__NN-KB"},a=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(47458),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=t(81014),p=t(17342),_=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:l}=e;return o?(0,_.jsxs)(n.Row,{wrap:!1,className:r["right-options-row"],children:[(0,_.jsx)(n.Col,{span:24-t,className:r["right-options-col"],children:l}),(0,_.jsx)(n.Col,{span:t,className:r["right-options-col"],children:o})]}):l},g=(e,o)=>e-48-(o?58:0)+"px",y=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":g(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,o)}}:{width:"1000px",style:{"--min-modal-height":g(500,o)}},N=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,cancelText:r,onClose:d,targetProps:m}=e;return(0,_.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(n.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(n.Col,{children:(0,_.jsx)(n.Space,{children:(t||[{children:r||(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,o)=>{let{ButtonComponent:t,onClick:n,autoClose:s=!0,display:i,...r}=e;const a=t||h.default;return(0,l.createElement)(a,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const l=await Promise.resolve(n&&n(...o,m));return s&&!1!==l&&d&&d(),l}})})})})]})},x=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:a,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:g,cancelText:y,confirmText:x}=e;const C=(0,l.useRef)(null);return(0,_.jsxs)("div",{className:i()(r["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(n.Button,{"data-testid":"components-core-modal-close-btn",className:i()(r["modal-close"],"modal-close"),type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:r["modal-title"],children:o}),(0,_.jsx)(p.A,{className:i()(r["modal-body"],{[r["is-disabled-scroller"]]:s},"modal-body"),ref:C,children:(0,_.jsx)("div",{className:i()(r["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||a?(0,_.jsx)("div",{className:i()(r["modal-footer"],"modal-footer"),children:(0,_.jsx)(N,{footer:t,footerButtons:a,onConfirm:h,confirmText:x,onCancel:u,cancelText:y,onClose:c,targetProps:g})}):null]})},C=e=>{let{withDecorator:o,footerButtons:t,title:l,closable:n,onClose:s,onConfirm:i,confirmText:r,onCancel:a,cancelText:c,footer:d,rightOptions:h,rightSpan:p,disabledScroller:u,childrenRef:g,children:y}=e;const N=e=>(e=Object.assign({},{title:l},e),(0,_.jsx)(x,{title:m(e.title,{...e,childrenRef:g,close:s}),closable:n,onClose:s,onConfirm:i,confirmText:r,onCancel:a,cancelText:c,footerButtons:m(t,{...e,close:s}),disabledScroller:u,footer:m(d,{...e,childrenRef:g,close:s}),targetProps:Object.assign({},e,{childrenRef:g,close:s}),children:(0,_.jsx)(f,{rightSpan:p,options:m(h,{...e,childrenRef:g,close:s}),children:m(y,{...e,childrenRef:g,close:s})})}));return"function"===typeof o?o(N,{childrenRef:g,close:s}):N({})},b=e=>{let{children:o,rightOptions:t,rightSpan:l,footer:n,footerButtons:s,className:d,size:m,title:h,onClose:p,onConfirm:u,confirmText:f,onCancel:g,cancelText:N,closable:x,disabledScroller:b,withDecorator:j,childrenRef:w,...B}=e;return{...B,icon:null,centered:!0,title:null,maskClosable:!!B.hasOwnProperty("maskClosable")&&B.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:p,className:i()(d,r.modal,r[m],{[r["right-options-modal"]]:t}),...y(m,!(null===n&&!s)),children:(0,_.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:j,title:h,closable:x,onClose:p,onConfirm:u,confirmText:f,onCancel:g,cancelText:N,footer:n,footerButtons:s,rightOptions:t,rightSpan:l,disabledScroller:b,children:o,childrenRef:w})})}},j=()=>{const{modal:e}=n.App.useApp(),o=(0,l.useRef)(null);return t=>{const l={},{children:n,...s}=b({onClose:()=>l.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:n});return l.close=i,l}},w=()=>{const{modal:e}=n.App.useApp();return o=>{const t={},{type:l,icon:s,title:a,danger:c,wrapClassName:m,message:h,iconSetting:p={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},p);if(e[l]){const{destroy:o}=e[l]({...f,icon:null,wrapClassName:i()(r["confirm-modal-wrap"],m,{[r["is-danger"]]:c}),title:(0,_.jsx)(n.Space,{orientation:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,_.jsxs)(n.Space,{size:0,align:"start",className:r.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||g["confirm"===l?u:l]}):null,a]})}),content:(0,_.jsxs)(n.Space,{size:0,align:"start",className:i()(r.content,{[r["has-title"]]:a}),children:[!a&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===l?u:l}`),type:s||g["confirm"===l?u:l]}):null,h]})});t.close=o}return t}},B=e=>{let{size:o="default",...t}=e;const s=(0,l.useRef)(null);return(0,_.jsx)(n.Modal,{...b(Object.assign({},t,{size:o,childrenRef:s}))})},v=e=>{let{items:o,className:t,activeKey:l,withDecorator:s,defaultActiveKey:r,onChange:a,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.jsx)(n.Tabs,{items:o.map(o=>{let{withDecorator:l,...n}=o;return Object.assign({},n,{children:"function"===typeof l?l(o=>e(Object.assign({},t,o,{children:n.children}))):e(Object.assign({},t,{children:n.children}))})}),destroyInactiveTabPane:!0,activeKey:l,defaultActiveKey:r,onChange:a});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},k=e=>(0,_.jsx)(B,{...v(e)}),K=()=>{const e=j();return o=>e(v(o))};var T=t(73025);const P=e=>{const o=K();return e.api?(0,_.jsx)(T.A,{...e,modalFunc:o}):(0,_.jsx)(n.Button,{...e,onClick:()=>{o(e.modalProps)}})},S=e=>{const o=j();if(!e.api){const{modalProps:t,...l}=e;return(0,_.jsx)(n.Button,{...l,onClick:()=>{o(t)}})}return(0,_.jsx)(T.A,{...e,modalFunc:o})}},46733(){}}]);
|
|
2
|
-
//# sourceMappingURL=3771.e50184d9.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kne_components_components_core=globalThis.webpackChunk_kne_components_components_core||[]).push([[2908,4302,6763],{18411(e,t,n){n.d(t,{A:()=>i});n(73884);const i=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},97211(e,t,n){n.d(t,{A:()=>i.withOSSFile});var i=n(92455)},40438(e,t,n){n.r(t),n.d(t,{default:()=>b});var i=n(87558),a=n(97211),o=n(64671),r=n(83136),s=n.n(r),l=n(55199),c=n(73884);const d=e=>{let{params:t}=e;const{data:n}=t;return new Promise((e,t)=>{const i=new window.Image;i.src=n,i.addEventListener("load",()=>{e(n)}),i.addEventListener("error",e=>{t(e)})})},u="style_img-outer__4QLY5__NN-KB",m="style_img__PSExq__NN-KB",g="style_loading__WCOwA__NN-KB",_="style_error__+ECgZ__NN-KB";var f=n(18411),p=n(72752),v=n(70579);const h=e=>{let{data:t,className:n,alt:a,innerLoading:r,loading:c=(0,v.jsx)(l.Skeleton.Avatar,{shape:"square",active:!0}),error:u=(0,v.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:g,children:_,onClick:f,staticUrl:h}=e;const{staticUrl:N}=(0,p.usePreset)(),x=h||N||"";return(0,v.jsx)(i.default,{loader:d,params:{data:/^https?:\/\//.test(t)?t:x+t},error:g||u,loading:r||c,render:e=>{let{data:t}=e;return"function"===typeof _?_({alt:a,className:s()(n,m),src:t}):(0,v.jsx)("img",{alt:a,className:s()(n,m),src:t,onClick:f})}})},N=(0,a.A)(h),x=e=>{let{loading:t,error:n,src:i,id:a,alt:o,className:r,children:s,apis:l,onClick:d}=e;const u=t&&(0,c.cloneElement)(t,{className:g}),m=n&&(0,c.cloneElement)(n,{className:_});return i?(0,v.jsx)(h,{alt:o,className:r,data:i,loading:u,error:m,onClick:d,children:s}):a?(0,v.jsx)(N,{alt:o,className:r,id:a,loading:u,innerLoading:u,error:m,innerError:m,apis:l,onClick:d,children:s}):m},y=e=>{let{id:t,src:n,alt:i,onClick:a,loading:r=(0,v.jsx)(l.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,v.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:d,apis:m,...g}=e;return(0,v.jsx)("div",{...g,"data-testid":"components-core-image",className:s()(d,u),children:x({loading:r,error:c,src:n,id:t,alt:i,className:d,apis:m,onClick:a})})};y.Avatar=e=>{let{id:t,src:n,alt:i,gender:a,loading:r=(0,v.jsx)(l.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,v.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:d,gap:m,icon:g,children:_,shape:p,size:h=100,width:N,height:y,defaultAvatar:b=f.A,apis:j,...w}=e;const K=(()=>{const e=N&&y?{style:{width:N,height:y}}:{size:h};if(N&&N!==y&&(p="square"),t||n)return x({loading:r,error:c,src:n,defaultAvatar:b,id:t,alt:i,className:d,apis:j,children:t=>(0,v.jsx)(l.Avatar,{...t,gap:m,shape:p,...e})});if(a){const t=a&&["F","female","f"].indexOf(a)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,v.jsx)(l.Avatar,{...w,src:(0,v.jsx)(o.default,{role:"touxiang",colorful:!0,type:t}),gap:m,shape:p,...e})}return(0,v.jsx)(l.Avatar,{...w,gap:m,icon:g,shape:p,size:h,src:b,...e,children:_})})();return(0,v.jsx)("div",{...w,"data-testid":"components-core-image-avatar",className:s()(d,u),style:{width:N&&y?N:h,height:N&&y?y:h},children:K})};const b=y},62243(e,t,n){n.r(t),n.d(t,{default:()=>B,mobileBreakpoint:()=>w,navigationHeight:()=>j});var i=n(55199),a=n(1919),o=n(94679),r=n(33097),s=n.n(r),l=n(73884),c=n(83136),d=n.n(c);const u=n.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var m=n(40438),g=n(52526);const _={defaultTitle:"KneUnion",indexLabel:"\u9996\u9875",overflowedIndicator:"\u66f4\u591a"},f={defaultTitle:"KneUnion",indexLabel:"Home",overflowedIndicator:"More"},p=(0,g.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":_,"en-US":f},namespace:"Navigation"});var v=n(96418),h=n(62061),N=n(64671);const x={"navigation-wrap":"style_navigation-wrap__VF8x2__NN-KB",navigation:"style_navigation__60RrS__NN-KB",logo:"style_logo__lB9RC__NN-KB","is-fixed":"style_is-fixed__kHFWj__NN-KB","navigation-logo":"style_navigation-logo__q9qHu__NN-KB","navigation-list":"style_navigation-list__EYtkg__NN-KB","navigation-options":"style_navigation-options__0BdJU__NN-KB","menu-overlay":"style_menu-overlay__zU-vZ__NN-KB","more-icon":"style_more-icon__gNMnt__NN-KB","is-mobile":"style_is-mobile__vEvyK__NN-KB","navigation-mobile-menu":"style_navigation-mobile-menu__aVFBD__NN-KB","navigation-mobile-title":"style_navigation-mobile-title__Zm6bU__NN-KB","mobile-menu-trigger":"style_mobile-menu-trigger__xStQw__NN-KB","mobile-dropdown-content":"style_mobile-dropdown-content__QqoTK__NN-KB","mobile-dropdown-header":"style_mobile-dropdown-header__+J+zD__NN-KB","dropdown-title":"style_dropdown-title__CK7t4__NN-KB","mobile-dropdown-options":"style_mobile-dropdown-options__KiM0z__NN-KB"};var y=n(70579);const{Header:b}=i.Layout,j=48,w=768,K=e=>{let{name:t,mapping:n,defaultTitle:i}=e;const a=(0,l.useRef)({mapping:n,defaultTitle:i});return(0,l.useEffect)(()=>{const e=s()(a.current.mapping.get(t),"title");document.title=(e?e+"-":"")+a.current.defaultTitle},[t]),null},k=e=>{let{onReady:t}=e;const n=(0,v.default)(t);return(0,l.useEffect)(()=>{n()},[n]),null},A=p(e=>{let{permissions:t=[],list:n=[],headerLogo:r,rightOptions:c,isFixed:_=!0,showIndex:f=!0,indexLabel:p,defaultTitle:v,overflowedIndicator:j,base:A="",onChange:B,className:C,navigateTo:E,isMobile:T}=e;const{formatMessage:L}=(0,g.useIntl)(),S=(0,l.useMemo)(()=>new Map(n.map(e=>{let{key:t,...n}=e;return[t,n]})),[n]),z=(0,o.useNavigate)(),O="function"===typeof E?E:z,R=(0,o.useLocation)(),M=(0,l.useRef)(),q=(0,l.useRef)(null),[F,I]=(0,l.useState)("\u66f4\u591a"),[H,U]=(0,l.useState)(!1),[P,W]=(0,l.useState)(!1),[D,Q]=(0,l.useState)(!1),Z=e=>{const t=e?e.getBoundingClientRect().width:window.innerWidth;void 0===T&&(W(t<w),!P&&t<w&&Q(!1))},J=(0,h.default)(Z);(0,l.useEffect)(()=>{Z(J.current)},[]);const V=R.pathname.replace(new RegExp(`^${A}`),"").split("/")[1],Y=V?s()(Array.from(S.entries()).find(e=>{let[n,{path:i,permission:a}]=e;return-1!==("function"===typeof i?i(a,t):i).indexOf("/"+V)}),"[0]"):"home",$=void 0!==T?T:P;(0,l.useEffect)(()=>{const e=()=>{if(M.current){const e=M.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let i=0;i<e.length;i++){if(-1!==e[i].getAttribute("data-menu-id").indexOf(Y)){t=!0;break}}let n=S.get(Y)&&!t?s()(S.get(Y),"title"):"";I(n)}},t={attributes:!0,childList:!0,subtree:!0};return H&&M&&M.current&&(e(),q.current&&q.current.disconnect(),q.current=new MutationObserver(e),q.current.observe(M.current,t)),()=>{q.current&&q.current.disconnect()}},[Y,S,H]);const G=!!f&&{label:p||L({id:"indexLabel"}),key:"home",onClick:()=>{B&&B("/"),setTimeout(()=>{O("/")},0)}};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(K,{defaultTitle:v||L({id:"defaultTitle"}),mapping:S,name:Y}),(0,y.jsx)("div",{className:d()(x["navigation-wrap"],C,{[x["is-mobile"]]:$}),children:(0,y.jsx)("div",{ref:J,className:d()("navigation",x.navigation,{[x["is-fixed"]]:_}),children:(0,y.jsx)(b,{children:(0,y.jsxs)(i.Row,{wrap:!1,children:[$&&(0,y.jsx)(i.Col,{className:d()(x["navigation-mobile-menu"],"navigation-mobile-menu"),children:(0,y.jsx)(i.Dropdown,{placement:"bottomLeft",trigger:["click"],open:D,onOpenChange:Q,dropdownRender:e=>(0,y.jsxs)("div",{className:x["mobile-dropdown-content"],children:[e,c&&(0,y.jsx)("div",{className:x["mobile-dropdown-options"],children:c})]}),menu:{selectedKeys:[Y],items:[G,...Array.from(S.entries()).filter(e=>{let[n,{permission:i}]=e;if("string"===typeof i)return t.indexOf(i)>-1;if("function"===typeof i)return i(t);if(Array.isArray(i)){for(let e of i)if(t.indexOf(e)>-1)return!0;return!1}return!0}).map(e=>{let[n,{title:a,icon:o,path:r,permission:s}]=e;const l="function"===typeof r?r(s,t):r;return{label:o?(0,y.jsxs)(i.Flex,{gap:8,align:"center",children:[o,(0,y.jsx)("span",{children:a})]}):a,key:n,onClick:()=>(e=>{Q(!1),B&&B(e),setTimeout(()=>{O(e)},0)})(l)}})]},children:(0,y.jsx)("div",{className:d()(x["mobile-menu-trigger"],"mobile-menu-trigger"),children:(0,y.jsx)(a.A,{})})})}),!$&&(0,y.jsx)(i.Col,{className:d()("navigation-logo",x["navigation-logo"]),children:(0,y.jsx)(m.default,{className:d()(x.logo),alt:"logo",...Object.assign({},r||{src:u})})}),!$&&(0,y.jsxs)(i.Col,{ref:M,flex:1,className:d()("navigation-list",x["navigation-list"]),children:[(0,y.jsx)(k,{onReady:()=>{U(!0)}}),(0,y.jsx)(i.Menu,{className:d()(x["main-menu"],"navigation-main-menu"),selectedKeys:[Y],mode:"horizontal",overflowedIndicator:j||(0,y.jsxs)(i.Space,{size:4,children:[(0,y.jsx)("span",{children:F||L({id:"overflowedIndicator"})}),(0,y.jsx)("span",{className:x["more-icon"],children:(0,y.jsx)(N.default,{type:"icon-arrow-thin-down"})})]}),items:[G,...Array.from(S.entries()).filter(e=>{let[n,{permission:i}]=e;if("string"===typeof i)return t.indexOf(i)>-1;if("function"===typeof i)return i(t);if(Array.isArray(i)){for(let e of i)if(t.indexOf(e)>-1)return!0;return!1}return!0}).map(e=>{let[n,{title:a,icon:o,path:r,permission:s}]=e;const l="function"===typeof r?r(s,t):r;return{label:o?(0,y.jsxs)(i.Flex,{gap:8,children:[o,(0,y.jsx)("span",{children:a})]}):a,key:n,onClick:()=>{B&&B(l),setTimeout(()=>{O(l)},0)}}})]})]}),$&&(0,y.jsx)(i.Col,{className:x["navigation-mobile-title"],children:v||L({id:"defaultTitle"})}),!$&&(0,y.jsx)(i.Col,{className:x["navigation-options"],children:c})]})})})})]})}),B=A},1919(e,t,n){n.d(t,{A:()=>s});var i=n(58168),a=n(73884);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};var r=n(51835);const s=a.forwardRef(function(e,t){return a.createElement(r.A,(0,i.A)({},e,{ref:t,icon:o}))})}}]);
|
|
2
|
-
//# sourceMappingURL=4302.77e57d61.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kne_components_components_core=globalThis.webpackChunk_kne_components_components_core||[]).push([[4474],{34699(e,t,a){a.r(t),a.d(t,{Download:()=>d,FileButton:()=>v,FileLink:()=>j,List:()=>N,OptionButtons:()=>_,PrintButton:()=>l.PrintButton,default:()=>l.default,download:()=>l.download,downloadBlobFile:()=>l.downloadBlobFile,useDownload:()=>l.useDownload,useFileModal:()=>y});a(64674);var n=a(96418),l=a(92455),s=a(3382),r=a(83136),o=a.n(r),i=a(70579);l.Download.useDownload=l.useDownload,l.Download.downloadBlobFile=l.downloadBlobFile;const d=l.Download;var c=a(26304),u=a.n(c),p=a(74065),m=a.n(p),h=a(96252);const g=e=>({"en-US":()=>a.e(5645).then(a.bind(a,75645)),"zh-CN":()=>a.e(6707).then(a.bind(a,26707))}[e]());var f=a(47458);const x=e=>{let{apis:t}=e;const a=(0,h.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=a({size:"small",title:(0,i.jsx)(f.IntlProvider,{importMessages:g,moduleName:"File",children:(0,i.jsx)(f.FormattedMessage,{id:"editDocumentName",moduleName:"File"})}),formProps:{data:{name:u()(e.filename.split(".")).join(".")},onSubmit:async a=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},a,{name:`${a.name}.${m()(e.filename.split("."))}`}),item:e})))&&n.close()}},children:(0,i.jsx)(h.default,{column:1,list:[(0,i.jsx)(h.Input,{name:"name",label:(0,i.jsx)(f.IntlProvider,{importMessages:g,moduleName:"File",children:(0,i.jsx)(f.FormattedMessage,{id:"documentName",moduleName:"File"})}),rule:"REQ LEN-0-100"})]})})}},_=e=>{var t;const a=x({apis:e.apis});return(0,i.jsx)(l.FileListOptionButtons,{...e,onEdit:t=>a(t,e.apis),onDelete:null===(t=e.apis)||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof e.renderModal?e.renderModal:e=>{let{onCancel:t,...a}=e;return(0,i.jsx)(s.default,{...Object.assign({},a),onClose:t})}})},N=e=>{let{apis:t,...a}=e;const n=x({apis:t});return(0,i.jsx)(l.FileList,{...a,apis:t,onEdit:e=>n(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof a.renderModal?a.renderModal:e=>{let{onCancel:t,...a}=e;return(0,i.jsx)(s.default,{...Object.assign({},a),onClose:t})}})},v=e=>(0,i.jsx)(l.FileButton,{...Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t,...a}=e;return(0,i.jsx)(s.default,{...Object.assign({},a),onClose:t})}}})}),j=e=>{const{className:t,...a}=Object.assign({},e);return(0,i.jsx)(v,{...a,className:o()(t,"btn-no-padding"),type:"link",children:a.children||a.filename||a.originName})},y=e=>{const{title:t,children:a,footer:r}=(0,l.useFileModalProps)(Object.assign({},e)),o=(0,s.useModal)();return(0,n.default)(()=>o({title:t,children:a,footer:r}))}},24474(e,t,a){a.r(t),a.d(t,{DragArea:()=>M,DragAreaOuter:()=>P,DragButton:()=>C,FileUpload:()=>E,Title:()=>N,UploadButton:()=>w,UploadTips:()=>I,default:()=>O});var n=a(73884),l=a(33097),s=a.n(l),r=a(55199);const o={"file-list-title":"style_file-list-title__zXM5r__NN-KB",container:"style_container__P4RaF__NN-KB","file-preview-inner":"style_file-preview-inner__cvE72__NN-KB","file-preview":"style_file-preview__M-Asq__NN-KB","drag-area":"style_drag-area__Q+lm7__NN-KB","upload-drag-close":"style_upload-drag-close__u5o8W__NN-KB","upload-drag-tips":"style_upload-drag-tips__z7puZ__NN-KB","upload-drag-icon":"style_upload-drag-icon__sGGoS__NN-KB","upload-drag-title":"style_upload-drag-title__9Afmb__NN-KB","upload-drag-text":"style_upload-drag-text__o38vS__NN-KB","list-item-outer":"style_list-item-outer__qfopH__NN-KB","list-item":"style_list-item__QUzqW__NN-KB",split:"style_split__8HVlD__NN-KB",loading:"style_loading__OSlYB__NN-KB","list-options":"style_list-options__4l3QJ__NN-KB","list-time":"style_list-time__canbk__NN-KB","title-group":"style_title-group__8IJkS__NN-KB","upload-btn":"style_upload-btn__Q+Jxn__NN-KB","total-count":"style_total-count__z1fyd__NN-KB","file-select":"style_file-select__mHqyI__NN-KB","file-name":"style_file-name__QkvMn__NN-KB","file-select-info":"style_file-select-info__fOLiM__NN-KB","file-select-option":"style_file-select-option__AbDrD__NN-KB"};var i=a(75087),d=a(74065),c=a.n(d),u=a(57469),p=a.n(u),m=a(64671),h=a(34699),g=a(47458),f=a(83136),x=a.n(f),_=a(70579);const N=e=>{let{currentTab:t,setCurrentTab:a,previewMap:n,previewList:l,getPermission:s,currentPreviewFileId:d,setCurrentPreviewFileId:u,itemApis:f,children:N,maxWidth:v=260,getPopupContainer:j}=e;return(0,_.jsx)("div",{className:o["file-list-title"],children:(0,_.jsxs)(r.Row,{align:"middle",justify:"space-between",wrap:!0,children:[(0,_.jsx)(r.Col,{children:(0,_.jsxs)(r.Space,{className:x()(o["title-group"],"core-file-list-title-group"),size:4,wrap:!0,children:[(0,_.jsx)(r.Segmented,{value:t,onChange:a,options:[{label:(0,_.jsxs)(r.Space,{size:4,children:[(0,_.jsx)(m.default,{type:"icon-shitu-liebiao"}),(0,_.jsx)(g.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,_.jsxs)(r.Space,{size:4,children:[(0,_.jsx)(m.default,{type:"icon-shitu-yulan"}),(0,_.jsx)(g.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&d&&n.get(d)&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(r.Select,{className:o["file-select"],variant:"borderless",popupMatchSelectWidth:!1,value:d,onChange:u,getPopupContainer:j,children:l.map(e=>{let{filename:t,userName:a,date:n,id:l}=e;return(0,_.jsx)(r.Select.Option,{className:o["file-select-option"],value:l,children:(0,_.jsxs)(r.Space,{direction:"vertical",children:[(0,_.jsxs)(r.Space,{size:4,align:"start",children:[(0,_.jsx)(i.default,{type:c()(t.split(".")),size:14}),(0,_.jsx)(r.Typography.Text,{className:o["file-name"],ellipsis:!0,style:{"--max-width":`${v}px`},children:t})]}),a||n?(0,_.jsxs)(r.Space,{className:o["file-select-info"],size:24,children:[(0,_.jsxs)("div",{children:[(0,_.jsx)(g.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",a]}),(0,_.jsxs)("div",{children:[(0,_.jsx)(g.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&p()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},l)})}),(0,_.jsx)(h.OptionButtons,{hasPreview:!1,getPermission:s,item:n.get(d),apis:f}),(0,_.jsx)("div",{className:o["total-count"],children:(0,_.jsx)(g.FormattedMessage,{id:"totalCount",values:{count:l.length},moduleName:"FileList"})})]})]})}),(0,_.jsx)(r.Col,{children:N})]})})},v=e=>({"en-US":()=>a.e(3333).then(a.bind(a,63333)),"zh-CN":()=>a.e(8795).then(a.bind(a,48795))}[e]());var j=a(70720);const y=(0,n.createContext)({}),{Provider:S}=y,b=()=>(0,n.useContext)(y);var A=a(92455),F=a(81348);const C=e=>{let{children:t}=e;const{onOpenChange:a,getDragButtonEl:n}=b();return(0,_.jsx)("div",{ref:n,className:o["upload-btn"],onClick:()=>{a(e=>!e)},children:(0,_.jsxs)(r.Button,{type:"text",className:"btn-no-padding",children:[(0,_.jsx)(m.default,{type:"icon-tuozhuaishangchuan"}),t||(0,_.jsx)(g.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},w=e=>{let{children:t}=e;const{accept:a,onFileSelected:n}=b();return(0,_.jsx)(A.FileInput,{className:x()(o["upload-btn"],"btn-no-padding"),accept:a,multiple:!0,onChange:n,children:e=>{let{children:a,...n}=e;return(0,_.jsxs)(r.Button,{...n,type:"text",children:[(0,_.jsx)(m.default,{type:"icon-tianjia"}),t,a]})}})},P=e=>{let{title:t,accept:a=[".png",".jpg",".pdf",".docx",".doc"],fileSize:l=20,maxLength:s,onFileSelected:i,children:d,className:c,defaultOpen:u=!1}=e;const[p,m]=(0,n.useState)(u),h=(0,n.useRef)(null),f=(0,j.default)(e=>{h.current&&(h.current.contains(e.target)||e.target===h.current||m(!1))});return(0,_.jsx)(g.IntlProvider,{importMessages:v,moduleName:"FileList",children:(0,_.jsx)(S,{value:{open:p,onOpenChange:m,accept:a,fileSize:l,maxLength:s,onFileSelected:i,getDragButtonEl:e=>{h.current=e}},children:(0,_.jsxs)(r.Flex,{className:o["file-list-outer"],gap:8,vertical:!0,children:[t,(0,_.jsx)("div",{className:x()(o.container,c),ref:f,onDragEnter:()=>{m(!0)},children:d})]})})})},I=e=>{let{icon:t,title:a,renderTips:n=e=>e}=e;const{accept:l,fileSize:s,maxLength:r}=b(),i=n((0,g.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:l.map(e=>e.replace(/^\./,"")).join("\u3001"),size:s}),{fileSize:s,maxLength:r,accept:l});return(0,_.jsxs)("div",{className:x()(o["upload-drag-tips"],"upload-drag-tips"),children:[(0,_.jsx)("div",{className:o["upload-drag-icon"],children:t||(0,_.jsx)(m.default,{type:"icon-shangchuan",size:64})}),(0,_.jsx)("div",{className:o["upload-drag-title"],children:a||(0,_.jsx)(g.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,_.jsx)("div",{className:o["upload-drag-text"],children:i})]})},M=e=>{let{children:t=(0,_.jsx)(I,{}),className:a}=e;const{open:n,accept:l,onOpenChange:s,onFileSelected:i}=b();return n?(0,_.jsxs)("div",{className:x()(o["drag-area"],a),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;s(!1);const t=Array.from(e.dataTransfer.files).filter(e=>(0,F.A)(e,l));i(t)},onDragEnd:()=>{s(!1)},children:[(0,_.jsx)(r.Button,{className:o["upload-drag-close"],type:"text",shape:"circle",size:"small",icon:(0,_.jsx)(m.default,{type:"icon-close-bold"}),onClick:()=>{s(!1)}}),t]}):null};var T=a(50196),B=a(72752);const k=e=>{var t,a;let{className:l,maxLength:i=Number.MAX_VALUE,list:d,setList:c,infoItemRenders:u,defaultTab:p="list",defaultPreviewFileId:m,apis:f,getPermission:x=()=>!0,titleExtra:v=null,fileSize:j=20,accept:y=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:S}=e;const{apis:b}=(0,B.usePreset)(),F=Object.assign({},b,f),I=(d||[]).map(e=>Object.assign({},{id:e.ossId},e)),{fileList:k,onFileSelected:O}=(0,A.useFileUpload)({maxLength:i,multiple:!0,value:I,onChange:c,concurrentCount:1,onAdd:()=>{E("list")},onSave:async function(e){if("function"===typeof F.onSave){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];const l=await F.onSave(e,...a);return Object.assign({},{id:null===l||void 0===l?void 0:l.ossId},l)}return s()(e,"data")||{}},onUpload:F.onUpload||F.ossUpload}),[L,E]=(0,n.useState)(p),{formatMessage:D}=(0,g.useIntl)({moduleName:"FileList"}),{message:R}=r.App.useApp(),z=(0,n.useMemo)(()=>new Map(I.map(e=>[e.id,e])),[I]),[U,K]=(0,n.useState)(m||s()(I,"[0].id",null));(0,n.useEffect)(()=>{U&&z.get(U)||K(s()(I,"[0].id",null))},[I,z,U]);const $={...F,onPreview:e=>{K(e.id),E("preview")},onDelete:async e=>{F.onDelete&&!1===await F.onDelete(e)||(c(t=>{const a=t.slice(0),n=t.findIndex(t=>{let{id:a}=t;return a===e.id});return n>-1&&a.splice(n,1),a}),R.success(D({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:a}=e;const n=F.onEdit&&await F.onEdit({formData:t,item:a});return!1!==n&&(c(e=>{const n=e.slice(0),l=e.findIndex(e=>{let{id:t}=e;return t===a.id});return l>-1&&n.splice(l,1,Object.assign({},a,{filename:t.name})),n}),R.success(D({id:"successEditFileName"},{name:a.filename}))),n}},V="function"===typeof v?v({currentPreviewFileId:U,currentTab:L}):v;return(0,_.jsx)("div",{className:l,children:(0,_.jsxs)(P,{title:(0,_.jsx)(N,{currentTab:L,setCurrentTab:E,previewMap:z,previewList:I,getPermission:x,currentPreviewFileId:U,setCurrentPreviewFileId:K,itemApis:$,getPopupContainer:S,children:(0,_.jsxs)(r.Space,{separator:(0,_.jsx)(r.Divider,{type:"vertical"}),children:[V,x("add",{})?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(C,{children:D({id:"dragText"})}),(0,_.jsx)(w,{children:D({id:"uploadFile"})})]}):null]})}),fileSize:j,maxLength:i,onFileSelected:O,accept:y,defaultOpen:0===I.length,children:["list"===L?(0,_.jsx)(h.List,{dataSource:[...I,...k],getPermission:x,apis:$,infoItemRenders:u}):null,"preview"===L?U?(0,_.jsx)("div",{className:o["file-preview-inner"],children:(0,_.jsx)(T.default,{className:o["file-preview"],src:null===(t=z.get(U))||void 0===t?void 0:t.src,id:U,apis:F,filename:null===(a=z.get(U))||void 0===a?void 0:a.filename})}):(0,_.jsx)(r.Empty,{image:r.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,_.jsx)(M,{})]})})},O=e=>(0,_.jsx)(g.IntlProvider,{importMessages:v,moduleName:"FileList",children:(0,_.jsx)(k,{...e})});var L=a(10986);const E=e=>{let{maxLength:t=Number.MAX_VALUE,apis:a,getPermission:n=()=>!0,fileSize:l=20,accept:o=[".png",".jpg",".pdf",".docx",".doc"],defaultList:i=[],...d}=e;const{apis:c}=(0,B.usePreset)(),u=Object.assign({},c,a),[p,m]=(0,L.default)({defaultList:i,...d},{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:f,onFileSelected:x}=(0,A.useFileUpload)({maxLength:t,multiple:!0,value:p,onChange:m,concurrentCount:1,onSave:async function(e){if("function"===typeof u.onSave){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];const l=await u.onSave(e,...a);return Object.assign({},{id:null===l||void 0===l?void 0:l.ossId},l)}return s()(e,"data")||{}},onUpload:u.ossUpload});return(0,_.jsxs)(P,{title:(0,_.jsxs)(r.Row,{children:[(0,_.jsx)(r.Col,{flex:1}),(0,_.jsx)(r.Col,{children:(0,_.jsxs)(r.Space,{split:(0,_.jsx)(r.Divider,{type:"vertical"}),children:[(0,_.jsx)(C,{}),(0,_.jsx)(w,{children:(0,_.jsx)(g.IntlProvider,{importMessages:v,moduleName:"FileList",children:(0,_.jsx)(g.FormattedMessage,{id:"upload",moduleName:"FileList"})})})]})})]}),fileSize:l,maxLength:t,onFileSelected:x,accept:o,children:[(0,_.jsx)(h.List,{dataSource:[...f,...p],getPermission:n,apis:u}),(0,_.jsx)(M,{})]})}},50196(e,t,a){a.r(t),a.d(t,{AudioPreview:()=>n.AudioPreview,HtmlPreview:()=>n.HtmlPreview,ImagePreview:()=>n.ImagePreview,OSSFilePreview:()=>n.OSSFilePreview,OfficePreview:()=>n.OfficePreview,PdfPreview:()=>n.PdfPreview,TextPreview:()=>n.TextPreview,UnknownPreview:()=>n.UnknownPreview,VideoPreview:()=>n.VideoPreview,default:()=>n.FilePreview});a(64674);var n=a(92455)},45053(e,t,a){a.d(t,{A:()=>u});var n=a(98434),l=a(55199),s=a(73884),r=a(83136),o=a.n(r),i=a(70720),d=a(47094),c=a(70579);const u=e=>{let{name:t,groupName:a,overlayClassName:r,errorRender:u=()=>null,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:a,groupIndex:l}=e;const{emitter:r,formState:o}=(0,n.useFormContext)(),i=(0,s.useRef)({name:t,groupName:a,groupIndex:l});i.current={name:t,groupName:a,groupIndex:l};const d=(0,s.useRef)(o);d.current=o;const[c,u]=(0,s.useState)(null);return(0,s.useEffect)(()=>{const e=r.addListener("form-field-validate-complete",e=>{let{id:t,validate:a}=e;const l=d.current[t];if(!l)return;const s=i.current;l.name!==s.name||s.groupName&&(l.groupName!==s.groupName||l.groupIndex!==s.groupIndex)||u(2===a.status?Object.assign({},a,{label:l.label,errMsg:n.util.compileErrMsg(a.msg,l.label)}):null)});return()=>{e&&e.remove()}},[r]),c})({name:t,groupName:a,groupIndex:p}),[g,f]=(0,s.useState)(!1),x=h&&g&&u(Object.assign({},h,{closeHover:()=>f(!1)})),_=(0,s.useRef)(null),N=(0,s.useRef)(null);(0,i.default)(()=>{f(!1)}).current={contains:e=>_.current.contains(e)||N.current&&N.current.contains(e)};const[v,j]=(0,s.useState)(0);return(0,s.useLayoutEffect)(()=>{const e=()=>{const e=_.current.querySelector(".react-form__field-component");e&&j(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(_.current);const a=new MutationObserver(e);return a.observe(_.current,{subtree:!0,childList:!0}),()=>{a.disconnect(),t.disconnect()}},[]),(0,c.jsx)(l.Popover,{open:!!x,rootClassName:o()(r,d.A["error-tip-overlay"]),content:x&&(0,c.jsx)("div",{ref:N,style:{width:v},className:o()(d.A["error-tip-overlay-content"]),children:x}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,c.jsx)("div",{className:o()("error-tip"),ref:_,onMouseEnter:()=>{f(!0)},children:m})})}},85696(e,t,a){a.d(t,{A:()=>h});var n=a(73884),l=a(72752),s=a(33097),r=a.n(s),o=a(64261),i=a(46237),d=a(36045),c=a(46732),u=(a(39825),a(70188)),p=a(70579);const m=e=>{let{children:t}=e;const[a,s]=(0,n.useState)(!1),i=(0,l.usePreset)(),d=(0,l.useGlobalValue)("locale"),c=r()(i,"formInfo",{});return(0,n.useEffect)(()=>{Promise.resolve((0,o.A)(c,{locale:d})).then(()=>{s(!0)})},[c,d]),a?(0,p.jsx)(n.Fragment,{children:t},d):null},h=(0,u.A)((0,n.forwardRef)((e,t)=>{let{helperGuideName:a,lang:n,...l}=e;return(0,p.jsx)(i.Ay,{value:n,children:(0,p.jsx)(c.K,{value:a,children:(0,p.jsx)(m,{children:(0,p.jsx)(d.Form,{...l,ref:t})})})})}))},35774(e,t,a){a.d(t,{A:()=>r});var n=a(98434),l=a(81014),s=a(70579);const r=e=>{let{onClick:t,...a}=e;const r=(0,n.useFormContext)();return(0,s.jsx)(l.default,{...a,onClick:e=>t(r,e)})}},48221(e,t,a){a.d(t,{Ay:()=>i,WJ:()=>c,Xy:()=>d});var n=a(25963),l=a(73025),s=a(47094),r=a(76995),o=a(70579);const i=e=>(0,o.jsx)(n.default,{...(0,r.A)(Object.assign({},e,{className:s.A["form-drawer"]}))}),d=()=>{const e=(0,n.useDrawer)();return t=>e({...(0,r.A)(Object.assign({},t,{className:s.A["form-drawer"]}))})},c=e=>{const t=d();return(0,o.jsx)(l.A,{...e,modalFunc:t})}},30891(e,t,a){a.d(t,{A:()=>l});var n=a(98434);const l=e=>{let{children:t}=e;const{openApi:a,formData:l}=(0,n.useFormContext)();return t({...a,formData:l})}},46237(e,t,a){a.d(t,{Ay:()=>i,oc:()=>o});var n=a(73884);const l=(0,n.createContext)([]),{Provider:s,Consumer:r}=l,o=()=>(0,n.useContext)(l),i=s},5995(e,t,a){a.d(t,{Ay:()=>d,Vl:()=>c,W6:()=>u});var n=a(3382),l=a(73025),s=a(55199),r=a(76995),o=a(47094),i=a(70579);const d=e=>(0,i.jsx)(n.default,{...(0,r.A)(Object.assign({},e,{className:o.A["form-modal"]}))}),c=()=>{const e=(0,n.useModal)();return t=>e({...(0,r.A)(Object.assign({},t,{className:o.A["form-modal"]}))})},u=e=>{let{classNames:t,...a}=e;const n=c();if(!a.api){const{modalProps:e,...t}=a;return(0,i.jsx)(s.Button,{...t,onClick:()=>{n(e)}})}return(0,i.jsx)(l.A,{...a,modalFunc:n})}},94005(e,t,a){a.d(t,{$X:()=>x,Ay:()=>f,Wp:()=>_});var n=a(3382),l=a(73884),s=a(98434),r=a(73025),o=a(47458),i=a(47094),d=a(55431),c=a(55199),u=a(76995),p=a(70579);const m="FormInfo",h=e=>{let{items:t,children:a}=e;const[n,s]=(0,l.useState)(0);return a({currentIndex:n,setCurrentIndex:s,stepCacheRef:(0,l.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},g=e=>{let{footerButtons:t,cancelText:a,completeText:n,nextText:l,items:r,withDecorator:g,autoClose:f=!0,...x}=e;return(0,u.A)(Object.assign({},x,{footerButtons:e=>{let{currentIndex:t,isLastStep:i}=e;const{footerButtons:c}=Object.assign({},r[t]);return c||[{children:(0,p.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:m,children:a||(0,p.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:m})}),ButtonComponent:s.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}):l||(0,p.jsx)(o.FormattedMessage,{id:"Next",moduleName:m})}),ButtonComponent:s.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const a=t=>(0,p.jsx)(h,{items:r,children:a=>{var n;let{currentIndex:l,isLastStep:s,setCurrentIndex:o,currentProps:d,stepCacheRef:u}=a;const{formProps:m,title:h,...g}=d,{onSubmit:x,..._}="function"===typeof m?m(t):m,N=Object.assign({},_.data,null===(n=u.current[l])||void 0===n?void 0:n.data);return e(Object.assign({},t,g,{currentIndex:l,isLastStep:s,setCurrentIndex:o,stepCacheRef:u,stepSection:(0,p.jsx)(c.Steps,{className:i.A["form-step-section"],current:l,items:r.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},_,{key:l,data:N,onSubmit:async function(e){u.current[l]={data:e};for(var a=arguments.length,n=new Array(a>1?a-1:0),r=1;r<a;r++)n[r-1]=arguments[r];const i=x&&await x(e,Object.assign({},t,{currentIndex:l,isLastStep:s,setCurrentIndex:o,currentProps:d,stepCacheRef:u}),...n);return u.current[l]=Object.assign({},u.current[l],{output:i}),f&&!s&&!1!==i&&o(e=>e+1),!!s&&i}})}))}});return"function"===typeof g?g(a,t):a(t)},formProps:e=>{let{formProps:t,...a}=e;return Object.assign({},a,t)},children:e=>{let{children:t,stepSection:a,...n}=e;return(0,p.jsxs)(c.Flex,{vertical:!0,gap:24,children:[(0,p.jsx)(c.Flex,{justify:"center",children:a}),"function"===typeof t?t(n):t]})}}))},f=e=>(0,p.jsx)(n.default,{...g(Object.assign({},e,{className:i.A["form-modal"]}))}),x=()=>{const e=(0,n.useModal)();return t=>e({...g(Object.assign({},t,{className:i.A["form-modal"]}))})},_=e=>{const t=x();if(!e.api){const{modalProps:a,...n}=e;return(0,p.jsx)(c.Button,{...n,onClick:()=>{t(a)}})}return(0,p.jsx)(r.A,{...e,modalFunc:t})}},46732(e,t,a){a.d(t,{A:()=>c,K:()=>d});var n=a(75363),l=a(73884),s=a(98434),r=a(47094),o=a(70579);const i=(0,l.createContext)(""),{Provider:d}=i,c=e=>{let{name:t}=e;const a=(0,l.useContext)(i),d=(0,s.useGroup)();return a&&(0,o.jsx)(n.default,{className:r.A["helper-guide-field"],name:a+"-"+(d.name?d.name+"-":"")+t})}},18936(e,t,a){a.d(t,{A:()=>B});const n={"ant-tag":"style_ant-tag__7ct2q__NN-KB",overlay:"style_overlay__CXfU5__NN-KB",input:"style_input__+OpvV__NN-KB","is-disabled":"style_is-disabled__uX4qq__NN-KB","input-icon":"style_input-icon__E3NjK__NN-KB",large:"style_large__vMozz__NN-KB",small:"style_small__ubqQ+__NN-KB","input-inner":"style_input-inner__sY-6k__NN-KB","input-custom":"style_input-custom__Kxq3n__NN-KB","display-content":"style_display-content__qA1jn__NN-KB","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__NN-KB","selected-tag":"style_selected-tag__BZsMM__NN-KB","selected-tag-list":"style_selected-tag-list__As0ho__NN-KB","selected-tag-inner":"style_selected-tag-inner__2NH59__NN-KB","text-inner":"style_text-inner__Bq2Ji__NN-KB",placeholder:"style_placeholder__odotY__NN-KB","is-modal":"style_is-modal__4cj8L__NN-KB","overlay-content":"style_overlay-content__kpGRn__NN-KB"};var l=a(74981);const{context:s,useContext:r,Provider:o,Consumer:i}=(0,l.A)();var d=a(73884),c=a(10986),u=a(87558),p=a(33097),m=a.n(p),h=a(55199),g=a(83136),f=a.n(g),x=a(3382),_=a(64671),N=a(79686),v=a.n(N),j=a(41740),y=a.n(j),S=a(74065),b=a.n(S),A=a(17342),F=a(70579);const C=e=>{let{maxLength:t,single:a,setValue:n,value:l,message:s}=e;return e=>n(!a&&Number.isInteger(t)&&t>0&&e.length>t?(s(`\u6700\u591a\u9009\u62e9${t}\u4e2a`),l):e)},w=e=>{let{single:t,value:a,mapping:l,onClose:s}=e;return a&&Array.isArray(a)&&0!==a.length?t?(0,F.jsx)("span",{className:n["text-inner"],children:m()(l.get(a[0]),"label")||a[0]}):a.map(e=>{const t=l.get(e);return(0,F.jsx)(h.Tag,{className:n["display-tag"],closable:!0,onClose:a=>{a.preventDefault(),s(e,t)},children:(0,F.jsx)("span",{className:n["tag-inner"],children:m()(t,"label")||e})},e)}):null},P=(0,d.forwardRef)((e,t)=>{let{value:a,onChange:l,extra:s,showSelectedTag:r,renderSelectedContent:o,children:i,...c}=e;const[u,p]=(0,d.useState)(a),m=(0,d.useRef)(a);m.current=a;const[g,f]=(0,d.useState)(!1),{message:_}=h.App.useApp(),N=C({maxLength:c.maxLength,single:c.single,setValue:p,value:u,message:_.error});return(0,d.useEffect)(()=>{g&&p(m.current)},[g]),(0,d.useImperativeHandle)(t,()=>({modalOpen:()=>{f(!0)},close:()=>{f(!1)}})),(0,F.jsx)(x.default,{...c,open:g,onConfirm:()=>{l(u)},onClose:()=>{f(!1)},footer:(r||s)&&(0,F.jsxs)(h.Space,{direction:"vertical",className:n["overlay-footer"],children:[s&&(0,F.jsx)("div",{className:n["overlay-footer-extra"],children:s}),r&&o({value:u,setValue:N})]}),children:"function"===typeof i?i({value:u,setValue:N}):i})}),I=(0,d.forwardRef)((e,t)=>{let{value:a,setValue:l,children:s,renderSelectedContent:r,showSelectedTag:o,placement:i,inputContent:c,single:u,extra:p,overlayWidth:m,wrapClassName:g,...f}=e;const[x,_]=(0,d.useState)(!1);return(0,d.useImperativeHandle)(t,()=>({close:()=>{_(!1)}}),[]),(0,F.jsx)(h.Popover,{...f,open:x,onOpenChange:_,overlayClassName:n.overlay,arrow:!1,content:(0,F.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:n["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,F.jsx)("div",{className:n["overlay-inner"],children:"function"===typeof s?s({value:a,setValue:e=>{(!u||a[0]!==e[0])&&l(e),u&&_(!1)}}):s}),(o||p)&&(0,F.jsxs)("div",{className:n["overlay-footer"],children:[p&&(0,F.jsx)("div",{className:n["overlay-footer-extra"],children:p}),o&&r({value:a,setValue:l})]})]}),trigger:"click",placement:i,children:(0,F.jsx)("div",{className:n["input-inner"],children:c})})}),M=(0,u.withFetch)(e=>{let{setFetchApi:t,wrapClassName:a,...l}=e;const[s,o]=(0,d.useState)(!1),i=(0,d.useRef)(null),c=(0,d.useRef)(null),u=r(),{valueState:p,mapping:m,props:g}=u,[x,N]=p,{single:v,placement:j,getPopupContainer:y,placeholder:S,isPopup:b,disabled:C,showSelectedTag:M,extra:T,inputContent:B}=g,k=(0,d.useRef)(l);k.current=l,(0,d.useEffect)(()=>{t(Object.assign({},k.current,{data:l.data,isComplete:l.isComplete}))},[l.data,t,l.isComplete]);const O=w({single:v,value:x,mapping:m,onClose:e=>{N(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}}),L=e=>{let{value:t,setValue:a}=e;return(0,F.jsxs)(h.Space,{className:n["selected-tag"],align:"center",wrap:!0,children:[(0,F.jsxs)("div",{children:["\u5df2\u9009",!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,F.jsx)(A.A,{className:n["selected-tag-list"],children:(0,F.jsx)("div",{className:n["selected-tag-inner"],children:w({value:t,mapping:m,onClose:e=>{a(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}})})})]})},E=B?B(u):(0,F.jsxs)(h.Space,{className:n["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,F.jsx)("div",{children:O||(0,F.jsx)("span",{className:n.placeholder,children:S})}),s&&x&&x.length>0&&!C?(0,F.jsx)(_.default,{className:f()(n.close,n["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),N([])}}):(0,F.jsx)(_.default,{className:f()(n["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return b?(0,F.jsx)(I,{ref:c,overlayWidth:g.overlayWidth,value:x,setValue:N,single:v,inputContent:E,extra:"function"===typeof T?T({close:()=>c.current.close(),context:u}):T,renderSelectedContent:L,showSelectedTag:M,trigger:"click",placement:j,getPopupContainer:y,children:g.children}):(0,F.jsxs)("div",{className:n["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,F.jsx)(P,{size:g.modalSize,ref:i,single:g.single,maxLength:g.maxLength,disabledScroller:!0,wrapClassName:f()(n.overlay,n["is-modal"],a),title:g.placeholder,value:x,onChange:N,extra:"function"===typeof T?T({close:()=>i.current.close(),context:u}):T,showSelectedTag:M,renderSelectedContent:L,children:g.children}),E]})}),T=e=>{let{api:t,className:a,displayItems:l,wrapClassName:s,...r}=e;const[i,u]=(0,d.useState)(""),[p,g]=(0,d.useState)(new Map(l.map(e=>[e.value,e]))),[x,_]=(0,d.useState)({}),{message:N}=h.App.useApp(),j=e=>{const t=e.filter(e=>p.get(e.value)!==e);0!==t.length&&g(e=>{const a=y()(e);return t.forEach(e=>{a.set(e.value,e)}),a})},S=e=>((e,t,a)=>"all"!==a?e:(t(e),e.map(e=>e.value)))(r.single?v()(e)?[]:[e]:e||[],j,r.valueType),[A,w]=(0,c.default)(Object.assign({},r,{onChange:e=>{const t=((e,t,a)=>"all"!==a?e:e.map(e=>t.get(e)))(e,p,r.valueType);r.onChange&&r.onChange(r.single?b()(t):t)}},"value"in r?{value:S(r.value)}:{defaultValue:S(r.defaultValue)})),P=C({maxLength:r.maxLength,single:r.single,setValue:w,value:A,message:N.error});return(0,F.jsx)(o,{value:{mapping:p,searchText:i,setSearchText:u,appendMapping:j,setItems:e=>{x.setData(e),j(m()(r.dataFormat(e),"list",[]))},fetchApi:x,valueState:[A,P],props:r},children:(0,F.jsx)("div",{className:f()(n["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],a),children:(0,F.jsx)(M,{...t,wrapClassName:s,loading:null,setFetchApi:_,onRequestSuccess:e=>{j(m()(r.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};T.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},T.useContext=r;const B=T},76995(e,t,a){a.d(t,{A:()=>c});var n=a(98434),l=a(52526),s=a(83799),r=a(83136),o=a.n(r),i=a(47094),d=a(70579);const c=e=>{let{className:t,withDecorator:a,footerButtons:r,formProps:c,cancelText:u,saveText:p,autoClose:m=!0,...h}=e;return{...h,footerButtons:r||[{children:u||(0,d.jsx)(l.FormattedMessage,{id:"Cancel"}),ButtonComponent:n.CancelButton},{type:"primary",children:p||(0,d.jsx)(l.FormattedMessage,{id:"Save"}),ButtonComponent:n.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const n=t=>{const{onSubmit:a,key:n,...l}=Object.assign({},"function"===typeof c?c(t):c);return(0,d.jsx)(s.lV,{...l,onSubmit:async function(e){for(var n=arguments.length,l=new Array(n>1?n-1:0),s=1;s<n;s++)l[s-1]=arguments[s];!1!==(a&&await a(e,Object.assign({},t),...l))&&m&&t.close()},children:e(t)})};return"function"===typeof a?a(n,t):n(t)},className:o()(t,i.A["form-outer"])}}},1904(e,t,a){a.d(t,{A:()=>i,N:()=>d});var n=a(98434),l=a(43856);const{useOnChange:s,useDecorator:r}=n.hooks,o=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(l.AddressSelectField);o.Field=l.AddressSelectField,o.AddressEnum=l.AddressSelectField.AddressEnum,o.createAddressApi=l.AddressSelectField.createAddressApi,o.withAddressApi=l.AddressSelectField.withAddressApi;const i=o,d=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(l.AddressInputField);d.Field=l.AddressInputField},30096(e,t,a){a.d(t,{Ay:()=>c});var n=a(98434),l=a(43856);const{useOnChange:s}=n.hooks,r=e=>{const t=t=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=r(l.UserField),i=r(l.TableField),d=r(l.AdvancedSelectField);d.createdList=e=>{let{renderList:t,defaultProps:a}=e;return r((0,l.createListField)({renderList:t,defaultProps:a}))},d.User=o,d.Table=i;const c=d},96339(e,t,a){a.d(t,{A:()=>R});var n=a(73884),l=a(17508),s=a(40438),r=a(72752),o=a(3382),i=a(64671),d=a(55199),c=a(53202),u=a.n(c),p=a(33097),m=a.n(p),h=a(83136),g=a.n(h),f=a(51941),x=a(98434),_=a(34677),N=a.n(_);const v="style_upload-btn__-6XtP__NN-KB",j="style_square__UPkfA__NN-KB",y="style_is-loading__wx6Pd__NN-KB",S="style_upload-btn-tips__YtxWz__NN-KB",b="style_drop-tips__N-v59__NN-KB",A="style_preview-area__aV3SN__NN-KB";var F=a(18411),C=a(47458),w=a(55431),P=a(70579);const{useOnChange:I}=x.hooks,M=s.default.Avatar,T="FormInfo",B=(0,l.Ay)(e=>{let{className:t,icon:a,loading:n,value:l,gender:s,width:r,height:o,children:c,shape:u,defaultAvatar:p,displayAvatar:h,apis:f}=e;const x=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(M,{...Object.assign({},"function"===typeof h?h(l):{id:m()(l,"id")}),gender:s,width:64*r/o,height:64,shape:u,defaultAvatar:p,apis:f}),(0,P.jsx)("div",{className:S,children:a||(0,P.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,P.jsx)("div",{className:g()(t,v,{[y]:n,[j]:"square"===u||!(r&&r===o)}),style:{width:64*r/o},children:n?(0,P.jsx)(d.Spin,{children:x}):x})}),k=e=>{let t=e.split(","),a=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],l=atob(a),s=l.length,r=new Uint8Array(s);for(;s--;)r[s]=l.charCodeAt(s);return new Blob([r],{type:n})},O=(0,n.forwardRef)((e,t)=>{let{image:a,width:s,height:r,borderRadius:o,preview:c,fileSize:p,accept:m,renderTips:h,getApi:g,shape:x,border:_=1,...N}=e;const v=(0,C.useIntl)({moduleName:T}),[j,y]=(0,n.useState)(0),S=(0,n.useRef)(null),[F,w]=(0,n.useState)(a),[I,M]=(0,n.useState)(1),[B,O]=(0,n.useState)(0),[L,E]=(0,n.useState)(""),D=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>{y(2*S.current.clientWidth/3)},[]),g({getImage:()=>{const e=D.current.getImage(),t=document.createElement("canvas"),a=t.getContext("2d");return t.width=s,t.height=r,a.drawImage(e,0,0,t.width,t.height),new window.File([k(t.toDataURL())],F.name,{type:F.type})}});const R=()=>{E(D.current.getImage().toDataURL())},z=(0,f.useDebouncedCallback)(R,500);return(0,P.jsx)("div",{ref:S,children:(0,P.jsxs)(d.Row,{wrap:!1,align:"middle",children:[(0,P.jsx)(d.Col,{span:c?16:24,children:j&&(0,P.jsxs)(d.Space,{direction:"vertical",children:[(0,P.jsx)(u(),{...N,ref:D,image:F,scale:I,rotate:B,width:j-2*_,height:r*j/s-2*_*r/s,border:_,color:[0,0,0,.6],borderRadius:o*j/s,onImageReady:R,onImageChange:z}),(0,P.jsx)("div",{className:b,children:h(`${v.formatMessage({id:"PictureFormat"})}${m.map(e=>e.replace(/^\./,"")).join(" ")} ${v.formatMessage({id:"ImageSize"})}${v.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:v.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:v.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:()=>v.formatMessage({id:"Size"})},value:I,step:.05,min:.2,max:3,onChange:M})}),(0,P.jsx)(d.Col,{children:(0,P.jsx)(l.FI,{accept:m,onChange:e=>{e[0].size>1024*p*1024?d.message.error(v.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:p})):(O(0),M(1),w(e[0]))},children:v.formatMessage({id:"ReUpload"})})})]})]})}),c&&(0,P.jsx)(d.Col,{span:8,children:(0,P.jsx)("div",{className:A,children:(0,P.jsxs)(d.Space,{direction:"vertical",children:[(0,P.jsx)(d.Avatar,{src:L,shape:x,style:{width:j/2-36,height:(j/2-36)*r/s}}),(0,P.jsx)("div",{style:{textAlign:"center"},children:v.formatMessage({id:"Preview"})})]})})})]})})}),L=()=>{const e=(0,o.useModal)();return t=>{const{image:a,width:n,height:l,borderRadius:s,getApi:r,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:r,renderTips:c,width:n,height:l,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:s,image:a,border:u,scale:1,rotate:0})})}},E=(0,C.createWithIntl)({importMessages:w.A,moduleName:"FormInfo"})(e=>{var t;let{value:a,gender:l,fileSize:s=2,accept:o=[".jpg",".png",".jpeg"],openEditor:i=!0,apis:c,renderTips:u=e=>e,onChange:p,shape:m="circle",width:h=200,height:g=200,title:f=(0,P.jsx)(C.IntlProvider,{importMessages:w.A,moduleName:"FormInfo",children:(0,P.jsx)(C.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:x=1,icon:_,dropModalSize:v="small",defaultAvatar:j=F.A,displayAvatar:y}=e;const[S,b]=(0,n.useState)(!1),{apis:A}=(0,r.usePreset)(),I=N()({},A,c),M=I.ossUpload||I.upload||(null===(t=I.file)||void 0===t?void 0:t.upload),k=(0,n.useRef)(null),O=L(),E=(0,C.useIntl)({moduleName:T});return(0,P.jsx)(B,{value:a,gender:l,accept:o,width:h,height:g,shape:m,icon:_,loading:S,defaultAvatar:j,displayAvatar:y,apis:I,onChange:e=>{if(e[0].size>1024*s*1024)return void d.message.error(E.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:s}));const t=e=>(b(!0),M({file:e}).then(e=>{let{data:t}=e;0===t.code?p(t.data):d.message.error(E.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{b(!1)}));i?O({image:e[0],width:h,height:g,title:f,shape:m,border:x,dropModalSize:v,getApi:e=>k.current=e,fileSize:s,accept:o,renderTips:u,onConfirm:()=>{t(k.current.getImage())}}):t(e[0])}})}),D=e=>I(e)(E);D.Field=E,D.useDropModal=L;const R=D},83230(e,t,a){a.d(t,{A:()=>o});var n=a(98434),l=a(43856);const{useOnChange:s}=n.hooks,r=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(l.CascaderField);r.Field=l.CascaderField,r.createTreeUtils=l.createTreeUtils;const o=r},81026(e,t,a){a.d(t,{A:()=>o});var n=a(43856),l=a(98434);const{useOnChange:s}=l.hooks,r=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);r.Field=n.FunctionSelectField,r.Enum=n.FunctionSelectField.Enum;const o=r},78756(e,t,a){a.d(t,{A:()=>o});var n=a(43856),l=a(98434);const{useOnChange:s}=l.hooks,r=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);r.Field=n.IndustrySelectField,r.Enum=n.IndustrySelectField.Enum;const o=r},15209(e,t,a){a.d(t,{A:()=>d});var n=a(55199),l=a(10986),s=a(13050),r=a(70579);const o=e=>{let{...t}=e;const[a,s]=(0,l.default)(t);return(0,r.jsx)(n.Input,{...t,value:a,onChange:e=>{s(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},i=(0,s.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t,...a}=e;const[n]=t,{hooks:l}=n,{useDecorator:s}=l;return s(Object.assign({placeholder:`\u8bf7\u8f93\u5165${a.label||""}`},a))(o)});i.field=o;const d=i},92328(e,t,a){a.d(t,{A:()=>N});var n=a(10986),l=a(98434),s=a(55199),r=a(69484);const o="style_money-input__Pyur7__NN-KB",i="style_money-description__9pFk4__NN-KB";var d=a(83136),c=a.n(d),u=a(34677),p=a.n(u),m=a(73884),h=a(70579);const{isNotEmpty:g}=l.util||l.formUtils,{useOnChange:f}=l.hooks,x=e=>{let{chineseEmpty:t,className:a,showError:l,errorDesc:d,transformMoneyToChinese:u,onBlur:f,moneyFormat:x,..._}=e;const[N,v]=(0,m.useState)(""),[j,y]=(0,n.default)(_),S=p()({controls:!1,precision:2,addonAfter:"\u5143"},_,{max:g(_.max)?_.max>r.e?r.e:_.max:r.e});return(0,h.jsxs)("div",{className:c()(a,"money-input",o),children:[(0,h.jsx)(s.InputNumber,{...S,status:N,formatter:x?e=>`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=x?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return g(t)?(Number(t)>Number(S.max)||g(S.min)&&Number(t)<Number(S.min))&&v("error"):v(""),g(t)?Number(t):null},onChange:e=>{y(e)},onBlur:e=>{f&&f(e,v)}}),(0,h.jsx)("div",{className:c()(i),children:"error"===N&&l?d:g(j)?(0,r.A)(u?u(j):j):t})]})},_=e=>f(Object.assign({placeholder:`\u8bf7\u8f93\u5165${e.label||""}`},e))(x);_.Field=x,_.toChineseCharacter=r.A;const N=_},2842(e,t,a){a.d(t,{default:()=>n.default});a(2885);var n=a(77339);a.o(n,"PHONE_NUMBER_INPUT")&&a.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},36972(e,t,a){a.d(t,{A:()=>T});var n=a(73884),l=a(87558),s=a(98434),r=a(78491),o=a(55199);const i="style_salary__sUOtT__NN-KB",d="style_salary-type__Sl1LC__NN-KB",c="style_input-number__eoEZr__NN-KB",u="style_full__NPqJm__NN-KB",p="style_input-group__toLB7__NN-KB",m="style_input-group-no-mb__C4nzh__NN-KB",h="style_separator__uTK9-__NN-KB",g="style_separator-text__6R5Hs__NN-KB";var f=a(47458),x=a(55431),_=a(48731),N=a(10986),v=a(65317),j=a(70579);const y=(0,l.withFetch)(e=>{let{data:t,...a}=e;return(0,j.jsx)(o.Select,{...a,options:t})}),{useDecorator:S,useUIDecorator:b}=s.hooks,A=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:a}=e;return(0,j.jsx)("div",{style:{marginBottom:0},className:"react-form__field "+(a?"is-error":""),children:(0,j.jsx)("div",{className:"react-form__field-main",children:(0,j.jsx)("div",{className:"react-form__field-input",children:(0,n.cloneElement)(t,{className:"react-form__field-component"})})})})},C=e=>{let{getPopupContainer:t,onBlur:a,api:n,isRange:l=!0,placeholder:s,disabled:x,showMonth:S,remindUnit:b,req:C,...w}=e;const[P,I]=(0,N.default)(w),{formatMessage:M}=(0,f.useIntl)({moduleName:"FormInfo"}),T=M({id:"defaultSelectPlaceholder"},{label:""}),B=M({id:"defaultInputPlaceholder"},{label:""}),k=[6].indexOf((0,v.get)(P,"type"))>-1,O=1===(0,v.get)(P,"type"),L=7===(0,v.get)(P,"type"),E=e=>{if(e)return k?e/1e4:e},D=(0,r.default)(a||(()=>{}));return(0,j.jsx)("div",{ref:D,className:i,children:(0,j.jsxs)(o.Row,{wrap:!1,gutter:10,children:[(0,j.jsx)(o.Col,{children:(0,j.jsx)(y,{className:d,...n,value:(0,v.get)(P,"type"),onChange:e=>{I&&I(Object.assign({},O?{}:P,{type:e,min:"",max:""}))},placeholder:s||T,getPopupContainer:t,disabled:x})}),O?null:(0,j.jsxs)(o.Col,{flex:1,children:[l&&(0,j.jsxs)(o.Row,{className:b&&[5,6].includes(null===P||void 0===P?void 0:P.type)?p:m,wrap:!1,gutter:8,align:"middle",children:[(0,j.jsx)(o.Col,{flex:1,children:(0,j.jsx)(F,{isError:!(0,v.get)(P,"min")&&C,children:(0,j.jsx)(o.InputNumber,{disabled:x,placeholder:B,formatter:A,value:E((0,v.get)(P,"min")),style:{width:"100%"},onChange:e=>{I(Object.assign({},P,{min:k?1e4*e:e}))},description:b&&[5,6].includes(null===P||void 0===P?void 0:P.type)?(0,j.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,j.jsx)(_.default,{name:null===P||void 0===P?void 0:P.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",k?M({id:"thousand"}):L?"":M({id:"yuan"})]}):null})})}),(0,j.jsx)(o.Col,{className:h,children:(0,j.jsx)("span",{className:g,children:"~"})}),(0,j.jsx)(o.Col,{flex:1,children:(0,j.jsx)(F,{isError:!(0,v.get)(P,"max")&&C,children:(0,j.jsx)(o.InputNumber,{disabled:x,placeholder:B,formatter:A,value:E((0,v.get)(P,"max")),style:{width:"100%"},addonAfter:k?M({id:"thousand"}):L?"":M({id:"yuan"}),onChange:e=>{I(Object.assign({},P,{max:k?1e4*e:e}))}})})}),5===(0,v.get)(P,"type")&&S&&(0,j.jsx)(o.Col,{children:(0,j.jsxs)(o.Flex,{className:(0,v.get)(P,"max")&&(0,v.get)(P,"min")&&!(0,v.get)(P,"month")&&C?"error":"",children:[(0,j.jsx)("span",{className:c,children:"X"}),(0,j.jsx)(o.InputNumber,{min:12,disabled:x,value:(0,v.get)(P,"month"),onChange:e=>{I(Object.assign({},P,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!l&&!L&&(0,j.jsx)(o.InputNumber,{disabled:x,min:0,max:1e8,placeholder:B,className:u,formatter:A,value:E((0,v.get)(P,"max")),style:{textAlign:"center"},addonAfter:k?M({id:"thousand"}):L?"":M({id:"yuan"}),onChange:e=>{I(Object.assign({},P,{max:k?1e4*e:e}))}}),!l&&L&&(0,j.jsx)(o.Input,{disabled:x,placeholder:B,className:u,onChange:e=>{I(Object.assign({},P,{max:e.target.value}))},value:(0,v.get)(P,"max"),style:{textAlign:"center"}})]})]})})},w={loader:()=>[{value:1,label:"\u9762\u8bae"},{value:2,label:"\u65f6\u85aa"},{value:3,label:"\u65e5\u85aa"},{value:4,label:"\u5468\u85aa"},{value:5,label:"\u6708\u85aa"},{value:6,label:"\u5e74\u85aa"}]},P={type:5,min:"",max:"",month:12},I=e=>{let{api:t=w,defaultValue:a=P,...n}=e;return(0,j.jsx)(f.IntlProvider,{moduleName:"FormInfo",importMessages:x.A,children:(0,j.jsx)(C,{...n,api:t,defaultValue:a})})},M=e=>{var t;return S({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(I)};M.Field=I;const T=M},34643(e,t,a){a.d(t,{Ay:()=>p,Pg:()=>d,eM:()=>c,kx:()=>u});var n=a(98434),l=a(43856),s=a(60586);const{useOnChange:r}=n.hooks,o=e=>{const t=t=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(l.SuperSelectField),d=o(s.$9),c=o(l.SuperSelectTableListField),u=o(l.SuperSelectTreeField),p=i},56259(e,t,a){a.d(t,{A:()=>o});var n=a(89319),l=a(98434);const{useOnChange:s}=l.hooks,r=e=>s(Object.assign({},{},e))(n.A);r.Field=n.A;const o=r},89099(e,t,a){a.d(t,{A:()=>j});var n=a(55199),l=a(83136),s=a.n(l),r=a(10986);const o="style_upload__t422Q__NN-KB",i="style_upload-list__Q9HDc__NN-KB",d="style_tips__3Gpnu__NN-KB";var c=a(34699),u=a(98434),p=a(47458),m=a(1488),h=a.n(m),g=a(17508),f=a(55431),x=a(70579);const{useOnChange:_}=u.hooks,N=(0,p.createWithIntl)({importMessages:f.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,p.useIntl)({moduleName:"FormInfo"}),{className:a,fileSize:l,maxLength:u,multiple:m,size:f,accept:_,children:N,renderTips:v,showUploadList:j,onSave:y,ossUpload:S,onUpload:b,getPermission:A,concurrentCount:F,...C}=Object.assign({},{defaultValue:[],children:t({id:"uploadButtonText"}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".eml",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30,concurrentCount:10},e),[w,P]=(0,r.default)(C),I=w||[],{fileList:M,onFileSelected:T}=(0,g.lN)({multiple:m,onSave:y,onUpload:S||b,fileSize:l,maxLength:u,value:I,onChange:P,concurrentCount:F}),B=[...M,...I],k=v(t({id:"uploadTips"},{extensionNames:_.map(e=>e.replace(/^\./,"")).join(","),maxLength:u,fileSize:l}),{fileSize:l,maxLength:u,accept:_});return(0,x.jsxs)(n.Space,{direction:"vertical",children:[(0,x.jsxs)(n.Flex,{align:"start",gap:8,vertical:!0,children:[(0,x.jsx)(g.Zi,{...h()(C,["value","onChange"]),size:f,multiple:m,accept:_,className:s()(o,a),onChange:T,children:N}),k&&(0,x.jsx)("div",{className:d,children:k})]}),j&&B.length>0&&(0,x.jsx)(c.List,{className:i,dataSource:B,infoItemRenders:[],getPermission:A||(e=>"delete"===e),apis:{onDelete:e=>{const t=I.slice(0),a=t.indexOf(e);a>-1&&t.splice(a,1),P(t)}}})]})}),v=e=>{let{interceptor:t="file-format",...a}=e;return _({interceptor:t,...a})(N)};v.Field=N;const j=v},5089(e,t,a){a.d(t,{A:()=>se,E:()=>re});var n=a(98434),l=a(30096),s=a(34643),r=a(1904),o=a(83230),i=a(55199),d=a(70579);const{useOnChange:c}=n.hooks,u=e=>(0,d.jsx)(i.ColorPicker,{...e,onChange:t=>e.onChange(t.toHexString())}),p=e=>c(Object.assign({},e))(u);p.Field=p;const m=p;var h=a(81026),g=a(78756),f=a(92328),x=a(2842);const{useOnChange:_,useCheckedToValue:N}=n.hooks,{withChecked:v}=n.hoc,j=v(e=>{let{checked:t,children:a=null,...n}=e;return(0,d.jsxs)(i.Space,{children:[(0,d.jsx)(i.Switch,{checked:t,...n}),"function"===typeof a?a({checked:t}):a]})}),y=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=N(e);return _(t)(j)};y.Field=i.Switch;const S=y;var b=a(89099),A=a(96339),F=a(36972),C=a(80071),w=(a(65176),a(17508)),P=a(10986),I=a(40438),M=a(70188),T=a(52526);const{useOnChange:B}=n.hooks,k=(0,M.A)(e=>{const{formatMessage:t}=(0,T.useIntl)(),{render:a,placeholder:n=t({id:"ClickSign"}),title:l=t({id:"Sign"}),width:s,height:r,mask:o,onUpload:c,...u}=e,[p,m]=(0,P.default)(e),{onFileSelected:h}=(0,w.lN)({onUpload:c,maxLength:1,value:p?[p]:[],onChange:e=>{m(e[0])}}),g=(0,C.useSignature)();return"function"===typeof a?a({modal:g,value:p,placeholder:n}):(0,d.jsx)(i.Button,{...u,style:{height:"62px",overflow:"hidden"},onClick:()=>{g({title:l,width:s,height:r,mask:o,onSuccess:async e=>{await h([e])}})},children:p&&p.id?(0,d.jsx)(I.default,{id:p.id,style:{height:"60px"}}):n})}),O=e=>{let{...t}=e;return B(t)(k)};O.Field=k;const L=O;var E=a(15209),D=a(74529),R=a(73884),z=a(33097),U=a.n(z),K=a(65317),$=a(46237),V=a(56259),H=a(29556),W=a(64671),q=a(83136),G=a.n(q),Q=a(47094);const Y=e=>t=>{const a=(0,D.default)(...e)(e=>{let{forwardedRef:a,label:n,placeholder:l,labelRender:s,...r}=e;return(0,d.jsx)(t,{...r,label:n,placeholder:l,labelRender:function(){const e="function"===typeof s?s(...arguments):n;return r.tips?(0,d.jsxs)(i.Space,{children:[e,(0,d.jsx)(H.default,{content:r.tips,children:(0,d.jsx)("span",{className:G()(Q.A["field-tips"],{[Q.A["label-hidden"]]:r.labelHidden}),children:(0,d.jsx)(W.default,{type:"icon-xinxi-miaobian"})})})]}):e},ref:a})}),n=(0,R.forwardRef)((e,t)=>(0,d.jsx)(a,{...e,forwardedRef:t}));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{n[e]=t[e]}),n},X=e=>(0,M.A)(t=>{let{placeholder:a,label:n,...l}=t;const{formatMessage:s}=(0,T.useIntl)();return(0,d.jsx)(e,{...l,label:n,placeholder:a||s({id:"defaultInputPlaceholder"},{label:n})})}),J=e=>(0,M.A)(t=>{let{placeholder:a,label:n,...l}=t;const{formatMessage:s}=(0,T.useIntl)();return(0,d.jsx)(e,{...l,label:n,placeholder:a||s({id:"defaultSelectPlaceholder"},{label:n})})}),Z=e=>t=>{const a=(0,n.useGroup)(),l=U()(a,"name"),s=(0,K.get)(a,"index"),r=(0,$.oc)();return r&&Array.isArray(r)&&r.length>0?r.map(a=>{if("string"===typeof a)return(0,R.createElement)(e,{...t,key:a});const{name:n,label:r,options:o}=a,i=U()(o,"ignore",[]),d=U()(o,"disabled",[]),c=U()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==l)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==s);if(i.length>0&&i.find(u))return null;if(c.length>0&&!c.find(u))return null;let p=Object.assign({},t,{name:U()(o,"nameTransform",(e,t)=>`${e}${t}`)(t.name,n),label:U()(o,"labelTransform",(e,t)=>e&&`${e}${t}`)(t.label,r)});return d.length>0&&d.find(u)&&(p.disabled=!0,p.rule=""),(0,R.createElement)(e,{...p,key:n})}):(0,d.jsx)(e,{...t})},ee=Y([Z,X])(n.Input),te=Y([Z,X])(n.InputNumber);ee.Password=Y([Z,X])(n.Input.Password);const ae=Y([Z,J])(n.DatePicker);ae.MonthPicker=Y([Z,J])(n.DatePicker.MonthPicker),ae.RangePicker=Y([Z,J])(n.DatePicker.RangePicker),ae.WeekPicker=Y([Z,J])(n.DatePicker.WeekPicker);const ne=Y([Z,J])(n.TimePicker);ne.RangePicker=Y([Z,J])(n.TimePicker.RangePicker);const le=Y([Z])(e=>{let{placeholder:t,label:a,soFarText:l,...s}=e;const{formatMessage:r}=(0,T.useIntl)({moduleName:"FormInfo"});return(0,d.jsx)(n.DatePickerToday,{...s,label:a,placeholder:[r({id:"startDate"}),r({id:"endDate"})],soFarText:l||r({id:"soFarText"})})}),se={Signature:L,Input:ee,Checkbox:n.Checkbox,Password:ee.Password,InputNumber:te,DatePicker:ae,MonthPicker:ae.MonthPicker,WeekPicker:ae.WeekPicker,DateRangePicker:ae.RangePicker,TimeRangePicker:ne.RangePicker,TimePicker:ne,DatePickerToday:le,RadioGroup:Y([Z])(n.RadioGroup),CheckboxGroup:Y([Z])(n.CheckboxGroup),Rate:Y([Z])(n.Rate),Switch:Y([Z])(S),Slider:Y([Z])(n.Slider),SalaryInput:Y([Z,X])(F.A),TypeDateRangePicker:Y([Z])(V.A),MoneyInput:Y([Z,X])(f.A),PhoneNumber:Y([Z,X])(x.default),Upload:Y([Z])(b.A),Avatar:Y([Z])(A.A),FunctionSelect:Y([Z,J])(h.A),IndustrySelect:Y([Z,J])(g.A),Cascader:Y([Z,J])(o.A),ColorPicker:Y([Z,J])(m),AddressSelect:Y([Z,J])(r.A),AddressInput:Y([Z,J])(r.N),TreeSelect:Y([Z,J])(n.TreeSelect),ReactInputNumber:Y([Z,X])(n.InputNumber),InputUpperCase:Y([Z,X])(E.A),Select:Y([Z,J])(n.Select),TextArea:Y([Z,X])(n.TextArea),AdvancedSelect:Y([Z,J])(l.Ay),SuperSelect:Y([Z,J])(s.Ay),SuperSelectTableList:Y([Z,J])(s.eM),SuperSelectUser:Y([Z,J])(s.Pg),SuperSelectTree:Y([Z,J])(s.kx)},re={createWithFieldDecorator:Y,withInputDefaultPlaceholder:X,withSelectDefaultPlaceholder:J,withLang:Z}},83799(e,t,a){a.d(t,{NI:()=>D,TQ:()=>u.A,JL:()=>B,eu:()=>_.A,vx:()=>p.A,lr:()=>q,s3:()=>G,lV:()=>l.A,d4:()=>m.A,ZN:()=>h.A,pd:()=>z,YI:()=>V,h2:()=>R,F0:()=>g.A,go:()=>f.default,tt:()=>n.Rate,lu:()=>N.A,l6:()=>$,Ap:()=>n.Slider,wD:()=>k,eM:()=>O,kx:()=>E,Pg:()=>L,dO:()=>n.Switch,EY:()=>w,fs:()=>U,AG:()=>W,f7:()=>H,w5:()=>j.A,_O:()=>x.A,nk:()=>Q});var n=a(98434),l=a(85696),s=a(52526),r=a(73884),o=a(30891),i=a(47094),d=a(30096),c=a(34643),u=a(1904),p=a(83230),m=a(81026),h=a(78756),g=a(92328),f=a(2842),x=a(89099),_=a(96339),N=a(36972),v=a(15209),j=a(56259),y=a(55199),S=a(10986),b=a(70579);const{useDecorator:A}=n.hooks,F=e=>{let{children:t,...a}=e;const[n]=(0,S.default)(a);return(0,b.jsxs)(y.Typography.Text,{...a,children:[(0,b.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,b.jsx)(y.Input,{value:n})}),t||n]})},C=e=>A(e)(F);C.Field=F;const w=C;var P=a(45053),I=a(70188);const M=e=>{const t=(0,I.A)((0,r.forwardRef)((t,a)=>{let{placeholder:n,label:l,...r}=t;const{formatMessage:o}=(0,s.useIntl)();return(0,b.jsx)(e,{...r,ref:a,label:l,placeholder:n||o({id:"defaultInputPlaceholder"},{label:l})})}));return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(a=>{t[a]=e[a]}),t},T=e=>{const t=(0,I.A)((0,r.forwardRef)((t,a)=>{let{placeholder:n,label:l,...r}=t;const{formatMessage:o}=(0,s.useIntl)();return(0,b.jsx)(e,{...r,ref:a,label:l,placeholder:n||o({id:"defaultSelectPlaceholder"},{label:l})})}));return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(a=>{t[a]=e[a]}),t},B=T(d.Ay),k=T(c.Ay),O=T(c.eM),L=T(c.Pg),E=T(c.kx),D=T(u.N),R=M(v.A),z=M(n.Input);z.Password=M(n.Input.Password);const U=(K=n.TextArea,(0,I.A)(e=>{let{placeholder:t,label:a,className:n,...l}=e;const{formatMessage:r}=(0,s.useIntl)();return(0,b.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,b.jsx)(K,{...l,label:a,placeholder:t||r({id:"defaultInputPlaceholder"},{label:a})})})}));var K;const $=T(n.Select),V=M(n.InputNumber),H=T(n.TreeSelect),W=T(n.TimePicker);W.RangePicker=T(n.TimePicker.RangePicker);const q=T(n.DatePicker);q.MonthPicker=T(n.DatePicker.MonthPicker),q.RangePicker=T(n.DatePicker.RangePicker),q.WeekPicker=T(n.DatePicker.WeekPicker);const G=e=>{let{placeholder:t,label:a,soFarText:l,...r}=e;const{formatMessage:o}=(0,s.useIntl)({moduleName:"FormInfo"});return(0,b.jsx)(n.DatePickerToday,{...r,label:a,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:l||o({id:"soFarText"})})},Q=Object.assign({},n,{Input:z,InputUpperCase:R,TextArea:U,Select:$,InputNumber:V,TreeSelect:H,TimePicker:W,DatePicker:q,DatePickerToday:G,Form:l.A,FormItem:o.A,AdvancedSelect:B,SuperSelect:k,SuperSelectTableList:O,SuperSelectUser:L,SuperSelectTree:E,AddressSelect:u.A,AddressInput:D,MoneyInput:g.A,PhoneNumber:f.default,Cascader:p.A,FunctionSelect:m.A,IndustrySelect:h.A,TypeDateRangePicker:j.A,Upload:x.A,Avatar:_.A,SalaryInput:N.A,Text:w,Rate:n.Rate,Switch:n.Switch,Slider:n.Slider,ErrorTip:P.A})},96252(e,t,a){a.r(t),a.d(t,{AddressInput:()=>g.NI,AddressSelect:()=>g.TQ,AdvancedSelect:()=>g.JL,Avatar:()=>g.eu,Cascader:()=>g.vx,DatePicker:()=>g.lr,DatePickerToday:()=>g.s3,ErrorTip:()=>p.A,Form:()=>c.A,FormApiButton:()=>r.A,FormDrawer:()=>d.Ay,FormDrawerButton:()=>d.WJ,FormItem:()=>u.A,FormModal:()=>o.Ay,FormModalButton:()=>o.W6,FormStepModal:()=>i.Ay,FormStepModalButton:()=>i.Wp,FormSteps:()=>s.FormSteps,FunctionSelect:()=>g.d4,IndustrySelect:()=>g.ZN,Input:()=>g.pd,InputNumber:()=>g.YI,InputUpperCase:()=>g.h2,List:()=>s.List,MoneyInput:()=>g.F0,MultiField:()=>s.MultiField,PhoneNumber:()=>g.go,Rate:()=>g.tt,SalaryInput:()=>g.lu,Select:()=>g.l6,SelectInnerInput:()=>f.A,Slider:()=>g.Ap,SuperSelect:()=>g.wD,SuperSelectTableList:()=>g.eM,SuperSelectTree:()=>g.kx,SuperSelectUser:()=>g.Pg,Switch:()=>g.dO,TableList:()=>s.TableList,Text:()=>g.EY,TextArea:()=>g.fs,TimePicker:()=>g.AG,TreeSelect:()=>g.f7,TypeDateRangePicker:()=>g.w5,Upload:()=>g._O,default:()=>x,fieldDecorator:()=>l.E,fields:()=>l.A,formModule:()=>g.nk,useFormDrawer:()=>d.Xy,useFormModal:()=>o.Vl,useFormStepModal:()=>i.$X});var n=a(64261),l=a(5089),s=a(36045),r=a(35774),o=a(5995),i=a(94005),d=a(48221),c=a(85696),u=a(30891),p=a(45053),m=a(98434),h={};for(const _ in m)["default","SelectInnerInput","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","FormSteps","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField"].indexOf(_)<0&&(h[_]=()=>m[_]);a.d(t,h);var g=a(83799),f=a(18936);(0,n.A)(),s.default.fields=l.A,s.default.List=s.List,s.default.TableList=s.TableList,s.default.FormApiButton=r.A,s.default.FormModal=o.Ay,s.default.FormSteps=s.FormSteps,s.default.useFormModal=o.Vl,s.default.FormModalButton=o.W6,s.default.FormStepModal=i.Ay,s.default.useFormStepModal=i.$X,s.default.FormStepModalButton=i.Wp,s.default.FormDrawer=d.Ay,s.default.useFormDrawer=d.Xy,s.default.FormDrawerButton=d.WJ,s.default.Form=c.A,s.default.FormItem=u.A,s.default.ErrorTip=p.A,s.default.SubmitButton=m.SubmitButton,s.default.CancelButton=m.CancelButton,s.default.fieldDecorator=l.E,s.default.MultiField=s.MultiField,s.default.useFormContext=m.useFormContext,s.default.hooks=m.hooks,s.default.widget=m.widget,s.default.utils=m.utils,s.default.formUtils=m.formUtils;const x=s.default},21649(e,t,a){a.r(t),a.d(t,{default:()=>n});const n={addText:"Add",addSomeThing:"Add {label}",delText:"Delete",selectedTextAdvanced:"Selected",delConfirm:"Are you sure you want to delete this {name}?",defaultInputPlaceholder:"Please enter {label}",defaultSelectPlaceholder:"Please select {label}",startDate:"Start Date",endDate:"End Date",soFarText:"Hitherto",uploadButtonText:"Click Upload",uploadTips:"Support extension {extensionNames}, single file size does not exceed {fileSize} M, upload up to {maxLength} attachments",yuan:"yuan",thousand:"ten thousand yuan",salaryType:"Salary type",Cancel:"Cancel",Save:"Save",Next:"Next",Complete:"Complete",Crop:"Crop",Preview:"Preview",PictureFormat:"Picture Format: ",ImageSize:"Image Size: ",ReUpload:"Re-upload",UploadFailed:"Upload Failed{msg}",NotExceeding:"Not exceeding {size}M",FileNotExceeding:"File {name} not exceeding {size}MB\uff01",Rotate:"Rotate",ImageFull:"Image Full",Size:"Image Size",Sign:"Sign",ClickSign:"Click Sign"}},55431(e,t,a){a.d(t,{A:()=>n});const n=e=>({"en-US":()=>Promise.resolve().then(a.bind(a,21649)),"zh-CN":()=>Promise.resolve().then(a.bind(a,80711))}[e]())},80711(e,t,a){a.r(t),a.d(t,{default:()=>n});const n={addText:"\u6dfb\u52a0",addSomeThing:"\u6dfb\u52a0{label}",delText:"\u5220\u9664",selectedTextAdvanced:"\u5df2\u9009",delConfirm:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u6761{name}\u5417?",defaultInputPlaceholder:"\u8bf7\u8f93\u5165{label}",defaultSelectPlaceholder:"\u8bf7\u9009\u62e9{label}",startDate:"\u5f00\u59cb\u65e5\u671f",endDate:"\u7ed3\u675f\u65e5\u671f",soFarText:"\u81f3\u4eca",uploadButtonText:"\u70b9\u51fb\u4e0a\u4f20",uploadTips:"\u652f\u6301\u6269\u5c55\u540d{extensionNames},\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\u4e0d\u8d85\u8fc7{fileSize}M\uff0c\u6700\u591a\u4e0a\u4f20{maxLength}\u4e2a\u9644\u4ef6",yuan:"\u5143",thousand:"\u4e07\u5143",salaryType:"\u85aa\u8d44\u7c7b\u578b",Cancel:"\u53d6\u6d88",Save:"\u4fdd\u5b58",Next:"\u4e0b\u4e00\u6b65",Complete:"\u5b8c\u6210",Crop:"\u88c1\u526a",Preview:"\u9884\u89c8",PictureFormat:"\u56fe\u7247\u683c\u5f0f\uff1a",ImageSize:"\u56fe\u7247\u5c3a\u5bf8\uff1a",ReUpload:"\u91cd\u65b0\u4e0a\u4f20",UploadFailed:"\u4e0a\u4f20\u5931\u8d25{msg}",NotExceeding:"\u4e0d\u8d85\u8fc7{size}M",FileNotExceeding:"\u6587\u4ef6{name}\u4e0d\u80fd\u8d85\u8fc7{size}MB!",Rotate:"\u65cb\u8f6c",ImageFull:"\u5145\u6ee1",Size:"\u5927\u5c0f",Sign:"\u7b7e\u540d",ClickSign:"\u70b9\u51fb\u7b7e\u540d"}},64261(e,t,a){a.d(t,{A:()=>N});var n=a(98434),l=a(57469),s=a.n(l),r=a(34677),o=a.n(r),i=a(33097),d=a.n(i),c=a(22717),u=a.n(c),p=(a(17448),a(2842)),m=a(46732),h=a(37881),g=a(13050),f=a(70579);const x=n.RULES.REQ,_=n.RULES.LEN,N=async(e,t)=>{const{locale:a}=Object.assign({},t);n.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){const[t,a]=e.split("?"),n=new URLSearchParams(a);return Object.assign({},{id:t},u()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}return e}),n.interceptors.output.use("photo-string",e=>e&&"string"!==typeof e?`${null===e||void 0===e?void 0:e.id}${null!==e&&void 0!==e&&e.filename?`?filename=${null===e||void 0===e?void 0:e.filename}`:""}`:e),n.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>{const[t,a]=e.split("?"),n=new URLSearchParams(a);return Object.assign({},{id:t},u()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}):e),n.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>`${null===e||void 0===e?void 0:e.id}${null!==e&&void 0!==e&&e.filename?`?filename=${null===e||void 0===e?void 0:e.filename}`:""}`):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.output.use("array-output-value",e=>Array.isArray(e)&&e.length>0?e.map(e=>e.value||e.id):[]),n.interceptors.input.use("date-string",e=>e?s()(e):null),n.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),n.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(s()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(s()(e[1])),t}),n.interceptors.output.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t}),n.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),n.interceptors.input.use("file-format",e=>Array.isArray(e)?e.map(e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename})):[]);const{default:l}=await(0,g.loadModule)("components-iconfont:CountyFlag@load"),r=await l(),i=new Map(r.map(e=>{let{ab:t,country_code:a}=e;return[t,a]})),c=new Map(r.map(e=>{let{ab:t,country_code:a}=e;return[a,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:c.get(Number(t[1])),value:t[2]}:{code:c.get(86),value:e}});const N=(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}`},ID_CARD_INVALID:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u8eab\u4efd\u8bc1\u53f7\u7801","en-US":"Please enter a valid ID card number"}},l=d()(n,`${e}.${a}`);return l||d()(n,`${e}.zh-CN`)};(0,n.preset)(o()({},{type:"inner",rules:{REQ:function(){return Object.assign({},x(...arguments),{errMsg:N("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];const[n,l,s]=t;let r="";return s===l&&n.length!==Number(s)&&(r="LENGTH_EQUAL"),n.length<l&&(r="LENGTH_MORE"),s&&n.length>s&&(r="LENGTH_LESS"),Object.assign({},_(...t),{errMsg:N(r,{start:l,end:s})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:N("EMAIL")}},PHONE_NUMBER_INPUT:p.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,a)=>a===t&&e.length!==Number(a)?{result:!1,errMsg:N("LENGTH_EQUAL",{start:t,end:a})}:e.length<t?{result:!1,errMsg:N("LENGTH_MORE",{start:t,end:a})}:a&&e.length>a?{result:!1,errMsg:N("LENGTH_LESS",{start:t,end:a})}:{result:!0},ID_CARD:e=>(0,h.A)(e).isValid?{result:!0}:{result:!1,errMsg:N("ID_CARD_INVALID")}},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)(m.A,{...e})}},"function"===typeof e?e({interceptors:n.interceptors,RULES:n.RULES}):e))}},70188(e,t,a){a.d(t,{A:()=>r});var n=a(52526),l=a(80711),s=a(21649);const r=(0,n.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":l.default,"en-US":s.default},namespace:"FormInfo"})},29556(e,t,a){a.r(t),a.d(t,{TooltipFetch:()=>F,TooltipInfoLabel:()=>S,default:()=>j});var n=a(55199),l=a(83136),s=a.n(l);const r="style_tooltip__zHGMI__NN-KB",o="style_large__lvmsm__NN-KB",i="style_small__nUt0r__NN-KB",d="style_popup-content__-rKQN__NN-KB",c="style_title__1EQPq__NN-KB",u="style_important-info__qTSZY__NN-KB",p="style_error__yTTq3__NN-KB",m="style_warning__CMJxz__NN-KB",h="style_success__AvJVx__NN-KB",g="style_sub-title__uD8CH__NN-KB",f="style_content__lzgUz__NN-KB",x="style_alone__q6q82__NN-KB",_="style_fetch-content__tEOEV__NN-KB",N="style_title-info-icon__iY8Q+__NN-KB";var v=a(70579);const j=e=>{let{overlayClassName:t,title:a,size:l,subtitle:_,content:N,importantInfo:j,importantInfoType:y,moreInfo:S,...b}=e;return(0,v.jsx)(n.Tooltip,{...b,rootClassName:s()(t,r,{[i]:"small"===l,[o]:"large"===l}),title:(0,v.jsxs)(n.Space,{direction:"vertical",className:d,children:[a&&(0,v.jsx)("div",{className:c,children:a}),j&&(0,v.jsx)("div",{className:s()(u,{[h]:"success"===y,[m]:"warning"===y,[p]:"error"===y}),children:j}),_&&(0,v.jsx)("div",{className:g,children:_}),N&&(0,v.jsx)("div",{className:s()(f,{[x]:[a,_,j,S].every(e=>!e)}),children:N}),S&&(0,v.jsx)("div",{children:S})]})})};var y=a(64671);const S=e=>{let{title:t,tooltipTitle:a}=e;return(0,v.jsxs)("div",{children:[t,a?(0,v.jsx)(j,{...a,children:(0,v.jsx)("span",{children:(0,v.jsx)(y.default,{type:"icon-xinxi-miaobian",className:N,size:14})})}):null]})};var b=a(73884),A=a(87558);const F=e=>{let{api:t,children:a,fetchContent:l,showLoading:s=!0,loadingClassName:r,force:o,...i}=e;const[d,c]=(0,b.useState)(!1),u=(0,A.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:p,isLoading:m,data:h,send:g}=u;return(0,v.jsx)(j,{...Object.assign({},i,p?l(h,u):{}),open:d,onOpenChange:async e=>{!e||p&&!o||await g({type:"refresh"}),c(e)},children:(0,v.jsx)("span",{className:_,children:(0,v.jsx)(n.Spin,{spinning:s&&m,size:"small",children:a})})})}},47094(e,t,a){a.d(t,{A:()=>n});const n={"form-drawer":"style_form-drawer__uYDXS__NN-KB"}}}]);
|
|
2
|
-
//# sourceMappingURL=4474.19db5271.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_kne_components_components_core=globalThis.webpackChunk_kne_components_components_core||[]).push([[4671,5628],{94964(e,t,o){"use strict";var n=o(13050),r=o(87558),l=o(89946),a=o(55199),s=(o(45784),o(70579));window.PUBLIC_URL="/components-core";const c={remote:"components-core",url:"https://registry.npmmirror.com",tpl:"{{url}}/@kne%2f{{remote}}/{{version}}/files/build",defaultVersion:"0.4.66"};(0,n.preset)({remotes:{default:c,"components-core":c,"components-iconfont":{remote:"components-iconfont",url:"https://uc.fatalent.cn",tpl:"{{url}}/packages/@kne-components/{{remote}}/{{version}}/build",defaultVersion:"0.1.9"}}});const i=l.default.create({validateStatus:function(){return!0}});(0,r.preset)({ajax:i,loading:(0,s.jsx)(a.Spin,{style:{position:"absolute",left:"50%",padding:"10px",transform:"translateX(-50%)"}}),error:(0,s.jsx)(a.Result,{status:"error",title:"\u8bf7\u6c42\u53d1\u751f\u9519\u8bef"}),empty:(0,s.jsx)(a.Empty,{}),transformResponse:e=>{const{data:t}=e;return e.data={code:0===t.code?200:t.code,msg:t.msg,results:t.data},e}});var d=o(73884),u=o(84391),m=o(94679),p=o(22682),f=(o(91296),o(46446));const h=p.Ay.ExampleRoutes,_=e=>{let{preset:t,themeToken:o,...n}=e;return(0,s.jsx)(m.HashRouter,{children:(0,s.jsx)(h,{...n,paths:[{key:"components",path:"/",title:"\u9996\u9875"}],preset:t,themeToken:o,readme:f.default})})};u.createRoot(document.getElementById("root")).render((0,s.jsx)(d.StrictMode,{children:(0,s.jsx)(_,{preset:{ajax:i},themeToken:{colorPrimary:"#4F185A"}})}))},73025(e,t,o){"use strict";o.d(t,{A:()=>c});var n=o(73884),r=o(87558),l=o(96418),a=o(55199),s=o(70579);const c=e=>{let{api:t,modalProps:o={},modalFunc:c,onError:i,...d}=e;const u=(0,r.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:m,data:p,error:f,refresh:h}=u,_=(0,l.default)(i),b=(0,l.default)(()=>{const e=c("function"===typeof o?o({data:p,fetchApi:u,close:()=>{e.close()}}):o)});return(0,n.useEffect)(()=>{m||(f?_(f):p&&b())},[m,f,p,b,_]),(0,s.jsx)(a.Button,{...d,loading:m,onClick:()=>{h({onSuccess:()=>{}})}})}},76801(e,t,o){"use strict";o.d(t,{c:()=>r,h:()=>n});const n=()=>document.querySelector(".simplebar-content-wrapper"),r=()=>document.querySelector(".container-body")},6617(e,t,o){"use strict";o.d(t,{default:()=>n.default});o(9056);var n=o(41846)},25963(e,t,o){"use strict";o.r(t),o.d(t,{AppDrawer:()=>S,DrawerButton:()=>O,default:()=>T,useDrawer:()=>I});var n=o(55199),r=o(83136),l=o.n(r);const a="style_drawer__hA8bn__NN-KB",s="style_drawer-outer__vuEIf__NN-KB",c="style_drawer-title__71eaW__NN-KB",i="style_drawer-body__frw9I__NN-KB",d="style_is-disabled-scroller__ZsITw__NN-KB",u="style_drawer-body-inner__lci9Z__NN-KB",m="style_drawer-footer__1g8o1__NN-KB",p="style_drawer-close__bpxnp__NN-KB",f=e=>({"en-US":()=>o.e(3172).then(o.bind(o,23172)),"zh-CN":()=>o.e(5254).then(o.bind(o,95254))}[e]());var h=o(47458),_=o(73884);const b=()=>{const[e,t]=(0,_.useState)([]);return[e,(0,_.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var g=o(70579);const y=(0,_.forwardRef)((e,t)=>{let{config:o}=e;const[r,l]=(0,_.useState)(!0),[a,s]=(0,_.useState)(o),c=function(){l(!1);for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const n=t.some(e=>e&&e.triggerCancel);a.onClose&&n&&a.onClose(()=>{},...t.slice(1))};return(0,_.useImperativeHandle)(t,()=>({destroy:c,update:e=>{s(t=>({...t,...e}))}})),(0,g.jsx)(n.Drawer,{...a,ref:t,open:r,onClose:c})});let x=0;function w(e){return{...e}}const j=[],C=(0,_.memo)((0,_.forwardRef)((e,t)=>{const[o,n]=b();return(0,_.useImperativeHandle)(t,()=>({patchElement:n}),[n]),(0,g.jsx)(g.Fragment,{children:o})}));const N=function(){const e=(0,_.useRef)(null),[t,o]=(0,_.useState)([]);(0,_.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),o([])}},[t]);const n=(0,_.useCallback)(t=>function(n){var r;x+=1;const l=(0,_.createRef)();let a=()=>{};const s=(0,g.jsx)(y,{config:t(n),ref:l,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},`drawer-${x}`);return a=null===(r=e.current)||void 0===r?void 0:r.patchElement(s),a&&j.push(a),{destroy:()=>{function e(){var e;null===(e=l.current)||void 0===e||e.destroy()}l.current?e():o(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():o(e=>[...e,t])}}},[]);return[(0,_.useMemo)(()=>n(w),[n]),(0,g.jsx)(C,{ref:e},"drawer-holder")]},v=(0,_.createContext)({}),{Provider:k}=v,B=e=>{const{children:t}=e,[o,n]=N(),r=(0,_.useMemo)(()=>({drawer:o}),[o]);return(0,g.jsx)(k,{value:r,children:(0,g.jsxs)("div",{children:[n,t]})})};B.useAppDrawer=()=>(0,_.useContext)(v);const S=B;var P=o(81014),R=o(71298),G=o(64671);const K=(e,t)=>"function"===typeof e?e(t):e,A=e=>{let{footer:t,footerButtons:o,onConfirm:r,onCancel:l,onClose:a}=e;return(0,g.jsxs)(n.Row,{gutter:10,wrap:!1,children:[(0,g.jsx)(n.Col,{flex:1,children:t}),Array.isArray(o)&&0===o.length?null:(0,g.jsx)(n.Col,{children:(0,g.jsx)(n.Space,{children:(o||[{children:"\u53d6\u6d88",onClick:l},{type:"primary",children:"\u786e\u5b9a",onClick:r}]).map((e,t)=>{let{ButtonComponent:o,onClick:n,autoClose:r=!0,...l}=e;const s=o||P.default;return(0,_.createElement)(s,{...l,key:t,onClick:async function(){const e=await Promise.resolve(n&&n(...arguments));return r&&!1!==e&&a&&a(),e}})})})})]})},E=e=>{let{title:t,footer:o,disabledScroller:r,footerButtons:a,onClose:f,closable:h,onConfirm:b,onCancel:y,children:x}=e;const w=(0,_.useRef)(null);return(0,_.useEffect)(()=>{!r&&new R.default(w.current)},[r]),(0,g.jsxs)("div",{className:s,"data-testid":"components-core-drawer",children:[!1===h?null:(0,g.jsx)(n.Button,{"data-testid":"components-core-drawer-close-btn",className:l()(p,"drawer-close"),type:"text",icon:(0,g.jsx)(G.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),f&&f()}}),t&&(0,g.jsx)("div",{className:l()(c,"drawer-title"),children:t}),(0,g.jsx)("div",{className:l()(i,"drawer-body",{[d]:r}),ref:w,children:(0,g.jsx)("div",{className:l()(u,"drawer-body-inner"),children:x})}),null!==o||a?(0,g.jsx)("div",{className:l()(m,"drawer-footer"),children:(0,g.jsx)(A,{footer:o,footerButtons:a,onConfirm:b,onCancel:y,onClose:f})}):null]})},L=e=>{let{withDecorator:t,footerButtons:o,title:n,closable:r,onClose:l,onConfirm:a,onCancel:s,footer:c,disabledScroller:i,children:d}=e;const u=e=>(e=Object.assign({},e),(0,g.jsx)(E,{title:n,closable:r,onClose:l,onConfirm:a,onCancel:s,footerButtons:K(o,{...e,close:l}),disabledScroller:i,footer:K(c,{...e,close:l}),children:K(d,{...e,close:l})}));return"function"===typeof t?t(u):u({})},M=e=>{let{children:t,footer:o,footerButtons:n,className:r,size:s,title:c,onClose:i,onConfirm:d,onCancel:u,closable:m,disabledScroller:p,withDecorator:_,...b}=e;return{...b,icon:null,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:i,className:l()(r,a),...(y=s,"large"===y?{width:"calc(100vw - 64px)"}:"small"===y?{width:"600px"}:{width:"1000px"}),children:(0,g.jsx)(h.IntlProvider,{importMessages:f,moduleName:"Drawer",children:L({withDecorator:_,title:c,closable:m,onClose:i,onConfirm:d,onCancel:u,footer:o,footerButtons:n,disabledScroller:p,children:t})})};var y},I=()=>{const{drawer:e}=S.useAppDrawer();return t=>{const o={},{...n}=M({onClose:()=>o.close(),...t}),{destroy:r}=e({...n});return o.close=r,o}},T=e=>{let{size:t="small",...o}=e;return(0,g.jsx)(n.Drawer,{...M({size:t,...o})})};var F=o(73025);const O=e=>{const t=I();return(0,g.jsx)(F.A,{...e,modalFunc:t})}},72752(e,t,o){"use strict";o.r(t),o.d(t,{GetGlobal:()=>V,GlobalProvider:()=>I,GlobalSetting:()=>l.GlobalSetting,GlobalValue:()=>l.GlobalValue,PureGlobal:()=>T,SetGlobal:()=>O,containerClassName:()=>E,default:()=>$,useGlobalContext:()=>F,useGlobalValue:()=>l.useGlobalValue,usePreset:()=>l.usePreset});o(3870),o(21683);var n=o(83136),r=o.n(n),l=o(83694),a=o(55199),s=o(73884),c=o(71298),i=o(36755),d=o(76801);const u=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var m=o(87558),p=o(57469),f=o.n(p),h=o(52526);const _=e=>{let{params:t}=e;const{locale:n}=t;return{"en-US":async()=>(await o.e(3513).then(o.t.bind(o,33513,23)),f().locale("en"),await o.e(2397).then(o.t.bind(o,62397,23)).then(e=>{(0,h.localeLoader)("en-US",e.default,"button-group")}),await o.e(9808).then(o.t.bind(o,79808,23)).then(e=>{(0,h.localeLoader)("en-US",e.default,"phone-number-input")}),await o.e(8670).then(o.t.bind(o,78670,23)).then(e=>{(0,h.localeLoader)("en-US",e.default,"scroll-loader")}),await o.e(9223).then(o.t.bind(o,99223,23)).then(e=>{(0,h.localeLoader)("en-US",e.default,"react-file")}),await o.e(7451).then(o.bind(o,47451)).then(e=>e.default)),"zh-CN":async()=>(await o.e(6484).then(o.t.bind(o,76484,23)),f().locale("zh-cn"),await o.e(4965).then(o.bind(o,64965)).then(e=>e.default))}[n]()},b={container:"style_container__k+uRt__NN-KB","is-not-init":"style_is-not-init__BZN0v__NN-KB","loading-rotate":"style_loading-rotate__kLLHV__NN-KB",total_text:"style_total_text__oNKMr__NN-KB","ant-pagination":"style_ant-pagination__4LRg7__NN-KB","ant-pagination-options":"style_ant-pagination-options__mp-tz__NN-KB","ant-select-single":"style_ant-select-single__mL6Zt__NN-KB","ant-select-selector":"style_ant-select-selector__+111I__NN-KB","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__NN-KB","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__NN-KB","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__NN-KB"};var g=o(33097),y=o.n(g),x=o(25963),w=o(64671),j=o(96418),C=o(22717),N=o.n(C),v=o(96604),k=o.n(v),B=o(25806),S=o.n(B),P=o(13050),R=o(56641),G=o.n(R);const K=(e,t)=>G()(e,t,(e,t)=>{if("function"===typeof e||"function"===typeof t||"symbol"===typeof e||"symbol"===typeof t)return!0});var A=o(70579);document.body.classList.add(b.container),u()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new c.default(document.body),(0,d.h)().classList.add(b.container));const E=b.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),L=(0,m.withFetch)(e=>{let{data:t,themeToken:o,children:n}=e;const[r,l]=(0,s.useState)(!1),{colorPrimary:c,components:i,...u}=Object.assign({},{colorPrimary:"#4096ff"},o),m=(0,s.useMemo)(()=>S()(c),[c]),[p,f]=(0,s.useState)({});return(0,s.useEffect)(()=>{const e=document.querySelector(`.${E}`),t=getComputedStyle(e);f({colorSuccess:t.getPropertyValue("--state-success-color"),colorError:t.getPropertyValue("--state-error-color"),colorWarning:t.getPropertyValue("--state-warning-color"),colorInfo:t.getPropertyValue("--state-info-color")})},[]),(0,s.useEffect)(()=>{let e=document.head.querySelector("#component-core-theme");e||(e=document.createElement("style"),e.id="component-core-theme",document.head.appendChild(e));const t={"--primary-color":c,"--primary-color-red":m.red(),"--primary-color-green":m.green(),"--primary-color-blue":m.blue(),"--primary-color-06":m.alpha(.06).string()};return k()(0,10).forEach(e=>{t[`--primary-color-${e+1}`]=m.alpha((e+1)/10).string()}),e.textContent=`.${E}{${N()(t,(e,t,o)=>{e.push(`${o}:${t};`)},[]).join("")}}`,l(!0),()=>{}},[c,m]),r?(0,A.jsx)(a.ConfigProvider,{getTargetContainer:d.h,getPopupContainer:d.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,warning:{strict:!1},theme:{components:i,token:Object.assign({},{...p,colorPrimary:c,colorPrimaryBg:m.alpha(.1).string(),colorLink:c,colorTextBase:"#222222",colorText:"#222222"},u)},children:n}):null}),M=(0,P.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[o,n]=t;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(w.FontLoader,{path:`${o}/iconfont.css`}),(0,A.jsx)(w.FontLoader,{path:`${n}/iconfont.js`})]})}),I=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:o,themeToken:n,init:r,...c}=e;const i=y()(t,"locale","zh-CN"),d=(0,s.useRef)(null),u=(0,s.useRef)(null);return(0,A.jsx)(l.Global,{preset:t,initValue:Object.assign({},c,{themeToken:n,localMessageRef:d,enumsRef:u,locale:i},y()(t,"global")),children:(0,A.jsx)(l.GlobalValue,{globalKey:"locale",children:e=>{let{value:t}=e;return(0,A.jsxs)(L,{loader:_,params:{locale:t},themeToken:n,children:[(0,A.jsx)(a.App,{message:{top:100},children:(0,A.jsx)(x.AppDrawer,{children:"function"===typeof r?(0,A.jsx)(m.default,{loader:()=>r(),render:()=>o}):o})}),(0,A.jsx)(M,{})]})}})})},T=e=>{let{children:t,...o}=e;const n=(0,l.useGlobalValue)("themeToken");return(0,A.jsx)(I,{...o,themeToken:o.themeToken||n,children:(0,A.jsx)("div",{"data-testid":"components-core-pure-global",className:r()(b.container,"core-container-body"),children:t})})},F=e=>{const t=(0,l.useGlobalContext)(),o=(0,j.default)(o=>{t.setGlobal(t=>"function"===typeof o?Object.assign({},t,{[e]:o(y()(t,e))}):Object.assign({},t,{[e]:o}))});return Object.assign({global:{},setGlobal:()=>{console.warn("\u8c03\u7528setGlobal\u7684\u7ec4\u4ef6\u5e94\u8be5\u88ab\u653e\u7f6e\u5728Global\u4e0a\u4e0b\u6587\u4e2d")}},t,e?{global:y()(t.global,e),setGlobal:o}:{})},O=e=>{let{globalKey:t,value:o,needReady:n,children:r}=e;const{global:l,setGlobal:a}=F(t),c=(0,j.default)(a),i=(0,s.useRef)(null);return i.current=l,(0,s.useEffect)(()=>{K(i.current,o)||(i.current=o,c(o))},[o,c]),n&&!l?null:"function"===typeof r?r({global:l,setGlobal:a}):r},V=e=>{let{globalKey:t,children:o}=e;const{global:n}=F(t);return o({value:n})},$=e=>{let{children:t,className:o,...n}=e;return(0,A.jsx)(i.A,{errorRender:()=>(0,A.jsx)(a.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,A.jsx)(I,{...n,children:(0,A.jsx)("div",{"data-testid":"components-core-global",className:r()(b.container,"container-body",o),children:t})})})}},3870(){function e(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}const t=Reflect.getPrototypeOf(Int8Array);for(const o of[Array,String,t])Object.defineProperty(o.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},64671(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>n.default});var n=o(48781),r={};for(const l in n)"default"!==l&&(r[l]=()=>n[l]);o.d(t,r)},47458(e,t,o){"use strict";o.d(t,{FormattedMessage:()=>_,IntlProvider:()=>h,createWithIntl:()=>g,useIntl:()=>b});var n=o(87558),r=o(61032),l=o(72752),a=o(73884),s=o(34677),c=o.n(s),i=o(22717),d=o.n(i),u=o(33097),m=o.n(u),p=o(70579);new Map;const f=(0,n.withFetch)(e=>{let{children:t,data:o,locale:n}=e;return(0,p.jsx)(r.IntlProvider,{locale:n,messages:o,children:t})}),h=e=>{let{locale:t,importMessages:o=()=>({}),moduleName:n="Global",children:r}=e;const{global:{localMessageRef:a,locale:s}}=(0,l.useGlobalContext)(),i=t||s||"zh-CN";return(0,p.jsx)(f,{locale:i,params:{locale:i},loader:e=>{let{params:t}=e;const{locale:r}=t;return Promise.resolve(o(r)).then(e=>{let{default:t}=e;const o=c()({},a.current,d()(t,(e,t,o)=>{e[`${n}_${o}`]=t}));return a.current=o,o})},children:r})},_=e=>{let{id:t,moduleName:o="Global",children:n,...l}=e;const a=`${o}_${t}`;return"function"===typeof n?(0,p.jsx)(r.FormattedMessage,{...l,id:a,children:e=>n(e&&e.join(""))}):(0,p.jsx)(r.FormattedMessage,{...l,id:a})},b=e=>{let t=m()(e,"moduleName")||"Global";const{formatMessage:o}=(0,r.useIntl)(),n=(0,a.useCallback)((e,n)=>(e.id=`${t}_${e.id}`,o(e,n)),[t,o]);return{formatMessage:n}},g=e=>{let{importMessages:t,moduleName:o}=e;return e=>(0,a.forwardRef)((n,r)=>(0,p.jsx)(h,{importMessages:t,moduleName:o,children:(0,p.jsx)(e,{...n,ref:r})}))}},81014(e,t,o){"use strict";o.d(t,{default:()=>n.LoadingButton});o(9056);var n=o(41846)}}]);
|
|
2
|
-
//# sourceMappingURL=5628.72e29acc.chunk.js.map
|