@kne-components/components-core 0.3.29 → 0.3.31
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 +110 -106
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1248.64d9bb6d.chunk.css +2 -0
- package/build/static/css/{1248.9dd346e2.chunk.css.map → 1248.64d9bb6d.chunk.css.map} +1 -1
- package/build/static/css/{1996.0c1d2eb8.chunk.css → 1996.9f5f4ae7.chunk.css} +2 -2
- package/build/static/css/{1996.0c1d2eb8.chunk.css.map → 1996.9f5f4ae7.chunk.css.map} +1 -1
- package/build/static/css/206.bad88d8a.chunk.css +2 -0
- package/build/static/css/{206.255d4d1d.chunk.css.map → 206.bad88d8a.chunk.css.map} +1 -1
- package/build/static/css/254.3a18f854.chunk.css +2 -0
- package/build/static/css/{254.a7ba331a.chunk.css.map → 254.3a18f854.chunk.css.map} +1 -1
- package/build/static/css/2580.f86844e1.chunk.css +2 -0
- package/build/static/css/2580.f86844e1.chunk.css.map +1 -0
- package/build/static/css/2628.5ecad003.chunk.css +2 -0
- package/build/static/css/{1742.d0808083.chunk.css.map → 2628.5ecad003.chunk.css.map} +1 -1
- package/build/static/css/2716.17dd70c0.chunk.css +2 -0
- package/build/static/css/{2716.00218291.chunk.css.map → 2716.17dd70c0.chunk.css.map} +1 -1
- package/build/static/css/3771.c2d60a33.chunk.css +2 -0
- package/build/static/css/3771.c2d60a33.chunk.css.map +1 -0
- package/build/static/css/{3790.1c4a984b.chunk.css → 3790.a070b626.chunk.css} +2 -2
- package/build/static/css/{3790.1c4a984b.chunk.css.map → 3790.a070b626.chunk.css.map} +1 -1
- package/build/static/css/{4277.d46e46e1.chunk.css → 4277.1476a9f7.chunk.css} +2 -2
- package/build/static/css/{4277.d46e46e1.chunk.css.map → 4277.1476a9f7.chunk.css.map} +1 -1
- package/build/static/css/4741.637b9bdd.chunk.css +2 -0
- package/build/static/css/4741.637b9bdd.chunk.css.map +1 -0
- package/build/static/css/4832.1f20c29a.chunk.css +2 -0
- package/build/static/css/{3205.fa70c403.chunk.css.map → 4832.1f20c29a.chunk.css.map} +1 -1
- package/build/static/css/{4010.579f87a0.chunk.css → 4978.f2de2c65.chunk.css} +1 -1
- package/build/static/css/{4010.579f87a0.chunk.css.map → 4978.f2de2c65.chunk.css.map} +1 -1
- package/build/static/css/5195.ae841719.chunk.css +2 -0
- package/build/static/css/5195.ae841719.chunk.css.map +1 -0
- package/build/static/css/{2765.3212941b.chunk.css → 6178.23b76af4.chunk.css} +1 -1
- package/build/static/css/{2765.3212941b.chunk.css.map → 6178.23b76af4.chunk.css.map} +1 -1
- package/build/static/css/{6763.306109ad.chunk.css → 6763.22785095.chunk.css} +2 -2
- package/build/static/css/{6763.306109ad.chunk.css.map → 6763.22785095.chunk.css.map} +1 -1
- package/build/static/css/6980.9c762c87.chunk.css +12 -0
- package/build/static/css/{6980.de95ee58.chunk.css.map → 6980.9c762c87.chunk.css.map} +1 -1
- package/build/static/css/7227.427dad1f.chunk.css +2 -0
- package/build/static/css/{7227.819eb13b.chunk.css.map → 7227.427dad1f.chunk.css.map} +1 -1
- package/build/static/css/{760.4294a2cf.chunk.css → 760.d996529f.chunk.css} +2 -2
- package/build/static/css/{760.4294a2cf.chunk.css.map → 760.d996529f.chunk.css.map} +1 -1
- package/build/static/css/{3842.71de4d13.chunk.css → 8322.9f36eb3c.chunk.css} +1 -1
- package/build/static/css/{3842.71de4d13.chunk.css.map → 8322.9f36eb3c.chunk.css.map} +1 -1
- package/build/static/css/{8593.bf6ed3b3.chunk.css → 8593.e0bb864d.chunk.css} +2 -2
- package/build/static/css/{8593.bf6ed3b3.chunk.css.map → 8593.e0bb864d.chunk.css.map} +1 -1
- package/build/static/css/9556.3c7e51d8.chunk.css +2 -0
- package/build/static/css/{9556.7d7daaf2.chunk.css.map → 9556.3c7e51d8.chunk.css.map} +1 -1
- package/build/static/css/9772.7353d865.chunk.css +2 -0
- package/build/static/css/{9772.5ecc8053.chunk.css.map → 9772.7353d865.chunk.css.map} +1 -1
- package/build/static/js/{1248.410139ce.chunk.js → 1248.b553345a.chunk.js} +3 -3
- package/build/static/js/{1248.410139ce.chunk.js.map → 1248.b553345a.chunk.js.map} +1 -1
- package/build/static/js/1996.f87655a0.chunk.js +2 -0
- package/build/static/js/{1996.12ba12b1.chunk.js.map → 1996.f87655a0.chunk.js.map} +1 -1
- package/build/static/js/206.e4a85321.chunk.js +2 -0
- package/build/static/js/206.e4a85321.chunk.js.map +1 -0
- package/build/static/js/254.033a6b2c.chunk.js +2 -0
- package/build/static/js/254.033a6b2c.chunk.js.map +1 -0
- package/build/static/js/2580.783e0fcb.chunk.js +2 -0
- package/build/static/js/2580.783e0fcb.chunk.js.map +1 -0
- package/build/static/js/2628.d101fab3.chunk.js +2 -0
- package/build/static/js/2628.d101fab3.chunk.js.map +1 -0
- package/build/static/js/{2716.621d13f4.chunk.js → 2716.7f613701.chunk.js} +3 -3
- package/build/static/js/{2716.621d13f4.chunk.js.map → 2716.7f613701.chunk.js.map} +1 -1
- package/build/static/js/3771.17da985d.chunk.js +2 -0
- package/build/static/js/3771.17da985d.chunk.js.map +1 -0
- package/build/static/js/{3790.ce9c4e6c.chunk.js → 3790.bb02bbc3.chunk.js} +2 -2
- package/build/static/js/{3790.ce9c4e6c.chunk.js.map → 3790.bb02bbc3.chunk.js.map} +1 -1
- package/build/static/js/3856.2c46e978.chunk.js +2 -0
- package/build/static/js/3856.2c46e978.chunk.js.map +1 -0
- package/build/static/js/4277.dd7276ba.chunk.js +2 -0
- package/build/static/js/{4277.60d99f45.chunk.js.map → 4277.dd7276ba.chunk.js.map} +1 -1
- package/build/static/js/4279.45d71d01.chunk.js +2 -0
- package/build/static/js/4279.45d71d01.chunk.js.map +1 -0
- package/build/static/js/4474.a1655ead.chunk.js +2 -0
- package/build/static/js/{4474.d20c510d.chunk.js.map → 4474.a1655ead.chunk.js.map} +1 -1
- package/build/static/js/4613.89f86015.chunk.js +3 -0
- package/build/static/js/4613.89f86015.chunk.js.map +1 -0
- package/build/static/js/4741.59d5b7a0.chunk.js +2 -0
- package/build/static/js/4741.59d5b7a0.chunk.js.map +1 -0
- package/build/static/js/4832.faed8289.chunk.js +2 -0
- package/build/static/js/4832.faed8289.chunk.js.map +1 -0
- package/build/static/js/4978.69afaa16.chunk.js +2 -0
- package/build/static/js/4978.69afaa16.chunk.js.map +1 -0
- package/build/static/js/{5195.fd2ee0ee.chunk.js → 5195.a16fffa5.chunk.js} +2 -2
- package/build/static/js/{5195.fd2ee0ee.chunk.js.map → 5195.a16fffa5.chunk.js.map} +1 -1
- package/build/static/js/6178.300ad1a8.chunk.js +2 -0
- package/build/static/js/6178.300ad1a8.chunk.js.map +1 -0
- package/build/static/js/6235.432e035d.chunk.js +2 -0
- package/build/static/js/6235.432e035d.chunk.js.map +1 -0
- package/build/static/js/6629.f7a030c0.chunk.js +2 -0
- package/build/static/js/6629.f7a030c0.chunk.js.map +1 -0
- package/build/static/js/6763.119082d0.chunk.js +2 -0
- package/build/static/js/{6763.327683ec.chunk.js.map → 6763.119082d0.chunk.js.map} +1 -1
- package/build/static/js/{6980.aef1b013.chunk.js → 6980.c6a91575.chunk.js} +2 -2
- package/build/static/js/6980.c6a91575.chunk.js.map +1 -0
- package/build/static/js/{7227.1713c872.chunk.js → 7227.8afea629.chunk.js} +3 -3
- package/build/static/js/{7227.1713c872.chunk.js.map → 7227.8afea629.chunk.js.map} +1 -1
- package/build/static/js/760.730fb491.chunk.js +2 -0
- package/build/static/js/{760.0ce1056b.chunk.js.map → 760.730fb491.chunk.js.map} +1 -1
- package/build/static/js/8322.96f54925.chunk.js +2 -0
- package/build/static/js/8322.96f54925.chunk.js.map +1 -0
- package/build/static/js/8593.379fe695.chunk.js +2 -0
- package/build/static/js/{8593.786b467a.chunk.js.map → 8593.379fe695.chunk.js.map} +1 -1
- package/build/static/js/8601.1252d5d8.chunk.js +2 -0
- package/build/static/js/8601.1252d5d8.chunk.js.map +1 -0
- package/build/static/js/9556.c50fd35c.chunk.js +3 -0
- package/build/static/js/{9556.2df08637.chunk.js.map → 9556.c50fd35c.chunk.js.map} +1 -1
- package/build/static/js/{9772.b29a2d16.chunk.js → 9772.76428a79.chunk.js} +2 -2
- package/build/static/js/9772.76428a79.chunk.js.map +1 -0
- package/build/static/js/main.49d987b0.js +2 -0
- package/build/static/js/main.49d987b0.js.map +1 -0
- package/package.json +1 -1
- package/build/static/css/1248.9dd346e2.chunk.css +0 -2
- package/build/static/css/1742.d0808083.chunk.css +0 -2
- package/build/static/css/206.255d4d1d.chunk.css +0 -2
- package/build/static/css/2307.0c628548.chunk.css +0 -2
- package/build/static/css/2307.0c628548.chunk.css.map +0 -1
- package/build/static/css/254.a7ba331a.chunk.css +0 -2
- package/build/static/css/2716.00218291.chunk.css +0 -2
- package/build/static/css/3205.fa70c403.chunk.css +0 -2
- package/build/static/css/3771.b63ba260.chunk.css +0 -2
- package/build/static/css/3771.b63ba260.chunk.css.map +0 -1
- package/build/static/css/5195.6158fffb.chunk.css +0 -2
- package/build/static/css/5195.6158fffb.chunk.css.map +0 -1
- package/build/static/css/6980.de95ee58.chunk.css +0 -12
- package/build/static/css/7227.819eb13b.chunk.css +0 -2
- package/build/static/css/9058.525ece58.chunk.css +0 -2
- package/build/static/css/9058.525ece58.chunk.css.map +0 -1
- package/build/static/css/9556.7d7daaf2.chunk.css +0 -2
- package/build/static/css/9772.5ecc8053.chunk.css +0 -2
- package/build/static/js/1742.4fc659cf.chunk.js +0 -2
- package/build/static/js/1742.4fc659cf.chunk.js.map +0 -1
- package/build/static/js/1996.12ba12b1.chunk.js +0 -2
- package/build/static/js/206.01785e03.chunk.js +0 -2
- package/build/static/js/206.01785e03.chunk.js.map +0 -1
- package/build/static/js/254.62f7eb14.chunk.js +0 -2
- package/build/static/js/254.62f7eb14.chunk.js.map +0 -1
- package/build/static/js/3205.9a61b7b6.chunk.js +0 -2
- package/build/static/js/3205.9a61b7b6.chunk.js.map +0 -1
- package/build/static/js/3771.a4718b4c.chunk.js +0 -2
- package/build/static/js/3771.a4718b4c.chunk.js.map +0 -1
- package/build/static/js/3842.35b13dba.chunk.js +0 -2
- package/build/static/js/3842.35b13dba.chunk.js.map +0 -1
- package/build/static/js/3856.f1095570.chunk.js +0 -2
- package/build/static/js/3856.f1095570.chunk.js.map +0 -1
- package/build/static/js/4010.065cf885.chunk.js +0 -2
- package/build/static/js/4010.065cf885.chunk.js.map +0 -1
- package/build/static/js/4277.60d99f45.chunk.js +0 -2
- package/build/static/js/4474.d20c510d.chunk.js +0 -2
- package/build/static/js/6763.327683ec.chunk.js +0 -2
- package/build/static/js/6980.aef1b013.chunk.js.map +0 -1
- package/build/static/js/7515.06e02d7f.chunk.js +0 -2
- package/build/static/js/7515.06e02d7f.chunk.js.map +0 -1
- package/build/static/js/760.0ce1056b.chunk.js +0 -2
- package/build/static/js/8593.786b467a.chunk.js +0 -2
- package/build/static/js/8601.5abc12e9.chunk.js +0 -2
- package/build/static/js/8601.5abc12e9.chunk.js.map +0 -1
- package/build/static/js/8945.7dbec83f.chunk.js +0 -3
- package/build/static/js/8945.7dbec83f.chunk.js.map +0 -1
- package/build/static/js/8969.d870d8fa.chunk.js +0 -2
- package/build/static/js/8969.d870d8fa.chunk.js.map +0 -1
- package/build/static/js/9058.49deb6ca.chunk.js +0 -2
- package/build/static/js/9058.49deb6ca.chunk.js.map +0 -1
- package/build/static/js/9556.2df08637.chunk.js +0 -3
- package/build/static/js/9772.b29a2d16.chunk.js.map +0 -1
- package/build/static/js/982.9f53c624.chunk.js +0 -2
- package/build/static/js/982.9f53c624.chunk.js.map +0 -1
- package/build/static/js/main.3e34b1ab.js +0 -2
- package/build/static/js/main.3e34b1ab.js.map +0 -1
- /package/build/static/js/{1248.410139ce.chunk.js.LICENSE.txt → 1248.b553345a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.621d13f4.chunk.js.LICENSE.txt → 2716.7f613701.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.1713c872.chunk.js.LICENSE.txt → 4613.89f86015.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{8945.7dbec83f.chunk.js.LICENSE.txt → 7227.8afea629.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.2df08637.chunk.js.LICENSE.txt → 9556.c50fd35c.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[206,4671],{3870:()=>{function e(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}const t=Reflect.getPrototypeOf(Int8Array);for(const n of[Array,String,t])Object.defineProperty(n.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},25963:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppDrawer:()=>S,DrawerButton:()=>K,default:()=>Z,useDrawer:()=>W});var o=n(20454),r=n(89379),l=n(53986),a=n(55199),s=n(83136),c=n.n(s);const i="style_drawer__hA8bn__hiFBw",d="style_drawer-outer__vuEIf__hiFBw",u="style_drawer-title__71eaW__hiFBw",h="style_drawer-body__frw9I__hiFBw",m="style_is-disabled-scroller__ZsITw__hiFBw",p="style_drawer-body-inner__lci9Z__hiFBw",_="style_drawer-footer__1g8o1__hiFBw",f="style_drawer-close__bpxnp__hiFBw",g=e=>({"en-US":()=>n.e(3172).then(n.bind(n,23172)),"zh-CN":()=>n.e(5254).then(n.bind(n,95254))}[e]());var b=n(47458),w=n(73884);const y=()=>{const[e,t]=(0,w.useState)([]);return[e,(0,w.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var C=n(70579);const x=(0,w.forwardRef)((e,t)=>{let{config:n}=e;const[o,l]=(0,w.useState)(!0),[s,c]=(0,w.useState)(n),i=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.some(e=>e&&e.triggerCancel);s.onClose&&o&&s.onClose(()=>{},...t.slice(1))};return(0,w.useImperativeHandle)(t,()=>({destroy:i,update:e=>{c(t=>(0,r.A)((0,r.A)({},t),e))}})),(0,C.jsx)(a.Drawer,(0,r.A)((0,r.A)({},s),{},{ref:t,open:o,onClose:i}))});let A=0;function j(e){return(0,r.A)({},e)}const v=[],B=(0,w.memo)((0,w.forwardRef)((e,t)=>{const[n,o]=y();return(0,w.useImperativeHandle)(t,()=>({patchElement:o}),[o]),(0,C.jsx)(C.Fragment,{children:n})}));const F=function(){const e=(0,w.useRef)(null),[t,n]=(0,w.useState)([]);(0,w.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),n([])}},[t]);const o=(0,w.useCallback)(t=>function(o){var r;A+=1;const l=(0,w.createRef)();let a=()=>{};const s=(0,C.jsx)(x,{config:t(o),ref:l,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},"drawer-".concat(A));return a=null===(r=e.current)||void 0===r?void 0:r.patchElement(s),a&&v.push(a),{destroy:()=>{function e(){var e;null===(e=l.current)||void 0===e||e.destroy()}l.current?e():n(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():n(e=>[...e,t])}}},[]);return[(0,w.useMemo)(()=>o(j),[o]),(0,C.jsx)(B,{ref:e},"drawer-holder")]},k=(0,w.createContext)({}),{Provider:P}=k,N=e=>{const{children:t}=e,[n,o]=F(),r=(0,w.useMemo)(()=>({drawer:n}),[n]);return(0,C.jsx)(P,{value:r,children:(0,C.jsxs)("div",{children:[o,t]})})};N.useAppDrawer=()=>(0,w.useContext)(k);const S=N;var R=n(81014),G=n(71298),L=n.n(G),E=n(64671);const M=["ButtonComponent","onClick","autoClose"],I=["children","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator"],D=["size"],O=(e,t)=>"function"===typeof e?e(t):e,T=e=>{let{footer:t,footerButtons:n,onConfirm:o,onCancel:s,onClose:c}=e;return(0,C.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,C.jsx)(a.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,C.jsx)(a.Col,{children:(0,C.jsx)(a.Space,{children:(n||[{children:"\u53d6\u6d88",onClick:s},{type:"primary",children:"\u786e\u5b9a",onClick:o}]).map((e,t)=>{let{ButtonComponent:n,onClick:o,autoClose:a=!0}=e,s=(0,l.A)(e,M);const i=n||R.default;return(0,w.createElement)(i,(0,r.A)((0,r.A)({},s),{},{key:t,onClick:async function(){const e=await Promise.resolve(o&&o(...arguments));return a&&!1!==e&&c&&c(),e}}))})})})]})},z=e=>{let{title:t,footer:n,disabledScroller:o,footerButtons:r,onClose:l,closable:s,onConfirm:i,onCancel:g,children:b}=e;const y=(0,w.useRef)(null);return(0,w.useEffect)(()=>{!o&&new(L())(y.current)},[o]),(0,C.jsxs)("div",{className:d,"data-testid":"components-core-drawer",children:[!1===s?null:(0,C.jsx)(a.Button,{"data-testid":"components-core-drawer-close-btn",className:c()(f,"drawer-close"),type:"text",icon:(0,C.jsx)(E.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),l&&l()}}),t&&(0,C.jsx)("div",{className:c()(u,"drawer-title"),children:t}),(0,C.jsx)("div",{className:c()(h,"drawer-body",{[m]:o}),ref:y,children:(0,C.jsx)("div",{className:c()(p,"drawer-body-inner"),children:b})}),null!==n||r?(0,C.jsx)("div",{className:c()(_,"drawer-footer"),children:(0,C.jsx)(T,{footer:n,footerButtons:r,onConfirm:i,onCancel:g,onClose:l})}):null]})},U=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:l,onClose:a,onConfirm:s,onCancel:c,footer:i,disabledScroller:d,children:u}=e;const h=e=>(e=Object.assign({},e),(0,C.jsx)(z,{title:o,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:O(n,(0,r.A)((0,r.A)({},e),{},{close:a})),disabledScroller:d,footer:O(i,(0,r.A)((0,r.A)({},e),{},{close:a})),children:O(u,(0,r.A)((0,r.A)({},e),{},{close:a}))}));return"function"===typeof t?t(h):h({})},q=e=>{let{children:t,footer:n,footerButtons:o,className:a,size:s,title:d,onClose:u,onConfirm:h,onCancel:m,closable:p,disabledScroller:_,withDecorator:f}=e,w=(0,l.A)(e,I);return(0,r.A)((0,r.A)((0,r.A)({},w),{},{icon:null,title:null,maskClosable:!!w.hasOwnProperty("maskClosable")&&w.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:u,className:c()(a,i)},"large"===(y=s)?{width:"calc(100vw - 64px)"}:"small"===y?{width:"600px"}:{width:"1000px"}),{},{children:(0,C.jsx)(b.IntlProvider,{importMessages:g,moduleName:"Drawer",children:U({withDecorator:f,title:d,closable:p,onClose:u,onConfirm:h,onCancel:m,footer:n,footerButtons:o,disabledScroller:_,children:t})})});var y},W=()=>{const{drawer:e}=S.useAppDrawer();return t=>{const n={},l=q((0,r.A)({onClose:()=>n.close()},t)),a=Object.assign({},((0,o.A)(l),l)),{destroy:s}=e((0,r.A)({},a));return n.close=s,n}},Z=e=>{let{size:t="small"}=e,n=(0,l.A)(e,D);return(0,C.jsx)(a.Drawer,(0,r.A)({},q((0,r.A)({size:t},n))))};var H=n(73025);const K=e=>{const t=W();return(0,C.jsx)(H.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},47458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FormattedMessage:()=>x,IntlProvider:()=>C,createWithIntl:()=>j,createWithLocale:()=>b,default:()=>v,useIntl:()=>A});var o=n(89379),r=n(53986),l=n(87558),a=n.n(l),s=n(61032),c=n(63743),i=n(73884),d=n(34677),u=n.n(d),h=n(22717),m=n.n(h),p=n(33097),_=n.n(p),f=n(70579);const g=new Map,b=e=>{let{moduleName:t,importMessages:n}=e;return e=>(0,i.forwardRef)((r,l)=>{const{global:s}=(0,c.useGlobalContext)("locale"),i=s||"zh-CN";return(0,f.jsx)(a(),{params:{locale:i},loader:e=>{let{params:o}=e;const{locale:r}=o,l="".concat(t,"_").concat(r);return g.has(l)?g.get(l):Promise.resolve(n(r)).then(e=>{let{default:t}=e;return g.set(l,t),t})},render:t=>{let{data:n}=t;return(0,f.jsx)(e,(0,o.A)((0,o.A)({},r),{},{locale:n,ref:l}))}})})},w=["id","moduleName","children"],y=(0,l.withFetch)(e=>{let{children:t,data:n,locale:o}=e;return(0,f.jsx)(s.IntlProvider,{locale:o,messages:n,children:t})}),C=e=>{let{locale:t,importMessages:n=()=>({}),moduleName:o="Global",children:r}=e;const{global:{localMessageRef:l,locale:a}}=(0,c.useGlobalContext)(),s=t||a||"zh-CN";return(0,f.jsx)(y,{locale:s,params:{locale:s},loader:e=>{let{params:t}=e;const{locale:r}=t;return Promise.resolve(n(r)).then(e=>{let{default:t}=e;const n=u()({},l.current,m()(t,(e,t,n)=>{e["".concat(o,"_").concat(n)]=t}));return l.current=n,n})},children:r})},x=e=>{let{id:t,moduleName:n="Global",children:l}=e,a=(0,r.A)(e,w);const c="".concat(n,"_").concat(t);return"function"===typeof l?(0,f.jsx)(s.FormattedMessage,(0,o.A)((0,o.A)({},a),{},{id:c,children:e=>l(e&&e.join(""))})):(0,f.jsx)(s.FormattedMessage,(0,o.A)((0,o.A)({},a),{},{id:c}))},A=e=>{let t=_()(e,"moduleName")||"Global";const{formatMessage:n}=(0,s.useIntl)(),o=(0,i.useCallback)((e,o)=>(e.id="".concat(t,"_").concat(e.id),n(e,o)),[t,n]);return{formatMessage:o}},j=e=>{let{importMessages:t,moduleName:n}=e;return e=>(0,i.forwardRef)((r,l)=>(0,f.jsx)(C,{importMessages:t,moduleName:n,children:(0,f.jsx)(e,(0,o.A)((0,o.A)({},r),{},{ref:l}))}))},v=x},63743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GetGlobal:()=>V,GlobalInfo:()=>X,GlobalProvider:()=>H,PureGlobal:()=>K,SetGlobal:()=>Q,default:()=>Y,useGlobalContext:()=>J,usePreset:()=>m});var o=n(89379),r=n(53986),l=(n(3870),n(21683),n(83136)),a=n.n(l),s=n(83694),c=n(73884),i=n(70579);const d=(0,c.createContext)({}),{Provider:u}=d,h=e=>{let{value:t={},children:n}=e;const o=(0,c.useRef)(t);return o.current=t,(0,i.jsx)(u,{value:o,children:n})},m=()=>(0,c.useContext)(d).current||{};var p=n(55199),_=n(71298),f=n.n(_),g=n(36755),b=n(76801);const w=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var y=n(87558),C=n.n(y),x=n(57469),A=n.n(x),j=n(52526);const v=e=>{let{params:t}=e;const{locale:o}=t;return{"en-US":async()=>(await n.e(3513).then(n.t.bind(n,33513,23)),A().locale("en"),await n.e(2397).then(n.t.bind(n,62397,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"button-group")}),await n.e(9808).then(n.t.bind(n,79808,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"phone-number-input")}),await n.e(8670).then(n.t.bind(n,78670,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"scroll-loader")}),await n.e(9223).then(n.t.bind(n,99223,23)).then(e=>{(0,j.localeLoader)("en-US",e.default,"react-file")}),await n.e(7451).then(n.bind(n,47451)).then(e=>e.default)),"zh-CN":async()=>(await n.e(6484).then(n.t.bind(n,76484,23)),A().locale("zh-cn"),await n.e(1873).then(n.bind(n,91873)).then(e=>e.default))}[o]()},B={container:"style_container__k+uRt__hiFBw","is-not-init":"style_is-not-init__BZN0v__hiFBw","loading-rotate":"style_loading-rotate__kLLHV__hiFBw",total_text:"style_total_text__oNKMr__hiFBw","ant-pagination":"style_ant-pagination__4LRg7__hiFBw","ant-pagination-total-text":"style_ant-pagination-total-text__8HE6P__hiFBw","ant-pagination-options":"style_ant-pagination-options__mp-tz__hiFBw","ant-select-single":"style_ant-select-single__mL6Zt__hiFBw","ant-select-selector":"style_ant-select-selector__+111I__hiFBw","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__hiFBw","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__hiFBw","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__hiFBw","ant-pagination-item":"style_ant-pagination-item__i8udA__hiFBw","ant-pagination-prev":"style_ant-pagination-prev__d03DI__hiFBw","ant-pagination-next":"style_ant-pagination-next__lreJT__hiFBw","ant-pagination-item-link":"style_ant-pagination-item-link__qPOiQ__hiFBw","ant-pagination-jump-prev":"style_ant-pagination-jump-prev__Cdgxu__hiFBw","ant-pagination-jump-next":"style_ant-pagination-jump-next__vZW63__hiFBw","ant-pagination-item-active":"style_ant-pagination-item-active__uUJBI__hiFBw"};var F=n(33097),k=n.n(F),P=n(25963),N=n(64671),S=n(96418),R=n.n(S),G=n(22717),L=n.n(G),E=n(96604),M=n.n(E),I=n(25806),D=n.n(I),O=n(13050);const T=["colorPrimary","components"],z=["preset","children","themeToken","init"],U=["children"],q=["children","className"];document.body.classList.add(B.container),w()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new(f())(document.body),(0,b.h)().classList.add(B.container));const W=(0,y.withFetch)(e=>{let{data:t,themeToken:n={colorPrimary:"#4096ff"},children:o}=e;const[l,a]=(0,c.useState)(!1),s=Object.assign({},n),{colorPrimary:d,components:u}=s,h=(0,r.A)(s,T);return(0,c.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=D()(d),n={"--primary-color":d,"--primary-color-red":t.red(),"--primary-color-green":t.green(),"--primary-color-blue":t.blue(),"--primary-color-06":t.alpha(.06).string()};return M()(0,10).forEach(e=>{n["--primary-color-".concat(e+1)]=t.alpha((e+1)/10).string()}),e.textContent=".".concat(B.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),"{").concat(L()(n,(e,t,n)=>{e.push("".concat(n,":").concat(t,";"))},[]).join(""),"}"),a(!0),()=>{}},[d]),l?(0,i.jsx)(p.ConfigProvider,{getTargetContainer:b.h,getPopupContainer:b.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,theme:{components:u,token:Object.assign({},{colorError:"#f53f3f",colorInfo:"#165dff",colorSuccess:"#00b42a",colorWarning:"#ff7d00",algorithm:h.isDark?p.theme.darkAlgorithm:p.theme.defaultAlgorithm,colorPrimary:d,colorLink:d,colorTextBase:"#222222",colorText:"#222222"},h)},children:o}):null}),Z=(0,O.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[n,o]=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.FontLoader,{path:"".concat(n,"/iconfont.css")}),(0,i.jsx)(N.FontLoader,{path:"".concat(o,"/iconfont.js")})]})}),H=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:n,themeToken:l,init:a}=e,d=(0,r.A)(e,z);const u=k()(t,"locale","zh-CN"),m=(0,c.useRef)({}),_=(0,c.useRef)(new Map),[f,g]=(0,c.useState)(Object.assign({themeToken:l,localMessageRef:m,enumsRef:_,locale:u},k()(t,"global")));return(0,i.jsx)(s.Provider,{value:(0,o.A)((0,o.A)({},d),{},{preset:t,locale:u,global:f,setGlobal:g}),children:(0,i.jsx)(h,{value:t,children:(0,i.jsxs)(W,{loader:v,params:{locale:f.locale},themeToken:f.themeToken,children:[(0,i.jsx)(p.App,{message:{top:100},children:(0,i.jsx)(P.AppDrawer,{children:"function"===typeof a?(0,i.jsx)(C(),{loader:()=>a({preset:t,global:f,setGlobal:g}),render:()=>n}):n})}),(0,i.jsx)(Z,{})]})})})},K=e=>{let{children:t}=e,n=(0,r.A)(e,U);const{global:l}=J("themeToken");return(0,i.jsx)(H,(0,o.A)((0,o.A)({},n),{},{themeToken:n.themeToken||l,children:(0,i.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(B.container,"core-container-body"),children:t})}))},J=e=>{const t=(0,s.useGlobalContext)();return Object.assign({global:{},setGlobal:()=>{console.warn("\u8c03\u7528setGlobal\u7684\u7ec4\u4ef6\u5e94\u8be5\u88ab\u653e\u7f6e\u5728Global\u4e0a\u4e0b\u6587\u4e2d")}},t,e?{global:k()(t.global,e),setGlobal:n=>{t.setGlobal("function"===typeof n?t=>Object.assign({},t,{[e]:n(k()(t,e))}):Object.assign({},t.global,{[e]:n}))}}:{})},Q=e=>{let{globalKey:t,value:n,needReady:o,children:r}=e;const{global:l,setGlobal:a}=J(t),s=R()(a);return(0,c.useEffect)(()=>{s(n)},[n,s]),o&&!l?null:r},V=e=>{let{globalKey:t,children:n}=e;const{global:o}=J(t);return n({value:o})},X=e=>{let{globalKey:t,value:n,needReady:o,children:r}=e;const{global:l,setGlobal:a}=J(t),s=R()(a);return(0,c.useEffect)(()=>{s(n)},[n,s]),o&&!l?null:r({global:l,setGlobal:a})},Y=e=>{let{children:t,className:n}=e,l=(0,r.A)(e,q);return(0,i.jsx)(g.A,{errorRender:()=>(0,i.jsx)(p.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,i.jsx)(H,(0,o.A)((0,o.A)({},l),{},{children:(0,i.jsx)("div",{"data-testid":"components-core-global",className:a()(B.container,"container-body",n),children:t})}))})}},64671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.a});var o=n(48781),r=n.n(o),l={};for(const a in o)"default"!==a&&(l[a]=()=>o[a]);n.d(t,l)},73025:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var o=n(89379),r=n(53986),l=n(73884),a=n(87558),s=n(96418),c=n.n(s),i=n(55199),d=n(70579);const u=["api","modalProps","modalFunc","onError"],h=e=>{let{api:t,modalProps:n={},modalFunc:s,onError:h}=e,m=(0,r.A)(e,u);const p=(0,a.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:_,data:f,error:g,refresh:b}=p,w=c()(h),y=c()(()=>{const e=s("function"===typeof n?n({data:f,fetchApi:p,close:()=>{e.close()}}):n)});return(0,l.useEffect)(()=>{_||(g?w(g):f&&y())},[_,g,f,y,w]),(0,d.jsx)(i.Button,(0,o.A)((0,o.A)({},m),{},{loading:_,onClick:()=>{b({onSuccess:()=>{}})}}))}},76801:(e,t,n)=>{"use strict";n.d(t,{c:()=>r,h:()=>o});const o=()=>document.querySelector(".simplebar-content-wrapper"),r=()=>document.querySelector(".container-body")},81014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.LoadingButton,useLoading:()=>o.useLoading});n(9056);var o=n(86300)}}]);
|
|
2
|
-
//# sourceMappingURL=206.01785e03.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/206.01785e03.chunk.js","mappings":"oIAAA,SAASA,EAAGC,GAMV,IAJAA,EAAIC,KAAKC,MAAMF,IAAM,GAEb,IAAGA,GAAKG,KAAKC,UAEjBJ,EAAI,GAAKA,GAAKG,KAAKC,QAEvB,OAAOD,KAAKH,EACd,CAEA,MAAMK,EAAaC,QAAQC,eAAeC,WAC1C,IAAK,MAAMC,IAAK,CAACC,MAAOC,OAAQN,GAC9BO,OAAOC,eAAeJ,EAAEK,UAAW,KAAM,CACvCC,MAAOhB,EACPiB,UAAU,EACVC,YAAY,EACZC,cAAc,G,oLChBlB,QAAyB,6BAAzB,EAAqE,mCAArE,EAAuH,mCAAvH,EAAwK,kCAAxK,EAAiO,2CAAjO,EAAgS,wCAAhS,EAAwV,oCAAxV,EAA2Y,mCCM3Y,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,0BCFJ,MAiBA,EAjBwBG,KACpB,MAAOC,EAAUC,IAAeC,EAAAA,EAAAA,UAAS,IAazC,MAAO,CAACF,GAXaG,EAAAA,EAAAA,aAAaC,IAE9BH,EAAaI,GAAmB,IAAIA,EAAgBD,IAI7C,KACHH,EAAaI,GAAmBA,EAAeC,OAAQC,GAAQA,IAAQH,MAE5E,M,eCXP,MAwBA,GAAeI,EAAAA,EAAAA,YAxBI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AAA,EAAAA,KAAA,OACI,cAAY,yBACZqF,UAAWG,IAAWF,EAAiB,UAAG,iBAAkBD,GAAW3E,SAEtEA,S,iVCrLjB,EApCoBjC,IAA2D,IAA1D,IAACoI,EAAG,WAAEmJ,EAAa,CAAC,EAAC,UAAE3I,EAAS,QAAE4I,GAAkBxR,EAAN2B,GAAKgE,EAAAA,EAAAA,GAAA3F,EAAA4F,GACpE,MAAM6L,GAAWC,EAAAA,EAAAA,UAAS/S,OAAO6I,OAAO,CAAC,EAAGY,EAAK,CAACuJ,MAAM,MAClD,UAACC,EAAS,KAAE/H,EAAI,MAAEgI,EAAK,QAAEC,GAAWL,EACpCM,EAAenB,IAAeY,GAC9BQ,EAAmBpB,IAAe,KACpC,MAAMqB,EAAWrJ,EAAgC,oBAAf2I,EAA4BA,EAAW,CACrE1H,OAAM4H,WAAUlR,MAAOA,KACnB0R,EAAS1R,WAEZgR,KAeT,OAbAjP,EAAAA,EAAAA,WAAU,KACFsP,IAGAC,EACAE,EAAaF,GAGZhI,GAGLmI,MACD,CAACJ,EAAWC,EAAOhI,EAAMmI,EAAkBD,KACtCxQ,EAAAA,EAAAA,KAACuF,EAAAA,QAAMxF,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACPK,GAAK,IACTuQ,QAASN,EACTxM,QAASA,KACL0M,EAAQ,CACJK,UAAWA,a,wDClCpB,MAAM/F,EAAcA,IAAMN,SAASkB,cAAc,8BAC3CoF,EAAmBA,IAAMtG,SAASkB,cAAc,kB","sources":["components/Global/polyfill.js","webpack://@kne-components/components-core/./src/components/Drawer/style.module.scss?33d4","components/Drawer/locale/index.js","components/Drawer/useDrawer/usePatchElement.js","components/Drawer/useDrawer/HookDrawer.js","components/Drawer/useDrawer/index.js","components/Drawer/AppDrawer.js","components/Drawer/Drawer.js","components/Drawer/DrawerButton.js","components/Intl/createWithLocale.js","components/Intl/index.js","components/Global/presetContext.js","common/utils/isMobile.js","components/Global/loadAntdLocale.js","webpack://@kne-components/components-core/./src/components/Global/style.module.scss?6540","components/Global/index.js","common/components/FetchButton.js","common/utils/importantContainer.js"],"sourcesContent":["function at(n) {\n // ToInteger() abstract op\n n = Math.trunc(n) || 0;\n // Allow negative indexing from the end\n if (n < 0) n += this.length;\n // OOB access is guaranteed to return undefined\n if (n < 0 || n >= this.length) return undefined;\n // Otherwise, this is just normal property access\n return this[n];\n}\n\nconst TypedArray = Reflect.getPrototypeOf(Int8Array);\nfor (const C of [Array, String, TypedArray]) {\n Object.defineProperty(C.prototype, \"at\", {\n value: at,\n writable: true,\n enumerable: false,\n configurable: true,\n });\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"drawer\":\"style_drawer__hA8bn__hiFBw\",\"drawer-outer\":\"style_drawer-outer__vuEIf__hiFBw\",\"drawer-title\":\"style_drawer-title__71eaW__hiFBw\",\"drawer-body\":\"style_drawer-body__frw9I__hiFBw\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__hiFBw\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__hiFBw\",\"drawer-footer\":\"style_drawer-footer__1g8o1__hiFBw\",\"drawer-close\":\"style_drawer-close__bpxnp__hiFBw\"};","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","import {useState, useCallback} from \"react\";\n\nconst usePatchElement = () => {\n const [elements, setElements] = useState([]);\n\n const patchElement = useCallback((element) => {\n // append a new element to elements (and create a new ref)\n setElements((originElements) => [...originElements, element]);\n\n // return a function that removes the new element out of elements (and create a new ref)\n // it works a little like useEffect\n return () => {\n setElements((originElements) => originElements.filter((ele) => ele !== element));\n };\n }, []);\n\n return [elements, patchElement];\n};\n\nexport default usePatchElement;\n","import {useState, useImperativeHandle, forwardRef} from \"react\";\nimport {Drawer} from \"antd\";\n\nconst HookDrawer = ({config}, ref) => {\n const [open, setOpen] = useState(true);\n const [innerConfig, setInnerConfig] = useState(config);\n\n const close = (...args) => {\n setOpen(false);\n const triggerCancel = args.some((param) => param && param.triggerCancel);\n if (innerConfig.onClose && triggerCancel) {\n innerConfig.onClose(() => {\n }, ...args.slice(1));\n }\n };\n\n useImperativeHandle(ref, () => ({\n destroy: close, update: (newConfig) => {\n setInnerConfig((originConfig) => ({\n ...originConfig, ...newConfig,\n }));\n },\n }));\n\n return <Drawer {...innerConfig} ref={ref} open={open} onClose={close}/>;\n};\n\nexport default forwardRef(HookDrawer);\n","import {\n createRef,\n forwardRef,\n memo,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport usePatchElement from \"./usePatchElement\";\nimport HookDrawer from \"./HookDrawer\";\n\nlet uuid = 0;\n\nfunction withConfirm(props) {\n return {\n ...props,\n };\n}\n\nconst destroyFns = [];\n\nconst ElementsHolder = memo(\n forwardRef((props, ref) => {\n const [elements, patchElement] = usePatchElement();\n useImperativeHandle(\n ref,\n () => ({\n patchElement,\n }),\n [patchElement]\n );\n return <>{elements}</>;\n })\n);\n\nfunction useDrawer() {\n const holderRef = useRef(null);\n const [actionQueue, setActionQueue] = useState([]);\n useEffect(() => {\n if (actionQueue.length) {\n const cloneQueue = [...actionQueue];\n cloneQueue.forEach((action) => {\n action();\n });\n setActionQueue([]);\n }\n }, [actionQueue]);\n\n const getConfirmFunc = useCallback(\n (withFunc) =>\n function hookConfirm(config) {\n uuid += 1;\n\n const drawerRef = createRef();\n\n let closeFunc = () => {};\n const drawer = (\n <HookDrawer\n key={`drawer-${uuid}`}\n config={withFunc(config)}\n ref={drawerRef}\n afterClose={() => {\n closeFunc?.();\n }}\n />\n );\n\n closeFunc = holderRef.current?.patchElement(drawer);\n\n if (closeFunc) {\n destroyFns.push(closeFunc);\n }\n\n return {\n destroy: () => {\n function destroyAction() {\n drawerRef.current?.destroy();\n }\n\n if (drawerRef.current) {\n destroyAction();\n } else {\n setActionQueue((prev) => [...prev, destroyAction]);\n }\n },\n update: (newConfig) => {\n function updateAction() {\n drawerRef.current?.update(newConfig);\n }\n\n if (drawerRef.current) {\n updateAction();\n } else {\n setActionQueue((prev) => [...prev, updateAction]);\n }\n },\n };\n },\n []\n );\n\n const fns = useMemo(() => getConfirmFunc(withConfirm), [getConfirmFunc]);\n\n return [fns, <ElementsHolder key=\"drawer-holder\" ref={holderRef} />];\n}\n\nexport default useDrawer;\n","import { createContext, useContext, useMemo } from \"react\";\nimport useDrawer from \"./useDrawer\";\n\nconst context = createContext({});\nconst { Provider } = context;\n\nconst useAppDrawer = () => useContext(context);\n\nconst AppDrawer = (props) => {\n const { children } = props;\n const [DrawerApi, DrawerContextHolder] = useDrawer();\n const memoizedContextValue = useMemo(\n () => ({\n drawer: DrawerApi,\n }),\n [DrawerApi]\n );\n return (\n <Provider value={memoizedContextValue}>\n <div>\n {DrawerContextHolder}\n {children}\n </div>\n </Provider>\n );\n};\n\nAppDrawer.useAppDrawer = useAppDrawer;\n\nexport default AppDrawer;\n","import {Button, Col, Drawer as AntdDrawer, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {IntlProvider} from \"@components/Intl\";\nimport AppDrawer from \"./AppDrawer\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport React, {useEffect, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport Icon from \"@components/Icon\";\n\nconst renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return {width: \"calc(100vw - 64px)\"};\n }\n if (type === \"small\") {\n return {width: \"600px\"};\n }\n return {width: \"1000px\"};\n};\n\nconst Footer = ({footer, footerButtons, onConfirm, onCancel, onClose}) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{children: \"取消\", onClick: onCancel}, {\n type: \"primary\", children: \"确定\", onClick: onConfirm,\n },]).map(({ButtonComponent, onClick, autoClose = true, ...props}, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst DrawerOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n }) => {\n const modalBodyRef = useRef(null);\n useEffect(() => {\n !disabledScroller && new SimpleBar(modalBodyRef.current);\n }, [disabledScroller]);\n return (<div className={style[\"drawer-outer\"]} data-testid=\"components-core-drawer\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-drawer-close-btn\"\n className={classnames(style[\"drawer-close\"], \"drawer-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && (<div className={classnames(style[\"drawer-title\"], \"drawer-title\")}>\n {title}\n </div>)}\n <div\n className={classnames(style[\"drawer-body\"], \"drawer-body\", {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n })}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"drawer-body-inner\"], \"drawer-body-inner\")}\n >\n {children}\n </div>\n </div>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"drawer-footer\"], \"drawer-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n disabledScroller,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, props);\n return (<DrawerOuter\n title={title}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {...props, close: onClose})}\n >\n {renderWithOptions(children, {\n ...props, close: onClose,\n })}\n </DrawerOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner) : getInner({});\n};\n\nexport const computedCommonProps = ({\n children,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"drawer\"]), ...sizeMap(size),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Drawer\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n disabledScroller,\n children,\n })}\n </IntlProvider>),\n };\n};\n\nconst Drawer = ({size = \"small\", ...props}) => {\n return <AntdDrawer {...computedCommonProps({size, ...props})} />;\n};\n\nexport const useDrawer = () => {\n const {drawer} = AppDrawer.useAppDrawer();\n return (props) => {\n const api = {};\n const {...otherProps} = computedCommonProps({\n onClose: () => api.close(), ...props,\n });\n const {destroy} = drawer({\n ...otherProps,\n });\n api.close = destroy;\n return api;\n };\n};\n\nexport default Drawer;\n","import { useDrawer } from \"./Drawer\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst DrawerButton = (props) => {\n const drawer = useDrawer();\n return <FetchButton {...props} modalFunc={drawer} />;\n};\n\nexport default DrawerButton;\n","import { forwardRef } from \"react\";\nimport Fetch from \"@kne/react-fetch\";\nimport { useGlobalContext } from \"@components/Global\";\n\nconst localeCache = new Map();\n\nconst createWithLocale =\n ({ moduleName, importMessages }) =>\n (WrappedComponent) =>\n forwardRef((props, ref) => {\n const { global: locale } = useGlobalContext(\"locale\");\n const currentLocale = locale || \"zh-CN\";\n return (\n <Fetch\n params={{ locale: currentLocale }}\n loader={({ params }) => {\n const { locale } = params;\n const key = `${moduleName}_${locale}`;\n if (localeCache.has(key)) {\n return localeCache.get(key);\n }\n return Promise.resolve(importMessages(locale)).then(\n ({ default: localMessages }) => {\n localeCache.set(key, localMessages);\n return localMessages;\n }\n );\n }}\n render={({ data: messages }) => {\n return <WrappedComponent {...props} locale={messages} ref={ref} />;\n }}\n />\n );\n });\n\nexport default createWithLocale;\n","import {withFetch} from \"@kne/react-fetch\";\nimport {\n FormattedMessage as IntlFormattedMessage, IntlProvider as ReactIntlProvider, useIntl as useReactIntl,\n} from \"react-intl\";\nimport {useGlobalContext} from \"@components/Global\";\nimport {forwardRef, useCallback} from \"react\";\nimport merge from \"lodash/merge\";\nimport transform from \"lodash/transform\";\nimport get from \"lodash/get\";\n\nconst InnerProvider = withFetch(({children, data: messages, locale}) => {\n return (<ReactIntlProvider locale={locale} messages={messages}>\n {children}\n </ReactIntlProvider>);\n});\n\nexport const IntlProvider = ({\n locale: baseLocale, importMessages = () => ({}), moduleName = \"Global\", children,\n }) => {\n const {\n global: {localMessageRef, locale},\n } = useGlobalContext();\n const currentLocale = baseLocale || locale || \"zh-CN\";\n return (<InnerProvider\n locale={currentLocale}\n params={{locale: currentLocale}}\n loader={({params}) => {\n const {locale} = params;\n return Promise.resolve(importMessages(locale)).then(({default: localMessages}) => {\n const currentMessages = merge({}, localMessageRef.current, transform(localMessages, (results, value, key) => {\n results[`${moduleName}_${key}`] = value;\n }));\n localMessageRef.current = currentMessages;\n return currentMessages;\n });\n }}\n >\n {children}\n </InnerProvider>);\n};\n\nexport const FormattedMessage = ({id, moduleName = \"Global\", children, ...props}) => {\n const moduleId = `${moduleName}_${id}`;\n if (typeof children === \"function\") {\n return (<IntlFormattedMessage {...props} id={moduleId}>\n {(text) => {\n return children(text && text.join(\"\"));\n }}\n </IntlFormattedMessage>);\n }\n return <IntlFormattedMessage {...props} id={moduleId}/>;\n};\n\nexport const useIntl = (props) => {\n let moduleName = get(props, \"moduleName\") || \"Global\";\n const {formatMessage} = useReactIntl();\n const formatModuleMessage = useCallback((props, values) => {\n props.id = `${moduleName}_${props.id}`;\n return formatMessage(props, values);\n }, [moduleName, formatMessage]);\n return {\n formatMessage: formatModuleMessage,\n };\n};\n\nexport const createWithIntl = ({importMessages, moduleName}) => (WrappedComponent) => forwardRef((props, ref) => (\n <IntlProvider importMessages={importMessages} moduleName={moduleName}>\n <WrappedComponent {...props} ref={ref}/>\n </IntlProvider>));\n\nexport default FormattedMessage;\n\nexport {default as createWithLocale} from \"./createWithLocale\";\n","import React, {createContext, useContext, useRef} from 'react';\n\nexport const context = createContext({});\n\nconst {Provider: ReactProvider} = context;\n\nconst Provider = ({value = {}, children}) => {\n const preset = useRef(value);\n preset.current = value;\n return <ReactProvider value={preset}>\n {children}\n </ReactProvider>\n};\n\nconst usePreset = () => {\n const preset = useContext(context);\n return preset.current || {};\n};\n\nexport {Provider, usePreset};\n","const isMobile = () => {\n return /iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);\n};\n\nexport default isMobile;\n","import dayjs from \"dayjs\";\nimport {localeLoader} from '@kne/react-intl';\n\nconst loadAntdLocale = ({params}) => {\n const {locale} = params;\n return {\n \"en-US\": async () => {\n await import(\"dayjs/locale/en\");\n dayjs.locale(\"en\");\n await import(\"@kne/button-group/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'button-group');\n });\n await import(\"@kne/phone-number-input/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'phone-number-input');\n });\n await import(\"@kne/scroll-loader/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'scroll-loader');\n });\n await import(\"@kne/react-file/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'react-file');\n });\n\n return await import(\"antd/es/locale/en_US\").then(module => module[\"default\"]);\n }, \"zh-CN\": async () => {\n await import(\"dayjs/locale/zh-cn\");\n dayjs.locale(\"zh-cn\");\n\n return await import(\"antd/es/locale/zh_CN\").then(module => module[\"default\"]);\n }\n }[locale]();\n};\n\nexport default loadAntdLocale;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style_container__k+uRt__hiFBw\",\"is-not-init\":\"style_is-not-init__BZN0v__hiFBw\",\"loading-rotate\":\"style_loading-rotate__kLLHV__hiFBw\",\"total_text\":\"style_total_text__oNKMr__hiFBw\",\"ant-pagination\":\"style_ant-pagination__4LRg7__hiFBw\",\"ant-pagination-total-text\":\"style_ant-pagination-total-text__8HE6P__hiFBw\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__hiFBw\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__hiFBw\",\"ant-select-selector\":\"style_ant-select-selector__+111I__hiFBw\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__hiFBw\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__hiFBw\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__hiFBw\",\"ant-pagination-item\":\"style_ant-pagination-item__i8udA__hiFBw\",\"ant-pagination-prev\":\"style_ant-pagination-prev__d03DI__hiFBw\",\"ant-pagination-next\":\"style_ant-pagination-next__lreJT__hiFBw\",\"ant-pagination-item-link\":\"style_ant-pagination-item-link__qPOiQ__hiFBw\",\"ant-pagination-jump-prev\":\"style_ant-pagination-jump-prev__Cdgxu__hiFBw\",\"ant-pagination-jump-next\":\"style_ant-pagination-jump-next__vZW63__hiFBw\",\"ant-pagination-item-active\":\"style_ant-pagination-item-active__uUJBI__hiFBw\"};","import \"./polyfill\";\nimport \"simplebar/dist/simplebar.min.css\";\nimport \"./override.scss\";\nimport classnames from \"classnames\";\nimport {Provider, useGlobalContext as useContext} from \"@kne/global-context\";\nimport {Provider as PresetProvider, usePreset} from \"./presetContext\";\nimport {App, ConfigProvider as AntdConfigProvider, Result, theme} from \"antd\";\nimport {useEffect, useState, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport ErrorBoundary from \"@kne/react-error-boundary\";\nimport {getScrollEl} from \"@common/utils/importantContainer\";\nimport isMobile from \"@common/utils/isMobile\";\nimport Fetch, {withFetch} from \"@kne/react-fetch\";\nimport loadAntdLocale from \"./loadAntdLocale\";\nimport style from \"./style.module.scss\";\nimport get from \"lodash/get\";\nimport {AppDrawer} from \"@components/Drawer\";\nimport {FontLoader} from '@components/Icon';\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport transform from \"lodash/transform\";\nimport range from \"lodash/range\";\nimport Color from \"color\";\nimport {createWithRemoteLoader} from \"@kne/remote-loader\";\n\ndocument.body.classList.add(style[\"container\"]);\nif (!isMobile() && !window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED) {\n new SimpleBar(document.body);\n getScrollEl().classList.add(style[\"container\"]);\n} else {\n document.body.classList.add(\"simplebar-content-wrapper\");\n}\n\nconst ConfigProvider = withFetch(({data: message, themeToken = {colorPrimary: \"#4096ff\"}, children}) => {\n const [isInit, setIsInit] = useState(false);\n const {colorPrimary, components, ...otherToken} = Object.assign({}, themeToken);\n useEffect(() => {\n let styleEl = document.head.querySelector(\"#component-core-theme\");\n if (!styleEl) {\n styleEl = document.createElement(\"style\");\n styleEl.id = \"component-core-theme\";\n document.head.appendChild(styleEl);\n }\n const colorPrimaryObject = Color(colorPrimary);\n const themeProps = {\n \"--primary-color\": colorPrimary,\n \"--primary-color-red\": colorPrimaryObject.red(),\n \"--primary-color-green\": colorPrimaryObject.green(),\n \"--primary-color-blue\": colorPrimaryObject.blue(),\n \"--primary-color-06\": colorPrimaryObject.alpha(0.06).string(),\n };\n range(0, 10).forEach((i) => {\n themeProps[`--primary-color-${i + 1}`] = colorPrimaryObject\n .alpha((i + 1) / 10)\n .string();\n });\n styleEl.textContent = `.${style[\"container\"]\n .replace(/\\+/g, \"\\\\+\")\n .replace(/\\//g, \"\\\\/\")}{${transform(themeProps, (result, value, key) => {\n result.push(`${key}:${value};`);\n }, []).join(\"\")}}`;\n setIsInit(true);\n return () => {\n // uninstall();\n };\n }, [colorPrimary]);\n //设置主题色成功再展示页面\n if (!isInit) {\n return null;\n }\n return (<AntdConfigProvider\n getTargetContainer={getScrollEl}\n getPopupContainer={getScrollEl}\n locale={message}\n wave={{disabled: true}}\n autoInsertSpace={false}\n theme={{\n components, token: Object.assign({}, {\n colorError: \"#f53f3f\",\n colorInfo: \"#165dff\",\n colorSuccess: \"#00b42a\",\n colorWarning: \"#ff7d00\",\n algorithm: otherToken.isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,\n colorPrimary: colorPrimary,\n colorLink: colorPrimary,\n colorTextBase: \"#222222\",\n colorText: \"#222222\"\n }, otherToken),\n }}\n >\n {children}\n </AntdConfigProvider>);\n});\n\nconst GlobalFontLoader = createWithRemoteLoader({\n modules: [\"components-iconfont:Font@path\", \"components-iconfont:ColorfulFont@path\",],\n})(({remoteModules}) => {\n const [fontPath, colorfulPath] = remoteModules;\n\n return <>\n <FontLoader path={`${fontPath}/iconfont.css`}/>\n <FontLoader path={`${colorfulPath}/iconfont.js`}/>\n </>;\n});\n\nexport const GlobalProvider = ({\n preset = {locale: \"zh-CN\", apis: {}}, children, themeToken, init, ...props\n }) => {\n const locale = get(preset, \"locale\", \"zh-CN\");\n const localMessageRef = useRef({});\n const enumsRef = useRef(new Map());\n const [global, setGlobal] = useState(Object.assign({\n themeToken, localMessageRef, enumsRef, locale,\n }, get(preset, \"global\")));\n return (<Provider\n value={{\n ...props, preset, locale, global, setGlobal,\n }}\n >\n <PresetProvider value={preset}>\n <ConfigProvider\n loader={loadAntdLocale}\n params={{locale: global.locale}}\n themeToken={global.themeToken}\n >\n <App message={{top: 100}}>\n <AppDrawer>\n {typeof init === \"function\" ? (<Fetch\n loader={() => init({\n preset, global, setGlobal,\n })}\n render={() => children}\n />) : (children)}\n </AppDrawer>\n </App>\n <GlobalFontLoader/>\n </ConfigProvider>\n </PresetProvider>\n </Provider>);\n};\n\nexport const PureGlobal = ({children, ...props}) => {\n const {global: themeToken} = useGlobalContext(\"themeToken\");\n return (<GlobalProvider {...props} themeToken={props.themeToken || themeToken}>\n <div\n data-testid=\"components-core-pure-global\"\n className={classnames(style[\"container\"], \"core-container-body\")}\n >\n {children}\n </div>\n </GlobalProvider>);\n};\n\nexport {usePreset};\n\nexport const useGlobalContext = (globalKey) => {\n const contextValue = useContext();\n return Object.assign({\n global: {}, setGlobal: () => {\n console.warn(\"调用setGlobal的组件应该被放置在Global上下文中\");\n },\n }, contextValue, globalKey ? {\n global: get(contextValue.global, globalKey), setGlobal: (value) => {\n contextValue.setGlobal(typeof value === \"function\" ? (global) => {\n return Object.assign({}, global, {\n [globalKey]: value(get(global, globalKey)),\n });\n } : Object.assign({}, contextValue.global, {\n [globalKey]: value,\n }));\n },\n } : {});\n};\n\nexport const SetGlobal = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n\n useEffect(() => {\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n\n return children;\n};\n\nexport const GetGlobal = ({globalKey, children}) => {\n const {global} = useGlobalContext(globalKey);\n return children({value: global});\n};\n\nexport const GlobalInfo = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n\n useEffect(() => {\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n return children({global, setGlobal});\n};\n\nconst Global = ({children, className, ...props}) => {\n return (<ErrorBoundary\n errorRender={() => {\n return (<Result\n status=\"500\"\n title=\"500\"\n subTitle=\"程序出现异常,请刷新后重试\"\n />);\n }}\n >\n <GlobalProvider {...props}>\n <div\n data-testid=\"components-core-global\"\n className={classnames(style[\"container\"], \"container-body\", className)}\n >\n {children}\n </div>\n </GlobalProvider>\n </ErrorBoundary>);\n};\n\nexport default Global;\n","import {useEffect} from \"react\";\nimport {useFetch} from \"@kne/react-fetch\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport {Button} from \"antd\";\n\nconst FetchButton = ({api, modalProps = {}, modalFunc, onError, ...props}) => {\n const fetchApi = useFetch(Object.assign({}, api, {auto: false}));\n const {isLoading, data, error, refresh} = fetchApi;\n const errorHandler = useRefCallback(onError);\n const modalFuncHandler = useRefCallback(() => {\n const modalApi = modalFunc(typeof modalProps === \"function\" ? modalProps({\n data, fetchApi, close: () => {\n modalApi.close();\n },\n }) : modalProps);\n });\n useEffect(() => {\n if (isLoading) {\n return;\n }\n if (error) {\n errorHandler(error);\n return;\n }\n if (!data) {\n return;\n }\n modalFuncHandler();\n }, [isLoading, error, data, modalFuncHandler, errorHandler]);\n return (<Button\n {...props}\n loading={isLoading}\n onClick={() => {\n refresh({\n onSuccess: () => {\n },\n });\n }}\n />);\n};\n\nexport default FetchButton;\n","export const getScrollEl = () => document.querySelector('.simplebar-content-wrapper');\nexport const getContainerBody = () => document.querySelector('.container-body');\n"],"names":["at","n","Math","trunc","this","length","TypedArray","Reflect","getPrototypeOf","Int8Array","C","Array","String","Object","defineProperty","prototype","value","writable","enumerable","configurable","locale","en-US","zh-CN","usePatchElement","elements","setElements","useState","useCallback","element","originElements","filter","ele","forwardRef","HookDrawer","_ref","ref","config","open","setOpen","innerConfig","setInnerConfig","close","_len","arguments","args","_key","triggerCancel","some","param","onClose","slice","useImperativeHandle","destroy","update","newConfig","originConfig","_objectSpread","_jsx","Drawer","uuid","withConfirm","props","destroyFns","ElementsHolder","memo","patchElement","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","useEffect","forEach","action","getConfirmFunc","withFunc","_holderRef$current","drawerRef","createRef","closeFunc","drawer","afterClose","_closeFunc","concat","current","push","destroyAction","_drawerRef$current","prev","updateAction","_drawerRef$current2","useMemo","context","createContext","Provider","AppDrawer","DrawerApi","DrawerContextHolder","useDrawer","memoizedContextValue","_jsxs","useAppDrawer","useContext","renderWithOptions","footer","options","Footer","footerButtons","onConfirm","onCancel","Row","gutter","wrap","Col","flex","isArray","Space","onClick","type","map","_ref2","index","ButtonComponent","autoClose","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","key","async","res","Promise","resolve","DrawerOuter","_ref3","title","disabledScroller","closable","modalBodyRef","SimpleBar","className","style","Button","classnames","icon","Icon","e","stopPropagation","runWithDecorator","_ref4","withDecorator","getInner","assign","computedCommonProps","_ref5","size","_excluded2","maskClosable","hasOwnProperty","destroyOnClose","width","IntlProvider","importMessages","moduleName","api","_computedCommonProps","otherProps","_objectDestructuringEmpty","_ref6","_excluded3","AntdDrawer","FetchButton","modalFunc","localeCache","Map","WrappedComponent","global","useGlobalContext","currentLocale","Fetch","params","loader","has","get","then","default","localMessages","set","render","data","messages","InnerProvider","withFetch","ReactIntlProvider","baseLocale","localMessageRef","currentMessages","merge","transform","results","FormattedMessage","id","moduleId","IntlFormattedMessage","text","join","useIntl","formatMessage","useReactIntl","formatModuleMessage","values","createWithIntl","ReactProvider","preset","usePreset","isMobile","test","navigator","userAgent","dayjs","module","localeLoader","document","body","classList","add","window","__COMPONENTS_CORE_SIMPLE_BAR_DISABLED","getScrollEl","ConfigProvider","message","themeToken","colorPrimary","isInit","setIsInit","_Object$assign","components","otherToken","styleEl","head","querySelector","createElement","appendChild","colorPrimaryObject","Color","themeProps","red","green","blue","alpha","string","range","i","textContent","replace","result","AntdConfigProvider","getTargetContainer","getPopupContainer","wave","disabled","autoInsertSpace","theme","token","colorError","colorInfo","colorSuccess","colorWarning","algorithm","isDark","darkAlgorithm","defaultAlgorithm","colorLink","colorTextBase","colorText","GlobalFontLoader","createWithRemoteLoader","modules","remoteModules","fontPath","colorfulPath","FontLoader","path","GlobalProvider","apis","init","enumsRef","setGlobal","PresetProvider","loadAntdLocale","App","top","PureGlobal","globalKey","contextValue","console","warn","SetGlobal","needReady","setGlobalHandler","useRefCallback","GetGlobal","GlobalInfo","_ref7","_ref8","_excluded4","ErrorBoundary","errorRender","Result","status","subTitle","modalProps","onError","fetchApi","useFetch","auto","isLoading","error","refresh","errorHandler","modalFuncHandler","modalApi","loading","onSuccess","getContainerBody"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[254,330],{330:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(29871),s=r.n(n),a={};for(const o in n)"default"!==o&&(a[o]=()=>n[o]);r.d(t,a),s().Fetch=n.FlexBoxFetch;const l=s()},1904:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,N:()=>c});var n=r(98434),s=r(43856);const{useOnChange:a,useDecorator:l}=n.hooks,o=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.AddressSelectField);o.Field=s.AddressSelectField,o.AddressEnum=s.AddressSelectField.AddressEnum,o.createAddressApi=s.AddressSelectField.createAddressApi,o.withAddressApi=s.AddressSelectField.withAddressApi;const i=o,c=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(s.AddressInputField);c.Field=s.AddressInputField},2196:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(53986),s=r(55199),a=r(73884),l=r(41381),o=r(330),i=r(83560),c=r(47094),d=r(83136),u=r.n(d),p=r(70579);const m=["list","groupArgs","column","gap","className","outer"],h=e=>{let{list:t=[],groupArgs:r,column:d=2,gap:h,className:f,outer:g=(0,p.jsx)(l.default.Part,{})}=e,A=(0,n.A)(e,m);const x=!(Number.isInteger(d)&&d>0),{ref:_,column:v}=(0,o.useFlexBox)(x?d:{}),y=(e,n)=>(0,p.jsx)(s.Row,{gutter:[h||24,0],className:u()({[c.A["column-not-layout"]]:n}),children:(0,p.jsx)(i.A,{list:t,groupArgs:r,itemRender:(t,r)=>(0,p.jsx)(s.Col,{span:!0===r.block?24:Math.round(24/(e||1)),children:t})})});return(0,a.cloneElement)(g,Object.assign({},A,{className:u()(f,c.A["form-info"])}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{ref:_}),x?v?y(v.col):y(2,!0):y(d)]}))}},2842:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});r(2885);var n=r(22986),s=r.n(n);r.o(n,"PHONE_NUMBER_INPUT")&&r.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},2885:()=>{},5995:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m,Vl:()=>h,W6:()=>f});var n=r(53986),s=r(89379),a=r(3382),l=r(73025),o=r(55199),i=r(76995),c=r(47094),d=r(70579);const u=["classNames"],p=["modalProps"],m=e=>(0,d.jsx)(a.default,(0,s.A)({},(0,i.A)(Object.assign({},e,{className:c.A["form-modal"]})))),h=()=>{const e=(0,a.useModal)();return t=>e((0,i.A)(Object.assign({},t,{className:c.A["form-modal"]})))},f=e=>{let{classNames:t}=e,r=(0,n.A)(e,u);const a=h();if(!r.api){const{modalProps:e}=r,t=(0,n.A)(r,p);return(0,d.jsx)(o.Button,(0,s.A)((0,s.A)({},t),{},{onClick:()=>{a(e)}}))}return(0,d.jsx)(l.A,(0,s.A)((0,s.A)({},r),{},{modalFunc:a}))}},15209:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(53986),s=r(89379),a=r(20454),l=r(55199),o=r(10986),i=r.n(o),c=r(13050),d=r(70579);const u=["remoteModules"],p=e=>{let t=Object.assign({},((0,a.A)(e),e));const[r,n]=i()(t);return(0,d.jsx)(l.Input,(0,s.A)((0,s.A)({},t),{},{value:r,onChange:e=>{n(e.target.value?e.target.value.toUpperCase():e.target.value,e)}}))},m=(0,c.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t}=e,r=(0,n.A)(e,u);const[s]=t,{hooks:a}=s,{useDecorator:l}=a;return l(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(r.label||"")},r))(p)});m.field=p;const h=m},17448:()=>{},18936:(e,t,r)=>{"use strict";r.d(t,{A:()=>z});var n=r(89379),s=r(53986);const a={"ant-tag":"style_ant-tag__7ct2q__hiFBw",overlay:"style_overlay__CXfU5__hiFBw",input:"style_input__+OpvV__hiFBw","is-disabled":"style_is-disabled__uX4qq__hiFBw","input-icon":"style_input-icon__E3NjK__hiFBw",large:"style_large__vMozz__hiFBw",small:"style_small__ubqQ+__hiFBw","input-inner":"style_input-inner__sY-6k__hiFBw","input-custom":"style_input-custom__Kxq3n__hiFBw","display-content":"style_display-content__qA1jn__hiFBw","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__hiFBw","selected-tag":"style_selected-tag__BZsMM__hiFBw","selected-tag-list":"style_selected-tag-list__As0ho__hiFBw","selected-tag-inner":"style_selected-tag-inner__2NH59__hiFBw","text-inner":"style_text-inner__Bq2Ji__hiFBw",placeholder:"style_placeholder__odotY__hiFBw","is-modal":"style_is-modal__4cj8L__hiFBw","overlay-content":"style_overlay-content__kpGRn__hiFBw"};var l=r(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,l.A)();var u=r(73884),p=r(10986),m=r.n(p),h=r(87558),f=r(33097),g=r.n(f),A=r(55199),x=r(83136),_=r.n(x),v=r(3382),y=r(64671),j=r(79686),b=r.n(j),w=r(41740),F=r.n(w),N=r(74065),C=r.n(N),S=r(17342),I=r(70579);const P=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],B=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName"],M=["setFetchApi","wrapClassName"],k=["api","className","displayItems","wrapClassName"],T=e=>{let{maxLength:t,single:r,setValue:n,value:s,message:a}=e;return e=>n(!r&&Number.isInteger(t)&&t>0&&e.length>t?(a("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),s):e)},O=e=>{let{single:t,value:r,mapping:n,onClose:s}=e;return r&&Array.isArray(r)&&0!==r.length?t?(0,I.jsx)("span",{className:a["text-inner"],children:g()(n.get(r[0]),"label")||r[0]}):r.map(e=>{const t=n.get(e);return(0,I.jsx)(A.Tag,{className:a["display-tag"],closable:!0,onClose:r=>{r.preventDefault(),s(e,t)},children:(0,I.jsx)("span",{className:a["tag-inner"],children:g()(t,"label")||e})},e)}):null},R=(0,u.forwardRef)((e,t)=>{let{value:r,onChange:l,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,s.A)(e,P);const[m,h]=(0,u.useState)(r),f=(0,u.useRef)(r);f.current=r;const[g,x]=(0,u.useState)(!1),{message:_}=A.App.useApp(),y=T({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:_.error});return(0,u.useEffect)(()=>{g&&h(f.current)},[g]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{x(!0)},close:()=>{x(!1)}})),(0,I.jsx)(v.default,(0,n.A)((0,n.A)({},p),{},{open:g,onConfirm:()=>{l(m)},onClose:()=>{x(!1)},footer:(i||o)&&(0,I.jsxs)(A.Space,{direction:"vertical",className:a["overlay-footer"],children:[o&&(0,I.jsx)("div",{className:a["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:y})]}),children:"function"===typeof d?d({value:m,setValue:y}):d}))}),E=(0,u.forwardRef)((e,t)=>{let{value:r,setValue:l,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:f,wrapClassName:g}=e,x=(0,s.A)(e,B);const[_,v]=(0,u.useState)(!1);return(0,u.useImperativeHandle)(t,()=>({close:()=>{v(!1)}}),[]),(0,I.jsx)(A.Popover,(0,n.A)((0,n.A)({},x),{},{open:_,onOpenChange:v,overlayClassName:a.overlay,arrow:!1,content:(0,I.jsxs)("div",{style:f?{"--overlay-width":f}:{},className:a["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,I.jsx)("div",{className:a["overlay-inner"],children:"function"===typeof o?o({value:r,setValue:e=>{(!m||r[0]!==e[0])&&l(e),m&&v(!1)}}):o}),(c||h)&&(0,I.jsxs)("div",{className:a["overlay-footer"],children:[h&&(0,I.jsx)("div",{className:a["overlay-footer-extra"],children:h}),c&&i({value:r,setValue:l})]})]}),trigger:"click",placement:d,children:(0,I.jsx)("div",{className:a["input-inner"],children:p})}))}),L=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:r}=e,n=(0,s.A)(e,M);const[l,o]=(0,u.useState)(!1),c=(0,u.useRef)(null),d=(0,u.useRef)(null),p=i(),{valueState:m,mapping:h,props:f}=p,[g,x]=m,{single:v,placement:j,getPopupContainer:b,placeholder:w,isPopup:F,disabled:N,showSelectedTag:C,extra:P,inputContent:B}=f,k=(0,u.useRef)(n);k.current=n,(0,u.useEffect)(()=>{t(Object.assign({},k.current,{data:n.data,isComplete:n.isComplete}))},[n.data,t,n.isComplete]);const T=O({single:v,value:g,mapping:h,onClose:e=>{x(t=>{const r=t.slice(0),n=t.indexOf(e);return n>-1&&r.splice(n,1),r})}}),L=e=>{let{value:t,setValue:r}=e;return(0,I.jsxs)(A.Space,{className:a["selected-tag"],align:"center",wrap:!0,children:[(0,I.jsxs)("div",{children:["\u5df2\u9009",!f.single&&Number.isInteger(f.maxLength)&&f.maxLength>0?"(".concat(t.length,"/").concat(f.maxLength,")"):"",":"]}),(0,I.jsx)(S.A,{className:a["selected-tag-list"],children:(0,I.jsx)("div",{className:a["selected-tag-inner"],children:O({value:t,mapping:h,onClose:e=>{r(t=>{const r=t.slice(0),n=t.indexOf(e);return n>-1&&r.splice(n,1),r})}})})})]})},D=B?B(p):(0,I.jsxs)(A.Space,{className:a["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,I.jsx)("div",{children:T||(0,I.jsx)("span",{className:a.placeholder,children:w})}),l&&g&&g.length>0&&!N?(0,I.jsx)(y.default,{className:_()(a.close,a["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,I.jsx)(y.default,{className:_()(a["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return F?(0,I.jsx)(E,{ref:d,overlayWidth:f.overlayWidth,value:g,setValue:x,single:v,inputContent:D,extra:"function"===typeof P?P({close:()=>d.current.close(),context:p}):P,renderSelectedContent:L,showSelectedTag:C,trigger:"click",placement:j,getPopupContainer:b,children:f.children}):(0,I.jsxs)("div",{className:a["input-inner"],onClick:()=>{c.current.modalOpen()},children:[(0,I.jsx)(R,{size:f.modalSize,ref:c,single:f.single,maxLength:f.maxLength,disabledScroller:!0,wrapClassName:_()(a.overlay,a["is-modal"],r),title:f.placeholder,value:g,onChange:x,extra:"function"===typeof P?P({close:()=>c.current.close(),context:p}):P,showSelectedTag:C,renderSelectedContent:L,children:f.children}),D]})}),D=e=>{let{api:t,className:r,displayItems:l,wrapClassName:o}=e,i=(0,s.A)(e,k);const[d,p]=(0,u.useState)(""),[h,f]=(0,u.useState)(new Map(l.map(e=>[e.value,e]))),[x,v]=(0,u.useState)({}),{message:y}=A.App.useApp(),j=e=>{const t=e.filter(e=>h.get(e.value)!==e);0!==t.length&&f(e=>{const r=F()(e);return t.forEach(e=>{r.set(e.value,e)}),r})},w=e=>((e,t,r)=>"all"!==r?e:(t(e),e.map(e=>e.value)))(i.single?b()(e)?[]:[e]:e||[],j,i.valueType),[N,S]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,r)=>"all"!==r?e:e.map(e=>t.get(e)))(e,h,i.valueType);i.onChange&&i.onChange(i.single?C()(t):t)}},"value"in i?{value:w(i.value)}:{defaultValue:w(i.defaultValue)})),P=T({maxLength:i.maxLength,single:i.single,setValue:S,value:N,message:y.error});return(0,I.jsx)(c,{value:{mapping:h,searchText:d,setSearchText:p,appendMapping:j,setItems:e=>{x.setData(e),j(g()(i.dataFormat(e),"list",[]))},fetchApi:x,valueState:[N,P],props:i},children:(0,I.jsx)("div",{className:_()(a["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],r),children:(0,I.jsx)(L,(0,n.A)((0,n.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:v,onRequestSuccess:e=>{j(g()(i.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};D.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},D.useContext=i;const z=D},19343:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Download:()=>m,FileButton:()=>C,FileLink:()=>S,List:()=>w,OptionButtons:()=>b,PrintButton:()=>o.PrintButton,default:()=>i(),download:()=>o.download,downloadBlobFile:()=>o.downloadBlobFile,useDownload:()=>o.useDownload,useFileModal:()=>I});var n=r(89379),s=r(53986),a=(r(64674),r(96418)),l=r.n(a),o=r(24818),i=r.n(o),c=r(3382),d=r(83136),u=r.n(d),p=r(70579);o.Download.useDownload=o.useDownload,o.Download.downloadBlobFile=o.downloadBlobFile;const m=o.Download;var h=r(26304),f=r.n(h),g=r(74065),A=r.n(g),x=r(96252);const _=["apis"],v=["onCancel"],y=["onCancel"],j=e=>{let{apis:t}=e;const r=(0,x.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=r({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:f()(e.filename.split(".")).join(".")},onSubmit:async r=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},r,{name:"".concat(r.name,".").concat(A()(e.filename.split(".")))}),item:e})))&&n.close()}},children:(0,p.jsx)(x.default,{column:1,list:[(0,p.jsx)(x.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},b=e=>{var t;const r=j({apis:e.apis});return(0,p.jsx)(o.FileListOptionButtons,(0,n.A)((0,n.A)({},e),{},{onEdit:t=>r(t,e.apis),onDelete:null===(t=e.apis)||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof e.renderModal?e.renderModal:e=>{let{onCancel:t}=e,r=(0,s.A)(e,y);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},r)),{},{onClose:t}))}}))},w=e=>{let{apis:t}=e,r=(0,s.A)(e,_);const a=j({apis:t});return(0,p.jsx)(o.FileList,(0,n.A)((0,n.A)({},r),{},{apis:t,onEdit:e=>a(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof r.renderModal?r.renderModal:e=>{let{onCancel:t}=e,r=(0,s.A)(e,v);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},r)),{},{onClose:t}))}}))},F=["onCancel"],N=["className"],C=e=>(0,p.jsx)(o.FileButton,(0,n.A)({},Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t}=e,r=(0,s.A)(e,F);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},r)),{},{onClose:t}))}}}))),S=e=>{const t=Object.assign({},e),{className:r}=t,a=(0,s.A)(t,N);return(0,p.jsx)(C,(0,n.A)((0,n.A)({},a),{},{className:u()(r,"btn-no-padding"),type:"link",children:a.children||a.filename||a.originName}))},I=e=>{const{title:t,children:r,footer:n}=(0,o.useFileModalProps)(Object.assign({},e)),s=(0,c.useModal)();return l()(()=>s({title:t,children:r,footer:n}))}},26304:(e,t,r)=>{var n=r(53871),s=r(99140);e.exports=function(e,t,r){var a=null==e?0:e.length;return a?(t=r||void 0===t?1:s(t),n(e,0,(t=a-t)<0?0:t)):[]}},29556:(e,t,r)=>{"use strict";r.r(t),r.d(t,{TooltipFetch:()=>B,TooltipInfoLabel:()=>C,default:()=>F});var n=r(89379),s=r(53986),a=r(55199),l=r(83136),o=r.n(l);const i="style_tooltip__zHGMI__hiFBw",c="style_large__lvmsm__hiFBw",d="style_small__nUt0r__hiFBw",u="style_popup-content__-rKQN__hiFBw",p="style_title__1EQPq__hiFBw",m="style_important-info__qTSZY__hiFBw",h="style_error__yTTq3__hiFBw",f="style_warning__CMJxz__hiFBw",g="style_success__AvJVx__hiFBw",A="style_sub-title__uD8CH__hiFBw",x="style_content__lzgUz__hiFBw",_="style_alone__q6q82__hiFBw",v="style_fetch-content__tEOEV__hiFBw",y="style_fetch-loading__tN-WB__hiFBw",j="style_title-info-icon__iY8Q+__hiFBw";var b=r(70579);const w=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],F=e=>{let{overlayClassName:t,title:r,size:l,subtitle:v,content:y,importantInfo:j,importantInfoType:F,moreInfo:N}=e,C=(0,s.A)(e,w);return(0,b.jsx)(a.Tooltip,(0,n.A)((0,n.A)({},C),{},{rootClassName:o()(t,i,{[d]:"small"===l,[c]:"large"===l}),title:(0,b.jsxs)(a.Space,{direction:"vertical",className:u,children:[r&&(0,b.jsx)("div",{className:p,children:r}),j&&(0,b.jsx)("div",{className:o()(m,{[g]:"success"===F,[f]:"warning"===F,[h]:"error"===F}),children:j}),v&&(0,b.jsx)("div",{className:A,children:v}),y&&(0,b.jsx)("div",{className:o()(x,{[_]:[r,v,j,N].every(e=>!e)}),children:y}),N&&(0,b.jsx)("div",{children:N})]})}))};var N=r(64671);const C=e=>{let{title:t,tooltipTitle:r}=e;return(0,b.jsxs)("div",{children:[t,r?(0,b.jsx)(F,(0,n.A)((0,n.A)({},r),{},{children:(0,b.jsx)("span",{children:(0,b.jsx)(N.default,{type:"icon-xinxi-miaobian",className:j,size:14})})})):null]})};var S=r(73884),I=r(87558);const P=["api","children","fetchContent","showLoading","loadingClassName","force"],B=e=>{let{api:t,children:r,fetchContent:l,showLoading:i=!0,loadingClassName:c,force:d}=e,u=(0,s.A)(e,P);const[p,m]=(0,S.useState)(!1),h=(0,I.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:f,isLoading:g,data:A,send:x}=h;return(0,b.jsx)(F,(0,n.A)((0,n.A)({},Object.assign({},u,f?l(A,h):{})),{},{open:p,onOpenChange:async e=>{!e||f&&!d||await x({type:"refresh"}),m(e)},children:(0,b.jsxs)("span",{className:v,children:[r,i&&g?(0,b.jsx)(a.Spin,{size:"small",className:o()(c,y)}):null]})}))}},30096:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d});var n=r(98434),s=r(43856);const{useOnChange:a}=n.hooks,l=e=>{const t=t=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=l(s.UserField),i=l(s.TableField),c=l(s.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:r}=e;return l((0,s.createListField)({renderList:t,defaultProps:r}))},c.User=o,c.Table=i;const d=c},30891:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(89379),s=r(98434);const a=e=>{let{children:t}=e;const{openApi:r,formData:a}=(0,s.useFormContext)();return t((0,n.A)((0,n.A)({},r),{},{formData:a}))}},34643:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,Pg:()=>c,eM:()=>d});var n=r(98434),s=r(43856),a=r(60586);const{useOnChange:l}=n.hooks,o=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(s.SuperSelectField),c=o(a.$9),d=o(s.SuperSelectTableListField),u=i},35774:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(89379),s=r(53986),a=r(98434),l=r(81014),o=r(70579);const i=["onClick"],c=e=>{let{onClick:t}=e,r=(0,s.A)(e,i);const c=(0,a.useFormContext)();return(0,o.jsx)(l.default,(0,n.A)((0,n.A)({},r),{},{onClick:e=>t(c,e)}))}},36972:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(89379),s=r(53986),a=r(73884),l=r(87558),o=r(98434),i=r(78491),c=r.n(i),d=r(55199);const u="style_salary__sUOtT__hiFBw",p="style_salary-type__Sl1LC__hiFBw",m="style_input-number__eoEZr__hiFBw",h="style_full__NPqJm__hiFBw",f="style_input-group__toLB7__hiFBw",g="style_input-group-no-mb__C4nzh__hiFBw";var A=r(47458),x=r(55431),_=r(48731),v=r(10986),y=r.n(v),j=r(21079),b=r(70579);const w=["data"],F=["getPopupContainer","onBlur","api","isRange","placeholder","disabled","showMonth","remindUnit","req"],N=["api","defaultValue"],C=(0,l.withFetch)(e=>{let{data:t}=e,r=(0,s.A)(e,w);return(0,b.jsx)(d.Select,(0,n.A)((0,n.A)({},r),{},{options:t}))}),{useDecorator:S,useUIDecorator:I}=o.hooks,P=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},B=e=>{let{children:t,isError:r}=e;return(0,b.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(r?"is-error":""),children:(0,b.jsx)("div",{className:"react-form__field-main",children:(0,b.jsx)("div",{className:"react-form__field-input",children:(0,a.cloneElement)(t,{className:"react-form__field-component"})})})})},M=e=>{let{getPopupContainer:t,onBlur:r,api:a,isRange:l=!0,placeholder:o,disabled:i,showMonth:x,remindUnit:v,req:w}=e,N=(0,s.A)(e,F);const[S,I]=y()(N),{formatMessage:M}=(0,A.useIntl)({moduleName:"FormInfo"}),k=M({id:"defaultSelectPlaceholder"},{label:""}),T=M({id:"defaultInputPlaceholder"},{label:""}),O=[6].indexOf((0,j.get)(S,"type"))>-1,R=1===(0,j.get)(S,"type"),E=7===(0,j.get)(S,"type"),L=e=>{if(e)return O?e/1e4:e},D=c()(r||(()=>{}));return(0,b.jsx)("div",{ref:D,className:u,children:(0,b.jsxs)(d.Row,{wrap:!1,gutter:10,children:[(0,b.jsx)(d.Col,{children:(0,b.jsx)(C,(0,n.A)((0,n.A)({className:p},a),{},{value:(0,j.get)(S,"type"),onChange:e=>{I&&I(Object.assign({},R?{}:S,{type:e,min:"",max:""}))},placeholder:o||k,getPopupContainer:t,disabled:i}))}),R?null:(0,b.jsxs)(d.Col,{flex:1,children:[l&&(0,b.jsxs)(d.Row,{className:v&&[5,6].includes(null===S||void 0===S?void 0:S.type)?f:g,wrap:!1,children:[(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(B,{isError:!(0,j.get)(S,"min")&&w,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:T,formatter:P,value:L((0,j.get)(S,"min")),style:{textAlign:"center"},onChange:e=>{I(Object.assign({},S,{min:O?1e4*e:e}))},description:v&&[5,6].includes(null===S||void 0===S?void 0:S.type)?(0,b.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,b.jsx)(_.default,{name:null===S||void 0===S?void 0:S.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",O?M({id:"thousand"}):E?"":M({id:"yuan"})]}):null})})}),(0,b.jsx)(d.Col,{children:(0,b.jsx)(d.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(B,{isError:!(0,j.get)(S,"max")&&w,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:T,formatter:P,value:L((0,j.get)(S,"max")),style:{textAlign:"center"},addonAfter:O?M({id:"thousand"}):E?"":M({id:"yuan"}),onChange:e=>{I(Object.assign({},S,{max:O?1e4*e:e}))}})})}),5===(0,j.get)(S,"type")&&x&&(0,b.jsx)(d.Col,{children:(0,b.jsxs)("span",{className:(0,j.get)(S,"max")&&(0,j.get)(S,"min")&&!(0,j.get)(S,"month")&&w?"error":"",children:[(0,b.jsx)("span",{className:m,children:"X"}),(0,b.jsx)(d.InputNumber,{min:12,disabled:i,value:(0,j.get)(S,"month"),onChange:e=>{I(Object.assign({},S,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!l&&!E&&(0,b.jsx)(d.InputNumber,{disabled:i,min:0,max:1e8,placeholder:T,className:h,formatter:P,value:L((0,j.get)(S,"max")),style:{textAlign:"center"},addonAfter:O?M({id:"thousand"}):E?"":M({id:"yuan"}),onChange:e=>{I(Object.assign({},S,{max:O?1e4*e:e}))}}),!l&&E&&(0,b.jsx)(d.Input,{disabled:i,placeholder:T,className:h,onChange:e=>{I(Object.assign({},S,{max:e.target.value}))},value:(0,j.get)(S,"max"),style:{textAlign:"center"}})]})]})})},k={loader:()=>[{value:1,label:"\u9762\u8bae"},{value:2,label:"\u65f6\u85aa"},{value:3,label:"\u65e5\u85aa"},{value:4,label:"\u5468\u85aa"},{value:5,label:"\u6708\u85aa"},{value:6,label:"\u5e74\u85aa"}]},T={type:5,min:"",max:"",month:12},O=e=>{let{api:t=k,defaultValue:r=T}=e,a=(0,s.A)(e,N);return(0,b.jsx)(A.IntlProvider,{moduleName:"FormInfo",importMessages:x.A,children:(0,b.jsx)(M,(0,n.A)((0,n.A)({},a),{},{api:t,defaultValue:r}))})},R=e=>{var t;return S((0,n.A)((0,n.A)({},e),{},{req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1}))(O)};R.Field=O;const E=R},41381:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s.a});r(55664);var n=r(46203),s=r.n(n),a={};for(const l in n)"default"!==l&&(a[l]=()=>n[l]);r.d(t,a)},45053:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(98434),s=r(55199),a=r(73884),l=r(83136),o=r.n(l),i=r(70720),c=r.n(i),d=r(47094),u=r(70579);const p=e=>{let{name:t,groupName:r,overlayClassName:l,errorRender:i=()=>null,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:r,groupIndex:s}=e;const{emitter:l,formState:o}=(0,n.useFormContext)(),i=(0,a.useRef)({name:t,groupName:r,groupIndex:s});i.current={name:t,groupName:r,groupIndex:s};const c=(0,a.useRef)(o);c.current=o;const[d,u]=(0,a.useState)(null);return(0,a.useEffect)(()=>{const e=l.addListener("form-field-validate-complete",e=>{let{id:t,validate:r}=e;const s=c.current[t];if(!s)return;const a=i.current;s.name!==a.name||a.groupName&&(s.groupName!==a.groupName||s.groupIndex!==a.groupIndex)||u(2===r.status?Object.assign({},r,{label:s.label,errMsg:n.util.compileErrMsg(r.msg,s.label)}):null)});return()=>{e&&e.remove()}},[l]),d})({name:t,groupName:r,groupIndex:p}),[f,g]=(0,a.useState)(!1),A=h&&f&&i(Object.assign({},h,{closeHover:()=>g(!1)})),x=(0,a.useRef)(null),_=(0,a.useRef)(null);c()(()=>{g(!1)}).current={contains:e=>x.current.contains(e)||_.current&&_.current.contains(e)};const[v,y]=(0,a.useState)(0);return(0,a.useLayoutEffect)(()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&y(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const r=new MutationObserver(e);return r.observe(x.current,{subtree:!0,childList:!0}),()=>{r.disconnect(),t.disconnect()}},[]),(0,u.jsx)(s.Popover,{open:!!A,rootClassName:o()(l,d.A["error-tip-overlay"]),content:A&&(0,u.jsx)("div",{ref:_,style:{width:v},className:o()(d.A["error-tip-overlay-content"]),children:A}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{g(!0)},children:m})})}},46237:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>i,oc:()=>o});var n=r(73884);const s=(0,n.createContext)([]),{Provider:a,Consumer:l}=s,o=()=>(0,n.useContext)(s),i=a},46732:(e,t,r)=>{"use strict";r.d(t,{A:()=>d,K:()=>c});var n=r(75363),s=r(73884),a=r(98434),l=r(47094),o=r(70579);const i=(0,s.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const r=(0,s.useContext)(i),c=(0,a.useGroup)();return r&&(0,o.jsx)(n.default,{className:l.A["helper-guide-field"],name:r+"-"+(c.name?c.name+"-":"")+t})}},47094:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={"form-outer":"style_form-outer__IWUs0__hiFBw","form-drawer":"style_form-drawer__uYDXS__hiFBw","table-list":"style_table-list__6lp-A__hiFBw","list-item":"style_list-item__hVzQa__hiFBw","table-list-inner":"style_table-list-inner__uc8DK__hiFBw","table-list-field":"style_table-list-field__JSJfB__hiFBw","table-list-header":"style_table-list-header__KXvKa__hiFBw","is-req":"style_is-req__LfXQf__hiFBw","table-list-extra":"style_table-list-extra__faYTK__hiFBw","list-btn":"style_list-btn__WKYkm__hiFBw","form-info":"style_form-info__B8bAP__hiFBw","list-part":"style_list-part__Ld0GA__hiFBw","is-important":"style_is-important__vaBk1__hiFBw","list-item-part":"style_list-item-part__MzKP7__hiFBw","money-input":"style_money-input__J86Pb__hiFBw","money-description":"style_money-description__Gz3p7__hiFBw","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__hiFBw","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__hiFBw","helper-guide-field":"style_helper-guide-field__Wke3w__hiFBw","error-tip-overlay":"style_error-tip-overlay__aNCGc__hiFBw","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__hiFBw","column-not-layout":"style_column-not-layout__+SXC+__hiFBw","mult-field-item":"style_mult-field-item__eS0nJ__hiFBw","react-form__field-label":"style_react-form__field-label__2U91E__hiFBw","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__hiFBw","form-step-section":"style_form-step-section__RvkHy__hiFBw"}},47338:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ConfirmButton:()=>n.ConfirmButton,ConfirmLink:()=>n.ConfirmLink,ConfirmText:()=>n.ConfirmText,default:()=>s,withConfirm:()=>n.withConfirm});r(9056);var n=r(86300);const s=n.ConfirmButton},48221:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,WJ:()=>u,Xy:()=>d});var n=r(89379),s=r(25963),a=r(73025),l=r(47094),o=r(76995),i=r(70579);const c=e=>(0,i.jsx)(s.default,(0,n.A)({},(0,o.A)(Object.assign({},e,{className:l.A["form-drawer"]})))),d=()=>{const e=(0,s.useDrawer)();return t=>e((0,o.A)(Object.assign({},t,{className:l.A["form-drawer"]})))},u=e=>{const t=d();return(0,i.jsx)(a.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},48731:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s.a});var n=r(60922),s=r.n(n),a=r(22717),l=r.n(a);(0,n.preset)({base:l()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,t)=>{e[t[0]]=t[1]},{})})},55431:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=e=>({"en-US":()=>r.e(1649).then(r.bind(r,21649)),"zh-CN":()=>r.e(711).then(r.bind(r,80711))}[e]())},55664:()=>{},56259:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(89319),s=r(98434);const{useOnChange:a}=s.hooks,l=e=>a(Object.assign({},{},e))(n.A);l.Field=n.A;const o=l},63361:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x,useFeatureCall:()=>A});var n=r(73884),s=r(63743),a=r(33097),l=r.n(a),o=r(15797),i=r.n(o),c=r(1488),d=r.n(c),u=r(70579);const p=(e,t,r)=>{e&&(Array.isArray(e)?e.forEach(e=>{p(e,t,r)}):(t(Object.assign({},d()(e,["children"]),{parentId:r})),p(e.children,t,r?r+":"+e.id:e.id)))},m=i()(e=>{const t=(()=>{const t=new Map;return p(e,e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)}),t})(),r=(e=>Array.from(e.keys()).filter(t=>{const r=e.get(t);return!(Array.isArray(r.dependencies)&&r.dependencies.length>0&&r.dependencies.some(r=>!e.get(t)))}))(t);return{profile:e,features:r,profileMap:t}}),h=(e,t)=>{let{profileMap:r,features:n}=t;const s=r.get(e);return-1!==n.indexOf(e)&&!0!==s.close&&l()(s,"dependencies",[]).every(t=>{const s=r.get(e);return n.indexOf(t)>-1&&!0!==s.close})},f=(0,n.createContext)(null),{Provider:g}=f,A=e=>{const{features:t,profile:r,profileMap:a,debug:o}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:r}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},m(t),{debug:r})})(),i="system"===r.type?r.id:"root",c=(0,n.useContext)(f),d=c?c+":"+e:i+":"+e;return(0,n.useEffect)(()=>{t&&t.length>0&&o&&console.log("[featureId] ".concat(d,",[state] ").concat(h(d,{features:t,profileMap:a})),a.get(d))},[t,a,o,d]),{isPass:!(e&&t&&t.length>0)||h(d,{features:t,profileMap:a}),currentId:d,feature:a.get(d)}},x=e=>{let{id:t,children:r}=e;const{isPass:n,feature:s,currentId:a}=A(t);return(0,u.jsx)(g,{value:a,children:"function"===typeof r?r({isPass:n,options:n?l()(s,"options"):l()(s,"rejectedOptions"),currentId:a}):n&&r})}},64261:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(89379),s=r(98434),a=r(57469),l=r.n(a),o=r(34677),i=r.n(o),c=r(33097),d=r.n(c),u=(r(17448),r(2842)),p=r(46732),m=r(13050),h=r(70579);const f=s.RULES.REQ,g=s.RULES.LEN,A=async(e,t)=>{const{locale:r}=Object.assign({},t);s.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e}),s.interceptors.output.use("photo-string",e=>{var t,r;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(r=t.split("?"))||void 0===r?void 0:r[0])||e.id:e}),s.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),s.interceptors.output.use("to-array",e=>[e]),s.interceptors.input.use("array-single",e=>e?[e]:[]),s.interceptors.output.use("array-single",e=>e?e[0]:null),s.interceptors.input.use("boolean-number",e=>1===e||"1"===e),s.interceptors.output.use("boolean-number",e=>e?1:0),s.interceptors.input.use("un-boolean",e=>!e),s.interceptors.output.use("un-boolean",e=>!e),s.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),s.interceptors.input.use("date-string",e=>e?l()(e):null),s.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),s.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(l()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(l()(e[1])),t}),s.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}),s.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),s.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:a}=await(0,m.loadModule)("components-iconfont:CountyFlag@load"),o=await a(),c=new Map(o.map(e=>{let{ab:t,country_code:r}=e;return[t,r]})),A=new Map(o.map(e=>{let{ab:t,country_code:r}=e;return[r,t]}));s.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?"+".concat(c.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):""),s.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:A.get(Number(t[1])),value:t[2]}:{code:A.get(86),value:e}});const x=(e,t)=>{t=Object.assign({},t);const n={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},EMAIL:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684%s","en-US":"Please enter a valid %s"},LENGTH_EQUAL:{"zh-CN":"%s\u5fc5\u987b\u7b49\u4e8e".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},s=d()(n,"".concat(e,".").concat(r));return s||d()(n,"".concat(e,".zh-CN"))};(0,s.preset)(i()({},{type:"inner",rules:{REQ:function(){return Object.assign({},f(...arguments),{errMsg:x("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[n,s,a]=t;let l="";return a===s&&n.length!==Number(a)&&(l="LENGTH_EQUAL"),n.length<s&&(l="LENGTH_MORE"),a&&n.length>a&&(l="LENGTH_LESS"),Object.assign({},g(...t),{errMsg:x(l,{start:s,end:a})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:x("EMAIL")}},PHONE_NUMBER_INPUT:u.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,r)=>r===t&&e.length!==Number(r)?{result:!1,errMsg:x("LENGTH_EQUAL",{start:t,end:r})}:e.length<t?{result:!1,errMsg:x("LENGTH_MORE",{start:t,end:r})}:r&&e.length>r?{result:!1,errMsg:x("LENGTH_LESS",{start:t,end:r})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},inputNumber:{defaultProps:{changeOnWheel:!1}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,h.jsx)(p.A,(0,n.A)({},e))}},"function"===typeof e?e({interceptors:s.interceptors,RULES:s.RULES}):e))}},64674:()=>{},72297:(e,t,r)=>{"use strict";r.d(t,{A:()=>ee,E:()=>te});var n=r(89379),s=r(53986),a=r(98434),l=r(30096),o=r(34643),i=r(1904),c=r(83230),d=r(81026),u=r(78756),p=r(92328),m=r(2842),h=r(55199),f=r(70579);const g=["checked","children"],{useOnChange:A,useCheckedToValue:x}=a.hooks,{withChecked:_}=a.hoc,v=_(e=>{let{checked:t,children:r=null}=e,a=(0,s.A)(e,g);return(0,f.jsxs)(h.Space,{children:[(0,f.jsx)(h.Switch,(0,n.A)({checked:t},a)),"function"===typeof r?r({checked:t}):r]})}),y=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=x(e);return A(t)(v)};y.Field=h.Switch;const j=y;var b=r(89099),w=r(96339),F=r(36972),N=r(15209),C=r(74529),S=r.n(C),I=r(73884),P=r(47458),B=r(33097),M=r.n(B),k=r(21079),T=r(46237),O=r(56259),R=r(29556),E=r(64671),L=r(83136),D=r.n(L),z=r(47094);const U=["forwardedRef","label","placeholder"],W=["placeholder","label"],G=["placeholder","label"],V=["placeholder","label","soFarText"],q=e=>t=>{const r=S()(...e)(e=>{let{forwardedRef:r,label:a,placeholder:l}=e,o=(0,s.A)(e,U);return(0,f.jsx)(t,(0,n.A)((0,n.A)({},o),{},{label:a,placeholder:l,labelRender:()=>o.tips?(0,f.jsxs)(h.Space,{children:[a,(0,f.jsx)(R.default,{content:o.tips,children:(0,f.jsx)("span",{className:D()(z.A["field-tips"],{[z.A["label-hidden"]]:o.labelHidden}),children:(0,f.jsx)(E.default,{type:"icon-xinxi-miaobian"})})})]}):a,ref:r}))}),a=(0,I.forwardRef)((e,t)=>(0,f.jsx)(r,(0,n.A)((0,n.A)({},e),{},{forwardedRef:t})));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{a[e]=t[e]}),a},H=e=>t=>{let{placeholder:r,label:a}=t,l=(0,s.A)(t,W);return(0,f.jsx)(P.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,f.jsx)(e,(0,n.A)((0,n.A)({},l),{},{label:a,placeholder:r||t}))})},Q=e=>t=>{let{placeholder:r,label:a}=t,l=(0,s.A)(t,G);return(0,f.jsx)(P.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,f.jsx)(e,(0,n.A)((0,n.A)({},l),{},{label:a,placeholder:r||t}))})},X=e=>t=>{const r=(0,a.useGroup)(),s=M()(r,"name"),l=(0,k.get)(r,"index"),o=(0,T.oc)();return o&&Array.isArray(o)&&o.length>0?o.map(r=>{if("string"===typeof r)return(0,I.createElement)(e,(0,n.A)((0,n.A)({},t),{},{key:r}));const{name:a,label:o,options:i}=r,c=M()(i,"ignore",[]),d=M()(i,"disabled",[]),u=M()(i,"fields",[]),p=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==s)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==l);if(c.length>0&&c.find(p))return null;if(u.length>0&&!u.find(p))return null;let m=Object.assign({},t,{name:M()(i,"nameTransform",(e,t)=>"".concat(e).concat(t))(t.name,a),label:M()(i,"labelTransform",(e,t)=>e&&"".concat(e).concat(t))(t.label,o)});return d.length>0&&d.find(p)&&(m.disabled=!0,m.rule=""),(0,I.createElement)(e,(0,n.A)((0,n.A)({},m),{},{key:a}))}):(0,f.jsx)(e,(0,n.A)({},t))},Y=q([X,H])(a.Input),K=q([X,H])(a.InputNumber);Y.Password=q([X,H])(a.Input.Password);const J=q([X,Q])(a.DatePicker);J.MonthPicker=q([X,Q])(a.DatePicker.MonthPicker),J.RangePicker=q([X,Q])(a.DatePicker.RangePicker),J.WeekPicker=q([X,Q])(a.DatePicker.WeekPicker);const $=q([X,Q])(a.TimePicker);$.RangePicker=q([X,Q])(a.TimePicker.RangePicker);const Z=q([X])(e=>{let{placeholder:t,label:r,soFarText:l}=e,o=(0,s.A)(e,V);const{formatMessage:i}=(0,P.useIntl)({moduleName:"FormInfo"});return(0,f.jsx)(a.DatePickerToday,(0,n.A)((0,n.A)({},o),{},{label:r,placeholder:[i({id:"startDate"}),i({id:"endDate"})],soFarText:l||i({id:"soFarText"})}))}),ee={Input:Y,Checkbox:a.Checkbox,Password:Y.Password,InputNumber:K,DatePicker:J,MonthPicker:J.MonthPicker,WeekPicker:J.WeekPicker,DateRangePicker:J.RangePicker,TimeRangePicker:$.RangePicker,TimePicker:$,DatePickerToday:Z,RadioGroup:q([X])(a.RadioGroup),CheckboxGroup:q([X])(a.CheckboxGroup),Rate:q([X])(a.Rate),Switch:q([X])(j),Slider:q([X])(a.Slider),SalaryInput:q([X,H])(F.A),TypeDateRangePicker:q([X])(O.A),MoneyInput:q([X,H])(p.A),PhoneNumber:q([X,H])(m.default),Upload:q([X])(b.A),Avatar:q([X])(w.A),FunctionSelect:q([X,Q])(d.A),IndustrySelect:q([X,Q])(u.A),Cascader:q([X,Q])(c.A),AddressSelect:q([X,Q])(i.A),AddressInput:q([X,Q])(i.N),TreeSelect:q([X,Q])(a.TreeSelect),ReactInputNumber:q([X,H])(a.InputNumber),InputUpperCase:q([X,H])(N.A),Select:q([X,Q])(a.Select),TextArea:q([X,H])(a.TextArea),AdvancedSelect:q([X,Q])(l.Ay),SuperSelect:q([X,Q])(o.Ay),SuperSelectTableList:q([X,Q])(o.eM),SuperSelectUser:q([X,Q])(o.Pg)},te={createWithFieldDecorator:q,withInputDefaultPlaceholder:H,withSelectDefaultPlaceholder:Q,withLang:X}},75363:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});const n=e=>({"en-US":()=>r.e(9431).then(r.bind(r,9431)),"zh-CN":()=>r.e(1065).then(r.bind(r,81065))}[e]());var s=r(47458),a=r(64671),l=r(55199),o=r(83136),i=r.n(o);const c="style_helper-guide__K5xFw__hiFBw",d="style_inner__bMKeU__hiFBw",u="style_content__xTfWZ__hiFBw",p="style_link__93j7O__hiFBw";var m=r(48731),h=r(70579);const f=e=>{let{name:t,className:r}=e;return(0,h.jsx)(s.IntlProvider,{importMessages:n,moduleName:"HelperGuide",children:(0,h.jsx)(m.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,r),children:(0,h.jsxs)(l.Space,{className:d,children:[(0,h.jsx)(a.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:u,children:e.content}),e.url&&(0,h.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(a.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},76995:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(89379),s=r(53986),a=r(55431),l=r(98434),o=r(47458),i=r(83799),c=r(83136),d=r.n(c),u=r(47094),p=r(70579);const m=["className","withDecorator","footerButtons","formProps","cancelText","saveText","autoClose"],h=["onSubmit"],f="FormInfo",g=e=>{let{className:t,withDecorator:r,footerButtons:c,formProps:g,cancelText:A,saveText:x,autoClose:_}=e,v=(0,s.A)(e,m);return(0,n.A)((0,n.A)({},v),{},{footerButtons:c||[{children:(0,p.jsx)(o.IntlProvider,{importMessages:a.A,moduleName:f,children:A||(0,p.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:f})}),ButtonComponent:l.CancelButton},{type:"primary",children:(0,p.jsx)(o.IntlProvider,{importMessages:a.A,moduleName:f,children:x||(0,p.jsx)(o.FormattedMessage,{id:"Save",moduleName:f})}),ButtonComponent:l.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const l=t=>{const r=Object.assign({},"function"===typeof g?g(t):g),{onSubmit:l}=r,c=(0,s.A)(r,h);return(0,p.jsx)(i.lV,(0,n.A)((0,n.A)({},c),{},{onSubmit:async function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];!1!==(l&&await l(e,Object.assign({},t),...n))&&_&&t.close()},children:(0,p.jsx)(o.IntlProvider,{importMessages:a.A,moduleName:"FormInfo",children:e(t)})}))};return"function"===typeof r?r(l,t):l(t)},className:d()(t,u.A["form-outer"])})}},78756:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(43856),s=r(98434);const{useOnChange:a}=s.hooks,l=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);l.Field=n.IndustrySelectField,l.Enum=n.IndustrySelectField.Enum;const o=l},81026:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(43856),s=r(98434);const{useOnChange:a}=s.hooks,l=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);l.Field=n.FunctionSelectField,l.Enum=n.FunctionSelectField.Enum;const o=l},83230:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(98434),s=r(43856);const{useOnChange:a}=n.hooks,l=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.CascaderField);l.Field=s.CascaderField,l.createTreeUtils=s.createTreeUtils;const o=l},83560:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(89379),s=r(55199),a=r(98434),l=r(63361),o=r(73884),i=r(10486),c=r(29556),d=r(64671),u=r(83136),p=r.n(u),m=r(47094),h=r(70579);const f=e=>{let{list:t,groupArgs:r,itemRender:u}=e;const f=(0,a.useFormContext)(),g=Object.assign({},f,r?{groupArgs:r}:{}),A=(0,o.useRef)(null),[x,_]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{_(!0)},[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{ref:A,style:{display:"none"}}),t.filter(e=>"function"===typeof e.props.display?e.props.display(g):!1!==e.props.display).map((e,a)=>{const f=e.props.name+a||r&&r[0]+a||a,_={key:f,list:t,props:e.props},v=Object.assign({},e.props),y=e.type;["display","block","hidden","setExtraProps","isBlock","featureId"].forEach(t=>{e.props.hasOwnProperty(t)&&(_[t]=e.props[t]),delete v[t]}),_.hasOwnProperty("isBlock")&&(v.block=_.isBlock);const j=(0,h.jsx)(y,(0,n.A)((0,n.A)({},Object.assign({},v,"function"===typeof _.setExtraProps?_.setExtraProps({props:v,contextApi:g}):{})),{},{onChange:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.props.onChange&&e.props.onChange(...r,g)}})),b=_.hidden?x&&(0,i.createPortal)(j,A.current):u(_.tips?(0,h.jsxs)(s.Row,{gutter:8,align:"top",children:[(0,h.jsx)(s.Col,{flex:1,children:j}),(0,h.jsx)(s.Col,{children:(0,h.jsx)(c.default,{content:_.tips,children:(0,h.jsx)("span",{className:p()(m.A["field-tips"],{[m.A["label-hidden"]]:v.labelHidden}),children:(0,h.jsx)(d.default,{type:"icon-xinxi-miaobian"})})})})]}):j,_);return(0,h.jsx)(o.Fragment,{children:_.hasOwnProperty("featureId")?(0,h.jsx)(l.default,{id:_.featureId,children:b},f):b},f)})]})}},83799:(e,t,r)=>{"use strict";r.d(t,{NI:()=>V,TQ:()=>m.A,JL:()=>z,eu:()=>v.A,vx:()=>h.A,lr:()=>Z,s3:()=>ee,lV:()=>l.A,d4:()=>f.A,ZN:()=>g.A,pd:()=>H,YI:()=>K,h2:()=>q,F0:()=>A.A,go:()=>x.default,tt:()=>a.Rate,lu:()=>y.A,l6:()=>Y,Ap:()=>a.Slider,wD:()=>U,eM:()=>W,Pg:()=>G,dO:()=>a.Switch,EY:()=>M,fs:()=>Q,AG:()=>$,f7:()=>J,w5:()=>b.A,_O:()=>_.A,nk:()=>te});var n=r(89379),s=r(53986),a=r(98434),l=r(85696),o=r(47458),i=r(73884),c=r(30891),d=r(47094),u=r(30096),p=r(34643),m=r(1904),h=r(83230),f=r(81026),g=r(78756),A=r(92328),x=r(2842),_=r(89099),v=r(96339),y=r(36972),j=r(15209),b=r(56259),w=r(55199),F=r(10986),N=r.n(F),C=r(70579);const S=["children"],{useDecorator:I}=a.hooks,P=e=>{let{children:t}=e,r=(0,s.A)(e,S);const[a]=N()(r);return(0,C.jsxs)(w.Typography.Text,(0,n.A)((0,n.A)({},r),{},{children:[(0,C.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,C.jsx)(w.Input,{value:a})}),t||a]}))},B=e=>I(e)(P);B.Field=P;const M=B;var k=r(45053);const T=["placeholder","label"],O=["placeholder","label","className"],R=["placeholder","label"],E=["placeholder","label","soFarText"],L=e=>{const t=(0,i.forwardRef)((t,r)=>{let{placeholder:a,label:l}=t,i=(0,s.A)(t,T);return(0,C.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,C.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:r,label:l,placeholder:a||t}))})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(r=>{t[r]=e[r]}),t},D=e=>{const t=(0,i.forwardRef)((t,r)=>{let{placeholder:a,label:l}=t,i=(0,s.A)(t,R);return(0,C.jsx)(o.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,C.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:r,label:l,placeholder:a||t}))})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(r=>{t[r]=e[r]}),t},z=D(u.Ay),U=D(p.Ay),W=D(p.eM),G=D(p.Pg),V=D(m.N),q=L(j.A),H=L(a.Input);H.Password=L(a.Input.Password);const Q=(X=a.TextArea,e=>{let{placeholder:t,label:r,className:a}=e,l=(0,s.A)(e,O);return(0,C.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:e=>(0,C.jsx)("div",{className:d.A["textarea-wrapped-component"],children:(0,C.jsx)(X,(0,n.A)((0,n.A)({},l),{},{label:r,placeholder:t||e}))})})});var X;const Y=D(a.Select),K=L(a.InputNumber),J=D(a.TreeSelect),$=D(a.TimePicker);$.RangePicker=D(a.TimePicker.RangePicker);const Z=D(a.DatePicker);Z.MonthPicker=D(a.DatePicker.MonthPicker),Z.RangePicker=D(a.DatePicker.RangePicker),Z.WeekPicker=D(a.DatePicker.WeekPicker);const ee=e=>{let{placeholder:t,label:r,soFarText:l}=e,i=(0,s.A)(e,E);const{formatMessage:c}=(0,o.useIntl)({moduleName:"FormInfo"});return(0,C.jsx)(a.DatePickerToday,(0,n.A)((0,n.A)({},i),{},{label:r,placeholder:[c({id:"startDate"}),c({id:"endDate"})],soFarText:l||c({id:"soFarText"})}))},te=Object.assign({},a,{Input:H,InputUpperCase:q,TextArea:Q,Select:Y,InputNumber:K,TreeSelect:J,TimePicker:$,DatePicker:Z,DatePickerToday:ee,Form:l.A,FormItem:c.A,AdvancedSelect:z,SuperSelect:U,SuperSelectTableList:W,SuperSelectUser:G,AddressSelect:m.A,AddressInput:V,MoneyInput:A.A,PhoneNumber:x.default,Cascader:h.A,FunctionSelect:f.A,IndustrySelect:g.A,TypeDateRangePicker:b.A,Upload:_.A,Avatar:v.A,SalaryInput:y.A,Text:M,Rate:a.Rate,Switch:a.Switch,Slider:a.Slider,ErrorTip:k.A})},85696:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var n=r(89379),s=r(53986),a=r(73884),l=r(63743),o=r(33097),i=r.n(o),c=r(64261),d=r(47458),u=r(55431),p=r(46237),m=r(41381),h=r(46732),f=r(98434),g=r(83136),A=r.n(g),x=r(47094),_=r(70579);const v=["className","helperGuideName","children","lang"],y=e=>{let{children:t}=e;const[r,n]=(0,a.useState)(!1),s=(0,l.usePreset)(),o=i()(s,"formInfo",{}),d=i()(s,"locale");return(0,a.useEffect)(()=>{Promise.resolve((0,c.A)(o,{locale:d})).then(()=>{n(!0)})},[o,d]),r?t:null},j=(0,a.forwardRef)((e,t)=>{let{className:r,helperGuideName:a,children:l,lang:o}=e,i=(0,s.A)(e,v);return(0,_.jsx)(d.IntlProvider,{importMessages:u.A,moduleName:"FormInfo",children:(0,_.jsx)(p.Ay,{value:o,children:(0,_.jsx)(h.K,{value:a,children:(0,_.jsx)(y,{children:(0,_.jsx)(f.FormAntd,(0,n.A)((0,n.A)({},i),{},{ref:t,className:A()(r,x.A["form-outer"]),children:(0,_.jsx)(m.default,{children:l})}))})})})})})},85846:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(53986),s=r(89379),a=r(73884),l=r(55199),o=r(47338),i=r(64671),c=r(41381),d=r(98434),u=r(2196),p=r(83136),m=r.n(p),h=r(55431),f=r(47458),g=r(33097),A=r.n(g),x=r(47094),_=r(70579);const v=["add","addText","className","allowAdd"],y=(0,f.createWithIntl)({moduleName:"FormInfo",importMessages:h.A})(e=>{let{title:t,addText:r,minLength:n=0,isUnshift:c=!0,maxLength:p,defaultLength:h=1,label:g,name:v,beforeAdd:y,afterDelete:b,column:w,list:F,listRender:N,itemTitle:C,outer:S=(0,_.jsx)(j,{}),renderChildren:I=e=>e,className:P,important:B,deleteButtonProps:M}=e;const k=(0,a.useRef)(null),T=(0,d.useFormContext)(),{formData:O}=T,R=!(p&&p<=A()(O,"".concat(v,".length"),0)),{formatMessage:E}=(0,f.useIntl)({moduleName:"FormInfo"}),L=()=>{"function"===typeof y&&!1===y(v,T,{isUnshift:c,group:k.current})||k.current.onAdd({isUnshift:c})};return(0,_.jsxs)(_.Fragment,{children:[(0,a.cloneElement)(S,{title:t,addText:r,className:m()(P,x.A["list-part"]),allowAdd:c&&R,add:L},I((0,_.jsx)(d.GroupList,{name:v,defaultLength:h,ref:k,children:function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];const{id:c,index:d,onRemove:p,length:h}=(e=>{if("object"===typeof e[0])return e[0];const[t,{index:r,onRemove:n,length:s}]=e;return{id:t,index:r,onRemove:n,length:s}})(r),A={column:w,list:"function"===typeof F?F(...r,T):F,title:"function"===typeof C?C({index:d,key:c,onRemove:p}):C,groupArgs:r,extra:(0,_.jsx)(f.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>n&&n>=h?null:(0,_.jsx)(o.default,(0,s.A)((0,s.A)({danger:!0,className:"btn-no-padding",message:E({id:"delConfirm"},{name:g||t}),type:"link",onClick:()=>{p(c),b&&b(...r,T)}},Object.assign({},M)),{},{children:null!==M&&void 0!==M&&M.children?null===M||void 0===M?void 0:M.children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.default,{type:"icon-shanchu"}),e]})}))})};return(0,_.jsxs)("div",{className:m()(x.A["list-item"],{[x.A["is-important"]]:B}),children:["function"===typeof N?N(A):(0,_.jsx)(u.A,(0,s.A)((0,s.A)({},A),{},{className:x.A["list-item-part"],gap:16})),(0,_.jsx)(l.Divider,{})]},c)}}))),!c&&R?(0,_.jsx)(f.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsx)("div",{className:m()("form-info-list-add-btn"),children:(0,_.jsxs)(l.Button,{onClick:L,children:[(0,_.jsx)(i.default,{type:"icon-tianjia"}),r||e]})})}):null]})}),j=e=>{let{add:t,addText:r,className:a,allowAdd:o}=e,d=(0,n.A)(e,v);return(0,_.jsx)(c.default.Part,(0,s.A)((0,s.A)({},d),{},{className:a,extra:o&&(0,_.jsx)(f.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsxs)(l.Typography.Text,{className:x.A["list-btn"],onClick:t,children:[(0,_.jsx)(i.default,{type:"icon-tianjia"}),r||e]})})}))},b=y},89099:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(89379),s=r(53986),a=r(55199),l=r(83136),o=r.n(l),i=r(10986),c=r.n(i);const d="style_upload__t422Q__hiFBw",u="style_upload-list__Q9HDc__hiFBw",p="style_tips__3Gpnu__hiFBw";var m=r(19343),h=r(98434),f=r(47458),g=r(1488),A=r.n(g),x=r(17508),_=r(55431),v=r(70579);const y=["className","fileSize","maxLength","multiple","size","accept","children","renderTips","showUploadList","onSave","ossUpload","onUpload","getPermission","concurrentCount"],j=["interceptor"],{useOnChange:b}=h.hooks,w=(0,f.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,f.useIntl)({moduleName:"FormInfo"}),r=Object.assign({},{defaultValue:[],children:t({id:"uploadButtonText"}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".eml",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30,concurrentCount:10},e),{className:l,fileSize:i,maxLength:h,multiple:g,size:_,accept:j,children:b,renderTips:w,showUploadList:F,onSave:N,ossUpload:C,onUpload:S,getPermission:I,concurrentCount:P}=r,B=(0,s.A)(r,y),[M,k]=c()(B),T=M||[],{fileList:O,onFileSelected:R}=(0,x.lN)({multiple:g,onSave:N,onUpload:C||S,fileSize:i,maxLength:h,value:T,onChange:k,concurrentCount:P}),E=[...O,...T],L=w(t({id:"uploadTips"},{extensionNames:j.map(e=>e.replace(/^\./,"")).join(","),maxLength:h,fileSize:i}),{fileSize:i,maxLength:h,accept:j});return(0,v.jsxs)(a.Space,{direction:"vertical",children:[(0,v.jsxs)(a.Flex,{align:"start",gap:8,vertical:!0,children:[(0,v.jsx)(x.Zi,(0,n.A)((0,n.A)({},A()(B,["value","onChange"])),{},{size:_,multiple:g,accept:j,className:o()(d,l),onChange:R,children:b})),L&&(0,v.jsx)("div",{className:p,children:L})]}),F&&E.length>0&&(0,v.jsx)(m.List,{className:u,dataSource:E,infoItemRenders:[],getPermission:I||(e=>"delete"===e),apis:{onDelete:e=>{const t=T.slice(0),r=t.indexOf(e);r>-1&&t.splice(r,1),k(t)}}})]})}),F=e=>{let{interceptor:t="file-format"}=e,r=(0,s.A)(e,j);return b((0,n.A)({interceptor:t},r))(w)};F.Field=w;const N=F},92328:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(89379),s=r(53986),a=r(10986),l=r.n(a),o=r(98434),i=r(55199),c=r(69484);const d="style_money-input__Pyur7__hiFBw",u="style_money-description__9pFk4__hiFBw";var p=r(83136),m=r.n(p),h=r(34677),f=r.n(h),g=r(73884),A=r(70579);const x=["chineseEmpty","className","showError","errorDesc","transformMoneyToChinese","onBlur","moneyFormat"],{isNotEmpty:_}=o.util||o.formUtils,{useOnChange:v}=o.hooks,y=e=>{let{chineseEmpty:t,className:r,showError:a,errorDesc:o,transformMoneyToChinese:p,onBlur:h,moneyFormat:v}=e,y=(0,s.A)(e,x);const[j,b]=(0,g.useState)(""),[w,F]=l()(y),N=f()({controls:!1,precision:2,addonAfter:"\u5143"},y,{max:_(y.max)?y.max>c.e?c.e:y.max:c.e});return(0,A.jsxs)("div",{className:m()(r,"money-input",d),children:[(0,A.jsx)(i.InputNumber,(0,n.A)((0,n.A)({},N),{},{status:j,formatter:v?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=v?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return _(t)?(Number(t)>Number(N.max)||_(N.min)&&Number(t)<Number(N.min))&&b("error"):b(""),_(t)?Number(t):null},onChange:e=>{F(e)},onBlur:e=>{h&&h(e,b)}})),(0,A.jsx)("div",{className:m()(u),children:"error"===j&&a?o:_(w)?(0,c.A)(p?p(w):w):t})]})},j=e=>v(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(y);j.Field=y,j.toChineseCharacter=c.A;const b=j},94005:(e,t,r)=>{"use strict";r.d(t,{$X:()=>F,Ay:()=>w,Wp:()=>N});var n=r(89379),s=r(53986),a=r(3382),l=r(73884),o=r(98434),i=r(73025),c=r(47458),d=r(47094),u=r(55431),p=r(55199),m=r(76995),h=r(70579);const f=["footerButtons","cancelText","completeText","nextText","items","withDecorator"],g=["formProps","title"],A=["onSubmit"],x=["formProps"],_=["children","stepSection"],v=["modalProps"],y="FormInfo",j=e=>{let{items:t,children:r}=e;const[n,s]=(0,l.useState)(0);return r({currentIndex:n,setCurrentIndex:s,stepCacheRef:(0,l.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},b=e=>{let{footerButtons:t,cancelText:r,completeText:n,nextText:a,items:l,withDecorator:i}=e,v=(0,s.A)(e,f);return(0,m.A)(Object.assign({},v,{footerButtons:e=>{let{currentIndex:t,isLastStep:s}=e;const{footerButtons:i}=Object.assign({},l[t]);return i||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:y,children:r||(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:y})}),ButtonComponent:o.CancelButton},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:y,children:s?n||(0,h.jsx)(c.FormattedMessage,{id:"Complete",moduleName:y}):a||(0,h.jsx)(c.FormattedMessage,{id:"Next",moduleName:y})}),ButtonComponent:o.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const r=t=>(0,h.jsx)(j,{items:l,children:r=>{var n;let{currentIndex:a,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}=r;const{formProps:m,title:f}=c,x=(0,s.A)(c,g),_="function"===typeof m?m(t):m,{onSubmit:y}=_,j=(0,s.A)(_,A),b=Object.assign({},j.data,null===(n=u.current[a])||void 0===n?void 0:n.data);return e(Object.assign({},t,x,{currentIndex:a,isLastStep:o,setCurrentIndex:i,stepCacheRef:u,stepSection:(0,h.jsx)(p.Steps,{className:d.A["form-step-section"],current:a,items:l.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},j,{key:a,data:b,onSubmit:async function(e){u.current[a]={data:e};for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];const l=y&&await y(e,Object.assign({},t,{currentIndex:a,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}),...n);return v.autoClose&&!o&&!1!==l&&i(e=>e+1),!!o&&l}})}))}});return"function"===typeof i?i(r,t):r(t)},formProps:e=>{let{formProps:t}=e,r=(0,s.A)(e,x);return Object.assign({},r,t)},children:e=>{let{children:t,stepSection:r}=e,n=(0,s.A)(e,_);return(0,h.jsxs)(p.Flex,{vertical:!0,gap:24,children:[(0,h.jsx)(p.Flex,{justify:"center",children:r}),"function"===typeof t?t(n):t]})}}))},w=e=>(0,h.jsx)(a.default,(0,n.A)({},b(Object.assign({},e,{className:d.A["form-modal"]})))),F=()=>{const e=(0,a.useModal)();return t=>e(b(Object.assign({},t,{className:d.A["form-modal"]})))},N=e=>{const t=F();if(!e.api){const{modalProps:r}=e,a=(0,s.A)(e,v);return(0,h.jsx)(p.Button,(0,n.A)((0,n.A)({},a),{},{onClick:()=>{t(r)}}))}return(0,h.jsx)(i.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},96252:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AddressInput:()=>x.NI,AddressSelect:()=>x.TQ,AdvancedSelect:()=>x.JL,Avatar:()=>x.eu,Cascader:()=>x.vx,DatePicker:()=>x.lr,DatePickerToday:()=>x.s3,ErrorTip:()=>h.A,Form:()=>p.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>m.A,FormModal:()=>c.Ay,FormModalButton:()=>c.W6,FormStepModal:()=>d.Ay,FormStepModalButton:()=>d.Wp,FunctionSelect:()=>x.d4,IndustrySelect:()=>x.ZN,Input:()=>x.pd,InputNumber:()=>x.YI,InputUpperCase:()=>x.h2,List:()=>l.A,MoneyInput:()=>x.F0,MultiField:()=>f.A,PhoneNumber:()=>x.go,Rate:()=>x.tt,SalaryInput:()=>x.lu,Select:()=>x.l6,SelectInnerInput:()=>_.A,Slider:()=>x.Ap,SuperSelect:()=>x.wD,SuperSelectTableList:()=>x.eM,SuperSelectUser:()=>x.Pg,Switch:()=>x.dO,TableList:()=>o.A,Text:()=>x.EY,TextArea:()=>x.fs,TimePicker:()=>x.AG,TreeSelect:()=>x.f7,TypeDateRangePicker:()=>x.w5,Upload:()=>x._O,default:()=>v,fieldDecorator:()=>a.E,fields:()=>a.A,formModule:()=>x.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var n=r(64261),s=r(2196),a=r(72297),l=r(85846),o=r(97056),i=r(35774),c=r(5995),d=r(94005),u=r(48221),p=r(85696),m=r(30891),h=r(45053),f=r(97949),g=r(98434),A={};for(const y in g)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField","SelectInnerInput"].indexOf(y)<0&&(A[y]=()=>g[y]);r.d(t,A);var x=r(83799),_=r(18936);(0,n.A)(),s.A.fields=a.A,s.A.List=l.A,s.A.TableList=o.A,s.A.FormApiButton=i.A,s.A.FormModal=c.Ay,s.A.useFormModal=c.Vl,s.A.FormModalButton=c.W6,s.A.FormStepModal=d.Ay,s.A.useFormStepModal=d.$X,s.A.FormStepModalButton=d.Wp,s.A.FormDrawer=u.Ay,s.A.useFormDrawer=u.Xy,s.A.FormDrawerButton=u.WJ,s.A.Form=p.A,s.A.FormItem=m.A,s.A.ErrorTip=h.A,s.A.SubmitButton=g.SubmitButton,s.A.CancelButton=g.CancelButton,s.A.fieldDecorator=a.E,s.A.MultiField=f.A,s.A.useFormContext=g.useFormContext,s.A.hooks=g.hooks,s.A.widget=g.widget,s.A.utils=g.utils,s.A.formUtils=g.formUtils;const v=s.A},96339:(e,t,r)=>{"use strict";r.d(t,{A:()=>G});var n=r(53986),s=r(89379),a=r(73884),l=r(17508),o=r(40438),i=r(63743),c=r(3382),d=r(64671),u=r(55199),p=r(53202),m=r.n(p),h=r(33097),f=r.n(h),g=r(83136),A=r.n(g),x=r(51941),_=r(98434),v=r(34677),y=r.n(v);const j="style_upload-btn__-6XtP__hiFBw",b="style_square__UPkfA__hiFBw",w="style_is-loading__wx6Pd__hiFBw",F="style_upload-btn-tips__YtxWz__hiFBw",N="style_drop-tips__N-v59__hiFBw",C="style_preview-area__aV3SN__hiFBw";var S=r(18411),I=r(47458),P=r(55431),B=r(70579);const M=["image","width","height","borderRadius","preview","fileSize","accept","renderTips","getApi","shape","border"],k=["image","width","height","borderRadius","getApi","preview","fileSize","accept","renderTips","border","dropModalSize"],{useOnChange:T}=_.hooks,O=o.default.Avatar,R="FormInfo",E=(0,l.Ay)(e=>{let{className:t,icon:r,loading:n,value:a,gender:l,width:o,height:i,children:c,shape:p,defaultAvatar:m,displayAvatar:h,apis:g}=e;const x=(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(O,(0,s.A)((0,s.A)({},Object.assign({},"function"===typeof h?h(a):{id:f()(a,"id")})),{},{gender:l,width:64*o/i,height:64,shape:p,defaultAvatar:m,apis:g})),(0,B.jsx)("div",{className:F,children:r||(0,B.jsx)(d.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,B.jsx)("div",{className:A()(t,j,{[w]:n,[b]:"square"===p||!(o&&o===i)}),style:{width:64*o/i},children:n?(0,B.jsx)(u.Spin,{children:x}):x})}),L=e=>{let t=e.split(","),r=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],s=atob(r),a=s.length,l=new Uint8Array(a);for(;a--;)l[a]=s.charCodeAt(a);return new Blob([l],{type:n})},D=(0,a.forwardRef)((e,t)=>{let{image:r,width:o,height:i,borderRadius:c,preview:p,fileSize:h,accept:f,renderTips:g,getApi:A,shape:_,border:v=1}=e,y=(0,n.A)(e,M);const j=(0,I.useIntl)({moduleName:R}),[b,w]=(0,a.useState)(0),F=(0,a.useRef)(null),[S,P]=(0,a.useState)(r),[k,T]=(0,a.useState)(1),[O,E]=(0,a.useState)(0),[D,z]=(0,a.useState)(""),U=(0,a.useRef)(null);(0,a.useLayoutEffect)(()=>{w(2*F.current.clientWidth/3)},[]),A({getImage:()=>{const e=U.current.getImage(),t=document.createElement("canvas"),r=t.getContext("2d");return t.width=o,t.height=i,r.drawImage(e,0,0,t.width,t.height),new window.File([L(t.toDataURL())],S.name,{type:S.type})}});const W=()=>{z(U.current.getImage().toDataURL())},G=(0,x.useDebouncedCallback)(W,500);return(0,B.jsx)("div",{ref:F,children:(0,B.jsxs)(u.Row,{wrap:!1,align:"middle",children:[(0,B.jsx)(u.Col,{span:p?16:24,children:b&&(0,B.jsxs)(u.Space,{direction:"vertical",children:[(0,B.jsx)(m(),(0,s.A)((0,s.A)({},y),{},{ref:U,image:S,scale:k,rotate:O,width:b-2*v,height:i*b/o-2*v*i/o,border:v,color:[0,0,0,.6],borderRadius:c*b/o,onImageReady:W,onImageChange:G})),(0,B.jsx)("div",{className:N,children:g("".concat(j.formatMessage({id:"PictureFormat"})).concat(f.map(e=>e.replace(/^\./,"")).join(" ")," ").concat(j.formatMessage({id:"ImageSize"})).concat(j.formatMessage({id:"NotExceeding"},{size:h})),{accept:f,fileSize:h})}),(0,B.jsxs)(u.Row,{gutter:14,align:"middle",children:[(0,B.jsx)(u.Col,{children:(0,B.jsx)(u.Tooltip,{title:j.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,B.jsx)(d.default,{type:"icon-xuanzhuan",onClick:()=>{E(e=>(e-90)%360)}})})}),(0,B.jsx)(u.Col,{children:(0,B.jsx)(u.Tooltip,{title:j.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,B.jsx)(d.default,{type:"icon-chongman",onClick:()=>{T(1)}})})}),(0,B.jsx)(u.Col,{flex:1,children:(0,B.jsx)(u.Slider,{tooltip:{placement:"bottom",formatter:()=>j.formatMessage({id:"Size"})},value:k,step:.05,min:.2,max:3,onChange:T})}),(0,B.jsx)(u.Col,{children:(0,B.jsx)(l.FI,{accept:f,onChange:e=>{e[0].size>1024*h*1024?u.message.error(j.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:h})):(E(0),T(1),P(e[0]))},children:j.formatMessage({id:"ReUpload"})})})]})]})}),p&&(0,B.jsx)(u.Col,{span:8,children:(0,B.jsx)("div",{className:C,children:(0,B.jsxs)(u.Space,{direction:"vertical",children:[(0,B.jsx)(u.Avatar,{src:D,shape:_,style:{width:b/2-36,height:(b/2-36)*i/o}}),(0,B.jsx)("div",{style:{textAlign:"center"},children:j.formatMessage({id:"Preview"})})]})})})]})})}),z=()=>{const e=(0,c.useModal)();return t=>{const r=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t),{image:a,width:l,height:o,borderRadius:i,getApi:c,preview:d,fileSize:u,accept:p,renderTips:m,border:h,dropModalSize:f}=r,g=(0,n.A)(r,k);return e((0,s.A)((0,s.A)({},g),{},{size:f,children:(0,B.jsx)(D,{preview:d,fileSize:u,accept:p,getApi:c,renderTips:m,width:l,height:o,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:i,image:a,border:h,scale:1,rotate:0})}))}},U=(0,I.createWithIntl)({importMessages:P.A,moduleName:"FormInfo"})(e=>{var t;let{value:r,gender:n,fileSize:s=2,accept:l=[".jpg",".png",".jpeg"],openEditor:o=!0,apis:c,renderTips:d=e=>e,onChange:p,shape:m="circle",width:h=200,height:f=200,title:g=(0,B.jsx)(I.IntlProvider,{importMessages:P.A,moduleName:"FormInfo",children:(0,B.jsx)(I.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:A=1,icon:x,dropModalSize:_="small",defaultAvatar:v=S.A,displayAvatar:j}=e;const[b,w]=(0,a.useState)(!1),{apis:F}=(0,i.usePreset)(),N=y()({},F,c),C=N.ossUpload||N.upload||(null===(t=N.file)||void 0===t?void 0:t.upload),M=(0,a.useRef)(null),k=z(),T=(0,I.useIntl)({moduleName:R});return(0,B.jsx)(E,{value:r,gender:n,accept:l,width:h,height:f,shape:m,icon:x,loading:b,defaultAvatar:v,displayAvatar:j,apis:N,onChange:e=>{if(e[0].size>1024*s*1024)return void u.message.error(T.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:s}));const t=e=>(w(!0),C({file:e}).then(e=>{let{data:t}=e;0===t.code?p(t.data):u.message.error(T.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{w(!1)}));o?k({image:e[0],width:h,height:f,title:g,shape:m,border:A,dropModalSize:_,getApi:e=>M.current=e,fileSize:s,accept:l,renderTips:d,onConfirm:()=>{t(M.current.getImage())}}):t(e[0])}})}),W=e=>T(e)(U);W.Field=U,W.useDropModal=z;const G=W},97056:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(89379),s=r(53986),a=r(85846),l=r(83560),o=r(55199),i=r(41740),c=r.n(i),d=r(73884),u=r(83136),p=r.n(u),m=r(47094),h=r(70579);const f=["list","className"],g=(0,d.forwardRef)((e,t)=>{const[r,n]=(0,d.useState)(new Map);return(0,d.useImperativeHandle)(t,()=>e=>{setTimeout(()=>{n(t=>{if(t.has(e.key))return t;const r=c()(t);return r.set(e.key,e.props),r})})},[]),(0,h.jsxs)(o.Row,{wrap:!1,className:m.A["table-list-header"],style:{"--col-width":"".concat(100/r.size,"%")},children:[Array.from(r).map(e=>{let[t,{label:r,rule:n}]=e;return(0,h.jsx)(o.Col,{className:p()({[m.A["is-req"]]:0===(n||"").split(" ").indexOf("REQ")}),children:r},t)}),(0,h.jsx)(o.Col,{className:m.A["table-list-extra"]})]})}),A=e=>{let{list:t,className:r}=e,i=(0,s.A)(e,f);const c=(0,d.useRef)(null);return(0,h.jsx)(a.A,(0,n.A)((0,n.A)({},i),{},{className:p()(r,m.A["table-list"]),list:t,renderChildren:e=>(0,h.jsxs)("div",{className:m.A["table-list-inner"],children:[(0,h.jsx)(g,{ref:c}),e]}),listRender:e=>{let{list:t,groupArgs:r,extra:n,key:s}=e;return(0,h.jsxs)(o.Row,{wrap:!1,align:"top",style:{"--col-width":"".concat(100/t.length,"%")},children:[(0,h.jsx)(l.A,{list:t,groupArgs:r,itemRender:(e,t)=>(c.current(t),(0,h.jsx)(o.Col,{className:m.A["table-list-field"],flex:1,children:e}))}),(0,h.jsx)(o.Col,{className:m.A["table-list-extra"],children:n})]},s)}}))}},97949:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(89379),s=r(53986),a=r(73884),l=r(55199),o=r(98434),i=r(47458),c=r(64671),d=r(33097),u=r.n(d),p=r(47094),m=r(83136),h=r.n(m),f=r(55431),g=r(70579);const A=["name","label","rule","field","defaultLength","minLength","maxLength"],x=(0,i.createWithIntl)({moduleName:"FormInfo",importMessages:f.A})(e=>{let{name:t,label:r,rule:d,field:m,defaultLength:f=1,minLength:x=1,maxLength:_}=e,v=(0,s.A)(e,A);const y=(0,a.useRef)(null),j=m,b=(0,o.useFormContext)(),{formData:w}=b,F=!(_&&_<=u()(w,"".concat(t,".length"),0)),{formatMessage:N}=(0,i.useIntl)({moduleName:"FormInfo"});return(0,g.jsxs)("div",{className:h()(p.A["mult-field"],"mult-field"),children:[(0,g.jsx)(o.GroupList,{ref:y,name:t,defaultLength:Math.max(f,x,1),children:function(){for(var e=arguments.length,s=new Array(e),a=0;a<e;a++)s[a]=arguments[a];const{id:o,index:i,onRemove:u,length:m}=(e=>{if("object"===typeof e[0])return e[0];const[t,{index:r,onRemove:n,length:s}]=e;return{id:t,index:r,onRemove:n,length:s}})(s);return(0,g.jsxs)("div",{className:h()(p.A["mult-field-item"],"mult-field-item",{[p.A["first-item"]]:0===i}),children:[(0,g.jsx)(j,(0,n.A)((0,n.A)({},v),{},{name:t,label:r,rule:d})),(0,g.jsxs)("div",{className:h()("form-info-mult-option"),children:[(0,g.jsx)("div",{className:h()(p.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,g.jsx)(l.Button,{icon:(0,g.jsx)(c.default,{type:"shanchu"}),onClick:u,disabled:m<=Math.max(x,1)})]})]},o)}}),F&&(0,g.jsx)("div",{className:h()("form-info-mult-add-btn"),children:(0,g.jsxs)(l.Button,{className:p.A["mult-field-add-btn"],type:"dashed",onClick:()=>y.current.onAdd(),children:[(0,g.jsx)(c.default,{type:"tianjia"}),N({id:"addSomeThing"},{label:r})]})})]})})},99140:(e,t,r)=>{var n=r(37303);e.exports=function(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}}}]);
|
|
2
|
-
//# sourceMappingURL=254.62f7eb14.chunk.js.map
|