@kne-components/components-core 0.2.12 → 0.2.13
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 +122 -122
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.0e0f439d.chunk.css +2 -0
- package/build/static/css/{1151.fcc82944.chunk.css.map → 1151.0e0f439d.chunk.css.map} +1 -1
- package/build/static/css/1153.85f06ccf.chunk.css +2 -0
- package/build/static/css/1153.85f06ccf.chunk.css.map +1 -0
- package/build/static/css/1154.f4f205da.chunk.css +2 -0
- package/build/static/css/1154.f4f205da.chunk.css.map +1 -0
- package/build/static/css/1454.773ade76.chunk.css +2 -0
- package/build/static/css/{1454.b6680ef6.chunk.css.map → 1454.773ade76.chunk.css.map} +1 -1
- package/build/static/css/1554.378aab07.chunk.css +2 -0
- package/build/static/css/{1554.c3f5b619.chunk.css.map → 1554.378aab07.chunk.css.map} +1 -1
- package/build/static/css/2503.beef9f54.chunk.css +2 -0
- package/build/static/css/{2503.7c268bc6.chunk.css.map → 2503.beef9f54.chunk.css.map} +1 -1
- package/build/static/css/2517.ad3e2b99.chunk.css +2 -0
- package/build/static/css/{2517.a37d84c0.chunk.css.map → 2517.ad3e2b99.chunk.css.map} +1 -1
- package/build/static/css/2716.3c6f43fb.chunk.css +2 -0
- package/build/static/css/{2716.ba9cf85a.chunk.css.map → 2716.3c6f43fb.chunk.css.map} +1 -1
- package/build/static/css/2730.860e390e.chunk.css +2 -0
- package/build/static/css/{2730.ee2da00c.chunk.css.map → 2730.860e390e.chunk.css.map} +1 -1
- package/build/static/css/289.b138addc.chunk.css +2 -0
- package/build/static/css/{289.9f854889.chunk.css.map → 289.b138addc.chunk.css.map} +1 -1
- package/build/static/css/3142.13adfc3a.chunk.css +2 -0
- package/build/static/css/{3142.1c704353.chunk.css.map → 3142.13adfc3a.chunk.css.map} +1 -1
- package/build/static/css/3333.2f52a976.chunk.css +2 -0
- package/build/static/css/3333.2f52a976.chunk.css.map +1 -0
- package/build/static/css/{3843.a44200c1.chunk.css → 3843.0a0692b4.chunk.css} +2 -2
- package/build/static/css/{3843.a44200c1.chunk.css.map → 3843.0a0692b4.chunk.css.map} +1 -1
- package/build/static/css/4029.3296f349.chunk.css +2 -0
- package/build/static/css/4029.3296f349.chunk.css.map +1 -0
- package/build/static/css/4265.cc94dd41.chunk.css +2 -0
- package/build/static/css/4265.cc94dd41.chunk.css.map +1 -0
- package/build/static/css/4666.daddc0cc.chunk.css +2 -0
- package/build/static/css/{4666.22605e23.chunk.css.map → 4666.daddc0cc.chunk.css.map} +1 -1
- package/build/static/css/5443.35cb414e.chunk.css +2 -0
- package/build/static/css/5443.35cb414e.chunk.css.map +1 -0
- package/build/static/css/5600.ca194700.chunk.css +2 -0
- package/build/static/css/{5600.82b7015b.chunk.css.map → 5600.ca194700.chunk.css.map} +1 -1
- package/build/static/css/5873.ba71089f.chunk.css +2 -0
- package/build/static/css/{5873.42a87e1c.chunk.css.map → 5873.ba71089f.chunk.css.map} +1 -1
- package/build/static/css/{5996.4fd83c38.chunk.css → 5996.d5db9990.chunk.css} +2 -2
- package/build/static/css/{5996.4fd83c38.chunk.css.map → 5996.d5db9990.chunk.css.map} +1 -1
- package/build/static/css/6611.5ee2d32c.chunk.css +2 -0
- package/build/static/css/{6611.92a0c476.chunk.css.map → 6611.5ee2d32c.chunk.css.map} +1 -1
- package/build/static/css/6779.5644d170.chunk.css +2 -0
- package/build/static/css/{6779.3c8f7740.chunk.css.map → 6779.5644d170.chunk.css.map} +1 -1
- package/build/static/css/7121.82a6e5ff.chunk.css +2 -0
- package/build/static/css/{7121.3ec29543.chunk.css.map → 7121.82a6e5ff.chunk.css.map} +1 -1
- package/build/static/css/7227.86530a2a.chunk.css +2 -0
- package/build/static/css/{7227.37784a9f.chunk.css.map → 7227.86530a2a.chunk.css.map} +1 -1
- package/build/static/css/8017.30097e6b.chunk.css +2 -0
- package/build/static/css/8017.30097e6b.chunk.css.map +1 -0
- package/build/static/css/{8725.10073a91.chunk.css → 8725.f7685908.chunk.css} +2 -2
- package/build/static/css/{8725.10073a91.chunk.css.map → 8725.f7685908.chunk.css.map} +1 -1
- package/build/static/css/931.86e57f64.chunk.css +2 -0
- package/build/static/css/931.86e57f64.chunk.css.map +1 -0
- package/build/static/js/{1106.5c4ba0d8.chunk.js → 1106.94b2f66d.chunk.js} +2 -2
- package/build/static/js/{1106.5c4ba0d8.chunk.js.map → 1106.94b2f66d.chunk.js.map} +1 -1
- package/build/static/js/{1153.9d410dce.chunk.js → 1153.084c38bb.chunk.js} +3 -3
- package/build/static/js/{1153.9d410dce.chunk.js.map → 1153.084c38bb.chunk.js.map} +1 -1
- package/build/static/js/1154.bf6eb17b.chunk.js +2 -0
- package/build/static/js/1154.bf6eb17b.chunk.js.map +1 -0
- package/build/static/js/{1454.909f127f.chunk.js → 1454.95cc1e18.chunk.js} +3 -3
- package/build/static/js/{1454.909f127f.chunk.js.map → 1454.95cc1e18.chunk.js.map} +1 -1
- package/build/static/js/1554.3483fb84.chunk.js +3 -0
- package/build/static/js/{1554.92728c28.chunk.js.map → 1554.3483fb84.chunk.js.map} +1 -1
- package/build/static/js/2503.e70ef261.chunk.js +2 -0
- package/build/static/js/{2503.232f9a5f.chunk.js.map → 2503.e70ef261.chunk.js.map} +1 -1
- package/build/static/js/2517.618e29cf.chunk.js +2 -0
- package/build/static/js/{2517.5945dc4a.chunk.js.map → 2517.618e29cf.chunk.js.map} +1 -1
- package/build/static/js/{2716.a3bd411c.chunk.js → 2716.b8095105.chunk.js} +3 -3
- package/build/static/js/{2716.a3bd411c.chunk.js.map → 2716.b8095105.chunk.js.map} +1 -1
- package/build/static/js/2730.25605c83.chunk.js +2 -0
- package/build/static/js/{2730.b81e1db8.chunk.js.map → 2730.25605c83.chunk.js.map} +1 -1
- package/build/static/js/2814.ef0e78ca.chunk.js +2 -0
- package/build/static/js/{2814.cdee12aa.chunk.js.map → 2814.ef0e78ca.chunk.js.map} +1 -1
- package/build/static/js/{289.3f45df63.chunk.js → 289.e8f67dbf.chunk.js} +2 -2
- package/build/static/js/{289.3f45df63.chunk.js.map → 289.e8f67dbf.chunk.js.map} +1 -1
- package/build/static/js/{3142.d1d022d9.chunk.js → 3142.1719d4a1.chunk.js} +2 -2
- package/build/static/js/{3142.d1d022d9.chunk.js.map → 3142.1719d4a1.chunk.js.map} +1 -1
- package/build/static/js/3333.2d80e8a4.chunk.js +2 -0
- package/build/static/js/3333.2d80e8a4.chunk.js.map +1 -0
- package/build/static/js/36.c44b9595.chunk.js +2 -0
- package/build/static/js/{36.85ad7682.chunk.js.map → 36.c44b9595.chunk.js.map} +1 -1
- package/build/static/js/{3843.581c4c07.chunk.js → 3843.e3b94c91.chunk.js} +2 -2
- package/build/static/js/{3843.581c4c07.chunk.js.map → 3843.e3b94c91.chunk.js.map} +1 -1
- package/build/static/js/4029.b169bb60.chunk.js +2 -0
- package/build/static/js/4029.b169bb60.chunk.js.map +1 -0
- package/build/static/js/4265.b63b8852.chunk.js +2 -0
- package/build/static/js/{4265.5dcd7c08.chunk.js.map → 4265.b63b8852.chunk.js.map} +1 -1
- package/build/static/js/{4666.d38708fb.chunk.js → 4666.586b40a7.chunk.js} +3 -3
- package/build/static/js/{4666.d38708fb.chunk.js.map → 4666.586b40a7.chunk.js.map} +1 -1
- package/build/static/js/{5443.9038a242.chunk.js → 5443.eb1bd9c6.chunk.js} +2 -2
- package/build/static/js/{5443.9038a242.chunk.js.map → 5443.eb1bd9c6.chunk.js.map} +1 -1
- package/build/static/js/5600.81f2aef6.chunk.js +2 -0
- package/build/static/js/{5600.d88a6355.chunk.js.map → 5600.81f2aef6.chunk.js.map} +1 -1
- package/build/static/js/5873.55afd19e.chunk.js +2 -0
- package/build/static/js/{5873.6c285e0c.chunk.js.map → 5873.55afd19e.chunk.js.map} +1 -1
- package/build/static/js/{5996.edcbda7e.chunk.js → 5996.b6b4584c.chunk.js} +2 -2
- package/build/static/js/{5996.edcbda7e.chunk.js.map → 5996.b6b4584c.chunk.js.map} +1 -1
- package/build/static/js/{6569.78db6367.chunk.js → 6569.25ee0c69.chunk.js} +2 -2
- package/build/static/js/{6569.78db6367.chunk.js.map → 6569.25ee0c69.chunk.js.map} +1 -1
- package/build/static/js/6611.07e270e6.chunk.js +2 -0
- package/build/static/js/{6611.1146bc44.chunk.js.map → 6611.07e270e6.chunk.js.map} +1 -1
- package/build/static/js/6779.c1862ff1.chunk.js +2 -0
- package/build/static/js/{6779.05efd0c4.chunk.js.map → 6779.c1862ff1.chunk.js.map} +1 -1
- package/build/static/js/6915.3738b719.chunk.js +2 -0
- package/build/static/js/{6915.6b33f07d.chunk.js.map → 6915.3738b719.chunk.js.map} +1 -1
- package/build/static/js/7121.10fd060f.chunk.js +2 -0
- package/build/static/js/{7121.979c4878.chunk.js.map → 7121.10fd060f.chunk.js.map} +1 -1
- package/build/static/js/7227.0aee129e.chunk.js +3 -0
- package/build/static/js/{7227.d3f98f46.chunk.js.map → 7227.0aee129e.chunk.js.map} +1 -1
- package/build/static/js/{7790.cd4d93d0.chunk.js → 7790.e1bcb362.chunk.js} +2 -2
- package/build/static/js/{7790.cd4d93d0.chunk.js.map → 7790.e1bcb362.chunk.js.map} +1 -1
- package/build/static/js/{8017.757d8f40.chunk.js → 8017.0adb338a.chunk.js} +2 -2
- package/build/static/js/{8017.757d8f40.chunk.js.map → 8017.0adb338a.chunk.js.map} +1 -1
- package/build/static/js/{8725.bb1c8ad4.chunk.js → 8725.c77c40ca.chunk.js} +2 -2
- package/build/static/js/{8725.bb1c8ad4.chunk.js.map → 8725.c77c40ca.chunk.js.map} +1 -1
- package/build/static/js/{931.377182b5.chunk.js → 931.25d5f1b7.chunk.js} +2 -2
- package/build/static/js/{931.377182b5.chunk.js.map → 931.25d5f1b7.chunk.js.map} +1 -1
- package/build/static/js/{main.03426e7d.js → main.1547f954.js} +2 -2
- package/build/static/js/{main.03426e7d.js.map → main.1547f954.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1151.fcc82944.chunk.css +0 -2
- package/build/static/css/1153.0f70e601.chunk.css +0 -2
- package/build/static/css/1153.0f70e601.chunk.css.map +0 -1
- package/build/static/css/1154.25169301.chunk.css +0 -2
- package/build/static/css/1154.25169301.chunk.css.map +0 -1
- package/build/static/css/1454.b6680ef6.chunk.css +0 -2
- package/build/static/css/1554.c3f5b619.chunk.css +0 -2
- package/build/static/css/2503.7c268bc6.chunk.css +0 -2
- package/build/static/css/2517.a37d84c0.chunk.css +0 -2
- package/build/static/css/2716.ba9cf85a.chunk.css +0 -2
- package/build/static/css/2730.ee2da00c.chunk.css +0 -2
- package/build/static/css/289.9f854889.chunk.css +0 -2
- package/build/static/css/3142.1c704353.chunk.css +0 -2
- package/build/static/css/3333.d1a3456b.chunk.css +0 -2
- package/build/static/css/3333.d1a3456b.chunk.css.map +0 -1
- package/build/static/css/4029.13a8fbfc.chunk.css +0 -2
- package/build/static/css/4029.13a8fbfc.chunk.css.map +0 -1
- package/build/static/css/4265.1f9caa5c.chunk.css +0 -2
- package/build/static/css/4265.1f9caa5c.chunk.css.map +0 -1
- package/build/static/css/4666.22605e23.chunk.css +0 -2
- package/build/static/css/5443.6227dbca.chunk.css +0 -2
- package/build/static/css/5443.6227dbca.chunk.css.map +0 -1
- package/build/static/css/5600.82b7015b.chunk.css +0 -2
- package/build/static/css/5873.42a87e1c.chunk.css +0 -2
- package/build/static/css/6611.92a0c476.chunk.css +0 -2
- package/build/static/css/6779.3c8f7740.chunk.css +0 -2
- package/build/static/css/7121.3ec29543.chunk.css +0 -2
- package/build/static/css/7227.37784a9f.chunk.css +0 -2
- package/build/static/css/8017.358a538e.chunk.css +0 -2
- package/build/static/css/8017.358a538e.chunk.css.map +0 -1
- package/build/static/css/931.27e879a6.chunk.css +0 -2
- package/build/static/css/931.27e879a6.chunk.css.map +0 -1
- package/build/static/js/1154.4d03b56f.chunk.js +0 -2
- package/build/static/js/1154.4d03b56f.chunk.js.map +0 -1
- package/build/static/js/1554.92728c28.chunk.js +0 -3
- package/build/static/js/2503.232f9a5f.chunk.js +0 -2
- package/build/static/js/2517.5945dc4a.chunk.js +0 -2
- package/build/static/js/2730.b81e1db8.chunk.js +0 -2
- package/build/static/js/2814.cdee12aa.chunk.js +0 -2
- package/build/static/js/3333.d64ec125.chunk.js +0 -2
- package/build/static/js/3333.d64ec125.chunk.js.map +0 -1
- package/build/static/js/36.85ad7682.chunk.js +0 -2
- package/build/static/js/4029.63e78855.chunk.js +0 -2
- package/build/static/js/4029.63e78855.chunk.js.map +0 -1
- package/build/static/js/4265.5dcd7c08.chunk.js +0 -2
- package/build/static/js/5600.d88a6355.chunk.js +0 -2
- package/build/static/js/5873.6c285e0c.chunk.js +0 -2
- package/build/static/js/6611.1146bc44.chunk.js +0 -2
- package/build/static/js/6779.05efd0c4.chunk.js +0 -2
- package/build/static/js/6915.6b33f07d.chunk.js +0 -2
- package/build/static/js/7121.979c4878.chunk.js +0 -2
- package/build/static/js/7227.d3f98f46.chunk.js +0 -3
- /package/build/static/js/{1153.9d410dce.chunk.js.LICENSE.txt → 1153.084c38bb.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1454.909f127f.chunk.js.LICENSE.txt → 1454.95cc1e18.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.92728c28.chunk.js.LICENSE.txt → 1554.3483fb84.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.a3bd411c.chunk.js.LICENSE.txt → 2716.b8095105.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.d38708fb.chunk.js.LICENSE.txt → 4666.586b40a7.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.d3f98f46.chunk.js.LICENSE.txt → 7227.0aee129e.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4265,1151,9034,6611,3142,8017],{42787:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var s=n(10486),a=n(73884),r=n(96418),l=n.n(r),o=n(83136),i=n.n(o);const c={scroller:"style_scroller__EfuqR__xNaFL","scroller-inner":"style_scroller-inner__NJSE0__xNaFL","is-moving":"style_is-moving__jGuy0__xNaFL"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...r}=e;const l=(0,a.useRef)(0),[o,d]=(0,a.useState)(!1),p=(0,a.useRef)(o);p.current=o;const _=(0,a.useRef)(t);_.current=t;const h=(0,a.useRef)(1);return h.current=r.width/r.innerWidth,(0,a.useEffect)((()=>{const e=e=>{p.current&&_.current(h.current*(e.clientX-l.current)),l.current=e.clientX},t=()=>{d(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,s.createPortal)(r.hasScroller?(0,u.jsx)("div",{className:c.scroller,style:{left:r.left,width:r.width,height:15},children:(0,u.jsx)("div",{className:i()(c["scroller-inner"],{[c["is-moving"]]:o}),style:{width:r.innerWidth,left:r.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,d(!0)}})}):null,n()||document.body)},p=e=>{let{className:t,scroller:n,getScrollTarget:s,children:r}=e;const[o,p]=(0,a.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),_=(0,a.useRef)(null),h=l()((()=>_.current&&s(_.current))),m=(0,a.useRef)();return m.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,a.useEffect)((()=>{const e=m.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:s,top:a,height:r}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,o=s*t.clientWidth/t.scrollWidth-6,i=t.scrollLeft*t.clientWidth/t.scrollWidth+2,c=e.getBoundingClientRect();p((u=>Object.assign({},u,{left:n,width:s,innerLeft:i,innerWidth:o,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?a+r-e.offsetHeight>0&&a<e.offsetHeight:a<c.top+c.height&&a+r>c.top+c.height)})))},s=new ResizeObserver(n);return new ResizeObserver((()=>{t=h(),t&&(s.disconnect(),n(),Array.from(t.children).forEach((e=>{s.observe(e)})),t.addEventListener("scroll",n))})).observe(_.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[h]),n?(0,u.jsxs)("div",{className:i()(c["scroller-outer"],t),ref:_,style:{"--scroller-bar-height":null!==o&&void 0!==o&&o.hasScroller?"15px":"0px"},children:[r,(0,u.jsx)(d,{...o,getContainer:m.current,onScroll:e=>{h().scrollLeft+=e}})]}):r};p.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const _=p},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x,useFeatureCall:()=>f});var s=n(73884),a=n(76329),r=n(33097),l=n.n(r),o=n(15797),i=n.n(o),c=n(1488),u=n.n(c),d=n(70579);const p=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{p(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),p(e.children,t,n?n+":"+e.id:e.id)))},_=i()((e=>{const t=(()=>{const t=new Map;return p(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:s}=t;const a=n.get(e);return-1!==s.indexOf(e)&&!0!==a.close&&l()(a,"dependencies",[]).every((t=>{const a=n.get(e);return s.indexOf(t)>-1&&!0!==a.close}))},m=(0,s.createContext)(null),{Provider:g}=m,f=e=>{const{features:t,profile:n,profileMap:r,debug:o}=(()=>{const e=(0,a.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},_(t),{debug:n})})(),i="system"===n.type?n.id:"root",c=(0,s.useContext)(m),u=c?c+":"+e:i+":"+e;return(0,s.useEffect)((()=>{t&&t.length>0&&o&&console.log("[featureId] ".concat(u,",[state] ").concat(h(u,{features:t,profileMap:r})),r.get(u))}),[t,r,o,u]),{isPass:!(e&&t&&t.length>0)||h(u,{features:t,profileMap:r}),currentId:u,feature:r.get(u)}},x=e=>{let{id:t,children:n}=e;const{isPass:s,feature:a,currentId:r}=f(t);return(0,d.jsx)(g,{value:r,children:"function"===typeof n?n({isPass:s,options:s?l()(a,"options"):l()(a,"rejectedOptions"),currentId:r}):s&&n})}},75363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});const s=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(58609),r=n(64671),l=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__xNaFL",u="style_inner__bMKeU__xNaFL",d="style_content__xTfWZ__xNaFL",p="style_link__93j7O__xNaFL";var _=n(48731),h=n(70579);const m=e=>{let{name:t,className:n}=e;return(0,h.jsx)(a.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,h.jsx)(_.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,n),children:(0,h.jsxs)(l.Space,{className:u,children:[(0,h.jsx)(r.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:d,children:e.content}),e.url&&(0,h.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(r.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},51516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Affix:()=>S,Menu:()=>J.default,Page:()=>K,PermissionsPage:()=>X,StateBarPage:()=>Y,TablePage:()=>Z,default:()=>V});var s=n(55199),a=n(73884);const r={menu:null,filter:null,menuOpen:!0,menuWidth:"240px",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},l=(0,a.createContext)({}),{Provider:o,Consumer:i}=l,c=()=>(0,a.useContext)(l);var u=n(79329),d=n(76801),p=n(36755),_=n(19853),h=n.n(_),m=n(63361),g=n(83136),f=n.n(g);const x={layout:"style_layout__k+lxR__xNaFL","page-content":"style_page-content__4XeN8__xNaFL","page-main":"style_page-main__P0yEF__xNaFL","page-main-content":"style_page-main-content__1OVPN__xNaFL","table-page":"style_table-page__JkbLf__xNaFL","helper-guide":"style_helper-guide__vzw4z__xNaFL","page-outer":"style_page-outer__2a6iH__xNaFL","no-margin":"style_no-margin__S6caT__xNaFL","page-menu":"style_page-menu__CZSa9__xNaFL",closed:"style_closed__hmnft__xNaFL","page-menu-inner":"style_page-menu-inner__rmKpu__xNaFL","page-menu-main":"style_page-menu-main__OXg2M__xNaFL","page-option-main":"style_page-option-main__LyfT3__xNaFL","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__xNaFL","page-option":"style_page-option__diS2S__xNaFL","page-option-inner":"style_page-option-inner__Fj1JH__xNaFL","page-option-footer":"style_page-option-footer__d7xE0__xNaFL","fixed-container":"style_fixed-container__1VZwY__xNaFL","is-fixed":"style_is-fixed__1aQhp__xNaFL","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__xNaFL","page-menu-btn":"style_page-menu-btn__BiTy8__xNaFL","page-title":"style_page-title__zw-Fd__xNaFL","page-title-text":"style_page-title-text__Rj4RC__xNaFL","no-padding":"style_no-padding__V7Dwy__xNaFL","page-header":"style_page-header__a813p__xNaFL","page-header-info":"style_page-header-info__cMrZR__xNaFL","layout-menu":"style_layout-menu__yiab0__xNaFL","sub-menu":"style_sub-menu__dyqK7__xNaFL","no-collapsed":"style_no-collapsed__76h8W__xNaFL","has-not-children":"style_has-not-children__fnjRK__xNaFL","table-page-top":"style_table-page-top__bt1l9__xNaFL","error-component":"style_error-component__HvghB__xNaFL","state-bar-page":"style_state-bar-page__+aUM4__xNaFL","back-icon":"style_back-icon__79v2G__xNaFL"};var y=n(70579);const v=e=>{let{className:t,isFixed:n,children:s}=e;return n?(0,y.jsx)("div",{className:f()(t,"fixed-container",x["fixed-container"],{[x["is-fixed"]]:n}),children:s}):(0,y.jsx)("div",{className:f()(t,"fixed-container",x["fixed-container"]),children:s})};var N=n(64671),j=n(17342),b=n(94679),L=n(33097),F=n.n(L),C=n(55490),O=n(25644);const w="CORE_PAGE_MENU_OPEN_KEY",P=()=>{const{pageProps:e,setPageProps:t}=c(),{menu:n,menuOpen:a,menuWidth:r,menuFixed:l,menuCloseButton:o}=e,i=(0,b.useLocation)().pathname.split("/")[1];return n?(0,y.jsxs)(s.Col,{className:f()(x["page-menu"],{[x.closed]:!a}),style:{"--width":r},children:[(0,y.jsx)(v,{className:x["page-menu-inner"],isFixed:l,children:(0,y.jsx)("div",{className:x["page-menu-main-outer"],children:(0,y.jsx)(j.A,{className:x["page-menu-main"],children:n})})}),o?(0,y.jsx)(v,{className:f()(x["page-menu-btn-outer"],{[x["is-fixed"]]:l}),isFixed:l,children:(0,y.jsx)(s.Button,{className:f()(x["page-menu-btn"],{[x.closed]:!a}),icon:a?(0,y.jsx)(N.default,{type:"icon-arrow-bold-left"}):(0,y.jsx)(N.default,{type:"icon-arrow-bold-right"}),onClick:()=>{t({menuOpen:!e.menuOpen});const n=O.A.getItem(w)||{};n[i]=!e.menuOpen,O.A.setItem(w,n),t({menuOpen:!e.menuOpen})}})}):null]}):null},k=e=>{let{children:t,isPass:n,...l}=e;const{setPageProps:o}=c(),i=(0,a.useRef)(null),u=(()=>{const e=(0,b.useLocation)().pathname.split("/")[1];return(0,a.useMemo)((()=>{const t=O.A.getItem(w)||{};return!(0,C.A)(F()(t,e))||F()(t,e)}),[e])})(),d=(0,a.useRef)(u);return d.current=u,(0,a.useEffect)((()=>{if(!h()(i.current,l)){i.current=l;const e=Object.assign({},r,l,"boolean"===typeof d.current?{menuOpen:d.current}:{});e.header&&0===e.headerHeight&&delete e.headerHeight,e.optionFooter&&0===e.optionFooterHeight&&delete e.optionFooter,o(e)}}),[l,o]),!1===n?(0,y.jsx)(s.Result,{status:"403",subTitle:"\u6682\u672a\u5f00\u653e\u6b64\u529f\u80fd"}):t},E=e=>{let{featureId:t,name:n,openFeatures:s,...r}=e;return!0===s?(0,y.jsx)(m.default,{id:n,children:e=>{let{isPass:t}=e;return(0,a.createElement)(k,{...r,key:n,isPass:t})}}):(0,a.createElement)(k,{...r,key:n})};E.defaultProps=r;const K=E,S=e=>{let{isFixed:t,offsetTop:n,offsetBottom:a,onChange:r,...l}=e;return t?(0,y.jsx)(s.Affix,{...l,offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:a,onChange:r}):(0,y.jsx)("div",{...l})},A=e=>{let{targetKey:t,...n}=e;const s=(e=>{let{targetKey:t}=e;const{setPageProps:n}=c(),s=(0,a.useRef)(null);return(0,a.useLayoutEffect)((()=>{const e=()=>{n({[t]:s.current.offsetHeight})};e();const a=new MutationObserver(e);return a.observe(s.current,{subtree:!0,childList:!0}),()=>{a.disconnect()}}),[n,t]),s})({targetKey:t});return(0,y.jsx)("div",{...n,ref:s})},R=()=>{const{pageProps:e}=c(),{header:t,headerFixed:n}=e;return t?(0,y.jsx)(S,{isFixed:n,className:x["page-header"],offsetTop:u.navigationHeight,children:(0,y.jsx)(A,{targetKey:"headerHeight",children:t})}):null},I=()=>{const{pageProps:e}=c(),{headerInfo:t}=e,n=(0,a.useRef)(null);return t?(0,y.jsx)("div",{ref:n,className:f()(x["page-header-info"],"page-header-info"),children:t}):null};var M=n(16915);const H=e=>{let{title:t,filter:n,titleExtra:a,titleLeftExtra:r,backUrl:l}=e;const o=(0,b.useNavigate)();return n?(0,y.jsx)(M.default,{className:x["page-title"],...n,extra:a}):t||r||a?(0,y.jsxs)(s.Row,{justify:"space-between",align:"middle",className:x["page-title"],children:[(0,y.jsx)(s.Col,{children:(0,y.jsxs)(s.Space,{children:[t?(0,y.jsx)("div",{className:x["page-title-text"],children:l?(0,y.jsxs)(s.Space,{children:[(0,y.jsx)("span",{className:x["back-icon"],onClick:()=>{o(l)},children:(0,y.jsx)(N.default,{type:"icon-arrow-thin-left"})}),(0,y.jsx)("span",{children:t})]}):t}):null,r||null]})}),(0,y.jsx)(s.Col,{children:a})]}):null},T=()=>{const{pageProps:e}=c(),{option:t,optionWidth:n,optionFixed:a,optionFooter:r,optionFooterHeight:l,optionNoPadding:o}=e;return t?(0,y.jsx)(s.Col,{className:f()(x["page-option"],"page-option"),style:{"--width":n,"--foot-height":l+"px"},children:(0,y.jsxs)(v,{className:x["page-option-inner"],isFixed:a,children:[(0,y.jsx)(j.A,{className:f()(x["page-option-main"],"page-option-main"),style:{padding:o?"0px":"var(--padding-width)"},children:t}),r?(0,y.jsx)(A,{className:x["page-option-footer"],targetKey:"optionFooterHeight",children:(0,y.jsx)(s.Space,{align:"center",children:r})}):null]})}):null};var W=n(75363),q=n(29053);const{Content:B}=s.Layout,z=()=>(0,y.jsx)(s.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,y.jsx)(s.Button,{size:"small",danger:!0,onClick:()=>window.location.reload(),children:"\u5237\u65b0"})}),U=e=>(0,y.jsx)(p.A,{...e,errorComponent:z}),G=e=>{let{children:t,theme:n,navigation:l}=e;const[i,c]=(0,a.useState)(0),[p,_]=(0,a.useState)(Object.assign({},r)),{permissions:h}=(0,q.usePermissions)(),m=(0,a.useCallback)((e=>_((t=>Object.assign({},t,e)))),[]);return(0,a.useEffect)((()=>{const e=(0,d.h)(),t=()=>{c(e.scrollLeft)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}}),[]),(0,y.jsxs)(s.Layout,{className:x.layout,style:Object.assign({},{"--nav-height":u.navigationHeight+"px","--nav-height-base":"var(--nav-height)","--scroll-left":-i+"px"},n),children:[l&&(0,y.jsx)(U,{children:(0,y.jsx)(u.default,{permissions:h,...l,onChange:e=>{(null===l||void 0===l?void 0:l.onChange)&&l.onChange(e)}})}),(0,y.jsx)(U,{children:(0,y.jsx)(B,{className:x["layout-content-wrap"],children:(0,y.jsxs)(o,{value:{pageProps:p,setPageProps:m},children:[(0,y.jsx)(U,{children:(0,y.jsx)(R,{})}),(0,y.jsx)(U,{children:(0,y.jsx)(I,{})}),(0,y.jsx)(U,{children:(0,y.jsxs)(s.Row,{className:f()(p.className,x["page-outer"]),wrap:!1,style:{"--nav-height":"calc(".concat(p.headerHeight,"px + var(--nav-height-base))"),"--nav-only-height":"var(--nav-height-base)"},children:[(0,y.jsx)(U,{children:(0,y.jsx)(P,{})}),(0,y.jsx)(s.Col,{className:f()(x["page-content"],{[x["no-margin"]]:p.noMargin}),flex:1,style:{"--background-color":p.backgroundColor},children:(0,y.jsxs)("div",{className:x["page-main"],children:[(0,y.jsx)(U,{children:(0,y.jsx)(H,{title:p.title,backUrl:p.backUrl,filter:p.filter,titleExtra:p.titleExtra,titleLeftExtra:p.titleLeftExtra})}),(0,y.jsx)("div",{className:f()(x["page-main-content"],{[x["no-padding"]]:p.noPadding}),children:(0,y.jsxs)(U,{children:[p.helperGuideName&&(0,y.jsx)(W.default,{className:x["helper-guide-page"],name:p.helperGuideName}),t]})})]})}),(0,y.jsx)(U,{children:(0,y.jsx)(T,{})})]})})]})})})]})};G.defaultProps={navigation:{}};const V=G,X=e=>{let{permissions:t,...n}=e;return(0,y.jsx)(q.default,{...Object.assign({},t,{type:"error"}),children:(0,y.jsx)(K,{...n})})};var J=n(28148),Q=n(22814);const Z=(0,a.forwardRef)(((e,t)=>{let{helperGuideName:n,permissions:s,page:r,openFeatures:l,name:o,topArea:i,...c}=e;const[u,d]=(0,a.useState)(null);return(0,y.jsxs)(X,{name:o,openFeatures:l,permissions:s,...r,children:[i?(0,y.jsx)("div",{className:x["table-page-top"],children:"function"===typeof i?i(u):i}):null,(0,y.jsxs)("div",{className:x["table-page"],children:[n&&(0,y.jsx)(W.default,{className:f()("helper-guide",x["helper-guide"]),name:n}),(0,y.jsx)(Q.TablePage,{...c,ref:t,name:o,onRequestSuccess:e=>{d(e)}})]})]})}));var D=n(87227);const Y=e=>{let{helperGuideName:t,permissions:n,page:s,stateBar:a,children:r,...l}=e;return(0,y.jsxs)(X,{...s,permissions:n,...l,children:[(0,y.jsx)("div",{className:x["state-bar-page"],children:(0,y.jsx)(D.default,{...a})}),t&&(0,y.jsx)(W.default,{className:x["helper-guide"],name:t}),r]})}},28148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});const s={menu:"style_menu__gvIvn__xNaFL","all-no-start-icon":"style_all-no-start-icon__CA+zR__xNaFL","no-start-icon":"style_no-start-icon__LnC1S__xNaFL","has-children":"style_has-children__m9tce__xNaFL","has-children-node":"style_has-children-node__2bhEB__xNaFL","is-root":"style_is-root__4hhOc__xNaFL",title:"style_title__+Hcar__xNaFL",active:"style_active__WU49K__xNaFL","no-collapse":"style_no-collapse__aIZBM__xNaFL","title-content":"style_title-content__cQXpK__xNaFL",loading:"style_loading__1pU4P__xNaFL"};var a=n(83136),r=n.n(a),l=n(55199),o=n(94679),i=n(29053),c=n(10986),u=n.n(c),d=n(64671),p=n(73884),_=n(18081),h=n.n(_),m=n(87558),g=n(70579);const f=e=>{const t=(0,o.useNavigate)(),{id:n,className:a,label:c,iconType:u,path:p,request:_,onClick:h,isOpen:f,isSelected:x,onOpenChange:y,children:v,fetchOptions:N,depth:j,onLoad:b,allowCollapsed:L}=e,F=Array.isArray(v)&&v.length>0||N,{refresh:C,isLoading:O}=(0,m.useFetch)(Object.assign({},N,{auto:!L&&N,onRequestSuccess:e=>{b(e)}}));return(0,g.jsx)(i.default,{request:_,children:(0,g.jsxs)("div",{className:r()(a,s["menu-item"]),children:[(0,g.jsxs)("div",{className:r()(s.title,{[s.active]:x,[s["has-children"]]:F,[s["no-collapse"]]:F&&!L,[s["no-start-icon"]]:!u,[s["is-root"]]:0===j}),onClick:s=>{s.stopPropagation(),F||!p?F||N?L&&(N&&C({}),y(!f)):null===h||void 0===h||h(n,e):t(p)},children:[u&&(0,g.jsx)(d.default,{type:u}),(0,g.jsx)("span",{className:s["title-content"],children:c}),F&&L&&(0,g.jsx)(d.default,{type:f?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),F?!L||f&&v?(0,g.jsx)("div",{className:s["children-list"],children:v}):!L||f&&O?(0,g.jsx)("div",{className:s["children-list"],children:(0,g.jsx)(l.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},x=e=>{let{className:t,allowCollapsed:n,...a}=e;const{pathname:l,search:i}=(0,o.useLocation)(),[c,d]=u()(a,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[_,m]=u()(a,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:x,defaultOpenKeys:y,links:v,childrenKeys:N,hasStartIcon:j,hasChildren:b}=(0,p.useMemo)((()=>{var e;const{items:t,childrenKeys:n,nodeMapping:s}=(e=>{const t={},n=[],s=(e,a)=>{const{parentKey:r,depth:l}=Object.assign({parentKey:"root",depth:0,paths:[]},a);return Array.isArray(e)&&e.length>0?e.map(((e,a)=>{const o="".concat(e.key||"".concat("root"!==r?"".concat(r,"-"):"","node-").concat(a));t[r]||(t[r]=[]),t[r].push(o);const i=s(e.children,{parentKey:o,depth:l+1});t[o]&&t[r].push(...t[o]);const c=Object.assign({},e,{key:o,parentKey:r,depth:l,children:i,originItem:e});return n[o]=c,c})):null};return{items:s(e),childrenKeys:t,nodeMapping:n}})(_);let a=!1,r=!1;const l=[],o=[];return null===n||void 0===n||null===(e=n.root)||void 0===e||e.forEach((e=>{const t=s[e];t.iconType&&(a=!0),t.path&&l.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(r=!0,o.push(t.key))})),{defaultOpenKeys:o,links:l,items:t,childrenKeys:n,hasStartIcon:a,hasChildren:r}}),[_]);(0,p.useEffect)((()=>{const e=v.find((e=>{let{path:t}=e;return h()(l.replace(/[#,?].*/,""))===h()(t)||h()(l+i)===h()(t)}));e&&d(e.key)}),[v,l,i,d]);const[L,F]=u()(Object.assign({},a,{defaultOpenKeys:a.defaultOpenKeys||y}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),C=(0,p.useCallback)(((e,t)=>{const{parentKey:s,depth:a,selectedKey:r,openKeys:l,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:t,key:i,originItem:c,...u}=e;return(0,p.createElement)(f,{...Object.assign({},u),id:i,parentId:s,depth:a,allowCollapsed:n,isSelected:i===r||N[i]&&N[i].indexOf(r)>-1,onClick:d,onLoad:e=>{m((t=>{const n=t=>Array.isArray(t)&&t.length>0?t.map((t=>Object.assign({},t,{children:c===t?e:n(t.children)}))):null;return n(t)}))},isOpen:(l||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{F((e=>{const t=e.slice(0);return e.indexOf(i)>-1?t.splice(e.indexOf(i),1):t.push(i),t}))}},C(t,{parentKey:s,depth:a+1,selectedKey:r,openKeys:l,paths:[...o,i]}))})):null}),[m,F,d,N,n]);return(0,g.jsx)("div",{className:r()(t,s.menu,{[s["all-no-start-icon"]]:!j,[s["has-children-node"]]:b}),children:C(x,{selectedKey:c,openKeys:L})})};x.defaultProps={defaultItems:[],allowCollapsed:!0};const y=x},79329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w,navigationHeight:()=>F});var s=n(55199),a=n(94679),r=n(33097),l=n.n(r),o=n(73884),i=n(83136),c=n.n(i);const u=n.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var d=n(40438);const p=e=>({"en-US":()=>n.e(257).then(n.bind(n,30257)),"zh-CN":()=>n.e(5671).then(n.bind(n,5671))}[e]());var _=n(58609),h=n(64671);const m="style_navigation-wrap__VF8x2__xNaFL",g="style_navigation__60RrS__xNaFL",f="style_is-fixed__kHFWj__xNaFL",x="style_navigation-logo__q9qHu__xNaFL",y="style_logo__lB9RC__xNaFL",v="style_navigation-list__EYtkg__xNaFL",N="style_navigation-options__0BdJU__xNaFL",j="style_more-icon__gNMnt__xNaFL";var b=n(70579);const{Header:L}=s.Layout,F=48,C=e=>{let{name:t,mapping:n,defaultTitle:s}=e;const a=(0,o.useRef)({mapping:n,defaultTitle:s});return(0,o.useEffect)((()=>{const e=l()(a.current.mapping.get(t),"title");document.title=(e?e+"-":"")+a.current.defaultTitle}),[t]),null},O=e=>{let{permissions:t,list:n,headerLogo:r,rightOptions:i,isFixed:F,showIndex:O,indexLabel:w,defaultTitle:P,overflowedIndicator:k,base:E,onChange:K,className:S}=e;const A=(0,o.useMemo)((()=>new Map(n.map((e=>{let{key:t,...n}=e;return[t,n]})))),[n]),R=(0,a.useNavigate)(),I=(0,a.useLocation)(),M=(0,o.useRef)(),H=(0,o.useRef)(null),[T,W]=(0,o.useState)("\u66f4\u591a"),q=I.pathname.replace(new RegExp("^".concat(E)),"").split("/")[1],B=q?l()(Array.from(A.entries()).find((e=>{let[n,{path:s,permission:a}]=e;return-1!==("function"===typeof s?s(a,t):s).indexOf("/"+q)})),"[0]"):"home";(0,o.useEffect)((()=>{const e=()=>{if(M.current){const e=M.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let s=0;s<e.length;s++){if(-1!==e[s].getAttribute("data-menu-id").indexOf(B)){t=!0;break}}let n=A.get(B)&&!t?l()(A.get(B),"title"):"";W(n)}},t={attributes:!0,childList:!0,subtree:!0};return M&&M.current&&(e(),H.current&&H.current.disconnect(),H.current=new MutationObserver(e),H.current.observe(M.current,t)),()=>{H.current&&H.current.disconnect()}}),[B,A]);const z=!!O&&{label:w||(0,b.jsx)(_.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{K&&K("/"),setTimeout((()=>{R("/")}),0)}};return(0,b.jsxs)(_.IntlProvider,{importMessages:p,moduleName:"Navigation",children:[(0,b.jsx)(_.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,b.jsx)(C,{defaultTitle:P||e,mapping:A,name:B})}),(0,b.jsx)("div",{className:c()(m,S),children:(0,b.jsx)(L,{className:c()("navigation",g,{[f]:F}),children:(0,b.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,b.jsx)(s.Col,{className:c()("navigation-logo",x),children:(0,b.jsx)(d.default,{className:c()(y),src:u,alt:"logo",...r})}),(0,b.jsx)(s.Col,{ref:M,flex:1,className:c()("navigation-list",v),children:(0,b.jsx)(s.Menu,{selectedKeys:[B],mode:"horizontal",overflowedIndicator:k||(0,b.jsxs)(s.Space,{size:4,children:[(0,b.jsx)("span",{children:T||(0,b.jsx)(_.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,b.jsx)("span",{className:j,children:(0,b.jsx)(h.default,{type:"icon-arrow-thin-down"})})]}),items:[z,...Array.from(A.entries()).filter((e=>{let[n,{permission:s}]=e;if("string"===typeof s)return t.indexOf(s)>-1;if("function"===typeof s)return s(t);if(Array.isArray(s)){for(let e of s)if(t.indexOf(e)>-1)return!0;return!1}return!0})).map((e=>{let[n,{title:s,path:a,permission:r}]=e;const l="function"===typeof a?a(r,t):a;return{label:s,key:n,onClick:()=>{K&&K(l),setTimeout((()=>{R(l)}),0)}}}))]})}),(0,b.jsx)(s.Col,{className:N,children:i})]})})})]})};O.defaultProps={isFixed:!0,permissions:[],list:[],showIndex:!0,base:""};const w=O},29053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{computedIsPass:()=>p,default:()=>g,usePermissions:()=>_,usePermissionsPass:()=>h});var s=n(73884),a=n(55199),r=n(33097),l=n.n(r),o=n(83136),i=n.n(o);const c="style_outer__vbHB9__xNaFL";var u=n(76329),d=n(70579);const p=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,u.useGlobalContext)(),{permissions:t,permissionsPath:n}=(0,u.usePreset)();return{permissions:e.permissions||t||n&&l()(e,n)||[]}},h=e=>{let{request:t}=e;const{permissions:n}=_();return p({permissions:n,request:t})},m=e=>{let{type:t,className:n,tagName:r,message:l,request:o,children:u,...p}=e;const _=h({request:o});return"function"===typeof u?u({isPass:_,type:t,request:o}):!0===_?u:"error"===t?(0,d.jsx)(a.Result,{status:"403",subTitle:l}):"tooltip"===t?(0,d.jsx)(a.Tooltip,{title:l,children:(0,s.createElement)(r,{...p,className:i()(c,n)},u)}):null};m.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const g=m},87227:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(55199),a=n(83136),r=n.n(a);const l={"state-bar":"style_state-bar__3jfis__xNaFL","has-children":"style_has-children__oQDqU__xNaFL","tab-tab-control":"style_tab-tab-control__SopeO__xNaFL","tab-radio-control":"style_tab-radio-control__R8X6-__xNaFL","tab-step-control":"style_tab-step-control__EQaCl__xNaFL","inner-state-bar":"style_inner-state-bar__lWmOz__xNaFL"};var o=n(70579);const i=e=>{let{className:t,type:n="tab",stateOption:a=[],isInner:i,...c}=e;return(0,o.jsx)(s.Tabs,{...c,"data-testid":"components-core-state-bar",className:r()(l["state-bar"],l["tab-".concat(n,"-control")],t,{[l["inner-state-bar"]]:i,[l["has-children"]]:a.some((e=>!!e.children))}),style:{"--total-count":a.length},animated:!1,items:a.map((e=>{let{tab:t,label:n,key:s,...a}=e;return{label:t||n,key:s,...a}}))})}},94710:e=>{e.exports=function(e,t,n,s){for(var a=-1,r=null==e?0:e.length;++a<r;){var l=e[a];t(s,l,n(l),e)}return s}},32952:(e,t,n)=>{var s=n(45652);e.exports=function(e,t,n,a){return s(e,(function(e,s,r){t(a,e,n(e),r)})),a}},45652:(e,t,n)=>{var s=n(94664),a=n(76516)(s);e.exports=a},75816:e=>{e.exports=function(e,t,n,s){for(var a=e.length,r=n+(s?1:-1);s?r--:++r<a;)if(t(e[r],r,e))return r;return-1}},99910:e=>{e.exports=function(e,t){for(var n,s=-1,a=e.length;++s<a;){var r=t(e[s]);void 0!==r&&(n=void 0===n?r:n+r)}return n}},19449:(e,t,n)=>{var s=n(94710),a=n(32952),r=n(9096),l=n(54052);e.exports=function(e,t){return function(n,o){var i=l(n)?s:a,c=t?t():{};return i(n,e,r(o,2),c)}}},76516:(e,t,n)=>{var s=n(6571);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!s(n))return e(n,a);for(var r=n.length,l=t?r:-1,o=Object(n);(t?l--:++l<r)&&!1!==a(o[l],l,o););return n}}},21844:(e,t,n)=>{var s=n(75816),a=n(9096),r=n(99140),l=Math.max,o=Math.min;e.exports=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var c=i-1;return void 0!==n&&(c=r(n),c=n<0?l(i+c,0):o(c,i-1)),s(e,a(t,3),c,!0)}},39835:(e,t,n)=>{var s=n(71775),a=n(19449),r=Object.prototype.hasOwnProperty,l=a((function(e,t,n){r.call(e,n)?e[n].push(t):s(e,n,[t])}));e.exports=l},79160:(e,t,n)=>{var s=n(16913),a=n(22761);e.exports=function(e){return"number"==typeof e||a(e)&&"[object Number]"==s(e)}},69613:(e,t,n)=>{var s=n(9261);e.exports=function(e,t,n){return null==e?e:s(e,t,n)}},42907:(e,t,n)=>{var s=n(9096),a=n(99910);e.exports=function(e,t){return e&&e.length?a(e,s(t,2)):0}},99140:(e,t,n)=>{var s=n(37303);e.exports=function(e){var t=s(e),n=t%1;return t===t?n?t-n:t:0}}}]);
|
|
2
|
-
//# sourceMappingURL=4265.5dcd7c08.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5600,9034,2517],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(8762),l=t.n(n);t(46733);const s=l()},58407:(e,o,t)=>{t.r(o),t.d(o,{ConfirmLink:()=>g,ConfirmText:()=>x,default:()=>y,withConfirm:()=>f});t(73884);var n=t(55199);const l=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var s=t(64671),a=t(58609),i=t(3382),r=t(83136),c=t.n(r);const d="style_overlay__99t5t__xNaFL",m="style_is-danger__gxyAB__xNaFL",h="style_title__EEPu2__xNaFL",_="style_content__mZZg5__xNaFL",p="style_has-title__5+PEt__xNaFL";var u=t(70579);const f=e=>{const o=(0,a.createWithIntl)({moduleName:"ConfirmButton",importMessages:l})((o=>{let{title:t,message:l,isDelete:r=!0,onClick:f,onCancel:g,disabled:x,showCancel:y,cancelText:C,isModal:N,okText:b,placement:j,getContainer:w,...v}=o;const{formatMessage:k}=(0,a.useIntl)({moduleName:"ConfirmButton"}),F=(0,i.useConfirmModal)();return N?(0,u.jsx)(e,{...v,disabled:x,onClick:e=>{F({type:"confirm",title:t,getContainer:w,danger:r,confirmType:r?"warning":"info",message:l||k({id:"message"}),okText:b||k(r?{id:"delete"}:{id:"confirm"}),cancelText:C||k({id:"cancel"}),onCancel:g,onOk:f})}}):(0,u.jsx)(n.Popconfirm,{title:(0,u.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(n.Space,{size:0,align:"start",className:h,children:[r&&(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,u.jsxs)(n.Space,{size:0,align:"start",className:c()(_,{[p]:t}),children:[!t&&r?(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||k({id:"message"})]})]}),placement:j,onConfirm:f,okButtonProps:{danger:r},onCancel:g,overlayClassName:c()(d,{[m]:r}),getPopupContainer:w,disabled:x,showCancel:y,cancelText:C,okText:b||k(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...v,disabled:x})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},g=f(n.Typography.Link),x=f(n.Typography.Text),y=f(n.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>S,TabsModal:()=>P,TabsModalButton:()=>T,default:()=>k,useConfirmModal:()=>v,useModal:()=>w,useTabsModal:()=>L});var n=t(73884),l=t(55199),s=t(83136),a=t.n(s);const i={modal:"style_modal__Pm3cF__xNaFL",large:"style_large__iaqVE__xNaFL","modal-body-inner":"style_modal-body-inner__4PhpA__xNaFL","modal-title":"style_modal-title__dswaw__xNaFL","modal-outer":"style_modal-outer__r3SkX__xNaFL","modal-body":"style_modal-body__jQJSI__xNaFL","right-options-modal":"style_right-options-modal__FajDP__xNaFL","right-options-row":"style_right-options-row__-mPb9__xNaFL","right-options-col":"style_right-options-col__3ilee__xNaFL","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__xNaFL",content:"style_content__k6MIF__xNaFL","modal-footer":"style_modal-footer__-prbN__xNaFL","modal-close":"style_modal-close__Oa5Kl__xNaFL","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__xNaFL","is-danger":"style_is-danger__H5110__xNaFL",title:"style_title__orTym__xNaFL","has-title":"style_has-title__qy0Wp__xNaFL"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=t(81014),_=t(17342),p=t(70579);const u="Modal",f=e=>{let{options:o,children:t}=e;return o?(0,p.jsxs)(l.Row,{wrap:!1,className:i["right-options-row"],children:[(0,p.jsx)(l.Col,{span:18,className:i["right-options-col"],children:t}),(0,p.jsx)(l.Col,{span:6,className:i["right-options-col"],children:o})]}):t},g=(e,o)=>"".concat(e-48-(o?58:0),"px"),x=(e,o)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":g(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,o)}}:{width:"1000px",style:{"--min-modal-height":g(500,o)}},y=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:a,onClose:i,targetProps:d}=e;return(0,p.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,p.jsx)(l.Col,{children:(0,p.jsx)(l.Space,{children:(t||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:a},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:l,autoClose:s=!0,display:a,...r}=e;const c=t||h.default;return(0,n.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(l&&l(...o,d));return s&&!1!==n&&i&&i(),n}})}))})})]})},C=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:g}=e;const x=(0,n.useRef)(null);return(0,p.jsxs)("div",{className:i["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,p.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:i["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,p.jsx)("div",{className:i["modal-title"],children:o}),(0,p.jsx)(_.A,{className:a()(i["modal-body"],{[i["is-disabled-scroller"]]:s},"modal-body"),ref:x,children:(0,p.jsx)("div",{className:a()(i["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,p.jsx)("div",{className:a()(i["modal-footer"],"modal-footer"),children:(0,p.jsx)(y,{footer:t,footerButtons:r,onConfirm:h,onCancel:u,onClose:c,targetProps:g})}):null]})},N=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:a,onCancel:i,footer:r,rightOptions:c,disabledScroller:d,childrenRef:h,children:_}=e;const u=e=>(e=Object.assign({},{title:n},e),(0,p.jsx)(C,{title:m(e.title,{...e,childrenRef:h,close:s}),closable:l,onClose:s,onConfirm:a,onCancel:i,footerButtons:m(t,{...e,close:s}),disabledScroller:d,footer:m(r,{...e,childrenRef:h,close:s}),targetProps:Object.assign({},e,{childrenRef:h,close:s}),children:(0,p.jsx)(f,{options:m(c,{...e,childrenRef:h,close:s}),children:m(_,{...e,childrenRef:h,close:s})})}));return"function"===typeof o?o(u):u({})},b=e=>{let{children:o,rightOptions:t,footer:n,footerButtons:l,className:s,size:d,title:m,onClose:h,onConfirm:_,onCancel:u,closable:f,disabledScroller:g,withDecorator:y,childrenRef:C,...b}=e;return{...b,icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:h,className:a()(s,i.modal,i[d],{[i["right-options-modal"]]:t}),...x(d,!(null===n&&!l)),children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:N({withDecorator:y,title:m,closable:f,onClose:h,onConfirm:_,onCancel:u,footer:n,footerButtons:l,rightOptions:t,disabledScroller:g,children:o,childrenRef:C})})}},j=e=>{const o=(0,n.useRef)(null);return(0,p.jsx)(l.Modal,{...b(Object.assign({},e,{childrenRef:o}))})};j.defaultProps={size:"default"};const w=()=>{const{modal:e}=l.App.useApp(),o=(0,n.useRef)(null);return t=>{const n={},{children:l,...s}=b({onClose:()=>n.close(),childrenRef:o,...t}),{destroy:a}=e.info({...s,content:l});return n.close=a,n}},v=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:r,danger:c,wrapClassName:m,message:h,iconSetting:_={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},_);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:a()(i["confirm-modal-wrap"],m,{[i["is-danger"]]:c}),title:(0,p.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,p.jsxs)(l.Space,{size:0,align:"start",className:i.title,children:[c?(0,p.jsx)(d.default,{className:a()("title-icon","title-icon-".concat("confirm"===n?u:n)),type:s||g["confirm"===n?u:n]}):null,r]})}),content:(0,p.jsxs)(l.Space,{size:0,align:"start",className:a()(i.content,{[i["has-title"]]:r}),children:[!r&&c?(0,p.jsx)(d.default,{className:a()("title-icon","title-icon-".concat("confirm"===n?u:n)),type:s||g["confirm"===n?u:n]}):null,h]})});t.close=o}return t}},k=j,F=e=>{let{items:o,className:t,activeKey:n,withDecorator:s,defaultActiveKey:i,onChange:r,...c}=e;return{...c,className:a()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,p.jsx)(l.Tabs,{items:o.map((o=>{let{withDecorator:n,...l}=o;return Object.assign({},l,{children:"function"===typeof n?n((o=>e(Object.assign({},t,o,{children:l.children})))):e(Object.assign({},t,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:i,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},P=e=>(0,p.jsx)(k,{...F(e)}),L=()=>{const e=w();return o=>e(F(o))};var M=t(73025);const T=e=>{const o=L();return(0,p.jsx)(M.A,{...e,modalFunc:o})},S=e=>{const o=w();return(0,p.jsx)(M.A,{...e,modalFunc:o})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5600.d88a6355.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5873,9034,7790,4912],{58407:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ConfirmLink:()=>v,ConfirmText:()=>h,default:()=>_,withConfirm:()=>g});s(73884);var a=s(55199);const n=e=>({"en-US":()=>s.e(3275).then(s.bind(s,63275)),"zh-CN":()=>s.e(5181).then(s.bind(s,25181))}[e]());var i=s(64671),l=s(58609),r=s(3382),o=s(83136),c=s.n(o);const d="style_overlay__99t5t__xNaFL",u="style_is-danger__gxyAB__xNaFL",p="style_title__EEPu2__xNaFL",m="style_content__mZZg5__xNaFL",x="style_has-title__5+PEt__xNaFL";var f=s(70579);const g=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:n})((t=>{let{title:s,message:n,isDelete:o=!0,onClick:g,onCancel:v,disabled:h,showCancel:_,cancelText:j,isModal:N,okText:y,placement:F,getContainer:L,...S}=t;const{formatMessage:C}=(0,l.useIntl)({moduleName:"ConfirmButton"}),w=(0,r.useConfirmModal)();return N?(0,f.jsx)(e,{...S,disabled:h,onClick:e=>{w({type:"confirm",title:s,getContainer:L,danger:o,confirmType:o?"warning":"info",message:n||C({id:"message"}),okText:y||C(o?{id:"delete"}:{id:"confirm"}),cancelText:j||C({id:"cancel"}),onCancel:v,onOk:g})}}):(0,f.jsx)(a.Popconfirm,{title:(0,f.jsxs)(a.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[s&&(0,f.jsxs)(a.Space,{size:0,align:"start",className:p,children:[o&&(0,f.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),s]}),(0,f.jsxs)(a.Space,{size:0,align:"start",className:c()(m,{[x]:s}),children:[!s&&o?(0,f.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,n||C({id:"message"})]})]}),placement:F,onConfirm:g,okButtonProps:{danger:o},onCancel:v,overlayClassName:c()(d,{[u]:o}),getPopupContainer:L,disabled:h,showCancel:_,cancelText:j,okText:y||C(o?{id:"delete"}:{id:"confirm"}),children:(0,f.jsx)(e,{...S,disabled:h})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},v=g(a.Typography.Link),h=g(a.Typography.Text),_=g(a.Button)},48731:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>g});var a=s(73884),n=s(87558),i=s(76329),l=s(15797),r=s.n(l),o=s(79686),c=s.n(o),d=s(70579);const u=[["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}]]],p=(0,n.withFetch)((e=>{let{data:t,children:s}=e;return"function"===typeof s?s(t):s||(null===t||void 0===t?void 0:t.description)})),m=r()((e=>new Map(u.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),x=e=>{let{loader:t,...s}=e;const{global:{enumsRef:n}}=(0,i.useGlobalContext)(),l=(0,a.useRef)(null);return(0,d.jsx)(p,{...s,loader:async function(){const e=m(await t(...arguments)),{params:s}=arguments.length<=0?void 0:arguments[0],{moduleName:a,name:i,force:r,locale:o}=s,d=async t=>!0!==r&&l.current===o&&n.current.get(t)||await(async()=>{const s=e.get(t),a=await(async()=>"function"===typeof s?new Map((await s({locale:o})).map((e=>[e.value.toString(),e]))):Array.isArray(s)?new Map(s.map((e=>[e.value.toString(),e]))):"object"===typeof s?new Map(Object.keys(s).map((e=>[e.toString(),s[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return n.current.set(t,a),l.current=o,a})();if(Array.isArray(a))return await Promise.all(a.map((e=>d(e).then((e=>Array.from(e.values()))))));const u=await d(a);return c()(i)?Array.from(u.values()):u.get(i.toString())}})},f=e=>{let{moduleName:t,name:s,force:a,children:n,...l}=e;const r=(0,i.usePreset)();return(0,d.jsx)(x,{...l,params:{moduleName:t,locale:null===r||void 0===r?void 0:r.locale,enums:null===r||void 0===r?void 0:r.enums,name:s,force:a},loader:e=>{let{params:t}=e;return t.enums},children:n})};f.defaultProps={force:!1};const g=f},24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>K,DragAreaOuter:()=>Z,DragButton:()=>V,FileUpload:()=>le,Title:()=>D,UploadButton:()=>X,UploadTips:()=>q,default:()=>se});var a=s(73884),n=s(33097),i=s.n(n),l=s(55199);const r="style_file-list-outer__wPhbb__xNaFL",o="style_file-list-title__zXM5r__xNaFL",c="style_container__P4RaF__xNaFL",d="style_file-preview-inner__cvE72__xNaFL",u="style_file-preview__M-Asq__xNaFL",p="style_drag-area__Q+lm7__xNaFL",m="style_upload-drag-close__u5o8W__xNaFL",x="style_upload-drag-tips__z7puZ__xNaFL",f="style_upload-drag-icon__sGGoS__xNaFL",g="style_upload-drag-title__9Afmb__xNaFL",v="style_upload-drag-text__o38vS__xNaFL",h="style_title-group__8IJkS__xNaFL",_="style_upload-btn__Q+Jxn__xNaFL",j="style_total-count__z1fyd__xNaFL",N="style_file-select__mHqyI__xNaFL",y="style_file-name__QkvMn__xNaFL",F="style_file-select-info__fOLiM__xNaFL",L="style_file-select-option__AbDrD__xNaFL";var S=s(75087),C=s.n(S),w=s(74065),P=s.n(w),b=s(57469),M=s.n(b),T=s(64671),z=s(67390),E=s(58609),I=s(70579);const A=e=>{let{currentTab:t,setCurrentTab:s,previewMap:a,previewList:n,getPermission:i,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:p,getPopupContainer:m}=e;return(0,I.jsx)("div",{className:o,children:(0,I.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,I.jsx)(l.Col,{children:(0,I.jsxs)(l.Space,{className:h,size:4,children:[(0,I.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,I.jsxs)(l.Space,{size:4,children:[(0,I.jsx)(T.default,{type:"icon-shitu-liebiao"}),(0,I.jsx)(E.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,I.jsxs)(l.Space,{size:4,children:[(0,I.jsx)(T.default,{type:"icon-shitu-yulan"}),(0,I.jsx)(E.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&a.get(r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(l.Select,{className:N,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:n.map((e=>{let{filename:t,userName:s,date:a,ossId:n}=e;return(0,I.jsx)(l.Select.Option,{className:L,value:n,children:(0,I.jsxs)(l.Space,{direction:"vertical",children:[(0,I.jsxs)(l.Space,{size:4,align:"start",children:[(0,I.jsx)(C(),{type:P()(t.split(".")),size:14}),(0,I.jsx)(l.Typography.Text,{className:y,ellipsis:!0,style:{"--max-width":"".concat(p,"px")},children:t})]}),s||a?(0,I.jsxs)(l.Space,{className:F,size:24,children:[(0,I.jsxs)("div",{children:[(0,I.jsx)(E.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,I.jsxs)("div",{children:[(0,I.jsx)(E.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",a&&M()(a).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},n)}))}),(0,I.jsx)(z.OptionButtons,{hasPreview:!1,getPermission:i,item:a.get(r),apis:d}),(0,I.jsx)("div",{className:j,children:(0,I.jsx)(E.FormattedMessage,{id:"totalCount",values:{count:n.length},moduleName:"FileList"})})]})]})}),(0,I.jsx)(l.Col,{children:u})]})})};A.defaultProps={maxWidth:260};const D=A,k=e=>({"en-US":()=>s.e(5714).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var O=s(70720),U=s.n(O),B=s(83136),R=s.n(B);const Y=(0,a.createContext)({}),{Provider:G}=Y,W=()=>(0,a.useContext)(Y);var H=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:a}=W();return(0,I.jsx)("div",{ref:a,className:_,onClick:()=>{s((e=>!e))},children:(0,I.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,I.jsx)(T.default,{type:"icon-tuozhuaishangchuan"}),t||(0,I.jsx)(E.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:a}=W();return(0,I.jsxs)(H.AG,{className:_,accept:s,multiple:!0,onChange:a,children:[(0,I.jsx)(T.default,{type:"icon-tianjia"}),t]})},Z=e=>{let{title:t,accept:s,fileSize:n,maxLength:i,onFileSelected:o,children:d,className:u}=e;const[p,m]=(0,a.useState)(!1),x=(0,a.useRef)(null),f=U()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||m(!1))}));return(0,I.jsx)(E.IntlProvider,{importMessages:k,moduleName:"FileList",children:(0,I.jsx)(G,{value:{open:p,onOpenChange:m,accept:s,fileSize:n,maxLength:i,onFileSelected:o,getDragButtonEl:e=>{x.current=e}},children:(0,I.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,I.jsx)("div",{className:R()(c,u),ref:f,onDragEnter:()=>{m(!0)},children:d})]})})})};Z.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const q=e=>{let{icon:t,title:s,renderTips:a}=e;const{accept:n,fileSize:i,maxLength:l}=W(),r=a((0,E.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:n.map((e=>e.replace(/^\./,""))).join("\u3001"),size:i}),{fileSize:i,maxLength:l,accept:n});return(0,I.jsxs)("div",{className:R()(x,"upload-drag-tips"),children:[(0,I.jsx)("div",{className:f,children:t||(0,I.jsx)(T.default,{type:"icon-shangchuan",size:64})}),(0,I.jsx)("div",{className:g,children:s||(0,I.jsx)(E.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,I.jsx)("div",{className:v,children:r})]})};q.defaultProps={renderTips:e=>e};const J=e=>{let{children:t,className:s}=e;const{open:a,accept:n,onOpenChange:i,onFileSelected:r}=W();return a?(0,I.jsxs)("div",{className:R()(p,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;i(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,n)));r(t)},onDragEnd:()=>{i(!1)},children:[(0,I.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,I.jsx)(T.default,{type:"icon-close-bold"}),onClick:()=>{i(!1)}}),t]}):null};J.defaultProps={children:(0,I.jsx)(q,{})};const K=J;var $=s(10419),ee=s(76329);const te=e=>{var t;let{maxLength:s,list:n,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:p,getPermission:m,titleExtra:x,fileSize:f,accept:g,getPopupContainer:v}=e;const{apis:h}=(0,ee.usePreset)(),_=Object.assign({},h,p),{fileList:j,onFileSelected:N}=(0,H.lN)({maxLength:s,multiple:!0,value:n,onChange:r,concurrentCount:1,onAdd:()=>{F("list")},onSave:_.onSave,ossUpload:_.ossUpload}),[y,F]=(0,a.useState)(o),{formatMessage:L}=(0,E.useIntl)({moduleName:"FileList"}),{message:S}=l.App.useApp(),C=(0,a.useMemo)((()=>new Map(n.map((e=>[e.ossId,e])))),[n]),[w,P]=(0,a.useState)(c||i()(n,"[0].ossId",null));(0,a.useEffect)((()=>{w&&C.get(w)||P(i()(n,"[0].ossId",null))}),[n,C,w]);const b={onPreview:e=>{P(e.ossId),F("preview")},onDelete:async e=>{_.onDelete&&await _.onDelete(e),r((t=>{const s=t.slice(0),a=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return a>-1&&s.splice(a,1),s})),S.success(L({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;_.onEdit&&await _.onEdit({formData:t,item:s}),r((e=>{const a=e.slice(0),n=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return n>-1&&a.splice(n,1,Object.assign({},s,{filename:t.name})),a})),S.success(L({id:"successEditFileName"},{name:s.filename}))}},M="function"===typeof x?x({currentPreviewFileId:w,currentTab:y}):x;return(0,I.jsxs)(Z,{title:(0,I.jsx)(D,{currentTab:y,setCurrentTab:F,previewMap:C,previewList:n,getPermission:m,currentPreviewFileId:w,setCurrentPreviewFileId:P,itemApis:b,getPopupContainer:v,children:(0,I.jsxs)(l.Space,{split:(0,I.jsx)(l.Divider,{type:"vertical"}),children:[M,m("add",{})?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{children:(0,I.jsx)(E.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,I.jsx)(X,{children:(0,I.jsx)(E.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:f,maxLength:s,onFileSelected:N,accept:g,children:["list"===y?(0,I.jsx)(z.List,{dataSource:[...j,...n],getPermission:m,apis:b}):null,"preview"===y?w?(0,I.jsx)("div",{className:d,children:(0,I.jsx)($.default,{className:u,id:w,apis:_,originName:null===(t=C.get(w))||void 0===t?void 0:t.filename})}):(0,I.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,I.jsx)(K,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,I.jsx)(E.IntlProvider,{importMessages:k,moduleName:"FileList",children:(0,I.jsx)(te,{...e})});var ae=s(10986),ne=s.n(ae);const ie=e=>{let{maxLength:t,apis:s,getPermission:a,fileSize:n,accept:i,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,u]=ne()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:p,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:u,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,I.jsxs)(Z,{title:(0,I.jsxs)(l.Row,{children:[(0,I.jsx)(l.Col,{flex:1}),(0,I.jsx)(l.Col,{children:(0,I.jsxs)(l.Space,{split:(0,I.jsx)(l.Divider,{type:"vertical"}),children:[(0,I.jsx)(V,{}),(0,I.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:n,maxLength:t,onFileSelected:m,accept:i,children:[(0,I.jsx)(z.List,{dataSource:[...p,...d],getPermission:a,apis:c}),(0,I.jsx)(K,{})]})};ie.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const le=ie},94710:e=>{e.exports=function(e,t,s,a){for(var n=-1,i=null==e?0:e.length;++n<i;){var l=e[n];t(a,l,s(l),e)}return a}},32952:(e,t,s)=>{var a=s(45652);e.exports=function(e,t,s,n){return a(e,(function(e,a,i){t(n,e,s(e),i)})),n}},45652:(e,t,s)=>{var a=s(94664),n=s(76516)(a);e.exports=n},99910:e=>{e.exports=function(e,t){for(var s,a=-1,n=e.length;++a<n;){var i=t(e[a]);void 0!==i&&(s=void 0===s?i:s+i)}return s}},19449:(e,t,s)=>{var a=s(94710),n=s(32952),i=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?a:n,c=t?t():{};return o(s,e,i(r,2),c)}}},76516:(e,t,s)=>{var a=s(6571);e.exports=function(e,t){return function(s,n){if(null==s)return s;if(!a(s))return e(s,n);for(var i=s.length,l=t?i:-1,r=Object(s);(t?l--:++l<i)&&!1!==n(r[l],l,r););return s}}},26304:(e,t,s)=>{var a=s(53871),n=s(99140);e.exports=function(e,t,s){var i=null==e?0:e.length;return i?(t=s||void 0===t?1:n(t),a(e,0,(t=i-t)<0?0:t)):[]}},39835:(e,t,s)=>{var a=s(71775),n=s(19449),i=Object.prototype.hasOwnProperty,l=n((function(e,t,s){i.call(e,s)?e[s].push(t):a(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var a=s(26989);e.exports=function(e,t,s){var n=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===n?a(e,t,void 0,s):!!n}},60262:(e,t,s)=>{var a=s(99910),n=s(33279);e.exports=function(e){return e&&e.length?a(e,n):0}},99140:(e,t,s)=>{var a=s(37303);e.exports=function(e){var t=a(e),s=t%1;return t===t?s?t-s:t:0}},17448:()=>{},71975:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5873.6c285e0c.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6611,9034,3142],{28148:(e,s,t)=>{t.r(s),t.d(s,{default:()=>x});const n={menu:"style_menu__gvIvn__xNaFL","all-no-start-icon":"style_all-no-start-icon__CA+zR__xNaFL","no-start-icon":"style_no-start-icon__LnC1S__xNaFL","has-children":"style_has-children__m9tce__xNaFL","has-children-node":"style_has-children-node__2bhEB__xNaFL","is-root":"style_is-root__4hhOc__xNaFL",title:"style_title__+Hcar__xNaFL",active:"style_active__WU49K__xNaFL","no-collapse":"style_no-collapse__aIZBM__xNaFL","title-content":"style_title-content__cQXpK__xNaFL",loading:"style_loading__1pU4P__xNaFL"};var a=t(83136),l=t.n(a),r=t(55199),o=t(94679),i=t(29053),c=t(10986),d=t.n(c),p=t(64671),h=t(73884),u=t(18081),_=t.n(u),y=t(87558),m=t(70579);const g=e=>{const s=(0,o.useNavigate)(),{id:t,className:a,label:c,iconType:d,path:h,request:u,onClick:_,isOpen:g,isSelected:f,onOpenChange:x,children:K,fetchOptions:N,depth:O,onLoad:v,allowCollapsed:C}=e,j=Array.isArray(K)&&K.length>0||N,{refresh:k,isLoading:b}=(0,y.useFetch)(Object.assign({},N,{auto:!C&&N,onRequestSuccess:e=>{v(e)}}));return(0,m.jsx)(i.default,{request:u,children:(0,m.jsxs)("div",{className:l()(a,n["menu-item"]),children:[(0,m.jsxs)("div",{className:l()(n.title,{[n.active]:f,[n["has-children"]]:j,[n["no-collapse"]]:j&&!C,[n["no-start-icon"]]:!d,[n["is-root"]]:0===O}),onClick:n=>{n.stopPropagation(),j||!h?j||N?C&&(N&&k({}),x(!g)):null===_||void 0===_||_(t,e):s(h)},children:[d&&(0,m.jsx)(p.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),j&&C&&(0,m.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),j?!C||g&&K?(0,m.jsx)("div",{className:n["children-list"],children:K}):!C||g&&b?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},f=e=>{let{className:s,allowCollapsed:t,...a}=e;const{pathname:r,search:i}=(0,o.useLocation)(),[c,p]=d()(a,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[u,y]=d()(a,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:f,defaultOpenKeys:x,links:K,childrenKeys:N,hasStartIcon:O,hasChildren:v}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,a)=>{const{parentKey:l,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},a);return Array.isArray(e)&&e.length>0?e.map(((e,a)=>{const o="".concat(e.key||"".concat("root"!==l?"".concat(l,"-"):"","node-").concat(a));s[l]||(s[l]=[]),s[l].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[l].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:l,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(u);let a=!1,l=!1;const r=[],o=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach((e=>{const s=n[e];s.iconType&&(a=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(l=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:a,hasChildren:l}}),[u]);(0,h.useEffect)((()=>{const e=K.find((e=>{let{path:s}=e;return _()(r.replace(/[#,?].*/,""))===_()(s)||_()(r+i)===_()(s)}));e&&p(e.key)}),[K,r,i,p]);const[C,j]=d()(Object.assign({},a,{defaultOpenKeys:a.defaultOpenKeys||x}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),k=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:a,selectedKey:l,openKeys:r,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...d}=e;return(0,h.createElement)(g,{...Object.assign({},d),id:i,parentId:n,depth:a,allowCollapsed:t,isSelected:i===l||N[i]&&N[i].indexOf(l)>-1,onClick:p,onLoad:e=>{y((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(r||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{j((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},k(s,{parentKey:n,depth:a+1,selectedKey:l,openKeys:r,paths:[...o,i]}))})):null}),[y,j,p,N,t]);return(0,m.jsx)("div",{className:l()(s,n.menu,{[n["all-no-start-icon"]]:!O,[n["has-children-node"]]:v}),children:k(f,{selectedKey:c,openKeys:C})})};f.defaultProps={defaultItems:[],allowCollapsed:!0};const x=f},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>h,default:()=>m,usePermissions:()=>u,usePermissionsPass:()=>_});var n=t(73884),a=t(55199),l=t(33097),r=t.n(l),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__xNaFL";var d=t(76329),p=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,d.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,d.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:l,message:r,request:o,children:d,...h}=e;const u=_({request:o});return"function"===typeof d?d({isPass:u,type:s,request:o}):!0===u?d:"error"===s?(0,p.jsx)(a.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,p.jsx)(a.Tooltip,{title:r,children:(0,n.createElement)(l,{...h,className:i()(c,t)},d)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
|
|
2
|
-
//# sourceMappingURL=6611.1146bc44.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6779,5600,9034,2517],{17342:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(8762),r=n.n(o);n(46733);const i=r()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),r=n(79889),i=n.n(r),l=n(93950),s=n.n(l),a=n(96418),c=n.n(a);const d=(e,t)=>{const n=(0,o.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const r=(0,o.useRef)(null),l=c()(e);return(0,o.useLayoutEffect)((()=>{const e=r.current,t=()=>window.requestAnimationFrame((()=>{e&&l(e)}));t();const o=new ResizeObserver((n.current.isDebounce?s():i())(t,n.current.time));return e&&o.observe(e),()=>{o.disconnect()}}),[l]),r}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var o=n(73884),r=n(96418),i=n.n(r),l=n(55199),s=n(83136),a=n.n(s),c=n(64671),d=n(81014),u=n(58407),m=n(77964),f=n(22616),h=n.n(f);const p="style_width-container__JfEbg__xNaFL",_="style_hidden-container__EdySA__xNaFL",x="style_hidden-inner__vAN59__xNaFL",g="style_menu-list__VDttR__xNaFL",y="style_btn-item__mp5MQ__xNaFL";var v=n(15797),C=n.n(v),b=n(70579);const N=C()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;const l=i?0:["small","middle","large"].indexOf(r.size)>-1?8*(["small","middle","large"].indexOf(r.size)+1):Number.isInteger(r.size)?r.size:8;let s=0,a=0;for(;t>=a+o[s]+s*l&&s<o.length;)a+=o[s],s+=1;for(;t<a+(s-1)*l+(s<o.length?n+l:0)&&s>0;)a-=o[s-1],s-=1;return s}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;return"".concat(t).concat(n).concat(o.join(",")).concat(Object.values(r).join(",")).concat(i&&i.toString())})),j=e=>{let{list:t,more:n,compact:r,...s}=e;const c=h()(s,["size","split","align","style"]),[f,v]=(0,o.useState)(t.length&&1),C=i()((()=>{const e=w.current,t=F.current,n=j.current;if(!e)return;const i=e.querySelectorAll(".button-group-item");if(!i)return;if(0===i.length)return;const l=n.clientWidth,s=t.clientWidth,a=[].map.call(i,(e=>e.offsetWidth)),d=N({amountWidth:l,moreBtnWidth:s,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{v(d)}))})),j=(0,m.A)(C),w=(0,m.A)(C),F=(0,m.A)(C),k=t.slice(f),L=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",y),isDropdown:n});const{className:r,confirm:i,buttonComponent:l,...s}=e,c=i||s.message,m=c?u.default:l||d.default;return(0,o.createElement)(m,{danger:c&&!1!==s.isDelete,...Object.assign({},s,c&&(s.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",y,r)})},P=r?l.Space.Compact:l.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:p,ref:j}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:x,ref:F,children:n}),(0,b.jsx)("div",{className:x,ref:w,children:(0,b.jsx)(P,{...c,children:t.map(L)})})]}),(0,b.jsxs)(P,{...c,children:[t.slice(0,f).map(((e,t)=>L(e,t,!1))),k.length>0&&(0,b.jsx)(l.Dropdown,{overlayClassName:g,menu:{items:k.map(((e,t)=>({key:t,label:L(e,t,!0)})))},children:n})]})]})};j.defaultProps={more:(0,b.jsxs)(l.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const w=j},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>x,ConfirmText:()=>g,default:()=>y,withConfirm:()=>_});n(73884);var o=n(55199);const r=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var i=n(64671),l=n(58609),s=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__xNaFL",u="style_is-danger__gxyAB__xNaFL",m="style_title__EEPu2__xNaFL",f="style_content__mZZg5__xNaFL",h="style_has-title__5+PEt__xNaFL";var p=n(70579);const _=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:a=!0,onClick:_,onCancel:x,disabled:g,showCancel:y,cancelText:v,isModal:C,okText:b,placement:N,getContainer:j,...w}=t;const{formatMessage:F}=(0,l.useIntl)({moduleName:"ConfirmButton"}),k=(0,s.useConfirmModal)();return C?(0,p.jsx)(e,{...w,disabled:g,onClick:e=>{k({type:"confirm",title:n,getContainer:j,danger:a,confirmType:a?"warning":"info",message:r||F({id:"message"}),okText:b||F(a?{id:"delete"}:{id:"confirm"}),cancelText:v||F({id:"cancel"}),onCancel:x,onOk:_})}}):(0,p.jsx)(o.Popconfirm,{title:(0,p.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,p.jsxs)(o.Space,{size:0,align:"start",className:m,children:[a&&(0,p.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,p.jsxs)(o.Space,{size:0,align:"start",className:c()(f,{[h]:n}),children:[!n&&a?(0,p.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,r||F({id:"message"})]})]}),placement:N,onConfirm:_,okButtonProps:{danger:a},onCancel:x,overlayClassName:c()(d,{[u]:a}),getPopupContainer:j,disabled:g,showCancel:y,cancelText:v,okText:b||F(a?{id:"delete"}:{id:"confirm"}),children:(0,p.jsx)(e,{...w,disabled:g})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},x=_(o.Typography.Link),g=_(o.Typography.Text),y=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>S,TabsModal:()=>L,TabsModalButton:()=>M,default:()=>F,useConfirmModal:()=>w,useModal:()=>j,useTabsModal:()=>P});var o=n(73884),r=n(55199),i=n(83136),l=n.n(i);const s={modal:"style_modal__Pm3cF__xNaFL",large:"style_large__iaqVE__xNaFL","modal-body-inner":"style_modal-body-inner__4PhpA__xNaFL","modal-title":"style_modal-title__dswaw__xNaFL","modal-outer":"style_modal-outer__r3SkX__xNaFL","modal-body":"style_modal-body__jQJSI__xNaFL","right-options-modal":"style_right-options-modal__FajDP__xNaFL","right-options-row":"style_right-options-row__-mPb9__xNaFL","right-options-col":"style_right-options-col__3ilee__xNaFL","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__xNaFL",content:"style_content__k6MIF__xNaFL","modal-footer":"style_modal-footer__-prbN__xNaFL","modal-close":"style_modal-close__Oa5Kl__xNaFL","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__xNaFL","is-danger":"style_is-danger__H5110__xNaFL",title:"style_title__orTym__xNaFL","has-title":"style_has-title__qy0Wp__xNaFL"},a=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var m=n(81014),f=n(17342),h=n(70579);const p="Modal",_=e=>{let{options:t,children:n}=e;return t?(0,h.jsxs)(r.Row,{wrap:!1,className:s["right-options-row"],children:[(0,h.jsx)(r.Col,{span:18,className:s["right-options-col"],children:n}),(0,h.jsx)(r.Col,{span:6,className:s["right-options-col"],children:t})]}):n},x=(e,t)=>"".concat(e-48-(t?58:0),"px"),g=(e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":x(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":x(300,t)}}:{width:"1000px",style:{"--min-modal-height":x(500,t)}},y=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:l,onClose:s,targetProps:d}=e;return(0,h.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,h.jsx)(r.Col,{children:(0,h.jsx)(r.Space,{children:(n||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:a,moduleName:p,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:p})}),onClick:l},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:a,moduleName:p,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:p})}),onClick:i}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:i=!0,display:l,...a}=e;const c=n||m.default;return(0,o.createElement)(c,{...a,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=await Promise.resolve(r&&r(...t,d));return i&&!1!==o&&s&&s(),o}})}))})})]})},v=e=>{let{title:t,footer:n,disabledScroller:i,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:p,children:_,targetProps:x}=e;const g=(0,o.useRef)(null);return(0,h.jsxs)("div",{className:s["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:s["modal-close"],type:"text",icon:(0,h.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,h.jsx)("div",{className:s["modal-title"],children:t}),(0,h.jsx)(f.A,{className:l()(s["modal-body"],{[s["is-disabled-scroller"]]:i},"modal-body"),ref:g,children:(0,h.jsx)("div",{className:l()(s["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,h.jsx)("div",{className:l()(s["modal-footer"],"modal-footer"),children:(0,h.jsx)(y,{footer:n,footerButtons:a,onConfirm:m,onCancel:p,onClose:c,targetProps:x})}):null]})},C=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:i,onConfirm:l,onCancel:s,footer:a,rightOptions:c,disabledScroller:d,childrenRef:m,children:f}=e;const p=e=>(e=Object.assign({},{title:o},e),(0,h.jsx)(v,{title:u(e.title,{...e,childrenRef:m,close:i}),closable:r,onClose:i,onConfirm:l,onCancel:s,footerButtons:u(n,{...e,close:i}),disabledScroller:d,footer:u(a,{...e,childrenRef:m,close:i}),targetProps:Object.assign({},e,{childrenRef:m,close:i}),children:(0,h.jsx)(_,{options:u(c,{...e,childrenRef:m,close:i}),children:u(f,{...e,childrenRef:m,close:i})})}));return"function"===typeof t?t(p):p({})},b=e=>{let{children:t,rightOptions:n,footer:o,footerButtons:r,className:i,size:d,title:u,onClose:m,onConfirm:f,onCancel:p,closable:_,disabledScroller:x,withDecorator:y,childrenRef:v,...b}=e;return{...b,icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:l()(i,s.modal,s[d],{[s["right-options-modal"]]:n}),...g(d,!(null===o&&!r)),children:(0,h.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:y,title:u,closable:_,onClose:m,onConfirm:f,onCancel:p,footer:o,footerButtons:r,rightOptions:n,disabledScroller:x,children:t,childrenRef:v})})}},N=e=>{const t=(0,o.useRef)(null);return(0,h.jsx)(r.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};N.defaultProps={size:"default"};const j=()=>{const{modal:e}=r.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:r,...i}=b({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:l}=e.info({...i,content:r});return o.close=l,o}},w=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:i,title:a,danger:c,wrapClassName:u,message:m,iconSetting:f={},confirmType:p="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},x=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[o]){const{destroy:t}=e[o]({..._,icon:null,wrapClassName:l()(s["confirm-modal-wrap"],u,{[s["is-danger"]]:c}),title:(0,h.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,h.jsxs)(r.Space,{size:0,align:"start",className:s.title,children:[c?(0,h.jsx)(d.default,{className:l()("title-icon","title-icon-".concat("confirm"===o?p:o)),type:i||x["confirm"===o?p:o]}):null,a]})}),content:(0,h.jsxs)(r.Space,{size:0,align:"start",className:l()(s.content,{[s["has-title"]]:a}),children:[!a&&c?(0,h.jsx)(d.default,{className:l()("title-icon","title-icon-".concat("confirm"===o?p:o)),type:i||x["confirm"===o?p:o]}):null,m]})});n.close=t}return n}},F=N,k=e=>{let{items:t,className:n,activeKey:o,withDecorator:i,defaultActiveKey:s,onChange:a,...c}=e;return{...c,className:l()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,h.jsx)(r.Tabs,{items:t.map((t=>{let{withDecorator:o,...r}=t;return Object.assign({},r,{children:"function"===typeof o?o((t=>e(Object.assign({},n,t,{children:r.children})))):e(Object.assign({},n,{children:r.children}))})})),destroyInactiveTabPane:!0,activeKey:o,defaultActiveKey:s,onChange:a});return"function"===typeof i?i(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},L=e=>(0,h.jsx)(F,{...k(e)}),P=()=>{const e=j();return t=>e(k(t))};var T=n(73025);const M=e=>{const t=P();return(0,h.jsx)(T.A,{...e,modalFunc:t})},S=e=>{const t=j();return(0,h.jsx)(T.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),r=n(77116);e.exports=function e(t,n,i,l,s){var a=-1,c=t.length;for(i||(i=r),s||(s=[]);++a<c;){var d=t[a];n>0&&i(d)?n>1?e(d,n-1,i,l,s):o(s,d):l||(s[s.length]=d)}return s}},94008:(e,t,n)=>{var o=n(27449),r=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return r(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),r=n(9261),i=n(35324);e.exports=function(e,t,n){for(var l=-1,s=t.length,a={};++l<s;){var c=t[l],d=o(e,c);n(d,c)&&r(a,i(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),r=n(35324),i=n(69194),l=n(46686),s=n(70914);e.exports=function(e,t,n,a){if(!l(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var f=s(t[c]),h=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=u){var p=m[f];void 0===(h=a?a(p,f,m):void 0)&&(h=l(p)?p:i(t[c+1])?[]:{})}o(m,f,h),m=m[f]}return e}},15857:(e,t,n)=>{var o=n(20819),r=n(55636),i=n(46350);e.exports=function(e){return i(r(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),r=n(22777),i=n(54052),l=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(l&&e&&e[l])}},93950:(e,t,n)=>{var o=n(46686),r=n(4757),i=n(40801),l=Math.max,s=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,f,h=0,p=!1,_=!1,x=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=a,o=c;return a=c=void 0,h=t,u=e.apply(o,n)}function y(e){var n=e-f;return void 0===f||n>=t||n<0||_&&e-h>=d}function v(){var e=r();if(y(e))return C(e);m=setTimeout(v,function(e){var n=t-(e-f);return _?s(n,d-(e-h)):n}(e))}function C(e){return m=void 0,x&&a?g(e):(a=c=void 0,u)}function b(){var e=r(),n=y(e);if(a=arguments,c=this,f=e,n){if(void 0===m)return function(e){return h=e,m=setTimeout(v,t),p?g(e):u}(f);if(_)return clearTimeout(m),m=setTimeout(v,t),g(f)}return void 0===m&&(m=setTimeout(v,t)),u}return t=i(t)||0,o(n)&&(p=!!n.leading,d=(_="maxWait"in n)?l(i(n.maxWait)||0,t):d,x="trailing"in n?!!n.trailing:x),b.cancel=function(){void 0!==m&&clearTimeout(m),h=0,a=f=c=m=void 0},b.flush=function(){return void 0===m?u:C(r())},b}},20819:(e,t,n)=>{var o=n(80755);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},4757:(e,t,n)=>{var o=n(56552);e.exports=function(){return o.Date.now()}},22616:(e,t,n)=>{var o=n(94008),r=n(15857)((function(e,t){return null==e?{}:o(e,t)}));e.exports=r},79889:(e,t,n)=>{var o=n(93950),r=n(46686);e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),o(e,t,{leading:i,maxWait:t,trailing:l})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=6779.05efd0c4.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6915],{16915:(e,l,t)=>{t.r(l),t.d(l,{AdvancedFilter:()=>Ke,AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>Ne,CityFilterItem:()=>Fe,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FilterItem:()=>w,FilterItemContainer:()=>Xe,FilterLines:()=>F,FilterValueDisplay:()=>j,FunctionSelectFilterItem:()=>fe,IndustrySelectFilterItem:()=>ge,InputFilterItem:()=>ye,NumberRangeFilterItem:()=>Ce,PopoverItem:()=>le,SearchInput:()=>ke,TreeFilterItem:()=>je,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>xe,advancedFields:()=>Ye,default:()=>qe,fields:()=>a,getFilterValue:()=>Ie,useFilter:()=>v,withFieldItem:()=>z,withFilterValue:()=>Me});var a={};t.r(a),t.d(a,{AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>Ne,CityFilterItem:()=>Fe,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FunctionSelectFilterItem:()=>fe,IndustrySelectFilterItem:()=>ge,InputFilterItem:()=>ye,NumberRangeFilterItem:()=>Ce,TreeFilterItem:()=>je,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>xe});var n=t(83136),s=t.n(n),r=t(73884),i=t(64671);const o={filter:"style_filter__Xml45__xNaFL","filter-item-icon":"style_filter-item-icon__kVCRK__xNaFL","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__xNaFL","filter-title":"style_filter-title__PlIpS__xNaFL","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__xNaFL","ad-filter-title":"style_ad-filter-title__5-OzD__xNaFL","ad-filter-line":"style_ad-filter-line__ga6UH__xNaFL","filter-line":"style_filter-line__E+cRh__xNaFL","clean-btn":"style_clean-btn__oSEvm__xNaFL","filter-item":"style_filter-item__Q2ncE__xNaFL","un-expand":"style_un-expand__4PFY8__xNaFL","ad-filter-selected":"style_ad-filter-selected__KbLfG__xNaFL","filter-label":"style_filter-label__qu26i__xNaFL","filter-item-wrap":"style_filter-item-wrap__rOq7H__xNaFL",option:"style_option__rd5Qo__xNaFL","is-active":"style_is-active__OArQI__xNaFL","is-visited":"style_is-visited__gZ5ni__xNaFL","un-expand-shadow":"style_un-expand-shadow__fj92e__xNaFL","filter-item-label":"style_filter-item-label__C781J__xNaFL","filter-item-field":"style_filter-item-field__Ltfr8__xNaFL","filter-drop-tag":"style_filter-drop-tag__DD-2P__xNaFL","filter-list-tag":"style_filter-list-tag__Qt5hA__xNaFL","filter-tag":"style_filter-tag__dUGfu__xNaFL","filter-tag-value":"style_filter-tag-value__p-SFv__xNaFL","pop-util-content":"style_pop-util-content__bx5zP__xNaFL","pop-util-overlay":"style_pop-util-overlay__LEASt__xNaFL","pop-util-footer":"style_pop-util-footer__Xat1s__xNaFL","pop-util-text":"style_pop-util-text__pzeUy__xNaFL","filter-item-inner":"style_filter-item-inner__LVXgh__xNaFL","filter-item-text":"style_filter-item-text__MA8tU__xNaFL","filter-item-number-range":"style_filter-item-number-range__U-OgQ__xNaFL","filter-item-custom":"style_filter-item-custom__UusRa__xNaFL","filter-item-custom-active":"style_filter-item-custom-active__uFtny__xNaFL","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__xNaFL","filter-item-number-input":"style_filter-item-number-input__YPO6K__xNaFL","range-picker":"style_range-picker__c6ngq__xNaFL","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__xNaFL","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__xNaFL","filter-advanced":"style_filter-advanced__4cyDy__xNaFL","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__xNaFL","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__xNaFL","filter-advanced-more":"style_filter-advanced-more__OFXq4__xNaFL"};var c=t(55199),u=t(58609);const d=e=>({"en-US":()=>t.e(8869).then(t.bind(t,18869)),"zh-CN":()=>t.e(2363).then(t.bind(t,92363))}[e]()),m=(0,r.createContext)({}),{Provider:p}=m,v=()=>(0,r.useContext)(m);var _=t(33097),h=t.n(_),x=t(70579);const f=e=>{let{list:l,children:t}=e;const{value:a,onChange:n}=v();return(0,x.jsxs)("div",{className:o["filter-line"],children:[l.map(((e,l)=>{const t=e.type;return(0,r.createElement)(t,{...e.props,key:e.key||e.props.name||l,value:a?h()(a.get(e.props.name),"value"):e.props.value,onChange:n?l=>n({name:e.props.name,label:e.props.label,value:l}):e.props.onChange})})),t]})},g=e=>{let{className:l,list:t,displayLine:a,label:n,extra:m,children:p}=e;const v=t.length>a,[_,h]=(0,r.useState)(!1);return(0,x.jsxs)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:[(0,x.jsxs)(c.Space,{className:s()(o["filter-title"],l),align:"top",size:16,children:[(0,x.jsx)("span",{className:o["filter-label"],children:n||(0,x.jsx)(u.FormattedMessage,{id:"filterText",moduleName:"Filter",defaultMessage:"\u7b5b\u9009"})}),(0,x.jsxs)(c.Row,{justify:"space-between",wrap:!1,align:"top",children:[(0,x.jsx)(c.Col,{className:o["filter-list"],flex:1,children:t.slice(0,a).map(((e,l)=>(0,x.jsx)(f,{list:e,children:v&&!1===_&&l===a-1?(0,x.jsxs)(c.Space,{size:4,className:s()(o["filter-item"],o.option),onClick:()=>{h((e=>!e))},children:[(0,x.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"}),(0,x.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-down"})]}):null},l)))}),(0,x.jsx)(c.Col,{children:m})]})]}),(0,x.jsx)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap"),align:"center",size:16,children:p}),(0,x.jsxs)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap",{[o["filter-title-hidden"]]:!(v&&_)}),align:"top",size:16,children:[(0,x.jsx)("span",{className:o["filter-label"],children:(0,x.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"})}),(0,x.jsx)("div",{className:o["filter-list"],children:t.slice(a).map(((e,l)=>(0,x.jsx)(f,{list:e,children:l===t.length-a-1&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:(0,x.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,x.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,x.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})}),(0,x.jsx)(c.Space,{size:4,className:s()(o["un-expand"]),onClick:()=>{h((e=>!e))},children:(0,x.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,x.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,x.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})})]})},l)))})]})]})};g.defaultProps={displayLine:1};const F=g;var N=t(62716);const j=e=>{let{value:l,extraExpand:t,onChange:a}=e;return(0,x.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:(0,x.jsxs)(c.Space,{className:o["filter-title"],align:"top",size:16,children:[(0,x.jsx)("span",{className:o["filter-label"],children:(0,x.jsx)(u.FormattedMessage,{id:"selectedText",moduleName:"Filter",defaultMessage:"\u60a8\u5df2\u9009\u62e9"})}),(0,x.jsxs)("div",{className:o["filter-line"],children:[l.map(((e,t)=>{let{name:n,label:s,value:r}=e;return(0,x.jsx)(N.default,{type:"filterResult",filterName:s,text:Array.isArray(r)?r.map((e=>e.label)).join("\uff0c"):r.label,closable:!0,onClose:()=>{const e=l.slice(0);e.splice(t,1),a(e)}},n)})),(0,x.jsxs)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:[t,(0,x.jsx)(c.Button,{size:"small",children:(0,x.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]}),(0,x.jsxs)(c.Space,{size:4,className:s()(o["un-expand"]),children:[t,(0,x.jsx)(c.Button,{size:"small",onClick:()=>{a([])},children:(0,x.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]})]})]})})};var y=t(10986),C=t.n(y),b=t(41740),L=t.n(b),I=t(36);const M=e=>{let{children:l,className:t,...a}=e;const[n,i]=C()(a),c=(0,r.useMemo)((()=>n.filter((e=>(0,I.isNotEmpty)(e.value)))),[n]),m=(0,r.useMemo)((()=>new Map(c.map((e=>[e.name,e])))),[c]);return(0,x.jsx)(u.IntlProvider,{moduleName:"Filter",importMessages:d,children:(0,x.jsx)(p,{value:{value:m,onChange:e=>{const l=L()(m);e.value?l.set(e.name,e):l.delete(e.name),null===i||void 0===i||i(Array.from(l.values()))}},children:(0,x.jsx)("div",{className:s()(o.filter,t),children:l({props:a,value:c,onChange:i})})})})};M.defaultProps={defaultValue:[]};const k=M,A=e=>(0,x.jsx)(k,{...e,children:e=>{let{props:l,value:t,onChange:a}=e;const{extraExpand:n,...s}=l;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(F,{...s}),t&&t.length>0&&(0,x.jsx)(j,{value:t,onChange:a,extraExpand:n})]})}});A.defaultProps={defaultValue:[]};const S=A;var P=t(55490);const w=e=>{let{open:l,active:t,label:a,children:n}=e;return(0,x.jsx)(c.Space,{className:o["filter-item-wrap"],children:(0,x.jsxs)("div",{className:s()(o["filter-item"],{[o["is-active"]]:t,[o["is-visited"]]:l}),children:[(0,x.jsxs)(c.Space,{className:o["filter-item-label"],size:4,children:[(0,x.jsx)("div",{children:a}),(0,x.jsx)(i.default,{className:o["filter-item-icon"],type:"icon-triangle-down"})]}),(0,x.jsx)("div",{className:o["filter-item-field"],children:n})]})})},z=e=>l=>{let{value:t,onChange:a,interceptor:n,label:s,...i}=l;const[c,u]=(0,r.useState)(!1);return(0,x.jsx)(w,{label:s,open:c,active:(0,P.A)(t),children:(0,x.jsx)(e,{allowClear:!1,...i,className:o["filter-item-inner"],value:t,onChange:"function"===typeof n?function(){return a(n(...arguments))}:a,valueType:"all",onOpenChange:u})})};var D=t(12392),T=t(41654),O=t(93761),V=t(53392),E=t(45776),R=t(30509),Y=t(96418),U=t.n(Y);const B="style_scroll-loader__Rcuti__xNaFL",K="style_is-popup__pCRv2__xNaFL";var X=t(17342),q=t(1488),Q=t.n(q),H=t(15797),G=t.n(H);const J=R.A.useContext,Z=e=>{let{value:l,setValue:t,size:a}=e;const{fetchApi:n,props:i}=J(),o=U()(i.dataFormat),{single:u,isPopup:d,searchPlaceholder:m,...p}=i,v=(0,r.useRef)(i.fieldNames);v.current=i.fieldNames;const _=n.data,{treeData:h}=(0,r.useMemo)((()=>o(_,{fieldNames:v.current})),[o,_]);return(0,x.jsx)(c.Space,{direction:"vertical",size:16,children:(0,x.jsx)(X.A,{className:s()(B,{[K]:i.isPopup}),children:(0,x.jsx)(c.Tree,{...Q()(p,["value","valueType","children","dataFormat"]),size:a,checkable:!u,treeData:h,onCheck:t,checkedKeys:l,onSelect:u?t:e=>{const l=e[0];void 0!==l&&t((e=>{const t=e.slice(0),a=t.indexOf(l);return a>-1?t.splice(a,1):t.push(l),t}))},selectedKeys:u?l:void 0})})})},W=e=>{let{maxLength:l,dataFormat:t,...a}=e;return(0,x.jsx)(R.A,{...a,dataFormat:e=>t(e,{fieldNames:a.fieldNames}),children:e=>{let{value:t,setValue:a}=e;return(0,x.jsx)(Z,{size:l,value:t,setValue:a})}})};W.defaultProps={searchPlaceholder:"\u641c\u7d22",maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,checkStrictly:!1,dataFormat:(e,l)=>{let{fieldNames:t}=l;const a=G()(((e,l)=>{let{fieldNames:t}=l;const a=[],n=e=>{Array.isArray(e)&&e.length>0&&e.forEach((e=>{const l=e[h()(t,"key","key")],s=e[h()(t,"title","title")],r=e[h()(t,"children","children")];a.push({id:l,value:l,label:s}),n(r)}))};return n(e),a}));return{treeData:e,list:a(e,{fieldNames:t})}}};const $=W,ee=e=>{let{value:l,label:t,onValidate:a,overlayClassName:n,placement:i,onOpenChange:d,onChange:m,children:p}=e;const[v,_]=(0,r.useState)(l),[h,f]=(0,r.useState)(!1),g=(0,r.useMemo)((()=>a&&!a(v)),[a,v]);return(0,x.jsx)(c.Popover,{open:h,trigger:"click",placement:i,overlayClassName:s()(o["pop-util-overlay"],n),onOpenChange:e=>{f(e),_(l),d&&d(e)},content:(0,x.jsxs)("span",{onClick:e=>{e.stopPropagation()},children:[(0,x.jsx)("div",{className:o["pop-util-content"],children:p({value:v,onChange:_})}),(0,x.jsxs)(c.Row,{className:o["pop-util-footer"],justify:"end",gutter:8,children:[(0,x.jsx)(c.Col,{children:(0,x.jsx)(c.Button,{size:"small",onClick:()=>{f(!1),d&&d(!1)},children:(0,x.jsx)(u.FormattedMessage,{id:"cancelText",moduleName:"Filter",defaultMessage:"\u53d6\u6d88"})})}),(0,x.jsx)(c.Col,{children:(0,x.jsx)(c.Button,{size:"small",type:"primary",disabled:g,onClick:()=>{f(!1),d&&d(!1),m&&m(v)},children:(0,x.jsx)(u.FormattedMessage,{id:"determineText",moduleName:"Filter",defaultMessage:"\u786e\u5b9a"})})})]})]}),children:(0,x.jsx)("span",{children:(0,x.jsx)(w,{open:h,active:(0,P.A)(l),label:t})})})};ee.defaultProps={placeholder:"\u8bf7\u9009\u62e9",placement:"bottomLeft"};const le=ee,te=e=>{let{label:l,value:t,onChange:a,placeholder:n,onValidate:s,overlayClassName:r,placement:i,onOpenChange:u,...d}=e;return(0,x.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:r,placement:i,onOpenChange:u,children:e=>{let{value:t,onChange:a}=e;return(0,x.jsx)(c.Input,{...d,placeholder:n||"\u8bf7\u8f93\u5165".concat(l),className:o["filter-item-text"],value:h()(t,"value",""),onChange:e=>a(e.target.value?{label:e.target.value,value:e.target.value}:null)})}})};var ae=t(79160),ne=t.n(ae);const se=(e,l,t)=>ne()(e[0])||ne()(e[1])?{label:(e=>ne()(e[0])&&ne()(e[1])?"".concat(e[0],"-").concat(e[1]).concat(l||""):ne()(e[0])?t({id:"over"},{count:e[0],unit:l}):ne()(e[1])?t({id:"lessThan"},{count:e[1],unit:l}):void 0)(e),value:[e[0]||null,e[1]||null]}:null,re=e=>{let{label:l,value:t,onChange:a,placeholder:n,onValidate:s,overlayClassName:r,placement:i,onOpenChange:d,unit:m,...p}=e;const{formatMessage:v}=(0,u.useIntl)({moduleName:"Filter"});return(0,x.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:r,placement:i,onOpenChange:d,children:e=>{let{value:t,onChange:a}=e;return(0,x.jsxs)(c.Space.Compact,{children:[(0,x.jsx)(c.InputNumber,{...p,placeholder:n||"".concat(v({id:"pleaseInput"})).concat(l),className:o["filter-item-number-range"],value:h()(t,"value[0]",""),onChange:e=>{a(se([e,h()(t,"value[1]")],m,v))}}),(0,x.jsx)(c.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),(0,x.jsx)(c.InputNumber,{...p,placeholder:n||"".concat(v({id:"pleaseInput"})).concat(l),className:o["filter-item-number-range"],value:h()(t,"value[1]",""),onChange:e=>{a(se([h()(t,"value[0]"),e],m,v))}}),m&&(0,x.jsx)(c.Input,{style:{width:50,borderLeft:0},value:m,disabled:!0})]})}})};re.defaultProps={onValidate:e=>{const l=h()(e,"value");return!(l&&ne()(l[0])&&ne()(l[1])&&l[1]<l[0])}};const ie=re;var oe=t(57469),ce=t.n(oe);const ue=z((e=>{let{value:l,onChange:t,picker:a,...n}=e;return(0,x.jsx)(c.DatePicker,{...n,picker:a,value:l&&ce()(l.value),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},n);e&&t({label:"date"!==a?"".concat(e.startOf(a).format(l),"~").concat(e.endOf(a).format(l)):e.format(l),value:new Date(e.startOf(a).valueOf())})}})}));ue.defaultProps="date";const de=ue,me=z((e=>{let{value:l,onChange:t,...a}=e;return(0,x.jsx)(c.DatePicker.RangePicker,{...a,allowEmpty:[!1,!1],value:l&&Array.isArray(l.value)&&2===l.value.length&&l.value.map((e=>ce()(e))),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},a);t({label:e.map((e=>e.format(l))).join("~"),value:e.map((e=>new Date(e.valueOf())))})}})}));var pe=t(89319);const ve=e=>{let{label:l,value:t,onChange:a,...n}=e;return(0,x.jsx)(le,{label:l,value:t,onChange:a,onValidate:e=>{const l=null===e||void 0===e?void 0:e.value;return(null===l||void 0===l?void 0:l.type)&&Array.isArray(null===l||void 0===l?void 0:l.value)&&2===l.value.length},children:e=>{let{value:l,onChange:t}=e;return(0,x.jsx)(pe.A,{...n,className:o["filter-item-text"],value:h()(l,"value"),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},n),a=(null===e||void 0===e?void 0:e.value)||[];t({label:a[0]&&!a[1]?"".concat(ce()(a[0]).format(l),"\u4ee5\u540e"):!a[0]&&a[1]?"".concat(ce()(a[1]).format(l),"\u4ee5\u524d"):a[0]&&a[1]?"".concat(ce()(a[0]).format(l),"~").concat(ce()(a[1]).format(l)):"",value:e})}})}})},_e=e=>l=>{let{placeholder:t,label:a,...n}=l;return(0,x.jsx)(u.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"Filter",values:{label:a},children:l=>(0,x.jsx)(e,{...n,label:a,placeholder:t||l})})},he=z(D.Ay),xe=z(D.Eo),fe=z(T.A),ge=z(V.A),Fe=z(O.Ay),Ne=z(E.Ay),je=z($),ye=_e(te),Ce=_e(ie);var be=t(22717),Le=t.n(be);const Ie=e=>Le()(e,((e,l)=>{let{name:t,value:a}=l;e[t]=Array.isArray(a)?a.map((e=>{let{value:l}=e;return l})):a.value}),{}),Me=e=>l=>{let{name:t,label:a,...n}=l;const{value:s,onChange:r}=v();return(0,x.jsx)(e,{...n,label:a,onChange:r?e=>r({name:t,label:a,value:e}):n.onChange,value:s?h()(s.get(t),"value"):n.value})},ke=Me((e=>{let{label:l,onChange:t,value:a,...n}=e;return(0,x.jsx)(I.SearchInput,{...n,placeholder:"\u8bf7\u8f93\u5165".concat(l),value:(null===a||void 0===a?void 0:a.value)||"",onSearch:e=>{t({label:e,value:e})}})}));var Ae=t(76329);const{CheckableTag:Se}=c.Tag,Pe=e=>{let{value:l,onChange:t,single:a,maxLength:n,addressApi:s,...i}=e;const{message:d}=c.App.useApp(),{locale:m}=(0,Ae.usePreset)(),{formatMessage:p}=(0,u.useIntl)({moduleName:"Filter"}),v=(0,r.useMemo)((()=>s.getChinaHotCities()),[s]);return(0,x.jsxs)(x.Fragment,{children:[v.map((e=>{const{code:s}=e,r=(0,O.NY)(e,m);return(0,x.jsx)(Se,{size:"small",checked:a?(null===l||void 0===l?void 0:l.value)===s:!!(l||[]).find((e=>{let{value:l}=e;return l===s})),onChange:e=>{if(a)return void t(e?{value:s,label:r}:null);const i=(l||[]).slice(0);e?i.push({value:s,label:r}):(()=>{const e=i.findIndex((e=>{let{value:l}=e;return l===s}));i.splice(e,1)})(),i.length>n?d.error(p({id:"maxSelectedCount"},{count:n})):t(i)},children:r},s)})),(0,x.jsxs)(Se,{className:o["filter-advanced-item-other"],size:"small",checked:(a?null===l||void 0===l?void 0:l.value:(null===l||void 0===l?void 0:l.value)&&l.value.length>0)&&!v.find((e=>{let{code:t}=e;return a?(null===l||void 0===l?void 0:l.value)===t:!!(l||[]).find((e=>{let{value:l}=e;return l===t}))})),children:[(0,x.jsx)(u.FormattedMessage,{id:"otherText",moduleName:"Filter",defaultMessage:"\u5176\u4ed6"}),(0,x.jsx)(O.Ay,{...i,className:o["filter-advanced-item-other-inner"],maxLength:n,value:a?null===l||void 0===l?void 0:l.value:(l||[]).map((e=>{let{value:l}=e;return l})),single:a,onChange:function(e){const l=e=>{const{city:l}=s.getCity(e);return{value:null===l||void 0===l?void 0:l.code,label:null===l||void 0===l?void 0:l.name}};t(a?l(e):e.map((e=>l(e))))}})]})]})};Pe.defaultProps={single:!1,maxLength:5};const we=(0,O.DF)(Pe);var ze=t(19853),De=t.n(ze);const{CheckableTag:Te}=c.Tag,Oe=e=>{let{value:l,onChange:t,label:n,single:s,maxLength:r,items:i,custom:o}=e;const{message:d}=c.App.useApp(),{formatMessage:m}=(0,u.useIntl)({moduleName:"Filter"});return(0,x.jsxs)(x.Fragment,{children:[i.map((e=>{let{label:a,value:n}=e;return(0,x.jsx)(Te,{size:"small",checked:s?De()(n,null===l||void 0===l?void 0:l.value):!!(l||[]).find((e=>{let{value:l}=e;return De()(n,l)})),onChange:e=>{if(s)return void t(e?{value:n,label:a}:null);const i=(l||[]).slice(0);e?i.push({value:n,label:a}):(()=>{const e=i.find((e=>{let{value:l}=e;return De()(n,l)}));i.splice(e,1)})(),i.length>r?d.error(m({id:"maxSelectedCount"},{count:r})):t(i)},children:a},a)})),o&&(()=>{const e=Object.values(a).find((e=>e===o.type));return e?(0,x.jsx)(e,{...o.props,value:l,placeholder:"".concat(m({id:"pleaseInput"})).concat(n),onChange:t}):null})()]})};Oe.defaultProps={single:!1,maxLength:5,items:[]};const Ve=Oe;var Ee=t(78491),Re=t.n(Ee);const Ye={CityFilterItem:we,ListFilterItem:Ve,InputFilterItem:e=>{let{value:l,label:t,onChange:a,...n}=e;const s=null===l||void 0===l?void 0:l.value,[i,o]=(0,r.useState)(s||""),[d,m]=(0,r.useState)(!1),{formatMessage:p}=(0,u.useIntl)({moduleName:"Filter"}),v=()=>{a(i?{label:i,value:i}:null)},_=Re()((()=>{m(!1),v()})),h=(0,r.useRef)("");return h.current=i,(0,r.useEffect)((()=>{s!==h.current&&o(s)}),[s]),(0,x.jsx)("span",{ref:_,children:(0,x.jsxs)(c.Space.Compact,{children:[(0,x.jsx)(c.Input,{placeholder:"".concat(p({id:"pleaseInput"})).concat(t),...n,size:"small",value:i,onFocus:()=>{m(!0)},onChange:e=>{o(e.target.value)},onPressEnter:v}),d&&(0,x.jsx)(c.Button,{size:"small",type:"primary",onClick:v,children:p({id:"search"})})]})})}},Ue=e=>{let{list:l}=e;const{value:t,onChange:a}=v();return(0,x.jsx)(c.Flex,{gap:8,children:l.map(((e,l)=>{const n=e.type;return(0,x.jsxs)(c.Flex,{gap:16,align:"center",children:[(0,x.jsxs)("div",{className:o["filter-label"],children:[e.props.label,":"]}),(0,x.jsx)(c.Flex,{wrap:!0,align:"center",children:(0,x.jsx)(n,{...e.props,value:t?h()(t.get(e.props.name),"value"):e.props.value,onChange:a?l=>a({name:e.props.name,label:e.props.label,value:l}):e.props.onChange})})]},e.key||e.props.name||l)}))})},Be=(0,u.createWithIntl)({importMessages:d,moduleName:"Filter"})((e=>{const{formatMessage:l}=(0,u.useIntl)({moduleName:"Filter"});return(0,x.jsx)(k,{...e,children:e=>{let{value:t,onChange:a,props:n}=e;const{list:s,more:r}=n;return(0,x.jsxs)("div",{children:[(0,x.jsxs)(c.Flex,{gap:8,vertical:!0,className:o["filter-advanced"],children:[s.map(((e,l)=>(0,x.jsx)(Ue,{list:e},l))),r&&(0,x.jsx)(F,{className:o["filter-advanced-more"],label:"".concat(l({id:"moreText"}),":"),list:[r]})]}),t&&t.length>0&&(0,x.jsx)(j,{value:t,onChange:a})]})}})}));Be.fields=Ye;const Ke=Be,Xe=e=>{let{children:l,...t}=e;return l(t)};S.fields=a,S.getFilterValue=Ie,S.useFilter=v,S.SearchInput=ke,S.withFilterValue=Me;const qe=S}}]);
|
|
2
|
-
//# sourceMappingURL=6915.6b33f07d.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7121,1151,9034],{62716:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var a=s(73884),r=s(83136),l=s.n(r);const o={"state-tag":"style_state-tag__Kx27z__xNaFL","state-result-tag":"style_state-result-tag__CssDz__xNaFL","state-skill-tag":"style_state-skill-tag__k0bQE__xNaFL","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__xNaFL","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__xNaFL","state-tag-filterResult":"style_state-tag-filterResult__KTkot__xNaFL","show-bg":"style_show-bg__OcL+R__xNaFL","tag-text":"style_tag-text__JHCt+__xNaFL","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__xNaFL"};var _=s(55199),n=s(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},g=t=>{let{showBorder:e,text:s,type:r,showBackground:g,className:u,filterName:i,...d}=t;const p=(0,a.useMemo)((()=>{var t,e;return{color:(null===c||void 0===c||null===(t=c[r])||void 0===t?void 0:t.color)||c[r],borderColor:(null===c||void 0===c||null===(e=c[r])||void 0===e?void 0:e.borderColor)||c[r]}}),[r]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:l()(o["state-tag-wrapper"],"filterResult"===r?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[i?(0,n.jsxs)("span",{className:o["state-tag-filter-name"],children:[i,":"]}):null,(0,n.jsx)(_.Tag,{color:p.color,...d,style:{background:g?p.color+"0F":"none",color:p.color,border:e?"1px solid ".concat(p.borderColor):"none"},className:l()(o["state-tag"],u,"result"===r?o["state-result-tag"]:"","skill"===r?o["state-skill-tag"]:"",o["state-tag-".concat(r)],g?o["show-bg"]:"",e?o["show-border"]:""),children:(0,n.jsx)("span",{className:o["tag-text"],children:s})})]})};g.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const u=g},79160:(t,e,s)=>{var a=s(16913),r=s(22761);t.exports=function(t){return"number"==typeof t||r(t)&&"[object Number]"==a(t)}}}]);
|
|
2
|
-
//# sourceMappingURL=7121.979c4878.chunk.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7227.d3f98f46.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7227],{87227:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(55199),o=a(83136),n=a.n(o);const s={"state-bar":"style_state-bar__3jfis__xNaFL","has-children":"style_has-children__oQDqU__xNaFL","tab-tab-control":"style_tab-tab-control__SopeO__xNaFL","tab-radio-control":"style_tab-radio-control__R8X6-__xNaFL","tab-step-control":"style_tab-step-control__EQaCl__xNaFL","inner-state-bar":"style_inner-state-bar__lWmOz__xNaFL"};var _=a(70579);const l=e=>{let{className:t,type:a="tab",stateOption:o=[],isInner:l,...c}=e;return(0,_.jsx)(r.Tabs,{...c,"data-testid":"components-core-state-bar",className:n()(s["state-bar"],s["tab-".concat(a,"-control")],t,{[s["inner-state-bar"]]:l,[s["has-children"]]:o.some((e=>!!e.children))}),style:{"--total-count":o.length},animated:!1,items:o.map((e=>{let{tab:t,label:a,key:r,...o}=e;return{label:t||a,key:r,...o}}))})}},51153:(e,t,a)=>{var r=a(73884),o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,_=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,a){var r,n={},c=null,b=null;for(r in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(b=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(n[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===n[r]&&(n[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:b,props:n,_owner:_.current}}t.Fragment=n,t.jsx=c,t.jsxs=c},70579:(e,t,a)=>{e.exports=a(51153)}}]);
|
|
3
|
-
//# sourceMappingURL=7227.d3f98f46.chunk.js.map
|
/package/build/static/js/{1153.9d410dce.chunk.js.LICENSE.txt → 1153.084c38bb.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{1454.909f127f.chunk.js.LICENSE.txt → 1454.95cc1e18.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{1554.92728c28.chunk.js.LICENSE.txt → 1554.3483fb84.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{2716.a3bd411c.chunk.js.LICENSE.txt → 2716.b8095105.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{4666.d38708fb.chunk.js.LICENSE.txt → 4666.586b40a7.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{7227.d3f98f46.chunk.js.LICENSE.txt → 7227.0aee129e.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|