@kne-components/components-core 0.4.63 → 0.4.64
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 +84 -84
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/2753.abbddab6.chunk.css +2 -0
- package/build/static/css/{2753.b8d1e9f2.chunk.css.map → 2753.abbddab6.chunk.css.map} +1 -1
- package/build/static/css/{3639.fa4e75df.chunk.css → 3639.fd65b57a.chunk.css} +2 -2
- package/build/static/css/{3639.fa4e75df.chunk.css.map → 3639.fd65b57a.chunk.css.map} +1 -1
- package/build/static/css/{3771.91c2425c.chunk.css → 3771.c7c8c5a3.chunk.css} +2 -2
- package/build/static/css/{3771.91c2425c.chunk.css.map → 3771.c7c8c5a3.chunk.css.map} +1 -1
- package/build/static/css/{3790.60d2ceb6.chunk.css → 3790.28edc00f.chunk.css} +2 -2
- package/build/static/css/{3790.60d2ceb6.chunk.css.map → 3790.28edc00f.chunk.css.map} +1 -1
- package/build/static/css/3841.219b9e91.chunk.css +2 -0
- package/build/static/css/{3841.ae72d7a4.chunk.css.map → 3841.219b9e91.chunk.css.map} +1 -1
- package/build/static/css/3874.61a60faa.chunk.css +2 -0
- package/build/static/css/{3874.f47ca7c9.chunk.css.map → 3874.61a60faa.chunk.css.map} +1 -1
- package/build/static/css/{4302.49525f40.chunk.css → 4302.b266e98f.chunk.css} +2 -2
- package/build/static/css/{4302.49525f40.chunk.css.map → 4302.b266e98f.chunk.css.map} +1 -1
- package/build/static/css/4666.83a4e505.chunk.css +2 -0
- package/build/static/css/{4666.e0fdafd4.chunk.css.map → 4666.83a4e505.chunk.css.map} +1 -1
- package/build/static/css/5834.9ab80940.chunk.css +2 -0
- package/build/static/css/{5834.409213d0.chunk.css.map → 5834.9ab80940.chunk.css.map} +1 -1
- package/build/static/css/{6763.787317f6.chunk.css → 6763.f66314c4.chunk.css} +2 -2
- package/build/static/css/{6763.787317f6.chunk.css.map → 6763.f66314c4.chunk.css.map} +1 -1
- package/build/static/css/6890.95408596.chunk.css +2 -0
- package/build/static/css/{6890.d6ccf9f2.chunk.css.map → 6890.95408596.chunk.css.map} +1 -1
- package/build/static/css/7227.e2335b57.chunk.css +2 -0
- package/build/static/css/{7227.8bcf95e0.chunk.css.map → 7227.e2335b57.chunk.css.map} +1 -1
- package/build/static/css/{760.c978e562.chunk.css → 760.063d2f98.chunk.css} +2 -2
- package/build/static/css/{760.c978e562.chunk.css.map → 760.063d2f98.chunk.css.map} +1 -1
- package/build/static/css/7854.1d89881f.chunk.css +2 -0
- package/build/static/css/{7854.81302b72.chunk.css.map → 7854.1d89881f.chunk.css.map} +1 -1
- package/build/static/css/8221.e14f1ecb.chunk.css +2 -0
- package/build/static/css/{8221.494387ff.chunk.css.map → 8221.e14f1ecb.chunk.css.map} +1 -1
- package/build/static/css/{8593.89a28a03.chunk.css → 8593.83a79053.chunk.css} +2 -2
- package/build/static/css/{8593.89a28a03.chunk.css.map → 8593.83a79053.chunk.css.map} +1 -1
- package/build/static/css/9556.ebd5a150.chunk.css +2 -0
- package/build/static/css/{9556.499ce3d6.chunk.css.map → 9556.ebd5a150.chunk.css.map} +1 -1
- package/build/static/css/9666.4cfca091.chunk.css +2 -0
- package/build/static/css/{9666.14ab373a.chunk.css.map → 9666.4cfca091.chunk.css.map} +1 -1
- package/build/static/css/9755.9fbf467d.chunk.css +2 -0
- package/build/static/css/{9755.a8331173.chunk.css.map → 9755.9fbf467d.chunk.css.map} +1 -1
- package/build/static/js/{2833.793511fa.chunk.js → 2833.10809f75.chunk.js} +2 -2
- package/build/static/js/2833.10809f75.chunk.js.map +1 -0
- package/build/static/js/{3639.8f72752d.chunk.js → 3639.d6ad4730.chunk.js} +2 -2
- package/build/static/js/{3639.8f72752d.chunk.js.map → 3639.d6ad4730.chunk.js.map} +1 -1
- package/build/static/js/3771.ff1dabb1.chunk.js +2 -0
- package/build/static/js/{3771.90459c25.chunk.js.map → 3771.ff1dabb1.chunk.js.map} +1 -1
- package/build/static/js/{3790.fa0bb2ec.chunk.js → 3790.522f81cb.chunk.js} +2 -2
- package/build/static/js/{3790.fa0bb2ec.chunk.js.map → 3790.522f81cb.chunk.js.map} +1 -1
- package/build/static/js/{3841.27a47188.chunk.js → 3841.a157ee0a.chunk.js} +2 -2
- package/build/static/js/{3841.27a47188.chunk.js.map → 3841.a157ee0a.chunk.js.map} +1 -1
- package/build/static/js/3856.6c6de252.chunk.js +2 -0
- package/build/static/js/3856.6c6de252.chunk.js.map +1 -0
- package/build/static/js/{3874.86802294.chunk.js → 3874.d84933e3.chunk.js} +3 -3
- package/build/static/js/{3874.86802294.chunk.js.map → 3874.d84933e3.chunk.js.map} +1 -1
- package/build/static/js/4302.70432be0.chunk.js +2 -0
- package/build/static/js/{4302.e10ccec5.chunk.js.map → 4302.70432be0.chunk.js.map} +1 -1
- package/build/static/js/{4474.9318d571.chunk.js → 4474.65aba3bd.chunk.js} +2 -2
- package/build/static/js/{4474.9318d571.chunk.js.map → 4474.65aba3bd.chunk.js.map} +1 -1
- package/build/static/js/{4666.64e67752.chunk.js → 4666.ca6b5d86.chunk.js} +3 -3
- package/build/static/js/{4666.64e67752.chunk.js.map → 4666.ca6b5d86.chunk.js.map} +1 -1
- package/build/static/js/5834.603b25c5.chunk.js +2 -0
- package/build/static/js/{5834.0ffdcc4a.chunk.js.map → 5834.603b25c5.chunk.js.map} +1 -1
- package/build/static/js/6763.f608e6c0.chunk.js +2 -0
- package/build/static/js/{6763.04d4503b.chunk.js.map → 6763.f608e6c0.chunk.js.map} +1 -1
- package/build/static/js/{7227.50b81d09.chunk.js → 7227.038e66d8.chunk.js} +3 -3
- package/build/static/js/{7227.50b81d09.chunk.js.map → 7227.038e66d8.chunk.js.map} +1 -1
- package/build/static/js/{760.b4c97d01.chunk.js → 760.3fe4c6d8.chunk.js} +2 -2
- package/build/static/js/{760.b4c97d01.chunk.js.map → 760.3fe4c6d8.chunk.js.map} +1 -1
- package/build/static/js/7854.f0785042.chunk.js +2 -0
- package/build/static/js/{7854.1ecd2ba7.chunk.js.map → 7854.f0785042.chunk.js.map} +1 -1
- package/build/static/js/{7857.0a1e8f3b.chunk.js → 7857.2c025dc4.chunk.js} +2 -2
- package/build/static/js/{7857.0a1e8f3b.chunk.js.map → 7857.2c025dc4.chunk.js.map} +1 -1
- package/build/static/js/{8221.92f02c77.chunk.js → 8221.0e92b082.chunk.js} +2 -2
- package/build/static/js/{8221.92f02c77.chunk.js.map → 8221.0e92b082.chunk.js.map} +1 -1
- package/build/static/js/8593.cc6d9db5.chunk.js +2 -0
- package/build/static/js/{8593.8f1d700a.chunk.js.map → 8593.cc6d9db5.chunk.js.map} +1 -1
- package/build/static/js/{9556.098e8cb7.chunk.js → 9556.af8681ad.chunk.js} +3 -3
- package/build/static/js/{9556.098e8cb7.chunk.js.map → 9556.af8681ad.chunk.js.map} +1 -1
- package/build/static/js/9666.8c801873.chunk.js +2 -0
- package/build/static/js/{9666.c58faba9.chunk.js.map → 9666.8c801873.chunk.js.map} +1 -1
- package/build/static/js/{9755.6427cfc7.chunk.js → 9755.a2c3d4b9.chunk.js} +2 -2
- package/build/static/js/{9755.6427cfc7.chunk.js.map → 9755.a2c3d4b9.chunk.js.map} +1 -1
- package/build/static/js/{main.e88e88ec.js → main.91a4f0fd.js} +2 -2
- package/build/static/js/{main.e88e88ec.js.map → main.91a4f0fd.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/2753.b8d1e9f2.chunk.css +0 -2
- package/build/static/css/3841.ae72d7a4.chunk.css +0 -2
- package/build/static/css/3874.f47ca7c9.chunk.css +0 -2
- package/build/static/css/4666.e0fdafd4.chunk.css +0 -2
- package/build/static/css/5834.409213d0.chunk.css +0 -2
- package/build/static/css/6890.d6ccf9f2.chunk.css +0 -2
- package/build/static/css/7227.8bcf95e0.chunk.css +0 -2
- package/build/static/css/7854.81302b72.chunk.css +0 -2
- package/build/static/css/8221.494387ff.chunk.css +0 -2
- package/build/static/css/9556.499ce3d6.chunk.css +0 -2
- package/build/static/css/9666.14ab373a.chunk.css +0 -2
- package/build/static/css/9755.a8331173.chunk.css +0 -2
- package/build/static/js/2833.793511fa.chunk.js.map +0 -1
- package/build/static/js/3771.90459c25.chunk.js +0 -2
- package/build/static/js/3856.0622d06c.chunk.js +0 -2
- package/build/static/js/3856.0622d06c.chunk.js.map +0 -1
- package/build/static/js/4302.e10ccec5.chunk.js +0 -2
- package/build/static/js/5834.0ffdcc4a.chunk.js +0 -2
- package/build/static/js/6763.04d4503b.chunk.js +0 -2
- package/build/static/js/7854.1ecd2ba7.chunk.js +0 -2
- package/build/static/js/8593.8f1d700a.chunk.js +0 -2
- package/build/static/js/9666.c58faba9.chunk.js +0 -2
- /package/build/static/js/{3874.86802294.chunk.js.LICENSE.txt → 3874.d84933e3.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.64e67752.chunk.js.LICENSE.txt → 4666.ca6b5d86.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.50b81d09.chunk.js.LICENSE.txt → 7227.038e66d8.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.098e8cb7.chunk.js.LICENSE.txt → 9556.af8681ad.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,5834],{94964(e,t,o){"use strict";var n=o(13050),r=o(87558),l=o(89946),a=o(55199),s=(o(45784),o(70579));window.PUBLIC_URL="/components-core";const c={remote:"components-core",url:"https://registry.npmmirror.com",tpl:"{{url}}/@kne%2f{{remote}}/{{version}}/files/build",defaultVersion:"0.4.63"};(0,n.preset)({remotes:{default:c,"components-core":c,"components-iconfont":{remote:"components-iconfont",url:"https://uc.fatalent.cn",tpl:"{{url}}/packages/@kne-components/{{remote}}/{{version}}/build",defaultVersion:"0.1.9"}}});const i=l.default.create({validateStatus:function(){return!0}});(0,r.preset)({ajax:i,loading:(0,s.jsx)(a.Spin,{style:{position:"absolute",left:"50%",padding:"10px",transform:"translateX(-50%)"}}),error:(0,s.jsx)(a.Result,{status:"error",title:"\u8bf7\u6c42\u53d1\u751f\u9519\u8bef"}),empty:(0,s.jsx)(a.Empty,{}),transformResponse:e=>{const{data:t}=e;return e.data={code:0===t.code?200:t.code,msg:t.msg,results:t.data},e}});var d=o(73884),u=o(84391),m=o(89379),p=o(53986),f=o(94679),h=o(22682),_=(o(91296),o(46446));const b=["preset","themeToken"],g=h.Ay.ExampleRoutes,y=e=>{let{preset:t,themeToken:o}=e,n=(0,p.A)(e,b);return(0,s.jsx)(f.HashRouter,{children:(0,s.jsx)(g,(0,m.A)((0,m.A)({},n),{},{paths:[{key:"components",path:"/",title:"\u9996\u9875"}],preset:t,themeToken:o,readme:_.default}))})};u.createRoot(document.getElementById("root")).render((0,s.jsx)(d.StrictMode,{children:(0,s.jsx)(y,{preset:{ajax:i},themeToken:{colorPrimary:"#4F185A"}})}))},73025(e,t,o){"use strict";o.d(t,{A:()=>u});var n=o(89379),r=o(53986),l=o(73884),a=o(87558),s=o(96418),c=o(55199),i=o(70579);const d=["api","modalProps","modalFunc","onError"],u=e=>{let{api:t,modalProps:o={},modalFunc:u,onError:m}=e,p=(0,r.A)(e,d);const f=(0,a.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:h,data:_,error:b,refresh:g}=f,y=(0,s.default)(m),S=(0,s.default)(()=>{const e=u("function"===typeof o?o({data:_,fetchApi:f,close:()=>{e.close()}}):o)});return(0,l.useEffect)(()=>{h||(b?y(b):_&&S())},[h,b,_,S,y]),(0,i.jsx)(c.Button,(0,n.A)((0,n.A)({},p),{},{loading:h,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")},6617(e,t,o){"use strict";o.d(t,{default:()=>n.default});o(9056);var n=o(70703)},25963(e,t,o){"use strict";o.r(t),o.d(t,{AppDrawer:()=>G,DrawerButton:()=>K,default:()=>q,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__S130S",d="style_drawer-outer__vuEIf__S130S",u="style_drawer-title__71eaW__S130S",m="style_drawer-body__frw9I__S130S",p="style_is-disabled-scroller__ZsITw__S130S",f="style_drawer-body-inner__lci9Z__S130S",h="style_drawer-footer__1g8o1__S130S",_="style_drawer-close__bpxnp__S130S",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),y=o(73884);const S=()=>{const[e,t]=(0,y.useState)([]);return[e,(0,y.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var C=o(70579);const x=(0,y.forwardRef)((e,t)=>{let{config:o}=e;const[n,l]=(0,y.useState)(!0),[s,c]=(0,y.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,y.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:n,onClose:i}))});let w=0;function A(e){return(0,r.A)({},e)}const j=[],v=(0,y.memo)((0,y.forwardRef)((e,t)=>{const[o,n]=S();return(0,y.useImperativeHandle)(t,()=>({patchElement:n}),[n]),(0,C.jsx)(C.Fragment,{children:o})}));const k=function(){const e=(0,y.useRef)(null),[t,o]=(0,y.useState)([]);(0,y.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),o([])}},[t]);const n=(0,y.useCallback)(t=>function(n){var r;w+=1;const l=(0,y.createRef)();let a=()=>{};const s=(0,C.jsx)(x,{config:t(n),ref:l,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},"drawer-".concat(w));return a=null===(r=e.current)||void 0===r?void 0:r.patchElement(s),a&&j.push(a),{destroy:()=>{function e(){var e;null===(e=l.current)||void 0===e||e.destroy()}l.current?e():o(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():o(e=>[...e,t])}}},[]);return[(0,y.useMemo)(()=>n(A),[n]),(0,C.jsx)(v,{ref:e},"drawer-holder")]},P=(0,y.createContext)({}),{Provider:N}=P,R=e=>{const{children:t}=e,[o,n]=k(),r=(0,y.useMemo)(()=>({drawer:o}),[o]);return(0,C.jsx)(N,{value:r,children:(0,C.jsxs)("div",{children:[n,t]})})};R.useAppDrawer=()=>(0,y.useContext)(P);const G=R;var E=o(81014),B=o(71298),L=o(64671);const M=["ButtonComponent","onClick","autoClose"],I=["children","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator"],T=["size"],F=(e,t)=>"function"===typeof e?e(t):e,O=e=>{let{footer:t,footerButtons:o,onConfirm:n,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(o)&&0===o.length?null:(0,C.jsx)(a.Col,{children:(0,C.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,M);const i=o||E.default;return(0,y.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}}))})})})]})},D=e=>{let{title:t,footer:o,disabledScroller:n,footerButtons:r,onClose:l,closable:s,onConfirm:i,onCancel:b,children:g}=e;const S=(0,y.useRef)(null);return(0,y.useEffect)(()=>{!n&&new B.default(S.current)},[n]),(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()(_,"drawer-close"),type:"text",icon:(0,C.jsx)(L.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()(m,"drawer-body",{[p]:n}),ref:S,children:(0,C.jsx)("div",{className:c()(f,"drawer-body-inner"),children:g})}),null!==o||r?(0,C.jsx)("div",{className:c()(h,"drawer-footer"),children:(0,C.jsx)(O,{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,C.jsx)(D,{title:n,closable:l,onClose:a,onConfirm:s,onCancel:c,footerButtons:F(o,(0,r.A)((0,r.A)({},e),{},{close:a})),disabledScroller:d,footer:F(i,(0,r.A)((0,r.A)({},e),{},{close:a})),children:F(u,(0,r.A)((0,r.A)({},e),{},{close:a}))}));return"function"===typeof t?t(m):m({})},z=e=>{let{children:t,footer:o,footerButtons:n,className:a,size:s,title:d,onClose:u,onConfirm:m,onCancel:p,closable:f,disabledScroller:h,withDecorator:_}=e,y=(0,l.A)(e,I);return(0,r.A)((0,r.A)((0,r.A)({},y),{},{icon:null,title:null,maskClosable:!!y.hasOwnProperty("maskClosable")&&y.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:u,className:c()(a,i)},"large"===(S=s)?{width:"calc(100vw - 64px)"}:"small"===S?{width:"600px"}:{width:"1000px"}),{},{children:(0,C.jsx)(g.IntlProvider,{importMessages:b,moduleName:"Drawer",children:V({withDecorator:_,title:d,closable:f,onClose:u,onConfirm:m,onCancel:p,footer:o,footerButtons:n,disabledScroller:h,children:t})})});var S},U=()=>{const{drawer:e}=G.useAppDrawer();return t=>{const o={},l=z((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}},q=e=>{let{size:t="small"}=e,o=(0,l.A)(e,T);return(0,C.jsx)(a.Drawer,(0,r.A)({},z((0,r.A)({size:t},o))))};var H=o(73025);const K=e=>{const t=U();return(0,C.jsx)(H.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},72752(e,t,o){"use strict";o.r(t),o.d(t,{GetGlobal:()=>W,GlobalProvider:()=>U,GlobalSetting:()=>s.GlobalSetting,GlobalValue:()=>s.GlobalValue,PureGlobal:()=>q,SetGlobal:()=>K,containerClassName:()=>D,default:()=>Z,useGlobalContext:()=>H,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(36755),m=o(76801);const p=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var f=o(87558),h=o(57469),_=o.n(h),b=o(52526);const g=e=>{let{params:t}=e;const{locale:n}=t;return{"en-US":async()=>(await o.e(3513).then(o.t.bind(o,33513,23)),_().locale("en"),await o.e(2397).then(o.t.bind(o,62397,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"button-group")}),await o.e(9808).then(o.t.bind(o,79808,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"phone-number-input")}),await o.e(8670).then(o.t.bind(o,78670,23)).then(e=>{(0,b.localeLoader)("en-US",e.default,"scroll-loader")}),await o.e(9223).then(o.t.bind(o,99223,23)).then(e=>{(0,b.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)),_().locale("zh-cn"),await o.e(4965).then(o.bind(o,64965)).then(e=>e.default))}[n]()},y={container:"style_container__k+uRt__S130S","is-not-init":"style_is-not-init__BZN0v__S130S","loading-rotate":"style_loading-rotate__kLLHV__S130S",total_text:"style_total_text__oNKMr__S130S","ant-pagination":"style_ant-pagination__4LRg7__S130S","ant-pagination-options":"style_ant-pagination-options__mp-tz__S130S","ant-select-single":"style_ant-select-single__mL6Zt__S130S","ant-select-selector":"style_ant-select-selector__+111I__S130S","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__S130S","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__S130S","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__S130S"};var S=o(33097),C=o.n(S),x=o(25963),w=o(64671),A=o(96418),j=o(22717),v=o.n(j),k=o(96604),P=o.n(k),N=o(25806),R=o.n(N),G=o(13050),E=o(56641),B=o.n(E);const L=(e,t)=>B()(e,t,(e,t)=>{if("function"===typeof e||"function"===typeof t||"symbol"===typeof e||"symbol"===typeof t)return!0});var M=o(70579);const I=["colorPrimary","components"],T=["preset","children","themeToken","init"],F=["children"],O=["children","className"];document.body.classList.add(y.container),p()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new d.default(document.body),(0,m.h)().classList.add(y.container));const D=y.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),V=(0,f.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:p}=d,f=(0,r.A)(d,I),h=(0,i.useMemo)(()=>R()(u),[u]),[_,b]=(0,i.useState)({});return(0,i.useEffect)(()=>{const e=document.querySelector(".".concat(D)),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":h.red(),"--primary-color-green":h.green(),"--primary-color-blue":h.blue(),"--primary-color-06":h.alpha(.06).string()};return P()(0,10).forEach(e=>{t["--primary-color-".concat(e+1)]=h.alpha((e+1)/10).string()}),e.textContent=".".concat(D,"{").concat(v()(t,(e,t,o)=>{e.push("".concat(o,":").concat(t,";"))},[]).join(""),"}"),s(!0),()=>{}},[u,h]),a?(0,M.jsx)(c.ConfigProvider,{getTargetContainer:m.h,getPopupContainer:m.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,warning:{strict:!1},theme:{components:p,token:Object.assign({},(0,n.A)((0,n.A)({},_),{},{colorPrimary:u,colorPrimaryBg:h.alpha(.1).string(),colorLink:u,colorTextBase:"#222222",colorText:"#222222"}),f)},children:l}):null}),z=(0,G.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[o,n]=t;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(w.FontLoader,{path:"".concat(o,"/iconfont.css")}),(0,M.jsx)(w.FontLoader,{path:"".concat(n,"/iconfont.js")})]})}),U=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:o,themeToken:n,init:l}=e,a=(0,r.A)(e,T);const d=C()(t,"locale","zh-CN"),u=(0,i.useRef)(null),m=(0,i.useRef)(null);return(0,M.jsx)(s.Global,{preset:t,initValue:Object.assign({},a,{themeToken:n,localMessageRef:u,enumsRef:m,locale:d},C()(t,"global")),children:(0,M.jsx)(s.GlobalValue,{globalKey:"locale",children:e=>{let{value:t}=e;return(0,M.jsxs)(V,{loader:g,params:{locale:t},themeToken:n,children:[(0,M.jsx)(c.App,{message:{top:100},children:(0,M.jsx)(x.AppDrawer,{children:"function"===typeof l?(0,M.jsx)(f.default,{loader:()=>l(),render:()=>o}):o})}),(0,M.jsx)(z,{})]})}})})},q=e=>{let{children:t}=e,o=(0,r.A)(e,F);const l=(0,s.useGlobalValue)("themeToken");return(0,M.jsx)(U,(0,n.A)((0,n.A)({},o),{},{themeToken:o.themeToken||l,children:(0,M.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(y.container,"core-container-body"),children:t})}))},H=e=>{const t=(0,s.useGlobalContext)(),o=(0,A.default)(o=>{t.setGlobal(t=>"function"===typeof o?Object.assign({},t,{[e]:o(C()(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:C()(t.global,e),setGlobal:o}:{})},K=e=>{let{globalKey:t,value:o,needReady:n,children:r}=e;const{global:l,setGlobal:a}=H(t),s=(0,A.default)(a),c=(0,i.useRef)(null);return c.current=l,(0,i.useEffect)(()=>{L(c.current,o)||(c.current=o,s(o))},[o,s]),n&&!l?null:"function"===typeof r?r({global:l,setGlobal:a}):r},W=e=>{let{globalKey:t,children:o}=e;const{global:n}=H(t);return o({value:n})},Z=e=>{let{children:t,className:o}=e,l=(0,r.A)(e,O);return(0,M.jsx)(u.A,{errorRender:()=>(0,M.jsx)(c.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,M.jsx)(U,(0,n.A)((0,n.A)({},l),{},{children:(0,M.jsx)("div",{"data-testid":"components-core-global",className:a()(y.container,"container-body",o),children:t})}))})}},3870(){function e(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}const t=Reflect.getPrototypeOf(Int8Array);for(const o of[Array,String,t])Object.defineProperty(o.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},64671(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>n.default});var n=o(48781),r={};for(const l in n)"default"!==l&&(r[l]=()=>n[l]);o.d(t,r)},47458(e,t,o){"use strict";o.d(t,{FormattedMessage:()=>y,IntlProvider:()=>g,createWithIntl:()=>C,useIntl:()=>S});var n=o(89379),r=o(53986),l=o(87558),a=o(61032),s=o(72752),c=o(73884),i=o(34677),d=o.n(i),u=o(22717),m=o.n(u),p=o(33097),f=o.n(p),h=o(70579);new Map;const _=["id","moduleName","children"],b=(0,l.withFetch)(e=>{let{children:t,data:o,locale:n}=e;return(0,h.jsx)(a.IntlProvider,{locale:n,messages:o,children:t})}),g=e=>{let{locale:t,importMessages:o=()=>({}),moduleName:n="Global",children:r}=e;const{global:{localMessageRef:l,locale:a}}=(0,s.useGlobalContext)(),c=t||a||"zh-CN";return(0,h.jsx)(b,{locale:c,params:{locale:c},loader:e=>{let{params:t}=e;const{locale:r}=t;return Promise.resolve(o(r)).then(e=>{let{default:t}=e;const o=d()({},l.current,m()(t,(e,t,o)=>{e["".concat(n,"_").concat(o)]=t}));return l.current=o,o})},children:r})},y=e=>{let{id:t,moduleName:o="Global",children:l}=e,s=(0,r.A)(e,_);const c="".concat(o,"_").concat(t);return"function"===typeof l?(0,h.jsx)(a.FormattedMessage,(0,n.A)((0,n.A)({},s),{},{id:c,children:e=>l(e&&e.join(""))})):(0,h.jsx)(a.FormattedMessage,(0,n.A)((0,n.A)({},s),{},{id:c}))},S=e=>{let t=f()(e,"moduleName")||"Global";const{formatMessage:o}=(0,a.useIntl)(),n=(0,c.useCallback)((e,n)=>(e.id="".concat(t,"_").concat(e.id),o(e,n)),[t,o]);return{formatMessage:n}},C=e=>{let{importMessages:t,moduleName:o}=e;return e=>(0,c.forwardRef)((r,l)=>(0,h.jsx)(g,{importMessages:t,moduleName:o,children:(0,h.jsx)(e,(0,n.A)((0,n.A)({},r),{},{ref:l}))}))}},81014(e,t,o){"use strict";o.d(t,{default:()=>n.LoadingButton});o(9056);var n=o(70703)}}]);
|
|
2
|
-
//# sourceMappingURL=5834.0ffdcc4a.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,6763],{18411(e,a,r){r.d(a,{A:()=>t});r(73884);const t=r.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},97211(e,a,r){r.d(a,{A:()=>t.withOSSFile});var t=r(92455)},40438(e,a,r){r.r(a),r.d(a,{default:()=>C});var t=r(89379),s=r(53986),n=r(87558),o=r(97211),l=r(64671),i=r(83136),c=r.n(i),d=r(55199),u=r(73884);const g=e=>{let{params:a}=e;const{data:r}=a;return new Promise((e,a)=>{const t=new window.Image;t.src=r,t.addEventListener("load",()=>{e(r)}),t.addEventListener("error",e=>{a(e)})})},p="style_img-outer__4QLY5__S130S",h="style_img__PSExq__S130S",m="style_loading__WCOwA__S130S",A="style_error__+ECgZ__S130S";var _=r(18411),f=r(72752),v=r(70579);const x=["id","src","alt","onClick","loading","error","className","apis"],k=["id","src","alt","gender","loading","error","className","gap","icon","children","shape","size","width","height","defaultAvatar","apis"],j=e=>{let{data:a,className:r,alt:t,innerLoading:s,loading:o=(0,v.jsx)(d.Skeleton.Avatar,{shape:"square",active:!0}),error:i=(0,v.jsx)(l.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:u,children:p,onClick:m,staticUrl:A}=e;const{staticUrl:_}=(0,f.usePreset)(),x=A||_||"";return(0,v.jsx)(n.default,{loader:g,params:{data:/^https?:\/\//.test(a)?a:x+a},error:u||i,loading:s||o,render:e=>{let{data:a}=e;return"function"===typeof p?p({alt:t,className:c()(r,h),src:a}):(0,v.jsx)("img",{alt:t,className:c()(r,h),src:a,onClick:m})}})},N=(0,o.A)(j),S=e=>{let{loading:a,error:r,src:t,id:s,alt:n,className:o,children:l,apis:i,onClick:c}=e;const d=a&&(0,u.cloneElement)(a,{className:m}),g=r&&(0,u.cloneElement)(r,{className:A});return t?(0,v.jsx)(j,{alt:n,className:o,data:t,loading:d,error:g,onClick:c,children:l}):s?(0,v.jsx)(N,{alt:n,className:o,id:s,loading:d,innerLoading:d,error:g,innerError:g,apis:i,onClick:c,children:l}):g},w=e=>{let{id:a,src:r,alt:n,onClick:o,loading:i=(0,v.jsx)(d.Skeleton.Avatar,{shape:"square",active:!0}),error:u=(0,v.jsx)(l.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:g,apis:h}=e,m=(0,s.A)(e,x);return(0,v.jsx)("div",(0,t.A)((0,t.A)({},m),{},{"data-testid":"components-core-image",className:c()(g,p),children:S({loading:i,error:u,src:r,id:a,alt:n,className:g,apis:h,onClick:o})}))};w.Avatar=e=>{let{id:a,src:r,alt:n,gender:o,loading:i=(0,v.jsx)(d.Skeleton.Avatar,{shape:"square",active:!0}),error:u=(0,v.jsx)(l.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:g,gap:h,icon:m,children:A,shape:f,size:x=100,width:j,height:N,defaultAvatar:w=_.A,apis:C}=e,y=(0,s.A)(e,k);const E=(()=>{const e=j&&N?{style:{width:j,height:N}}:{size:x};if(j&&j!==N&&(f="square"),a||r)return S({loading:i,error:u,src:r,defaultAvatar:w,id:a,alt:n,className:g,apis:C,children:a=>(0,v.jsx)(d.Avatar,(0,t.A)((0,t.A)({},a),{},{gap:h,shape:f},e))});if(o){const a=o&&["F","female","f"].indexOf(o)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,v.jsx)(d.Avatar,(0,t.A)((0,t.A)({},y),{},{src:(0,v.jsx)(l.default,{role:"touxiang",colorful:!0,type:a}),gap:h,shape:f},e))}return(0,v.jsx)(d.Avatar,(0,t.A)((0,t.A)((0,t.A)({},y),{},{gap:h,icon:m,shape:f,size:x,src:w},e),{},{children:A}))})();return(0,v.jsx)("div",(0,t.A)((0,t.A)({},y),{},{"data-testid":"components-core-image-avatar",className:c()(g,p),style:{width:j&&N?j:x,height:j&&N?N:x},children:E}))};const C=w}}]);
|
|
2
|
-
//# sourceMappingURL=6763.04d4503b.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,6890,7854,8731],{48731(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a.default});var a=l(98919),n=l(22717),r=l.n(n);const s=[{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}],i=[{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"}],o=[["openStatus",[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"closed",description:"\u5173\u95ed",type:"danger"}]],["commonStatus",()=>[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"close",description:"\u5173\u95ed",type:"danger"}]],["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",i],["phoneState",i],["degreeEnum",s],["degree",s]];(0,a.preset)({base:r()(o,(e,t)=>{e[t[0]]=t[1]},{})})},77765(e,t,l){"use strict";l.r(t),l.d(t,{AdvancedFilter:()=>Ke,AdvancedSelectFilterItem:()=>pe,CascaderFilterItem:()=>Se,CityFilterItem:()=>xe,DatePickerFilterItem:()=>ne,DateRangePickerFilterItem:()=>se,FilterItem:()=>P,FilterItemContainer:()=>He,FilterLines:()=>y,FilterProvider:()=>k,FilterValueDisplay:()=>C,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>fe,InputFilterItem:()=>je,NumberRangeFilterItem:()=>Ce,PopoverItem:()=>q,SearchInput:()=>we,SuperSelectFilterItem:()=>me,SuperSelectTableListFilterItem:()=>ve,SuperSelectUserFilterItem:()=>_e,TreeFilterItem:()=>ye,TypeDateRangePickerFilterItem:()=>ce,UserFilterItem:()=>he,advancedFields:()=>Ue,default:()=>Je,fields:()=>a,getFilterValue:()=>Ae,useFilter:()=>h,withFieldItem:()=>V,withFilterValue:()=>Ie});var a={};l.r(a),l.d(a,{AdvancedSelectFilterItem:()=>pe,CascaderFilterItem:()=>Se,CityFilterItem:()=>xe,DatePickerFilterItem:()=>ne,DateRangePickerFilterItem:()=>se,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>fe,InputFilterItem:()=>je,NumberRangeFilterItem:()=>Ce,SuperSelectFilterItem:()=>me,SuperSelectTableListFilterItem:()=>ve,SuperSelectUserFilterItem:()=>_e,TreeFilterItem:()=>ye,TypeDateRangePickerFilterItem:()=>ce,UserFilterItem:()=>he});var n=l(89379),r=l(53986),s=l(83136),i=l.n(s),o=l(73884),c=l(64671);const u={filter:"style_filter__Xml45__S130S","filter-item-icon":"style_filter-item-icon__kVCRK__S130S","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__S130S","filter-title":"style_filter-title__PlIpS__S130S","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__S130S","ad-filter-title":"style_ad-filter-title__5-OzD__S130S","ad-filter-line":"style_ad-filter-line__ga6UH__S130S","filter-line":"style_filter-line__E+cRh__S130S","clean-btn":"style_clean-btn__oSEvm__S130S","filter-item":"style_filter-item__Q2ncE__S130S","un-expand":"style_un-expand__4PFY8__S130S","ad-filter-selected":"style_ad-filter-selected__KbLfG__S130S","filter-label":"style_filter-label__qu26i__S130S","filter-item-wrap":"style_filter-item-wrap__rOq7H__S130S",option:"style_option__rd5Qo__S130S","is-active":"style_is-active__OArQI__S130S","is-visited":"style_is-visited__gZ5ni__S130S","un-expand-shadow":"style_un-expand-shadow__fj92e__S130S","filter-item-label":"style_filter-item-label__C781J__S130S","filter-item-field":"style_filter-item-field__Ltfr8__S130S","filter-drop-tag":"style_filter-drop-tag__DD-2P__S130S","filter-list-tag":"style_filter-list-tag__Qt5hA__S130S","filter-tag":"style_filter-tag__dUGfu__S130S","filter-tag-value":"style_filter-tag-value__p-SFv__S130S","pop-util-content":"style_pop-util-content__bx5zP__S130S","date-range-picker-popup":"style_date-range-picker-popup__vsjGw__S130S","pop-util-overlay":"style_pop-util-overlay__LEASt__S130S","pop-util-footer":"style_pop-util-footer__Xat1s__S130S","pop-util-text":"style_pop-util-text__pzeUy__S130S","filter-item-inner":"style_filter-item-inner__LVXgh__S130S","filter-item-text":"style_filter-item-text__MA8tU__S130S","filter-item-number-range":"style_filter-item-number-range__U-OgQ__S130S","filter-item-custom":"style_filter-item-custom__UusRa__S130S","filter-item-custom-active":"style_filter-item-custom-active__uFtny__S130S","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__S130S","filter-item-number-input":"style_filter-item-number-input__YPO6K__S130S","range-picker":"style_range-picker__c6ngq__S130S","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__S130S","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__S130S","filter-advanced":"style_filter-advanced__4cyDy__S130S","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__S130S","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__S130S","filter-advanced-more":"style_filter-advanced-more__OFXq4__S130S"};var d=l(55199),p=l(47458);const m=e=>({"en-US":()=>l.e(8869).then(l.bind(l,18869)),"zh-CN":()=>l.e(2363).then(l.bind(l,92363))}[e]()),v=(0,o.createContext)({}),{Provider:_}=v,h=()=>(0,o.useContext)(v);var g=l(33097),f=l.n(g),x=l(70579);const S=e=>{let{list:t,children:l}=e;const{value:a,onChange:r}=h();return(0,x.jsxs)("div",{className:u["filter-line"],children:[t.filter(e=>!!e.type).map((e,t)=>{if("function"===typeof e)return e(e=>({index:t,value:a?f()(a.get(null===e||void 0===e?void 0:e.name),"value"):null===e||void 0===e?void 0:e.value,onChange:r?t=>r({name:null===e||void 0===e?void 0:e.name,label:null===e||void 0===e?void 0:e.label,value:t}):null===e||void 0===e?void 0:e.onChange}));const l=e.type;return(0,o.createElement)(l,(0,n.A)((0,n.A)({},Object.assign({},e.props,{value:a?f()(a.get(e.props.name),"value"):e.props.value,onChange:r?t=>r({name:e.props.name,label:e.props.label,value:t}):e.props.onChange})),{},{key:e.key||e.props.name||t}))}),l]})},y=e=>{let{className:t,list:l=[],displayLine:a=1,label:n,extra:r,children:s}=e;const v=l.length>a,[_,h]=(0,o.useState)(!1);return(0,x.jsxs)(p.IntlProvider,{importMessages:m,moduleName:"Filter",children:[(0,x.jsxs)(d.Space,{className:i()(u["filter-title"],"filter-title",t),align:"top",size:16,children:[(0,x.jsx)("span",{className:u["filter-label"],children:l&&l.length>0&&(n||(0,x.jsx)(p.FormattedMessage,{id:"filterText",moduleName:"Filter",defaultMessage:"\u7b5b\u9009"}))}),(0,x.jsxs)(d.Row,{justify:"space-between",wrap:!1,align:"top",children:[(0,x.jsx)(d.Col,{className:u["filter-list"],flex:1,children:l.slice(0,a).map((e,t)=>(0,x.jsx)(S,{list:e,children:v&&!1===_&&t===a-1?(0,x.jsxs)(d.Space,{size:4,className:i()(u["filter-item"],u.option),onClick:()=>{h(e=>!e)},children:[(0,x.jsx)(p.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"}),(0,x.jsx)(c.default,{className:u["filter-item-option-icon"],type:"icon-arrow-thin-down"})]}):null},t))}),(0,x.jsx)(d.Col,{children:r})]})]}),(0,x.jsx)(d.Space,{className:i()(u["filter-title"],"filter-title-wrap"),align:"center",size:16,children:s}),(0,x.jsxs)(d.Space,{className:i()(u["filter-title"],"filter-title-wrap",{[u["filter-title-hidden"]]:!(v&&_)}),align:"top",size:16,children:[(0,x.jsx)("span",{className:u["filter-label"],children:(0,x.jsx)(p.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"})}),(0,x.jsx)("div",{className:u["filter-list"],children:l.slice(a).map((e,t)=>(0,x.jsx)(S,{list:e,children:t===l.length-a-1&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.Space,{size:4,className:i()(u["un-expand-shadow"]),children:(0,x.jsxs)(d.Space,{size:4,className:i()(u.option,u["filter-item"]),children:[(0,x.jsx)(p.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,x.jsx)(c.default,{className:u["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})}),(0,x.jsx)(d.Space,{size:4,className:i()(u["un-expand"]),onClick:()=>{h(e=>!e)},children:(0,x.jsxs)(d.Space,{size:4,className:i()(u.option,u["filter-item"]),children:[(0,x.jsx)(p.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,x.jsx)(c.default,{className:u["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})})]})},t))})]})]})};var j=l(3874);const C=e=>{let{value:t,extraExpand:l,onChange:a}=e;return(0,x.jsx)(p.IntlProvider,{importMessages:m,moduleName:"Filter",children:(0,x.jsxs)(d.Space,{className:u["filter-title"],align:"top",size:16,children:[(0,x.jsx)("span",{className:u["filter-label"],children:(0,x.jsx)(p.FormattedMessage,{id:"selectedText",moduleName:"Filter",defaultMessage:"\u60a8\u5df2\u9009\u62e9"})}),(0,x.jsxs)("div",{className:u["filter-line"],children:[t.map((e,l)=>{let{name:n,label:r,value:s}=e;return(0,x.jsx)(j.default,{type:"filterResult",filterName:r,text:Array.isArray(s)?s.map(e=>e.label).join("\uff0c"):s.label,closable:!0,onClose:()=>{const e=t.slice(0);e.splice(l,1),a(e)}},n)}),(0,x.jsxs)(d.Space,{size:4,className:i()(u["un-expand-shadow"]),children:[l,(0,x.jsx)(d.Button,{size:"small",children:(0,x.jsx)(p.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]}),(0,x.jsxs)(d.Space,{size:4,className:i()(u["un-expand"]),children:[l,(0,x.jsx)(d.Button,{size:"small",onClick:()=>{a([])},children:(0,x.jsx)(p.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]})]})]})})};var b=l(10986),F=l(41740),A=l.n(F),N=l(43856);const I=["children","className","defaultValue"],k=e=>{let{children:t,className:l,defaultValue:a=[]}=e,n=(0,r.A)(e,I);const[s,i]=(0,b.default)(n),c=(0,o.useMemo)(()=>s.filter(e=>(0,N.isNotEmpty)(e.value)),[s]),u=(0,o.useMemo)(()=>new Map(c.map(e=>[e.name,e])),[c]);return(0,x.jsx)(p.IntlProvider,{moduleName:"Filter",importMessages:m,children:(0,x.jsx)(_,{value:{value:u,onChange:e=>{const t=A()(u);e.value?t.set(e.name,e):t.delete(e.name),null===i||void 0===i||i(Array.from(t.values()))}},children:"function"===typeof t?t({props:n,value:c,onChange:i}):t})})},w=["children","className"],M=e=>{let{children:t,className:l}=e,a=(0,r.A)(e,w);return(0,x.jsx)(k,(0,n.A)((0,n.A)({},a),{},{children:e=>(0,x.jsx)("div",{className:i()(u.filter,"filter",l),children:t(e)})}))},z=["defaultValue"],E=["extraExpand"],T=e=>{let{defaultValue:t=[]}=e,l=(0,r.A)(e,z);return(0,x.jsx)(M,(0,n.A)((0,n.A)({},l),{},{defaultValue:t,children:e=>{let{props:t,value:l,onChange:a}=e;const{extraExpand:s}=t,i=(0,r.A)(t,E);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(y,(0,n.A)({},i)),l&&l.length>0&&(0,x.jsx)(C,{value:l,onChange:a,extraExpand:s})]})}}))};var O=l(55490);const P=e=>{let{open:t,active:l,label:a,children:n}=e;return(0,x.jsx)(d.Space,{className:u["filter-item-wrap"],children:(0,x.jsxs)("div",{className:i()(u["filter-item"],{[u["is-active"]]:l,[u["is-visited"]]:t}),children:[(0,x.jsxs)(d.Space,{className:u["filter-item-label"],size:4,children:[(0,x.jsx)("div",{children:a}),(0,x.jsx)(c.default,{className:u["filter-item-icon"],type:"icon-triangle-down"})]}),(0,x.jsx)("div",{className:u["filter-item-field"],children:n})]})})},D=["value","onChange","interceptor","label","render"],V=e=>t=>{let{value:l,onChange:a,interceptor:s,label:i,render:c}=t,d=(0,r.A)(t,D);const[p,m]=(0,o.useState)(!1),v=t=>(0,x.jsx)(e,(0,n.A)((0,n.A)({allowClear:!1},Object.assign({},d,t)),{},{className:u["filter-item-inner"],value:"function"===typeof(null===s||void 0===s?void 0:s.input)?s.input(l):l,onChange:"function"===typeof(null===s||void 0===s?void 0:s.output)?function(){return a(s.output(...arguments))}:a,valueType:"all",onOpenChange:m}));return(0,x.jsx)(P,{label:i,open:p,active:(0,O.A)(l),children:"function"===typeof c?c({children:v}):v()})};var R=l(12392),L=l(60586),Y=l(41654),U=l(93761),B=l(53392),Q=l(45776),K=l(67869);const q=e=>{let{value:t,label:l,onValidate:a,overlayClassName:n,placement:r="bottomLeft",onOpenChange:s,onChange:c,children:m}=e;const[v,_]=(0,o.useState)(t),[h,g]=(0,o.useState)(!1),f=(0,o.useMemo)(()=>a&&!a(v),[a,v]);return(0,x.jsx)(d.Popover,{open:h,trigger:"click",placement:r,arrow:!1,rootClassName:i()(u["pop-util-overlay"],n),onOpenChange:e=>{g(e),_(t),s&&s(e)},content:(0,x.jsxs)("span",{onClick:e=>{e.stopPropagation()},children:[(0,x.jsx)("div",{className:u["pop-util-content"],children:m({value:v,onChange:_})}),(0,x.jsxs)(d.Row,{className:u["pop-util-footer"],justify:"end",gutter:8,children:[(0,x.jsx)(d.Col,{children:(0,x.jsx)(d.Button,{size:"small",onClick:()=>{g(!1),s&&s(!1)},children:(0,x.jsx)(p.FormattedMessage,{id:"cancelText",moduleName:"Filter",defaultMessage:"\u53d6\u6d88"})})}),(0,x.jsx)(d.Col,{children:(0,x.jsx)(d.Button,{size:"small",type:"primary",disabled:f,onClick:()=>{g(!1),s&&s(!1),c&&c(v)},children:(0,x.jsx)(p.FormattedMessage,{id:"determineText",moduleName:"Filter",defaultMessage:"\u786e\u5b9a"})})})]})]}),children:(0,x.jsx)("span",{children:(0,x.jsx)(P,{open:h,active:(0,O.A)(t),label:l})})})},H=["label","value","onChange","placeholder","onValidate","overlayClassName","placement","onOpenChange"],J=e=>{let{label:t,value:l,onChange:a,placeholder:s,onValidate:i,overlayClassName:o,placement:c,onOpenChange:p}=e,m=(0,r.A)(e,H);return(0,x.jsx)(q,{label:t,value:l,onChange:a,onValidate:i,overlayClassName:o,placement:c,onOpenChange:p,children:e=>{let{value:l,onChange:a}=e;return(0,x.jsx)(d.Input,(0,n.A)((0,n.A)({},m),{},{placeholder:s||"\u8bf7\u8f93\u5165".concat(t),className:u["filter-item-text"],value:f()(l,"value",""),onChange:e=>a(e.target.value?{label:e.target.value,value:e.target.value}:null)}))}})};var X=l(79160),G=l.n(X);const Z=["label","value","onChange","placeholder","onValidate","overlayClassName","placement","onOpenChange","unit"],W=(e,t,l)=>G()(e[0])||G()(e[1])?{label:(e=>G()(e[0])&&G()(e[1])?"".concat(e[0],"-").concat(e[1]).concat(t||""):G()(e[0])?l({id:"over"},{count:e[0],unit:t}):G()(e[1])?l({id:"lessThan"},{count:e[1],unit:t}):void 0)(e),value:[e[0]||null,e[1]||null]}:null,$=e=>{const t=f()(e,"value");return!(t&&G()(t[0])&&G()(t[1])&&t[1]<t[0])},ee=e=>{let{label:t,value:l,onChange:a,placeholder:s,onValidate:i=$,overlayClassName:o,placement:c,onOpenChange:m,unit:v}=e,_=(0,r.A)(e,Z);const{formatMessage:h}=(0,p.useIntl)({moduleName:"Filter"});return(0,x.jsx)(q,{label:t,value:l,onChange:a,onValidate:i,overlayClassName:o,placement:c,onOpenChange:m,children:e=>{let{value:l,onChange:a}=e;return(0,x.jsxs)(d.Space.Compact,{children:[(0,x.jsx)(d.InputNumber,(0,n.A)((0,n.A)({},_),{},{placeholder:s||"".concat(h({id:"pleaseInput"})).concat(t),className:u["filter-item-number-range"],value:f()(l,"value[0]",""),onChange:e=>{a(W([e,f()(l,"value[1]")],v,h))}})),(0,x.jsx)(d.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),(0,x.jsx)(d.InputNumber,(0,n.A)((0,n.A)({},_),{},{placeholder:s||"".concat(h({id:"pleaseInput"})).concat(t),className:u["filter-item-number-range"],value:f()(l,"value[1]",""),onChange:e=>{a(W([f()(l,"value[0]"),e],v,h))}})),v&&(0,x.jsx)(d.Input,{style:{width:50,borderLeft:0},value:v,disabled:!0})]})}})};var te=l(57469),le=l.n(te);const ae=["value","onChange","picker"],ne=V(e=>{let{value:t,onChange:l,picker:a="date"}=e,s=(0,r.A)(e,ae);return(0,x.jsx)(d.DatePicker,(0,n.A)((0,n.A)({},s),{},{picker:a,value:t&&le()(t.value),onChange:e=>{const{format:t}=Object.assign({format:"YYYY-MM-DD"},s);e&&l({label:"date"!==a?"".concat(e.startOf(a).format(t),"~").concat(e.endOf(a).format(t)):e.format(t),value:new Date(e.startOf(a).valueOf())})}}))}),re=["value","onChange","header"],se=V(e=>{let{value:t,onChange:l,header:a}=e,s=(0,r.A)(e,re);return(0,x.jsxs)(d.Flex,{vertical:!0,children:["function"===typeof a?a({value:t,onChange:l}):a,(0,x.jsx)(d.DatePicker.RangePicker,(0,n.A)((0,n.A)({},s),{},{allowEmpty:[!1,!1],classNames:{popup:{root:u["date-range-picker-popup"]}},value:t&&Array.isArray(t.value)&&2===t.value.length&&t.value.map(e=>le()(e)),onChange:e=>{const{format:t}=Object.assign({format:"YYYY-MM-DD"},s);l({label:e.map(e=>e.format(t)).join("~"),value:e.map(e=>new Date(e.valueOf()))})}}))]})});var ie=l(89319);const oe=["label","value","onChange"],ce=e=>{let{label:t,value:l,onChange:a}=e,s=(0,r.A)(e,oe);return(0,x.jsx)(q,{label:t,value:l,onChange:a,onValidate:e=>{const t=null===e||void 0===e?void 0:e.value;return(null===t||void 0===t?void 0:t.type)&&Array.isArray(null===t||void 0===t?void 0:t.value)&&2===t.value.length},children:e=>{let{value:t,onChange:l}=e;return(0,x.jsx)(ie.A,(0,n.A)((0,n.A)({},s),{},{className:u["filter-item-text"],value:f()(t,"value"),onChange:e=>{const{format:t}=Object.assign({format:"YYYY-MM-DD"},s),a=(null===e||void 0===e?void 0:e.value)||[];l({label:a[0]&&!a[1]?"".concat(le()(a[0]).format(t),"\u4ee5\u540e"):!a[0]&&a[1]?"".concat(le()(a[1]).format(t),"\u4ee5\u524d"):a[0]&&a[1]?"".concat(le()(a[0]).format(t),"~").concat(le()(a[1]).format(t)):"",value:e})}}))}})},ue=["placeholder","label"],de=e=>t=>{let{placeholder:l,label:a}=t,s=(0,r.A)(t,ue);return(0,x.jsx)(p.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"Filter",values:{label:a},children:t=>(0,x.jsx)(e,(0,n.A)((0,n.A)({},s),{},{label:a,placeholder:l||t}))})},pe=V(R.Ay),me=V(L.Ay),ve=V(L.e0),_e=V(L.$9),he=V(R.Eo),ge=V(Y.A),fe=V(B.A),xe=V(U.Ay),Se=V(Q.Ay),ye=V(K.A),je=de(J),Ce=de(ee);var be=l(22717),Fe=l.n(be);const Ae=e=>Fe()(e,(e,t)=>{let{name:l,value:a}=t;e[l]=Array.isArray(a)?a.map(e=>{let{value:t}=e;return t}):null===a||void 0===a?void 0:a.value},{}),Ne=["name","label"],Ie=e=>t=>{let{name:l,label:a}=t,s=(0,r.A)(t,Ne);const{value:i,onChange:o}=h();return(0,x.jsx)(e,(0,n.A)((0,n.A)({},s),{},{label:a,onChange:o?e=>o({name:l,label:a,value:e}):s.onChange,value:i?f()(i.get(l),"value"):s.value}))},ke=["label","onChange","value","placeholder"],we=Ie(e=>{let{label:t,onChange:l,value:a,placeholder:s}=e,i=(0,r.A)(e,ke);const{formatMessage:o}=(0,p.useIntl)({moduleName:"Filter"});return(0,x.jsx)(N.SearchInput,(0,n.A)((0,n.A)({},i),{},{placeholder:s||o({id:"inputPlaceholder"},{label:t}),value:(null===a||void 0===a?void 0:a.value)||"",onSearch:e=>{l({label:e,value:e})}}))});var Me=l(72752);const ze=["value","onChange","single","maxLength","addressApi"],{CheckableTag:Ee}=d.Tag,Te=(0,U.DF)(e=>{let{value:t,onChange:l,single:a=!1,maxLength:s=5,addressApi:i}=e,c=(0,r.A)(e,ze);const{message:m}=d.App.useApp(),{locale:v}=(0,Me.usePreset)(),{formatMessage:_}=(0,p.useIntl)({moduleName:"Filter"}),h=(0,o.useMemo)(()=>i.getChinaHotCities(),[i]);return(0,x.jsxs)(x.Fragment,{children:[h.map(e=>{const{code:n}=e,r=(0,U.NY)(e,v);return(0,x.jsx)(Ee,{size:"small",checked:a?(null===t||void 0===t?void 0:t.value)===n:!!(t||[]).find(e=>{let{value:t}=e;return t===n}),onChange:e=>{if(a)return void l(e?{value:n,label:r}:null);const i=(t||[]).slice(0);e?i.push({value:n,label:r}):(()=>{const e=i.findIndex(e=>{let{value:t}=e;return t===n});i.splice(e,1)})(),i.length>s?m.error(_({id:"maxSelectedCount"},{count:s})):l(i)},children:r},n)}),(0,x.jsxs)(Ee,{className:u["filter-advanced-item-other"],size:"small",checked:(a?null===t||void 0===t?void 0:t.value:(null===t||void 0===t?void 0:t.value)&&t.value.length>0)&&!h.find(e=>{let{code:l}=e;return a?(null===t||void 0===t?void 0:t.value)===l:!!(t||[]).find(e=>{let{value:t}=e;return t===l})}),children:[(0,x.jsx)(p.FormattedMessage,{id:"otherText",moduleName:"Filter",defaultMessage:"\u5176\u4ed6"}),(0,x.jsx)(U.Ay,(0,n.A)((0,n.A)({},c),{},{className:u["filter-advanced-item-other-inner"],maxLength:s,value:a?null===t||void 0===t?void 0:t.value:(t||[]).map(e=>{let{value:t}=e;return t}),single:a,onChange:function(e){const t=e=>{const{city:t}=i.getCity(e);return{value:null===t||void 0===t?void 0:t.code,label:null===t||void 0===t?void 0:t.name}};l(a?t(e):e.map(e=>t(e)))}}))]})]})}),Oe=Te;var Pe=l(19853),De=l.n(Pe);const{CheckableTag:Ve}=d.Tag,Re=e=>{let{value:t,onChange:l,label:r,single:s=!1,maxLength:i=5,items:o=[],custom:c}=e;const{message:u}=d.App.useApp(),{formatMessage:m}=(0,p.useIntl)({moduleName:"Filter"});return(0,x.jsxs)(x.Fragment,{children:[o.map(e=>{let{label:a,value:n}=e;return(0,x.jsx)(Ve,{size:"small",checked:s?De()(n,null===t||void 0===t?void 0:t.value):!!(t||[]).find(e=>{let{value:t}=e;return De()(n,t)}),onChange:e=>{if(s)return void l(e?{value:n,label:a}:null);const r=(t||[]).slice(0);e?r.push({value:n,label:a}):(()=>{const e=r.find(e=>{let{value:t}=e;return De()(n,t)});r.splice(e,1)})(),r.length>i?u.error(m({id:"maxSelectedCount"},{count:i})):l(r)},children:a},a)}),c&&(()=>{const e=Object.values(a).find(e=>e===c.type);return e?(0,x.jsx)(e,(0,n.A)((0,n.A)({},c.props),{},{value:t,placeholder:"".concat(m({id:"pleaseInput"})).concat(r),onChange:l})):null})()]})};var Le=l(78491);const Ye=["value","label","onChange"],Ue={CityFilterItem:Oe,ListFilterItem:Re,InputFilterItem:e=>{let{value:t,label:l,onChange:a}=e,s=(0,r.A)(e,Ye);const i=null===t||void 0===t?void 0:t.value,[c,u]=(0,o.useState)(i||""),[m,v]=(0,o.useState)(!1),{formatMessage:_}=(0,p.useIntl)({moduleName:"Filter"}),h=()=>{a(c?{label:c,value:c}:null)},g=(0,Le.default)(()=>{v(!1),h()}),f=(0,o.useRef)("");return f.current=c,(0,o.useEffect)(()=>{i!==f.current&&u(i)},[i]),(0,x.jsx)("span",{ref:g,children:(0,x.jsxs)(d.Space.Compact,{children:[(0,x.jsx)(d.Input,(0,n.A)((0,n.A)({placeholder:"".concat(_({id:"pleaseInput"})).concat(l)},s),{},{size:"small",value:c,onFocus:()=>{v(!0)},onChange:e=>{u(e.target.value)},onPressEnter:h})),m&&(0,x.jsx)(d.Button,{size:"small",type:"primary",onClick:h,children:_({id:"search"})})]})})}},Be=e=>{let{list:t}=e;const{value:l,onChange:a}=h();return(0,x.jsx)(d.Flex,{gap:8,children:t.map((e,t)=>{const r=e.type;return(0,x.jsxs)(d.Flex,{gap:16,align:"center",children:[(0,x.jsxs)("div",{className:u["filter-label"],children:[e.props.label,":"]}),(0,x.jsx)(d.Flex,{wrap:!0,align:"center",children:(0,x.jsx)(r,(0,n.A)((0,n.A)({},e.props),{},{value:l?f()(l.get(e.props.name),"value"):e.props.value,onChange:a?t=>a({name:e.props.name,label:e.props.label,value:t}):e.props.onChange}))})]},e.key||e.props.name||t)})})},Qe=(0,p.createWithIntl)({importMessages:m,moduleName:"Filter"})(e=>{const{formatMessage:t}=(0,p.useIntl)({moduleName:"Filter"});return(0,x.jsx)(M,(0,n.A)((0,n.A)({},e),{},{children:e=>{let{value:l,onChange:a,props:n}=e;const{list:r,more:s}=n;return(0,x.jsxs)("div",{children:[(0,x.jsxs)(d.Flex,{gap:8,vertical:!0,className:u["filter-advanced"],children:[r.map((e,t)=>(0,x.jsx)(Be,{list:e},t)),s&&(0,x.jsx)(y,{className:u["filter-advanced-more"],label:"".concat(t({id:"moreText"}),":"),list:[s]})]}),l&&l.length>0&&(0,x.jsx)(C,{value:l,onChange:a})]})}}))});Qe.fields=Ue;const Ke=Qe,qe=["children"],He=e=>{let{children:t}=e;return t((0,r.A)(e,qe))};T.fields=a,T.getFilterValue=Ae,T.useFilter=h,T.SearchInput=we,T.withFilterValue=Ie,T.FilterProvider=k;const Je=T},3874(e,t,l){"use strict";l.r(t),l.d(t,{StateTagEnum:()=>h,default:()=>m});var a=l(89379),n=l(53986),r=l(73884),s=l(83136),i=l.n(s);const o={"state-tag":"style_state-tag__Kx27z__S130S","state-result-tag":"style_state-result-tag__CssDz__S130S","state-skill-tag":"style_state-skill-tag__k0bQE__S130S","event-tag":"style_event-tag__cg6SE__S130S","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__S130S","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__S130S","state-tag-filterResult":"style_state-tag-filterResult__KTkot__S130S","show-bg":"style_show-bg__OcL+R__S130S","tag-text":"style_tag-text__JHCt+__S130S","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__S130S"};var c=l(55199),u=l(70579);const d=["showBorder","text","type","showBackground","className","filterName"],p={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},m=e=>{let{showBorder:t=!1,text:l="",type:s="default",showBackground:m=!0,className:v,filterName:_}=e,h=(0,n.A)(e,d);const g=(0,r.useMemo)(()=>{var e,t;return{color:(null===p||void 0===p||null===(e=p[s])||void 0===e?void 0:e.color)||p[s],borderColor:(null===p||void 0===p||null===(t=p[s])||void 0===t?void 0:t.borderColor)||p[s]}},[s]);return(0,u.jsxs)(c.Space,{"data-testid":"components-core-state-tag",className:i()(o["state-tag-wrapper"],"filterResult"===s?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[_?(0,u.jsxs)("span",{className:o["state-tag-filter-name"],children:[_,":"]}):null,(0,u.jsx)(c.Tag,(0,a.A)((0,a.A)({color:g.color},h),{},{style:{background:m?g.color+"0F":"none",color:g.color,border:t?"1px solid ".concat(g.borderColor):"none"},className:i()(o["state-tag"],v,"result"===s?o["state-result-tag"]:"","skill"===s?o["state-skill-tag"]:"",o["state-tag-".concat(s)],m?o["show-bg"]:"",t?o["show-border"]:"",null!==h&&void 0!==h&&h.onClick?o["event-tag"]:""),children:(0,u.jsx)("span",{className:o["tag-text"],children:l})}))]})};var v=l(48731);const _=["moduleName","name"],h=e=>{let{moduleName:t,name:l}=e,r=(0,n.A)(e,_);return(0,u.jsx)(v.default,{moduleName:t,name:l,children:e=>(0,u.jsx)(m,(0,a.A)((0,a.A)({},r),{},{text:e.description},e))})}},79160(e,t,l){var a=l(16913),n=l(22761);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==a(e)}}}]);
|
|
2
|
-
//# sourceMappingURL=7854.1ecd2ba7.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__S130S","all-no-start-icon":"style_all-no-start-icon__CA+zR__S130S","no-start-icon":"style_no-start-icon__LnC1S__S130S","has-children":"style_has-children__m9tce__S130S","has-children-node":"style_has-children-node__2bhEB__S130S","is-root":"style_is-root__4hhOc__S130S",title:"style_title__+Hcar__S130S",active:"style_active__WU49K__S130S","no-collapse":"style_no-collapse__aIZBM__S130S","title-content":"style_title-content__cQXpK__S130S",loading:"style_loading__1pU4P__S130S"};var r=t(83136),o=t.n(r),i=t(55199),c=t(94679),d=t(29053),h=t(10986),p=t(64671),u=t(73884),_=t(18081),y=t.n(_),m=t(87558),f=t(70579);const g=["className","allowCollapsed","pathMatch","defaultItems"],S=["children","key","originItem"],K=e=>{const s=(0,c.useNavigate)(),{id:t,className:n,label:a,iconType:r,icon:h,path:u,request:_,onClick:y,isOpen:g,isSelected:S,onOpenChange:K,children:v,fetchOptions:O,depth:C,onLoad:A,allowCollapsed:k}=e,j=Array.isArray(v)&&v.length>0||O,{refresh:b,isLoading:x}=(0,m.useFetch)(Object.assign({},O,{auto:!k&&O,onRequestSuccess:e=>{A(e)}}));return(0,f.jsx)(d.default,{request:_,children:(0,f.jsxs)("div",{className:o()(n,l["menu-item"]),children:[(0,f.jsxs)("div",{className:o()(l.title,{[l.active]:S,[l["has-children"]]:j,[l["no-collapse"]]:j&&!k,[l["no-start-icon"]]:!r&&!h,[l["is-root"]]:0===C}),onClick:n=>{n.stopPropagation(),j||!u?j||O?k&&(O&&b({}),K(!g)):null===y||void 0===y||y(t,e):s(u)},children:[r&&!h&&(0,f.jsx)(p.default,{type:r}),h||null,(0,f.jsx)("span",{className:l["title-content"],children:a}),j&&k&&(0,f.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),j?!k||g&&v?(0,f.jsx)("div",{className:l["children-list"],children:v}):!k||g&&x?(0,f.jsx)("div",{className:l["children-list"],children:(0,f.jsx)(i.Spin,{className:l.loading,size:"small"})}):void 0:null]})})},v=e=>{let{className:s,allowCollapsed:t=!0,pathMatch:r,defaultItems:i=[]}=e,d=(0,a.A)(e,g);const{pathname:p,search:_}=(0,c.useLocation)(),[m,v]=(0,h.default)(d,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[O,C]=(0,h.default)((0,n.A)({defaultItems:i},d),{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:A,defaultOpenKeys:k,links:j,childrenKeys:b,hasStartIcon:x,hasChildren:N}=(0,u.useMemo)(()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,a)=>{const{parentKey:l,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},a);return Array.isArray(e)&&e.length>0?e.map((e,a)=>{const o="".concat(e.key||"".concat("root"!==l?"".concat(l,"-"):"","node-").concat(a));s[l]||(s[l]=[]),s[l].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[l].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:l,depth:r,children:i,originItem:e});return t[o]=c,c}):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(O);let a=!1,l=!1;const r=[],o=[];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&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(l=!0,o.push(s.key))}),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:a,hasChildren:l}},[O]);(0,u.useEffect)(()=>{const e=j.find(e=>{let{path:s}=e;return"function"===typeof r?r(s,{pathname:p,search:_}):y()(p.replace(/[#,?].*/,""))===y()(s)||y()(p+_)===y()(s)});e&&v(e.key)},[j,p,_,v,r]);const[I,q]=(0,h.default)(Object.assign({},d,{defaultOpenKeys:d.defaultOpenKeys||k}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),w=(0,u.useCallback)((e,s)=>{const{parentKey:l,depth:r,selectedKey:o,openKeys:i,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,S);return(0,u.createElement)(K,(0,n.A)((0,n.A)({},Object.assign({},p)),{},{id:d,parentId:l,depth:r,allowCollapsed:t,isSelected:d===o||b[d]&&b[d].indexOf(o)>-1,onClick:v,onLoad:e=>{C(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:(i||[]).indexOf(d)>-1,key:d,onOpenChange:()=>{q(e=>{const s=e.slice(0);return e.indexOf(d)>-1?s.splice(e.indexOf(d),1):s.push(d),s})}}),w(s,{parentKey:l,depth:r+1,selectedKey:o,openKeys:i,paths:[...c,d]}))}):null},[C,q,v,b,t]);return(0,f.jsx)("div",{className:o()(s,l.menu,{[l["all-no-start-icon"]]:!x,[l["has-children-node"]]:N}),children:w(A,{selectedKey:m,openKeys:I})})}},29053(e,s,t){t.r(s),t.d(s,{computedIsPass:()=>y,default:()=>g,usePermissions:()=>m,usePermissionsPass:()=>f});var n=t(89379),a=t(53986),l=t(73884),r=t(55199),o=t(33097),i=t.n(o),c=t(83136),d=t.n(c);const h="style_outer__vbHB9__S130S";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&&i()(e,t)||[]}},f=e=>{let{request:s}=e;const{permissions:t}=m();return y({permissions:t,request:s})},g=e=>{let{type:s="hidden",className:t,tagName:o="span",message:i="\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458",request:c,children:p}=e,y=(0,a.A)(e,_);const m=f({request:c});return"function"===typeof p?p({isPass:m,type:s,request:c}):!0===m?p:"error"===s?(0,u.jsx)(r.Result,{status:"403",subTitle:i}):"tooltip"===s?(0,u.jsx)(r.Tooltip,{title:i,children:(0,l.createElement)(o,(0,n.A)((0,n.A)({},y),{},{className:d()(h,t)}),p)}):null}}}]);
|
|
2
|
-
//# sourceMappingURL=8593.8f1d700a.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[8731,9666],{25644(e,t,n){n.d(t,{A:()=>l});const l={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}))}}},48731(e,t,n){n.r(t),n.d(t,{default:()=>l.default});var l=n(98919),a=n(22717),s=n.n(a);const r=[{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}],i=[{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"}],o=[["openStatus",[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"closed",description:"\u5173\u95ed",type:"danger"}]],["commonStatus",()=>[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"close",description:"\u5173\u95ed",type:"danger"}]],["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",i],["phoneState",i],["degreeEnum",r],["degree",r]];(0,l.preset)({base:s()(o,(e,t)=>{e[t[0]]=t[1]},{})})},63361(e,t,n){n.r(t),n.d(t,{default:()=>y,useFeatureCall:()=>f});var l=n(73884),a=n(72752),s=n(33097),r=n.n(s),i=n(15797),o=n.n(i),c=n(1488),d=n.n(c),u=n(70579);const m=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach(e=>{m(e,t,n)}):(t(Object.assign({},d()(e,["children"]),{parentId:n})),m(e.children,t,n?n+":"+e.id:e.id)))},p=o()(e=>{const t=(()=>{const t=new Map;return m(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:l}=t;const a=n.get(e);return-1!==l.indexOf(e)&&!0!==a.close&&r()(a,"dependencies",[]).every(t=>{const a=n.get(e);return l.indexOf(t)>-1&&!0!==a.close})},_=(0,l.createContext)(null),{Provider:g}=_,f=e=>{const{features:t,profile:n,profileMap:s,debug:i}=(()=>{const e=(0,a.usePreset)(),{profile:t,debug:n}=r()(e,"features",{debug:!1,profile:{}});return Object.assign({},p(t),{debug:n})})(),o="system"===n.type?n.id:"root",c=(0,l.useContext)(_),d=c?c+":"+e:o+":"+e;return(0,l.useEffect)(()=>{t&&t.length>0&&i&&console.log("[featureId] ".concat(d,",[state] ").concat(h(d,{features:t,profileMap:s})),s.get(d))},[t,s,i,d]),{isPass:!(e&&t&&t.length>0)||h(d,{features:t,profileMap:s}),currentId:d,feature:s.get(d)}},y=e=>{let{id:t,children:n}=e;const{isPass:l,feature:a,currentId:s}=f(t);return(0,u.jsx)(g,{value:s,children:"function"===typeof n?n({isPass:l,options:l?r()(a,"options"):r()(a,"rejectedOptions"),currentId:s}):l&&n})}},77765(e,t,n){n.r(t),n.d(t,{AdvancedFilter:()=>Ue,AdvancedSelectFilterItem:()=>me,CascaderFilterItem:()=>xe,CityFilterItem:()=>ve,DatePickerFilterItem:()=>ae,DateRangePickerFilterItem:()=>re,FilterItem:()=>T,FilterItemContainer:()=>qe,FilterLines:()=>S,FilterProvider:()=>F,FilterValueDisplay:()=>b,FunctionSelectFilterItem:()=>fe,IndustrySelectFilterItem:()=>ye,InputFilterItem:()=>je,NumberRangeFilterItem:()=>be,PopoverItem:()=>W,SearchInput:()=>Ie,SuperSelectFilterItem:()=>pe,SuperSelectTableListFilterItem:()=>he,SuperSelectUserFilterItem:()=>_e,TreeFilterItem:()=>Se,TypeDateRangePickerFilterItem:()=>ce,UserFilterItem:()=>ge,advancedFields:()=>Ve,default:()=>Ge,fields:()=>l,getFilterValue:()=>Ne,useFilter:()=>g,withFieldItem:()=>L,withFilterValue:()=>Ee});var l={};n.r(l),n.d(l,{AdvancedSelectFilterItem:()=>me,CascaderFilterItem:()=>xe,CityFilterItem:()=>ve,DatePickerFilterItem:()=>ae,DateRangePickerFilterItem:()=>re,FunctionSelectFilterItem:()=>fe,IndustrySelectFilterItem:()=>ye,InputFilterItem:()=>je,NumberRangeFilterItem:()=>be,SuperSelectFilterItem:()=>pe,SuperSelectTableListFilterItem:()=>he,SuperSelectUserFilterItem:()=>_e,TreeFilterItem:()=>Se,TypeDateRangePickerFilterItem:()=>ce,UserFilterItem:()=>ge});var a=n(89379),s=n(53986),r=n(83136),i=n.n(r),o=n(73884),c=n(64671);const d={filter:"style_filter__Xml45__S130S","filter-item-icon":"style_filter-item-icon__kVCRK__S130S","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__S130S","filter-title":"style_filter-title__PlIpS__S130S","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__S130S","ad-filter-title":"style_ad-filter-title__5-OzD__S130S","ad-filter-line":"style_ad-filter-line__ga6UH__S130S","filter-line":"style_filter-line__E+cRh__S130S","clean-btn":"style_clean-btn__oSEvm__S130S","filter-item":"style_filter-item__Q2ncE__S130S","un-expand":"style_un-expand__4PFY8__S130S","ad-filter-selected":"style_ad-filter-selected__KbLfG__S130S","filter-label":"style_filter-label__qu26i__S130S","filter-item-wrap":"style_filter-item-wrap__rOq7H__S130S",option:"style_option__rd5Qo__S130S","is-active":"style_is-active__OArQI__S130S","is-visited":"style_is-visited__gZ5ni__S130S","un-expand-shadow":"style_un-expand-shadow__fj92e__S130S","filter-item-label":"style_filter-item-label__C781J__S130S","filter-item-field":"style_filter-item-field__Ltfr8__S130S","filter-drop-tag":"style_filter-drop-tag__DD-2P__S130S","filter-list-tag":"style_filter-list-tag__Qt5hA__S130S","filter-tag":"style_filter-tag__dUGfu__S130S","filter-tag-value":"style_filter-tag-value__p-SFv__S130S","pop-util-content":"style_pop-util-content__bx5zP__S130S","date-range-picker-popup":"style_date-range-picker-popup__vsjGw__S130S","pop-util-overlay":"style_pop-util-overlay__LEASt__S130S","pop-util-footer":"style_pop-util-footer__Xat1s__S130S","pop-util-text":"style_pop-util-text__pzeUy__S130S","filter-item-inner":"style_filter-item-inner__LVXgh__S130S","filter-item-text":"style_filter-item-text__MA8tU__S130S","filter-item-number-range":"style_filter-item-number-range__U-OgQ__S130S","filter-item-custom":"style_filter-item-custom__UusRa__S130S","filter-item-custom-active":"style_filter-item-custom-active__uFtny__S130S","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__S130S","filter-item-number-input":"style_filter-item-number-input__YPO6K__S130S","range-picker":"style_range-picker__c6ngq__S130S","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__S130S","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__S130S","filter-advanced":"style_filter-advanced__4cyDy__S130S","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__S130S","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__S130S","filter-advanced-more":"style_filter-advanced-more__OFXq4__S130S"};var u=n(55199),m=n(47458);const p=e=>({"en-US":()=>n.e(8869).then(n.bind(n,18869)),"zh-CN":()=>n.e(2363).then(n.bind(n,92363))}[e]()),h=(0,o.createContext)({}),{Provider:_}=h,g=()=>(0,o.useContext)(h);var f=n(33097),y=n.n(f),v=n(70579);const x=e=>{let{list:t,children:n}=e;const{value:l,onChange:s}=g();return(0,v.jsxs)("div",{className:d["filter-line"],children:[t.filter(e=>!!e.type).map((e,t)=>{if("function"===typeof e)return e(e=>({index:t,value:l?y()(l.get(null===e||void 0===e?void 0:e.name),"value"):null===e||void 0===e?void 0:e.value,onChange:s?t=>s({name:null===e||void 0===e?void 0:e.name,label:null===e||void 0===e?void 0:e.label,value:t}):null===e||void 0===e?void 0:e.onChange}));const n=e.type;return(0,o.createElement)(n,(0,a.A)((0,a.A)({},Object.assign({},e.props,{value:l?y()(l.get(e.props.name),"value"):e.props.value,onChange:s?t=>s({name:e.props.name,label:e.props.label,value:t}):e.props.onChange})),{},{key:e.key||e.props.name||t}))}),n]})},S=e=>{let{className:t,list:n=[],displayLine:l=1,label:a,extra:s,children:r}=e;const h=n.length>l,[_,g]=(0,o.useState)(!1);return(0,v.jsxs)(m.IntlProvider,{importMessages:p,moduleName:"Filter",children:[(0,v.jsxs)(u.Space,{className:i()(d["filter-title"],"filter-title",t),align:"top",size:16,children:[(0,v.jsx)("span",{className:d["filter-label"],children:n&&n.length>0&&(a||(0,v.jsx)(m.FormattedMessage,{id:"filterText",moduleName:"Filter",defaultMessage:"\u7b5b\u9009"}))}),(0,v.jsxs)(u.Row,{justify:"space-between",wrap:!1,align:"top",children:[(0,v.jsx)(u.Col,{className:d["filter-list"],flex:1,children:n.slice(0,l).map((e,t)=>(0,v.jsx)(x,{list:e,children:h&&!1===_&&t===l-1?(0,v.jsxs)(u.Space,{size:4,className:i()(d["filter-item"],d.option),onClick:()=>{g(e=>!e)},children:[(0,v.jsx)(m.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"}),(0,v.jsx)(c.default,{className:d["filter-item-option-icon"],type:"icon-arrow-thin-down"})]}):null},t))}),(0,v.jsx)(u.Col,{children:s})]})]}),(0,v.jsx)(u.Space,{className:i()(d["filter-title"],"filter-title-wrap"),align:"center",size:16,children:r}),(0,v.jsxs)(u.Space,{className:i()(d["filter-title"],"filter-title-wrap",{[d["filter-title-hidden"]]:!(h&&_)}),align:"top",size:16,children:[(0,v.jsx)("span",{className:d["filter-label"],children:(0,v.jsx)(m.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"})}),(0,v.jsx)("div",{className:d["filter-list"],children:n.slice(l).map((e,t)=>(0,v.jsx)(x,{list:e,children:t===n.length-l-1&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(u.Space,{size:4,className:i()(d["un-expand-shadow"]),children:(0,v.jsxs)(u.Space,{size:4,className:i()(d.option,d["filter-item"]),children:[(0,v.jsx)(m.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,v.jsx)(c.default,{className:d["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})}),(0,v.jsx)(u.Space,{size:4,className:i()(d["un-expand"]),onClick:()=>{g(e=>!e)},children:(0,v.jsxs)(u.Space,{size:4,className:i()(d.option,d["filter-item"]),children:[(0,v.jsx)(m.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,v.jsx)(c.default,{className:d["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})})]})},t))})]})]})};var j=n(3874);const b=e=>{let{value:t,extraExpand:n,onChange:l}=e;return(0,v.jsx)(m.IntlProvider,{importMessages:p,moduleName:"Filter",children:(0,v.jsxs)(u.Space,{className:d["filter-title"],align:"top",size:16,children:[(0,v.jsx)("span",{className:d["filter-label"],children:(0,v.jsx)(m.FormattedMessage,{id:"selectedText",moduleName:"Filter",defaultMessage:"\u60a8\u5df2\u9009\u62e9"})}),(0,v.jsxs)("div",{className:d["filter-line"],children:[t.map((e,n)=>{let{name:a,label:s,value:r}=e;return(0,v.jsx)(j.default,{type:"filterResult",filterName:s,text:Array.isArray(r)?r.map(e=>e.label).join("\uff0c"):r.label,closable:!0,onClose:()=>{const e=t.slice(0);e.splice(n,1),l(e)}},a)}),(0,v.jsxs)(u.Space,{size:4,className:i()(d["un-expand-shadow"]),children:[n,(0,v.jsx)(u.Button,{size:"small",children:(0,v.jsx)(m.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]}),(0,v.jsxs)(u.Space,{size:4,className:i()(d["un-expand"]),children:[n,(0,v.jsx)(u.Button,{size:"small",onClick:()=>{l([])},children:(0,v.jsx)(m.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]})]})]})})};var C=n(10986),A=n(41740),N=n.n(A),w=n(43856);const E=["children","className","defaultValue"],F=e=>{let{children:t,className:n,defaultValue:l=[]}=e,a=(0,s.A)(e,E);const[r,i]=(0,C.default)(a),c=(0,o.useMemo)(()=>r.filter(e=>(0,w.isNotEmpty)(e.value)),[r]),d=(0,o.useMemo)(()=>new Map(c.map(e=>[e.name,e])),[c]);return(0,v.jsx)(m.IntlProvider,{moduleName:"Filter",importMessages:p,children:(0,v.jsx)(_,{value:{value:d,onChange:e=>{const t=N()(d);e.value?t.set(e.name,e):t.delete(e.name),null===i||void 0===i||i(Array.from(t.values()))}},children:"function"===typeof t?t({props:a,value:c,onChange:i}):t})})},I=["children","className"],O=e=>{let{children:t,className:n}=e,l=(0,s.A)(e,I);return(0,v.jsx)(F,(0,a.A)((0,a.A)({},l),{},{children:e=>(0,v.jsx)("div",{className:i()(d.filter,"filter",n),children:t(e)})}))},R=["defaultValue"],k=["extraExpand"],M=e=>{let{defaultValue:t=[]}=e,n=(0,s.A)(e,R);return(0,v.jsx)(O,(0,a.A)((0,a.A)({},n),{},{defaultValue:t,children:e=>{let{props:t,value:n,onChange:l}=e;const{extraExpand:r}=t,i=(0,s.A)(t,k);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(S,(0,a.A)({},i)),n&&n.length>0&&(0,v.jsx)(b,{value:n,onChange:l,extraExpand:r})]})}}))};var P=n(55490);const T=e=>{let{open:t,active:n,label:l,children:a}=e;return(0,v.jsx)(u.Space,{className:d["filter-item-wrap"],children:(0,v.jsxs)("div",{className:i()(d["filter-item"],{[d["is-active"]]:n,[d["is-visited"]]:t}),children:[(0,v.jsxs)(u.Space,{className:d["filter-item-label"],size:4,children:[(0,v.jsx)("div",{children:l}),(0,v.jsx)(c.default,{className:d["filter-item-icon"],type:"icon-triangle-down"})]}),(0,v.jsx)("div",{className:d["filter-item-field"],children:a})]})})},z=["value","onChange","interceptor","label","render"],L=e=>t=>{let{value:n,onChange:l,interceptor:r,label:i,render:c}=t,u=(0,s.A)(t,z);const[m,p]=(0,o.useState)(!1),h=t=>(0,v.jsx)(e,(0,a.A)((0,a.A)({allowClear:!1},Object.assign({},u,t)),{},{className:d["filter-item-inner"],value:"function"===typeof(null===r||void 0===r?void 0:r.input)?r.input(n):n,onChange:"function"===typeof(null===r||void 0===r?void 0:r.output)?function(){return l(r.output(...arguments))}:l,valueType:"all",onOpenChange:p}));return(0,v.jsx)(T,{label:i,open:m,active:(0,P.A)(n),children:"function"===typeof c?c({children:h}):h()})};var K=n(12392),D=n(60586),H=n(41654),V=n(93761),B=n(53392),Y=n(45776),U=n(67869);const W=e=>{let{value:t,label:n,onValidate:l,overlayClassName:a,placement:s="bottomLeft",onOpenChange:r,onChange:c,children:p}=e;const[h,_]=(0,o.useState)(t),[g,f]=(0,o.useState)(!1),y=(0,o.useMemo)(()=>l&&!l(h),[l,h]);return(0,v.jsx)(u.Popover,{open:g,trigger:"click",placement:s,arrow:!1,rootClassName:i()(d["pop-util-overlay"],a),onOpenChange:e=>{f(e),_(t),r&&r(e)},content:(0,v.jsxs)("span",{onClick:e=>{e.stopPropagation()},children:[(0,v.jsx)("div",{className:d["pop-util-content"],children:p({value:h,onChange:_})}),(0,v.jsxs)(u.Row,{className:d["pop-util-footer"],justify:"end",gutter:8,children:[(0,v.jsx)(u.Col,{children:(0,v.jsx)(u.Button,{size:"small",onClick:()=>{f(!1),r&&r(!1)},children:(0,v.jsx)(m.FormattedMessage,{id:"cancelText",moduleName:"Filter",defaultMessage:"\u53d6\u6d88"})})}),(0,v.jsx)(u.Col,{children:(0,v.jsx)(u.Button,{size:"small",type:"primary",disabled:y,onClick:()=>{f(!1),r&&r(!1),c&&c(h)},children:(0,v.jsx)(m.FormattedMessage,{id:"determineText",moduleName:"Filter",defaultMessage:"\u786e\u5b9a"})})})]})]}),children:(0,v.jsx)("span",{children:(0,v.jsx)(T,{open:g,active:(0,P.A)(t),label:n})})})},q=["label","value","onChange","placeholder","onValidate","overlayClassName","placement","onOpenChange"],G=e=>{let{label:t,value:n,onChange:l,placeholder:r,onValidate:i,overlayClassName:o,placement:c,onOpenChange:m}=e,p=(0,s.A)(e,q);return(0,v.jsx)(W,{label:t,value:n,onChange:l,onValidate:i,overlayClassName:o,placement:c,onOpenChange:m,children:e=>{let{value:n,onChange:l}=e;return(0,v.jsx)(u.Input,(0,a.A)((0,a.A)({},p),{},{placeholder:r||"\u8bf7\u8f93\u5165".concat(t),className:d["filter-item-text"],value:y()(n,"value",""),onChange:e=>l(e.target.value?{label:e.target.value,value:e.target.value}:null)}))}})};var Q=n(79160),J=n.n(Q);const X=["label","value","onChange","placeholder","onValidate","overlayClassName","placement","onOpenChange","unit"],Z=(e,t,n)=>J()(e[0])||J()(e[1])?{label:(e=>J()(e[0])&&J()(e[1])?"".concat(e[0],"-").concat(e[1]).concat(t||""):J()(e[0])?n({id:"over"},{count:e[0],unit:t}):J()(e[1])?n({id:"lessThan"},{count:e[1],unit:t}):void 0)(e),value:[e[0]||null,e[1]||null]}:null,$=e=>{const t=y()(e,"value");return!(t&&J()(t[0])&&J()(t[1])&&t[1]<t[0])},ee=e=>{let{label:t,value:n,onChange:l,placeholder:r,onValidate:i=$,overlayClassName:o,placement:c,onOpenChange:p,unit:h}=e,_=(0,s.A)(e,X);const{formatMessage:g}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsx)(W,{label:t,value:n,onChange:l,onValidate:i,overlayClassName:o,placement:c,onOpenChange:p,children:e=>{let{value:n,onChange:l}=e;return(0,v.jsxs)(u.Space.Compact,{children:[(0,v.jsx)(u.InputNumber,(0,a.A)((0,a.A)({},_),{},{placeholder:r||"".concat(g({id:"pleaseInput"})).concat(t),className:d["filter-item-number-range"],value:y()(n,"value[0]",""),onChange:e=>{l(Z([e,y()(n,"value[1]")],h,g))}})),(0,v.jsx)(u.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),(0,v.jsx)(u.InputNumber,(0,a.A)((0,a.A)({},_),{},{placeholder:r||"".concat(g({id:"pleaseInput"})).concat(t),className:d["filter-item-number-range"],value:y()(n,"value[1]",""),onChange:e=>{l(Z([y()(n,"value[0]"),e],h,g))}})),h&&(0,v.jsx)(u.Input,{style:{width:50,borderLeft:0},value:h,disabled:!0})]})}})};var te=n(57469),ne=n.n(te);const le=["value","onChange","picker"],ae=L(e=>{let{value:t,onChange:n,picker:l="date"}=e,r=(0,s.A)(e,le);return(0,v.jsx)(u.DatePicker,(0,a.A)((0,a.A)({},r),{},{picker:l,value:t&&ne()(t.value),onChange:e=>{const{format:t}=Object.assign({format:"YYYY-MM-DD"},r);e&&n({label:"date"!==l?"".concat(e.startOf(l).format(t),"~").concat(e.endOf(l).format(t)):e.format(t),value:new Date(e.startOf(l).valueOf())})}}))}),se=["value","onChange","header"],re=L(e=>{let{value:t,onChange:n,header:l}=e,r=(0,s.A)(e,se);return(0,v.jsxs)(u.Flex,{vertical:!0,children:["function"===typeof l?l({value:t,onChange:n}):l,(0,v.jsx)(u.DatePicker.RangePicker,(0,a.A)((0,a.A)({},r),{},{allowEmpty:[!1,!1],classNames:{popup:{root:d["date-range-picker-popup"]}},value:t&&Array.isArray(t.value)&&2===t.value.length&&t.value.map(e=>ne()(e)),onChange:e=>{const{format:t}=Object.assign({format:"YYYY-MM-DD"},r);n({label:e.map(e=>e.format(t)).join("~"),value:e.map(e=>new Date(e.valueOf()))})}}))]})});var ie=n(89319);const oe=["label","value","onChange"],ce=e=>{let{label:t,value:n,onChange:l}=e,r=(0,s.A)(e,oe);return(0,v.jsx)(W,{label:t,value:n,onChange:l,onValidate:e=>{const t=null===e||void 0===e?void 0:e.value;return(null===t||void 0===t?void 0:t.type)&&Array.isArray(null===t||void 0===t?void 0:t.value)&&2===t.value.length},children:e=>{let{value:t,onChange:n}=e;return(0,v.jsx)(ie.A,(0,a.A)((0,a.A)({},r),{},{className:d["filter-item-text"],value:y()(t,"value"),onChange:e=>{const{format:t}=Object.assign({format:"YYYY-MM-DD"},r),l=(null===e||void 0===e?void 0:e.value)||[];n({label:l[0]&&!l[1]?"".concat(ne()(l[0]).format(t),"\u4ee5\u540e"):!l[0]&&l[1]?"".concat(ne()(l[1]).format(t),"\u4ee5\u524d"):l[0]&&l[1]?"".concat(ne()(l[0]).format(t),"~").concat(ne()(l[1]).format(t)):"",value:e})}}))}})},de=["placeholder","label"],ue=e=>t=>{let{placeholder:n,label:l}=t,r=(0,s.A)(t,de);return(0,v.jsx)(m.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"Filter",values:{label:l},children:t=>(0,v.jsx)(e,(0,a.A)((0,a.A)({},r),{},{label:l,placeholder:n||t}))})},me=L(K.Ay),pe=L(D.Ay),he=L(D.e0),_e=L(D.$9),ge=L(K.Eo),fe=L(H.A),ye=L(B.A),ve=L(V.Ay),xe=L(Y.Ay),Se=L(U.A),je=ue(G),be=ue(ee);var Ce=n(22717),Ae=n.n(Ce);const Ne=e=>Ae()(e,(e,t)=>{let{name:n,value:l}=t;e[n]=Array.isArray(l)?l.map(e=>{let{value:t}=e;return t}):null===l||void 0===l?void 0:l.value},{}),we=["name","label"],Ee=e=>t=>{let{name:n,label:l}=t,r=(0,s.A)(t,we);const{value:i,onChange:o}=g();return(0,v.jsx)(e,(0,a.A)((0,a.A)({},r),{},{label:l,onChange:o?e=>o({name:n,label:l,value:e}):r.onChange,value:i?y()(i.get(n),"value"):r.value}))},Fe=["label","onChange","value","placeholder"],Ie=Ee(e=>{let{label:t,onChange:n,value:l,placeholder:r}=e,i=(0,s.A)(e,Fe);const{formatMessage:o}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsx)(w.SearchInput,(0,a.A)((0,a.A)({},i),{},{placeholder:r||o({id:"inputPlaceholder"},{label:t}),value:(null===l||void 0===l?void 0:l.value)||"",onSearch:e=>{n({label:e,value:e})}}))});var Oe=n(72752);const Re=["value","onChange","single","maxLength","addressApi"],{CheckableTag:ke}=u.Tag,Me=(0,V.DF)(e=>{let{value:t,onChange:n,single:l=!1,maxLength:r=5,addressApi:i}=e,c=(0,s.A)(e,Re);const{message:p}=u.App.useApp(),{locale:h}=(0,Oe.usePreset)(),{formatMessage:_}=(0,m.useIntl)({moduleName:"Filter"}),g=(0,o.useMemo)(()=>i.getChinaHotCities(),[i]);return(0,v.jsxs)(v.Fragment,{children:[g.map(e=>{const{code:a}=e,s=(0,V.NY)(e,h);return(0,v.jsx)(ke,{size:"small",checked:l?(null===t||void 0===t?void 0:t.value)===a:!!(t||[]).find(e=>{let{value:t}=e;return t===a}),onChange:e=>{if(l)return void n(e?{value:a,label:s}:null);const i=(t||[]).slice(0);e?i.push({value:a,label:s}):(()=>{const e=i.findIndex(e=>{let{value:t}=e;return t===a});i.splice(e,1)})(),i.length>r?p.error(_({id:"maxSelectedCount"},{count:r})):n(i)},children:s},a)}),(0,v.jsxs)(ke,{className:d["filter-advanced-item-other"],size:"small",checked:(l?null===t||void 0===t?void 0:t.value:(null===t||void 0===t?void 0:t.value)&&t.value.length>0)&&!g.find(e=>{let{code:n}=e;return l?(null===t||void 0===t?void 0:t.value)===n:!!(t||[]).find(e=>{let{value:t}=e;return t===n})}),children:[(0,v.jsx)(m.FormattedMessage,{id:"otherText",moduleName:"Filter",defaultMessage:"\u5176\u4ed6"}),(0,v.jsx)(V.Ay,(0,a.A)((0,a.A)({},c),{},{className:d["filter-advanced-item-other-inner"],maxLength:r,value:l?null===t||void 0===t?void 0:t.value:(t||[]).map(e=>{let{value:t}=e;return t}),single:l,onChange:function(e){const t=e=>{const{city:t}=i.getCity(e);return{value:null===t||void 0===t?void 0:t.code,label:null===t||void 0===t?void 0:t.name}};n(l?t(e):e.map(e=>t(e)))}}))]})]})}),Pe=Me;var Te=n(19853),ze=n.n(Te);const{CheckableTag:Le}=u.Tag,Ke=e=>{let{value:t,onChange:n,label:s,single:r=!1,maxLength:i=5,items:o=[],custom:c}=e;const{message:d}=u.App.useApp(),{formatMessage:p}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsxs)(v.Fragment,{children:[o.map(e=>{let{label:l,value:a}=e;return(0,v.jsx)(Le,{size:"small",checked:r?ze()(a,null===t||void 0===t?void 0:t.value):!!(t||[]).find(e=>{let{value:t}=e;return ze()(a,t)}),onChange:e=>{if(r)return void n(e?{value:a,label:l}:null);const s=(t||[]).slice(0);e?s.push({value:a,label:l}):(()=>{const e=s.find(e=>{let{value:t}=e;return ze()(a,t)});s.splice(e,1)})(),s.length>i?d.error(p({id:"maxSelectedCount"},{count:i})):n(s)},children:l},l)}),c&&(()=>{const e=Object.values(l).find(e=>e===c.type);return e?(0,v.jsx)(e,(0,a.A)((0,a.A)({},c.props),{},{value:t,placeholder:"".concat(p({id:"pleaseInput"})).concat(s),onChange:n})):null})()]})};var De=n(78491);const He=["value","label","onChange"],Ve={CityFilterItem:Pe,ListFilterItem:Ke,InputFilterItem:e=>{let{value:t,label:n,onChange:l}=e,r=(0,s.A)(e,He);const i=null===t||void 0===t?void 0:t.value,[c,d]=(0,o.useState)(i||""),[p,h]=(0,o.useState)(!1),{formatMessage:_}=(0,m.useIntl)({moduleName:"Filter"}),g=()=>{l(c?{label:c,value:c}:null)},f=(0,De.default)(()=>{h(!1),g()}),y=(0,o.useRef)("");return y.current=c,(0,o.useEffect)(()=>{i!==y.current&&d(i)},[i]),(0,v.jsx)("span",{ref:f,children:(0,v.jsxs)(u.Space.Compact,{children:[(0,v.jsx)(u.Input,(0,a.A)((0,a.A)({placeholder:"".concat(_({id:"pleaseInput"})).concat(n)},r),{},{size:"small",value:c,onFocus:()=>{h(!0)},onChange:e=>{d(e.target.value)},onPressEnter:g})),p&&(0,v.jsx)(u.Button,{size:"small",type:"primary",onClick:g,children:_({id:"search"})})]})})}},Be=e=>{let{list:t}=e;const{value:n,onChange:l}=g();return(0,v.jsx)(u.Flex,{gap:8,children:t.map((e,t)=>{const s=e.type;return(0,v.jsxs)(u.Flex,{gap:16,align:"center",children:[(0,v.jsxs)("div",{className:d["filter-label"],children:[e.props.label,":"]}),(0,v.jsx)(u.Flex,{wrap:!0,align:"center",children:(0,v.jsx)(s,(0,a.A)((0,a.A)({},e.props),{},{value:n?y()(n.get(e.props.name),"value"):e.props.value,onChange:l?t=>l({name:e.props.name,label:e.props.label,value:t}):e.props.onChange}))})]},e.key||e.props.name||t)})})},Ye=(0,m.createWithIntl)({importMessages:p,moduleName:"Filter"})(e=>{const{formatMessage:t}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsx)(O,(0,a.A)((0,a.A)({},e),{},{children:e=>{let{value:n,onChange:l,props:a}=e;const{list:s,more:r}=a;return(0,v.jsxs)("div",{children:[(0,v.jsxs)(u.Flex,{gap:8,vertical:!0,className:d["filter-advanced"],children:[s.map((e,t)=>(0,v.jsx)(Be,{list:e},t)),r&&(0,v.jsx)(S,{className:d["filter-advanced-more"],label:"".concat(t({id:"moreText"}),":"),list:[r]})]}),n&&n.length>0&&(0,v.jsx)(b,{value:n,onChange:l})]})}}))});Ye.fields=Ve;const Ue=Ye,We=["children"],qe=e=>{let{children:t}=e;return t((0,s.A)(e,We))};M.fields=l,M.getFilterValue=Ne,M.useFilter=g,M.SearchInput=Ie,M.withFilterValue=Ee,M.FilterProvider=F;const Ge=M},75363(e,t,n){n.r(t),n.d(t,{default:()=>_});const l=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var a=n(47458),s=n(64671),r=n(55199),i=n(83136),o=n.n(i);const c="style_helper-guide__K5xFw__S130S",d="style_inner__bMKeU__S130S",u="style_content__xTfWZ__S130S",m="style_link__93j7O__S130S";var p=n(48731),h=n(70579);const _=e=>{let{name:t,className:n}=e;return(0,h.jsx)(a.IntlProvider,{importMessages:l,moduleName:"HelperGuide",children:(0,h.jsx)(p.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:o()(c,n),children:(0,h.jsxs)(r.Space,{className:d,size:4,children:[(0,h.jsx)(s.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:u,children:e.content}),e.url&&(0,h.jsxs)(r.Typography.Link,{className:m,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(s.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},53132(e,t,n){n.r(t),n.d(t,{Affix:()=>z,Menu:()=>$.default,Page:()=>P,PageHeader:()=>se,PermissionsPage:()=>Z,StateBarPage:()=>ue,TablePage:()=>oe,default:()=>J});var l=n(89379),a=n(55199),s=n(73884);const r={menu:null,filter:null,menuOpen:!0,menuWidth:"240px",menuCloseWidth:"0px",menuFixed:!0,menuCloseButton:!0,backgroundColor:null,header:null,headerHeight:0,headerFixed:!0,headerInfo:null,backUrl:null,title:null,titleExtra:null,titleLeftExtra:null,noMargin:!1,noPadding:!1,optionFooterHeight:0,option:null,optionWidth:"400px",optionNoPadding:!1,optionFixed:!0,optionFooter:null,isMobile:!1},i=(0,s.createContext)({}),{Provider:o,Consumer:c}=i,d=()=>(0,s.useContext)(i);var u=n(62243),m=n(76801),p=n(36755),h=n(53986),_=n(19853),g=n.n(_),f=n(63361),y=n(83136),v=n.n(y);const x={layout:"style_layout__k+lxR__S130S","page-content":"style_page-content__4XeN8__S130S","page-main":"style_page-main__P0yEF__S130S","page-main-content":"style_page-main-content__1OVPN__S130S","table-page":"style_table-page__JkbLf__S130S","helper-guide":"style_helper-guide__vzw4z__S130S","page-outer":"style_page-outer__2a6iH__S130S","no-margin":"style_no-margin__S6caT__S130S","page-menu":"style_page-menu__CZSa9__S130S",closed:"style_closed__hmnft__S130S","page-menu-inner":"style_page-menu-inner__rmKpu__S130S","page-menu-main":"style_page-menu-main__OXg2M__S130S","page-option-main":"style_page-option-main__LyfT3__S130S","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__S130S","page-option":"style_page-option__diS2S__S130S","page-option-inner":"style_page-option-inner__Fj1JH__S130S","page-option-footer":"style_page-option-footer__d7xE0__S130S","fixed-container":"style_fixed-container__1VZwY__S130S","is-fixed":"style_is-fixed__1aQhp__S130S","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__S130S","page-menu-btn":"style_page-menu-btn__BiTy8__S130S","page-title":"style_page-title__zw-Fd__S130S","page-title-text":"style_page-title-text__Rj4RC__S130S","no-padding":"style_no-padding__V7Dwy__S130S","page-header":"style_page-header__a813p__S130S","page-header-info":"style_page-header-info__cMrZR__S130S","layout-menu":"style_layout-menu__yiab0__S130S","sub-menu":"style_sub-menu__dyqK7__S130S","no-collapsed":"style_no-collapsed__76h8W__S130S","has-not-children":"style_has-not-children__fnjRK__S130S","table-page-top":"style_table-page-top__bt1l9__S130S","error-component":"style_error-component__HvghB__S130S","state-bar-page":"style_state-bar-page__+aUM4__S130S","back-icon":"style_back-icon__79v2G__S130S","mobile-menu-drawer":"style_mobile-menu-drawer__rVhzO__S130S","mobile-menu-wrapper":"style_mobile-menu-wrapper__fPk6W__S130S","mobile-menu-content":"style_mobile-menu-content__fXIhZ__S130S","in-drawer":"style_in-drawer__FRIxz__S130S","is-mobile":"style_is-mobile__ghvS4__S130S"};var S=n(70579);const j=e=>{let{className:t,isFixed:n,children:l}=e;return n?(0,S.jsx)("div",{className:v()(t,"fixed-container",x["fixed-container"],{[x["is-fixed"]]:n}),children:l}):(0,S.jsx)("div",{className:v()(t,"fixed-container",x["fixed-container"]),children:l})};var b=n(64671),C=n(17342),A=n(94679),N=n(33097),w=n.n(N),E=n(55490),F=n(25644);const I="CORE_PAGE_MENU_OPEN_KEY",O=e=>{let{isMobile:t}=e;const{pageProps:n,setPageProps:l}=d(),{menu:r,menuOpen:i,menuWidth:o,menuCloseWidth:c,menuFixed:u,menuCloseButton:m}=n,[p,h]=(0,s.useState)(!1),_=(0,A.useLocation)().pathname.split("/")[1];return t&&r?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(j,{className:v()(x["page-menu-btn-outer"],"core-page-menu-btn-outer",{[x["is-fixed"]]:u}),isFixed:u,children:(0,S.jsx)(a.Button,{className:v()(x["page-menu-btn"],{[x.closed]:!0}),icon:(0,S.jsx)(b.default,{type:"icon-arrow-bold-right"}),onClick:()=>h(!0)})}),(0,S.jsxs)(a.Drawer,{placement:"left",open:p,onClose:()=>h(!1),width:o,className:x["mobile-menu-drawer"],closable:!1,styles:{body:{padding:0,position:"relative",height:"100vh"}},children:[(0,S.jsx)(a.Button,{className:v()(x["page-menu-btn"]),icon:(0,S.jsx)(b.default,{type:"icon-arrow-bold-left"}),onClick:()=>h(!1)}),(0,S.jsx)("div",{className:x["mobile-menu-wrapper"],children:(0,S.jsx)(C.A,{className:x["mobile-menu-content"],children:"function"===typeof r?r({open:!0}):r})})]})]}):r?(0,S.jsxs)(a.Col,{className:v()(x["page-menu"],"core-page-menu",{[x.closed]:!i}),style:{"--menu-width":o,"--menu-close-width":c},children:[(0,S.jsx)(j,{className:x["page-menu-inner"],isFixed:u,children:(0,S.jsx)("div",{className:x["page-menu-main-outer"],children:(0,S.jsx)(C.A,{className:x["page-menu-main"],children:"function"===typeof r?r({open:i}):r})})}),m?(0,S.jsx)(j,{className:v()(x["page-menu-btn-outer"],"core-page-menu-btn-outer",{[x["is-fixed"]]:u}),isFixed:u,children:(0,S.jsx)(a.Button,{className:v()(x["page-menu-btn"],{[x.closed]:!i}),icon:i?(0,S.jsx)(b.default,{type:"icon-arrow-bold-left"}):(0,S.jsx)(b.default,{type:"icon-arrow-bold-right"}),onClick:()=>{l({menuOpen:!n.menuOpen});const e=F.A.getItem(I)||{};e[_]=!n.menuOpen,F.A.setItem(I,e),l({menuOpen:!n.menuOpen})}})}):null]}):null},R=["children","isPass"],k=["featureId","name","openFeatures"],M=e=>{let{children:t,isPass:n}=e,l=(0,h.A)(e,R);const{setPageProps:i}=d(),o=(0,s.useRef)(null),c=(()=>{const e=(0,A.useLocation)().pathname.split("/")[1];return(0,s.useMemo)(()=>{const t=F.A.getItem(I)||{};return!(0,E.A)(w()(t,e))||w()(t,e)},[e])})(),u=(0,s.useRef)(c);return u.current=c,(0,s.useEffect)(()=>{if(!g()(o.current,l)){o.current=l;const e=Object.assign({},r,l,"boolean"===typeof u.current?{menuOpen:u.current}:{});e.header&&0===e.headerHeight&&delete e.headerHeight,e.optionFooter&&0===e.optionFooterHeight&&delete e.optionFooter,i(e)}},[l,i]),!1===n?(0,S.jsx)(a.Result,{status:"403",subTitle:"\u6682\u672a\u5f00\u653e\u6b64\u529f\u80fd"}):t},P=e=>{const t=Object.assign({},r,e),{featureId:n,name:a,openFeatures:i}=t,o=(0,h.A)(t,k);return!0===i?(0,S.jsx)(f.default,{id:a,children:e=>{let{isPass:t}=e;return(0,s.createElement)(M,(0,l.A)((0,l.A)({},o),{},{key:a,isPass:t}))}}):(0,s.createElement)(M,(0,l.A)((0,l.A)({},o),{},{key:a}))},T=["isFixed","offsetTop","offsetBottom","onChange"],z=e=>{let{isFixed:t,offsetTop:n,offsetBottom:s,onChange:r}=e,i=(0,h.A)(e,T);return t?(0,S.jsx)(a.Affix,(0,l.A)((0,l.A)({},i),{},{offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:s,onChange:r})):(0,S.jsx)("div",(0,l.A)({},i))},L=["targetKey"],K=e=>{let{targetKey:t}=e,n=(0,h.A)(e,L);const a=(e=>{let{targetKey:t}=e;const{setPageProps:n}=d(),l=(0,s.useRef)(null);return(0,s.useLayoutEffect)(()=>{const e=()=>{n({[t]:l.current.offsetHeight})};e();const a=new MutationObserver(e);return a.observe(l.current,{subtree:!0,childList:!0}),()=>{a.disconnect()}},[n,t]),l})({targetKey:t});return(0,S.jsx)("div",(0,l.A)((0,l.A)({},n),{},{ref:a}))},D=()=>{const{pageProps:e}=d(),{header:t,headerFixed:n}=e;return t?(0,S.jsx)(z,{isFixed:n,className:x["page-header"],offsetTop:u.navigationHeight,children:(0,S.jsx)(K,{targetKey:"headerHeight",children:t})}):null},H=()=>{const{pageProps:e}=d(),{headerInfo:t}=e,n=(0,s.useRef)(null);return t?(0,S.jsx)("div",{ref:n,className:v()(x["page-header-info"],"page-header-info"),children:t}):null};var V=n(77765);const B=e=>{let{title:t,filter:n,titleExtra:s,titleLeftExtra:r,backUrl:i}=e;const o=(0,A.useNavigate)();return n?(0,S.jsx)(V.default,(0,l.A)((0,l.A)({className:x["page-title"]},n),{},{extra:s})):t||r||s?(0,S.jsxs)(a.Row,{justify:"space-between",align:"middle",className:x["page-title"],children:[(0,S.jsx)(a.Col,{flex:1,children:(0,S.jsxs)(a.Flex,{gap:8,align:"center",children:[t?(0,S.jsx)("div",{className:x["page-title-text"],children:i?(0,S.jsxs)(a.Flex,{gap:8,align:"center",children:[(0,S.jsx)("span",{className:x["back-icon"],onClick:()=>{o(i)},children:(0,S.jsx)(b.default,{type:"icon-arrow-thin-left"})}),(0,S.jsx)("span",{children:t})]}):t}):null,r||null]})}),(0,S.jsx)(a.Col,{children:s})]}):null},Y=()=>{const{pageProps:e}=d(),{option:t,optionWidth:n,optionFixed:l,optionFooter:s,optionFooterHeight:r,optionNoPadding:i}=e;return t?(0,S.jsx)(a.Col,{className:v()(x["page-option"],"page-option"),style:{"--width":n,"--foot-height":r+"px"},children:(0,S.jsxs)(j,{className:x["page-option-inner"],isFixed:l,children:[(0,S.jsx)(C.A,{className:v()(x["page-option-main"],"page-option-main"),style:{padding:i?"0px":"var(--padding-width)"},children:t}),s?(0,S.jsx)(K,{className:x["page-option-footer"],targetKey:"optionFooterHeight",children:(0,S.jsx)(a.Space,{align:"center",children:s})}):null]})}):null};var U=n(75363),W=n(29053);const{Content:q}=a.Layout,G=()=>(0,S.jsx)(a.Alert,{message:"\u7cfb\u7edf\u51fa\u4e86\u70b9\u5c0f\u95ee\u9898\uff0c\u53ef\u5237\u65b0\u9875\u9762\u8fdb\u884c\u89e3\u51b3",showIcon:!0,type:"error",action:(0,S.jsx)(a.Button,{size:"small",danger:!0,onClick:()=>window.location.reload(),children:"\u5237\u65b0"})}),Q=e=>(0,S.jsx)(p.A,(0,l.A)((0,l.A)({},e),{},{errorComponent:G})),J=e=>{let{className:t,children:n,theme:i,navigation:c={},isMobile:d}=e;const[p,h]=(0,s.useState)(0),[_,g]=(0,s.useState)(Object.assign({},r)),{permissions:f}=(0,W.usePermissions)(),y=(e=>{const[t,n]=(0,s.useState)(window.innerWidth);return(0,s.useEffect)(()=>{const e=()=>n(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,s.useMemo)(()=>"boolean"===typeof e?e:t<768,[e,t])})(d),j=(0,s.useCallback)(e=>g(t=>Object.assign({},t,e)),[]);return(0,s.useEffect)(()=>{const e=(0,m.h)(),t=()=>{h(e.scrollLeft)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}},[]),(0,S.jsxs)(a.Layout,{className:v()(x.layout,t,"core-layout",{[x["is-mobile"]]:y}),style:Object.assign({},{"--nav-height":u.navigationHeight+"px","--nav-height-base":"var(--nav-height)","--scroll-left":-p+"px"},i),children:[c&&(0,S.jsx)(Q,{children:(0,S.jsx)(u.default,(0,l.A)((0,l.A)({permissions:f},c),{},{onChange:e=>{(null===c||void 0===c?void 0:c.onChange)&&c.onChange(e)}}))}),(0,S.jsx)(Q,{children:(0,S.jsx)(q,{className:v()(x["layout-content-wrap"],"core-layout-content-wrap"),children:(0,S.jsxs)(o,{value:{pageProps:_,setPageProps:j,isMobile:y},children:[(0,S.jsx)(Q,{children:(0,S.jsx)(D,{})}),(0,S.jsx)(Q,{children:(0,S.jsx)(H,{})}),(0,S.jsx)(Q,{children:(0,S.jsxs)(a.Row,{className:v()(_.className,x["page-outer"]),wrap:!1,style:{"--nav-height":"calc(".concat(_.headerFixed?_.headerHeight:0,"px + var(--nav-height-base))"),"--nav-only-height":"var(--nav-height-base)"},children:[(0,S.jsx)(Q,{children:(0,S.jsx)(O,{isMobile:y})}),(0,S.jsx)(a.Col,{className:v()(x["page-content"],"core-page-content",{[x["no-margin"]]:_.noMargin}),flex:1,style:{"--background-color":_.backgroundColor},children:(0,S.jsxs)("div",{className:v()(x["page-main"],"core-page-main"),children:[(0,S.jsx)(Q,{children:(0,S.jsx)(B,{title:_.title,backUrl:_.backUrl,filter:_.filter,titleExtra:_.titleExtra,titleLeftExtra:_.titleLeftExtra})}),(0,S.jsx)("div",{className:v()(x["page-main-content"],"core-page-main-content",{[x["no-padding"]]:_.noPadding}),children:(0,S.jsxs)(Q,{children:[_.helperGuideName&&(0,S.jsx)(U.default,{className:v()(x["helper-guide-page"],"core-helper-guide-page"),name:_.helperGuideName}),n]})})]})}),(0,S.jsx)(Q,{children:(0,S.jsx)(Y,{})})]})})]})})})]})},X=["permissions"],Z=e=>{let{permissions:t}=e,n=(0,h.A)(e,X);return(0,S.jsx)(W.default,(0,l.A)((0,l.A)({},Object.assign({},t,{type:"error"})),{},{children:(0,S.jsx)(P,(0,l.A)({},n))}))};var $=n(28148);const ee=e=>({"en-US":()=>n.e(7317).then(n.bind(n,27317)),"zh-CN":()=>n.e(9051).then(n.bind(n,99051))}[e]());var te=n(6617),ne=n(47458);const le={"page-header":"style_page-header__l3LiS__S130S",main:"style_main__X1Ynh__S130S","icon-outer":"style_icon-outer__6F97H__S130S",title:"style_title__dNWQj__S130S",info:"style_info__yF-4c__S130S",overlay:"style_overlay__SWqqE__S130S",tags:"style_tags__5+zDU__S130S","tag-split":"style_tag-split__V6SqP__S130S","button-options":"style_button-options__f1-gI__S130S"},ae=e=>{let{className:t,title:n,icon:r,iconType:i,info:o,tags:c,tagSplit:d=(0,S.jsx)("span",{className:le["tag-split"],children:"|"}),tagClassName:u="",buttonOptions:m,buttonOptionsMaxWidth:p,addonBefore:h,addonAfter:_,children:g}=e;return(0,S.jsxs)(a.Row,{className:v()(t,le["page-header"]),wrap:!1,gutter:10,children:[h&&(0,S.jsx)(a.Col,{children:h}),(0,S.jsx)(a.Col,{flex:1,children:(0,S.jsxs)(a.Space,{direction:"vertical",children:[(0,S.jsxs)(a.Row,{wrap:!1,children:[(0,S.jsx)(a.Col,{flex:1,className:le.main,children:(0,S.jsxs)(a.Space,{align:"start",children:[r&&(0,S.jsx)("div",{className:le["icon-outer"],children:r}),!r&&i&&(0,S.jsx)("div",{className:le["icon-outer"],children:(0,S.jsx)(b.default,{colorful:!0,type:i,size:24})}),(0,S.jsx)("div",{className:le.title,children:n}),o&&(0,S.jsx)("div",{className:le.info,children:o})]})}),m&&(0,S.jsxs)(a.Col,{flex:1,className:le["button-options"],style:{"--max-width":p},children:[(0,s.isValidElement)(m)&&m,"object"===typeof m&&Array.isArray(null===m||void 0===m?void 0:m.list)&&(0,S.jsx)(te.default,(0,l.A)({},m))]})]}),c&&(0,S.jsx)(a.Space,{className:u,split:d,size:[16,8],children:c.map((e,t)=>(0,S.jsx)("div",{className:le.tags,children:e},t))}),g]})}),_&&(0,S.jsx)(a.Col,{children:_})]})},se=e=>(0,S.jsx)(ne.IntlProvider,{importMessages:ee,moduleName:"PageHeader",children:(0,S.jsx)(ae,(0,l.A)({},e))});var re=n(11598);const ie=["helperGuideName","permissions","page","openFeatures","name","topArea"],oe=(0,s.forwardRef)((e,t)=>{let{helperGuideName:n,permissions:a,page:r,openFeatures:i,name:o,topArea:c}=e,d=(0,h.A)(e,ie);const[u,m]=(0,s.useState)(null);return(0,S.jsxs)(Z,(0,l.A)((0,l.A)({name:o,openFeatures:i,permissions:a},r),{},{children:[c?(0,S.jsx)("div",{className:x["table-page-top"],children:"function"===typeof c?c(u):c}):null,(0,S.jsxs)("div",{className:x["table-page"],children:[n&&(0,S.jsx)(U.default,{className:v()("helper-guide",x["helper-guide"]),name:n}),(0,S.jsx)(re.TablePage,(0,l.A)((0,l.A)({},d),{},{ref:t,name:o,onRequestSuccess:e=>{m(e)}}))]})]}))});var ce=n(87227);const de=["helperGuideName","permissions","page","stateBar","children"],ue=e=>{let{helperGuideName:t,permissions:n,page:a,stateBar:s,children:r}=e,i=(0,h.A)(e,de);return(0,S.jsxs)(Z,(0,l.A)((0,l.A)((0,l.A)({},a),{},{permissions:n},i),{},{children:[(0,S.jsx)("div",{className:x["state-bar-page"],children:(0,S.jsx)(ce.default,(0,l.A)({},s))}),t&&(0,S.jsx)(U.default,{className:x["helper-guide"],name:t}),r]}))}},28148(e,t,n){n.r(t),n.d(t,{default:()=>S});var l=n(89379),a=n(53986);const s={menu:"style_menu__gvIvn__S130S","all-no-start-icon":"style_all-no-start-icon__CA+zR__S130S","no-start-icon":"style_no-start-icon__LnC1S__S130S","has-children":"style_has-children__m9tce__S130S","has-children-node":"style_has-children-node__2bhEB__S130S","is-root":"style_is-root__4hhOc__S130S",title:"style_title__+Hcar__S130S",active:"style_active__WU49K__S130S","no-collapse":"style_no-collapse__aIZBM__S130S","title-content":"style_title-content__cQXpK__S130S",loading:"style_loading__1pU4P__S130S"};var r=n(83136),i=n.n(r),o=n(55199),c=n(94679),d=n(29053),u=n(10986),m=n(64671),p=n(73884),h=n(18081),_=n.n(h),g=n(87558),f=n(70579);const y=["className","allowCollapsed","pathMatch","defaultItems"],v=["children","key","originItem"],x=e=>{const t=(0,c.useNavigate)(),{id:n,className:l,label:a,iconType:r,icon:u,path:p,request:h,onClick:_,isOpen:y,isSelected:v,onOpenChange:x,children:S,fetchOptions:j,depth:b,onLoad:C,allowCollapsed:A}=e,N=Array.isArray(S)&&S.length>0||j,{refresh:w,isLoading:E}=(0,g.useFetch)(Object.assign({},j,{auto:!A&&j,onRequestSuccess:e=>{C(e)}}));return(0,f.jsx)(d.default,{request:h,children:(0,f.jsxs)("div",{className:i()(l,s["menu-item"]),children:[(0,f.jsxs)("div",{className:i()(s.title,{[s.active]:v,[s["has-children"]]:N,[s["no-collapse"]]:N&&!A,[s["no-start-icon"]]:!r&&!u,[s["is-root"]]:0===b}),onClick:l=>{l.stopPropagation(),N||!p?N||j?A&&(j&&w({}),x(!y)):null===_||void 0===_||_(n,e):t(p)},children:[r&&!u&&(0,f.jsx)(m.default,{type:r}),u||null,(0,f.jsx)("span",{className:s["title-content"],children:a}),N&&A&&(0,f.jsx)(m.default,{type:y?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),N?!A||y&&S?(0,f.jsx)("div",{className:s["children-list"],children:S}):!A||y&&E?(0,f.jsx)("div",{className:s["children-list"],children:(0,f.jsx)(o.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},S=e=>{let{className:t,allowCollapsed:n=!0,pathMatch:r,defaultItems:o=[]}=e,d=(0,a.A)(e,y);const{pathname:m,search:h}=(0,c.useLocation)(),[g,S]=(0,u.default)(d,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[j,b]=(0,u.default)((0,l.A)({defaultItems:o},d),{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:C,defaultOpenKeys:A,links:N,childrenKeys:w,hasStartIcon:E,hasChildren:F}=(0,p.useMemo)(()=>{var e;const{items:t,childrenKeys:n,nodeMapping:l}=(e=>{const t={},n=[],l=(e,a)=>{const{parentKey:s,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},a);return Array.isArray(e)&&e.length>0?e.map((e,a)=>{const i="".concat(e.key||"".concat("root"!==s?"".concat(s,"-"):"","node-").concat(a));t[s]||(t[s]=[]),t[s].push(i);const o=l(e.children,{parentKey:i,depth:r+1});t[i]&&t[s].push(...t[i]);const c=Object.assign({},e,{key:i,parentKey:s,depth:r,children:o,originItem:e});return n[i]=c,c}):null};return{items:l(e),childrenKeys:t,nodeMapping:n}})(j);let a=!1,s=!1;const r=[],i=[];return null===n||void 0===n||null===(e=n.root)||void 0===e||e.forEach(e=>{const t=l[e];(t.iconType||t.icon)&&(a=!0),t.path&&r.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(s=!0,i.push(t.key))}),{defaultOpenKeys:i,links:r,items:t,childrenKeys:n,hasStartIcon:a,hasChildren:s}},[j]);(0,p.useEffect)(()=>{const e=N.find(e=>{let{path:t}=e;return"function"===typeof r?r(t,{pathname:m,search:h}):_()(m.replace(/[#,?].*/,""))===_()(t)||_()(m+h)===_()(t)});e&&S(e.key)},[N,m,h,S,r]);const[I,O]=(0,u.default)(Object.assign({},d,{defaultOpenKeys:d.defaultOpenKeys||A}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),R=(0,p.useCallback)((e,t)=>{const{parentKey:s,depth:r,selectedKey:i,openKeys:o,paths:c}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map(e=>{let{children:t,key:d,originItem:u}=e,m=(0,a.A)(e,v);return(0,p.createElement)(x,(0,l.A)((0,l.A)({},Object.assign({},m)),{},{id:d,parentId:s,depth:r,allowCollapsed:n,isSelected:d===i||w[d]&&w[d].indexOf(i)>-1,onClick:S,onLoad:e=>{b(t=>{const n=t=>Array.isArray(t)&&t.length>0?t.map(t=>Object.assign({},t,{children:u===t?e:n(t.children)})):null;return n(t)})},isOpen:(o||[]).indexOf(d)>-1,key:d,onOpenChange:()=>{O(e=>{const t=e.slice(0);return e.indexOf(d)>-1?t.splice(e.indexOf(d),1):t.push(d),t})}}),R(t,{parentKey:s,depth:r+1,selectedKey:i,openKeys:o,paths:[...c,d]}))}):null},[b,O,S,w,n]);return(0,f.jsx)("div",{className:i()(t,s.menu,{[s["all-no-start-icon"]]:!E,[s["has-children-node"]]:F}),children:R(C,{selectedKey:g,openKeys:I})})}},62243(e,t,n){n.r(t),n.d(t,{default:()=>O,mobileBreakpoint:()=>w,navigationHeight:()=>N});var l=n(89379),a=n(53986),s=n(55199),r=n(1919),i=n(94679),o=n(33097),c=n.n(o),d=n(73884),u=n(83136),m=n.n(u);const p=n.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var h=n(40438),_=n(52526);const g={defaultTitle:"KneUnion",indexLabel:"\u9996\u9875",overflowedIndicator:"\u66f4\u591a"},f={defaultTitle:"KneUnion",indexLabel:"Home",overflowedIndicator:"More"},y=(0,_.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":g,"en-US":f},namespace:"Navigation"});var v=n(96418),x=n(62061),S=n(64671);const j={"navigation-wrap":"style_navigation-wrap__VF8x2__S130S",navigation:"style_navigation__60RrS__S130S",logo:"style_logo__lB9RC__S130S","is-fixed":"style_is-fixed__kHFWj__S130S","navigation-logo":"style_navigation-logo__q9qHu__S130S","navigation-list":"style_navigation-list__EYtkg__S130S","navigation-options":"style_navigation-options__0BdJU__S130S","menu-overlay":"style_menu-overlay__zU-vZ__S130S","more-icon":"style_more-icon__gNMnt__S130S","is-mobile":"style_is-mobile__vEvyK__S130S","navigation-mobile-menu":"style_navigation-mobile-menu__aVFBD__S130S","navigation-mobile-title":"style_navigation-mobile-title__Zm6bU__S130S","mobile-menu-trigger":"style_mobile-menu-trigger__xStQw__S130S","mobile-dropdown-content":"style_mobile-dropdown-content__QqoTK__S130S","mobile-dropdown-header":"style_mobile-dropdown-header__+J+zD__S130S","dropdown-title":"style_dropdown-title__CK7t4__S130S","mobile-dropdown-options":"style_mobile-dropdown-options__KiM0z__S130S"};var b=n(70579);const C=["key"],{Header:A}=s.Layout,N=48,w=768,E=e=>{let{name:t,mapping:n,defaultTitle:l}=e;const a=(0,d.useRef)({mapping:n,defaultTitle:l});return(0,d.useEffect)(()=>{const e=c()(a.current.mapping.get(t),"title");document.title=(e?e+"-":"")+a.current.defaultTitle},[t]),null},F=e=>{let{onReady:t}=e;const n=(0,v.default)(t);return(0,d.useEffect)(()=>{n()},[n]),null},I=y(e=>{let{permissions:t=[],list:n=[],headerLogo:o,rightOptions:u,isFixed:g=!0,showIndex:f=!0,indexLabel:y,defaultTitle:v,overflowedIndicator:N,base:I="",onChange:O,className:R,navigateTo:k,isMobile:M}=e;const{formatMessage:P}=(0,_.useIntl)(),T=(0,d.useMemo)(()=>new Map(n.map(e=>{let{key:t}=e;return[t,(0,a.A)(e,C)]})),[n]),z=(0,i.useNavigate)(),L="function"===typeof k?k:z,K=(0,i.useLocation)(),D=(0,d.useRef)(),H=(0,d.useRef)(null),[V,B]=(0,d.useState)("\u66f4\u591a"),[Y,U]=(0,d.useState)(!1),[W,q]=(0,d.useState)(!1),[G,Q]=(0,d.useState)(!1),J=e=>{const t=e?e.getBoundingClientRect().width:window.innerWidth;void 0===M&&(q(t<w),!W&&t<w&&Q(!1))},X=(0,x.default)(J);(0,d.useEffect)(()=>{J(X.current)},[]);const Z=K.pathname.replace(new RegExp("^".concat(I)),"").split("/")[1],$=Z?c()(Array.from(T.entries()).find(e=>{let[n,{path:l,permission:a}]=e;return-1!==("function"===typeof l?l(a,t):l).indexOf("/"+Z)}),"[0]"):"home",ee=void 0!==M?M:W;(0,d.useEffect)(()=>{const e=()=>{if(D.current){const e=D.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let l=0;l<e.length;l++){if(-1!==e[l].getAttribute("data-menu-id").indexOf($)){t=!0;break}}let n=T.get($)&&!t?c()(T.get($),"title"):"";B(n)}},t={attributes:!0,childList:!0,subtree:!0};return Y&&D&&D.current&&(e(),H.current&&H.current.disconnect(),H.current=new MutationObserver(e),H.current.observe(D.current,t)),()=>{H.current&&H.current.disconnect()}},[$,T,Y]);const te=!!f&&{label:y||P({id:"indexLabel"}),key:"home",onClick:()=>{O&&O("/"),setTimeout(()=>{L("/")},0)}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(E,{defaultTitle:v||P({id:"defaultTitle"}),mapping:T,name:$}),(0,b.jsx)("div",{className:m()(j["navigation-wrap"],R,{[j["is-mobile"]]:ee}),children:(0,b.jsx)("div",{ref:X,className:m()("navigation",j.navigation,{[j["is-fixed"]]:g}),children:(0,b.jsx)(A,{children:(0,b.jsxs)(s.Row,{wrap:!1,children:[ee&&(0,b.jsx)(s.Col,{className:m()(j["navigation-mobile-menu"],"navigation-mobile-menu"),children:(0,b.jsx)(s.Dropdown,{placement:"bottomLeft",trigger:["click"],open:G,onOpenChange:Q,dropdownRender:e=>(0,b.jsxs)("div",{className:j["mobile-dropdown-content"],children:[e,u&&(0,b.jsx)("div",{className:j["mobile-dropdown-options"],children:u})]}),menu:{selectedKeys:[$],items:[te,...Array.from(T.entries()).filter(e=>{let[n,{permission:l}]=e;if("string"===typeof l)return t.indexOf(l)>-1;if("function"===typeof l)return l(t);if(Array.isArray(l)){for(let e of l)if(t.indexOf(e)>-1)return!0;return!1}return!0}).map(e=>{let[n,{title:l,icon:a,path:r,permission:i}]=e;const o="function"===typeof r?r(i,t):r;return{label:a?(0,b.jsxs)(s.Flex,{gap:8,align:"center",children:[a,(0,b.jsx)("span",{children:l})]}):l,key:n,onClick:()=>(e=>{Q(!1),O&&O(e),setTimeout(()=>{L(e)},0)})(o)}})]},children:(0,b.jsx)("div",{className:m()(j["mobile-menu-trigger"],"mobile-menu-trigger"),children:(0,b.jsx)(r.A,{})})})}),!ee&&(0,b.jsx)(s.Col,{className:m()("navigation-logo",j["navigation-logo"]),children:(0,b.jsx)(h.default,(0,l.A)({className:m()(j.logo),alt:"logo"},Object.assign({},o||{src:p})))}),!ee&&(0,b.jsxs)(s.Col,{ref:D,flex:1,className:m()("navigation-list",j["navigation-list"]),children:[(0,b.jsx)(F,{onReady:()=>{U(!0)}}),(0,b.jsx)(s.Menu,{className:m()(j["main-menu"],"navigation-main-menu"),selectedKeys:[$],mode:"horizontal",overflowedIndicator:N||(0,b.jsxs)(s.Space,{size:4,children:[(0,b.jsx)("span",{children:V||P({id:"overflowedIndicator"})}),(0,b.jsx)("span",{className:j["more-icon"],children:(0,b.jsx)(S.default,{type:"icon-arrow-thin-down"})})]}),items:[te,...Array.from(T.entries()).filter(e=>{let[n,{permission:l}]=e;if("string"===typeof l)return t.indexOf(l)>-1;if("function"===typeof l)return l(t);if(Array.isArray(l)){for(let e of l)if(t.indexOf(e)>-1)return!0;return!1}return!0}).map(e=>{let[n,{title:l,icon:a,path:r,permission:i}]=e;const o="function"===typeof r?r(i,t):r;return{label:a?(0,b.jsxs)(s.Flex,{gap:8,children:[a,(0,b.jsx)("span",{children:l})]}):l,key:n,onClick:()=>{O&&O(o),setTimeout(()=>{L(o)},0)}}})]})]}),ee&&(0,b.jsx)(s.Col,{className:j["navigation-mobile-title"],children:v||P({id:"defaultTitle"})}),!ee&&(0,b.jsx)(s.Col,{className:j["navigation-options"],children:u})]})})})})]})}),O=I},29053(e,t,n){n.r(t),n.d(t,{computedIsPass:()=>_,default:()=>y,usePermissions:()=>g,usePermissionsPass:()=>f});var l=n(89379),a=n(53986),s=n(73884),r=n(55199),i=n(33097),o=n.n(i),c=n(83136),d=n.n(c);const u="style_outer__vbHB9__S130S";var m=n(72752),p=n(70579);const h=["type","className","tagName","message","request","children"],_=e=>{let{permissions:t,request:n}=e;return!(Array.isArray(n)&&n.length>0)||n.some(e=>(t||[]).indexOf(e)>-1)},g=()=>{const{global:e}=(0,m.useGlobalContext)(),{permissions:t,permissionsPath:n}=(0,m.usePreset)();return{permissions:e.permissions||t||n&&o()(e,n)||[]}},f=e=>{let{request:t}=e;const{permissions:n}=g();return _({permissions:n,request:t})},y=e=>{let{type:t="hidden",className:n,tagName:i="span",message:o="\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458",request:c,children:m}=e,_=(0,a.A)(e,h);const g=f({request:c});return"function"===typeof m?m({isPass:g,type:t,request:c}):!0===g?m:"error"===t?(0,p.jsx)(r.Result,{status:"403",subTitle:o}):"tooltip"===t?(0,p.jsx)(r.Tooltip,{title:o,children:(0,s.createElement)(i,(0,l.A)((0,l.A)({},_),{},{className:d()(u,n)}),m)}):null}},87227(e,t,n){n.r(t),n.d(t,{default:()=>m});var l=n(89379),a=n(53986),s=n(55199),r=n(83136),i=n.n(r);const o={"state-bar":"style_state-bar__3jfis__S130S","has-children":"style_has-children__oQDqU__S130S","tab-tab-control":"style_tab-tab-control__SopeO__S130S","tab-radio-control":"style_tab-radio-control__R8X6-__S130S","tab-step-control":"style_tab-step-control__EQaCl__S130S","inner-state-bar":"style_inner-state-bar__lWmOz__S130S"};var c=n(70579);const d=["className","type","stateOption","isInner"],u=["tab","label","key"],m=e=>{let{className:t,type:n="tab",stateOption:r=[],isInner:m}=e,p=(0,a.A)(e,d);return(0,c.jsx)(s.Tabs,(0,l.A)((0,l.A)({},p),{},{"data-testid":"components-core-state-bar",className:i()(o["state-bar"],o["tab-".concat(n,"-control")],t,{[o["inner-state-bar"]]:m,[o["has-children"]]:r.some(e=>!!e.children)}),style:{"--total-count":r.length},animated:!1,items:r.map(e=>{let{tab:t,label:n,key:s}=e,r=(0,a.A)(e,u);return(0,l.A)({label:t||n,key:s},r)})}))}},3874(e,t,n){n.r(t),n.d(t,{StateTagEnum:()=>g,default:()=>p});var l=n(89379),a=n(53986),s=n(73884),r=n(83136),i=n.n(r);const o={"state-tag":"style_state-tag__Kx27z__S130S","state-result-tag":"style_state-result-tag__CssDz__S130S","state-skill-tag":"style_state-skill-tag__k0bQE__S130S","event-tag":"style_event-tag__cg6SE__S130S","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__S130S","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__S130S","state-tag-filterResult":"style_state-tag-filterResult__KTkot__S130S","show-bg":"style_show-bg__OcL+R__S130S","tag-text":"style_tag-text__JHCt+__S130S","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__S130S"};var c=n(55199),d=n(70579);const u=["showBorder","text","type","showBackground","className","filterName"],m={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:r="default",showBackground:p=!0,className:h,filterName:_}=e,g=(0,a.A)(e,u);const f=(0,s.useMemo)(()=>{var e,t;return{color:(null===m||void 0===m||null===(e=m[r])||void 0===e?void 0:e.color)||m[r],borderColor:(null===m||void 0===m||null===(t=m[r])||void 0===t?void 0:t.borderColor)||m[r]}},[r]);return(0,d.jsxs)(c.Space,{"data-testid":"components-core-state-tag",className:i()(o["state-tag-wrapper"],"filterResult"===r?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[_?(0,d.jsxs)("span",{className:o["state-tag-filter-name"],children:[_,":"]}):null,(0,d.jsx)(c.Tag,(0,l.A)((0,l.A)({color:f.color},g),{},{style:{background:p?f.color+"0F":"none",color:f.color,border:t?"1px solid ".concat(f.borderColor):"none"},className:i()(o["state-tag"],h,"result"===r?o["state-result-tag"]:"","skill"===r?o["state-skill-tag"]:"",o["state-tag-".concat(r)],p?o["show-bg"]:"",t?o["show-border"]:"",null!==g&&void 0!==g&&g.onClick?o["event-tag"]:""),children:(0,d.jsx)("span",{className:o["tag-text"],children:n})}))]})};var h=n(48731);const _=["moduleName","name"],g=e=>{let{moduleName:t,name:n}=e,s=(0,a.A)(e,_);return(0,d.jsx)(h.default,{moduleName:t,name:n,children:e=>(0,d.jsx)(p,(0,l.A)((0,l.A)({},s),{},{text:e.description},e))})}},11598(e,t,n){n.r(t),n.d(t,{TablePage:()=>lt,default:()=>rt});var l=n(89379),a=n(53986);const s={table:"style_table__z7kfz__S130S","is-resize":"style_is-resize__ut6RW__S130S","is-moving":"style_is-moving__BJ9wR__S130S","cell-resize-bar":"style_cell-resize-bar__-mlUF__S130S","is-computed":"style_is-computed__B9rIF__S130S","options-column":"style_options-column__vsPTr__S130S","options-btn":"style_options-btn__U3uoy__S130S",tooltip:"style_tooltip__vJlkv__S130S","table-changer-setting":"style_table-changer-setting__HcrwR__S130S","width-changer-sign":"style_width-changer-sign__Aflyl__S130S","columns-control":"style_columns-control__5-5ZF__S130S","columns-control-content":"style_columns-control-content__MoeUI__S130S","columns-control-content-title":"style_columns-control-content-title__P5sXV__S130S","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__S130S","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__S130S","columns-control-content-input":"style_columns-control-content-input__G6yKq__S130S","columns-control-content-list":"style_columns-control-content-list__aXvTs__S130S","columns-control-content-item":"style_columns-control-content-item__jbyyE__S130S","is-drag":"style_is-drag__U68aw__S130S","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__S130S","sortable-drag":"style_sortable-drag__K5hWd__S130S","sortable-ghost":"style_sortable-ghost__lKTd2__S130S","columns-control-overlay":"style_columns-control-overlay__OxCIz__S130S","sort-btn":"style_sort-btn__KvNLr__S130S","sort-active-desc":"style_sort-active-desc__TIhMC__S130S","sort-icon":"style_sort-icon__dB85I__S130S","sort-active-asc":"style_sort-active-asc__RUBup__S130S"};var r=n(55199),i=n(73884),o=n(83136),c=n.n(o),d=n(10486),u=n(96418),m=n(76801);const p={scroller:"style_scroller__EfuqR__S130S","scroller-inner":"style_scroller-inner__NJSE0__S130S","is-moving":"style_is-moving__jGuy0__S130S"};var h=n(70579);const _=["onScroll","getContainer"],g=e=>{let{onScroll:t,getContainer:n}=e,l=(0,a.A)(e,_);const s=(0,i.useRef)(0),[r,o]=(0,i.useState)(!1),u=(0,i.useRef)(r);u.current=r;const m=(0,i.useRef)(t);m.current=t;const g=(0,i.useRef)(1);return g.current=l.width/l.innerWidth,(0,i.useEffect)(()=>{const e=e=>{u.current&&m.current(g.current*(e.clientX-s.current)),s.current=e.clientX},t=()=>{o(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}},[]),(0,d.createPortal)(l.hasScroller?(0,h.jsx)("div",{className:c()(p.scroller,"scroller-bar"),style:{left:l.left,width:l.width,height:15},children:(0,h.jsx)("div",{className:c()(p["scroller-inner"],"scroller-bar-inner",{[p["is-moving"]]:r}),style:{width:l.innerWidth,left:l.innerLeft},onMouseDown:e=>{e.preventDefault(),s.current=e.clientX,o(!0)}})}):null,n()||document.body)},f=e=>{let{className:t,scroller:n=!0,getScrollTarget:a=m.h,children:s}=e;return function(){const[e,r]=(0,i.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),o=(0,i.useRef)(null),d=(0,u.default)(()=>o.current&&a(o.current)),m=(0,i.useRef)();return m.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,i.useEffect)(()=>{const e=m.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:l,top:a,height:s}=t.getBoundingClientRect(),i=t.offsetHeight-t.clientHeight||15,o=l*t.clientWidth/t.scrollWidth-6,c=t.scrollLeft*t.clientWidth/t.scrollWidth+2,d=e.getBoundingClientRect();r(r=>Object.assign({},r,{left:n,width:l,innerLeft:c,innerWidth:o,height:i,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?a+s-e.offsetHeight>0&&a<e.offsetHeight:a<d.top+d.height&&a+s>d.top+d.height)}))},l=new ResizeObserver(n),a=new ResizeObserver(()=>{t=d(),t&&(l.disconnect(),n(),Array.from(t.children).forEach(e=>{l.observe(e)}),t.addEventListener("scroll",n))});return o.current&&a.observe(o.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}},[d]),n?(0,h.jsxs)("div",{className:c()(p["scroller-outer"],t),ref:o,style:{"--scroller-bar-height":null!==e&&void 0!==e&&e.hasScroller?"15px":"0px"},children:[s,(0,h.jsx)(g,(0,l.A)((0,l.A)({},e),{},{getContainer:m.current,onScroll:e=>{d().scrollLeft+=e}}))]}):s}()};var y=n(77964);const v={"col-item":"columns_col-item__Ym1Ec__S130S",tag:"columns_tag__bQZLG__S130S",avatar:"columns_avatar__SLPI+__S130S",hover:"columns_hover__oAwHg__S130S",primary:"columns_primary__6KtaA__S130S",loading:"columns_loading__gtBay__S130S",options:"columns_options__WvDZD__S130S"};var x=n(57469),S=n.n(x),j=n(87558),b=n(6617);const C=["className"],A=["list"],N=e=>{let{className:t,list:n=[],children:r,width:o}=e;const d={className:c()(t,s["options-btn"]),type:"link"},u=n.filter(e=>!(null!==e&&void 0!==e&&e.hidden)).map(e=>{let{className:t}=e,n=(0,a.A)(e,C);return Object.assign({},n,d)});return(0,h.jsxs)("div",{className:c()(t,s["options-column"]),style:{"--max-width":o+"px"},children:["function"===typeof r?r({list:u,itemClassName:"btn-no-padding",moreType:"link",buttonProps:d}):(0,i.isValidElement)(r)?(0,i.cloneElement)(r,(0,l.A)((0,l.A)({},d),{},{itemClassName:"btn-no-padding",moreType:"link"})):r,n&&n.length>0&&(0,h.jsx)(b.default,{itemClassName:"btn-no-padding",moreType:"link",list:u})]})},w=e=>{let{list:t}=e,n=(0,a.A)(e,A);return"function"===typeof t?(0,h.jsx)(j.default,{loader:t,render:e=>{let{data:t}=e;return(0,h.jsx)(N,(0,l.A)((0,l.A)({},n),{},{list:t}))}}):Array.isArray(t)?(0,h.jsx)(N,(0,l.A)((0,l.A)({},n),{},{list:t})):(0,h.jsx)(N,(0,l.A)({},Object.assign({},n,t)))};var E=n(3874),F=n(40438),I=n(48731);const O=e=>{let{children:t,ellipsis:n}=e;return(0,h.jsx)(r.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{rootClassName:s.tooltip,children:t}},"object"===typeof n?n:{}),children:t})},R=e=>{let{type:t,item:n,isEmpty:l,emptyRender:a=()=>"-",hover:s,primary:r,children:o,width:d,style:u,onClick:m,colValue:p}=e;const[_,g]=(0,i.useState)(!1);return(0,h.jsx)("div",{style:Object.assign({},u,{"--max-width":d+"px"}),className:c()(v["col-item"],v[t],l?null:{[v.hover]:s,[v.primary]:r,[v.loading]:_}),onClick:e=>{"function"!==typeof m||l||_||(g(!0),Promise.resolve(m({item:n,colItem:p,event:e})).finally(()=>{g(!1)}))},children:l?a({type:t,item:n,hover:s,primary:r,children:o}):o})},k=(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;var M=n(52526);const P={TotalText:"\u5171",ItemText:"\u6761",UnnamedColumn:"\u672a\u547d\u540d\u5217",EditTable:"\u7f16\u8f91\u8868\u683c",RestoreDefault:"\u6062\u590d\u9ed8\u8ba4",VisibleInfo:"\u663e\u793a\u7684\u4fe1\u606f",HiddenInfo:"\u9690\u85cf\u7684\u4fe1\u606f",Search:"\u641c\u7d22",Cancel:"\u53d6\u6d88",Confirm:"\u786e\u5b9a",View:"\u67e5\u770b"},T={TotalText:"Total",ItemText:"items",UnnamedColumn:"Unnamed",EditTable:"Edit Table",RestoreDefault:"Restore Default",VisibleInfo:"Visible Columns",HiddenInfo:"Hidden Columns",Search:"Search",Cancel:"Cancel",Confirm:"Confirm",View:"View"},z=(0,M.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":P,"en-US":T},namespace:"table"}),L=(0,j.createWithFetch)({loading:null})(e=>{let{data:t,children:n}=e;return n(t)}),K=z(e=>{let{api:t,expand:n,onExpand:a,ellipsis:s,hover:i,primary:o,emptyRender:c,isEmpty:d}=e;const{formatMessage:u}=(0,M.useIntl)(),m=Object.assign({},t);return n?(0,h.jsx)(L,(0,l.A)((0,l.A)({},m),{},{children:e=>(0,h.jsx)(R,{type:"hide-info-expand",item:e,hover:i,primary:o,emptyRender:c,isEmpty:k(e),children:(0,h.jsx)(O,{ellipsis:s,children:"function"===typeof m.children?m.children(e):e})})})):(0,h.jsx)(R,{type:"hide-info",primary:!0,emptyRender:c,children:(0,h.jsx)(r.Button,{className:"btn-no-padding",type:"link",onClick:a,children:u({id:"View"})})})});var D=n(1488),H=n.n(D);const V=["hover","primary","isEmpty","emptyRender"],B=["hover","primary","isEmpty","emptyRender"],Y=["hover","primary","isEmpty","emptyRender"],U=["hover","primary","emptyRender","isEmpty","hideSecond"],W=["hover","primary","emptyRender","isEmpty"],q=["hover","primary","emptyRender","isEmpty"],G=["hover","primary","ellipsis","emptyRender","isEmpty"],Q=["hover","primary","ellipsis","emptyRender","isEmpty"],J=["hover","primary","ellipsis","emptyRender","isEmpty"],X=["emptyRender","isEmpty"],Z=["emptyRender","isEmpty"],$=["hover","primary","ellipsis","emptyRender","isEmpty"],ee=["ellipsis","hover","primary","emptyRender","isEmpty"],te=["hover","primary","ellipsis","emptyRender","isEmpty"],ne=["hover","primary","ellipsis","emptyRender","isEmpty"],le=["hover","primary","ellipsis","emptyRender","isEmpty"],ae=(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,ne);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},c),{},{type:"other",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,h.jsx)(O,{ellipsis:r,children:e})}))},se={date:{render:(e,t)=>{let{hover:n,primary:s,isEmpty:r,emptyRender:i}=t,o=(0,a.A)(t,V);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},o),{},{type:"date",item:e,primary:s,hover:n,emptyRender:i,isEmpty:r||!S()(e).isValid(),children:S()(e).format("YYYY-MM-DD")}))},width:160,min:120,max:400},dateShort:{render:(e,t)=>{let{hover:n,primary:s,isEmpty:r,emptyRender:i}=t,o=(0,a.A)(t,B);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},o),{},{type:"date-short",item:e,primary:s,hover:n,emptyRender:i,isEmpty:r||!S()(e).isValid(),children:S()(e).format("YYYY-MM")}))},width:120,min:100,max:400},dateRange:{render:(e,t)=>{let{hover:n,primary:s,isEmpty:r,emptyRender:i}=t,o=(0,a.A)(t,Y);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},o),{},{type:"date-range",item:e,primary:s,hover:n,emptyRender:i,isEmpty:r,children:S()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD")+"~"+S()(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:s,emptyRender:r,isEmpty:i,hideSecond:o}=t,c=(0,a.A)(t,U);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},c),{},{item:e,primary:s,hover:n,emptyRender:r,isEmpty:i||!S()(e).isValid(),children:S()(e).format(o?"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:s,emptyRender:r,isEmpty:i}=t,o=(0,a.A)(t,W);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},o),{},{type:"serial-number",item:e,primary:s,hover:n,emptyRender:r,isEmpty:i,children:e}))},width:190,min:100,max:400},serialNumberShort:{render:(e,t)=>{let{hover:n,primary:s,emptyRender:r,isEmpty:i}=t,o=(0,a.A)(t,q);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},o),{},{type:"serial-number-short",item:e,primary:s,hover:n,emptyRender:r,isEmpty:i,children:e}))},width:120,min:100,max:400},user:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,G);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},c),{},{type:"user",item:e,primary:s,hover:n,emptyRender:i,isEmpty:o,children:(0,h.jsx)(O,{ellipsis:r,children:e})}))},width:200,min:120,max:400},userName:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,Q);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},c),{},{type:"user-name",item:e,primary:s,hover:n,emptyRender:i,isEmpty:o,children:(0,h.jsx)(O,{ellipsis:r,children:e})}))},width:100,min:100,max:400},contacts:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,J);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},c),{},{type:"contacts",item:e,primary:s,hover:n,emptyRender:i,isEmpty:o,children:(0,h.jsx)(O,{ellipsis:r,children:e})}))},width:240,min:160,max:400},tag:{render:(e,t)=>{let{emptyRender:n,isEmpty:s}=t,r=(0,a.A)(t,X);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},r),{},{type:"tag",item:e,emptyRender:n,isEmpty:s,children:e&&(e.isEnum?(0,h.jsx)(I.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:a}=t;return(0,h.jsx)(E.default,(0,l.A)((0,l.A)({type:n},Object.assign({},H()(e,["name","isEnum","moduleName","force"]))),{},{text:a}))}}):(0,h.jsx)(E.default,(0,l.A)({},Object.assign({},e))))}))},width:140,min:100,max:400},avatar:{render:(e,t)=>{let{emptyRender:n,isEmpty:s}=t,r=(0,a.A)(t,Z);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},r),{},{type:"avatar",item:e,emptyRender:n,isEmpty:s,children:(0,h.jsx)(F.default.Avatar,(0,l.A)((0,l.A)({},Object.assign({},e)),{},{size:32}))}))},width:80,min:64,max:200},singleRow:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,$);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},c),{},{type:"single-row",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,h.jsx)(O,{ellipsis:r,children:e})}))},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,h.jsx)(K,(0,l.A)({api:e},t)),width:120,min:80,max:400},mainInfo:{render:(e,t)=>{let{ellipsis:n,hover:s=!0,primary:r=!0,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,ee);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},c),{},{type:"main-info",item:e,hover:s,primary:r,emptyRender:i,isEmpty:o,children:(0,h.jsx)(O,{ellipsis:n,children:e})}))},width:300,min:160,max:500},description:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,te);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},c),{},{type:"description",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,h.jsx)(O,{ellipsis:r,children:e})}))},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,h.jsx)(w,{className:c()(v["col-item"],v.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,le);return(0,h.jsx)(R,(0,l.A)((0,l.A)({},c),{},{type:"sensitiveInfo",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,h.jsx)(O,{ellipsis:r,children:e})}))},width:200,min:100,max:400},other:{render:ae,width:200,min:120,max:400},otherSmall:{render:ae,width:100,min:70,max:400},otherLarge:{render:ae,width:300,min:120,max:500}},re=se;var ie=n(33097),oe=n.n(ie),ce=n(42907),de=n.n(ce),ue=n(22717),me=n.n(ue),pe=n(22616),he=n.n(pe),_e=n(64671),ge=n(72752),fe=n(39835),ye=n.n(fe),ve=n(81014),xe=n(43856),Se=n(76441),je=n(69613),be=n.n(je),Ce=n(56434),Ae=n.n(Ce);const{Panel:Ne}=r.Collapse,we=z(e=>{let{close:t,onConfirm:n,columns:l,config:a}=e;const{formatMessage:o}=(0,M.useIntl)(),[d,u]=(0,i.useState)(a||{}),[m,p]=(0,i.useState)(""),{leftFixedColumns:_,rightFixedColumns:g,visibleColumns:f,hiddenColumns:y}=(0,i.useMemo)(()=>me()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},ye()(l,e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==oe()(d,"".concat(e.name,".visible"))&&e.hidden||!1===oe()(d,"".concat(e.name,".visible"))?"hiddenColumns":"visibleColumns")),(e,t,n)=>{e[n]=t.sort((e,t)=>oe()(d,"".concat(e.name,".rank"),0)-oe()(d,"".concat(t.name,".rank"),0))},{}),[l,d]),v=e=>(0,h.jsxs)(h.Fragment,{children:[e.titleText||e.title||o({id:"UnnamedColumn"}),e.groupHeader&&e.groupHeader.length>0?"(".concat(e.groupHeader.map(e=>{let{title:t}=e;return t}).join("-"),")"):""]});return(0,h.jsxs)("div",{className:s["columns-control-content"],children:[(0,h.jsx)("div",{className:s["columns-control-content-title"],children:(0,h.jsxs)(r.Row,{align:"middle",justify:"space-between",children:[(0,h.jsx)(r.Col,{children:o({id:"EditTable"})}),(0,h.jsx)(r.Col,{children:(0,h.jsx)(r.Tooltip,{title:o({id:"RestoreDefault"}),children:(0,h.jsx)(ve.default,{type:"text",icon:(0,h.jsx)(_e.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,h.jsx)("div",{className:s["columns-control-content-scroller"],children:(0,h.jsxs)(r.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,h.jsx)(Ne,{header:o({id:"VisibleInfo"}),children:(0,h.jsxs)(r.List,{className:s["columns-control-content-list"],children:[_.map((e,t)=>(0,h.jsx)(r.List.Item,{className:s["columns-control-content-item"],children:(0,h.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:v(e)})},e.name||"left-".concat(t))),(0,h.jsx)(Se.ReactSortable,{list:f,filter:".ignore-elements",dragClass:s["sortable-drag"],ghostClass:s["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=Ae()(d),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach(e=>{be()(t,"".concat(e.name,".visible"),!1)}),n.forEach((e,n)=>{be()(t,"".concat(e.name,".rank"),n+1)}),u(t)})({leftFixedColumns:_,visibleColumns:e,hiddenColumns:y,rightFixedColumns:g})},animation:300,delayOnTouchStart:!0,delay:2,children:f.map((e,t)=>(0,h.jsxs)(r.List.Item,{className:c()(s["columns-control-content-item"],s["is-drag"]),children:[(0,h.jsx)(_e.default,{type:"icon-paixu",className:s["columns-control-content-item-icon"]}),(0,h.jsx)(r.Checkbox,{checked:!0,disabled:e.fixed||_.length+f.length+g.length<=1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},d);n[e.name]=Object.assign({},n[e.name],{visible:!1}),u(n)},children:v(e)})]},e.name||"visible-".concat(t)))}),g.map((e,t)=>(0,h.jsx)(r.List.Item,{className:s["columns-control-content-item"],children:(0,h.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||o({id:"UnnamedColumn"})})},e.name||"right-".concat(t)))]})},"active"),(0,h.jsx)(Ne,{header:(0,h.jsxs)(r.Row,{wrap:!1,justify:"space-between",children:[(0,h.jsx)(r.Col,{children:o({id:"HiddenInfo"})}),(0,h.jsx)(r.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,h.jsx)(xe.SearchInput,{prefix:(0,h.jsx)(_e.default,{type:"icon-sousuo",size:12}),placeholder:o({id:"Search"}),onSearch:e=>{p(e)},className:s["columns-control-content-input"],size:"small"})})]}),children:(0,h.jsx)(r.List,{dataSource:y.filter(e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(m)>-1),renderItem:e=>(0,h.jsx)(r.List.Item,{className:s["columns-control-content-item"],children:(0,h.jsx)(r.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},d);n[e.name]=Object.assign({},n[e.name],{visible:!0}),u(n)},children:e.titleText||e.title||o({id:"UnnamedColumn"})})},e.key)})},"un-active")]})}),(0,h.jsxs)(r.Row,{className:s["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,h.jsx)(r.Col,{children:(0,h.jsx)(r.Button,{size:"small",onClick:()=>{u(a||{}),t()},children:o({id:"Cancel"})})}),(0,h.jsx)(r.Col,{children:(0,h.jsx)(ve.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(d),t()},children:o({id:"Confirm"})})})]})]})});var Ee=n(51941),Fe=n(19853),Ie=n.n(Fe),Oe=n(21844),Re=n.n(Oe),ke=n(25644);const Me="COMPONENTS_CORE_TABLE_CONFIG",Pe={getDataApi:e=>e?{loader:()=>oe()(ke.A.getItem(Me),e,{})}:{},setDataFunc:(e,t)=>{if(e)return ke.A.setItem(Me,Object.assign({},ke.A.getItem(Me),{[e]:t}))}},Te=e=>{let{title:t,columns:n,config:l,setConfig:a}=e;const[o,c]=(0,i.useState)(!1);return(0,h.jsxs)(r.Row,{wrap:!1,children:[(0,h.jsx)(r.Col,{flex:1,children:t}),(0,h.jsx)(r.Col,{children:(0,h.jsx)(r.Popover,{open:o,onOpenChange:c,trigger:"click",placement:"bottomLeft",rootClassName:s["columns-control-overlay"],content:(0,h.jsx)(we,{columns:n,config:l,close:()=>{c(!1)},onConfirm:e=>{a(t=>me()(e,(e,n,l)=>{e[l]=Object.assign({},t[l],he()(n,["visible","rank"]))},{}))}}),children:(0,h.jsx)("span",{className:s["table-changer-setting"],children:(0,h.jsx)(_e.default,{type:"icon-shezhi"})})})})]})},ze=e=>{let{columns:t,name:n,controllerOpen:a,tableWidth:r,rowKey:o}=e;const[d,m]=(0,i.useState)(null),p=(0,i.useRef)(d);p.current=d;const _=(0,i.useRef)(null),g=(0,i.useRef)(null),[f,y]=(0,i.useState)({}),{tableServerApis:v}=(0,ge.usePreset)(),x=v||Pe,S=null===x||void 0===x?void 0:x.getDataApi(n),b=(0,Ee.useDebouncedCallback)((e,t)=>{null===x||void 0===x||x.setDataFunc(e,t)},500),C=(0,u.default)(e=>{(0,i.startTransition)(()=>{y(t=>{const l="function"===typeof e?e(t):e;return n&&a&&b(n,l),l})})}),{send:A}=(0,j.useFetch)(Object.assign((0,l.A)((0,l.A)({},Object.assign({},S)),{},{auto:!1,cache:"TABLE_CONFIG_".concat(n),isLocal:!0,onRequestSuccess:e=>{y(Object.assign({},e))}}))),N=(0,u.default)(()=>{n&&a&&S&&A({force:!1})});(0,i.useEffect)(()=>{N()},[N]);const w=(0,i.useMemo)(()=>t.filter(e=>!(!1===oe()(f,"".concat(e.name,".visible"))||!0!==oe()(f,"".concat(e.name,".visible"))&&!0===e.hidden)).sort((e,t)=>{const n=e=>oe()(f,"".concat(e.name,".rank"),0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}),[t,f]),E=(0,i.useMemo)(()=>Re()(w,e=>{let{type:t}=e;return"options"!==t}),[w]),F=(0,i.useMemo)(()=>de()(w,e=>{let{type:t,name:n}=e;return oe()(f,"".concat(n,".width"))||(re[t]||re.other).width}),[w,f]),I=e=>{let{width:t,index:n}=e;return E===n?t+Math.max(r-F-2,0):t},O=(0,u.default)((e,t)=>(0,h.jsx)("span",{className:c()(s["cell-resize-bar"]),onMouseDown:n=>{_.current=Object.assign({},e,{index:t}),g.current=n.clientX,m(t)},children:(0,h.jsx)(_e.default,{type:"icon-paixu"})})),R=(0,u.default)(e=>{if(null===d)return;if(!_.current)return;const{name:t,width:n,min:l,max:a,index:s}=_.current,r=Math.min(Math.max(n+e,l),a);r<I({width:l,index:s})||C(e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:r})}))}),k=(0,u.default)((e,n)=>{const{name:l,width:a,min:r,max:i}=e;let d=e;n===w.length-1&&(d=Object.assign({},e,{className:"has-config-btn",title:(0,h.jsx)(Te,{title:null===e||void 0===e?void 0:e.title,columns:t,config:f,setConfig:C})}));const u=()=>({className:c()({[s["is-moving"]]:p.current===n})}),m=Math.min(Math.max(oe()(f,"".concat(l,".width"))||a,r),i),_=I({width:m,index:n});return Object.assign({},d,{onHeaderCell:u,onCell:u,width:_,shouldCellUpdate:(t,l)=>{const a="function"===typeof o?o(t):t[o],s="function"===typeof o?o(l):l[o];return null===p.current||p.current===n||"hideInfo"===e.type||!(a===s&&Ie()(t[e.name],l[e.name]))},title:(0,h.jsxs)(h.Fragment,{children:[d.title,!(_>m&&_>i)&&O(Object.assign({},d,{width:_}),n)]})})});return(0,i.useEffect)(()=>{const e=()=>{m(null),g.current=null,_.current=null},t=e=>{null!==p.current&&null!==_.current&&(null!==g.current?R(e.clientX-g.current):g.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)}},[R]),{visibleColumns:w,currentMoveColumnIndex:d,resizeBarRender:O,columnsConfig:f,totalWidth:F,computedColumnProps:k}};var Le=n(79686),Ke=n.n(Le);const De=["name","type","expandType","title","titleRender","fixed","emptyOf","emptyRender","groupHeader","sort","disableColItem"],He=e=>{let{rowKey:t,renderProps:n}=e;const[s,r]=(0,i.useState)(null),o=(0,i.useRef)(n);o.current=n;const c=(0,u.default)((e,n,i)=>{let{columnsConfig:c}=i;const{name:d,type:u,expandType:m,title:p,titleRender:h,fixed:_,emptyOf:g,emptyRender:f,groupHeader:y,sort:v,disableColItem:x}=e,S=(0,a.A)(e,De),{render:j,width:b,min:C,max:A}=Object.assign({},re[u]||re.other,"hideInfo"===u&&!Ke()(s)&&he()(re[m]||re.other,["width","min","max"])),N=j;return{name:d,title:"function"===typeof h?h(p):p,min:C,max:A,width:b,fixed:_,groupHeader:y,sort:v,type:u,render:n=>{const a="function"===typeof t?t(n):n[t],i=Object.assign({},e,"function"===typeof e.render?e.render((0,l.A)((0,l.A)({},o.current),{},{name:d,target:n})):{}),u=e=>{const t=k(e,g);return N(e,(0,l.A)((0,l.A)({},S),{},{name:d,width:oe()(c,"".concat(d,".width"))||b,min:C,max:A,isEmpty:t,emptyRender:f,hover:i.hover,colValue:Object.assign({},n),renderProps:o.current,primary:i.primary,ellipsis:i.ellipsis,expand:s===a,onExpand:()=>r(a)}))},m=i.hasOwnProperty("valueOf")&&"function"===typeof i.valueOf?i.valueOf(n,Object.assign({},o.current,{name:d},x?{targetRender:u}:{})):oe()(n,d);return x?m:u(m)}}});return{expandInfo:s,computedColumnProps:c}},Ve=e=>(0,i.useMemo)(()=>{const t=e.filter(e=>e.groupHeader&&e.groupHeader.length>0);if(t.length>0){const n=e.slice(0),l=[],a=e=>{const{groupHeader:t}=e;if(!(t&&t.length>0))return;const a=n.indexOf(e),s=(t,n)=>{const[l,...r]=t;let i=n.find(e=>e.name===l.name);i||(i=Object.assign({startIndex:a},l,{children:[]}),n.push(i)),r.length>0?s(r,i.children):i.children.push(e)};s(t,l),n.splice(a,1)};return t.forEach(a),l.forEach((e,t)=>{n.splice(e.startIndex+t,0,e)}),{columns:n,hasGroupHeader:!0}}return{columns:e,hasGroupHeader:!1}},[e]);var Be=n(10986),Ye=n(41740),Ue=n.n(Ye);const We=e=>new Map((e||[]).map(e=>{let{name:t,sort:n}=e;return[t,n]})),qe=e=>{const[t,n]=(0,Be.default)(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),l=(0,i.useMemo)(()=>We(t),[t]),a=(0,i.useCallback)(e=>n(t=>{const n=e(We(t));return Array.from(n).map(e=>{let[t,n]=e;return{name:t,sort:n}})}),[n]);return(0,i.useCallback)(e=>{let{single:t,name:n}=e;return(0,h.jsxs)("div",{className:c()(s["sort-btn"],{[s["sort-active-desc"]]:"DESC"===l.get(n),[s["sort-active-asc"]]:"ASC"===l.get(n)}),onClick:()=>{a(e=>{const l=e.get(n),a="DESC"===l?"ASC":"ASC"===l?null:"DESC";if(t)return new Map(a?[[n,a]]:[]);const s=Ue()(e);return a?s.set(n,a):s.delete(n),s})},children:[(0,h.jsx)(_e.default,{type:"icon-triangle-up",className:s["sort-icon"]}),(0,h.jsx)(_e.default,{type:"icon-triangle-down",className:s["sort-icon"]})]})},[l,a])};var Ge=n(9376),Qe=n.n(Ge);const Je=e=>{const{rowKey:t}=Object.assign({},{rowKey:"id"},e),[n,l]=(0,i.useState)([]),a=e=>"function"===typeof t?t(e):e[t];return{type:"checkbox",selectedRowKeys:n,onSelectAll:(e,t,n)=>{const s=n.map(a);l(e?e=>Qe()([...e,...s]):e=>e.filter(e=>-1===s.indexOf(e)))},onSelect:(e,t)=>{l(t?t=>{const n=t.slice(0);return n.push(a(e)),n}:t=>{const n=t.slice(0);return n.splice(n.indexOf(a(e)),1),n})},setSelectedRowKeys:l}};var Xe=n(63361);const Ze=["data","refresh","reload","requestParams","fetchProps","isComplete","setData","loadMore","send","dataFormat","className","featureId","columns","getColumns","pagination","columnRenderProps","summary","sticky"],$e=["pagination"],et=e=>{let{id:t,columns:n,children:l}=e;return t?(0,h.jsx)(Xe.default,{id:t,children:e=>{let{options:t}=e;return l({columns:n.filter(e=>!e.name||(!Array.isArray(oe()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name)))})}}):l({columns:n})},tt=z(e=>{let{data:t,refresh:n,reload:r,requestParams:o,fetchProps:d,isComplete:p,setData:_,loadMore:g,send:f,dataFormat:y=e=>({list:e.pageData,total:e.totalCount,data:e}),className:v,featureId:x,columns:S,getColumns:j,pagination:b={},columnRenderProps:C={},summary:A,sticky:N=!0}=e,w=(0,a.A)(e,Ze);const{formatMessage:E}=(0,M.useIntl)(),F=(0,u.default)(y),I=(0,i.useMemo)(()=>F(t),[t,F]),O={dataSource:I.list,pagination:!!b.open&&{total:I.total,showTotal:e=>(0,h.jsxs)(h.Fragment,{children:[E({id:"TotalText"}),"\xa0",(0,h.jsx)("span",{className:s.total_text,children:e}),"\xa0",E({id:"ItemText"})]}),current:oe()(o,[b.paramsType,b.currentName],1),pageSize:oe()(o,[b.paramsType,b.pageSizeName],20),onChange:(e,t)=>{"function"!==typeof b.onChange?e!==oe()(o,[b.paramsType,b.currentName],1)?("refresh"===b.requestType?n:r)({[b.paramsType]:{[b.currentName]:e,[b.pageSizeName]:t}}):b.onShowSizeChange&&b.onShowSizeChange(e,t):b.onChange(e,t),(0,m.h)().scrollTop=0},size:b.size,hideOnSinglePage:b.hideOnSinglePage,showSizeChanger:b.showSizeChanger,showQuickJumper:b.showQuickJumper,pageSizeOptions:b.pageSizeOptions}};return(0,h.jsx)(et,{id:x,columns:"function"===typeof S?S(t):S,children:e=>{let{columns:a}=e;return(0,h.jsx)(rt,(0,l.A)((0,l.A)({},Object.assign({},w,O)),{},{sticky:N,className:c()(v,"loading-container",{"is-loading":!p}),columns:a,columnRenderProps:(0,l.A)((0,l.A)({},C),{},{requestParams:o,fetchProps:d,data:t}),summary:"function"===typeof A?function(){for(var e=arguments.length,l=new Array(e),a=0;a<e;a++)l[a]=arguments[a];return A(Object.assign({},{data:t,fetchProps:d,requestParams:o,refresh:n,reload:r,loadMore:g,send:f,dataFormat:y,pagination:b},...l))}:null}))}})}),nt=(0,j.withFetch)(tt),lt=(0,i.forwardRef)((e,t)=>{let{pagination:n}=e,s=(0,a.A)(e,$e);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!1,open:!0,paramsType:"data",requestType:"reload",currentName:"currentPage",pageSizeName:"perPage"},n);const r="".concat((s.name||"common").toUpperCase(),"_TABLE_PAGE_SIZE"),[o,c]=(0,i.useState)(ke.A.getItem(r)||n.pageSize),d=s[n.paramsType],u=(0,i.useMemo)(()=>({[n.paramsType]:Object.assign({},d,{[n.pageSizeName]:o})}),[d,n.pageSizeName,n.paramsType,o]);return(0,h.jsx)(nt,(0,l.A)((0,l.A)((0,l.A)({},s),u),{},{pagination:Object.assign({},n,{pageSize:o,onShowSizeChange:(e,t)=>{ke.A.setItem(r,t),c(t)}}),ref:t}))}),at=["columns","className","getScrollEl","sticky","stickyOffset","pagination","columnRenderProps","rowKey","dataSource","controllerOpen","name","summary","scroll","scroller","onTablePropsReady"],st=e=>{let{columns:t,className:n,getScrollEl:o=m.h,sticky:d=!1,stickyOffset:p="var(--nav-height)",pagination:_=!1,columnRenderProps:g={},rowKey:v="id",dataSource:x,controllerOpen:S=!0,name:j,summary:b,scroll:C,scroller:A,onTablePropsReady:N}=e,w=(0,a.A)(e,at);const[E,F]=(0,i.useState)(0),[I,O]=(0,i.useState)(!0);(0,i.useEffect)(()=>{E&&setTimeout(()=>{O(!1)},0)},[E]);(0,i.useRef)(g).current=g;const R=(0,y.A)(e=>{F(e.clientWidth)},{isDebounce:!0}),{expandInfo:k,computedColumnProps:M}=He({rowKey:v,renderProps:g}),{columnsConfig:P,visibleColumns:T,computedColumnProps:z,currentMoveColumnIndex:L,totalWidth:K}=ze({columns:t,controllerOpen:S,name:j,computedColumnProps:M,tableWidth:E,rowKey:v}),D=qe(w),H=(0,i.useMemo)(()=>T.map((e,t)=>{let n=M(e,t,{rowKey:v,expandInfo:k,columnsConfig:P});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,h.jsxs)(h.Fragment,{children:[n.title,D({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),S&&(n=z(n,t,{tableWidth:E,columnsConfig:P})),n}),[T,E,P,k,v,S,M,z,D]),{columns:V,hasGroupHeader:B}=Ve(H),Y=(0,u.default)(N);return(0,i.useEffect)(()=>{Y&&Y({columns:t,groupColumns:V,dataSource:x,visibleColumns:T})},[Y,V,x,t,T]),(0,h.jsx)("div",{className:c()(n,s.table,{[s["is-resize"]]:null!==L,[s["is-computed"]]:I,[s["has-group-header"]]:B}),ref:R,style:{"--sticky-offset":p},children:!I&&(0,h.jsx)(f,{className:"table-page-scroller",scroller:void 0!==A?A:{getContainer:o},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,h.jsx)(r.Table,(0,l.A)((0,l.A)({},w),{},{sticky:!!d&&{getContainer:o},dataSource:x,rowKey:v,columns:V,scroll:Object.assign({},{x:Math.max(E,K)},C),pagination:_,summary:"function"===typeof b?function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return b(Object.assign({},{pageData:e},{columns:V}),...n)}:null}))})})};st.useSelectedRow=Je,st.TablePage=lt,(st.Summary=r.Table.Summary).Row=r.Table.Summary.Row,st.Summary.Cell=r.Table.Summary.Cell;const rt=st}}]);
|
|
2
|
-
//# sourceMappingURL=9666.c58faba9.chunk.js.map
|
/package/build/static/js/{3874.86802294.chunk.js.LICENSE.txt → 3874.d84933e3.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{4666.64e67752.chunk.js.LICENSE.txt → 4666.ca6b5d86.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{7227.50b81d09.chunk.js.LICENSE.txt → 7227.038e66d8.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{9556.098e8cb7.chunk.js.LICENSE.txt → 9556.af8681ad.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|