@kne-components/components-core 0.4.48 → 0.4.49
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 +103 -103
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{1381.97c23e40.chunk.css → 1381.88787b52.chunk.css} +2 -2
- package/build/static/css/{5633.97c23e40.chunk.css.map → 1381.88787b52.chunk.css.map} +1 -1
- package/build/static/css/1742.ef613214.chunk.css +2 -0
- package/build/static/css/{1742.a9242087.chunk.css.map → 1742.ef613214.chunk.css.map} +1 -1
- package/build/static/css/{1996.3b1b6ffb.chunk.css → 1996.f8b06269.chunk.css} +2 -2
- package/build/static/css/{1996.3b1b6ffb.chunk.css.map → 1996.f8b06269.chunk.css.map} +1 -1
- package/build/static/css/2004.ed58a6f4.chunk.css +2 -0
- package/build/static/css/{2004.a3f147b1.chunk.css.map → 2004.ed58a6f4.chunk.css.map} +1 -1
- package/build/static/css/2307.3c5059f0.chunk.css +2 -0
- package/build/static/css/{2307.42c53a3a.chunk.css.map → 2307.3c5059f0.chunk.css.map} +1 -1
- package/build/static/css/254.b159fe70.chunk.css +2 -0
- package/build/static/css/{254.83fff100.chunk.css.map → 254.b159fe70.chunk.css.map} +1 -1
- package/build/static/css/3404.018687de.chunk.css +2 -0
- package/build/static/css/{3404.5e0de2a8.chunk.css.map → 3404.018687de.chunk.css.map} +1 -1
- package/build/static/css/3625.36553112.chunk.css +2 -0
- package/build/static/css/{3625.f7b25f1d.chunk.css.map → 3625.36553112.chunk.css.map} +1 -1
- package/build/static/css/{3771.e6925032.chunk.css → 3771.c542f311.chunk.css} +2 -2
- package/build/static/css/{3771.e6925032.chunk.css.map → 3771.c542f311.chunk.css.map} +1 -1
- package/build/static/css/{3790.a8751318.chunk.css → 3790.fe8e38db.chunk.css} +2 -2
- package/build/static/css/{3790.a8751318.chunk.css.map → 3790.fe8e38db.chunk.css.map} +1 -1
- package/build/static/css/5195.c024c488.chunk.css +2 -0
- package/build/static/css/{5195.76450f82.chunk.css.map → 5195.c024c488.chunk.css.map} +1 -1
- package/build/static/css/{5633.97c23e40.chunk.css → 5633.88787b52.chunk.css} +2 -2
- package/build/static/css/{1381.97c23e40.chunk.css.map → 5633.88787b52.chunk.css.map} +1 -1
- package/build/static/css/5674.d42e8b20.chunk.css +2 -0
- package/build/static/css/{5674.f576a7c0.chunk.css.map → 5674.d42e8b20.chunk.css.map} +1 -1
- package/build/static/css/{653.f1a8c344.chunk.css → 653.b666c943.chunk.css} +2 -2
- package/build/static/css/{653.f1a8c344.chunk.css.map → 653.b666c943.chunk.css.map} +1 -1
- package/build/static/css/{6763.ca44e0d1.chunk.css → 6763.7fb4966d.chunk.css} +2 -2
- package/build/static/css/{6763.ca44e0d1.chunk.css.map → 6763.7fb4966d.chunk.css.map} +1 -1
- package/build/static/css/7227.1fc2b5a4.chunk.css +2 -0
- package/build/static/css/{7227.f2b79b4b.chunk.css.map → 7227.1fc2b5a4.chunk.css.map} +1 -1
- package/build/static/css/{7589.3911b1f5.chunk.css → 7589.4aacb414.chunk.css} +2 -2
- package/build/static/css/7589.4aacb414.chunk.css.map +1 -0
- package/build/static/css/{760.002efcd5.chunk.css → 760.b409f1cd.chunk.css} +2 -2
- package/build/static/css/{760.002efcd5.chunk.css.map → 760.b409f1cd.chunk.css.map} +1 -1
- package/build/static/css/7857.585194fa.chunk.css +2 -0
- package/build/static/css/{7857.d443300e.chunk.css.map → 7857.585194fa.chunk.css.map} +1 -1
- package/build/static/css/{7987.97c23e40.chunk.css → 7987.88787b52.chunk.css} +2 -2
- package/build/static/css/{7987.97c23e40.chunk.css.map → 7987.88787b52.chunk.css.map} +1 -1
- package/build/static/css/833.c28022fa.chunk.css +2 -0
- package/build/static/css/{833.ff73ca39.chunk.css.map → 833.c28022fa.chunk.css.map} +1 -1
- package/build/static/css/{8593.3cec7681.chunk.css → 8593.602af143.chunk.css} +2 -2
- package/build/static/css/{8593.3cec7681.chunk.css.map → 8593.602af143.chunk.css.map} +1 -1
- package/build/static/css/{8689.906ec3c8.chunk.css → 8689.1a6dca51.chunk.css} +2 -2
- package/build/static/css/{8689.906ec3c8.chunk.css.map → 8689.1a6dca51.chunk.css.map} +1 -1
- package/build/static/css/9556.7078bc08.chunk.css +2 -0
- package/build/static/css/{9556.84a29ddc.chunk.css.map → 9556.7078bc08.chunk.css.map} +1 -1
- package/build/static/js/{1381.37b05f38.chunk.js → 1381.097e564d.chunk.js} +1 -1
- package/build/static/js/1742.b4b3157e.chunk.js +2 -0
- package/build/static/js/{1742.7cfda614.chunk.js.map → 1742.b4b3157e.chunk.js.map} +1 -1
- package/build/static/js/{1996.81afec75.chunk.js → 1996.75390469.chunk.js} +2 -2
- package/build/static/js/{1996.81afec75.chunk.js.map → 1996.75390469.chunk.js.map} +1 -1
- package/build/static/js/{2004.dae78252.chunk.js → 2004.00308337.chunk.js} +3 -3
- package/build/static/js/{2004.dae78252.chunk.js.map → 2004.00308337.chunk.js.map} +1 -1
- package/build/static/js/{2242.1273f712.chunk.js → 2242.5caf43be.chunk.js} +2 -2
- package/build/static/js/2242.5caf43be.chunk.js.map +1 -0
- package/build/static/js/{254.429a7ed6.chunk.js → 254.6958b375.chunk.js} +2 -2
- package/build/static/js/{254.429a7ed6.chunk.js.map → 254.6958b375.chunk.js.map} +1 -1
- package/build/static/js/{2723.38314d6e.chunk.js → 2723.cb6a842c.chunk.js} +1 -1
- package/build/static/js/{3404.bdab58a6.chunk.js → 3404.8f81d550.chunk.js} +3 -3
- package/build/static/js/{3404.bdab58a6.chunk.js.map → 3404.8f81d550.chunk.js.map} +1 -1
- package/build/static/js/{3625.391f04a8.chunk.js → 3625.5ec9bf8c.chunk.js} +2 -2
- package/build/static/js/{3625.391f04a8.chunk.js.map → 3625.5ec9bf8c.chunk.js.map} +1 -1
- package/build/static/js/3771.088d9358.chunk.js +2 -0
- package/build/static/js/{3771.1c9ba03c.chunk.js.map → 3771.088d9358.chunk.js.map} +1 -1
- package/build/static/js/{3790.a82f2dfc.chunk.js → 3790.8624b208.chunk.js} +2 -2
- package/build/static/js/{3790.a82f2dfc.chunk.js.map → 3790.8624b208.chunk.js.map} +1 -1
- package/build/static/js/3856.992e89f5.chunk.js +2 -0
- package/build/static/js/{3856.a75f9ea9.chunk.js.map → 3856.992e89f5.chunk.js.map} +1 -1
- package/build/static/js/{4297.71ba78e9.chunk.js → 4297.30f27b86.chunk.js} +2 -2
- package/build/static/js/4297.30f27b86.chunk.js.map +1 -0
- package/build/static/js/{4474.e63d9483.chunk.js → 4474.6d7786ed.chunk.js} +2 -2
- package/build/static/js/{4474.e63d9483.chunk.js.map → 4474.6d7786ed.chunk.js.map} +1 -1
- package/build/static/js/{5195.3b24069c.chunk.js → 5195.16f05876.chunk.js} +2 -2
- package/build/static/js/{5195.3b24069c.chunk.js.map → 5195.16f05876.chunk.js.map} +1 -1
- package/build/static/js/{5633.10b44bd7.chunk.js → 5633.175e0df7.chunk.js} +1 -1
- package/build/static/js/{5674.15935167.chunk.js → 5674.dc0583db.chunk.js} +2 -2
- package/build/static/js/{5674.15935167.chunk.js.map → 5674.dc0583db.chunk.js.map} +1 -1
- package/build/static/js/{5958.0f13dc94.chunk.js → 5958.0e4aecbc.chunk.js} +2 -2
- package/build/static/js/{5958.0f13dc94.chunk.js.map → 5958.0e4aecbc.chunk.js.map} +1 -1
- package/build/static/js/6763.a55b2e0d.chunk.js +2 -0
- package/build/static/js/{6763.e209fb3e.chunk.js.map → 6763.a55b2e0d.chunk.js.map} +1 -1
- package/build/static/js/{7040.7548c515.chunk.js → 7040.21027489.chunk.js} +2 -2
- package/build/static/js/{7040.7548c515.chunk.js.map → 7040.21027489.chunk.js.map} +1 -1
- package/build/static/js/{7227.7532b45e.chunk.js → 7227.1053f26b.chunk.js} +3 -3
- package/build/static/js/{7227.7532b45e.chunk.js.map → 7227.1053f26b.chunk.js.map} +1 -1
- package/build/static/js/{7589.98b577a7.chunk.js → 7589.90f9b150.chunk.js} +2 -2
- package/build/static/js/{7589.98b577a7.chunk.js.map → 7589.90f9b150.chunk.js.map} +1 -1
- package/build/static/js/{760.ef91a81a.chunk.js → 760.6b24e4ad.chunk.js} +2 -2
- package/build/static/js/{760.ef91a81a.chunk.js.map → 760.6b24e4ad.chunk.js.map} +1 -1
- package/build/static/js/7857.37c51907.chunk.js +2 -0
- package/build/static/js/{7857.bf4de75d.chunk.js.map → 7857.37c51907.chunk.js.map} +1 -1
- package/build/static/js/833.c3c7812b.chunk.js +2 -0
- package/build/static/js/{833.c8341caa.chunk.js.map → 833.c3c7812b.chunk.js.map} +1 -1
- package/build/static/js/8593.0fe55cd4.chunk.js +2 -0
- package/build/static/js/{8593.e3573f05.chunk.js.map → 8593.0fe55cd4.chunk.js.map} +1 -1
- package/build/static/js/9556.bef1a226.chunk.js +3 -0
- package/build/static/js/{9556.3942adcb.chunk.js.map → 9556.bef1a226.chunk.js.map} +1 -1
- package/build/static/js/{main.c64479f0.js → main.f8f9eb0f.js} +2 -2
- package/build/static/js/{main.c64479f0.js.map → main.f8f9eb0f.js.map} +1 -1
- package/package.json +2 -2
- package/build/static/css/1742.a9242087.chunk.css +0 -2
- package/build/static/css/2004.a3f147b1.chunk.css +0 -2
- package/build/static/css/2307.42c53a3a.chunk.css +0 -2
- package/build/static/css/254.83fff100.chunk.css +0 -2
- package/build/static/css/3404.5e0de2a8.chunk.css +0 -2
- package/build/static/css/3625.f7b25f1d.chunk.css +0 -2
- package/build/static/css/5195.76450f82.chunk.css +0 -2
- package/build/static/css/5674.f576a7c0.chunk.css +0 -2
- package/build/static/css/7227.f2b79b4b.chunk.css +0 -2
- package/build/static/css/7589.3911b1f5.chunk.css.map +0 -1
- package/build/static/css/7857.d443300e.chunk.css +0 -2
- package/build/static/css/833.ff73ca39.chunk.css +0 -2
- package/build/static/css/9556.84a29ddc.chunk.css +0 -2
- package/build/static/js/1742.7cfda614.chunk.js +0 -2
- package/build/static/js/2242.1273f712.chunk.js.map +0 -1
- package/build/static/js/3771.1c9ba03c.chunk.js +0 -2
- package/build/static/js/3856.a75f9ea9.chunk.js +0 -2
- package/build/static/js/4297.71ba78e9.chunk.js.map +0 -1
- package/build/static/js/6763.e209fb3e.chunk.js +0 -2
- package/build/static/js/7857.bf4de75d.chunk.js +0 -2
- package/build/static/js/833.c8341caa.chunk.js +0 -2
- package/build/static/js/8593.e3573f05.chunk.js +0 -2
- package/build/static/js/9556.3942adcb.chunk.js +0 -3
- /package/build/static/js/{2004.dae78252.chunk.js.LICENSE.txt → 2004.00308337.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.bdab58a6.chunk.js.LICENSE.txt → 3404.8f81d550.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.7532b45e.chunk.js.LICENSE.txt → 7227.1053f26b.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.3942adcb.chunk.js.LICENSE.txt → 9556.bef1a226.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4671,7857],{3870(){function e(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}const t=Reflect.getPrototypeOf(Int8Array);for(const o of[Array,String,t])Object.defineProperty(o.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},25963(e,t,o){"use strict";o.r(t),o.d(t,{AppDrawer:()=>N,DrawerButton:()=>K,default:()=>W,useDrawer:()=>U});var n=o(20454),r=o(89379),l=o(53986),a=o(55199),s=o(83136),c=o.n(s);const i="style_drawer__hA8bn__RCjzi",d="style_drawer-outer__vuEIf__RCjzi",u="style_drawer-title__71eaW__RCjzi",m="style_drawer-body__frw9I__RCjzi",h="style_is-disabled-scroller__ZsITw__RCjzi",f="style_drawer-body-inner__lci9Z__RCjzi",p="style_drawer-footer__1g8o1__RCjzi",_="style_drawer-close__bpxnp__RCjzi",b=e=>({"en-US":()=>o.e(3172).then(o.bind(o,23172)),"zh-CN":()=>o.e(5254).then(o.bind(o,95254))}[e]());var g=o(47458),C=o(73884);const y=()=>{const[e,t]=(0,C.useState)([]);return[e,(0,C.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var j=o(70579);const w=(0,C.forwardRef)((e,t)=>{let{config:o}=e;const[n,l]=(0,C.useState)(!0),[s,c]=(0,C.useState)(o),i=function(){l(!1);for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const n=t.some(e=>e&&e.triggerCancel);s.onClose&&n&&s.onClose(()=>{},...t.slice(1))};return(0,C.useImperativeHandle)(t,()=>({destroy:i,update:e=>{c(t=>(0,r.A)((0,r.A)({},t),e))}})),(0,j.jsx)(a.Drawer,(0,r.A)((0,r.A)({},s),{},{ref:t,open:n,onClose:i}))});let A=0;function x(e){return(0,r.A)({},e)}const v=[],R=(0,C.memo)((0,C.forwardRef)((e,t)=>{const[o,n]=y();return(0,C.useImperativeHandle)(t,()=>({patchElement:n}),[n]),(0,j.jsx)(j.Fragment,{children:o})}));const P=function(){const e=(0,C.useRef)(null),[t,o]=(0,C.useState)([]);(0,C.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),o([])}},[t]);const n=(0,C.useCallback)(t=>function(n){var r;A+=1;const l=(0,C.createRef)();let a=()=>{};const s=(0,j.jsx)(w,{config:t(n),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():o(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():o(e=>[...e,t])}}},[]);return[(0,C.useMemo)(()=>n(x),[n]),(0,j.jsx)(R,{ref:e},"drawer-holder")]},k=(0,C.createContext)({}),{Provider:S}=k,z=e=>{const{children:t}=e,[o,n]=P(),r=(0,C.useMemo)(()=>({drawer:o}),[o]);return(0,j.jsx)(S,{value:r,children:(0,j.jsxs)("div",{children:[n,t]})})};z.useAppDrawer=()=>(0,C.useContext)(k);const N=z;var G=o(81014),L=o(71298),M=o.n(L),E=o(64671);const B=["ButtonComponent","onClick","autoClose"],I=["children","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator"],O=["size"],D=(e,t)=>"function"===typeof e?e(t):e,F=e=>{let{footer:t,footerButtons:o,onConfirm:n,onCancel:s,onClose:c}=e;return(0,j.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,j.jsx)(a.Col,{flex:1,children:t}),Array.isArray(o)&&0===o.length?null:(0,j.jsx)(a.Col,{children:(0,j.jsx)(a.Space,{children:(o||[{children:"\u53d6\u6d88",onClick:s},{type:"primary",children:"\u786e\u5b9a",onClick:n}]).map((e,t)=>{let{ButtonComponent:o,onClick:n,autoClose:a=!0}=e,s=(0,l.A)(e,B);const i=o||G.default;return(0,C.createElement)(i,(0,r.A)((0,r.A)({},s),{},{key:t,onClick:async function(){const e=await Promise.resolve(n&&n(...arguments));return a&&!1!==e&&c&&c(),e}}))})})})]})},T=e=>{let{title:t,footer:o,disabledScroller:n,footerButtons:r,onClose:l,closable:s,onConfirm:i,onCancel:b,children:g}=e;const y=(0,C.useRef)(null);return(0,C.useEffect)(()=>{!n&&new(M())(y.current)},[n]),(0,j.jsxs)("div",{className:d,"data-testid":"components-core-drawer",children:[!1===s?null:(0,j.jsx)(a.Button,{"data-testid":"components-core-drawer-close-btn",className:c()(_,"drawer-close"),type:"text",icon:(0,j.jsx)(E.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),l&&l()}}),t&&(0,j.jsx)("div",{className:c()(u,"drawer-title"),children:t}),(0,j.jsx)("div",{className:c()(m,"drawer-body",{[h]:n}),ref:y,children:(0,j.jsx)("div",{className:c()(f,"drawer-body-inner"),children:g})}),null!==o||r?(0,j.jsx)("div",{className:c()(p,"drawer-footer"),children:(0,j.jsx)(F,{footer:o,footerButtons:r,onConfirm:i,onCancel:b,onClose:l})}):null]})},V=e=>{let{withDecorator:t,footerButtons:o,title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footer:i,disabledScroller:d,children:u}=e;const m=e=>(e=Object.assign({},e),(0,j.jsx)(T,{title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:D(o,(0,r.A)((0,r.A)({},e),{},{close:a})),disabledScroller:d,footer:D(i,(0,r.A)((0,r.A)({},e),{},{close:a})),children:D(u,(0,r.A)((0,r.A)({},e),{},{close:a}))}));return"function"===typeof t?t(m):m({})},q=e=>{let{children:t,footer:o,footerButtons:n,className:a,size:s,title:d,onClose:u,onConfirm:m,onCancel:h,closable:f,disabledScroller:p,withDecorator:_}=e,C=(0,l.A)(e,I);return(0,r.A)((0,r.A)((0,r.A)({},C),{},{icon:null,title:null,maskClosable:!!C.hasOwnProperty("maskClosable")&&C.maskClosable,destroyOnHidden:!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,j.jsx)(g.IntlProvider,{importMessages:b,moduleName:"Drawer",children:V({withDecorator:_,title:d,closable:f,onClose:u,onConfirm:m,onCancel:h,footer:o,footerButtons:n,disabledScroller:p,children:t})})});var y},U=()=>{const{drawer:e}=N.useAppDrawer();return t=>{const o={},l=q((0,r.A)({onClose:()=>o.close()},t)),a=Object.assign({},((0,n.A)(l),l)),{destroy:s}=e((0,r.A)({},a));return o.close=s,o}},W=e=>{let{size:t="small"}=e,o=(0,l.A)(e,O);return(0,j.jsx)(a.Drawer,(0,r.A)({},q((0,r.A)({size:t},o))))};var H=o(73025);const K=e=>{const t=U();return(0,j.jsx)(H.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},47458(e,t,o){"use strict";o.r(t),o.d(t,{FormattedMessage:()=>w,IntlProvider:()=>j,createWithIntl:()=>x,createWithLocale:()=>g,default:()=>v,useIntl:()=>A});var n=o(89379),r=o(53986),l=o(87558),a=o.n(l),s=o(61032),c=o(72752),i=o(73884),d=o(34677),u=o.n(d),m=o(22717),h=o.n(m),f=o(33097),p=o.n(f),_=o(70579);const b=new Map,g=e=>{let{moduleName:t,importMessages:o}=e;return e=>(0,i.forwardRef)((r,l)=>{const{global:s}=(0,c.useGlobalContext)("locale"),i=s||"zh-CN";return(0,_.jsx)(a(),{params:{locale:i},loader:e=>{let{params:n}=e;const{locale:r}=n,l="".concat(t,"_").concat(r);return b.has(l)?b.get(l):Promise.resolve(o(r)).then(e=>{let{default:t}=e;return b.set(l,t),t})},render:t=>{let{data:o}=t;return(0,_.jsx)(e,(0,n.A)((0,n.A)({},r),{},{locale:o,ref:l}))}})})},C=["id","moduleName","children"],y=(0,l.withFetch)(e=>{let{children:t,data:o,locale:n}=e;return(0,_.jsx)(s.IntlProvider,{locale:n,messages:o,children:t})}),j=e=>{let{locale:t,importMessages:o=()=>({}),moduleName:n="Global",children:r}=e;const{global:{localMessageRef:l,locale:a}}=(0,c.useGlobalContext)(),s=t||a||"zh-CN";return(0,_.jsx)(y,{locale:s,params:{locale:s},loader:e=>{let{params:t}=e;const{locale:r}=t;return Promise.resolve(o(r)).then(e=>{let{default:t}=e;const o=u()({},l.current,h()(t,(e,t,o)=>{e["".concat(n,"_").concat(o)]=t}));return l.current=o,o})},children:r})},w=e=>{let{id:t,moduleName:o="Global",children:l}=e,a=(0,r.A)(e,C);const c="".concat(o,"_").concat(t);return"function"===typeof l?(0,_.jsx)(s.FormattedMessage,(0,n.A)((0,n.A)({},a),{},{id:c,children:e=>l(e&&e.join(""))})):(0,_.jsx)(s.FormattedMessage,(0,n.A)((0,n.A)({},a),{},{id:c}))},A=e=>{let t=p()(e,"moduleName")||"Global";const{formatMessage:o}=(0,s.useIntl)(),n=(0,i.useCallback)((e,n)=>(e.id="".concat(t,"_").concat(e.id),o(e,n)),[t,o]);return{formatMessage:n}},x=e=>{let{importMessages:t,moduleName:o}=e;return e=>(0,i.forwardRef)((r,l)=>(0,_.jsx)(j,{importMessages:t,moduleName:o,children:(0,_.jsx)(e,(0,n.A)((0,n.A)({},r),{},{ref:l}))}))},v=w},64671(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>r.a});var n=o(48781),r=o.n(n),l={};for(const a in n)"default"!==a&&(l[a]=()=>n[a]);o.d(t,l)},72752(e,t,o){"use strict";o.r(t),o.d(t,{GetGlobal:()=>X,GlobalProvider:()=>H,GlobalSetting:()=>s.GlobalSetting,GlobalValue:()=>s.GlobalValue,PureGlobal:()=>K,SetGlobal:()=>Q,containerClassName:()=>q,default:()=>J,useGlobalContext:()=>Z,useGlobalValue:()=>s.useGlobalValue,usePreset:()=>s.usePreset});var n=o(89379),r=o(53986),l=(o(3870),o(21683),o(83136)),a=o.n(l),s=o(83694),c=o(55199),i=o(73884),d=o(71298),u=o.n(d),m=o(36755),h=o(76801);const f=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var p=o(87558),_=o.n(p),b=o(57469),g=o.n(b),C=o(52526);const y=e=>{let{params:t}=e;const{locale:n}=t;return{"en-US":async()=>(await o.e(3513).then(o.t.bind(o,33513,23)),g().locale("en"),await o.e(2397).then(o.t.bind(o,62397,23)).then(e=>{(0,C.localeLoader)("en-US",e.default,"button-group")}),await o.e(9808).then(o.t.bind(o,79808,23)).then(e=>{(0,C.localeLoader)("en-US",e.default,"phone-number-input")}),await o.e(8670).then(o.t.bind(o,78670,23)).then(e=>{(0,C.localeLoader)("en-US",e.default,"scroll-loader")}),await o.e(9223).then(o.t.bind(o,99223,23)).then(e=>{(0,C.localeLoader)("en-US",e.default,"react-file")}),await o.e(7451).then(o.bind(o,47451)).then(e=>e.default)),"zh-CN":async()=>(await o.e(6484).then(o.t.bind(o,76484,23)),g().locale("zh-cn"),await o.e(4965).then(o.bind(o,64965)).then(e=>e.default))}[n]()},j={container:"style_container__k+uRt__RCjzi","is-not-init":"style_is-not-init__BZN0v__RCjzi","loading-rotate":"style_loading-rotate__kLLHV__RCjzi",total_text:"style_total_text__oNKMr__RCjzi","ant-pagination":"style_ant-pagination__4LRg7__RCjzi","ant-pagination-options":"style_ant-pagination-options__mp-tz__RCjzi","ant-select-single":"style_ant-select-single__mL6Zt__RCjzi","ant-select-selector":"style_ant-select-selector__+111I__RCjzi","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__RCjzi","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__RCjzi","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__RCjzi"};var w=o(33097),A=o.n(w),x=o(25963),v=o(64671),R=o(96418),P=o.n(R),k=o(22717),S=o.n(k),z=o(96604),N=o.n(z),G=o(25806),L=o.n(G),M=o(13050),E=o(56641),B=o.n(E);const I=(e,t)=>B()(e,t,(e,t)=>{if("function"===typeof e||"function"===typeof t||"symbol"===typeof e||"symbol"===typeof t)return!0});var O=o(70579);const D=["colorPrimary","components"],F=["preset","children","themeToken","init"],T=["children"],V=["children","className"];document.body.classList.add(j.container),f()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new(u())(document.body),(0,h.h)().classList.add(j.container));const q=j.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),U=(0,p.withFetch)(e=>{let{data:t,themeToken:o,children:l}=e;const[a,s]=(0,i.useState)(!1),d=Object.assign({},{colorPrimary:"#4096ff"},o),{colorPrimary:u,components:m}=d,f=(0,r.A)(d,D),p=(0,i.useMemo)(()=>L()(u),[u]),[_,b]=(0,i.useState)({});return(0,i.useEffect)(()=>{const e=document.querySelector(".".concat(q)),t=getComputedStyle(e);b({colorSuccess:t.getPropertyValue("--state-success-color"),colorError:t.getPropertyValue("--state-error-color"),colorWarning:t.getPropertyValue("--state-warning-color"),colorInfo:t.getPropertyValue("--state-info-color")})},[]),(0,i.useEffect)(()=>{let e=document.head.querySelector("#component-core-theme");e||(e=document.createElement("style"),e.id="component-core-theme",document.head.appendChild(e));const t={"--primary-color":u,"--primary-color-red":p.red(),"--primary-color-green":p.green(),"--primary-color-blue":p.blue(),"--primary-color-06":p.alpha(.06).string()};return N()(0,10).forEach(e=>{t["--primary-color-".concat(e+1)]=p.alpha((e+1)/10).string()}),e.textContent=".".concat(q,"{").concat(S()(t,(e,t,o)=>{e.push("".concat(o,":").concat(t,";"))},[]).join(""),"}"),s(!0),()=>{}},[u,p]),a?(0,O.jsx)(c.ConfigProvider,{getTargetContainer:h.h,getPopupContainer:h.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,warning:{strict:!1},theme:{components:m,token:Object.assign({},(0,n.A)((0,n.A)({},_),{},{colorPrimary:u,colorPrimaryBg:p.alpha(.1).string(),colorLink:u,colorTextBase:"#222222",colorText:"#222222"}),f)},children:l}):null}),W=(0,M.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[o,n]=t;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(v.FontLoader,{path:"".concat(o,"/iconfont.css")}),(0,O.jsx)(v.FontLoader,{path:"".concat(n,"/iconfont.js")})]})}),H=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:o,themeToken:n,init:l}=e,a=(0,r.A)(e,F);const d=A()(t,"locale","zh-CN"),u=(0,i.useRef)(null),m=(0,i.useRef)(null);return(0,O.jsx)(s.Global,{preset:t,initValue:Object.assign({},a,{themeToken:n,localMessageRef:u,enumsRef:m,locale:d},A()(t,"global")),children:(0,O.jsx)(s.GlobalValue,{globalKey:"locale",children:e=>{let{value:t}=e;return(0,O.jsxs)(U,{loader:y,params:{locale:t},themeToken:n,children:[(0,O.jsx)(c.App,{message:{top:100},children:(0,O.jsx)(x.AppDrawer,{children:"function"===typeof l?(0,O.jsx)(_(),{loader:()=>l(),render:()=>o}):o})}),(0,O.jsx)(W,{})]})}})})},K=e=>{let{children:t}=e,o=(0,r.A)(e,T);const l=(0,s.useGlobalValue)("themeToken");return(0,O.jsx)(H,(0,n.A)((0,n.A)({},o),{},{themeToken:o.themeToken||l,children:(0,O.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(j.container,"core-container-body"),children:t})}))},Z=e=>{const t=(0,s.useGlobalContext)(),o=P()(o=>{t.setGlobal(t=>"function"===typeof o?Object.assign({},t,{[e]:o(A()(t,e))}):Object.assign({},t,{[e]:o}))});return Object.assign({global:{},setGlobal:()=>{console.warn("\u8c03\u7528setGlobal\u7684\u7ec4\u4ef6\u5e94\u8be5\u88ab\u653e\u7f6e\u5728Global\u4e0a\u4e0b\u6587\u4e2d")}},t,e?{global:A()(t.global,e),setGlobal:o}:{})},Q=e=>{let{globalKey:t,value:o,needReady:n,children:r}=e;const{global:l,setGlobal:a}=Z(t),s=P()(a),c=(0,i.useRef)(null);return c.current=l,(0,i.useEffect)(()=>{I(c.current,o)||(c.current=o,s(o))},[o,s]),n&&!l?null:"function"===typeof r?r({global:l,setGlobal:a}):r},X=e=>{let{globalKey:t,children:o}=e;const{global:n}=Z(t);return o({value:n})},J=e=>{let{children:t,className:o}=e,l=(0,r.A)(e,V);return(0,O.jsx)(m.A,{errorRender:()=>(0,O.jsx)(c.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,O.jsx)(H,(0,n.A)((0,n.A)({},l),{},{children:(0,O.jsx)("div",{"data-testid":"components-core-global",className:a()(j.container,"container-body",o),children:t})}))})}},73025(e,t,o){"use strict";o.d(t,{A:()=>m});var n=o(89379),r=o(53986),l=o(73884),a=o(87558),s=o(96418),c=o.n(s),i=o(55199),d=o(70579);const u=["api","modalProps","modalFunc","onError"],m=e=>{let{api:t,modalProps:o={},modalFunc:s,onError:m}=e,h=(0,r.A)(e,u);const f=(0,a.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:p,data:_,error:b,refresh:g}=f,C=c()(m),y=c()(()=>{const e=s("function"===typeof o?o({data:_,fetchApi:f,close:()=>{e.close()}}):o)});return(0,l.useEffect)(()=>{p||(b?C(b):_&&y())},[p,b,_,y,C]),(0,d.jsx)(i.Button,(0,n.A)((0,n.A)({},h),{},{loading:p,onClick:()=>{g({onSuccess:()=>{}})}}))}},76801(e,t,o){"use strict";o.d(t,{c:()=>r,h:()=>n});const n=()=>document.querySelector(".simplebar-content-wrapper"),r=()=>document.querySelector(".container-body")},81014(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>n.LoadingButton,useLoading:()=>n.useLoading});o(9056);var n=o(49461)}}]);
|
|
2
|
-
//# sourceMappingURL=7857.bf4de75d.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[833,2307,2908],{3874(e,t,n){"use strict";n.r(t),n.d(t,{StateTagEnum:()=>f,default:()=>p});var r=n(89379),s=n(53986),i=n(73884),o=n(83136),l=n.n(o);const a={"state-tag":"style_state-tag__Kx27z__RCjzi","state-result-tag":"style_state-result-tag__CssDz__RCjzi","state-skill-tag":"style_state-skill-tag__k0bQE__RCjzi","event-tag":"style_event-tag__cg6SE__RCjzi","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__RCjzi","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__RCjzi","state-tag-filterResult":"style_state-tag-filterResult__KTkot__RCjzi","show-bg":"style_show-bg__OcL+R__RCjzi","tag-text":"style_tag-text__JHCt+__RCjzi","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__RCjzi"};var c=n(55199),m=n(70579);const u=["showBorder","text","type","showBackground","className","filterName"],d={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},p=e=>{let{showBorder:t=!1,text:n="",type:o="default",showBackground:p=!0,className:h,filterName:y}=e,f=(0,s.A)(e,u);const g=(0,i.useMemo)(()=>{var e,t;return{color:(null===d||void 0===d||null===(e=d[o])||void 0===e?void 0:e.color)||d[o],borderColor:(null===d||void 0===d||null===(t=d[o])||void 0===t?void 0:t.borderColor)||d[o]}},[o]);return(0,m.jsxs)(c.Space,{"data-testid":"components-core-state-tag",className:l()(a["state-tag-wrapper"],"filterResult"===o?a["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[y?(0,m.jsxs)("span",{className:a["state-tag-filter-name"],children:[y,":"]}):null,(0,m.jsx)(c.Tag,(0,r.A)((0,r.A)({color:g.color},f),{},{style:{background:p?g.color+"0F":"none",color:g.color,border:t?"1px solid ".concat(g.borderColor):"none"},className:l()(a["state-tag"],h,"result"===o?a["state-result-tag"]:"","skill"===o?a["state-skill-tag"]:"",a["state-tag-".concat(o)],p?a["show-bg"]:"",t?a["show-border"]:"",null!==f&&void 0!==f&&f.onClick?a["event-tag"]:""),children:(0,m.jsx)("span",{className:a["tag-text"],children:n})}))]})};var h=n(48731);const y=["moduleName","name"],f=e=>{let{moduleName:t,name:n}=e,i=(0,s.A)(e,y);return(0,m.jsx)(h.default,{moduleName:t,name:n,children:e=>(0,m.jsx)(p,(0,r.A)((0,r.A)({},i),{},{text:e.description},e))})}},6617(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s.a});n(9056);var r=n(49461),s=n.n(r),i={};for(const o in r)"default"!==o&&(i[o]=()=>r[o]);n.d(t,i)},9376(e,t,n){var r=n(64416);e.exports=function(e){return e&&e.length?r(e):[]}},10935(e,t,n){"use strict";n.r(t),n.d(t,{TablePage:()=>rt,default:()=>ot});var r=n(89379),s=n(53986);const i={table:"style_table__z7kfz__RCjzi","is-resize":"style_is-resize__ut6RW__RCjzi","is-moving":"style_is-moving__BJ9wR__RCjzi","cell-resize-bar":"style_cell-resize-bar__-mlUF__RCjzi","is-computed":"style_is-computed__B9rIF__RCjzi","options-column":"style_options-column__vsPTr__RCjzi","options-btn":"style_options-btn__U3uoy__RCjzi",tooltip:"style_tooltip__vJlkv__RCjzi","table-changer-setting":"style_table-changer-setting__HcrwR__RCjzi","width-changer-sign":"style_width-changer-sign__Aflyl__RCjzi","columns-control":"style_columns-control__5-5ZF__RCjzi","columns-control-content":"style_columns-control-content__MoeUI__RCjzi","columns-control-content-title":"style_columns-control-content-title__P5sXV__RCjzi","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__RCjzi","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__RCjzi","columns-control-content-input":"style_columns-control-content-input__G6yKq__RCjzi","columns-control-content-list":"style_columns-control-content-list__aXvTs__RCjzi","columns-control-content-item":"style_columns-control-content-item__jbyyE__RCjzi","is-drag":"style_is-drag__U68aw__RCjzi","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__RCjzi","sortable-drag":"style_sortable-drag__K5hWd__RCjzi","sortable-ghost":"style_sortable-ghost__lKTd2__RCjzi","columns-control-overlay":"style_columns-control-overlay__OxCIz__RCjzi","sort-btn":"style_sort-btn__KvNLr__RCjzi","sort-active-desc":"style_sort-active-desc__TIhMC__RCjzi","sort-icon":"style_sort-icon__dB85I__RCjzi","sort-active-asc":"style_sort-active-asc__RUBup__RCjzi"};var o=n(55199),l=n(73884),a=n(83136),c=n.n(a),m=n(10486),u=n(96418),d=n.n(u),p=n(76801);const h={scroller:"style_scroller__EfuqR__RCjzi","scroller-inner":"style_scroller-inner__NJSE0__RCjzi","is-moving":"style_is-moving__jGuy0__RCjzi"};var y=n(70579);const f=["onScroll","getContainer"],g=e=>{let{onScroll:t,getContainer:n}=e,r=(0,s.A)(e,f);const i=(0,l.useRef)(0),[o,a]=(0,l.useState)(!1),u=(0,l.useRef)(o);u.current=o;const d=(0,l.useRef)(t);d.current=t;const p=(0,l.useRef)(1);return p.current=r.width/r.innerWidth,(0,l.useEffect)(()=>{const e=e=>{u.current&&d.current(p.current*(e.clientX-i.current)),i.current=e.clientX},t=()=>{a(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}},[]),(0,m.createPortal)(r.hasScroller?(0,y.jsx)("div",{className:c()(h.scroller,"scroller-bar"),style:{left:r.left,width:r.width,height:15},children:(0,y.jsx)("div",{className:c()(h["scroller-inner"],"scroller-bar-inner",{[h["is-moving"]]:o}),style:{width:r.innerWidth,left:r.innerLeft},onMouseDown:e=>{e.preventDefault(),i.current=e.clientX,a(!0)}})}):null,n()||document.body)},v=e=>{let{className:t,scroller:n=!0,getScrollTarget:s=p.h,children:i}=e;return function(){const[e,o]=(0,l.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),a=(0,l.useRef)(null),m=d()(()=>a.current&&s(a.current)),u=(0,l.useRef)();return u.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,l.useEffect)(()=>{const e=u.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:r,top:s,height:i}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,a=r*t.clientWidth/t.scrollWidth-6,c=t.scrollLeft*t.clientWidth/t.scrollWidth+2,m=e.getBoundingClientRect();o(o=>Object.assign({},o,{left:n,width:r,innerLeft:c,innerWidth:a,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+i-e.offsetHeight>0&&s<e.offsetHeight:s<m.top+m.height&&s+i>m.top+m.height)}))},r=new ResizeObserver(n),s=new ResizeObserver(()=>{t=m(),t&&(r.disconnect(),n(),Array.from(t.children).forEach(e=>{r.observe(e)}),t.addEventListener("scroll",n))});return a.current&&s.observe(a.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}},[m]),n?(0,y.jsxs)("div",{className:c()(h["scroller-outer"],t),ref:a,style:{"--scroller-bar-height":null!==e&&void 0!==e&&e.hasScroller?"15px":"0px"},children:[i,(0,y.jsx)(g,(0,r.A)((0,r.A)({},e),{},{getContainer:u.current,onScroll:e=>{m().scrollLeft+=e}}))]}):i}()};var _=n(77964);const x={"col-item":"columns_col-item__Ym1Ec__RCjzi",tag:"columns_tag__bQZLG__RCjzi",avatar:"columns_avatar__SLPI+__RCjzi",hover:"columns_hover__oAwHg__RCjzi",primary:"columns_primary__6KtaA__RCjzi",loading:"columns_loading__gtBay__RCjzi",options:"columns_options__WvDZD__RCjzi"};var j=n(57469),C=n.n(j),b=n(87558),R=n.n(b),A=n(6617);const w=["className"],E=["list"],S=e=>{let{className:t,list:n=[],children:o,width:a}=e;const m={className:c()(t,i["options-btn"]),type:"link"},u=n.filter(e=>!(null!==e&&void 0!==e&&e.hidden)).map(e=>{let{className:t}=e,n=(0,s.A)(e,w);return Object.assign({},n,m)});return(0,y.jsxs)("div",{className:c()(t,i["options-column"]),style:{"--max-width":a+"px"},children:["function"===typeof o?o({list:u,itemClassName:"btn-no-padding",moreType:"link",buttonProps:m}):(0,l.isValidElement)(o)?(0,l.cloneElement)(o,(0,r.A)((0,r.A)({},m),{},{itemClassName:"btn-no-padding",moreType:"link"})):o,n&&n.length>0&&(0,y.jsx)(A.default,{itemClassName:"btn-no-padding",moreType:"link",list:u})]})},z=e=>{let{list:t}=e,n=(0,s.A)(e,E);return"function"===typeof t?(0,y.jsx)(R(),{loader:t,render:e=>{let{data:t}=e;return(0,y.jsx)(S,(0,r.A)((0,r.A)({},n),{},{list:t}))}}):Array.isArray(t)?(0,y.jsx)(S,(0,r.A)((0,r.A)({},n),{},{list:t})):(0,y.jsx)(S,(0,r.A)({},Object.assign({},n,t)))};var N=n(3874),O=n(40438),k=n(48731);const M=e=>{let{children:t,ellipsis:n}=e;return(0,y.jsx)(o.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{rootClassName:i.tooltip,children:t}},"object"===typeof n?n:{}),children:t})},P=e=>{let{type:t,item:n,isEmpty:r,emptyRender:s=()=>"-",hover:i,primary:o,children:a,width:m,style:u,onClick:d,colValue:p}=e;const[h,f]=(0,l.useState)(!1);return(0,y.jsx)("div",{style:Object.assign({},u,{"--max-width":m+"px"}),className:c()(x["col-item"],x[t],r?null:{[x.hover]:i,[x.primary]:o,[x.loading]:h}),onClick:e=>{"function"!==typeof d||r||h||(f(!0),Promise.resolve(d({item:n,colItem:p,event:e})).finally(()=>{f(!1)}))},children:r?s({type:t,item:n,hover:i,primary:o,children:a}):a})},T=(e,t)=>"function"===typeof t?t(e):Array.isArray(e)&&0===e.length||e&&"object"===typeof e&&0===Object.values(e).length||""===e||void 0===e||null===e,I=(0,b.createWithFetch)({loading:null})(e=>{let{data:t,children:n}=e;return n(t)}),F=e=>{let{api:t,expand:n,onExpand:s,ellipsis:i,hover:l,primary:a,emptyRender:c,isEmpty:m}=e;const u=Object.assign({},t);return n?(0,y.jsx)(I,(0,r.A)((0,r.A)({},u),{},{children:e=>(0,y.jsx)(P,{type:"hide-info-expand",item:e,hover:l,primary:a,emptyRender:c,isEmpty:T(e),children:(0,y.jsx)(M,{ellipsis:i,children:"function"===typeof u.children?u.children(e):e})})})):(0,y.jsx)(P,{type:"hide-info",primary:!0,emptyRender:c,children:(0,y.jsx)(o.Button,{className:"btn-no-padding",type:"link",onClick:s,children:"\u67e5\u770b"})})};var L=n(1488),D=n.n(L);const Y=["hover","primary","isEmpty","emptyRender"],H=["hover","primary","isEmpty","emptyRender"],W=["hover","primary","isEmpty","emptyRender"],B=["hover","primary","emptyRender","isEmpty","hideSecond"],K=["hover","primary","emptyRender","isEmpty"],q=["hover","primary","emptyRender","isEmpty"],J=["hover","primary","ellipsis","emptyRender","isEmpty"],G=["hover","primary","ellipsis","emptyRender","isEmpty"],V=["hover","primary","ellipsis","emptyRender","isEmpty"],U=["emptyRender","isEmpty"],X=["emptyRender","isEmpty"],Q=["hover","primary","ellipsis","emptyRender","isEmpty"],Z=["ellipsis","hover","primary","emptyRender","isEmpty"],$=["hover","primary","ellipsis","emptyRender","isEmpty"],ee=["hover","primary","ellipsis","emptyRender","isEmpty"],te=["hover","primary","ellipsis","emptyRender","isEmpty"],ne=(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,ee);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},c),{},{type:"other",item:e,hover:n,primary:i,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},re={date:{render:(e,t)=>{let{hover:n,primary:i,isEmpty:o,emptyRender:l}=t,a=(0,s.A)(t,Y);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},a),{},{type:"date",item:e,primary:i,hover:n,emptyRender:l,isEmpty:o||!C()(e).isValid(),children:C()(e).format("YYYY-MM-DD")}))},width:160,min:120,max:400},dateShort:{render:(e,t)=>{let{hover:n,primary:i,isEmpty:o,emptyRender:l}=t,a=(0,s.A)(t,H);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},a),{},{type:"date-short",item:e,primary:i,hover:n,emptyRender:l,isEmpty:o||!C()(e).isValid(),children:C()(e).format("YYYY-MM")}))},width:120,min:100,max:400},dateRange:{render:(e,t)=>{let{hover:n,primary:i,isEmpty:o,emptyRender:l}=t,a=(0,s.A)(t,W);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},a),{},{type:"date-range",item:e,primary:i,hover:n,emptyRender:l,isEmpty:o,children:C()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD")+"~"+C()(null===e||void 0===e?void 0:e[1]).format("YYYY-MM-DD")}))},width:240,min:120,max:400},datetime:{render:(e,t)=>{let{hover:n,primary:i,emptyRender:o,isEmpty:l,hideSecond:a}=t,c=(0,s.A)(t,B);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},c),{},{item:e,primary:i,hover:n,emptyRender:o,isEmpty:l||!C()(e).isValid(),children:C()(e).format(a?"YYYY-MM-DD HH:mm":"YYYY-MM-DD HH:mm:ss")}))},width:190,min:190,max:400},serialNumber:{render:(e,t)=>{let{hover:n,primary:i,emptyRender:o,isEmpty:l}=t,a=(0,s.A)(t,K);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},a),{},{type:"serial-number",item:e,primary:i,hover:n,emptyRender:o,isEmpty:l,children:e}))},width:190,min:100,max:400},serialNumberShort:{render:(e,t)=>{let{hover:n,primary:i,emptyRender:o,isEmpty:l}=t,a=(0,s.A)(t,q);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},a),{},{type:"serial-number-short",item:e,primary:i,hover:n,emptyRender:o,isEmpty:l,children:e}))},width:120,min:100,max:400},user:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,J);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},c),{},{type:"user",item:e,primary:i,hover:n,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:200,min:120,max:400},userName:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,G);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},c),{},{type:"user-name",item:e,primary:i,hover:n,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:100,min:100,max:400},contacts:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,V);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},c),{},{type:"contacts",item:e,primary:i,hover:n,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:240,min:160,max:400},tag:{render:(e,t)=>{let{emptyRender:n,isEmpty:i}=t,o=(0,s.A)(t,U);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},o),{},{type:"tag",item:e,emptyRender:n,isEmpty:i,children:e&&(e.isEnum?(0,y.jsx)(k.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:s}=t;return(0,y.jsx)(N.default,(0,r.A)((0,r.A)({type:n},Object.assign({},D()(e,["name","isEnum","moduleName","force"]))),{},{text:s}))}}):(0,y.jsx)(N.default,(0,r.A)({},Object.assign({},e))))}))},width:140,min:100,max:400},avatar:{render:(e,t)=>{let{emptyRender:n,isEmpty:i}=t,o=(0,s.A)(t,X);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},o),{},{type:"avatar",item:e,emptyRender:n,isEmpty:i,children:(0,y.jsx)(O.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e)),{},{size:32}))}))},width:80,min:64,max:200},singleRow:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,Q);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},c),{},{type:"single-row",item:e,hover:n,primary:i,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,y.jsx)(F,(0,r.A)({api:e},t)),width:120,min:80,max:400},mainInfo:{render:(e,t)=>{let{ellipsis:n,hover:i=!0,primary:o=!0,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,Z);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},c),{},{type:"main-info",item:e,hover:i,primary:o,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:n,children:e})}))},width:300,min:160,max:500},description:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,$);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},c),{},{type:"description",item:e,hover:n,primary:i,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,y.jsx)(z,{className:c()(x["col-item"],x.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:i,ellipsis:o,emptyRender:l,isEmpty:a}=t,c=(0,s.A)(t,te);return(0,y.jsx)(P,(0,r.A)((0,r.A)({},c),{},{type:"sensitiveInfo",item:e,hover:n,primary:i,emptyRender:l,isEmpty:a,children:(0,y.jsx)(M,{ellipsis:o,children:e})}))},width:200,min:100,max:400},other:{render:ne,width:200,min:120,max:400},otherSmall:{render:ne,width:100,min:70,max:400},otherLarge:{render:ne,width:300,min:120,max:500}},se=re;var ie=n(33097),oe=n.n(ie),le=n(42907),ae=n.n(le),ce=n(22717),me=n.n(ce),ue=n(22616),de=n.n(ue),pe=n(64671),he=n(72752),ye=n(39835),fe=n.n(ye),ge=n(81014),ve=n(43856),_e=n(76441),xe=n(69613),je=n.n(xe),Ce=n(56434),be=n.n(Ce);const{Panel:Re}=o.Collapse,Ae=e=>{let{close:t,onConfirm:n,columns:r,config:s}=e;const[a,m]=(0,l.useState)(s||{}),[u,d]=(0,l.useState)(""),{leftFixedColumns:p,rightFixedColumns:h,visibleColumns:f,hiddenColumns:g}=(0,l.useMemo)(()=>me()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},fe()(r,e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==oe()(a,"".concat(e.name,".visible"))&&e.hidden||!1===oe()(a,"".concat(e.name,".visible"))?"hiddenColumns":"visibleColumns")),(e,t,n)=>{e[n]=t.sort((e,t)=>oe()(a,"".concat(e.name,".rank"),0)-oe()(a,"".concat(t.name,".rank"),0))},{}),[r,a]),v=e=>(0,y.jsxs)(y.Fragment,{children:[e.titleText||e.title||"\u672a\u547d\u540d\u5217",e.groupHeader&&e.groupHeader.length>0?"(".concat(e.groupHeader.map(e=>{let{title:t}=e;return t}).join("-"),")"):""]});return(0,y.jsxs)("div",{className:i["columns-control-content"],children:[(0,y.jsx)("div",{className:i["columns-control-content-title"],children:(0,y.jsxs)(o.Row,{align:"middle",justify:"space-between",children:[(0,y.jsx)(o.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,y.jsx)(o.Col,{children:(0,y.jsx)(o.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,y.jsx)(ge.default,{type:"text",icon:(0,y.jsx)(pe.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,y.jsx)("div",{className:i["columns-control-content-scroller"],children:(0,y.jsxs)(o.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,y.jsx)(Re,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,y.jsxs)(o.List,{className:i["columns-control-content-list"],children:[p.map((e,t)=>(0,y.jsx)(o.List.Item,{className:i["columns-control-content-item"],children:(0,y.jsx)(o.Checkbox,{checked:!0,disabled:!0,children:v(e)})},e.name||"left-".concat(t))),(0,y.jsx)(_e.ReactSortable,{list:f,filter:".ignore-elements",dragClass:i["sortable-drag"],ghostClass:i["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=be()(a),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach(e=>{je()(t,"".concat(e.name,".visible"),!1)}),n.forEach((e,n)=>{je()(t,"".concat(e.name,".rank"),n+1)}),m(t)})({leftFixedColumns:p,visibleColumns:e,hiddenColumns:g,rightFixedColumns:h})},animation:300,delayOnTouchStart:!0,delay:2,children:f.map((e,t)=>(0,y.jsxs)(o.List.Item,{className:c()(i["columns-control-content-item"],i["is-drag"]),children:[(0,y.jsx)(pe.default,{type:"icon-paixu",className:i["columns-control-content-item-icon"]}),(0,y.jsx)(o.Checkbox,{checked:!0,disabled:e.fixed||p.length+f.length+h.length<=1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},a);n[e.name]=Object.assign({},n[e.name],{visible:!1}),m(n)},children:v(e)})]},e.name||"visible-".concat(t)))}),h.map((e,t)=>(0,y.jsx)(o.List.Item,{className:i["columns-control-content-item"],children:(0,y.jsx)(o.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.name||"right-".concat(t)))]})},"active"),(0,y.jsx)(Re,{header:(0,y.jsxs)(o.Row,{wrap:!1,justify:"space-between",children:[(0,y.jsx)(o.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,y.jsx)(o.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,y.jsx)(ve.SearchInput,{prefix:(0,y.jsx)(pe.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{d(e)},className:i["columns-control-content-input"],size:"small"})})]}),children:(0,y.jsx)(o.List,{dataSource:g.filter(e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(u)>-1),renderItem:e=>(0,y.jsx)(o.List.Item,{className:i["columns-control-content-item"],children:(0,y.jsx)(o.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},a);n[e.name]=Object.assign({},n[e.name],{visible:!0}),m(n)},children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.key)})},"un-active")]})}),(0,y.jsxs)(o.Row,{className:i["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,y.jsx)(o.Col,{children:(0,y.jsx)(o.Button,{size:"small",onClick:()=>{m(s||{}),t()},children:"\u53d6\u6d88"})}),(0,y.jsx)(o.Col,{children:(0,y.jsx)(ge.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(a),t()},children:"\u786e\u5b9a"})})]})]})};var we=n(51941),Ee=n(19853),Se=n.n(Ee),ze=n(21844),Ne=n.n(ze),Oe=n(25644);const ke="COMPONENTS_CORE_TABLE_CONFIG",Me={getDataApi:e=>e?{loader:()=>oe()(Oe.A.getItem(ke),e,{})}:{},setDataFunc:(e,t)=>{if(e)return Oe.A.setItem(ke,Object.assign({},Oe.A.getItem(ke),{[e]:t}))}},Pe=e=>{let{title:t,columns:n,config:r,setConfig:s}=e;const[a,c]=(0,l.useState)(!1);return(0,y.jsxs)(o.Row,{wrap:!1,children:[(0,y.jsx)(o.Col,{flex:1,children:t}),(0,y.jsx)(o.Col,{children:(0,y.jsx)(o.Popover,{open:a,onOpenChange:c,trigger:"click",placement:"bottomLeft",rootClassName:i["columns-control-overlay"],content:(0,y.jsx)(Ae,{columns:n,config:r,close:()=>{c(!1)},onConfirm:e=>{s(t=>me()(e,(e,n,r)=>{e[r]=Object.assign({},t[r],de()(n,["visible","rank"]))},{}))}}),children:(0,y.jsx)("span",{className:i["table-changer-setting"],children:(0,y.jsx)(pe.default,{type:"icon-shezhi"})})})})]})},Te=e=>{let{columns:t,name:n,controllerOpen:s,tableWidth:o,rowKey:a}=e;const[m,u]=(0,l.useState)(null),p=(0,l.useRef)(m);p.current=m;const h=(0,l.useRef)(null),f=(0,l.useRef)(null),[g,v]=(0,l.useState)({}),{tableServerApis:_}=(0,he.usePreset)(),x=_||Me,j=null===x||void 0===x?void 0:x.getDataApi(n),C=(0,we.useDebouncedCallback)((e,t)=>{null===x||void 0===x||x.setDataFunc(e,t)},500),R=d()(e=>{(0,l.startTransition)(()=>{v(t=>{const r="function"===typeof e?e(t):e;return n&&s&&C(n,r),r})})}),{send:A}=(0,b.useFetch)(Object.assign((0,r.A)((0,r.A)({},Object.assign({},j)),{},{auto:!1,cache:"TABLE_CONFIG_".concat(n),isLocal:!0,onRequestSuccess:e=>{v(Object.assign({},e))}}))),w=d()(()=>{n&&s&&j&&A({force:!1})});(0,l.useEffect)(()=>{w()},[w]);const E=(0,l.useMemo)(()=>t.filter(e=>!(!1===oe()(g,"".concat(e.name,".visible"))||!0!==oe()(g,"".concat(e.name,".visible"))&&!0===e.hidden)).sort((e,t)=>{const n=e=>oe()(g,"".concat(e.name,".rank"),0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}),[t,g]),S=(0,l.useMemo)(()=>Ne()(E,e=>{let{type:t}=e;return"options"!==t}),[E]),z=(0,l.useMemo)(()=>ae()(E,e=>{let{type:t,name:n}=e;return oe()(g,"".concat(n,".width"))||(se[t]||se.other).width}),[E,g]),N=e=>{let{width:t,index:n}=e;return S===n?t+Math.max(o-z-2,0):t},O=d()((e,t)=>(0,y.jsx)("span",{className:c()(i["cell-resize-bar"]),onMouseDown:n=>{h.current=Object.assign({},e,{index:t}),f.current=n.clientX,u(t)},children:(0,y.jsx)(pe.default,{type:"icon-paixu"})})),k=d()(e=>{if(null===m)return;if(!h.current)return;const{name:t,width:n,min:r,max:s,index:i}=h.current,o=Math.min(Math.max(n+e,r),s);o<N({width:r,index:i})||R(e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:o})}))}),M=d()((e,n)=>{const{name:r,width:s,min:o,max:l}=e;let m=e;n===E.length-1&&(m=Object.assign({},e,{className:"has-config-btn",title:(0,y.jsx)(Pe,{title:null===e||void 0===e?void 0:e.title,columns:t,config:g,setConfig:R})}));const u=()=>({className:c()({[i["is-moving"]]:p.current===n})}),d=Math.min(Math.max(oe()(g,"".concat(r,".width"))||s,o),l),h=N({width:d,index:n});return Object.assign({},m,{onHeaderCell:u,onCell:u,width:h,shouldCellUpdate:(t,r)=>{const s="function"===typeof a?a(t):t[a],i="function"===typeof a?a(r):r[a];return null===p.current||p.current===n||"hideInfo"===e.type||!(s===i&&Se()(t[e.name],r[e.name]))},title:(0,y.jsxs)(y.Fragment,{children:[m.title,!(h>d&&h>l)&&O(Object.assign({},m,{width:h}),n)]})})});return(0,l.useEffect)(()=>{const e=()=>{u(null),f.current=null,h.current=null},t=e=>{null!==p.current&&null!==h.current&&(null!==f.current?k(e.clientX-f.current):f.current=e.clientX)};return document.documentElement.addEventListener("mouseup",e,!0),document.documentElement.addEventListener("mousemove",t,!0),()=>{document.documentElement.removeEventListener("mouseup",e,!0),document.documentElement.removeEventListener("mousemove",t,!0)}},[k]),{visibleColumns:E,currentMoveColumnIndex:m,resizeBarRender:O,columnsConfig:g,totalWidth:z,computedColumnProps:M}};var Ie=n(79686),Fe=n.n(Ie);const Le=["name","type","expandType","title","titleRender","fixed","emptyOf","emptyRender","groupHeader","sort","disableColItem"],De=e=>{let{rowKey:t,renderProps:n}=e;const[i,o]=(0,l.useState)(null),a=(0,l.useRef)(n);a.current=n;const c=d()((e,n,l)=>{let{columnsConfig:c}=l;const{name:m,type:u,expandType:d,title:p,titleRender:h,fixed:y,emptyOf:f,emptyRender:g,groupHeader:v,sort:_,disableColItem:x}=e,j=(0,s.A)(e,Le),{render:C,width:b,min:R,max:A}=Object.assign({},se[u]||se.other,"hideInfo"===u&&!Fe()(i)&&de()(se[d]||se.other,["width","min","max"])),w=C;return{name:m,title:"function"===typeof h?h(p):p,min:R,max:A,width:b,fixed:y,groupHeader:v,sort:_,type:u,render:n=>{const s="function"===typeof t?t(n):n[t],l=Object.assign({},e,"function"===typeof e.render?e.render((0,r.A)((0,r.A)({},a.current),{},{name:m,target:n})):{}),u=e=>{const t=T(e,f);return w(e,(0,r.A)((0,r.A)({},j),{},{name:m,width:oe()(c,"".concat(m,".width"))||b,min:R,max:A,isEmpty:t,emptyRender:g,hover:l.hover,colValue:Object.assign({},n),renderProps:a.current,primary:l.primary,ellipsis:l.ellipsis,expand:i===s,onExpand:()=>o(s)}))},d=l.hasOwnProperty("valueOf")&&"function"===typeof l.valueOf?l.valueOf(n,Object.assign({},a.current,{name:m},x?{targetRender:u}:{})):oe()(n,m);return x?d:u(d)}}});return{expandInfo:i,computedColumnProps:c}},Ye=e=>(0,l.useMemo)(()=>{const t=e.filter(e=>e.groupHeader&&e.groupHeader.length>0);if(t.length>0){const n=e.slice(0),r=[],s=e=>{const{groupHeader:t}=e;if(!(t&&t.length>0))return;const s=n.indexOf(e),i=(t,n)=>{const[r,...o]=t;let l=n.find(e=>e.name===r.name);l||(l=Object.assign({startIndex:s},r,{children:[]}),n.push(l)),o.length>0?i(o,l.children):l.children.push(e)};i(t,r),n.splice(s,1)};return t.forEach(s),r.forEach((e,t)=>{n.splice(e.startIndex+t,0,e)}),{columns:n,hasGroupHeader:!0}}return{columns:e,hasGroupHeader:!1}},[e]);var He=n(10986),We=n.n(He),Be=n(41740),Ke=n.n(Be);const qe=e=>new Map((e||[]).map(e=>{let{name:t,sort:n}=e;return[t,n]})),Je=e=>{const[t,n]=We()(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),r=(0,l.useMemo)(()=>qe(t),[t]),s=(0,l.useCallback)(e=>n(t=>{const n=e(qe(t));return Array.from(n).map(e=>{let[t,n]=e;return{name:t,sort:n}})}),[n]);return(0,l.useCallback)(e=>{let{single:t,name:n}=e;return(0,y.jsxs)("div",{className:c()(i["sort-btn"],{[i["sort-active-desc"]]:"DESC"===r.get(n),[i["sort-active-asc"]]:"ASC"===r.get(n)}),onClick:()=>{s(e=>{const r=e.get(n),s="DESC"===r?"ASC":"ASC"===r?null:"DESC";if(t)return new Map(s?[[n,s]]:[]);const i=Ke()(e);return s?i.set(n,s):i.delete(n),i})},children:[(0,y.jsx)(pe.default,{type:"icon-triangle-up",className:i["sort-icon"]}),(0,y.jsx)(pe.default,{type:"icon-triangle-down",className:i["sort-icon"]})]})},[r,s])};var Ge=n(9376),Ve=n.n(Ge);const Ue=e=>{const{rowKey:t}=Object.assign({},{rowKey:"id"},e),[n,r]=(0,l.useState)([]),s=e=>"function"===typeof t?t(e):e[t];return{type:"checkbox",selectedRowKeys:n,onSelectAll:(e,t,n)=>{const i=n.map(s);r(e?e=>Ve()([...e,...i]):e=>e.filter(e=>-1===i.indexOf(e)))},onSelect:(e,t)=>{r(t?t=>{const n=t.slice(0);return n.push(s(e)),n}:t=>{const n=t.slice(0);return n.splice(n.indexOf(s(e)),1),n})},setSelectedRowKeys:r}};var Xe=n(63361);const Qe=e=>({"en-US":()=>n.e(399).then(n.bind(n,80399)),"zh-CN":()=>n.e(9809).then(n.bind(n,59809))}[e]());var Ze=n(47458);const $e=["data","refresh","reload","requestParams","fetchProps","isComplete","setData","loadMore","send","dataFormat","className","featureId","columns","getColumns","pagination","columnRenderProps","summary","sticky"],et=["pagination"],tt=e=>{let{id:t,columns:n,children:r}=e;return t?(0,y.jsx)(Xe.default,{id:t,children:e=>{let{options:t}=e;return r({columns:n.filter(e=>!e.name||(!Array.isArray(oe()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name)))})}}):r({columns:n})},nt=(0,b.withFetch)(e=>{let{data:t,refresh:n,reload:o,requestParams:a,fetchProps:m,isComplete:u,setData:h,loadMore:f,send:g,dataFormat:v=e=>({list:e.pageData,total:e.totalCount}),className:_,featureId:x,columns:j,getColumns:C,pagination:b={},columnRenderProps:R={},summary:A,sticky:w=!0}=e,E=(0,s.A)(e,$e);const S=d()(v),z=(0,l.useMemo)(()=>S(t),[t,S]),N={dataSource:z.list,pagination:!!b.open&&{total:z.total,showTotal:e=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Ze.FormattedMessage,{id:"Page_Total",moduleName:"Table",defaultMessage:"\u5171"}),(0,y.jsx)("span",{className:i.total_text,children:e}),(0,y.jsx)(Ze.FormattedMessage,{id:"Page_TotalCount",moduleName:"Table",defaultMessage:"\u6761"})]}),current:oe()(a,[b.paramsType,b.currentName],1),pageSize:oe()(a,[b.paramsType,b.pageSizeName],20),onChange:(e,t)=>{"function"!==typeof b.onChange?e!==oe()(a,[b.paramsType,b.currentName],1)?("refresh"===b.requestType?n:o)({[b.paramsType]:{[b.currentName]:e,[b.pageSizeName]:t}}):b.onShowSizeChange&&b.onShowSizeChange(e,t):b.onChange(e,t),(0,p.h)().scrollTop=0},size:b.size,hideOnSinglePage:b.hideOnSinglePage,showSizeChanger:b.showSizeChanger,showQuickJumper:b.showQuickJumper,pageSizeOptions:b.pageSizeOptions}};return(0,y.jsx)(Ze.IntlProvider,{importMessages:Qe,moduleName:"Table",children:(0,y.jsx)(tt,{id:x,columns:"function"===typeof j?j(t):j,children:e=>{let{columns:s}=e;return(0,y.jsx)(ot,(0,r.A)((0,r.A)({},Object.assign({},E,N)),{},{sticky:w,className:c()(_,"loading-container",{"is-loading":!u}),columns:s,columnRenderProps:(0,r.A)((0,r.A)({},R),{},{requestParams:a,fetchProps:m,data:t}),summary:"function"===typeof A?function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return A(Object.assign({},{data:t,fetchProps:m,requestParams:a,refresh:n,reload:o,loadMore:f,send:g,dataFormat:v,pagination:b},...r))}:null}))}})})}),rt=(0,l.forwardRef)((e,t)=>{let{pagination:n}=e,i=(0,s.A)(e,et);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!1,open:!0,paramsType:"data",requestType:"reload",currentName:"currentPage",pageSizeName:"perPage"},n);const o="".concat((i.name||"common").toUpperCase(),"_TABLE_PAGE_SIZE"),[a,c]=(0,l.useState)(Oe.A.getItem(o)||n.pageSize),m=i[n.paramsType],u=(0,l.useMemo)(()=>({[n.paramsType]:Object.assign({},m,{[n.pageSizeName]:a})}),[m,n.pageSizeName,n.paramsType,a]);return(0,y.jsx)(nt,(0,r.A)((0,r.A)((0,r.A)({},i),u),{},{pagination:Object.assign({},n,{pageSize:a,onShowSizeChange:(e,t)=>{Oe.A.setItem(o,t),c(t)}}),ref:t}))}),st=["columns","className","getScrollEl","sticky","stickyOffset","pagination","columnRenderProps","rowKey","dataSource","controllerOpen","name","summary","scroll","scroller","onTablePropsReady"],it=e=>{let{columns:t,className:n,getScrollEl:a=p.h,sticky:m=!1,stickyOffset:u="var(--nav-height)",pagination:h=!1,columnRenderProps:f={},rowKey:g="id",dataSource:x,controllerOpen:j=!0,name:C,summary:b,scroll:R,scroller:A,onTablePropsReady:w}=e,E=(0,s.A)(e,st);const[S,z]=(0,l.useState)(0),[N,O]=(0,l.useState)(!0);(0,l.useEffect)(()=>{S&&setTimeout(()=>{O(!1)},0)},[S]);(0,l.useRef)(f).current=f;const k=(0,_.A)(e=>{z(e.clientWidth)},{isDebounce:!0}),{expandInfo:M,computedColumnProps:P}=De({rowKey:g,renderProps:f}),{columnsConfig:T,visibleColumns:I,computedColumnProps:F,currentMoveColumnIndex:L,totalWidth:D}=Te({columns:t,controllerOpen:j,name:C,computedColumnProps:P,tableWidth:S,rowKey:g}),Y=Je(E),H=(0,l.useMemo)(()=>I.map((e,t)=>{let n=P(e,t,{rowKey:g,expandInfo:M,columnsConfig:T});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,y.jsxs)(y.Fragment,{children:[n.title,Y({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),j&&(n=F(n,t,{tableWidth:S,columnsConfig:T})),n}),[I,S,T,M,g,j,P,F,Y]),{columns:W,hasGroupHeader:B}=Ye(H),K=d()(w);return(0,l.useEffect)(()=>{K&&K({columns:t,groupColumns:W,dataSource:x,visibleColumns:I})},[K,W,x,t,I]),(0,y.jsx)("div",{className:c()(n,i.table,{[i["is-resize"]]:null!==L,[i["is-computed"]]:N,[i["has-group-header"]]:B}),ref:k,style:{"--sticky-offset":u},children:!N&&(0,y.jsx)(v,{className:"table-page-scroller",scroller:void 0!==A?A:{getContainer:a},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,y.jsx)(o.Table,(0,r.A)((0,r.A)({},E),{},{sticky:!!m&&{getContainer:a},dataSource:x,rowKey:g,columns:W,scroll:Object.assign({},{x:Math.max(S,D)},R),pagination:h,summary:"function"===typeof b?function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(Object.assign({},{pageData:e},{columns:W}),...n)}:null}))})})};it.useSelectedRow=Ue,it.TablePage=rt;const ot=it},19449(e,t,n){var r=n(94710),s=n(32952),i=n(9096),o=n(54052);e.exports=function(e,t){return function(n,l){var a=o(n)?r:s,c=t?t():{};return a(n,e,i(l,2),c)}}},21844(e,t,n){var r=n(75816),s=n(9096),i=n(99140),o=Math.max,l=Math.min;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var c=a-1;return void 0!==n&&(c=i(n),c=n<0?o(a+c,0):l(c,a-1)),r(e,s(t,3),c,!0)}},25644(e,t,n){"use strict";n.d(t,{A:()=>r});const r={getItem:e=>{const t=window.localStorage.getItem(e);try{const{dataType:e,value:n}=JSON.parse(t);if("object"===e&&"null"===n)return null;if("undefined"===e)return;return"number"===e?Number(n):"boolean"===e?Boolean(n):n}catch(n){return null}},setItem:(e,t)=>{const n=typeof t;window.localStorage.setItem(e,JSON.stringify({dataType:n,value:t}))}}},32952(e,t,n){var r=n(45652);e.exports=function(e,t,n,s){return r(e,function(e,r,i){t(s,e,n(e),i)}),s}},39835(e,t,n){var r=n(71775),s=n(19449),i=Object.prototype.hasOwnProperty,o=s(function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=o},40644(e){e.exports=function(e){return e!==e}},41558(e){e.exports=function(e,t,n){for(var r=-1,s=null==e?0:e.length;++r<s;)if(n(t,e[r]))return!0;return!1}},42907(e,t,n){var r=n(9096),s=n(99910);e.exports=function(e,t){return e&&e.length?s(e,r(t,2)):0}},45652(e,t,n){var r=n(94664),s=n(76516)(r);e.exports=s},48731(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s.a});var r=n(98919),s=n.n(r),i=n(22717),o=n.n(i);(0,r.preset)({base:o()([["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]},{})})},63361(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>v,useFeatureCall:()=>g});var r=n(73884),s=n(72752),i=n(33097),o=n.n(i),l=n(15797),a=n.n(l),c=n(1488),m=n.n(c),u=n(70579);const d=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach(e=>{d(e,t,n)}):(t(Object.assign({},m()(e,["children"]),{parentId:n})),d(e.children,t,n?n+":"+e.id:e.id)))},p=a()(e=>{const t=(()=>{const t=new Map;return d(e,e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)}),t})(),n=(e=>Array.from(e.keys()).filter(t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some(n=>!e.get(t)))}))(t);return{profile:e,features:n,profileMap:t}}),h=(e,t)=>{let{profileMap:n,features:r}=t;const s=n.get(e);return-1!==r.indexOf(e)&&!0!==s.close&&o()(s,"dependencies",[]).every(t=>{const s=n.get(e);return r.indexOf(t)>-1&&!0!==s.close})},y=(0,r.createContext)(null),{Provider:f}=y,g=e=>{const{features:t,profile:n,profileMap:i,debug:l}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=o()(e,"features",{debug:!1,profile:{}});return Object.assign({},p(t),{debug:n})})(),a="system"===n.type?n.id:"root",c=(0,r.useContext)(y),m=c?c+":"+e:a+":"+e;return(0,r.useEffect)(()=>{t&&t.length>0&&l&&console.log("[featureId] ".concat(m,",[state] ").concat(h(m,{features:t,profileMap:i})),i.get(m))},[t,i,l,m]),{isPass:!(e&&t&&t.length>0)||h(m,{features:t,profileMap:i}),currentId:m,feature:i.get(m)}},v=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:i}=g(t);return(0,u.jsx)(f,{value:i,children:"function"===typeof n?n({isPass:r,options:r?o()(s,"options"):o()(s,"rejectedOptions"),currentId:i}):r&&n})}},64416(e,t,n){var r=n(18902),s=n(75866),i=n(41558),o=n(58114),l=n(68182),a=n(52074);e.exports=function(e,t,n){var c=-1,m=s,u=e.length,d=!0,p=[],h=p;if(n)d=!1,m=i;else if(u>=200){var y=t?null:l(e);if(y)return a(y);d=!1,m=o,h=new r}else h=t?[]:p;e:for(;++c<u;){var f=e[c],g=t?t(f):f;if(f=n||0!==f?f:0,d&&g===g){for(var v=h.length;v--;)if(h[v]===g)continue e;t&&h.push(g),p.push(f)}else m(h,g,n)||(h!==p&&h.push(g),p.push(f))}return p}},68182(e,t,n){var r=n(72070),s=n(75713),i=n(52074),o=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:s;e.exports=o},69613(e,t,n){var r=n(9261);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},75713(e){e.exports=function(){}},75816(e){e.exports=function(e,t,n,r){for(var s=e.length,i=n+(r?1:-1);r?i--:++i<s;)if(t(e[i],i,e))return i;return-1}},75866(e,t,n){var r=n(88468);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},76516(e,t,n){var r=n(6571);e.exports=function(e,t){return function(n,s){if(null==n)return n;if(!r(n))return e(n,s);for(var i=n.length,o=t?i:-1,l=Object(n);(t?o--:++o<i)&&!1!==s(l[o],o,l););return n}}},88468(e,t,n){var r=n(75816),s=n(40644),i=n(94020);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,s,n)}},94020(e){e.exports=function(e,t,n){for(var r=n-1,s=e.length;++r<s;)if(e[r]===t)return r;return-1}},94710(e){e.exports=function(e,t,n,r){for(var s=-1,i=null==e?0:e.length;++s<i;){var o=e[s];t(r,o,n(o),e)}return r}},99140(e,t,n){var r=n(37303);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},99910(e){e.exports=function(e,t){for(var n,r=-1,s=e.length;++r<s;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}}}]);
|
|
2
|
-
//# sourceMappingURL=833.c8341caa.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[760,2908,8593],{28148(e,s,t){t.r(s),t.d(s,{default:()=>v});var n=t(89379),a=t(53986);const l={menu:"style_menu__gvIvn__RCjzi","all-no-start-icon":"style_all-no-start-icon__CA+zR__RCjzi","no-start-icon":"style_no-start-icon__LnC1S__RCjzi","has-children":"style_has-children__m9tce__RCjzi","has-children-node":"style_has-children-node__2bhEB__RCjzi","is-root":"style_is-root__4hhOc__RCjzi",title:"style_title__+Hcar__RCjzi",active:"style_active__WU49K__RCjzi","no-collapse":"style_no-collapse__aIZBM__RCjzi","title-content":"style_title-content__cQXpK__RCjzi",loading:"style_loading__1pU4P__RCjzi"};var i=t(83136),r=t.n(i),o=t(55199),c=t(94679),d=t(29053),h=t(10986),p=t.n(h),u=t(64671),_=t(73884),y=t(18081),m=t.n(y),g=t(87558),f=t(70579);const C=["className","allowCollapsed","pathMatch","defaultItems"],j=["children","key","originItem"],K=e=>{const s=(0,c.useNavigate)(),{id:t,className:n,label:a,iconType:i,icon:h,path:p,request:_,onClick:y,isOpen:m,isSelected:C,onOpenChange:j,children:K,fetchOptions:v,depth:O,onLoad:A,allowCollapsed:k}=e,b=Array.isArray(K)&&K.length>0||v,{refresh:x,isLoading:N}=(0,g.useFetch)(Object.assign({},v,{auto:!k&&v,onRequestSuccess:e=>{A(e)}}));return(0,f.jsx)(d.default,{request:_,children:(0,f.jsxs)("div",{className:r()(n,l["menu-item"]),children:[(0,f.jsxs)("div",{className:r()(l.title,{[l.active]:C,[l["has-children"]]:b,[l["no-collapse"]]:b&&!k,[l["no-start-icon"]]:!i&&!h,[l["is-root"]]:0===O}),onClick:n=>{n.stopPropagation(),b||!p?b||v?k&&(v&&x({}),j(!m)):null===y||void 0===y||y(t,e):s(p)},children:[i&&!h&&(0,f.jsx)(u.default,{type:i}),h||null,(0,f.jsx)("span",{className:l["title-content"],children:a}),b&&k&&(0,f.jsx)(u.default,{type:m?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),b?!k||m&&K?(0,f.jsx)("div",{className:l["children-list"],children:K}):!k||m&&N?(0,f.jsx)("div",{className:l["children-list"],children:(0,f.jsx)(o.Spin,{className:l.loading,size:"small"})}):void 0:null]})})},v=e=>{let{className:s,allowCollapsed:t=!0,pathMatch:i,defaultItems:o=[]}=e,d=(0,a.A)(e,C);const{pathname:h,search:u}=(0,c.useLocation)(),[y,g]=p()(d,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[v,O]=p()((0,n.A)({defaultItems:o},d),{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:A,defaultOpenKeys:k,links:b,childrenKeys:x,hasStartIcon:N,hasChildren:R}=(0,_.useMemo)(()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,a)=>{const{parentKey:l,depth:i}=Object.assign({parentKey:"root",depth:0,paths:[]},a);return Array.isArray(e)&&e.length>0?e.map((e,a)=>{const r="".concat(e.key||"".concat("root"!==l?"".concat(l,"-"):"","node-").concat(a));s[l]||(s[l]=[]),s[l].push(r);const o=n(e.children,{parentKey:r,depth:i+1});s[r]&&s[l].push(...s[r]);const c=Object.assign({},e,{key:r,parentKey:l,depth:i,children:o,originItem:e});return t[r]=c,c}):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(v);let a=!1,l=!1;const i=[],r=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach(e=>{const s=n[e];(s.iconType||s.icon)&&(a=!0),s.path&&i.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(l=!0,r.push(s.key))}),{defaultOpenKeys:r,links:i,items:s,childrenKeys:t,hasStartIcon:a,hasChildren:l}},[v]);(0,_.useEffect)(()=>{const e=b.find(e=>{let{path:s}=e;return"function"===typeof i?i(s,{pathname:h,search:u}):m()(h.replace(/[#,?].*/,""))===m()(s)||m()(h+u)===m()(s)});e&&g(e.key)},[b,h,u,g,i]);const[z,I]=p()(Object.assign({},d,{defaultOpenKeys:d.defaultOpenKeys||k}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),q=(0,_.useCallback)((e,s)=>{const{parentKey:l,depth:i,selectedKey:r,openKeys:o,paths:c}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map(e=>{let{children:s,key:d,originItem:h}=e,p=(0,a.A)(e,j);return(0,_.createElement)(K,(0,n.A)((0,n.A)({},Object.assign({},p)),{},{id:d,parentId:l,depth:i,allowCollapsed:t,isSelected:d===r||x[d]&&x[d].indexOf(r)>-1,onClick:g,onLoad:e=>{O(s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map(s=>Object.assign({},s,{children:h===s?e:t(s.children)})):null;return t(s)})},isOpen:(o||[]).indexOf(d)>-1,key:d,onOpenChange:()=>{I(e=>{const s=e.slice(0);return e.indexOf(d)>-1?s.splice(e.indexOf(d),1):s.push(d),s})}}),q(s,{parentKey:l,depth:i+1,selectedKey:r,openKeys:o,paths:[...c,d]}))}):null},[O,I,g,x,t]);return(0,f.jsx)("div",{className:r()(s,l.menu,{[l["all-no-start-icon"]]:!N,[l["has-children-node"]]:R}),children:q(A,{selectedKey:y,openKeys:z})})}},29053(e,s,t){t.r(s),t.d(s,{computedIsPass:()=>y,default:()=>f,usePermissions:()=>m,usePermissionsPass:()=>g});var n=t(89379),a=t(53986),l=t(73884),i=t(55199),r=t(33097),o=t.n(r),c=t(83136),d=t.n(c);const h="style_outer__vbHB9__RCjzi";var p=t(72752),u=t(70579);const _=["type","className","tagName","message","request","children"],y=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some(e=>(s||[]).indexOf(e)>-1)},m=()=>{const{global:e}=(0,p.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,p.usePreset)();return{permissions:e.permissions||s||t&&o()(e,t)||[]}},g=e=>{let{request:s}=e;const{permissions:t}=m();return y({permissions:t,request:s})},f=e=>{let{type:s="hidden",className:t,tagName:r="span",message:o="\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458",request:c,children:p}=e,y=(0,a.A)(e,_);const m=g({request:c});return"function"===typeof p?p({isPass:m,type:s,request:c}):!0===m?p:"error"===s?(0,u.jsx)(i.Result,{status:"403",subTitle:o}):"tooltip"===s?(0,u.jsx)(i.Tooltip,{title:o,children:(0,l.createElement)(r,(0,n.A)((0,n.A)({},y),{},{className:d()(h,t)}),p)}):null}}}]);
|
|
2
|
-
//# sourceMappingURL=8593.e3573f05.chunk.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9556.3942adcb.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4671,9379,9556],{20816(e,t,r){r.d(t,{A:()=>o});var n=r(82284);function o(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},29556(e,t,r){r.r(t),r.d(t,{TooltipFetch:()=>P,TooltipInfoLabel:()=>A,default:()=>x});var n=r(89379),o=r(53986),i=r(55199),s=r(83136),l=r.n(s);const a="style_tooltip__zHGMI__RCjzi",c="style_large__lvmsm__RCjzi",_="style_small__nUt0r__RCjzi",f="style_popup-content__-rKQN__RCjzi",u="style_title__1EQPq__RCjzi",p="style_important-info__qTSZY__RCjzi",y="style_error__yTTq3__RCjzi",m="style_warning__CMJxz__RCjzi",d="style_success__AvJVx__RCjzi",j="style_sub-title__uD8CH__RCjzi",b="style_content__lzgUz__RCjzi",v="style_alone__q6q82__RCjzi",O="style_fetch-content__tEOEV__RCjzi",h="style_fetch-loading__tN-WB__RCjzi",g="style_title-info-icon__iY8Q+__RCjzi";var C=r(70579);const w=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],x=e=>{let{overlayClassName:t,title:r,size:s,subtitle:O,content:h,importantInfo:g,importantInfoType:x,moreInfo:z}=e,A=(0,o.A)(e,w);return(0,C.jsx)(i.Tooltip,(0,n.A)((0,n.A)({},A),{},{rootClassName:l()(t,a,{[_]:"small"===s,[c]:"large"===s}),title:(0,C.jsxs)(i.Space,{direction:"vertical",className:f,children:[r&&(0,C.jsx)("div",{className:u,children:r}),g&&(0,C.jsx)("div",{className:l()(p,{[d]:"success"===x,[m]:"warning"===x,[y]:"error"===x}),children:g}),O&&(0,C.jsx)("div",{className:j,children:O}),h&&(0,C.jsx)("div",{className:l()(b,{[v]:[r,O,g,z].every(e=>!e)}),children:h}),z&&(0,C.jsx)("div",{children:z})]})}))};var z=r(64671);const A=e=>{let{title:t,tooltipTitle:r}=e;return(0,C.jsxs)("div",{children:[t,r?(0,C.jsx)(x,(0,n.A)((0,n.A)({},r),{},{children:(0,C.jsx)("span",{children:(0,C.jsx)(z.default,{type:"icon-xinxi-miaobian",className:g,size:14})})})):null]})};var R=r(73884),S=r(87558);const N=["api","children","fetchContent","showLoading","loadingClassName","force"],P=e=>{let{api:t,children:r,fetchContent:s,showLoading:a=!0,loadingClassName:c,force:_}=e,f=(0,o.A)(e,N);const[u,p]=(0,R.useState)(!1),y=(0,S.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:m,isLoading:d,data:j,send:b}=y;return(0,C.jsx)(x,(0,n.A)((0,n.A)({},Object.assign({},f,m?s(j,y):{})),{},{open:u,onOpenChange:async e=>{!e||m&&!_||await b({type:"refresh"}),p(e)},children:(0,C.jsxs)("span",{className:O,children:[r,a&&d?(0,C.jsx)(i.Spin,{size:"small",className:l()(c,h)}):null]})}))}},51153(e,t,r){var n=r(73884),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,_=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(_=t.ref),t)s.call(t,n)&&!a.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:_,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},53986(e,t,r){function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{A:()=>n})},64467(e,t,r){r.d(t,{A:()=>o});var n=r(20816);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},64671(e,t,r){r.r(t),r.d(t,{default:()=>o.a});var n=r(48781),o=r.n(n),i={};for(const s in n)"default"!==s&&(i[s]=()=>n[s]);r.d(t,i)},70579(e,t,r){e.exports=r(51153)},82284(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})},89379(e,t,r){r.d(t,{A:()=>i});var n=r(64467);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}}}]);
|
|
3
|
-
//# sourceMappingURL=9556.3942adcb.chunk.js.map
|
/package/build/static/js/{2004.dae78252.chunk.js.LICENSE.txt → 2004.00308337.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{3404.bdab58a6.chunk.js.LICENSE.txt → 3404.8f81d550.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{7227.7532b45e.chunk.js.LICENSE.txt → 7227.1053f26b.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{9556.3942adcb.chunk.js.LICENSE.txt → 9556.bef1a226.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|