@kne-components/components-core 0.4.49 → 0.4.50
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 +106 -106
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1742.e24a7786.chunk.css +2 -0
- package/build/static/css/{1742.ef613214.chunk.css.map → 1742.e24a7786.chunk.css.map} +1 -1
- package/build/static/css/{1996.f8b06269.chunk.css → 1996.78d3b216.chunk.css} +2 -2
- package/build/static/css/{1996.f8b06269.chunk.css.map → 1996.78d3b216.chunk.css.map} +1 -1
- package/build/static/css/2004.2ecf10c1.chunk.css +2 -0
- package/build/static/css/{2004.ed58a6f4.chunk.css.map → 2004.2ecf10c1.chunk.css.map} +1 -1
- package/build/static/css/2307.bfd8eae1.chunk.css +2 -0
- package/build/static/css/{2307.3c5059f0.chunk.css.map → 2307.bfd8eae1.chunk.css.map} +1 -1
- package/build/static/css/254.143bfa53.chunk.css +2 -0
- package/build/static/css/{254.b159fe70.chunk.css.map → 254.143bfa53.chunk.css.map} +1 -1
- package/build/static/css/3404.92842940.chunk.css +2 -0
- package/build/static/css/{3404.018687de.chunk.css.map → 3404.92842940.chunk.css.map} +1 -1
- package/build/static/css/3625.df0e0595.chunk.css +2 -0
- package/build/static/css/{3625.36553112.chunk.css.map → 3625.df0e0595.chunk.css.map} +1 -1
- package/build/static/css/{3771.c542f311.chunk.css → 3771.ecf98ddd.chunk.css} +2 -2
- package/build/static/css/{3771.c542f311.chunk.css.map → 3771.ecf98ddd.chunk.css.map} +1 -1
- package/build/static/css/{3790.fe8e38db.chunk.css → 3790.a93f06df.chunk.css} +2 -2
- package/build/static/css/{3790.fe8e38db.chunk.css.map → 3790.a93f06df.chunk.css.map} +1 -1
- package/build/static/css/5195.fc328128.chunk.css +2 -0
- package/build/static/css/{5195.c024c488.chunk.css.map → 5195.fc328128.chunk.css.map} +1 -1
- package/build/static/css/5674.505558d8.chunk.css +2 -0
- package/build/static/css/{5674.d42e8b20.chunk.css.map → 5674.505558d8.chunk.css.map} +1 -1
- package/build/static/css/{6763.7fb4966d.chunk.css → 6763.a4bcbe18.chunk.css} +2 -2
- package/build/static/css/{6763.7fb4966d.chunk.css.map → 6763.a4bcbe18.chunk.css.map} +1 -1
- package/build/static/css/7227.2ac964fd.chunk.css +2 -0
- package/build/static/css/{7227.1fc2b5a4.chunk.css.map → 7227.2ac964fd.chunk.css.map} +1 -1
- package/build/static/css/{7589.4aacb414.chunk.css → 7589.90bef6fa.chunk.css} +2 -2
- package/build/static/css/{7589.4aacb414.chunk.css.map → 7589.90bef6fa.chunk.css.map} +1 -1
- package/build/static/css/{760.b409f1cd.chunk.css → 760.647a4313.chunk.css} +2 -2
- package/build/static/css/{760.b409f1cd.chunk.css.map → 760.647a4313.chunk.css.map} +1 -1
- package/build/static/css/7857.18070876.chunk.css +2 -0
- package/build/static/css/{7857.585194fa.chunk.css.map → 7857.18070876.chunk.css.map} +1 -1
- package/build/static/css/833.ea57cac0.chunk.css +2 -0
- package/build/static/css/{833.c28022fa.chunk.css.map → 833.ea57cac0.chunk.css.map} +1 -1
- package/build/static/css/{8593.602af143.chunk.css → 8593.7cd412ee.chunk.css} +2 -2
- package/build/static/css/{8593.602af143.chunk.css.map → 8593.7cd412ee.chunk.css.map} +1 -1
- package/build/static/css/9556.cefa83c1.chunk.css +2 -0
- package/build/static/css/{9556.7078bc08.chunk.css.map → 9556.cefa83c1.chunk.css.map} +1 -1
- package/build/static/js/{1125.e36a3fa6.chunk.js → 1125.a3e8873c.chunk.js} +2 -2
- package/build/static/js/1125.a3e8873c.chunk.js.map +1 -0
- package/build/static/js/1742.8678e315.chunk.js +2 -0
- package/build/static/js/1742.8678e315.chunk.js.map +1 -0
- package/build/static/js/1996.62a2df9b.chunk.js +2 -0
- package/build/static/js/{1996.75390469.chunk.js.map → 1996.62a2df9b.chunk.js.map} +1 -1
- package/build/static/js/2004.b05fe2b9.chunk.js +3 -0
- package/build/static/js/2004.b05fe2b9.chunk.js.map +1 -0
- package/build/static/js/2233.1f6d8796.chunk.js +2 -0
- package/build/static/js/2233.1f6d8796.chunk.js.map +1 -0
- package/build/static/js/{2242.5caf43be.chunk.js → 2242.617afa95.chunk.js} +2 -2
- package/build/static/js/2242.617afa95.chunk.js.map +1 -0
- package/build/static/js/254.6b8bbedf.chunk.js +2 -0
- package/build/static/js/254.6b8bbedf.chunk.js.map +1 -0
- package/build/static/js/{2931.052429b9.chunk.js → 2931.d829c9a7.chunk.js} +2 -2
- package/build/static/js/2931.d829c9a7.chunk.js.map +1 -0
- package/build/static/js/3120.5fff494a.chunk.js +2 -0
- package/build/static/js/3120.5fff494a.chunk.js.map +1 -0
- package/build/static/js/3245.0e59051d.chunk.js +3 -0
- package/build/static/js/{3245.21a3b598.chunk.js.LICENSE.txt → 3245.0e59051d.chunk.js.LICENSE.txt} +3 -3
- package/build/static/js/3245.0e59051d.chunk.js.map +1 -0
- package/build/static/js/3404.be2d5b5e.chunk.js +3 -0
- package/build/static/js/3404.be2d5b5e.chunk.js.map +1 -0
- package/build/static/js/3625.0ef86fe3.chunk.js +2 -0
- package/build/static/js/3625.0ef86fe3.chunk.js.map +1 -0
- package/build/static/js/3771.f54b12c5.chunk.js +2 -0
- package/build/static/js/{3771.088d9358.chunk.js.map → 3771.f54b12c5.chunk.js.map} +1 -1
- package/build/static/js/3790.c1fab105.chunk.js +2 -0
- package/build/static/js/3790.c1fab105.chunk.js.map +1 -0
- package/build/static/js/3856.b4013dc2.chunk.js +2 -0
- package/build/static/js/3856.b4013dc2.chunk.js.map +1 -0
- package/build/static/js/{4474.6d7786ed.chunk.js → 4474.68377945.chunk.js} +2 -2
- package/build/static/js/{4474.6d7786ed.chunk.js.map → 4474.68377945.chunk.js.map} +1 -1
- package/build/static/js/4614.23e24b4e.chunk.js +2 -0
- package/build/static/js/4614.23e24b4e.chunk.js.map +1 -0
- package/build/static/js/5195.76a57010.chunk.js +2 -0
- package/build/static/js/5195.76a57010.chunk.js.map +1 -0
- package/build/static/js/{5674.dc0583db.chunk.js → 5674.2022f092.chunk.js} +2 -2
- package/build/static/js/{5674.dc0583db.chunk.js.map → 5674.2022f092.chunk.js.map} +1 -1
- package/build/static/js/{6075.0a2f9a12.chunk.js → 6075.25b78309.chunk.js} +2 -2
- package/build/static/js/6075.25b78309.chunk.js.map +1 -0
- package/build/static/js/{6763.a55b2e0d.chunk.js → 6763.32bb2def.chunk.js} +2 -2
- package/build/static/js/{6763.a55b2e0d.chunk.js.map → 6763.32bb2def.chunk.js.map} +1 -1
- package/build/static/js/6873.50e32922.chunk.js +2 -0
- package/build/static/js/6873.50e32922.chunk.js.map +1 -0
- package/build/static/js/{7227.1053f26b.chunk.js → 7227.c2d89fb7.chunk.js} +3 -3
- package/build/static/js/{7227.1053f26b.chunk.js.map → 7227.c2d89fb7.chunk.js.map} +1 -1
- package/build/static/js/739.8e5b8c2a.chunk.js +2 -0
- package/build/static/js/739.8e5b8c2a.chunk.js.map +1 -0
- package/build/static/js/{7589.90f9b150.chunk.js → 7589.8e796a0c.chunk.js} +2 -2
- package/build/static/js/{7589.90f9b150.chunk.js.map → 7589.8e796a0c.chunk.js.map} +1 -1
- package/build/static/js/{760.6b24e4ad.chunk.js → 760.d219af07.chunk.js} +2 -2
- package/build/static/js/{760.6b24e4ad.chunk.js.map → 760.d219af07.chunk.js.map} +1 -1
- package/build/static/js/{7857.37c51907.chunk.js → 7857.d0de7aca.chunk.js} +2 -2
- package/build/static/js/{7857.37c51907.chunk.js.map → 7857.d0de7aca.chunk.js.map} +1 -1
- package/build/static/js/7899.93db7b8a.chunk.js +2 -0
- package/build/static/js/7899.93db7b8a.chunk.js.map +1 -0
- package/build/static/js/{833.c3c7812b.chunk.js → 833.67e0afef.chunk.js} +2 -2
- package/build/static/js/833.67e0afef.chunk.js.map +1 -0
- package/build/static/js/8593.b8caf5fe.chunk.js +2 -0
- package/build/static/js/{8593.0fe55cd4.chunk.js.map → 8593.b8caf5fe.chunk.js.map} +1 -1
- package/build/static/js/9254.165445d3.chunk.js +2 -0
- package/build/static/js/9254.165445d3.chunk.js.map +1 -0
- package/build/static/js/{9556.bef1a226.chunk.js → 9556.cf56e497.chunk.js} +3 -3
- package/build/static/js/{9556.bef1a226.chunk.js.map → 9556.cf56e497.chunk.js.map} +1 -1
- package/build/static/js/{main.f8f9eb0f.js → main.64eb7a97.js} +2 -2
- package/build/static/js/{main.f8f9eb0f.js.map → main.64eb7a97.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1742.ef613214.chunk.css +0 -2
- package/build/static/css/2004.ed58a6f4.chunk.css +0 -2
- package/build/static/css/2307.3c5059f0.chunk.css +0 -2
- package/build/static/css/254.b159fe70.chunk.css +0 -2
- package/build/static/css/3404.018687de.chunk.css +0 -2
- package/build/static/css/3625.36553112.chunk.css +0 -2
- package/build/static/css/5195.c024c488.chunk.css +0 -2
- package/build/static/css/5674.d42e8b20.chunk.css +0 -2
- package/build/static/css/7227.1fc2b5a4.chunk.css +0 -2
- package/build/static/css/7857.585194fa.chunk.css +0 -2
- package/build/static/css/833.c28022fa.chunk.css +0 -2
- package/build/static/css/9556.7078bc08.chunk.css +0 -2
- package/build/static/js/1125.e36a3fa6.chunk.js.map +0 -1
- package/build/static/js/1742.b4b3157e.chunk.js +0 -2
- package/build/static/js/1742.b4b3157e.chunk.js.map +0 -1
- package/build/static/js/1996.75390469.chunk.js +0 -2
- package/build/static/js/2004.00308337.chunk.js +0 -3
- package/build/static/js/2004.00308337.chunk.js.map +0 -1
- package/build/static/js/2233.1b5d5710.chunk.js +0 -2
- package/build/static/js/2233.1b5d5710.chunk.js.map +0 -1
- package/build/static/js/2242.5caf43be.chunk.js.map +0 -1
- package/build/static/js/254.6958b375.chunk.js +0 -2
- package/build/static/js/254.6958b375.chunk.js.map +0 -1
- package/build/static/js/2931.052429b9.chunk.js.map +0 -1
- package/build/static/js/3120.d575468c.chunk.js +0 -2
- package/build/static/js/3120.d575468c.chunk.js.map +0 -1
- package/build/static/js/3245.21a3b598.chunk.js +0 -3
- package/build/static/js/3245.21a3b598.chunk.js.map +0 -1
- package/build/static/js/3404.8f81d550.chunk.js +0 -3
- package/build/static/js/3404.8f81d550.chunk.js.map +0 -1
- package/build/static/js/3625.5ec9bf8c.chunk.js +0 -2
- package/build/static/js/3625.5ec9bf8c.chunk.js.map +0 -1
- package/build/static/js/3771.088d9358.chunk.js +0 -2
- package/build/static/js/3790.8624b208.chunk.js +0 -2
- package/build/static/js/3790.8624b208.chunk.js.map +0 -1
- package/build/static/js/3856.992e89f5.chunk.js +0 -2
- package/build/static/js/3856.992e89f5.chunk.js.map +0 -1
- package/build/static/js/4614.94b249d9.chunk.js +0 -2
- package/build/static/js/4614.94b249d9.chunk.js.map +0 -1
- package/build/static/js/5195.16f05876.chunk.js +0 -2
- package/build/static/js/5195.16f05876.chunk.js.map +0 -1
- package/build/static/js/6075.0a2f9a12.chunk.js.map +0 -1
- package/build/static/js/6873.0c39cc25.chunk.js +0 -2
- package/build/static/js/6873.0c39cc25.chunk.js.map +0 -1
- package/build/static/js/739.bc04bd33.chunk.js +0 -2
- package/build/static/js/739.bc04bd33.chunk.js.map +0 -1
- package/build/static/js/7899.92317382.chunk.js +0 -2
- package/build/static/js/7899.92317382.chunk.js.map +0 -1
- package/build/static/js/833.c3c7812b.chunk.js.map +0 -1
- package/build/static/js/8593.0fe55cd4.chunk.js +0 -2
- package/build/static/js/9254.250dd74b.chunk.js +0 -2
- package/build/static/js/9254.250dd74b.chunk.js.map +0 -1
- /package/build/static/js/{2004.00308337.chunk.js.LICENSE.txt → 2004.b05fe2b9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.8f81d550.chunk.js.LICENSE.txt → 3404.be2d5b5e.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.1053f26b.chunk.js.LICENSE.txt → 7227.c2d89fb7.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.bef1a226.chunk.js.LICENSE.txt → 9556.cf56e497.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2233,4614],{94614(r,n,e){e.r(n),e.d(n,{useDebounce:()=>i,useDebouncedCallback:()=>u,useThrottledCallback:()=>a});var t=e(73884);function u(r,n,u,c){var i=this,a=(0,t.useRef)(null),l=(0,t.useRef)(0),o=(0,t.useRef)(0),f=(0,t.useRef)(null),s=(0,t.useRef)([]),v=(0,t.useRef)(),d=(0,t.useRef)(),m=(0,t.useRef)(r),h=(0,t.useRef)(!0),g=(0,t.useRef)(),p=(0,t.useRef)();m.current=r;var R="undefined"!=typeof window,b=!n&&0!==n&&R;if("function"!=typeof r)throw new TypeError("Expected a function");n=+n||0;var E=!!(u=u||{}).leading,k=!("trailing"in u)||!!u.trailing,w=!!u.flushOnExit&&k,x="maxWait"in u,y="debounceOnServer"in u&&!!u.debounceOnServer,_=x?Math.max(+u.maxWait||0,n):null,C=(0,t.useMemo)(function(){var r=function(r){var n=s.current,e=v.current;return s.current=v.current=null,l.current=r,o.current=o.current||r,d.current=m.current.apply(e,n)},t=function(r,n){b&&cancelAnimationFrame(f.current),f.current=b?requestAnimationFrame(r):setTimeout(r,n)},u=function(r){if(!h.current)return!1;var e=r-a.current;return!a.current||e>=n||e<0||x&&r-l.current>=_},C=function(n){return f.current=null,k&&s.current?r(n):(s.current=v.current=null,d.current)},D=function r(){var e=Date.now();if(E&&o.current===l.current&&O(),u(e))return C(e);if(h.current){var c=n-(e-a.current),i=x?Math.min(c,_-(e-l.current)):c;t(r,i)}},O=function(){c&&c({})},F=function(){if(R||y){var c,o=Date.now(),m=u(o);if(s.current=[].slice.call(arguments),v.current=i,a.current=o,w&&!g.current&&(g.current=function(){var r;"hidden"===(null==(r=e.g.document)?void 0:r.visibilityState)&&p.current.flush()},null==(c=e.g.document)||null==c.addEventListener||c.addEventListener("visibilitychange",g.current)),m){if(!f.current&&h.current)return l.current=a.current,t(D,n),E?r(a.current):d.current;if(x)return t(D,n),r(a.current)}return f.current||t(D,n),d.current}};return F.cancel=function(){var r=f.current;r&&(b?cancelAnimationFrame(f.current):clearTimeout(f.current)),l.current=0,s.current=a.current=v.current=f.current=null,r&&c&&c({})},F.isPending=function(){return!!f.current},F.flush=function(){return f.current?C(Date.now()):d.current},F},[E,x,n,_,k,w,b,R,y,c]);return p.current=C,(0,t.useEffect)(function(){return h.current=!0,function(){var r;w&&p.current.flush(),g.current&&(null==(r=e.g.document)||null==r.removeEventListener||r.removeEventListener("visibilitychange",g.current),g.current=null),h.current=!1}},[w]),C}function c(r,n){return r===n}function i(r,n,e){var i=e&&e.equalityFn||c,a=(0,t.useRef)(r),l=(0,t.useState)({})[1],o=u((0,t.useCallback)(function(r){a.current=r,l({})},[l]),n,e,l),f=(0,t.useRef)(r);return i(f.current,r)||(o(r),f.current=r),[a.current,o]}function a(r,n,e){var t=void 0===e?{}:e,c=t.leading,i=t.trailing,a=t.flushOnExit;return u(r,n,{maxWait:n,leading:void 0===c||c,trailing:void 0===i||i,flushOnExit:void 0!==a&&a})}}}]);
|
|
2
|
+
//# sourceMappingURL=4614.23e24b4e.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/4614.23e24b4e.chunk.js","mappings":"4PAmIc,SAAUA,EAGtBC,EACAC,EACAF,EACAG,GAA8C,IAAAC,EAAA,KAExCC,GAAeC,EAAAA,EAAAA,QAAO,MACtBC,GAAiBD,EAAAA,EAAAA,QAAO,GACxBE,GAAkBF,EAAAA,EAAAA,QAAO,GACzBG,GAAUH,EAAAA,EAAAA,QAAO,MACjBI,GAAWJ,EAAAA,EAAAA,QAAkB,IAC7BK,GAAWL,EAAAA,EAAAA,UACXM,GAASN,EAAAA,EAAAA,UACTO,GAAUP,EAAAA,EAAAA,QAAOL,GACjBa,GAAUR,EAAAA,EAAAA,SAAA,GACVS,GAAqBT,EAAAA,EAAAA,UACrBU,GAAeV,EAAAA,EAAAA,UAErBO,EAAQI,QAAUhB,EAElB,IAAMiB,EAAiC,oBAAXC,OAEtBC,GAAUlB,GAAiB,IAATA,GAAcgB,EAEtC,GAAoB,mBAATjB,EACT,MAAM,IAAIoB,UAAU,uBAGtBnB,GAAQA,GAAQ,EAGhB,IAAMoB,KAFNtB,EAAUA,GAAW,CAAE,GAEGuB,QACpBC,IAAW,aAAcxB,MAAYA,EAAQyB,SAC7CC,IAAgB1B,EAAQ2B,aAAeH,EACvCI,EAAS,YAAa5B,EACtB6B,EACJ,qBAAsB7B,KAAYA,EAAQ8B,iBACtCC,EAAUH,EAASI,KAAKC,KAAKjC,EAAQkC,SAAW,EAAGhC,GAAQ,KAY3DiC,GAAYC,EAAAA,EAAAA,SAAQ,WACxB,IAAM9B,EAAa,SAACA,GAClB,IAAM8B,EAAO1B,EAASO,QAChBoB,EAAU1B,EAASM,QAKzB,OAJAP,EAASO,QAAUN,EAASM,QAAU,KACtCV,EAAeU,QAAUX,EACzBE,EAAgBS,QAAUT,EAAgBS,SAAWX,EAE7CM,EAAOK,QAAUJ,EAAQI,QAAQqB,MAAMD,EAASD,EAC1D,EAEMA,EAAa,SAAC9B,EAAyB8B,GACvChB,GAAQmB,qBAAqB9B,EAAQQ,SACzCR,EAAQQ,QAAUG,EACdoB,sBAAsBlC,GACtBmC,WAAWnC,EAAa8B,EAC9B,EAEMC,EAAe,SAAC/B,GACpB,IAAKQ,EAAQG,QAAS,OAAO,EAE7B,IAAMmB,EAAoB9B,EAAOD,EAAaY,QAM9C,OACGZ,EAAaY,SACdmB,GAAqBlC,GACrBkC,EAAoB,GACnBR,GATyBtB,EAAOC,EAAeU,SASdc,CAEtC,EAEM9B,EAAe,SAACmC,GAKpB,OAJA3B,EAAQQ,QAAU,KAIdO,GAAYd,EAASO,QAChBX,EAAW8B,IAGpB1B,EAASO,QAAUN,EAASM,QAAU,KAC/BL,EAAOK,QAChB,EAEMjB,EAAe,SAAfM,IACJ,IAAMN,EAAO0C,KAAKC,MAMlB,GAJIrB,GAAWd,EAAgBS,UAAYV,EAAeU,SACxDkB,IAGEE,EAAarC,GACf,OAAOC,EAAaD,GAGtB,GAAKc,EAAQG,QAAb,CAIA,IAEMd,EAAcD,GAFMF,EAAOK,EAAaY,SAGxCb,EAAgBwB,EAClBI,KAAKY,IAAIzC,EAAa4B,GAHE/B,EAAOO,EAAeU,UAI9Cd,EAGJiC,EAAW9B,EAAcF,EAVxB,CAWH,EAEM+B,EAA6B,WAC7BhC,GACFA,EAAY,CAAE,EAElB,EAEM0C,EAA0B,WAC9B,GAAK3B,GAAiBW,EAAtB,CAGA,IAOgD5B,EAP1CE,EAAOuC,KAAKC,MACZnC,EAAa6B,EAAalC,GAiBhC,GAfAO,EAASO,QAAO,GAAA6B,MAAAC,KAAAC,WAChBrC,EAASM,QAAUb,EACnBC,EAAaY,QAAUd,EAEnBuB,IAAgBX,EAAmBE,UACrCF,EAAmBE,QAAU,WAAK,IAAAX,EACS,YAArC,OAAAA,EAAA2C,EAAAA,EAAOC,eAAA,EAAP5C,EAAiB6C,kBACnBnC,EAAaC,QAAQmC,OAEzB,EACe,OAAfnD,EAAAgD,EAAAA,EAAOC,WAA0B,MAAjCjD,EAAiBoD,kBAAjBpD,EAAiBoD,iBACf,mBACAtC,EAAmBE,UAGnBT,EAAY,CACd,IAAKC,EAAQQ,SAAWH,EAAQG,QAM9B,OAJAV,EAAeU,QAAUZ,EAAaY,QAEtCmB,EAAWpC,EAAcE,GAElBoB,EAAUhB,EAAWD,EAAaY,SAAWL,EAAOK,QAE7D,GAAIW,EAGF,OADAQ,EAAWpC,EAAcE,GAClBI,EAAWD,EAAaY,QAElC,CAID,OAHKR,EAAQQ,SACXmB,EAAWpC,EAAcE,GAEpBU,EAAOK,OArCb,CAsCH,EA8BA,OA5BA4B,EAAKS,OAAS,WACZ,IAAMhD,EAAWG,EAAQQ,QACrBX,IACFc,EACImB,qBAAqB9B,EAAQQ,SAC7BsC,aAAa9C,EAAQQ,UAE3BV,EAAeU,QAAU,EACzBP,EAASO,QACPZ,EAAaY,QACbN,EAASM,QACTR,EAAQQ,QACN,KAGAX,GAAYH,GACdA,EAAY,CAAE,EAElB,EAEA0C,EAAKW,UAAY,WACf,QAAS/C,EAAQQ,OACnB,EAEA4B,EAAKO,MAAQ,WACX,OAAQ3C,EAAQQ,QAA2BhB,EAAayC,KAAKC,OAAnC/B,EAAOK,OACnC,EAEO4B,CACT,EAAG,CACDvB,EACAM,EACA1B,EACA6B,EACAP,EACAE,EACAN,EACAF,EACAW,EACA1B,IAuBF,OAnBAa,EAAaC,QAAUkB,GAEvBE,EAAAA,EAAAA,WAAU,WAER,OADAvB,EAAQG,SAAA,EACD,WAI2B,IAAAX,EAH5BoB,GACFV,EAAaC,QAAQmC,QAEnBrC,EAAmBE,UACrB,OAAAX,EAAA2C,EAAAA,EAAOC,WAA6B,MAApC5C,EAAiBmD,qBAAjBnD,EAAiBmD,oBACf,mBACA1C,EAAmBE,SAErBF,EAAmBE,QAAU,MAE/BH,EAAQG,SAAA,CACV,CACF,EAAG,CAACS,IAEGS,CACT,CC7WA,SAAShC,EAAiBG,EAAS8B,GACjC,OAAO9B,IAAS8B,CAClB,CAEwB,SAAAhC,EACtBgC,EACAC,EACAjC,GAOA,IAAMC,EAAMD,GAAWA,EAAQsD,YAAevD,EAExCI,GAAcD,EAAAA,EAAAA,QAAO8B,GAClB5B,GAAeP,EAAAA,EAAAA,UAAS,CAAC,GAAd,GACdQ,EAAYT,GAChBE,EAAAA,EAAAA,aACE,SAACI,GACCC,EAAYU,QAAUX,EACtBE,EAAY,CAAC,EACf,EACA,CAACA,IAEH6B,EACAjC,EACAI,GAEIE,GAAgBJ,EAAAA,EAAAA,QAAO8B,GAO7B,OALK/B,EAAGK,EAAcO,QAASmB,KAC7B3B,EAAU2B,GACV1B,EAAcO,QAAUmB,GAGnB,CAAC7B,EAAYU,QAAcR,EACpC,CCgBwB,SAAAJ,EAGtBC,EACA8B,EAAYC,GAAA,IAC8DpC,OAAA,IAAAoC,EAAF,CAAE,EAAAA,EAAAnC,EAAAD,EAAxEsB,QAAcpB,EAAAF,EAAEwB,SAAerB,EAAAH,EAAE0B,YAEnC,OAAO3B,EAAqBM,EAAM8B,EAAM,CACtCF,QAASE,EACTb,aAAA,IAJOrB,GAAOA,EAKduB,cAAA,IALwBtB,GAAOA,EAM/BwB,iBAAA,IAN4CvB,GAAQA,GAQxD,C","sources":["../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useDebounce.ts","../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useThrottledCallback.ts"],"sourcesContent":["import {\n useRef,\n useEffect,\n useMemo,\n type Dispatch,\n type SetStateAction,\n} from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n /**\n * Controls if the function should be invoked when the React component unmounts or\n * the page is closed. This is usually desirable whenever `func` has persistent side-effects\n * such as persists data.\n *\n * NOTE: If the callback calls `fetch()`, you usually also want to specify the `keepalive=true`\n * option for `fetch()` so it can finish in the background after the page is closed.\n *\n * This option has no effect if `trailing == false`.\n */\n flushOnExit?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n /**\n * If the setting is set to true, all debouncing and timers will happen on the server side as well\n */\n debounceOnServer?: boolean;\n}\n\nexport interface ControlFunctions<ReturnT> {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => ReturnT | undefined;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function return the result of the last func invocation.\n * Note, that if there are no previous invocations you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState<T extends (...args: any) => ReturnType<T>>\n extends ControlFunctions<ReturnType<T>> {\n (...args: Parameters<T>): ReturnType<T> | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * <button onClick={clickHandler}>click me</button>\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.isPending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<\n T extends (...args: any) => ReturnType<T>,\n>(\n func: T,\n wait?: number,\n options?: Options,\n forceUpdate?: Dispatch<SetStateAction<object>>\n): DebouncedState<T> {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const firstInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef<unknown[]>([]);\n const lastThis = useRef<unknown>();\n const result = useRef<ReturnType<T>>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n const visibilityListener = useRef<VoidFunction>();\n const debouncedRef = useRef<DebouncedState<T>>();\n // Always keep the latest version of debounce callback, with no wait time.\n funcRef.current = func;\n\n const isClientSide = typeof window !== 'undefined';\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && isClientSide;\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const flushOnExit = !!options.flushOnExit && trailing;\n const maxing = 'maxWait' in options;\n const debounceOnServer =\n 'debounceOnServer' in options ? !!options.debounceOnServer : false; // `false` by default\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n firstInvokeTime.current = firstInvokeTime.current || time;\n\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF\n ? requestAnimationFrame(pendingFunc)\n : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n\n if (leading && firstInvokeTime.current === lastInvokeTime.current) {\n notifyManuallyTimerExpired();\n }\n\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing\n ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const notifyManuallyTimerExpired = () => {\n if (forceUpdate) {\n forceUpdate({});\n }\n };\n\n const func: DebouncedState<T> = (...args: Parameters<T>): ReturnType<T> => {\n if (!isClientSide && !debounceOnServer) {\n return;\n }\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (flushOnExit && !visibilityListener.current) {\n visibilityListener.current = () => {\n if (global.document?.visibilityState === 'hidden') {\n debouncedRef.current.flush();\n }\n };\n global.document?.addEventListener?.(\n 'visibilitychange',\n visibilityListener.current\n );\n }\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n const hadTimer = timerId.current;\n if (hadTimer) {\n useRAF\n ? cancelAnimationFrame(timerId.current)\n : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current =\n lastCallTime.current =\n lastThis.current =\n timerId.current =\n null;\n\n // Notify React to re-render when cancel is called and there was an active timer\n if (hadTimer && forceUpdate) {\n forceUpdate({});\n }\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [\n leading,\n maxing,\n wait,\n maxWait,\n trailing,\n flushOnExit,\n useRAF,\n isClientSide,\n debounceOnServer,\n forceUpdate,\n ]);\n\n // Store reference to debounced function for cleanup\n debouncedRef.current = debounced;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n if (flushOnExit) {\n debouncedRef.current.flush();\n }\n if (visibilityListener.current) {\n global.document?.removeEventListener?.(\n 'visibilitychange',\n visibilityListener.current\n );\n visibilityListener.current = null;\n }\n mounted.current = false;\n };\n }, [flushOnExit]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality<T>(left: T, right: T): boolean {\n return left === right;\n}\n\nexport default function useDebounce<T>(\n value: T,\n delay: number,\n options?: {\n maxWait?: number;\n leading?: boolean;\n trailing?: boolean;\n equalityFn?: (left: T, right: T) => boolean;\n }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const activeValue = useRef(value);\n const [, forceUpdate] = useState({});\n const debounced = useDebouncedCallback(\n useCallback(\n (value: T) => {\n activeValue.current = value;\n forceUpdate({});\n },\n [forceUpdate]\n ),\n delay,\n options,\n forceUpdate\n );\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [activeValue.current as T, debounced];\n}\n","import useDebouncedCallback, {\n CallOptions,\n DebouncedState,\n} from './useDebouncedCallback';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds (or once per browser frame).\n *\n * The throttled function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the throttled function.\n *\n * Subsequent calls to the throttled function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `throttle` and `debounce`.\n *\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0]\n * The number of milliseconds to throttle invocations to; if omitted,\n * `requestAnimationFrame` is used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * const scrollHandler = useThrottledCallback(updatePosition, 100)\n * window.addEventListener('scroll', scrollHandler)\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * const throttled = useThrottledCallback(renewToken, 300000, { 'trailing': false })\n * <button onClick={throttled}>click</button>\n *\n * // Cancel the trailing throttled invocation.\n * window.addEventListener('popstate', throttled.cancel);\n */\nexport default function useThrottledCallback<\n T extends (...args: any) => ReturnType<T>,\n>(\n func: T,\n wait: number,\n { leading = true, trailing = true, flushOnExit = false }: CallOptions = {}\n): DebouncedState<T> {\n return useDebouncedCallback(func, wait, {\n maxWait: wait,\n leading,\n trailing,\n flushOnExit,\n });\n}\n"],"names":["c","e","u","i","l","a","r","o","f","v","d","m","s","g","h","x","E","current","b","window","p","TypeError","y","leading","w","trailing","O","flushOnExit","F","L","debounceOnServer","A","Math","max","maxWait","D","n","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","S","slice","call","arguments","global","document","visibilityState","flush","addEventListener","cancel","clearTimeout","isPending","removeEventListener","equalityFn"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5195],{3874(e,t,n){n.r(t),n.d(t,{StateTagEnum:()=>_,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__Ze7gE","state-result-tag":"style_state-result-tag__CssDz__Ze7gE","state-skill-tag":"style_state-skill-tag__k0bQE__Ze7gE","event-tag":"style_event-tag__cg6SE__Ze7gE","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__Ze7gE","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__Ze7gE","state-tag-filterResult":"style_state-tag-filterResult__KTkot__Ze7gE","show-bg":"style_show-bg__OcL+R__Ze7gE","tag-text":"style_tag-text__JHCt+__Ze7gE","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__Ze7gE"};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:g}=e,_=(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:[g?(0,d.jsxs)("span",{className:o["state-tag-filter-name"],children:[g,":"]}):null,(0,d.jsx)(c.Tag,(0,l.A)((0,l.A)({color:f.color},_),{},{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!==_&&void 0!==_&&_.onClick?o["event-tag"]:""),children:(0,d.jsx)("span",{className:o["tag-text"],children:n})}))]})};var h=n(48731);const g=["moduleName","name"],_=e=>{let{moduleName:t,name:n}=e,s=(0,a.A)(e,g);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))})}},6617(e,t,n){n.r(t),n.d(t,{default:()=>a.a});n(9056);var l=n(49461),a=n.n(l),s={};for(const r in l)"default"!==r&&(s[r]=()=>l[r]);n.d(t,s)},10935(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__Ze7gE","is-resize":"style_is-resize__ut6RW__Ze7gE","is-moving":"style_is-moving__BJ9wR__Ze7gE","cell-resize-bar":"style_cell-resize-bar__-mlUF__Ze7gE","is-computed":"style_is-computed__B9rIF__Ze7gE","options-column":"style_options-column__vsPTr__Ze7gE","options-btn":"style_options-btn__U3uoy__Ze7gE",tooltip:"style_tooltip__vJlkv__Ze7gE","table-changer-setting":"style_table-changer-setting__HcrwR__Ze7gE","width-changer-sign":"style_width-changer-sign__Aflyl__Ze7gE","columns-control":"style_columns-control__5-5ZF__Ze7gE","columns-control-content":"style_columns-control-content__MoeUI__Ze7gE","columns-control-content-title":"style_columns-control-content-title__P5sXV__Ze7gE","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__Ze7gE","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__Ze7gE","columns-control-content-input":"style_columns-control-content-input__G6yKq__Ze7gE","columns-control-content-list":"style_columns-control-content-list__aXvTs__Ze7gE","columns-control-content-item":"style_columns-control-content-item__jbyyE__Ze7gE","is-drag":"style_is-drag__U68aw__Ze7gE","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__Ze7gE","sortable-drag":"style_sortable-drag__K5hWd__Ze7gE","sortable-ghost":"style_sortable-ghost__lKTd2__Ze7gE","columns-control-overlay":"style_columns-control-overlay__OxCIz__Ze7gE","sort-btn":"style_sort-btn__KvNLr__Ze7gE","sort-active-desc":"style_sort-active-desc__TIhMC__Ze7gE","sort-icon":"style_sort-icon__dB85I__Ze7gE","sort-active-asc":"style_sort-active-asc__RUBup__Ze7gE"};var r=n(55199),i=n(73884),o=n(83136),c=n.n(o),d=n(10486),u=n(96418),m=n.n(u),p=n(76801);const h={scroller:"style_scroller__EfuqR__Ze7gE","scroller-inner":"style_scroller-inner__NJSE0__Ze7gE","is-moving":"style_is-moving__jGuy0__Ze7gE"};var g=n(70579);const _=["onScroll","getContainer"],f=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 p=(0,i.useRef)(1);return p.current=l.width/l.innerWidth,(0,i.useEffect)(()=>{const e=e=>{u.current&&m.current(p.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,g.jsx)("div",{className:c()(h.scroller,"scroller-bar"),style:{left:l.left,width:l.width,height:15},children:(0,g.jsx)("div",{className:c()(h["scroller-inner"],"scroller-bar-inner",{[h["is-moving"]]:r}),style:{width:l.innerWidth,left:l.innerLeft},onMouseDown:e=>{e.preventDefault(),s.current=e.clientX,o(!0)}})}):null,n()||document.body)},y=e=>{let{className:t,scroller:n=!0,getScrollTarget:a=p.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=m()(()=>o.current&&a(o.current)),u=(0,i.useRef)();return u.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,i.useEffect)(()=>{const e=u.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,g.jsxs)("div",{className:c()(h["scroller-outer"],t),ref:o,style:{"--scroller-bar-height":null!==e&&void 0!==e&&e.hasScroller?"15px":"0px"},children:[s,(0,g.jsx)(f,(0,l.A)((0,l.A)({},e),{},{getContainer:u.current,onScroll:e=>{d().scrollLeft+=e}}))]}):s}()};var v=n(77964);const x={"col-item":"columns_col-item__Ym1Ec__Ze7gE",tag:"columns_tag__bQZLG__Ze7gE",avatar:"columns_avatar__SLPI+__Ze7gE",hover:"columns_hover__oAwHg__Ze7gE",primary:"columns_primary__6KtaA__Ze7gE",loading:"columns_loading__gtBay__Ze7gE",options:"columns_options__WvDZD__Ze7gE"};var j=n(57469),b=n.n(j),E=n(87558),A=n.n(E),C=n(6617);const N=["className"],w=["list"],F=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,N);return Object.assign({},n,d)});return(0,g.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,g.jsx)(C.default,{itemClassName:"btn-no-padding",moreType:"link",list:u})]})},S=e=>{let{list:t}=e,n=(0,a.A)(e,w);return"function"===typeof t?(0,g.jsx)(A(),{loader:t,render:e=>{let{data:t}=e;return(0,g.jsx)(F,(0,l.A)((0,l.A)({},n),{},{list:t}))}}):Array.isArray(t)?(0,g.jsx)(F,(0,l.A)((0,l.A)({},n),{},{list:t})):(0,g.jsx)(F,(0,l.A)({},Object.assign({},n,t)))};var Z=n(3874),O=n(40438),R=n(48731);const k=e=>{let{children:t,ellipsis:n}=e;return(0,g.jsx)(r.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{rootClassName:s.tooltip,children:t}},"object"===typeof n?n:{}),children:t})},I=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[h,_]=(0,i.useState)(!1);return(0,g.jsx)("div",{style:Object.assign({},u,{"--max-width":d+"px"}),className:c()(x["col-item"],x[t],l?null:{[x.hover]:s,[x.primary]:r,[x.loading]:h}),onClick:e=>{"function"!==typeof m||l||h||(_(!0),Promise.resolve(m({item:n,colItem:p,event:e})).finally(()=>{_(!1)}))},children:l?a({type:t,item:n,hover:s,primary:r,children:o}):o})},P=(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,M=(0,E.createWithFetch)({loading:null})(e=>{let{data:t,children:n}=e;return n(t)}),T=e=>{let{api:t,expand:n,onExpand:a,ellipsis:s,hover:i,primary:o,emptyRender:c,isEmpty:d}=e;const u=Object.assign({},t);return n?(0,g.jsx)(M,(0,l.A)((0,l.A)({},u),{},{children:e=>(0,g.jsx)(I,{type:"hide-info-expand",item:e,hover:i,primary:o,emptyRender:c,isEmpty:P(e),children:(0,g.jsx)(k,{ellipsis:s,children:"function"===typeof u.children?u.children(e):e})})})):(0,g.jsx)(I,{type:"hide-info",primary:!0,emptyRender:c,children:(0,g.jsx)(r.Button,{className:"btn-no-padding",type:"link",onClick:a,children:"\u67e5\u770b"})})};var z=n(1488),L=n.n(z);const K=["hover","primary","isEmpty","emptyRender"],D=["hover","primary","isEmpty","emptyRender"],H=["hover","primary","isEmpty","emptyRender"],Y=["hover","primary","emptyRender","isEmpty","hideSecond"],V=["hover","primary","emptyRender","isEmpty"],B=["hover","primary","emptyRender","isEmpty"],U=["hover","primary","ellipsis","emptyRender","isEmpty"],W=["hover","primary","ellipsis","emptyRender","isEmpty"],q=["hover","primary","ellipsis","emptyRender","isEmpty"],G=["emptyRender","isEmpty"],X=["emptyRender","isEmpty"],J=["hover","primary","ellipsis","emptyRender","isEmpty"],Q=["ellipsis","hover","primary","emptyRender","isEmpty"],$=["hover","primary","ellipsis","emptyRender","isEmpty"],ee=["hover","primary","ellipsis","emptyRender","isEmpty"],te=["hover","primary","ellipsis","emptyRender","isEmpty"],ne=(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,ee);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"other",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,g.jsx)(k,{ellipsis:r,children:e})}))},le={date:{render:(e,t)=>{let{hover:n,primary:s,isEmpty:r,emptyRender:i}=t,o=(0,a.A)(t,K);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},o),{},{type:"date",item:e,primary:s,hover:n,emptyRender:i,isEmpty:r||!b()(e).isValid(),children:b()(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,D);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},o),{},{type:"date-short",item:e,primary:s,hover:n,emptyRender:i,isEmpty:r||!b()(e).isValid(),children:b()(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,H);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},o),{},{type:"date-range",item:e,primary:s,hover:n,emptyRender:i,isEmpty:r,children:b()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD")+"~"+b()(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,Y);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},c),{},{item:e,primary:s,hover:n,emptyRender:r,isEmpty:i||!b()(e).isValid(),children:b()(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,V);return(0,g.jsx)(I,(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,B);return(0,g.jsx)(I,(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,U);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"user",item:e,primary:s,hover:n,emptyRender:i,isEmpty:o,children:(0,g.jsx)(k,{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,W);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"user-name",item:e,primary:s,hover:n,emptyRender:i,isEmpty:o,children:(0,g.jsx)(k,{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,q);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"contacts",item:e,primary:s,hover:n,emptyRender:i,isEmpty:o,children:(0,g.jsx)(k,{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,G);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},r),{},{type:"tag",item:e,emptyRender:n,isEmpty:s,children:e&&(e.isEnum?(0,g.jsx)(R.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:a}=t;return(0,g.jsx)(Z.default,(0,l.A)((0,l.A)({type:n},Object.assign({},L()(e,["name","isEnum","moduleName","force"]))),{},{text:a}))}}):(0,g.jsx)(Z.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,X);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},r),{},{type:"avatar",item:e,emptyRender:n,isEmpty:s,children:(0,g.jsx)(O.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,J);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"single-row",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,g.jsx)(k,{ellipsis:r,children:e})}))},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,g.jsx)(T,(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,Q);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"main-info",item:e,hover:s,primary:r,emptyRender:i,isEmpty:o,children:(0,g.jsx)(k,{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,$);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"description",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,g.jsx)(k,{ellipsis:r,children:e})}))},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,g.jsx)(S,{className:c()(x["col-item"],x.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,te);return(0,g.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"sensitiveInfo",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,g.jsx)(k,{ellipsis:r,children:e})}))},width:200,min:100,max:400},other:{render:ne,width:200,min:120,max:400},otherSmall:{render:ne,width:100,min:70,max:400},otherLarge:{render:ne,width:300,min:120,max:500}},ae=le;var se=n(33097),re=n.n(se),ie=n(42907),oe=n.n(ie),ce=n(22717),de=n.n(ce),ue=n(22616),me=n.n(ue),pe=n(64671),he=n(72752),ge=n(39835),_e=n.n(ge),fe=n(81014),ye=n(43856),ve=n(76441),xe=n(69613),je=n.n(xe),be=n(56434),Ee=n.n(be);const{Panel:Ae}=r.Collapse,Ce=e=>{let{close:t,onConfirm:n,columns:l,config:a}=e;const[o,d]=(0,i.useState)(a||{}),[u,m]=(0,i.useState)(""),{leftFixedColumns:p,rightFixedColumns:h,visibleColumns:_,hiddenColumns:f}=(0,i.useMemo)(()=>de()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},_e()(l,e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==re()(o,"".concat(e.name,".visible"))&&e.hidden||!1===re()(o,"".concat(e.name,".visible"))?"hiddenColumns":"visibleColumns")),(e,t,n)=>{e[n]=t.sort((e,t)=>re()(o,"".concat(e.name,".rank"),0)-re()(o,"".concat(t.name,".rank"),0))},{}),[l,o]),y=e=>(0,g.jsxs)(g.Fragment,{children:[e.titleText||e.title||"\u672a\u547d\u540d\u5217",e.groupHeader&&e.groupHeader.length>0?"(".concat(e.groupHeader.map(e=>{let{title:t}=e;return t}).join("-"),")"):""]});return(0,g.jsxs)("div",{className:s["columns-control-content"],children:[(0,g.jsx)("div",{className:s["columns-control-content-title"],children:(0,g.jsxs)(r.Row,{align:"middle",justify:"space-between",children:[(0,g.jsx)(r.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,g.jsx)(fe.default,{type:"text",icon:(0,g.jsx)(pe.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,g.jsx)("div",{className:s["columns-control-content-scroller"],children:(0,g.jsxs)(r.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,g.jsx)(Ae,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,g.jsxs)(r.List,{className:s["columns-control-content-list"],children:[p.map((e,t)=>(0,g.jsx)(r.List.Item,{className:s["columns-control-content-item"],children:(0,g.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:y(e)})},e.name||"left-".concat(t))),(0,g.jsx)(ve.ReactSortable,{list:_,filter:".ignore-elements",dragClass:s["sortable-drag"],ghostClass:s["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=Ee()(o),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach(e=>{je()(t,"".concat(e.name,".visible"),!1)}),n.forEach((e,n)=>{je()(t,"".concat(e.name,".rank"),n+1)}),d(t)})({leftFixedColumns:p,visibleColumns:e,hiddenColumns:f,rightFixedColumns:h})},animation:300,delayOnTouchStart:!0,delay:2,children:_.map((e,t)=>(0,g.jsxs)(r.List.Item,{className:c()(s["columns-control-content-item"],s["is-drag"]),children:[(0,g.jsx)(pe.default,{type:"icon-paixu",className:s["columns-control-content-item-icon"]}),(0,g.jsx)(r.Checkbox,{checked:!0,disabled:e.fixed||p.length+_.length+h.length<=1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},o);n[e.name]=Object.assign({},n[e.name],{visible:!1}),d(n)},children:y(e)})]},e.name||"visible-".concat(t)))}),h.map((e,t)=>(0,g.jsx)(r.List.Item,{className:s["columns-control-content-item"],children:(0,g.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.name||"right-".concat(t)))]})},"active"),(0,g.jsx)(Ae,{header:(0,g.jsxs)(r.Row,{wrap:!1,justify:"space-between",children:[(0,g.jsx)(r.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,g.jsx)(r.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,g.jsx)(ye.SearchInput,{prefix:(0,g.jsx)(pe.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{m(e)},className:s["columns-control-content-input"],size:"small"})})]}),children:(0,g.jsx)(r.List,{dataSource:f.filter(e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(u)>-1),renderItem:e=>(0,g.jsx)(r.List.Item,{className:s["columns-control-content-item"],children:(0,g.jsx)(r.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},o);n[e.name]=Object.assign({},n[e.name],{visible:!0}),d(n)},children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.key)})},"un-active")]})}),(0,g.jsxs)(r.Row,{className:s["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Button,{size:"small",onClick:()=>{d(a||{}),t()},children:"\u53d6\u6d88"})}),(0,g.jsx)(r.Col,{children:(0,g.jsx)(fe.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(o),t()},children:"\u786e\u5b9a"})})]})]})};var Ne=n(51941),we=n(19853),Fe=n.n(we),Se=n(21844),Ze=n.n(Se),Oe=n(25644);const Re="COMPONENTS_CORE_TABLE_CONFIG",ke={getDataApi:e=>e?{loader:()=>re()(Oe.A.getItem(Re),e,{})}:{},setDataFunc:(e,t)=>{if(e)return Oe.A.setItem(Re,Object.assign({},Oe.A.getItem(Re),{[e]:t}))}},Ie=e=>{let{title:t,columns:n,config:l,setConfig:a}=e;const[o,c]=(0,i.useState)(!1);return(0,g.jsxs)(r.Row,{wrap:!1,children:[(0,g.jsx)(r.Col,{flex:1,children:t}),(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Popover,{open:o,onOpenChange:c,trigger:"click",placement:"bottomLeft",rootClassName:s["columns-control-overlay"],content:(0,g.jsx)(Ce,{columns:n,config:l,close:()=>{c(!1)},onConfirm:e=>{a(t=>de()(e,(e,n,l)=>{e[l]=Object.assign({},t[l],me()(n,["visible","rank"]))},{}))}}),children:(0,g.jsx)("span",{className:s["table-changer-setting"],children:(0,g.jsx)(pe.default,{type:"icon-shezhi"})})})})]})},Pe=e=>{let{columns:t,name:n,controllerOpen:a,tableWidth:r,rowKey:o}=e;const[d,u]=(0,i.useState)(null),p=(0,i.useRef)(d);p.current=d;const h=(0,i.useRef)(null),_=(0,i.useRef)(null),[f,y]=(0,i.useState)({}),{tableServerApis:v}=(0,he.usePreset)(),x=v||ke,j=null===x||void 0===x?void 0:x.getDataApi(n),b=(0,Ne.useDebouncedCallback)((e,t)=>{null===x||void 0===x||x.setDataFunc(e,t)},500),A=m()(e=>{(0,i.startTransition)(()=>{y(t=>{const l="function"===typeof e?e(t):e;return n&&a&&b(n,l),l})})}),{send:C}=(0,E.useFetch)(Object.assign((0,l.A)((0,l.A)({},Object.assign({},j)),{},{auto:!1,cache:"TABLE_CONFIG_".concat(n),isLocal:!0,onRequestSuccess:e=>{y(Object.assign({},e))}}))),N=m()(()=>{n&&a&&j&&C({force:!1})});(0,i.useEffect)(()=>{N()},[N]);const w=(0,i.useMemo)(()=>t.filter(e=>!(!1===re()(f,"".concat(e.name,".visible"))||!0!==re()(f,"".concat(e.name,".visible"))&&!0===e.hidden)).sort((e,t)=>{const n=e=>re()(f,"".concat(e.name,".rank"),0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}),[t,f]),F=(0,i.useMemo)(()=>Ze()(w,e=>{let{type:t}=e;return"options"!==t}),[w]),S=(0,i.useMemo)(()=>oe()(w,e=>{let{type:t,name:n}=e;return re()(f,"".concat(n,".width"))||(ae[t]||ae.other).width}),[w,f]),Z=e=>{let{width:t,index:n}=e;return F===n?t+Math.max(r-S-2,0):t},O=m()((e,t)=>(0,g.jsx)("span",{className:c()(s["cell-resize-bar"]),onMouseDown:n=>{h.current=Object.assign({},e,{index:t}),_.current=n.clientX,u(t)},children:(0,g.jsx)(pe.default,{type:"icon-paixu"})})),R=m()(e=>{if(null===d)return;if(!h.current)return;const{name:t,width:n,min:l,max:a,index:s}=h.current,r=Math.min(Math.max(n+e,l),a);r<Z({width:l,index:s})||A(e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:r})}))}),k=m()((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,g.jsx)(Ie,{title:null===e||void 0===e?void 0:e.title,columns:t,config:f,setConfig:A})}));const u=()=>({className:c()({[s["is-moving"]]:p.current===n})}),m=Math.min(Math.max(re()(f,"".concat(l,".width"))||a,r),i),h=Z({width:m,index:n});return Object.assign({},d,{onHeaderCell:u,onCell:u,width:h,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&&Fe()(t[e.name],l[e.name]))},title:(0,g.jsxs)(g.Fragment,{children:[d.title,!(h>m&&h>i)&&O(Object.assign({},d,{width:h}),n)]})})});return(0,i.useEffect)(()=>{const e=()=>{u(null),_.current=null,h.current=null},t=e=>{null!==p.current&&null!==h.current&&(null!==_.current?R(e.clientX-_.current):_.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:S,computedColumnProps:k}};var Me=n(79686),Te=n.n(Me);const ze=["name","type","expandType","title","titleRender","fixed","emptyOf","emptyRender","groupHeader","sort","disableColItem"],Le=e=>{let{rowKey:t,renderProps:n}=e;const[s,r]=(0,i.useState)(null),o=(0,i.useRef)(n);o.current=n;const c=m()((e,n,i)=>{let{columnsConfig:c}=i;const{name:d,type:u,expandType:m,title:p,titleRender:h,fixed:g,emptyOf:_,emptyRender:f,groupHeader:y,sort:v,disableColItem:x}=e,j=(0,a.A)(e,ze),{render:b,width:E,min:A,max:C}=Object.assign({},ae[u]||ae.other,"hideInfo"===u&&!Te()(s)&&me()(ae[m]||ae.other,["width","min","max"])),N=b;return{name:d,title:"function"===typeof h?h(p):p,min:A,max:C,width:E,fixed:g,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=P(e,_);return N(e,(0,l.A)((0,l.A)({},j),{},{name:d,width:re()(c,"".concat(d,".width"))||E,min:A,max:C,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}:{})):re()(n,d);return x?m:u(m)}}});return{expandInfo:s,computedColumnProps:c}},Ke=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 De=n(10986),He=n.n(De),Ye=n(41740),Ve=n.n(Ye);const Be=e=>new Map((e||[]).map(e=>{let{name:t,sort:n}=e;return[t,n]})),Ue=e=>{const[t,n]=He()(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),l=(0,i.useMemo)(()=>Be(t),[t]),a=(0,i.useCallback)(e=>n(t=>{const n=e(Be(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,g.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=Ve()(e);return a?s.set(n,a):s.delete(n),s})},children:[(0,g.jsx)(pe.default,{type:"icon-triangle-up",className:s["sort-icon"]}),(0,g.jsx)(pe.default,{type:"icon-triangle-down",className:s["sort-icon"]})]})},[l,a])};var We=n(9376),qe=n.n(We);const Ge=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 Je=e=>({"en-US":()=>n.e(399).then(n.bind(n,80399)),"zh-CN":()=>n.e(9809).then(n.bind(n,59809))}[e]());var Qe=n(47458);const $e=["data","refresh","reload","requestParams","fetchProps","isComplete","setData","loadMore","send","dataFormat","className","featureId","columns","getColumns","pagination","columnRenderProps","summary","sticky"],et=["pagination"],tt=e=>{let{id:t,columns:n,children:l}=e;return t?(0,g.jsx)(Xe.default,{id:t,children:e=>{let{options:t}=e;return l({columns:n.filter(e=>!e.name||(!Array.isArray(re()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name)))})}}):l({columns:n})},nt=(0,E.withFetch)(e=>{let{data:t,refresh:n,reload:r,requestParams:o,fetchProps:d,isComplete:u,setData:h,loadMore:_,send:f,dataFormat:y=e=>({list:e.pageData,total:e.totalCount}),className:v,featureId:x,columns:j,getColumns:b,pagination:E={},columnRenderProps:A={},summary:C,sticky:N=!0}=e,w=(0,a.A)(e,$e);const F=m()(y),S=(0,i.useMemo)(()=>F(t),[t,F]),Z={dataSource:S.list,pagination:!!E.open&&{total:S.total,showTotal:e=>(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Qe.FormattedMessage,{id:"Page_Total",moduleName:"Table",defaultMessage:"\u5171"}),(0,g.jsx)("span",{className:s.total_text,children:e}),(0,g.jsx)(Qe.FormattedMessage,{id:"Page_TotalCount",moduleName:"Table",defaultMessage:"\u6761"})]}),current:re()(o,[E.paramsType,E.currentName],1),pageSize:re()(o,[E.paramsType,E.pageSizeName],20),onChange:(e,t)=>{"function"!==typeof E.onChange?e!==re()(o,[E.paramsType,E.currentName],1)?("refresh"===E.requestType?n:r)({[E.paramsType]:{[E.currentName]:e,[E.pageSizeName]:t}}):E.onShowSizeChange&&E.onShowSizeChange(e,t):E.onChange(e,t),(0,p.h)().scrollTop=0},size:E.size,hideOnSinglePage:E.hideOnSinglePage,showSizeChanger:E.showSizeChanger,showQuickJumper:E.showQuickJumper,pageSizeOptions:E.pageSizeOptions}};return(0,g.jsx)(Qe.IntlProvider,{importMessages:Je,moduleName:"Table",children:(0,g.jsx)(tt,{id:x,columns:"function"===typeof j?j(t):j,children:e=>{let{columns:a}=e;return(0,g.jsx)(rt,(0,l.A)((0,l.A)({},Object.assign({},w,Z)),{},{sticky:N,className:c()(v,"loading-container",{"is-loading":!u}),columns:a,columnRenderProps:(0,l.A)((0,l.A)({},A),{},{requestParams:o,fetchProps:d,data:t}),summary:"function"===typeof C?function(){for(var e=arguments.length,l=new Array(e),a=0;a<e;a++)l[a]=arguments[a];return C(Object.assign({},{data:t,fetchProps:d,requestParams:o,refresh:n,reload:r,loadMore:_,send:f,dataFormat:y,pagination:E},...l))}:null}))}})})}),lt=(0,i.forwardRef)((e,t)=>{let{pagination:n}=e,s=(0,a.A)(e,et);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)(Oe.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,g.jsx)(nt,(0,l.A)((0,l.A)((0,l.A)({},s),u),{},{pagination:Object.assign({},n,{pageSize:o,onShowSizeChange:(e,t)=>{Oe.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=p.h,sticky:d=!1,stickyOffset:u="var(--nav-height)",pagination:h=!1,columnRenderProps:_={},rowKey:f="id",dataSource:x,controllerOpen:j=!0,name:b,summary:E,scroll:A,scroller:C,onTablePropsReady:N}=e,w=(0,a.A)(e,at);const[F,S]=(0,i.useState)(0),[Z,O]=(0,i.useState)(!0);(0,i.useEffect)(()=>{F&&setTimeout(()=>{O(!1)},0)},[F]);(0,i.useRef)(_).current=_;const R=(0,v.A)(e=>{S(e.clientWidth)},{isDebounce:!0}),{expandInfo:k,computedColumnProps:I}=Le({rowKey:f,renderProps:_}),{columnsConfig:P,visibleColumns:M,computedColumnProps:T,currentMoveColumnIndex:z,totalWidth:L}=Pe({columns:t,controllerOpen:j,name:b,computedColumnProps:I,tableWidth:F,rowKey:f}),K=Ue(w),D=(0,i.useMemo)(()=>M.map((e,t)=>{let n=I(e,t,{rowKey:f,expandInfo:k,columnsConfig:P});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,g.jsxs)(g.Fragment,{children:[n.title,K({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),j&&(n=T(n,t,{tableWidth:F,columnsConfig:P})),n}),[M,F,P,k,f,j,I,T,K]),{columns:H,hasGroupHeader:Y}=Ke(D),V=m()(N);return(0,i.useEffect)(()=>{V&&V({columns:t,groupColumns:H,dataSource:x,visibleColumns:M})},[V,H,x,t,M]),(0,g.jsx)("div",{className:c()(n,s.table,{[s["is-resize"]]:null!==z,[s["is-computed"]]:Z,[s["has-group-header"]]:Y}),ref:R,style:{"--sticky-offset":u},children:!Z&&(0,g.jsx)(y,{className:"table-page-scroller",scroller:void 0!==C?C:{getContainer:o},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,g.jsx)(r.Table,(0,l.A)((0,l.A)({},w),{},{sticky:!!d&&{getContainer:o},dataSource:x,rowKey:f,columns:H,scroll:Object.assign({},{x:Math.max(F,L)},A),pagination:h,summary:"function"===typeof E?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 E(Object.assign({},{pageData:e},{columns:H}),...n)}:null}))})})};st.useSelectedRow=Ge,st.TablePage=lt;const rt=st},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}))}}},28148(e,t,n){n.r(t),n.d(t,{default:()=>b});var l=n(89379),a=n(53986);const s={menu:"style_menu__gvIvn__Ze7gE","all-no-start-icon":"style_all-no-start-icon__CA+zR__Ze7gE","no-start-icon":"style_no-start-icon__LnC1S__Ze7gE","has-children":"style_has-children__m9tce__Ze7gE","has-children-node":"style_has-children-node__2bhEB__Ze7gE","is-root":"style_is-root__4hhOc__Ze7gE",title:"style_title__+Hcar__Ze7gE",active:"style_active__WU49K__Ze7gE","no-collapse":"style_no-collapse__aIZBM__Ze7gE","title-content":"style_title-content__cQXpK__Ze7gE",loading:"style_loading__1pU4P__Ze7gE"};var r=n(83136),i=n.n(r),o=n(55199),c=n(94679),d=n(29053),u=n(10986),m=n.n(u),p=n(64671),h=n(73884),g=n(18081),_=n.n(g),f=n(87558),y=n(70579);const v=["className","allowCollapsed","pathMatch","defaultItems"],x=["children","key","originItem"],j=e=>{const t=(0,c.useNavigate)(),{id:n,className:l,label:a,iconType:r,icon:u,path:m,request:h,onClick:g,isOpen:_,isSelected:v,onOpenChange:x,children:j,fetchOptions:b,depth:E,onLoad:A,allowCollapsed:C}=e,N=Array.isArray(j)&&j.length>0||b,{refresh:w,isLoading:F}=(0,f.useFetch)(Object.assign({},b,{auto:!C&&b,onRequestSuccess:e=>{A(e)}}));return(0,y.jsx)(d.default,{request:h,children:(0,y.jsxs)("div",{className:i()(l,s["menu-item"]),children:[(0,y.jsxs)("div",{className:i()(s.title,{[s.active]:v,[s["has-children"]]:N,[s["no-collapse"]]:N&&!C,[s["no-start-icon"]]:!r&&!u,[s["is-root"]]:0===E}),onClick:l=>{l.stopPropagation(),N||!m?N||b?C&&(b&&w({}),x(!_)):null===g||void 0===g||g(n,e):t(m)},children:[r&&!u&&(0,y.jsx)(p.default,{type:r}),u||null,(0,y.jsx)("span",{className:s["title-content"],children:a}),N&&C&&(0,y.jsx)(p.default,{type:_?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),N?!C||_&&j?(0,y.jsx)("div",{className:s["children-list"],children:j}):!C||_&&F?(0,y.jsx)("div",{className:s["children-list"],children:(0,y.jsx)(o.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},b=e=>{let{className:t,allowCollapsed:n=!0,pathMatch:r,defaultItems:o=[]}=e,d=(0,a.A)(e,v);const{pathname:u,search:p}=(0,c.useLocation)(),[g,f]=m()(d,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[b,E]=m()((0,l.A)({defaultItems:o},d),{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:A,defaultOpenKeys:C,links:N,childrenKeys:w,hasStartIcon:F,hasChildren:S}=(0,h.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}})(b);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}},[b]);(0,h.useEffect)(()=>{const e=N.find(e=>{let{path:t}=e;return"function"===typeof r?r(t,{pathname:u,search:p}):_()(u.replace(/[#,?].*/,""))===_()(t)||_()(u+p)===_()(t)});e&&f(e.key)},[N,u,p,f,r]);const[Z,O]=m()(Object.assign({},d,{defaultOpenKeys:d.defaultOpenKeys||C}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),R=(0,h.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,x);return(0,h.createElement)(j,(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:f,onLoad:e=>{E(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},[E,O,f,w,n]);return(0,y.jsx)("div",{className:i()(t,s.menu,{[s["all-no-start-icon"]]:!F,[s["has-children-node"]]:S}),children:R(A,{selectedKey:g,openKeys:Z})})}},29053(e,t,n){n.r(t),n.d(t,{computedIsPass:()=>g,default:()=>y,usePermissions:()=>_,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__Ze7gE";var m=n(72752),p=n(70579);const h=["type","className","tagName","message","request","children"],g=e=>{let{permissions:t,request:n}=e;return!(Array.isArray(n)&&n.length>0)||n.some(e=>(t||[]).indexOf(e)>-1)},_=()=>{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}=_();return g({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,g=(0,a.A)(e,h);const _=f({request:c});return"function"===typeof m?m({isPass:_,type:t,request:c}):!0===_?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)({},g),{},{className:d()(u,n)}),m)}):null}},48731(e,t,n){n.r(t),n.d(t,{default:()=>a.a});var l=n(98919),a=n.n(l),s=n(22717),r=n.n(s);(0,l.preset)({base:r()([["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",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,t)=>{e[t[0]]=t[1]},{})})},53132(e,t,n){n.r(t),n.d(t,{Affix:()=>T,Menu:()=>$.default,Page:()=>P,PageHeader:()=>se,PermissionsPage:()=>Q,StateBarPage:()=>ue,TablePage:()=>oe,default:()=>X});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},i=(0,s.createContext)({}),{Provider:o,Consumer:c}=i,d=()=>(0,s.useContext)(i);var u=n(79329),m=n(76801),p=n(36755),h=n(53986),g=n(19853),_=n.n(g),f=n(63361),y=n(83136),v=n.n(y);const x={layout:"style_layout__k+lxR__Ze7gE","page-content":"style_page-content__4XeN8__Ze7gE","page-main":"style_page-main__P0yEF__Ze7gE","page-main-content":"style_page-main-content__1OVPN__Ze7gE","table-page":"style_table-page__JkbLf__Ze7gE","helper-guide":"style_helper-guide__vzw4z__Ze7gE","page-outer":"style_page-outer__2a6iH__Ze7gE","no-margin":"style_no-margin__S6caT__Ze7gE","page-menu":"style_page-menu__CZSa9__Ze7gE",closed:"style_closed__hmnft__Ze7gE","page-menu-inner":"style_page-menu-inner__rmKpu__Ze7gE","page-menu-main":"style_page-menu-main__OXg2M__Ze7gE","page-option-main":"style_page-option-main__LyfT3__Ze7gE","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__Ze7gE","page-option":"style_page-option__diS2S__Ze7gE","page-option-inner":"style_page-option-inner__Fj1JH__Ze7gE","page-option-footer":"style_page-option-footer__d7xE0__Ze7gE","fixed-container":"style_fixed-container__1VZwY__Ze7gE","is-fixed":"style_is-fixed__1aQhp__Ze7gE","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__Ze7gE","page-menu-btn":"style_page-menu-btn__BiTy8__Ze7gE","page-title":"style_page-title__zw-Fd__Ze7gE","page-title-text":"style_page-title-text__Rj4RC__Ze7gE","no-padding":"style_no-padding__V7Dwy__Ze7gE","page-header":"style_page-header__a813p__Ze7gE","page-header-info":"style_page-header-info__cMrZR__Ze7gE","layout-menu":"style_layout-menu__yiab0__Ze7gE","sub-menu":"style_sub-menu__dyqK7__Ze7gE","no-collapsed":"style_no-collapsed__76h8W__Ze7gE","has-not-children":"style_has-not-children__fnjRK__Ze7gE","table-page-top":"style_table-page-top__bt1l9__Ze7gE","error-component":"style_error-component__HvghB__Ze7gE","state-bar-page":"style_state-bar-page__+aUM4__Ze7gE","back-icon":"style_back-icon__79v2G__Ze7gE"};var j=n(70579);const b=e=>{let{className:t,isFixed:n,children:l}=e;return n?(0,j.jsx)("div",{className:v()(t,"fixed-container",x["fixed-container"],{[x["is-fixed"]]:n}),children:l}):(0,j.jsx)("div",{className:v()(t,"fixed-container",x["fixed-container"]),children:l})};var E=n(64671),A=n(17342),C=n(94679),N=n(33097),w=n.n(N),F=n(55490),S=n(25644);const Z="CORE_PAGE_MENU_OPEN_KEY",O=()=>{const{pageProps:e,setPageProps:t}=d(),{menu:n,menuOpen:l,menuWidth:s,menuCloseWidth:r,menuFixed:i,menuCloseButton:o}=e,c=(0,C.useLocation)().pathname.split("/")[1];return n?(0,j.jsxs)(a.Col,{className:v()(x["page-menu"],"core-page-menu",{[x.closed]:!l}),style:{"--menu-width":s,"--menu-close-width":r},children:[(0,j.jsx)(b,{className:x["page-menu-inner"],isFixed:i,children:(0,j.jsx)("div",{className:x["page-menu-main-outer"],children:(0,j.jsx)(A.A,{className:x["page-menu-main"],children:"function"===typeof n?n({open:l}):n})})}),o?(0,j.jsx)(b,{className:v()(x["page-menu-btn-outer"],"core-page-menu-btn-outer",{[x["is-fixed"]]:i}),isFixed:i,children:(0,j.jsx)(a.Button,{className:v()(x["page-menu-btn"],{[x.closed]:!l}),icon:l?(0,j.jsx)(E.default,{type:"icon-arrow-bold-left"}):(0,j.jsx)(E.default,{type:"icon-arrow-bold-right"}),onClick:()=>{t({menuOpen:!e.menuOpen});const n=S.A.getItem(Z)||{};n[c]=!e.menuOpen,S.A.setItem(Z,n),t({menuOpen:!e.menuOpen})}})}):null]}):null},R=["children","isPass"],k=["featureId","name","openFeatures"],I=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,C.useLocation)().pathname.split("/")[1];return(0,s.useMemo)(()=>{const t=S.A.getItem(Z)||{};return!(0,F.A)(w()(t,e))||w()(t,e)},[e])})(),u=(0,s.useRef)(c);return u.current=c,(0,s.useEffect)(()=>{if(!_()(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,j.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,j.jsx)(f.default,{id:a,children:e=>{let{isPass:t}=e;return(0,s.createElement)(I,(0,l.A)((0,l.A)({},o),{},{key:a,isPass:t}))}}):(0,s.createElement)(I,(0,l.A)((0,l.A)({},o),{},{key:a}))},M=["isFixed","offsetTop","offsetBottom","onChange"],T=e=>{let{isFixed:t,offsetTop:n,offsetBottom:s,onChange:r}=e,i=(0,h.A)(e,M);return t?(0,j.jsx)(a.Affix,(0,l.A)((0,l.A)({},i),{},{offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:s,onChange:r})):(0,j.jsx)("div",(0,l.A)({},i))},z=["targetKey"],L=e=>{let{targetKey:t}=e,n=(0,h.A)(e,z);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,j.jsx)("div",(0,l.A)((0,l.A)({},n),{},{ref:a}))},K=()=>{const{pageProps:e}=d(),{header:t,headerFixed:n}=e;return t?(0,j.jsx)(T,{isFixed:n,className:x["page-header"],offsetTop:u.navigationHeight,children:(0,j.jsx)(L,{targetKey:"headerHeight",children:t})}):null},D=()=>{const{pageProps:e}=d(),{headerInfo:t}=e,n=(0,s.useRef)(null);return t?(0,j.jsx)("div",{ref:n,className:v()(x["page-header-info"],"page-header-info"),children:t}):null};var H=n(73604);const Y=e=>{let{title:t,filter:n,titleExtra:s,titleLeftExtra:r,backUrl:i}=e;const o=(0,C.useNavigate)();return n?(0,j.jsx)(H.default,(0,l.A)((0,l.A)({className:x["page-title"]},n),{},{extra:s})):t||r||s?(0,j.jsxs)(a.Row,{justify:"space-between",align:"middle",className:x["page-title"],children:[(0,j.jsx)(a.Col,{flex:1,children:(0,j.jsxs)(a.Flex,{gap:8,align:"center",children:[t?(0,j.jsx)("div",{className:x["page-title-text"],children:i?(0,j.jsxs)(a.Flex,{gap:8,align:"center",children:[(0,j.jsx)("span",{className:x["back-icon"],onClick:()=>{o(i)},children:(0,j.jsx)(E.default,{type:"icon-arrow-thin-left"})}),(0,j.jsx)("span",{children:t})]}):t}):null,r||null]})}),(0,j.jsx)(a.Col,{children:s})]}):null},V=()=>{const{pageProps:e}=d(),{option:t,optionWidth:n,optionFixed:l,optionFooter:s,optionFooterHeight:r,optionNoPadding:i}=e;return t?(0,j.jsx)(a.Col,{className:v()(x["page-option"],"page-option"),style:{"--width":n,"--foot-height":r+"px"},children:(0,j.jsxs)(b,{className:x["page-option-inner"],isFixed:l,children:[(0,j.jsx)(A.A,{className:v()(x["page-option-main"],"page-option-main"),style:{padding:i?"0px":"var(--padding-width)"},children:t}),s?(0,j.jsx)(L,{className:x["page-option-footer"],targetKey:"optionFooterHeight",children:(0,j.jsx)(a.Space,{align:"center",children:s})}):null]})}):null};var B=n(75363),U=n(29053);const{Content:W}=a.Layout,q=()=>(0,j.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,j.jsx)(a.Button,{size:"small",danger:!0,onClick:()=>window.location.reload(),children:"\u5237\u65b0"})}),G=e=>(0,j.jsx)(p.A,(0,l.A)((0,l.A)({},e),{},{errorComponent:q})),X=e=>{let{className:t,children:n,theme:i,navigation:c={}}=e;const[d,p]=(0,s.useState)(0),[h,g]=(0,s.useState)(Object.assign({},r)),{permissions:_}=(0,U.usePermissions)(),f=(0,s.useCallback)(e=>g(t=>Object.assign({},t,e)),[]);return(0,s.useEffect)(()=>{const e=(0,m.h)(),t=()=>{p(e.scrollLeft)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}},[]),(0,j.jsxs)(a.Layout,{className:v()(x.layout,t,"core-layout"),style:Object.assign({},{"--nav-height":u.navigationHeight+"px","--nav-height-base":"var(--nav-height)","--scroll-left":-d+"px"},i),children:[c&&(0,j.jsx)(G,{children:(0,j.jsx)(u.default,(0,l.A)((0,l.A)({permissions:_},c),{},{onChange:e=>{(null===c||void 0===c?void 0:c.onChange)&&c.onChange(e)}}))}),(0,j.jsx)(G,{children:(0,j.jsx)(W,{className:v()(x["layout-content-wrap"],"core-layout-content-wrap"),children:(0,j.jsxs)(o,{value:{pageProps:h,setPageProps:f},children:[(0,j.jsx)(G,{children:(0,j.jsx)(K,{})}),(0,j.jsx)(G,{children:(0,j.jsx)(D,{})}),(0,j.jsx)(G,{children:(0,j.jsxs)(a.Row,{className:v()(h.className,x["page-outer"]),wrap:!1,style:{"--nav-height":"calc(".concat(h.headerFixed?h.headerHeight:0,"px + var(--nav-height-base))"),"--nav-only-height":"var(--nav-height-base)"},children:[(0,j.jsx)(G,{children:(0,j.jsx)(O,{})}),(0,j.jsx)(a.Col,{className:v()(x["page-content"],"core-page-content",{[x["no-margin"]]:h.noMargin}),flex:1,style:{"--background-color":h.backgroundColor},children:(0,j.jsxs)("div",{className:v()(x["page-main"],"core-page-main"),children:[(0,j.jsx)(G,{children:(0,j.jsx)(Y,{title:h.title,backUrl:h.backUrl,filter:h.filter,titleExtra:h.titleExtra,titleLeftExtra:h.titleLeftExtra})}),(0,j.jsx)("div",{className:v()(x["page-main-content"],"core-page-main-content",{[x["no-padding"]]:h.noPadding}),children:(0,j.jsxs)(G,{children:[h.helperGuideName&&(0,j.jsx)(B.default,{className:v()(x["helper-guide-page"],"core-helper-guide-page"),name:h.helperGuideName}),n]})})]})}),(0,j.jsx)(G,{children:(0,j.jsx)(V,{})})]})})]})})})]})},J=["permissions"],Q=e=>{let{permissions:t}=e,n=(0,h.A)(e,J);return(0,j.jsx)(U.default,(0,l.A)((0,l.A)({},Object.assign({},t,{type:"error"})),{},{children:(0,j.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__Ze7gE",main:"style_main__X1Ynh__Ze7gE","icon-outer":"style_icon-outer__6F97H__Ze7gE",title:"style_title__dNWQj__Ze7gE",info:"style_info__yF-4c__Ze7gE",overlay:"style_overlay__SWqqE__Ze7gE",tags:"style_tags__5+zDU__Ze7gE","tag-split":"style_tag-split__V6SqP__Ze7gE","button-options":"style_button-options__f1-gI__Ze7gE"},ae=e=>{let{className:t,title:n,icon:r,iconType:i,info:o,tags:c,tagSplit:d=(0,j.jsx)("span",{className:le["tag-split"],children:"|"}),tagClassName:u="",buttonOptions:m,buttonOptionsMaxWidth:p,addonBefore:h,addonAfter:g,children:_}=e;return(0,j.jsxs)(a.Row,{className:v()(t,le["page-header"]),wrap:!1,gutter:10,children:[h&&(0,j.jsx)(a.Col,{children:h}),(0,j.jsx)(a.Col,{flex:1,children:(0,j.jsxs)(a.Space,{direction:"vertical",children:[(0,j.jsxs)(a.Row,{wrap:!1,children:[(0,j.jsx)(a.Col,{flex:1,className:le.main,children:(0,j.jsxs)(a.Space,{align:"start",children:[r&&(0,j.jsx)("div",{className:le["icon-outer"],children:r}),!r&&i&&(0,j.jsx)("div",{className:le["icon-outer"],children:(0,j.jsx)(E.default,{colorful:!0,type:i,size:24})}),(0,j.jsx)("div",{className:le.title,children:n}),o&&(0,j.jsx)("div",{className:le.info,children:o})]})}),m&&(0,j.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,j.jsx)(te.default,(0,l.A)({},m))]})]}),c&&(0,j.jsx)(a.Space,{className:u,split:d,size:[16,8],children:c.map((e,t)=>(0,j.jsx)("div",{className:le.tags,children:e},t))}),_]})}),g&&(0,j.jsx)(a.Col,{children:g})]})},se=e=>(0,j.jsx)(ne.IntlProvider,{importMessages:ee,moduleName:"PageHeader",children:(0,j.jsx)(ae,(0,l.A)({},e))});var re=n(10935);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,j.jsxs)(Q,(0,l.A)((0,l.A)({name:o,openFeatures:i,permissions:a},r),{},{children:[c?(0,j.jsx)("div",{className:x["table-page-top"],children:"function"===typeof c?c(u):c}):null,(0,j.jsxs)("div",{className:x["table-page"],children:[n&&(0,j.jsx)(B.default,{className:v()("helper-guide",x["helper-guide"]),name:n}),(0,j.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,j.jsxs)(Q,(0,l.A)((0,l.A)((0,l.A)({},a),{},{permissions:n},i),{},{children:[(0,j.jsx)("div",{className:x["state-bar-page"],children:(0,j.jsx)(ce.default,(0,l.A)({},s))}),t&&(0,j.jsx)(B.default,{className:x["helper-guide"],name:t}),r]}))}},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})},g=(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)(g),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)(_,{value:s,children:"function"===typeof n?n({isPass:l,options:l?r()(a,"options"):r()(a,"rejectedOptions"),currentId:s}):l&&n})}},73604(e,t,n){n.r(t),n.d(t,{AdvancedFilter:()=>ot,AdvancedSelectFilterItem:()=>Fe,CascaderFilterItem:()=>Me,CityFilterItem:()=>Pe,DatePickerFilterItem:()=>xe,DateRangePickerFilterItem:()=>be,FilterItem:()=>T,FilterItemContainer:()=>dt,FilterLines:()=>j,FilterProvider:()=>Z,FilterValueDisplay:()=>E,FunctionSelectFilterItem:()=>ke,IndustrySelectFilterItem:()=>Ie,InputFilterItem:()=>ze,NumberRangeFilterItem:()=>Le,PopoverItem:()=>oe,SearchInput:()=>Ue,SuperSelectFilterItem:()=>Se,SuperSelectTableListFilterItem:()=>Ze,SuperSelectUserFilterItem:()=>Oe,TreeFilterItem:()=>Te,TypeDateRangePickerFilterItem:()=>Ce,UserFilterItem:()=>Re,advancedFields:()=>st,default:()=>ut,fields:()=>l,getFilterValue:()=>He,useFilter:()=>_,withFieldItem:()=>L,withFilterValue:()=>Ve});var l={};n.r(l),n.d(l,{AdvancedSelectFilterItem:()=>Fe,CascaderFilterItem:()=>Me,CityFilterItem:()=>Pe,DatePickerFilterItem:()=>xe,DateRangePickerFilterItem:()=>be,FunctionSelectFilterItem:()=>ke,IndustrySelectFilterItem:()=>Ie,InputFilterItem:()=>ze,NumberRangeFilterItem:()=>Le,SuperSelectFilterItem:()=>Se,SuperSelectTableListFilterItem:()=>Ze,SuperSelectUserFilterItem:()=>Oe,TreeFilterItem:()=>Te,TypeDateRangePickerFilterItem:()=>Ce,UserFilterItem:()=>Re});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__Ze7gE","filter-item-icon":"style_filter-item-icon__kVCRK__Ze7gE","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__Ze7gE","filter-title":"style_filter-title__PlIpS__Ze7gE","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__Ze7gE","ad-filter-title":"style_ad-filter-title__5-OzD__Ze7gE","ad-filter-line":"style_ad-filter-line__ga6UH__Ze7gE","filter-line":"style_filter-line__E+cRh__Ze7gE","clean-btn":"style_clean-btn__oSEvm__Ze7gE","filter-item":"style_filter-item__Q2ncE__Ze7gE","un-expand":"style_un-expand__4PFY8__Ze7gE","ad-filter-selected":"style_ad-filter-selected__KbLfG__Ze7gE","filter-label":"style_filter-label__qu26i__Ze7gE","filter-item-wrap":"style_filter-item-wrap__rOq7H__Ze7gE",option:"style_option__rd5Qo__Ze7gE","is-active":"style_is-active__OArQI__Ze7gE","is-visited":"style_is-visited__gZ5ni__Ze7gE","un-expand-shadow":"style_un-expand-shadow__fj92e__Ze7gE","filter-item-label":"style_filter-item-label__C781J__Ze7gE","filter-item-field":"style_filter-item-field__Ltfr8__Ze7gE","filter-drop-tag":"style_filter-drop-tag__DD-2P__Ze7gE","filter-list-tag":"style_filter-list-tag__Qt5hA__Ze7gE","filter-tag":"style_filter-tag__dUGfu__Ze7gE","filter-tag-value":"style_filter-tag-value__p-SFv__Ze7gE","pop-util-content":"style_pop-util-content__bx5zP__Ze7gE","date-range-picker-popup":"style_date-range-picker-popup__vsjGw__Ze7gE","pop-util-overlay":"style_pop-util-overlay__LEASt__Ze7gE","pop-util-footer":"style_pop-util-footer__Xat1s__Ze7gE","pop-util-text":"style_pop-util-text__pzeUy__Ze7gE","filter-item-inner":"style_filter-item-inner__LVXgh__Ze7gE","filter-item-text":"style_filter-item-text__MA8tU__Ze7gE","filter-item-number-range":"style_filter-item-number-range__U-OgQ__Ze7gE","filter-item-custom":"style_filter-item-custom__UusRa__Ze7gE","filter-item-custom-active":"style_filter-item-custom-active__uFtny__Ze7gE","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__Ze7gE","filter-item-number-input":"style_filter-item-number-input__YPO6K__Ze7gE","range-picker":"style_range-picker__c6ngq__Ze7gE","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__Ze7gE","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__Ze7gE","filter-advanced":"style_filter-advanced__4cyDy__Ze7gE","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__Ze7gE","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__Ze7gE","filter-advanced-more":"style_filter-advanced-more__OFXq4__Ze7gE"};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:g}=h,_=()=>(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}=_();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]})},j=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===g&&t===l-1?(0,v.jsxs)(u.Space,{size:4,className:i()(d["filter-item"],d.option),onClick:()=>{_(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&&g)}),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:()=>{_(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 b=n(3874);const E=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)(b.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 A=n(10986),C=n.n(A),N=n(41740),w=n.n(N),F=n(43856);const S=["children","className","defaultValue"],Z=e=>{let{children:t,className:n,defaultValue:l=[]}=e,a=(0,s.A)(e,S);const[r,i]=C()(a),c=(0,o.useMemo)(()=>r.filter(e=>(0,F.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)(g,{value:{value:d,onChange:e=>{const t=w()(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})})},O=["children","className"],R=e=>{let{children:t,className:n}=e,l=(0,s.A)(e,O);return(0,v.jsx)(Z,(0,a.A)((0,a.A)({},l),{},{children:e=>(0,v.jsx)("div",{className:i()(d.filter,"filter",n),children:t(e)})}))},k=["defaultValue"],I=["extraExpand"],P=e=>{let{defaultValue:t=[]}=e,n=(0,s.A)(e,k);return(0,v.jsx)(R,(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,I);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(j,(0,a.A)({},i)),n&&n.length>0&&(0,v.jsx)(E,{value:n,onChange:l,extraExpand:r})]})}}))};var M=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"],L=e=>t=>{let{value:n,onChange:l,interceptor:r,label:i}=t,c=(0,s.A)(t,z);const[u,m]=(0,o.useState)(!1);return(0,v.jsx)(T,{label:i,open:u,active:(0,M.A)(n),children:(0,v.jsx)(e,(0,a.A)((0,a.A)({allowClear:!1},c),{},{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:m}))})};var K=n(12392),D=n(60586),H=n(41654),Y=n(93761),V=n(53392),B=n(45776),U=n(30509),W=n(96418),q=n.n(W);const G="style_scroll-loader__Rcuti__Ze7gE",X="style_is-popup__pCRv2__Ze7gE";var J=n(17342),Q=n(1488),$=n.n(Q),ee=n(15797),te=n.n(ee);const ne=["single","isPopup","searchPlaceholder"],le=["maxLength","dataFormat"],ae=U.A.useContext,se=e=>{let{value:t,setValue:n,size:l}=e;const{fetchApi:r,props:c}=ae(),d=q()(c.dataFormat),{single:m,isPopup:p,searchPlaceholder:h}=c,g=(0,s.A)(c,ne),_=(0,o.useRef)(c.fieldNames);_.current=c.fieldNames;const f=r.data,{treeData:y}=(0,o.useMemo)(()=>d(f,{fieldNames:_.current}),[d,f]);return(0,v.jsx)(u.Space,{direction:"vertical",size:16,children:(0,v.jsx)(J.A,{className:i()(G,{[X]:c.isPopup}),children:(0,v.jsx)(u.Tree,(0,a.A)((0,a.A)({},$()(g,["value","valueType","children","dataFormat"])),{},{size:l,checkable:!m,treeData:y,onCheck:n,checkedKeys:t,onSelect:m?n:e=>{const t=e[0];void 0!==t&&n(e=>{const n=e.slice(0),l=n.indexOf(t);return l>-1?n.splice(l,1):n.push(t),n})},selectedKeys:m?t:void 0}))})})},re=e=>{let{maxLength:t,dataFormat:n}=e,l=(0,s.A)(e,le);return(0,v.jsx)(U.A,(0,a.A)((0,a.A)({},l),{},{dataFormat:e=>n(e,{fieldNames:l.fieldNames}),children:e=>{let{value:n,setValue:l}=e;return(0,v.jsx)(se,{size:t,value:n,setValue:l})}}))};re.defaultProps={searchPlaceholder:"\u641c\u7d22",maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,checkStrictly:!1,dataFormat:(e,t)=>{let{fieldNames:n}=t;const l=te()((e,t)=>{let{fieldNames:n}=t;const l=[],a=e=>{Array.isArray(e)&&e.length>0&&e.forEach(e=>{const t=e[y()(n,"key","key")],s=e[y()(n,"title","title")],r=e[y()(n,"children","children")];l.push({id:t,value:t,label:s}),a(r)})};return a(e),l});return{treeData:e,list:l(e,{fieldNames:n})}}};const ie=re,oe=e=>{let{value:t,label:n,onValidate:l,overlayClassName:a,placement:s="bottomLeft",onOpenChange:r,onChange:c,children:p}=e;const[h,g]=(0,o.useState)(t),[_,f]=(0,o.useState)(!1),y=(0,o.useMemo)(()=>l&&!l(h),[l,h]);return(0,v.jsx)(u.Popover,{open:_,trigger:"click",placement:s,arrow:!1,rootClassName:i()(d["pop-util-overlay"],a),onOpenChange:e=>{f(e),g(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:g})}),(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:_,active:(0,M.A)(t),label:n})})})},ce=["label","value","onChange","placeholder","onValidate","overlayClassName","placement","onOpenChange"],de=e=>{let{label:t,value:n,onChange:l,placeholder:r,onValidate:i,overlayClassName:o,placement:c,onOpenChange:m}=e,p=(0,s.A)(e,ce);return(0,v.jsx)(oe,{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 ue=n(79160),me=n.n(ue);const pe=["label","value","onChange","placeholder","onValidate","overlayClassName","placement","onOpenChange","unit"],he=(e,t,n)=>me()(e[0])||me()(e[1])?{label:(e=>me()(e[0])&&me()(e[1])?"".concat(e[0],"-").concat(e[1]).concat(t||""):me()(e[0])?n({id:"over"},{count:e[0],unit:t}):me()(e[1])?n({id:"lessThan"},{count:e[1],unit:t}):void 0)(e),value:[e[0]||null,e[1]||null]}:null,ge=e=>{const t=y()(e,"value");return!(t&&me()(t[0])&&me()(t[1])&&t[1]<t[0])},_e=e=>{let{label:t,value:n,onChange:l,placeholder:r,onValidate:i=ge,overlayClassName:o,placement:c,onOpenChange:p,unit:h}=e,g=(0,s.A)(e,pe);const{formatMessage:_}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsx)(oe,{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)({},g),{},{placeholder:r||"".concat(_({id:"pleaseInput"})).concat(t),className:d["filter-item-number-range"],value:y()(n,"value[0]",""),onChange:e=>{l(he([e,y()(n,"value[1]")],h,_))}})),(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)({},g),{},{placeholder:r||"".concat(_({id:"pleaseInput"})).concat(t),className:d["filter-item-number-range"],value:y()(n,"value[1]",""),onChange:e=>{l(he([y()(n,"value[0]"),e],h,_))}})),h&&(0,v.jsx)(u.Input,{style:{width:50,borderLeft:0},value:h,disabled:!0})]})}})};var fe=n(57469),ye=n.n(fe);const ve=["value","onChange","picker"],xe=L(e=>{let{value:t,onChange:n,picker:l="date"}=e,r=(0,s.A)(e,ve);return(0,v.jsx)(u.DatePicker,(0,a.A)((0,a.A)({},r),{},{picker:l,value:t&&ye()(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())})}}))}),je=["value","onChange","header"],be=L(e=>{let{value:t,onChange:n,header:l}=e,r=(0,s.A)(e,je);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=>ye()(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 Ee=n(89319);const Ae=["label","value","onChange"],Ce=e=>{let{label:t,value:n,onChange:l}=e,r=(0,s.A)(e,Ae);return(0,v.jsx)(oe,{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)(Ee.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(ye()(l[0]).format(t),"\u4ee5\u540e"):!l[0]&&l[1]?"".concat(ye()(l[1]).format(t),"\u4ee5\u524d"):l[0]&&l[1]?"".concat(ye()(l[0]).format(t),"~").concat(ye()(l[1]).format(t)):"",value:e})}}))}})},Ne=["placeholder","label"],we=e=>t=>{let{placeholder:n,label:l}=t,r=(0,s.A)(t,Ne);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}))})},Fe=L(K.Ay),Se=L(D.Ay),Ze=L(D.e0),Oe=L(D.$9),Re=L(K.Eo),ke=L(H.A),Ie=L(V.A),Pe=L(Y.Ay),Me=L(B.Ay),Te=L(ie),ze=we(de),Le=we(_e);var Ke=n(22717),De=n.n(Ke);const He=e=>De()(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},{}),Ye=["name","label"],Ve=e=>t=>{let{name:n,label:l}=t,r=(0,s.A)(t,Ye);const{value:i,onChange:o}=_();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}))},Be=["label","onChange","value","placeholder"],Ue=Ve(e=>{let{label:t,onChange:n,value:l,placeholder:r}=e,i=(0,s.A)(e,Be);const{formatMessage:o}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsx)(F.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 We=n(72752);const qe=["value","onChange","single","maxLength","addressApi"],{CheckableTag:Ge}=u.Tag,Xe=(0,Y.DF)(e=>{let{value:t,onChange:n,single:l=!1,maxLength:r=5,addressApi:i}=e,c=(0,s.A)(e,qe);const{message:p}=u.App.useApp(),{locale:h}=(0,We.usePreset)(),{formatMessage:g}=(0,m.useIntl)({moduleName:"Filter"}),_=(0,o.useMemo)(()=>i.getChinaHotCities(),[i]);return(0,v.jsxs)(v.Fragment,{children:[_.map(e=>{const{code:a}=e,s=(0,Y.NY)(e,h);return(0,v.jsx)(Ge,{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(g({id:"maxSelectedCount"},{count:r})):n(i)},children:s},a)}),(0,v.jsxs)(Ge,{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)&&!_.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)(Y.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)))}}))]})]})}),Je=Xe;var Qe=n(19853),$e=n.n(Qe);const{CheckableTag:et}=u.Tag,tt=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)(et,{size:"small",checked:r?$e()(a,null===t||void 0===t?void 0:t.value):!!(t||[]).find(e=>{let{value:t}=e;return $e()(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 $e()(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 nt=n(78491),lt=n.n(nt);const at=["value","label","onChange"],st={CityFilterItem:Je,ListFilterItem:tt,InputFilterItem:e=>{let{value:t,label:n,onChange:l}=e,r=(0,s.A)(e,at);const i=null===t||void 0===t?void 0:t.value,[c,d]=(0,o.useState)(i||""),[p,h]=(0,o.useState)(!1),{formatMessage:g}=(0,m.useIntl)({moduleName:"Filter"}),_=()=>{l(c?{label:c,value:c}:null)},f=lt()(()=>{h(!1),_()}),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(g({id:"pleaseInput"})).concat(n)},r),{},{size:"small",value:c,onFocus:()=>{h(!0)},onChange:e=>{d(e.target.value)},onPressEnter:_})),p&&(0,v.jsx)(u.Button,{size:"small",type:"primary",onClick:_,children:g({id:"search"})})]})})}},rt=e=>{let{list:t}=e;const{value:n,onChange:l}=_();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)})})},it=(0,m.createWithIntl)({importMessages:p,moduleName:"Filter"})(e=>{const{formatMessage:t}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsx)(R,(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)(rt,{list:e},t)),r&&(0,v.jsx)(j,{className:d["filter-advanced-more"],label:"".concat(t({id:"moreText"}),":"),list:[r]})]}),n&&n.length>0&&(0,v.jsx)(E,{value:n,onChange:l})]})}}))});it.fields=st;const ot=it,ct=["children"],dt=e=>{let{children:t}=e;return t((0,s.A)(e,ct))};P.fields=l,P.getFilterValue=He,P.useFilter=_,P.SearchInput=Ue,P.withFilterValue=Ve,P.FilterProvider=Z;const ut=P},75363(e,t,n){n.r(t),n.d(t,{default:()=>g});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__Ze7gE",d="style_inner__bMKeU__Ze7gE",u="style_content__xTfWZ__Ze7gE",m="style_link__93j7O__Ze7gE";var p=n(48731),h=n(70579);const g=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,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"})]})]})})})})}},79329(e,t,n){n.r(t),n.d(t,{default:()=>N,navigationHeight:()=>E});var l=n(89379),a=n(53986),s=n(55199),r=n(94679),i=n(33097),o=n.n(i),c=n(73884),d=n(83136),u=n.n(d);const m=n.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var p=n(40438);const h=e=>({"en-US":()=>n.e(257).then(n.bind(n,30257)),"zh-CN":()=>n.e(5671).then(n.bind(n,5671))}[e]());var g=n(47458),_=n(96418),f=n.n(_),y=n(64671);const v={"navigation-wrap":"style_navigation-wrap__VF8x2__Ze7gE",navigation:"style_navigation__60RrS__Ze7gE",logo:"style_logo__lB9RC__Ze7gE","is-fixed":"style_is-fixed__kHFWj__Ze7gE","navigation-logo":"style_navigation-logo__q9qHu__Ze7gE","navigation-list":"style_navigation-list__EYtkg__Ze7gE","navigation-options":"style_navigation-options__0BdJU__Ze7gE","menu-overlay":"style_menu-overlay__zU-vZ__Ze7gE","more-icon":"style_more-icon__gNMnt__Ze7gE"};var x=n(70579);const j=["key"],{Header:b}=s.Layout,E=48,A=e=>{let{name:t,mapping:n,defaultTitle:l}=e;const a=(0,c.useRef)({mapping:n,defaultTitle:l});return(0,c.useEffect)(()=>{const e=o()(a.current.mapping.get(t),"title");document.title=(e?e+"-":"")+a.current.defaultTitle},[t]),null},C=e=>{let{onReady:t}=e;const n=f()(t);return(0,c.useEffect)(()=>{n()},[n]),null},N=e=>{let{permissions:t=[],list:n=[],headerLogo:i,rightOptions:d,isFixed:_=!0,showIndex:f=!0,indexLabel:E,defaultTitle:N,overflowedIndicator:w,base:F="",onChange:S,className:Z,navigateTo:O}=e;const R=(0,c.useMemo)(()=>new Map(n.map(e=>{let{key:t}=e;return[t,(0,a.A)(e,j)]})),[n]),k=(0,r.useNavigate)(),I="function"===typeof O?O:k,P=(0,r.useLocation)(),M=(0,c.useRef)(),T=(0,c.useRef)(null),[z,L]=(0,c.useState)("\u66f4\u591a"),[K,D]=(0,c.useState)(!1),H=P.pathname.replace(new RegExp("^".concat(F)),"").split("/")[1],Y=H?o()(Array.from(R.entries()).find(e=>{let[n,{path:l,permission:a}]=e;return-1!==("function"===typeof l?l(a,t):l).indexOf("/"+H)}),"[0]"):"home";(0,c.useEffect)(()=>{const e=()=>{if(M.current){const e=M.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(Y)){t=!0;break}}let n=R.get(Y)&&!t?o()(R.get(Y),"title"):"";L(n)}},t={attributes:!0,childList:!0,subtree:!0};return K&&M&&M.current&&(e(),T.current&&T.current.disconnect(),T.current=new MutationObserver(e),T.current.observe(M.current,t)),()=>{T.current&&T.current.disconnect()}},[Y,R,K]);const V=!!f&&{label:E||(0,x.jsx)(g.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{S&&S("/"),setTimeout(()=>{I("/")},0)}};return(0,x.jsxs)(g.IntlProvider,{importMessages:h,moduleName:"Navigation",children:[(0,x.jsx)(g.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,x.jsx)(A,{defaultTitle:N||e,mapping:R,name:Y})}),(0,x.jsx)("div",{className:u()(v["navigation-wrap"],Z),children:(0,x.jsx)(b,{className:u()("navigation",v.navigation,{[v["is-fixed"]]:_}),children:(0,x.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,x.jsx)(s.Col,{className:u()("navigation-logo",v["navigation-logo"]),children:(0,x.jsx)(p.default,(0,l.A)({className:u()(v.logo),alt:"logo"},Object.assign({},i||{src:m})))}),(0,x.jsxs)(s.Col,{ref:M,flex:1,className:u()("navigation-list",v["navigation-list"]),children:[(0,x.jsx)(C,{onReady:()=>{D(!0)}}),(0,x.jsx)(s.Menu,{className:u()(v["main-menu"],"navigation-main-menu"),selectedKeys:[Y],mode:"horizontal",overflowedIndicator:w||(0,x.jsxs)(s.Space,{size:4,children:[(0,x.jsx)("span",{children:z||(0,x.jsx)(g.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,x.jsx)("span",{className:v["more-icon"],children:(0,x.jsx)(y.default,{type:"icon-arrow-thin-down"})})]}),items:[V,...Array.from(R.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,x.jsxs)(s.Flex,{gap:8,children:[a,(0,x.jsx)("span",{children:l})]}):l,key:n,onClick:()=>{S&&S(o),setTimeout(()=>{I(o)},0)}}})]})]}),(0,x.jsx)(s.Col,{className:v["navigation-options"],children:d})]})})})]})}},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__Ze7gE","has-children":"style_has-children__oQDqU__Ze7gE","tab-tab-control":"style_tab-tab-control__SopeO__Ze7gE","tab-radio-control":"style_tab-radio-control__R8X6-__Ze7gE","tab-step-control":"style_tab-step-control__EQaCl__Ze7gE","inner-state-bar":"style_inner-state-bar__lWmOz__Ze7gE"};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)})}))}}}]);
|
|
2
|
+
//# sourceMappingURL=5195.76a57010.chunk.js.map
|